/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";function t(t){this.content=t}Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t.prototype={constructor:t,find:function(t){for(var n=0;n<this.content.length;n+=2)if(this.content[n]===t)return n;return-1},get:function(t){var n=this.find(t);return-1==n?void 0:this.content[n+1]},update:function(n,e,r){var o=r&&r!=n?this.remove(r):this,i=o.find(n),c=o.content.slice();return-1==i?c.push(r||n,e):(c[i+1]=e,r&&(c[i]=r)),new t(c)},remove:function(n){var e=this.find(n);if(-1==e)return this;var r=this.content.slice();return r.splice(e,2),new t(r)},addToStart:function(n,e){return new t([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var r=this.remove(n).content.slice();return r.push(n,e),new t(r)},addBefore:function(n,e,r){var o=this.remove(e),i=o.content.slice(),c=o.find(n);return i.splice(-1==c?i.length:c,0,e,r),new t(i)},forEach:function(t){for(var n=0;n<this.content.length;n+=2)t(this.content[n],this.content[n+1])},prepend:function(n){return(n=t.from(n)).size?new t(n.content.concat(this.subtract(n).content)):this},append:function(n){return(n=t.from(n)).size?new t(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=t.from(n);for(var r=0;r<n.content.length;r+=2)e=e.remove(n.content[r]);return e},toObject:function(){var t={};return this.forEach(function(n,e){t[n]=e}),t},get size(){return this.content.length>>1}},t.from=function(n){if(n instanceof t)return n;var e=[];if(n)for(var r in n)e.push(r,n[r]);return new t(e)},exports.default=t;