PageSourceSearch

https://gcn-site-2.web.app/assets/MultiOriginJSONSupport-aNAGMGRC.js

js gcn-site-2.web.app collected 2026-10-03 12:26:14 UTC 3,147 bytes, 1 lines download raw bytes

1import{fL as S,dJ as u,aW as d,r as c,q as g,b3 as l,fM as $,fN as J,ea as h,eh as N,m as M,fO as m,fP as w}from"./main-qVqo2fHH.js";class _{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(S),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new _,s=this._originStores[u.DEFAULTS];s&&s.forEach((r,i)=>{t.set(i,d(r),u.DEFAULTS)});for(let r=u.SERVICE;r<S;r++){const i=this._originStores[r];i&&i.forEach((o,n)=>{e&&e.has(n)||t.set(n,d(o),r)})}return t}get(e,t){const s=t===void 0?this._values:this._originStores[t];return s?s.get(e):void 0}keys(e){const t=e==null?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,s=u.USER){let r=this._originStores[s];if(r||(r=new Map,this._originStores[s]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=s){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,s),i!==t}return!1}delete(e,t=u.USER){const s=this._originStores[t];if(!s)return;const r=s.get(e);if(s.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const o=this._originStores[i];if(o&&o.has(e)){this._values.set(e,o.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const s=t===void 0?this._values:this._originStores[t];return!!s&&s.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const s=this._originStores[t],r=s==null?void 0:s.get(e),i=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),i!==r}originOf(e){return this._propertyOriginMap.get(e)||u.DEFAULTS}forEach(e){this._values.forEach(e)}}const E=a=>{let e=class extends a{constructor(...t){super(...t);const s=l(this),r=s.store,i=new _;s.store=i,$(s,r,i)}read(t,s){J(this,t,s)}getAtOrigin(t,s){const r=O(this),i=h(s);if(typeof t=="string")return r.get(t,i);const o={};return t.forEach(n=>{o[n]=r.get(n,i)}),o}originOf(t){return N(this.originIdOf(t))}originIdOf(t){return O(this).originOf(t)}revert(t,s){const r=O(this),i=h(s),o=l(this);let n;n=typeof t=="string"?t==="*"?r.keys(i):[t]:t,n.forEach(p=>{o.invalidate(p),r.revert(p,i),o.commit(p)})}};return e=c([g("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function O(a){return l(a).store}let v=class extends E(M){};v=c([g("esri.core.ReadOnlyMultiOriginJSONSupport")],v);const A=a=>{let e=class extends a{constructor(...t){super(...t)}clear(t,s="user"){return f(this).delete(t,h(s))}write(t,s){return m(this,t=t||{},s),t}setAtOrigin(t,s,r){l(this).setAtOrigin(t,s,h(r))}removeOrigin(t){const s=f(this),r=h(t),i=s.keys(r);for(const o of i)s.originOf(o)===r&&s.set(o,s.get(o,r),u.USER)}updateOrigin(t,s){const r=f(this),i=h(s),o=w(this,t);for(let n=i+1;n<S;++n)r.delete(t,n);r.set(t,o,i)}toJSON(t){return this.write({},t)}};return e=c([g("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function f(a){return l(a).store}const x=a=>{let e=class extends A(E(a)){constructor(...t){super(...t)}};return e=c([g("esri.core.MultiOriginJSONSupport")],e),e};let y=class extends x(M){};y=c([g("esri.core.MultiOriginJSONSupport")],y);export{x as S,y as m};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.