@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
- package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 17f313e548281bb5db3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
- package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
- package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
- package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
- package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 4670b17ae2ed3c13d344.js} +1 -1
- package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
- package/assets/esri/core/workers/chunks/52575f021a14dd961de8.js +1 -0
- package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
- package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
- package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
- package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
- package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
- package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
- package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
- package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
- package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
- package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
- package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
- package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
- package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
- package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
- package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
- package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
- package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
- package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
- package/assets/esri/core/workers/chunks/{4d5f71d84c85f45c97ea.js → ed6f6e539a915ba9e64d.js} +1 -1
- package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
- package/assets/esri/themes/base/_core.scss +2 -0
- package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
- package/chunks/mat4.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/fontUtils.js +1 -1
- package/core/libs/gl-matrix-2/math/mat4.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
- package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
- package/geometry/support/MeshLocalVertexSpace.js +5 -0
- package/geometry/support/MeshTransform.d.ts +4 -0
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/offset.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/interfaces.d.ts +227 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +1 -1
- package/popup/FieldInfo.js +1 -1
- package/portal/Portal.js +1 -1
- package/rest/support/FeatureSet.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
- package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
- package/widgets/UtilityNetworkValidateTopology.js +5 -0
- package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
- package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
- package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
- package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
- package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
- package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
- package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
- package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
- package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
- package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
- package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
- package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
- package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
- package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
- package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
- package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
- package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
- package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
- package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
- package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1400],{92036:(e,t,r)=>{r.d(t,{Z:()=>U});var s=r(61247),n=r(70586),i=r(88022),o=r(67723),a=r(7628),c=(r(80442),r(22974)),l=r(92604),u=r(71143),h=r(97831),d=r(42100),f=r(31263),p=r(58971),_=r(44550);class g{constructor(e,t){this.propertyName=e,this.metadata=t,this.observerObject=new v,this._accessed=null,this._handles=null,this.observerObject.flags=_.v.Dirty|(t.nonNullable?_.v.NonNullable:0)|(t.hasOwnProperty("value")?_.v.HasDefaultValue:0)|(void 0===t.get?_.v.DepTrackingInitialized:0)|(void 0===t.dependsOn?_.v.AutoTracked:0)}destroy(){this.observerObject.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){const t=this.observerObject;(0,p.it)(t);const r=e.store,s=this.propertyName,n=t.flags,i=r.get(s);if(n&_.v.Computing)return i;if(~n&_.v.Dirty&&r.has(s))return i;t.flags|=_.v.Computing;const o=e.host;let a;n&_.v.AutoTracked?a=(0,p.LJ)(this,this.metadata.get,o):((0,p.GF)(o,this),a=this.metadata.get.call(o)),r.set(s,a,f.s3.COMPUTED);const c=r.get(s);return c===i?t.flags&=~_.v.Dirty:(0,p.gb)(this.commit,this),t.flags&=~_.v.Computing,c}onObservableAccessed(e){if(e===this.observerObject)return;let t=this._accessed;if(null==t)t=[],this._accessed=t;else if(t.includes(e))return;t.push(e)}onTrackingEnd(){this._clearObservationHandles();const e=this.observerObject;e.flags|=_.v.DepTrackingInitialized;const t=this._accessed;if(null==t||0===t.length)return;let r=this._handles;null==r&&(r=[],this._handles=r);for(let s=0;s<t.length;++s)r.push(t[s].observe(e));t.length=0}notifyChange(){const e=this.observerObject;e.onInvalidated(),e.onCommitted()}invalidate(){this.observerObject.onInvalidated()}commit(){const e=this.observerObject;e.flags&=~_.v.Dirty,e.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}}class v extends d.s{constructor(){super(...arguments),this.flags=0}onInvalidated(){~this.flags&_.v.Overriden&&(this.flags|=_.v.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}destroy(){this.flags&_.v.Dirty&&this.onCommitted(),super.destroy()}}class y{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new y;return this._values.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,c.d9)(r))})),t}get(e){return this._values.get(e)}originOf(){return f.s3.USER}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}forEach(e){this._values.forEach(e)}}function m(e,t,r){return void 0!==e}function O(e,t,r,s){return!(void 0===e||null==r&&e.observerObject.flags&_.v.NonNullable&&(s.lifecycle,h.F.INITIALIZING,1))}function b(e){return e&&"function"==typeof e.destroy}l.Z.getLogger("esri.core.accessorSupport.Properties");class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.destroyed=!1,this.lifecycle=h.F.INITIALIZING,this.store=new y,this._origin=f.s3.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new g(e,t[e]);this.propertiesByName.set(e,r)}this.metadatas=t}initialize(){this.lifecycle=h.F.CONSTRUCTING}constructed(){this.lifecycle=h.F.CONSTRUCTED}destroy(){this.destroyed=!0;for(const[e,t]of this.propertiesByName){if(t.metadata.autoDestroy){const r=this.internalGet(e);r&&b(r)&&(r.destroy(),~t.observerObject.flags&_.v.NonNullable&&this._internalSet(t,null))}t.destroy()}}get initialized(){return this.lifecycle!==h.F.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,p.it)(t.observerObject);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.observerObject.flags&_.v.HasDefaultValue)return"defaults"}return(0,f.x3)(t)}has(e){return!!this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(m(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);m(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const s=this.propertiesByName.get(t);if(!m(s))return"";const n=new Set,i=(0,p.LJ)({onObservableAccessed:e=>n.add(e),onTrackingEnd:()=>{}},(()=>s.metadata.get?.call(e)));let o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${i}\n`;if(0===n.size)return o;r+=" ";for(const e of n)e instanceof g&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){const s=this.propertiesByName.get(e);if(m(s))return this._setAtOrigin(s,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.observerObject.flags&_.v.Overriden)}clearOverride(e){const t=this.propertiesByName.get(e),r=t?.observerObject;r&&r.flags&_.v.Overriden&&(r.flags&=~_.v.Overriden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!O(r,0,t,this))return;const s=r.metadata.cast;if(s){const e=this._cast(s,t),{valid:r,value:n}=e;if(A.release(e),!r)return;t=n}r.observerObject.flags|=_.v.Overriden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!O(r,0,t,this))return;const s=r.metadata.cast;if(s){const e=this._cast(s,t),{valid:r,value:n}=e;if(A.release(e),!r)return;t=n}const n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,f.M9)(e)}getDefaultOrigin(){return(0,f.x3)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==h.F.INITIALIZING?this._origin:f.s3.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const s=this.store,n=e.propertyName;s.has(n,r)&&(0,c.fS)(t,s.get(n))&&~e.observerObject.flags&_.v.Overriden&&r===s.originOf(n)||(e.invalidate(),s.set(n,t,r),e.commit(),(0,p.mS)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new u.Z(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var N=r(37697);var S,E,T=r(26258),C=r(5600),k=r(52011);function j(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const I=Symbol("Accessor-Handles"),D=Symbol("Accessor-Initialized");class U{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:s}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const n=this;class i extends n{constructor(...e){super(...e),this.inherited=null,s&&s.apply(this,e)}}(0,a.fp)(i.prototype);for(const t in e){const r=e[t];i.prototype[t]="function"==typeof r?function(...e){const s=this.inherited;let i;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(const e in t){const r=j(t[e]);(0,C.Cb)(r)(i.prototype,e)}return(0,k.j)(r)(i)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===U)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&this.normalizeCtorArgs&&(t.ctorArgs=this.normalizeCtorArgs.apply(this,e)),M.register(this,t.propertiesByName,this)}postscript(e){const t=this.__accessor__,r=t.ctorArgs||e;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[D]=!0}initialize(){}[i.F](){this[I]=(0,n.SC)(this[I])}destroy(){this.destroyed||(M.unregister(this),(0,T.BT)(this),this.__accessor__.destroy())}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[D]}get destroyed(){return this.__accessor__&&this.__accessor__.destroyed||!1}commitProperty(e){this.get(e)}get(e){return(0,o.U2)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,N.t)(this,e,t),this}watch(e,t,r){return(0,T.YP)(this,e,t,r)}own(e){this.addHandles(e)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}let r=this[I];null==r&&(r=this[I]=new s.Z),r.add(e,t)}removeHandles(e){const t=this[I];null!=t&&t.remove(e)}removeAllHandles(){const e=this[I];null!=e&&e.removeAll()}hasHandles(e){const t=this[I];return null!=t&&t.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}S=I,E=D;const M=new FinalizationRegistry((e=>{for(const t of e.values())t.destroy()}))},3894:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(71143);function n(e){e.length=0}class i{constructor(e=50,t=50){this._pool=new s.Z(Array,void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new i(100)},61247:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(66374),n=r(70586);class i{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if((0,s.TW)(e)){const r=this._getOrCreateGroup(t);for(const t of e)this._isHandle(t)&&r.push(t)}else this._isHandle(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if("string"!=typeof e&&(0,s.TW)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(this._removeAllFromGroup(this._getGroup(e)),this._groups.delete(this._ensureGroupKey(e)),this):this}removeAll(){return this._groups.forEach((e=>this._removeAllFromGroup(e))),this._groups.clear(),this}_isHandle(e){return e&&(!!e.remove||e instanceof i)}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,n.j0)(this._groups.get(this._ensureGroupKey(e)))}_ensureGroupKey(e){return e||"_default_"}_removeAllFromGroup(e){for(const t of e)t instanceof i?t.removeAll():t.remove()}}},96674:(e,t,r)=>{r.d(t,{wq:()=>v,eC:()=>_});var s=r(43697),n=r(92036),i=r(70586),o=r(22974),a=r(31263);class c{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new c;return this._values.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,o.d9)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??a.s3.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===a.s3.DEFAULTS){const t=this._values.get(e);if(t&&null!=t.origin&&t.origin>r)return}this._values.set(e,new l(t,r))}delete(e,t){null!=(t=this._normalizeOrigin(t))&&this._values.get(e)?.origin!==t||this._values.delete(e)}has(e,t){return null!=(t=this._normalizeOrigin(t))?this._values.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===a.s3.DEFAULTS?e:a.s3.USER}}class l{constructor(e,t){this.value=e,this.origin=t}}var u=r(41103),h=r(50549),d=r(1153),f=r(76169),p=r(52011);const _=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,i.j0)((0,d.vw)(this)),r=t.store,s=new c;t.store=s,(0,u.M)(t,r,s)}read(e,t){(0,h.i)(this,e,t)}write(e,t){return(0,f.c)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,s._)([(0,p.j)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}let v=class extends(_(n.Z)){};v=(0,s._)([(0,p.j)("esri.core.JSONSupport")],v)},54790:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort(((e,t)=>e-t))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((e,t)=>e+t),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}},42100:(e,t,r)=>{r.d(t,{s:()=>o});var s=r(50758),n=r(67676);class i{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,n.Od)(this._observers,this._observer)}}class o{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,s=!1;const n=t.length;for(let i=0;i<n;++i){const n=t[i];if(n.destroyed)s=!0;else if(n===e){r=!0;break}}return r||(t.push(e),s&&this._removeDestroyedObservers()),new i(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let s=0;s<t;++s){for(;s+r<t&&e[s+r].destroyed;)++r;if(r>0){if(!(s+r<t))break;e[s]=e[s+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,s.kB)()},31263:(e,t,r)=>{r.d(t,{M9:()=>a,Wm:()=>l,kk:()=>o,s3:()=>s,x3:()=>c});var s,n,i=r(70586);(n=s||(s={}))[n.DEFAULTS=0]="DEFAULTS",n[n.COMPUTED=1]="COMPUTED",n[n.SERVICE=2]="SERVICE",n[n.PORTAL_ITEM=3]="PORTAL_ITEM",n[n.WEB_SCENE=4]="WEB_SCENE",n[n.WEB_MAP=5]="WEB_MAP",n[n.LINK_CHART=6]="LINK_CHART",n[n.USER=7]="USER";const o=s.USER+1;function a(e){switch(e){case"defaults":return s.DEFAULTS;case"service":return s.SERVICE;case"portal-item":return s.PORTAL_ITEM;case"web-scene":return s.WEB_SCENE;case"web-map":return s.WEB_MAP;case"link-chart":return s.LINK_CHART;case"user":return s.USER;default:return null}}function c(e){switch(e){case s.DEFAULTS:return"defaults";case s.SERVICE:return"service";case s.PORTAL_ITEM:return"portal-item";case s.WEB_SCENE:return"web-scene";case s.WEB_MAP:return"web-map";case s.LINK_CHART:return"link-chart";case s.USER:return"user"}return(0,i.j0)(void 0)}function l(e){return c(e)}},90578:(e,t,r)=>{r.d(t,{p:()=>c});var s=r(75215),n=r(7628);const i=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,s.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,s){(0,n.Oe)(e,t).cast=s}function c(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===i.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,n.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},5600:(e,t,r)=>{r.d(t,{CJ:()=>l,Cb:()=>c,Eg:()=>u});var s=r(92604),n=r(75215),i=r(67723),o=r(7628),a=r(37697);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,o.Oe)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&s.Z.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const h=e.aliasOf;if(h){const e="string"==typeof h?h:h.source,t="string"==typeof h?null:!0===h.overridable;let s;l.dependsOn=[e],l.get=function(){let t=(0,i.U2)(this,e);if("function"==typeof t){s||(s=e.split(".").slice(0,-1).join("."));const r=(0,i.U2)(this,s);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.t)(this,e,t)})}const d=e.type,f=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,n.AY)(e))return(0,n.sY)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const s=r;if((0,n.gB)(s))return 0===t?(0,n.i$)(s):(0,n.Iu)((0,n.i$)(s),t);if(1===t)return(0,n.rY)(s);if(t>1)return(0,n.di)(s,t);const i=e;return i.from?i.from:(0,n.se)(i)}(d):f&&(Array.isArray(f)?l.cast=(0,n.Ls)((0,n.N7)(f[0])):l.cast=(0,n.N7)(f))),(0,o.tz)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const s=(0,o.Oe)(e,r);s.json||(s.json={});let n=s.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}function u(e,t){return r=>{let s=+e(r);return null!=t.step&&(s=Math.round(s/t.step)*t.step),null!=t.min&&(s=Math.max(t.min,s)),null!=t.max&&(s=Math.min(t.max,s)),s}}},41103:(e,t,r)=>{r.d(t,{M:()=>n});var s=r(31263);function n(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),s.s3.DEFAULTS)}));const n=e.metadatas;Object.keys(n).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),s.s3.DEFAULTS)}))}},67723:(e,t,r)=>{r.d(t,{$z:()=>o,Gg:()=>c,U2:()=>a});var s=r(1153);function n(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const n=(0,s.vw)(t);return(0,s.b6)(n,r)?n.get(r):t[r]}function i(e,t,r){if(null==e)return e;const s=n(t[r],e);return!s&&r<t.length-1?void 0:r===t.length-1?s:i(s,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?i(e,(0,s.NI)(t),r):n(t,e)}function a(e,t){return o(e,t)}function c(e,t){return void 0!==o(t,e)}},50549:(e,t,r)=>{r.d(t,{$:()=>h,i:()=>u});var s=r(67723),n=r(1153),i=r(53906);function o(e,t,r){if(!e||!e.read||!1===e.read.enabled||!e.read.source)return!1;const n=e.read.source;if("string"==typeof n){if(n===t)return!0;if(n.includes(".")&&0===n.indexOf(t)&&(0,s.Gg)(n,r))return!0}else for(const e of n){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,s.Gg)(e,r))return!0}return!1}function a(e,t,r,s,n){let a=(0,i.HS)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,i.HS)(t[c],n),o(a,r,s)&&(e[c]=!0)}function c(e,t,r,s){const n=r.metadatas,o=(0,i.hk)(n[t],s),a=o?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,s):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const o=(0,n.vw)(e),u=o.metadatas,h={};for(const e of Object.getOwnPropertyNames(t))a(h,u,e,t,r);o.setDefaultOrigin(r.origin);for(const n of Object.getOwnPropertyNames(h)){const a=(0,i.HS)(u[n],r).read,c=a&&a.source;let l;l=c&&"string"==typeof c?(0,s.$z)(t,c):t[n],a&&a.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&o.set(n,l)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))h[t]||c(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,s=l){const n={...s,messages:[]};r(n),n.messages?.forEach((t=>{"warning"!==t.type||e.loaded?s&&s.messages&&s.messages.push(t):e.loadWarnings.push(t)}))}},37697:(e,t,r)=>{r.d(t,{t:()=>o});var s=r(20102),n=r(80442),i=(r(92604),r(67723));function o(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){const s=t.split("."),n=s.splice(s.length-1,1)[0];return void o((0,i.U2)(e,s),n,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,n.Z)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadatas[e]}(e,t))throw new s.Z("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},38805:(e,t,r)=>{r.d(t,{M:()=>s});class s{constructor(e){this._accessed=[],this._handles=[],this._observerObject=new n(e),i.register(this,new WeakRef(this._observerObject),this)}destroy(){i.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){const t=this._accessed;t.includes(e)||t.push(e)}onTrackingEnd(){const e=this._handles,t=this._accessed,r=this._observerObject;for(let s=0;s<t.length;++s)e.push(t[s].observe(r));t.length=0}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class n{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=o}}const i=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function o(){}},87538:(e,t,r)=>{r.d(t,{EH:()=>l,U5:()=>a,Xz:()=>c});var s=r(58971),n=r(38805);let i=!1;const o=[];function a(e,t){let r=new n.M((function n(){if(!r||a)return;if(i)return void u(n);const c=o;r.clear(),i=!0,a=!0,o=(0,s.LJ)(r,e),a=!1,i=!1,t(o,c),h()})),o=null,a=!1;return a=!0,o=(0,s.LJ)(r,e),a=!1,{remove:function(){r&&(r.destroy(),r=null,o=null)}}}function c(e,t){let r=new n.M((function(){t(i,o)})),i=null;function o(){return r?(r.clear(),i=(0,s.LJ)(r,e),i):null}return o(),{remove:function(){r&&(r.destroy(),r=null),i=null}}}function l(e){let t=new n.M((function n(){t&&!r&&(i?u(n):(t.clear(),i=!0,r=!0,(0,s.LJ)(t,e),r=!1,i=!1,h()))})),r=!1;return r=!0,(0,s.LJ)(t,e),r=!1,{remove:function(){t&&(t.destroy(),t=null)}}}function u(e){o.includes(e)||o.unshift(e)}function h(){for(;o.length;)o.pop()()}},26258:(e,t,r)=>{r.d(t,{BT:()=>b,YP:()=>S,aQ:()=>E});var s=r(3894),n=r(22974),i=r(70586),o=r(71143);class a extends o.Z{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=(0,i.wN)(this._set)}acquire(...e){const t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var c,l,u=r(1654),h=r(99001),d=r(67723),f=r(87538),p=r(1153);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class _{constructor(){this.uid=(0,h.D)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(e,t,r,s,i){return this.pool.acquire(c.Untracked,e,t,r,s,i,n.fS)}static acquireTracked(e,t,r,s){return this.pool.acquire(c.Tracked,e,t,r,null,null,s)}notify(e,t){this.type===c.Untracked?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,s,n,i,o){this.uid=(0,h.D)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=s,this.target=n,this.path=i,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,h.D)(),this.removed=!0}}_.pool=new a(_);const g=new s.Z,v=new Set;let y;function m(e){v.delete(e),v.add(e),y||(y=(0,u.Os)(w))}function O(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function b(e){for(const t of v.values())t.target===e&&(t.removed=!0)}function w(){let e=10;for(;y&&e--;){y=null;const e=A(),t=g.acquire();for(const r of e){const e=r.uid;O(r),e===r.uid&&r.removed&&t.push(r)}for(const e of v)e.removed&&(t.push(e),v.delete(e));for(const e of t)_.pool.release(e);g.release(t),g.release(e),N.forEach((e=>e()))}}function A(){const e=g.acquire();e.length=v.size;let t=0;for(const r of v)e[t]=r,++t;return v.clear(),e}const N=new Set;function S(e,t,r,s=!1){return!e.__accessor__||e.__accessor__.destroyed?{remove(){}}:s?function(e,t,r){const s=(0,p.Qc)(e,t,r,((e,t,r)=>{let i=!1;return(0,f.U5)((()=>(0,d.$z)(e,t)),((o,a)=>{e.__accessor__.destroyed?s.remove():i||(i=!0,(0,n.fS)(a,o)||r.call(e,o,a,t,e),i=!1)}))}));return s}(e,t,r):function(e,t,r){let s=(0,p.Qc)(e,t,r,((e,t,r)=>{let n,i,o=(0,f.Xz)((()=>(0,d.$z)(e,t)),((o,a)=>{e.__accessor__.destroyed||n&&n.uid!==i?s.remove():(n||(n=_.acquireUntracked(o,r,a,e,t),i=n.uid),m(n))}));return{remove:(0,p.IH)((()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,m(n)),n=null),s=o=null}))}}));return s}(e,t,r)}function E(e,t,r=!1,s=n.y7){return r?function(e,t,r){let s=!1;return(0,f.U5)(e,((e,n)=>{s||(s=!0,r(n,e)||t(e,n),s=!1)}))}(e,t,s):function(e,t,r){let s,n,i=(0,f.Xz)(e,((e,o)=>{s&&s.uid!==n?i.remove():(s||(s=_.acquireTracked(e,t,o,r),n=s.uid),m(s))}));return{remove:(0,p.IH)((()=>{i.remove(),s&&(s.uid!==n||s.removed||(s.removed=!0,m(s)),s=null),i=null}))}}(e,t,s)}},76169:(e,t,r)=>{r.d(t,{c:()=>d,d:()=>h});var s=r(67676),n=r(20102),i=r(92604),o=r(31263),a=r(1153),c=r(53906);function l(e,t,r,s,n){const i={};return t.write?.writer?.call(e,s,i,r,n),i}function u(e,t,r,a,c,l){if(!a||!a.write)return!1;const u=e.get(r);if(!c&&a.write.overridePolicy){const t=a.write.overridePolicy.call(e,u,r,l??void 0);void 0!==t&&(c=t)}if(c||(c=a.write),!c||!1===c.enabled)return!1;if((null===u&&!c.allowNull&&!c.writerEnsuresNonNull||void 0===u)&&c.isRequired){const t=new n.Z("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&l&&l.messages?l.messages.push(t):t&&!l&&i.Z.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===u||null===u&&!c.allowNull&&!c.writerEnsuresNonNull||(!t.store.multipleOriginsSupported||t.store.originOf(r)===o.s3.DEFAULTS)&&function(e,t,r,n,i){const o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(i);if("function"==typeof o){if(Array.isArray(i)){const n=o.call(e,t,r??void 0);return(0,s.fS)(n,i)}return!1}return o===i}(e,r,l,a,u)||!c.ignoreOrigin&&l&&l.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,o.M9)(l.origin))}function h(e,t,r,s){const n=(0,a.vw)(e),i=n.metadatas,o=(0,c.Ah)(i[t],s);return!!o&&u(e,n,t,o,r,s)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,a.TS)(t,e.toJSON(r));const s=(0,a.vw)(e),n=s.metadatas;for(const i in n){const h=(0,c.Ah)(n[i],r);if(!u(e,s,i,h,void 0,r))continue;const d=e.get(i),f=l(e,h,h.write&&"string"==typeof h.write.target?h.write.target:i,d,r);Object.keys(f).length>0&&(t=(0,a.TS)(t,f),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,a.TS)(t,f,(()=>"replace-arrays"))))),r&&r.writtenProperties&&r.writtenProperties.push({target:e,propName:i,oldOrigin:(0,o.Wm)(s.store.originOf(i)),newOrigin:r.origin}))}return t}},66374:(e,t,r)=>{function s(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function n(e,t){for(const r of e)if(null!=r&&t(r))return r}function i(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{Fs:()=>s,TW:()=>i,sE:()=>n})},35454:(e,t,r)=>{r.d(t,{X:()=>n,w:()=>i});var s=r(78286);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,s.RB)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},1654:(e,t,r)=>{r.d(t,{MU:()=>O,Os:()=>g});var s=r(70586),n=r(41213),i=r(54790),o=r(44553),a=r(95330),c=r(76882);class l{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const h={time:(0,c.HA)(0),deltaTime:(0,c.HA)(0),elapsedFrameTime:(0,c.HA)(0),frameDuration:(0,c.HA)(0)},d=["prepare","preRender","render","postRender","update","finish"],f=[],p=new o.Z,_={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll((e=>{e.removed=!0})),e&&y()},dispatch:m,executeFrameTasks:function(e){const t=(0,c.HA)(e-u);u=e;const r=1e3/60,s=Math.max(0,t-r);h.time=e,h.frameDuration=(0,c.HA)(r-s);for(let r=0;r<d.length;r++){const s=performance.now(),n=d[r];p.forAll((s=>{s.paused||s.removed||(0===r&&s.ticks++,s.phases[n]&&(h.elapsedFrameTime=(0,c.HA)(performance.now()-e),h.deltaTime=0===s.ticks?(0,c.HA)(0):t,s.phases[n]?.call(s,h)))})),b[r].record(performance.now()-s)}y(),w.record(performance.now()-e)}};function g(e){const t=new l(e);return f.push(t),_.willDispatch||(_.willDispatch=!0,(0,n.Y)(m)),t}const v=new o.Z;function y(){p.forAll((e=>{e.removed&&v.push(e)})),p.removeUnorderedMany(v.data,v.length),v.clear()}function m(){for(;f.length;){const e=(0,s.j0)(f.shift());e.isActive&&e.callback()}_.willDispatch=!1}function O(e=1,t){const r=(0,a.hh)(),s=()=>{(0,a.Hc)(t)?r.reject((0,a.zE)()):0===e?r():(--e,(0,n.Y)((()=>s())))};return s(),r.promise}const b=d.map((e=>new i.Z(e))),w=new i.Z("total")},76882:(e,t,r)=>{function s(e){return e}r.d(t,{HA:()=>s})},99001:(e,t,r)=>{r.d(t,{D:()=>n});let s=0;function n(){return++s}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1400],{92036:(e,t,r)=>{r.d(t,{Z:()=>U});var s=r(61247),n=r(70586),i=r(88022),o=r(67723),a=r(7628),c=(r(80442),r(22974)),l=r(92604),u=r(71143),h=r(97831),d=r(42100),f=r(31263),p=r(58971),_=r(44550);class g{constructor(e,t){this.propertyName=e,this.metadata=t,this.observerObject=new v,this._accessed=null,this._handles=null,this.observerObject.flags=_.v.Dirty|(t.nonNullable?_.v.NonNullable:0)|(t.hasOwnProperty("value")?_.v.HasDefaultValue:0)|(void 0===t.get?_.v.DepTrackingInitialized:0)|(void 0===t.dependsOn?_.v.AutoTracked:0)}destroy(){this.observerObject.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){const t=this.observerObject;(0,p.it)(t);const r=e.store,s=this.propertyName,n=t.flags,i=r.get(s);if(n&_.v.Computing)return i;if(~n&_.v.Dirty&&r.has(s))return i;t.flags|=_.v.Computing;const o=e.host;let a;n&_.v.AutoTracked?a=(0,p.LJ)(this,this.metadata.get,o):((0,p.GF)(o,this),a=this.metadata.get.call(o)),r.set(s,a,f.s3.COMPUTED);const c=r.get(s);return c===i?t.flags&=~_.v.Dirty:(0,p.gb)(this.commit,this),t.flags&=~_.v.Computing,c}onObservableAccessed(e){if(e===this.observerObject)return;let t=this._accessed;if(null==t)t=[],this._accessed=t;else if(t.includes(e))return;t.push(e)}onTrackingEnd(){this._clearObservationHandles();const e=this.observerObject;e.flags|=_.v.DepTrackingInitialized;const t=this._accessed;if(null==t||0===t.length)return;let r=this._handles;null==r&&(r=[],this._handles=r);for(let s=0;s<t.length;++s)r.push(t[s].observe(e));t.length=0}notifyChange(){const e=this.observerObject;e.onInvalidated(),e.onCommitted()}invalidate(){this.observerObject.onInvalidated()}commit(){const e=this.observerObject;e.flags&=~_.v.Dirty,e.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}}class v extends d.s{constructor(){super(...arguments),this.flags=0}onInvalidated(){~this.flags&_.v.Overriden&&(this.flags|=_.v.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}destroy(){this.flags&_.v.Dirty&&this.onCommitted(),super.destroy()}}class y{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new y;return this._values.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,c.d9)(r))})),t}get(e){return this._values.get(e)}originOf(){return f.s3.USER}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}forEach(e){this._values.forEach(e)}}function m(e,t,r){return void 0!==e}function O(e,t,r,s){return!(void 0===e||null==r&&e.observerObject.flags&_.v.NonNullable&&(s.lifecycle,h.F.INITIALIZING,1))}function b(e){return e&&"function"==typeof e.destroy}l.Z.getLogger("esri.core.accessorSupport.Properties");class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.destroyed=!1,this.lifecycle=h.F.INITIALIZING,this.store=new y,this._origin=f.s3.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new g(e,t[e]);this.propertiesByName.set(e,r)}this.metadatas=t}initialize(){this.lifecycle=h.F.CONSTRUCTING}constructed(){this.lifecycle=h.F.CONSTRUCTED}destroy(){this.destroyed=!0;for(const[e,t]of this.propertiesByName){if(t.metadata.autoDestroy){const r=this.internalGet(e);r&&b(r)&&(r.destroy(),~t.observerObject.flags&_.v.NonNullable&&this._internalSet(t,null))}t.destroy()}}get initialized(){return this.lifecycle!==h.F.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,p.it)(t.observerObject);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.observerObject.flags&_.v.HasDefaultValue)return"defaults"}return(0,f.x3)(t)}has(e){return!!this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(m(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);m(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const s=this.propertiesByName.get(t);if(!m(s))return"";const n=new Set,i=(0,p.LJ)({onObservableAccessed:e=>n.add(e),onTrackingEnd:()=>{}},(()=>s.metadata.get?.call(e)));let o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${i}\n`;if(0===n.size)return o;r+=" ";for(const e of n)e instanceof g&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){const s=this.propertiesByName.get(e);if(m(s))return this._setAtOrigin(s,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.observerObject.flags&_.v.Overriden)}clearOverride(e){const t=this.propertiesByName.get(e),r=t?.observerObject;r&&r.flags&_.v.Overriden&&(r.flags&=~_.v.Overriden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!O(r,0,t,this))return;const s=r.metadata.cast;if(s){const e=this._cast(s,t),{valid:r,value:n}=e;if(A.release(e),!r)return;t=n}r.observerObject.flags|=_.v.Overriden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!O(r,0,t,this))return;const s=r.metadata.cast;if(s){const e=this._cast(s,t),{valid:r,value:n}=e;if(A.release(e),!r)return;t=n}const n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,f.M9)(e)}getDefaultOrigin(){return(0,f.x3)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==h.F.INITIALIZING?this._origin:f.s3.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const s=this.store,n=e.propertyName;s.has(n,r)&&(0,c.fS)(t,s.get(n))&&~e.observerObject.flags&_.v.Overriden&&r===s.originOf(n)||(e.invalidate(),s.set(n,t,r),e.commit(),(0,p.mS)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new u.Z(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var N=r(37697);var S,E,T=r(26258),C=r(5600),k=r(52011);function j(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const I=Symbol("Accessor-Handles"),D=Symbol("Accessor-Initialized");class U{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:s}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const n=this;class i extends n{constructor(...e){super(...e),this.inherited=null,s&&s.apply(this,e)}}(0,a.fp)(i.prototype);for(const t in e){const r=e[t];i.prototype[t]="function"==typeof r?function(...e){const s=this.inherited;let i;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(const e in t){const r=j(t[e]);(0,C.Cb)(r)(i.prototype,e)}return(0,k.j)(r)(i)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===U)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&this.normalizeCtorArgs&&(t.ctorArgs=this.normalizeCtorArgs.apply(this,e)),M.register(this,t.propertiesByName,this)}postscript(e){const t=this.__accessor__,r=t.ctorArgs||e;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[D]=!0}initialize(){}[i.F](){this[I]=(0,n.SC)(this[I])}destroy(){this.destroyed||(M.unregister(this),(0,T.BT)(this),this.__accessor__.destroy())}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[D]}get destroyed(){return this.__accessor__&&this.__accessor__.destroyed||!1}commitProperty(e){this.get(e)}get(e){return(0,o.U2)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,N.t)(this,e,t),this}watch(e,t,r){return(0,T.YP)(this,e,t,r)}own(e){this.addHandles(e)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}let r=this[I];null==r&&(r=this[I]=new s.Z),r.add(e,t)}removeHandles(e){const t=this[I];null!=t&&t.remove(e)}removeAllHandles(){const e=this[I];null!=e&&e.removeAll()}hasHandles(e){const t=this[I];return null!=t&&t.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}S=I,E=D;const M=new FinalizationRegistry((e=>{for(const t of e.values())t.destroy()}))},3894:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(71143);function n(e){e.length=0}class i{constructor(e=50,t=50){this._pool=new s.Z(Array,void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new i(100)},61247:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(66374),n=r(70586);class i{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if((0,s.TW)(e)){const r=this._getOrCreateGroup(t);for(const t of e)this._isHandle(t)&&r.push(t)}else this._isHandle(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if("string"!=typeof e&&(0,s.TW)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(this._removeAllFromGroup(this._getGroup(e)),this._groups.delete(this._ensureGroupKey(e)),this):this}removeAll(){return this._groups.forEach((e=>this._removeAllFromGroup(e))),this._groups.clear(),this}_isHandle(e){return e&&(!!e.remove||e instanceof i)}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,n.j0)(this._groups.get(this._ensureGroupKey(e)))}_ensureGroupKey(e){return e||"_default_"}_removeAllFromGroup(e){for(const t of e)t instanceof i?t.removeAll():t.remove()}}},96674:(e,t,r)=>{r.d(t,{wq:()=>v,eC:()=>_});var s=r(43697),n=r(92036),i=r(70586),o=r(22974),a=r(31263);class c{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new c;return this._values.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,o.d9)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??a.s3.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===a.s3.DEFAULTS){const t=this._values.get(e);if(t&&null!=t.origin&&t.origin>r)return}this._values.set(e,new l(t,r))}delete(e,t){null!=(t=this._normalizeOrigin(t))&&this._values.get(e)?.origin!==t||this._values.delete(e)}has(e,t){return null!=(t=this._normalizeOrigin(t))?this._values.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===a.s3.DEFAULTS?e:a.s3.USER}}class l{constructor(e,t){this.value=e,this.origin=t}}var u=r(41103),h=r(50549),d=r(1153),f=r(76169),p=r(52011);const _=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,i.j0)((0,d.vw)(this)),r=t.store,s=new c;t.store=s,(0,u.M)(t,r,s)}read(e,t){(0,h.i)(this,e,t)}write(e,t){return(0,f.c)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,s._)([(0,p.j)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}let v=class extends(_(n.Z)){};v=(0,s._)([(0,p.j)("esri.core.JSONSupport")],v)},54790:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort(((e,t)=>e-t))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((e,t)=>e+t),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}},42100:(e,t,r)=>{r.d(t,{s:()=>o});var s=r(50758),n=r(67676);class i{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,n.Od)(this._observers,this._observer)}}class o{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,s=!1;const n=t.length;for(let i=0;i<n;++i){const n=t[i];if(n.destroyed)s=!0;else if(n===e){r=!0;break}}return r||(t.push(e),s&&this._removeDestroyedObservers()),new i(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let s=0;s<t;++s){for(;s+r<t&&e[s+r].destroyed;)++r;if(r>0){if(!(s+r<t))break;e[s]=e[s+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,s.kB)()},31263:(e,t,r)=>{r.d(t,{M9:()=>a,Wm:()=>l,kk:()=>o,s3:()=>s,x3:()=>c});var s,n,i=r(70586);(n=s||(s={}))[n.DEFAULTS=0]="DEFAULTS",n[n.COMPUTED=1]="COMPUTED",n[n.SERVICE=2]="SERVICE",n[n.PORTAL_ITEM=3]="PORTAL_ITEM",n[n.WEB_SCENE=4]="WEB_SCENE",n[n.WEB_MAP=5]="WEB_MAP",n[n.LINK_CHART=6]="LINK_CHART",n[n.USER=7]="USER";const o=s.USER+1;function a(e){switch(e){case"defaults":return s.DEFAULTS;case"service":return s.SERVICE;case"portal-item":return s.PORTAL_ITEM;case"web-scene":return s.WEB_SCENE;case"web-map":return s.WEB_MAP;case"link-chart":return s.LINK_CHART;case"user":return s.USER;default:return null}}function c(e){switch(e){case s.DEFAULTS:return"defaults";case s.SERVICE:return"service";case s.PORTAL_ITEM:return"portal-item";case s.WEB_SCENE:return"web-scene";case s.WEB_MAP:return"web-map";case s.LINK_CHART:return"link-chart";case s.USER:return"user"}return(0,i.j0)(void 0)}function l(e){return c(e)}},90578:(e,t,r)=>{r.d(t,{p:()=>c});var s=r(75215),n=r(7628);const i=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,s.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,s){(0,n.Oe)(e,t).cast=s}function c(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===i.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,n.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},5600:(e,t,r)=>{r.d(t,{CJ:()=>l,Cb:()=>c,Eg:()=>u});var s=r(92604),n=r(75215),i=r(67723),o=r(7628),a=r(37697);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,o.Oe)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&s.Z.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const h=e.aliasOf;if(h){const e="string"==typeof h?h:h.source,t="string"==typeof h?null:!0===h.overridable;let s;l.dependsOn=[e],l.get=function(){let t=(0,i.U2)(this,e);if("function"==typeof t){s||(s=e.split(".").slice(0,-1).join("."));const r=(0,i.U2)(this,s);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.t)(this,e,t)})}const d=e.type,f=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,n.AY)(e))return(0,n.sY)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const s=r;if((0,n.gB)(s))return 0===t?(0,n.i$)(s):(0,n.Iu)((0,n.i$)(s),t);if(1===t)return(0,n.rY)(s);if(t>1)return(0,n.di)(s,t);const i=e;return i.from?i.from:(0,n.se)(i)}(d):f&&(Array.isArray(f)?l.cast=(0,n.Ls)((0,n.N7)(f[0])):l.cast=(0,n.N7)(f))),(0,o.tz)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const s=(0,o.Oe)(e,r);s.json||(s.json={});let n=s.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}function u(e,t){return r=>{let s=+e(r);return null!=t.step&&(s=Math.round(s/t.step)*t.step),null!=t.min&&(s=Math.max(t.min,s)),null!=t.max&&(s=Math.min(t.max,s)),s}}},41103:(e,t,r)=>{r.d(t,{M:()=>n});var s=r(31263);function n(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),s.s3.DEFAULTS)}));const n=e.metadatas;Object.keys(n).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),s.s3.DEFAULTS)}))}},67723:(e,t,r)=>{r.d(t,{$z:()=>o,Gg:()=>c,U2:()=>a});var s=r(1153);function n(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const n=(0,s.vw)(t);return(0,s.b6)(n,r)?n.get(r):t[r]}function i(e,t,r){if(null==e)return e;const s=n(t[r],e);return!s&&r<t.length-1?void 0:r===t.length-1?s:i(s,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?i(e,(0,s.NI)(t),r):n(t,e)}function a(e,t){return o(e,t)}function c(e,t){return void 0!==o(t,e)}},50549:(e,t,r)=>{r.d(t,{$:()=>h,i:()=>u});var s=r(67723),n=r(1153),i=r(53906);function o(e,t,r){if(!e||!e.read||!1===e.read.enabled||!e.read.source)return!1;const n=e.read.source;if("string"==typeof n){if(n===t)return!0;if(n.includes(".")&&0===n.indexOf(t)&&(0,s.Gg)(n,r))return!0}else for(const e of n){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,s.Gg)(e,r))return!0}return!1}function a(e,t,r,s,n){let a=(0,i.HS)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,i.HS)(t[c],n),o(a,r,s)&&(e[c]=!0)}function c(e,t,r,s){const n=r.metadatas,o=(0,i.hk)(n[t],s),a=o?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,s):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const o=(0,n.vw)(e),u=o.metadatas,h={};for(const e of Object.getOwnPropertyNames(t))a(h,u,e,t,r);o.setDefaultOrigin(r.origin);for(const n of Object.getOwnPropertyNames(h)){const a=(0,i.HS)(u[n],r).read,c=a&&a.source;let l;l=c&&"string"==typeof c?(0,s.$z)(t,c):t[n],a&&a.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&o.set(n,l)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))h[t]||c(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,s=l){const n={...s,messages:[]};r(n),n.messages?.forEach((t=>{"warning"!==t.type||e.loaded?s&&s.messages&&s.messages.push(t):e.loadWarnings.push(t)}))}},37697:(e,t,r)=>{r.d(t,{t:()=>o});var s=r(20102),n=r(80442),i=(r(92604),r(67723));function o(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){const s=t.split("."),n=s.splice(s.length-1,1)[0];return void o((0,i.U2)(e,s),n,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,n.Z)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadatas[e]}(e,t))throw new s.Z("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},38805:(e,t,r)=>{r.d(t,{M:()=>s});class s{constructor(e){this._accessed=[],this._handles=[],this._observerObject=new n(e),i.register(this,new WeakRef(this._observerObject),this)}destroy(){i.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){const t=this._accessed;t.includes(e)||t.push(e)}onTrackingEnd(){const e=this._handles,t=this._accessed,r=this._observerObject;for(let s=0;s<t.length;++s)e.push(t[s].observe(r));t.length=0}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class n{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=o}}const i=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function o(){}},87538:(e,t,r)=>{r.d(t,{EH:()=>l,U5:()=>a,Xz:()=>c});var s=r(58971),n=r(38805);let i=!1;const o=[];function a(e,t){let r=new n.M((function n(){if(!r||a)return;if(i)return void u(n);const c=o;r.clear(),i=!0,a=!0,o=(0,s.LJ)(r,e),a=!1,i=!1,t(o,c),h()})),o=null,a=!1;return a=!0,o=(0,s.LJ)(r,e),a=!1,{remove:function(){r&&(r.destroy(),r=null,o=null)}}}function c(e,t){let r=new n.M((function(){t(i,o)})),i=null;function o(){return r?(r.clear(),i=(0,s.LJ)(r,e),i):null}return o(),{remove:function(){r&&(r.destroy(),r=null),i=null}}}function l(e){let t=new n.M((function n(){t&&!r&&(i?u(n):(t.clear(),i=!0,r=!0,(0,s.LJ)(t,e),r=!1,i=!1,h()))})),r=!1;return r=!0,(0,s.LJ)(t,e),r=!1,{remove:function(){t&&(t.destroy(),t=null)}}}function u(e){o.includes(e)||o.unshift(e)}function h(){for(;o.length;)o.pop()()}},26258:(e,t,r)=>{r.d(t,{BT:()=>b,YP:()=>S,aQ:()=>E});var s=r(3894),n=r(22974),i=r(70586),o=r(71143);class a extends o.Z{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=(0,i.wN)(this._set)}acquire(...e){const t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var c,l,u=r(1654),h=r(99001),d=r(67723),f=r(87538),p=r(1153);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class _{constructor(){this.uid=(0,h.D)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(e,t,r,s,i){return this.pool.acquire(c.Untracked,e,t,r,s,i,n.fS)}static acquireTracked(e,t,r,s){return this.pool.acquire(c.Tracked,e,t,r,null,null,s)}notify(e,t){this.type===c.Untracked?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,s,n,i,o){this.uid=(0,h.D)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=s,this.target=n,this.path=i,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,h.D)(),this.removed=!0}}_.pool=new a(_);const g=new s.Z,v=new Set;let y;function m(e){v.delete(e),v.add(e),y||(y=(0,u.Os)(w))}function O(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function b(e){for(const t of v.values())t.target===e&&(t.removed=!0)}function w(){let e=10;for(;y&&e--;){y=null;const e=A(),t=g.acquire();for(const r of e){const e=r.uid;O(r),e===r.uid&&r.removed&&t.push(r)}for(const e of v)e.removed&&(t.push(e),v.delete(e));for(const e of t)_.pool.release(e);g.release(t),g.release(e),N.forEach((e=>e()))}}function A(){const e=g.acquire();e.length=v.size;let t=0;for(const r of v)e[t]=r,++t;return v.clear(),e}const N=new Set;function S(e,t,r,s=!1){return!e.__accessor__||e.__accessor__.destroyed?{remove(){}}:s?function(e,t,r){const s=(0,p.Qc)(e,t,r,((e,t,r)=>{let i=!1;return(0,f.U5)((()=>(0,d.$z)(e,t)),((o,a)=>{e.__accessor__.destroyed?s.remove():i||(i=!0,(0,n.fS)(a,o)||r.call(e,o,a,t,e),i=!1)}))}));return s}(e,t,r):function(e,t,r){let s=(0,p.Qc)(e,t,r,((e,t,r)=>{let n,i,o=(0,f.Xz)((()=>(0,d.$z)(e,t)),((o,a)=>{e.__accessor__.destroyed||n&&n.uid!==i?s.remove():(n||(n=_.acquireUntracked(o,r,a,e,t),i=n.uid),m(n))}));return{remove:(0,p.IH)((()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,m(n)),n=null),s=o=null}))}}));return s}(e,t,r)}function E(e,t,r=!1,s=n.y7){return r?function(e,t,r){let s=!1;return(0,f.U5)(e,((e,n)=>{s||(s=!0,r(n,e)||t(e,n),s=!1)}))}(e,t,s):function(e,t,r){let s,n,i=(0,f.Xz)(e,((e,o)=>{s&&s.uid!==n?i.remove():(s||(s=_.acquireTracked(e,t,o,r),n=s.uid),m(s))}));return{remove:(0,p.IH)((()=>{i.remove(),s&&(s.uid!==n||s.removed||(s.removed=!0,m(s)),s=null),i=null}))}}(e,t,s)}},76169:(e,t,r)=>{r.d(t,{c:()=>d,d:()=>h});var s=r(67676),n=r(20102),i=r(92604),o=r(31263),a=r(1153),c=r(53906);function l(e,t,r,s,n){const i={};return t.write?.writer?.call(e,s,i,r,n),i}function u(e,t,r,a,c,l){if(!a||!a.write)return!1;const u=e.get(r);if(!c&&a.write.overridePolicy){const t=a.write.overridePolicy.call(e,u,r,l??void 0);void 0!==t&&(c=t)}if(c||(c=a.write),!c||!1===c.enabled)return!1;if((null===u&&!c.allowNull&&!c.writerEnsuresNonNull||void 0===u)&&c.isRequired){const t=new n.Z("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&l&&l.messages?l.messages.push(t):t&&!l&&i.Z.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===u||null===u&&!c.allowNull&&!c.writerEnsuresNonNull||!(c.alwaysWriteDefaults||t.store.multipleOriginsSupported&&t.store.originOf(r)!==o.s3.DEFAULTS)&&function(e,t,r,n,i){const o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(i);if("function"==typeof o){if(Array.isArray(i)){const n=o.call(e,t,r??void 0);return(0,s.fS)(n,i)}return!1}return o===i}(e,r,l,a,u)||!c.ignoreOrigin&&l&&l.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,o.M9)(l.origin))}function h(e,t,r,s){const n=(0,a.vw)(e),i=n.metadatas,o=(0,c.Ah)(i[t],s);return!!o&&u(e,n,t,o,r,s)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,a.TS)(t,e.toJSON(r));const s=(0,a.vw)(e),n=s.metadatas;for(const i in n){const h=(0,c.Ah)(n[i],r);if(!u(e,s,i,h,void 0,r))continue;const d=e.get(i),f=l(e,h,h.write&&"string"==typeof h.write.target?h.write.target:i,d,r);Object.keys(f).length>0&&(t=(0,a.TS)(t,f),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,a.TS)(t,f,(()=>"replace-arrays"))))),r&&r.writtenProperties&&r.writtenProperties.push({target:e,propName:i,oldOrigin:(0,o.Wm)(s.store.originOf(i)),newOrigin:r.origin}))}return t}},66374:(e,t,r)=>{function s(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function n(e,t){for(const r of e)if(null!=r&&t(r))return r}function i(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{Fs:()=>s,TW:()=>i,sE:()=>n})},35454:(e,t,r)=>{r.d(t,{X:()=>n,w:()=>i});var s=r(78286);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,s.RB)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},1654:(e,t,r)=>{r.d(t,{MU:()=>O,Os:()=>g});var s=r(70586),n=r(41213),i=r(54790),o=r(44553),a=r(95330),c=r(76882);class l{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const h={time:(0,c.HA)(0),deltaTime:(0,c.HA)(0),elapsedFrameTime:(0,c.HA)(0),frameDuration:(0,c.HA)(0)},d=["prepare","preRender","render","postRender","update","finish"],f=[],p=new o.Z,_={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll((e=>{e.removed=!0})),e&&y()},dispatch:m,executeFrameTasks:function(e){const t=(0,c.HA)(e-u);u=e;const r=1e3/60,s=Math.max(0,t-r);h.time=e,h.frameDuration=(0,c.HA)(r-s);for(let r=0;r<d.length;r++){const s=performance.now(),n=d[r];p.forAll((s=>{s.paused||s.removed||(0===r&&s.ticks++,s.phases[n]&&(h.elapsedFrameTime=(0,c.HA)(performance.now()-e),h.deltaTime=0===s.ticks?(0,c.HA)(0):t,s.phases[n]?.call(s,h)))})),b[r].record(performance.now()-s)}y(),w.record(performance.now()-e)}};function g(e){const t=new l(e);return f.push(t),_.willDispatch||(_.willDispatch=!0,(0,n.Y)(m)),t}const v=new o.Z;function y(){p.forAll((e=>{e.removed&&v.push(e)})),p.removeUnorderedMany(v.data,v.length),v.clear()}function m(){for(;f.length;){const e=(0,s.j0)(f.shift());e.isActive&&e.callback()}_.willDispatch=!1}function O(e=1,t){const r=(0,a.hh)(),s=()=>{(0,a.Hc)(t)?r.reject((0,a.zE)()):0===e?r():(--e,(0,n.Y)((()=>s())))};return s(),r.promise}const b=d.map((e=>new i.Z(e))),w=new i.Z("total")},76882:(e,t,r)=>{function s(e){return e}r.d(t,{HA:()=>s})},99001:(e,t,r)=>{r.d(t,{D:()=>n});let s=0;function n(){return++s}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>j});var n,i=s(81271),r=s(95330),_=s(94139);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(n||(n={}));class E{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this._length+=this._alignTo(s.byteLength,4),t&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,n.JSON,32);t&&this._writeChunk(t,i,n.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,n=0){const i=this._alignTo(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)n&&this._outView.setUint8(t,n),t++;return t}_writeArrayBuffer(e,t,s,n,i){new Uint8Array(e,s,i).set(new Uint8Array(t,n,i),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var a,o,T,A,R,c,N,u,f=s(92604),h=s(30175),l=s(22021),O=s(51305),S=s(94961),I=s(17896),C=s(65617),L=s(85872),d=s(50567),M=s(60746),D=s(66459);(u=a||(a={}))[u.External=0]="External",u[u.DataURI=1]="DataURI",u[u.GLB=2]="GLB",function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(o||(o={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(T||(T={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(A||(A={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(R||(R={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(c||(c={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(N||(N={}));var g=s(35371);class B{constructor(e,t,s,n,i){this._buffer=e,this._componentType=s,this._dataType=n,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const r=this._getElementSize();r>=4&&i!==T.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=r),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,n=this._accessorMin[s];this._accessorMin[s]="number"!=typeof n?e:Math.min(n,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case g.g.BYTE:return new Int8Array(e,t);case g.g.FLOAT:return new Float32Array(e,t);case g.g.SHORT:return new Int16Array(e,t);case g.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case g.g.UNSIGNED_INT:return new Uint32Array(e,t);case g.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const n={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case g.g.UNSIGNED_BYTE:case g.g.UNSIGNED_SHORT:n.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,n}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}finalize(){const e=this._bufferView;return new Promise((e=>{const t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),e((0,r.as)(t))})).then((()=>{this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case g.g.BYTE:case g.g.UNSIGNED_BYTE:return 1;case g.g.SHORT:case g.g.UNSIGNED_SHORT:return 2;case g.g.UNSIGNED_INT:case g.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case A.SCALAR:return 1;case A.VEC2:return 2;case A.VEC3:return 3;case A.VEC4:case A.MAT2:return 4;case A.MAT3:return 9;case A.MAT4:return 16}}}class G{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const n=new B(this,this._gltf,e,t,s);return this._bufferViews.push(n),n}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise((e=>{e((0,r.as)(this.getViewFinalizePromises()))})).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function U(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&m(s,t)}function m(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:n,normal:i}=t,r=s.length/3;for(let e=0;e<r;++e){const t=3*s[3*e],r=3*s[3*e+1],_=3*s[3*e+2],E=(0,I.s)(p,n[t],n[t+1],n[t+2]),a=(0,I.s)(P,n[r],n[r+1],n[r+2]),o=(0,I.s)(F,n[_],n[_+1],n[_+2]),T=(0,I.b)(a,a,E),A=(0,I.b)(o,o,E),R=(0,I.f)(T,T,A);i[t]+=R[0],i[t+1]+=R[1],i[t+2]+=R[2],i[r]+=R[0],i[r+1]+=R[1],i[r+2]+=R[2],i[_]+=R[0],i[_+1]+=R[1],i[_+2]+=R[2]}for(let e=0;e<i.length;e+=3)(0,I.s)(w,i[e],i[e+1],i[e+2]),(0,I.n)(w,w),i[e]=w[0],i[e+1]=w[1],i[e+2]=w[2]}const p=(0,C.c)(),P=(0,C.c)(),F=(0,C.c)(),w=(0,C.c)();s(80442);var b=s(20102);async function y(e){const t=H(e);if(null==t)throw new b.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,i.HK)(t)){const e=(0,i.sJ)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),n=await new Promise((e=>t.toBlob(e,s)));if(!n)throw new b.Z("imageToArrayBuffer","Failed to encode image");return{data:await n.arrayBuffer(),type:s}}function H(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var x=s(15317);const V=f.Z.getLogger("gltf");class Y{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===a.GLB||t.options.imageOutputType===o.GLB;s&&(t.binChunkBuffer=new G(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,I.k)(s,C.Z)||(t.translation=(0,C.a)(s));const n=e.rotation;(0,O.j)(n,S.I)||(t.rotation=(0,S.b)(n));const i=e.scale;(0,I.k)(i,C.O)||(t.scale=(0,C.a)(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const r=this.gltf.nodes.length;return this.gltf.nodes.push(t),r}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,n=s.options.bufferOutputType===a.GLB;let i;i=n?s.binChunkBuffer:new G(this.gltf),this.params.origin||(this.params.origin=function(e){const{vertexSpace:t}=e;if(t.isRelative)return t.getOriginPoint(e.spatialReference);const{extent:s}=e,n=s.xmax-s.width/2,i=s.ymax-s.height/2,r=s.zmin;return new _.Z({x:n,y:i,z:r,spatialReference:s.spatialReference})}(e));const{ignoreLocalTransform:r}=this.params,E=r?null:e.transform,{vertexSpace:o}=e,R=r?o.isRelative?new L.Z({origin:(0,C.a)(o.origin)}):new d.Z:o,c=(0,D.Yq)(e.vertexAttributes,R,E,this.params.origin,{geographic:this.params.geographic,unit:"meters"});U(e,c),this._flipYZAxis(c);const N=i.addBufferView(g.g.FLOAT,A.VEC3,T.ARRAY_BUFFER);let u,f,h,l;c.normal&&(u=i.addBufferView(g.g.FLOAT,A.VEC3,T.ARRAY_BUFFER)),e.vertexAttributes.uv&&(f=i.addBufferView(g.g.FLOAT,A.VEC2,T.ARRAY_BUFFER)),c.tangent&&(h=i.addBufferView(g.g.FLOAT,A.VEC4,T.ARRAY_BUFFER)),e.vertexAttributes.color&&(l=i.addBufferView(g.g.UNSIGNED_BYTE,A.VEC4,T.ARRAY_BUFFER)),N.startAccessor("POSITION"),u&&u.startAccessor("NORMAL"),f&&f.startAccessor("TEXCOORD_0"),h&&h.startAccessor("TANGENT"),l&&l.startAccessor("COLOR_0");const O=c.position.length/3,{position:S,normal:I,tangent:M}=c,{color:B,uv:m}=e.vertexAttributes;for(let e=0;e<O;++e)N.push(S[3*e]),N.push(S[3*e+1]),N.push(S[3*e+2]),u&&null!=I&&(u.push(I[3*e]),u.push(I[3*e+1]),u.push(I[3*e+2])),f&&null!=m&&(f.push(m[2*e]),f.push(m[2*e+1])),h&&null!=M&&(h.push(M[4*e]),h.push(M[4*e+1]),h.push(M[4*e+2]),h.push(M[4*e+3])),l&&null!=B&&(l.push(B[4*e]),l.push(B[4*e+1]),l.push(B[4*e+2]),l.push(B[4*e+3]));const p=N.endAccessor(),P=this._addAccessor(N.index,p);let F,w,b,y,H;if(u){const e=u.endAccessor();F=this._addAccessor(u.index,e)}if(f){const e=f.endAccessor();w=this._addAccessor(f.index,e)}if(h){const e=h.endAccessor();b=this._addAccessor(h.index,e)}if(l){const e=l.endAccessor();y=this._addAccessor(l.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(H=i.addBufferView(g.g.UNSIGNED_INT,A.SCALAR,T.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(H,e.components,t,P,F,w,b,y)):this._addMeshVertexNonIndexed(e.components,t,P,F,w,b,y),N.finalize(),u&&u.finalize(),f&&f.finalize(),h&&h.finalize(),H&&H.finalize(),l&&l.finalize(),n||i.finalize();const x=this.gltf.meshes.length;return this.gltf.meshes.push(t),x}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(null!=e)for(let s=1,n=2;s<e.length;s+=t,n+=t){const t=e[s],i=e[n];e[s]=i,e[n]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=c.MASK;break;case"auto":case"blend":s.alphaMode=c.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const n=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=n(t[0]/255),t[1]=n(t[1]/255),t[2]=n(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof M.Z){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,V.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const r=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),r}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,l.Vl)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.s1)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},n=t.length;return t.push(s),n}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const n=this.gltf.extras;switch(n.options.imageOutputType){case o.GLB:{const e=n.binChunkBuffer.addBufferView(g.g.UNSIGNED_BYTE,A.SCALAR);if((0,x.$A)(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const n=y(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(n).then((()=>{e.finalize()}))}s.bufferView=e.index;break}case o.DataURI:if((0,x.$A)(t)){V.warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=H(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,x.$A)(t)){V.warnOnce("Image export for basis compressed textures not available.");break}n.promises.push(y(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const n=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,n),n}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=g.e8.REPEAT,s=g.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=g.e8.CLAMP_TO_EDGE,s=g.e8.CLAMP_TO_EDGE;break;case"mirror":t=g.e8.MIRRORED_REPEAT,s=g.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=g.e8.CLAMP_TO_EDGE;break;case"mirror":s=g.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=g.e8.CLAMP_TO_EDGE;break;case"mirror":t=g.e8.MIRRORED_REPEAT}}const n={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(n)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(n),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const n=this.gltf.accessors.length;return this.gltf.accessors.push(s),n}_addMeshVertexIndexed(e,t,s,n,i,r,_,E){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),o={attributes:{POSITION:n},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};i&&"flat"!==a.shading&&(o.attributes.NORMAL=i),r&&(o.attributes.TEXCOORD_0=r),_&&"flat"!==a.shading&&(o.attributes.TANGENT=_),E&&(o.attributes.COLOR_0=E),s.primitives.push(o)}}_addMeshVertexNonIndexed(e,t,s,n,i,r,_){const E={attributes:{POSITION:s}};n&&(E.attributes.NORMAL=n),i&&(E.attributes.TEXCOORD_0=i),r&&(E.attributes.TANGENT=r),_&&(E.attributes.COLOR_0=_),e&&(E.material=this._addMaterial(e[0].material)),t.primitives.push(E)}}var z=s(67676);class v{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,z.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class X{constructor(e){this.mesh=e,this.name="",this.translation=(0,C.c)(),this.rotation=(0,S.a)(),this.scale=(0,C.a)(C.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,O.k)(this.rotation,e[0],e[1],e[2])}}const k="model.gltf",W="model.glb";class Z{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class K{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,i.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function j(e,t){const s=new v,n=new Z;return s.addScene(n),n.addNode(new X(e)),function(e,t){return function(e,t,s){const n=new Y(e,t=t||{},s);let i=n.params;i?i.origin||(i.origin=new _.Z({x:-1,y:-1,z:-1})):i={origin:new _.Z({x:-1,y:-1,z:-1})};const T=i.origin,A=n.gltf,R=A.extras?.promises??[];let c=1,N=1,u=null;return(0,r.as)(R).then((()=>{const e={origin:T};delete A.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,n=JSON.stringify(A,((s,n)=>{if("extras"!==s){if(n instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(n))switch(t.imageOutputType){case o.DataURI:case o.GLB:break;case o.External:default:{const t=`img${N}.png`;return N++,e[t]=n,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(n);case a.GLB:if(u)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(u=n);case a.External:default:{const t=`data${c}.bin`;return c++,e[t]=n,t}}}return n}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===o.GLB?e[W]=new E(n,u).buffer:e[k]=n,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:o.GLB,jsonSpacing:0},t)}(s,t).then((e=>new K(e[W],e.origin)))}},15317:(e,t,s)=>{s.d(t,{$A:()=>r,Ml:()=>E,NM:()=>i,i$:()=>_});var n=s(47026);class i{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=n.Ti.KTX2_ENCODING}}function r(e){return"encoded-mesh-texture"===e?.type}async function _(e){return new Promise(((t,s)=>{const n=new Blob([e]),i=new FileReader;i.onload=()=>{const e=i.result;t(JSON.parse(e))},i.onerror=e=>{s(e)},i.readAsText(n)}))}async function E(e,t){return t===n.Ti.KTX2_ENCODING?new i(e):new Promise(((s,n)=>{const i=new Blob([e],{type:t}),r=URL.createObjectURL(i),_=new Image,E=()=>{URL.revokeObjectURL(r),"decode"in _?_.decode().then((()=>s(_)),(()=>s(_))).then(o):(s(_),o())},a=e=>{URL.revokeObjectURL(r),n(e),o()},o=()=>{_.removeEventListener("load",E),_.removeEventListener("error",a)};_.addEventListener("load",E),_.addEventListener("error",a),_.src=r}))}},47026:(e,t,s)=>{var n,i,r,_,E,a,o,T,A,R;s.d(t,{Gv:()=>i,JJ:()=>T,Rw:()=>_,Ti:()=>R,V_:()=>a,Vr:()=>n,hU:()=>E}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(i||(i={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(r||(r={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_||(_={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(E||(E={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee",e[e.COUNT=2]="COUNT"}(a||(a={})),function(e){e[e.CHANGED=0]="CHANGED",e[e.UNCHANGED=1]="UNCHANGED"}(o||(o={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(T||(T={})),function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON"}(A||(A={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(R||(R={}))},35371:(e,t,s)=>{var n,i,r,_,E,a,o,T,A,R,c,N,u,f,h,l,O,S,I,C,L,d;s.d(t,{Br:()=>l,LR:()=>a,Lu:()=>M,MX:()=>i,No:()=>u,Tg:()=>O,VI:()=>f,VY:()=>d,Wf:()=>o,_g:()=>L,cw:()=>c,db:()=>_,e8:()=>N,g:()=>T,l1:()=>S,lP:()=>h,q_:()=>D,qi:()=>C,w0:()=>E,wb:()=>A,xS:()=>R,zi:()=>r}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(n||(n={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(r||(r={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(_||(_={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(T||(T={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(A||(A={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(R||(R={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(h||(h={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(l||(l={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(O||(O={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(S||(S={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(I||(I={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(C||(C={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(L||(L={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(d||(d={}));const M=33306;var D,g,B,G,U,m,p;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(D||(D={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(g||(g={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(B||(B={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(U||(U={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
|