@arcgis/core 6.0.0-next.30 → 6.0.0-next.32
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0694c7bcfe71692e2ccf.js +1 -0
- package/assets/esri/core/workers/chunks/{e2c6cd8dac01e129ccfe.js → 0e445ec3523de9f2dfa2.js} +1 -1
- package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +1 -0
- package/assets/esri/core/workers/chunks/{242a77066ac5cdb5b7d7.js → 14d81280807a3d3c1b7e.js} +1 -1
- package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +1 -0
- package/assets/esri/core/workers/chunks/1a3f71c4d97c36050030.js +1 -0
- package/assets/esri/core/workers/chunks/{ba4520ddcb6a49988da6.js → 1a8d8274df292d65f82e.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b4481b57a611b15f65c.js → 1eaf8bfdd3765a90ccc2.js} +1 -1
- package/assets/esri/core/workers/chunks/29cc6b1705418b1be5d7.js +1 -0
- package/assets/esri/core/workers/chunks/2de077c7b971f2c215a6.js +1 -0
- package/assets/esri/core/workers/chunks/{fefdd10bdd5a4c8d8ed0.js → 360c944c610efa2051fc.js} +3 -3
- package/assets/esri/core/workers/chunks/{8ca2bb3c0551bb1898b6.js → 3fdcc383bbd9cf0d274c.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc97e4fd0dacad970a23.js → 46453ebfee17b5421d9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{64b360625c68cb863a08.js → 487c46d5245cfb35c4bb.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad21757d78e372fa2ed6.js → 4a979fce1c971b614a18.js} +1 -1
- package/assets/esri/core/workers/chunks/{b5eff28cf482d920b9ea.js → 4d18b48d4a282a0f341c.js} +1 -1
- package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +1 -0
- package/assets/esri/core/workers/chunks/52a0aa2d19a495e48ab1.js +1 -0
- package/assets/esri/core/workers/chunks/{865cebc5c982c040ab6f.js → 55a9eaeb152a3abada67.js} +1 -1
- package/assets/esri/core/workers/chunks/572aec57593a08b8045b.js +1 -0
- package/assets/esri/core/workers/chunks/{9d40786c5ceface786ba.js → 601e1d020b8115497944.js} +1 -1
- package/assets/esri/core/workers/chunks/6029773458ab98600f67.js +1 -0
- package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +1 -0
- package/assets/esri/core/workers/chunks/{7030a4d0714a35995a58.js → 6bb191b19ce43a27f205.js} +1 -1
- package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +1 -0
- package/assets/esri/core/workers/chunks/7084dd6e10c6c1393e92.js +1 -0
- package/assets/esri/core/workers/chunks/7cc9d7a88b64e25fce14.js +1 -0
- package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +1 -0
- package/assets/esri/core/workers/chunks/853563c66ecf58d53d36.js +1 -0
- package/assets/esri/core/workers/chunks/{c90388932a7825d9d933.js → 85de980c5b296ec69323.js} +1 -1
- package/assets/esri/core/workers/chunks/89dc49e784f7ba3b93ea.js +1 -0
- package/assets/esri/core/workers/chunks/8da2a10318f49d0dc73a.js +1 -0
- package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +1 -0
- package/assets/esri/core/workers/chunks/{71f792a20077aa739f87.js → a607541959169741a943.js} +1 -1
- package/assets/esri/core/workers/chunks/b2d6b1ac9fbb50c7c8ab.js +1 -0
- package/assets/esri/core/workers/chunks/b657363113f4a37e634b.js +1 -0
- package/assets/esri/core/workers/chunks/b9cb92858a576eb6aa06.js +1 -0
- package/assets/esri/core/workers/chunks/{12b84262dedc6b393136.js → d9a240a3c6bf85124474.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f008eedb11685ee2048.js → e096c1d9d53af74d3207.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +1 -0
- package/assets/esri/core/workers/chunks/f4d91d470ca5fea0bd26.js +1 -0
- package/assets/esri/core/workers/chunks/f717005e14a7e9141df7.js +1 -0
- package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +1 -0
- package/assets/esri/core/workers/chunks/fcc3902d6d9eda6f09f5.js +1 -0
- package/assets/esri/core/workers/chunks/{28a821de9dbf10324033.js → fd031150d3a7f896e6b3.js} +1 -1
- package/config.js +1 -1
- package/core/scheduling.js +1 -1
- package/geometry/Mesh.d.ts +2 -125
- package/geometry/Mesh.js +1 -1
- package/geometry/support/GlobalCoordinateSystem.js +2 -0
- package/geometry/support/LocalCoordinateSystem.js +2 -0
- package/geometry/support/boundedPlane.js +1 -1
- package/geometry/support/coordinateSystem.js +1 -1
- package/geometry/support/meshErrors.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/polygonUtils.js +1 -1
- package/geometry/support/ray.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +0 -3
- package/kernel.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/raster/functions/rasterProjectionHelper.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/package.json +2 -2
- package/support/arcadeUtils.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Slice/SliceController.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +10 -8
- package/views/3d/environment/VirtualLighting.d.ts +10 -8
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/3d/state/ScreenSizePerspective.js +1 -1
- package/views/3d/support/RenderCoordsHelper.js +1 -1
- package/views/3d/support/ViewSlice.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/webgl-engine/lib/Path.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Environment.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/02335385b1476fe322eb.js +0 -1
- package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +0 -1
- package/assets/esri/core/workers/chunks/189321d88026bd7e6d3e.js +0 -1
- package/assets/esri/core/workers/chunks/18d47ab571b613fbe719.js +0 -1
- package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +0 -1
- package/assets/esri/core/workers/chunks/199a7f97916679e0257c.js +0 -1
- package/assets/esri/core/workers/chunks/1d96fbad881a7d14a950.js +0 -1
- package/assets/esri/core/workers/chunks/1dc6f093028530a492e6.js +0 -1
- package/assets/esri/core/workers/chunks/2cd60fd062d954322c1f.js +0 -1
- package/assets/esri/core/workers/chunks/2d3e0e4442dbc6ec6def.js +0 -1
- package/assets/esri/core/workers/chunks/2f5d014d6a72108b0b3a.js +0 -1
- package/assets/esri/core/workers/chunks/3105336a05f38a95ebea.js +0 -1
- package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +0 -1
- package/assets/esri/core/workers/chunks/4fb2fcc95f852bf8f86c.js +0 -1
- package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +0 -1
- package/assets/esri/core/workers/chunks/5f787809b74eed7b9a91.js +0 -1
- package/assets/esri/core/workers/chunks/6a7de221cea4426cb490.js +0 -1
- package/assets/esri/core/workers/chunks/7a0b4dc0cda190367a39.js +0 -1
- package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +0 -1
- package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +0 -1
- package/assets/esri/core/workers/chunks/9bc3afe7013ef4ae737b.js +0 -1
- package/assets/esri/core/workers/chunks/bab1d010970d98c25470.js +0 -1
- package/assets/esri/core/workers/chunks/c4f78a481f43cfae7b63.js +0 -1
- package/assets/esri/core/workers/chunks/dcf6024dc19428ff2b9d.js +0 -1
- package/assets/esri/core/workers/chunks/e04fb83ab2634bc15cc7.js +0 -1
- package/assets/esri/core/workers/chunks/ee0dc906cc7979080329.js +0 -1
- package/assets/esri/core/workers/chunks/f0d0ed155275c2e6d3da.js +0 -1
- package/chunks/boundedPlane.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3642],{69540(e,t,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},l=new Map;for(let t in i){let o=i[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,s.TU)(h,e),null!=h&&null==d)continue;0===a?l.set(t,d):r[t]=d}let u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>m,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=i(32198),r=i(69622),s=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))}async function h(e,t,i){return(await(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>I,Bw:()=>s,C:()=>o,Cc:()=>F,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>w,Qr:()=>d,Re:()=>u,S8:()=>v,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>P,ei:()=>A,fw:()=>z,gL:()=>C,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>h,m3:()=>b,oW:()=>D,t2:()=>R,tn:()=>c,ze:()=>S});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function M(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function b(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function F(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function C(e,t,i){return z(e,t,i[0],i[1],i[2],i[3])}function z(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,m=r*u-i*d,f=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*m,e[2]=l+d*p+2*f,e}const B=(0,n.vt)(),E=(0,n.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function D(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,q=h,N=d,Z=_,j=M,L=s,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){v(B,e),v(E,t);let i=w(B,E);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:I,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:D,dist:Z,distance:_,div:N,divide:d,dot:w,equals:P,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:x,len:L,length:s,lerp:F,max:p,min:f,mul:q,multiply:h,negate:S,normalize:v,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/L(e))},set:a,sign:m,sqrDist:j,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:C,transformQuatValues:z},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,L,"jb",0,O,"lo",0,j,"uE",0,k])},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),x.prune(),v.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(M(e,i))for(S.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;M(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):S.push(s))}i=S.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!M(e,t))return!1;for(S.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(M(e,s)){if(t.leaf||_(e,s))return!0;S.push(r)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(v.clear(),w.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(v.push(i),w.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);b(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);v.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=f(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),d(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,v,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(x.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else x.pushArray(i.children);i=x.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function M(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const S=new s.A,x=new s.A,v=new s.A,w=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var n=i(44208),r=i(34275);function s(e){if(!e)return 0;let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let i=c;for(let n=0;n<t;n++)i+=a(e[n]);return i}(e);let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):d;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,t):0:0}function h(e,t){return c+e.length*t}const d=32,c=16,m=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,f=145;i.d(t,["JY",0,m])},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>u});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,m)}function u(e,t,i={}){return h(e,t,i,f)}function h(e,t,i={},n){let r=null,o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return r}function d(e,t,i,o={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,s.xt)(h),i(e)}let m=l(e,(e,i)=>{d(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var n=i(4718),r=i(62788),s=i(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(97770),r=(i(98623),i(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,s="system"){if("unknown"===i)return e;let o=new r.oh((0,n.wj)(s)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),m=i(47610),f=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var n,r=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),m=i(43937);let f=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths")),this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,r.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,r.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,i){i.d(t,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var n=i(34275),r=i(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);let i=s(e.length+t.length);for(let t=0;t<e.length;++t)i[t]=e[t];for(let n=0;n<t.length;++n)i[e.length+n]=t[n];return i}function u(e){return[...e]}function h(e){let t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>T,C:()=>o,DC:()=>c,Ej:()=>M,Ie:()=>I,Jt:()=>F,Lu:()=>S,Ne:()=>x,RF:()=>d,TF:()=>g,VL:()=>f,aI:()=>C,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>m,is:()=>A,pg:()=>b,uJ:()=>y,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=B){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return w(n,z),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,i,n]){!function(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}(e,t,i,n)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=f(e),i=y(e),n=p(e);return t*t+i*i+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function M(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function S(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function x(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function v(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function I(e){return e?w(e,z):s(z)}function F(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function A(e){return 6===e.length}function C(e,t,i){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const z=[1/0,1/0,1/0,-1/0,-1/0,-1/0],B=[0,0,0,0,0,0];s(),i.d(t,["qv",0,z,"v_",0,B])},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>z,F8:()=>C,J2:()=>I,Yq:()=>T,_m:()=>F,iS:()=>A,wj:()=>B});var n=i(66552),r=i(73444),s=i(98623),o=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},M={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...f},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let e=(0,r.lR)();return(e&&S[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let v=new WeakMap;const w=M["short-date-short-time"];function I(e){return M[e]}function F(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=w){return function(e){let t=v.get(e);if(!t){let i=x(),n=B(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),v.set(e,t)}return t}(t).format(e)}function A(e,t=w){return T(new Date(e),{...t,...u,...l})}function C(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function z(e,t=w){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:x()})}function B(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{v=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>f});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,n.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>m});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(37730);const c=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},71202(e,t,i){i.r(t),i.d(t,{default:()=>b});var n=i(56507),r=i(60999),s=i(49186),o=i(53966),a=i(17676),l=i(60408),u=i(21325),h=i(90708),d=i(83221),c=i(31464),m=i(75752),f=i(85113),p=i(64714),y=i(82832),g=i(95466),_=i(98453),M=i(30524);i(98623);class b{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{let t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};let i=[],[n]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),r=(0,f.BM)(n,{geometryType:e.geometryType}),o=e.fields||r.fields||[],a=null==e.hasZ?r.hasZ:e.hasZ,l=r.geometryType,h=!l,c=e.objectIdField||r.objectIdFieldName||"__OBJECTID",b=e.spatialReference||u.KK,S=e.timeInfo;o===r.fields&&r.unknownFields.length>0&&i.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:r.unknownFields}});let x=new g.A(o),v=x.dateFields.length>0,w=x.get(c);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,c=w.name):(w={alias:c,name:c,type:"string"===r.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));let I={};for(let e of o){if(e.name??=e.alias,e.alias??=e.name,!e.name)throw new s.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.m.jsonValues.includes(e.type))throw new s.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){let t=(0,M.lD)(e);void 0!==t&&(I[e.name]=t)}e.length??=(0,M._b)(e)}if(S){if(S.startTimeField){let e=x.get(S.startTimeField);e?(S.startTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.startTimeField=null}if(S.endTimeField){let e=x.get(S.endTimeField);e?(S.endTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.endTimeField=null}if(S.trackIdField){let e=x.get(S.trackIdField);e?S.trackIdField=e.name:(S.trackIdField=null,i.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}!S.startTimeField&&!S.endTimeField&&(i.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}let F=l?(0,p.F0)(l):void 0,T=v?{timeZoneIANA:"UTC"}:null,A={warnings:i,featureErrors:[],layerDefinition:{...h?y.Xn:y.CI,drawingInfo:F??void 0,templates:(0,p.e2)(I),extent:void 0,geometryType:l,objectIdField:c,fields:o,hasZ:!!a,timeInfo:S,dateFieldsTimeReference:T}};this._featureIdInfo={type:"object-id",fieldName:c},this._queryEngine=new m.do({fieldsIndex:g.A.fromLayerJSON({fields:o,timeInfo:S,dateFieldsTimeReference:T}),geometryType:l,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:b,timeInfo:S,featureStore:new d.A({geometryType:l,hasM:!1,hasZ:a})});let C=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);C>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(C,1),this._createDefaultAttributes=(0,p.Vx)(I,c);let z=this._createFeatures(n);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,z);let B=this._normalizeFeatures(z,A.featureErrors);this._queryEngine.featureStore.addMany(B);let{fullExtent:E,timeExtent:R}=await this._queryEngine.fetchRecomputedExtents();if(A.layerDefinition.extent=E,R){let{start:e,end:t}=R;A.layerDefinition.timeInfo.timeExtent=[e,t]}return A}async applyEdits(e){let{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,y.$1)(t,i),(0,c.Nk)(e.adds,t),(0,c.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);let t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,a.zf)(e)||o.A.getLogger("esri.layers.GeoJSONLayer").error(new s.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();let{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}_createFeatures(e){if(null==e)return[];let{geometryType:t,hasZ:i}=this._queryEngine,n=this._featureIdInfo.fieldName,r=(0,f.bd)(e,{geometryType:t,hasZ:i,objectIdField:n});if(!(0,u.aI)(this._queryEngine.spatialReference,u.KK))for(let e of r)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,c.Cv)((0,h.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),u.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){let{url:t,customParameters:i}=this._loadOptions,r=(await(0,n.A)(t??"",{responseType:"json",query:{...i},signal:e})).data;return(0,f.sO)(r),r}_normalizeFeatures(e,t){let{fieldsIndex:i}=this._queryEngine,n=[],r=this._featureIdInfo.fieldName;for(let s of e){let e=this._createDefaultAttributes(),o=(0,y.MB)(i,e,s.attributes,!0);o?t?.push(o):(this._assignObjectId(e,s.attributes,!0),s.attributes=e,s.objectId=e[r],n.push(s))}return n}async _applyEdits(e){let{adds:t,updates:i,deletes:n}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),i?.length&&this._applyUpdateEdits(r,i),n?.length){for(let e of n)r.deleteResults.push((0,y.bP)(e));this._queryEngine.featureStore.removeManyById(n)}let{fullExtent:s,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:s,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){let{addResults:i}=e,{geometryType:n,hasM:r,hasZ:s,spatialReference:o,featureStore:a,fieldsIndex:u}=this._queryEngine,d=this._featureIdInfo.fieldName,m=[];for(let r of t){if(r.geometry&&n!==(0,l.$B)(r.geometry)){i.push((0,y.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),s=(0,y.MB)(u,t,r.attributes);if(s)i.push(s);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){let t=r.attributes[d];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){let e=r.geometry.spatialReference??o;r.geometry=(0,c.Cv)((0,y.CR)(r.geometry,e),e,o)}m.push(r),i.push((0,y.bP)(r.attributes[d]))}}a.addMany((0,h.Di)([],m,n,s,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:s,featureStore:o,fieldsIndex:a}=this._queryEngine,u=this._featureIdInfo.fieldName;for(let d of t){let{attributes:t,geometry:m}=d,f=t?.[u];if(null==f){e.push((0,y.Yx)(`Identifier field ${u} missing`));continue}if(!o.has(f)){e.push((0,y.Yx)(`Feature with object id ${f} missing`));continue}let p=(0,h.oN)(o.getFeature(f),i,r,n);if(null!=m){if(i!==(0,l.$B)(m)){e.push((0,y.Yx)("Incorrect geometry type."));continue}let t=m.spatialReference??s;p.geometry=(0,c.Cv)((0,y.CR)(m,t),t,s)}if(t){let i=(0,y.MB)(a,p.attributes,t);if(i){e.push(i);continue}}o.add((0,h.E2)(p,i,r,n,this._featureIdInfo)),e.push((0,y.bP)(f))}}_createObjectIdGenerator(e,t){let i=this._featureIdInfo.fieldName,n=e.fieldsIndex.get(i);if("esriFieldTypeString"===n.type)return()=>n.name+"-"+Date.now().toString(16);let r=-1/0;for(let e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,i=!1){let n=this._featureIdInfo.fieldName;e[n]=i&&n in t?t[n]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,c.Nk)(u.KK,e)}catch{throw new s.A("geojson-layer","Projection not supported")}}}},85113(e,t,i){i.d(t,{BM:()=>I,bd:()=>F,sO:()=>w,xD:()=>d});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),a=i(43334),l=i(92722),u=i(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return h[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function f(e){for(let t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let i=0;i<e.length;i++){let n=e[i],r=e[(i+1)%e.length];t+=n[0]*r[1]-r[0]*n[1]}return t<=0}function y(e){let t=e[0],i=e[e.length-1];(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2])&&e.push(t)}function g(e,t){let{coordinates:i,type:n}=e,r=t.hasZ??!1;switch(n){case"Point":return new l.A([],[...i],r,!1);case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],r,!1);for(let t of"Polygon"===n?[i]:i){_(e,t[0],r);for(let i=1;i<t.length;i++)M(e,t[i],r)}return e}}}function _(e,t,i){y(t),function(e){return!p(e)}(t)?S(e,t,i):b(e,t,i)}function M(e,t,i){y(t),function(e){return p(e)}(t)?S(e,t,i):b(e,t,i)}function b(e,t,i){for(let n of t)x(e,n,i);e.lengths.push(t.length)}function S(e,t,i){for(let n=t.length-1;n>=0;n--)x(e,t[n],i);e.lengths.push(t.length)}function x(e,[t,i,n],r){e.coords.push(t,i),r&&e.coords.push(n||0)}function v(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:i}=e;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function I(e,t={}){let i,n=[],r=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of c(e)){let{geometry:e,properties:c,id:p}=t;if((!e||(h||=d(e.type),d(e.type)===h))&&(o||=f(m(e)),l||(l=null!=p,l&&(i=typeof p,c&&(a=Object.keys(c).filter(e=>c[e]===p)))),c&&a&&l&&null!=p&&(a.length>1?a=a.filter(e=>c[e]===p):1===a.length&&(a=c[a[0]]===p?a:[])),c))for(let e in c){if(r.has(e))continue;let t=v(c[e]);if("unknown"===t){s.add(e);continue}s.delete(e),r.add(e);let i=(0,u.rS)(e);i&&n.push({name:i,alias:e,type:t})}}let p=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(p)for(let e of n)if(e.name===p&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:p,objectIdFieldType:i,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){let{geometryType:i,objectIdField:n}=t;for(let r of e){let{geometry:e,properties:s,id:o}=r;if(e&&d(e.type)!==i)continue;let l,u=s||{};n&&(l=u[n],null!=o&&!l&&(u[n]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(c(e),t))}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const m={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},f={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?m:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?f:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>_,CR:()=>g,MB:()=>f,Yx:()=>h,bP:()=>c});var n=i(67482),r=i(18370),s=i(60408),o=i(21325),a=i(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function f(e,t,i,n=!1){m.clear();for(let r in i){let s=e.get(r);if(!s)continue;let o=p(s,i[r]);if(m.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,a.WA)(e)&&"string"==typeof t?i=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,a.vE)(e)&&"string"==typeof t&&(i=(0,n._)(t)),(0,a.WX)(i)}const y=(0,r.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let i=y.module;if(null==i)throw TypeError("simplify operator not loaded");return i.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const M={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:M},S={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...M,supportedStatisticTypes:M.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};i.d(t,["CI",0,b,"Xn",0,S])},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):d??"UTC":null,m=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,l.ZS)(n.timeReference):d:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),c],[(0,o.NF)(r?.editDateField??""),c],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,a.L);else{let e=f.get((0,o.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9315],{69540(e,t,r){var i=r(32198),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let r=e,n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,n={},l=new Map;for(let t in r){let o=r[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):n[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=h(n.A);r.d(t,["OU",0,h,"Pw",0,c])},66344(e,t,r){r.d(t,{q:()=>a});const i=!!(0,r(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,r,n,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==r&&this._notifyRemove(t,a.entry,a.size,0)),n>this._maxSize)return void this._notifyRemove(t,r,n,0);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return i||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,r,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(r,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;let r=this._db.get(t);if(!r)return;this._size-=r.size,e.size-=r.size;let i=r.entry.usedMemory;for(;i>this._maxSize;){let e=this._notifyRemove(t,r.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}r.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;let r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;let r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){let r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=[];this._db.forEach((e,i)=>{let n=e.lifetime;r[n]=(r[n]||0)+e.size,this._clients.forEach(r=>{let{id:n,name:s}=r;if(i.startsWith(n)){let r=t[s]||0;t[s]=r+e.size}})});let i={};this._clients.forEach(e=>{let r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let n=t[r]||0;t[r]=n,i[r]=Math.round(100*e.hitRate)+"%"}else i[r]="0%"});let n=Object.keys(t);n.sort((e,r)=>t[r]-t[e]),n.forEach(r=>e[r]=Math.round(t[r]/2**20)+"MB / "+i[r]);for(let t=r.length-1;t>=0;--t){let i=r[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,r]of this._db)t.startsWith(e.id)&&(yield r.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,i){let n=this._clients.get(e.split(o)[0])?.removeFunc,s=n?.(t,i,r);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let r=t??this;if(r.size<=e)return;let i=t?.id,n=!0;for(;n;){n=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!i||s.startsWith(i))){let i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,i),r.size<=.9*e)return;n||=this._db.has(s)}}for(let[n,s]of this._db)if(!i||n.startsWith(i)){let i=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,s,i),r.size<=.9*e)return}}_purgeItem(e,t,r){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);let i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,r&&(r.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class s{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new n(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,r){r.d(t,{DZ:()=>m,Ke:()=>p,QA:()=>f,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var i=r(32198),n=r(69622),s=r(97768),o=r(17676),a=r(10107),l=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function h(e,t,r){return(await(0,o.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function m(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},67482(e,t,r){function i(e){return null!==n(e)}function n(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let r=t.groups,i=+r.year,n=r.month-1,o=+r.day,a=+(r.hours??"0"),l=+(r.minutes??"0"),u=+(r.seconds??"0");if(a>23||l>59||u>59)return null;let h,c=r.ms??"0",d=c?+c.padEnd(3,"0").slice(0,3):0;if(r.isUTC||!r.offsetSign)h=Date.UTC(i,n,o,a,l,u,d);else{let e=+r.offsetHours,t=+r.offsetMinutes;h=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,o,a,l,u,d)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),r=t.getTime();return Number.isNaN(r)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?r:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}r.d(t,{C:()=>i,_:()=>n});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,o,a,l,u,h,c,d,p,m,f){return[e,t,r,i,n,s,o,a,l,u,h,c,d,p,m,f]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,s])},35522(e,t,r){r.d(t,{$A:()=>C,Bw:()=>s,C:()=>o,Cc:()=>T,DI:()=>M,Io:()=>_,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>v,T9:()=>f,WQ:()=>l,Z0:()=>A,_S:()=>p,aI:()=>N,ei:()=>F,fw:()=>I,gL:()=>R,hG:()=>w,hZ:()=>a,hs:()=>y,jk:()=>m,lw:()=>h,m3:()=>b,oW:()=>B,t2:()=>E,tn:()=>d,ze:()=>x});var i=r(51850),n=r(34304);function s(e){let t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function _(e,t){let r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function w(e,t){let r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function b(e){let t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function x(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t=e){let r=t[0],i=t[1],n=t[2],s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,r){let i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=n*l-s*a,e[1]=s*o-i*l,e[2]=i*a-n*o,e}function T(e,t,r,i){let n=t[0],s=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=o+i*(r[2]-o),e}function A(e,t,r){let i=t[0],n=t[1],s=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12],e[1]=r[1]*i+r[5]*n+r[9]*s+r[13],e[2]=r[2]*i+r[6]*n+r[10]*s+r[14],e}function F(e,t,r){let i=t[0],n=t[1],s=t[2];return e[0]=i*r[0]+n*r[3]+s*r[6],e[1]=i*r[1]+n*r[4]+s*r[7],e[2]=i*r[2]+n*r[5]+s*r[8],e}function R(e,t,r){return I(e,t,r[0],r[1],r[2],r[3])}function I(e,t,r,i,n,s){let o=t[0],a=t[1],l=t[2],u=i*l-n*a,h=n*o-r*l,c=r*a-i*o,d=i*c-n*h,p=n*u-r*c,m=r*h-i*u,f=2*s;return e[0]=o+u*f+2*d,e[1]=a+h*f+2*p,e[2]=l+c*f+2*m,e}const P=(0,i.vt)(),z=(0,i.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function N(e,t){if(e===t)return!0;let r=e[0],i=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function B(e,t,r){let i=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2],o=i*i+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,D=h,k=c,j=_,L=w,Z=s,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){v(P,e),v(z,t);let r=S(P,z);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,i,n,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,c=3*l*o,d=l*s;return e[0]=t[0]*u+r[0]*h+i[0]*c+n[0]*d,e[1]=t[1]*u+r[1]*h+i[1]*c+n[1]*d,e[2]=t[2]*u+r[2]*h+i[2]*c+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:o,cross:C,crossAndNormalize:function(e,t,r){let i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=n*l-s*a,h=s*o-i*l,c=i*a-n*o,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:B,dist:j,distance:_,div:k,divide:c,dot:S,equals:N,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*h,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*h,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*h,e},inverse:M,len:Z,length:s,lerp:T,max:f,min:m,mul:D,multiply:h,negate:x,normalize:v,random:function(e,t=1){let r=n.Ov,i=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=s*t,e},rotateX:function(e,t,r,i){let n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,i){let n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,i){let n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/Z(e))},set:a,sign:p,sqrDist:L,sqrLen:q,squaredDistance:w,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:F,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:R,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,Z,"jb",0,O,"lo",0,L,"uE",0,q])},75503(e,t,r){r.d(t,{wq:()=>a});var i=r(4576),n=r(21818),s=(r(44208),r(15142)),o=r(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),M.prune(),v.prune(),S.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data,i=this._toBBox;if(w(e,r))for(x.clear();r;){for(let n=0,s=r.children.length;n<s;n++){let s=r.children[n],o=r.leaf?i(s):s;w(e,o)&&(r.leaf?t(s):_(e,o)?l(s,t):x.push(s))}r=x.pop()}}collides(e){let t=this._data,r=this._toBBox;if(!w(e,t))return!1;for(x.clear();t;){for(let i=0,n=t.children.length;i<n;i++){let n=t.children[i],s=t.leaf?r(n):n;if(w(e,s)){if(t.leaf||_(e,s))return!0;x.push(n)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,r=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(v.clear(),S.clear();r||v.length>0;){if(r||(r=v.pop(),s=v.data[v.length-1],o=S.pop()??0,a=!0),r.leaf&&(t=(0,i.qh)(r.children,(0,n.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),v.push(r),this._condense(v),this;a||r.leaf||!_(r,l)?s?(o++,r=s.children[o],a=!1):r=null:(v.push(r),S.push(o),o=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,i){let n=r-t+1,s=this._maxEntries;if(n<=s){let i=new A(e.slice(t,r+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/s**(i-1)));let o=new F([]);o.height=i;let a=Math.ceil(n/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,r,l,this._compareMinX);for(let n=t;n<=r;n+=l){let t=Math.min(n+l-1,r);b(e,n,t,a,this._compareMinY);for(let r=n;r<=t;r+=a){let n=Math.min(r+a-1,t);o.children.push(this._build(e,r,n,i-1))}}return u(o,this._toBBox),o}_insert(e,t,r){let i=this._toBBox,n=r?e:i(e);v.clear();let s=function(e,t,r,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==r;){let r,i=1/0,n=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=m(o),l=y(e,o)-a;l<n?(n=l,i=a<i?a:i,r=o):l===n&&a<i&&(i=a,r=o)}t=r||t.children[0]}return t}(n,this._data,t,v);for(s.children.push(e),c(s,n);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,r){for(let i=r;i>=0;i--)c(t.data[i],e)}(n,v,t)}_split(e,t){let r=e.data[t],i=r.children.length,n=this._minEntries;this._chooseSplitAxis(r,n,i);let s=this._chooseSplitIndex(r,n,i);if(!s)return;let o=r.children.splice(s,r.children.length-s),a=r.leaf?new A(o):new F(o);a.height=r.height,u(r,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(r,a)}_splitRoot(e,t){this._data=new F([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let i,n,s;i=n=1/0;for(let o=t;o<=r-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,r,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,s=o,n=u<n?u:n):l===i&&u<n&&(n=u,s=o)}return s}_chooseSplitAxis(e,t,r){let i=e.leaf?this._compareMinX:d,n=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,n)&&e.children.sort(i)}_allDistMargin(e,t,r,i){e.children.sort(i);let n=this._toBBox,s=h(e,0,t,n),o=h(e,r-t,r,n),a=f(s)+f(o);for(let i=t;i<r-t;i++){let t=e.children[i];c(s,e.leaf?n(t):t),a+=f(s)}for(let i=r-t-1;i>=t;i--){let t=e.children[i];c(o,e.leaf?n(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let r=e.data[t];if(0===r.children.length)if(t>0){let n=e.data[t-1],s=n.children;s.splice((0,i.qh)(s,r,s.length,n.indexHint),1)}else this.clear();else u(r,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let r=e;for(M.clear();r;){if(!0===r.leaf)for(let e of r.children)t((0,n.z)(e));else M.pushArray(r.children);r=M.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,r,i,n){n||=new A([]),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let s,o=t;o<r;o++)s=e.children[o],c(n,e.leaf?i(s):s);return n}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,n-r)*Math.max(0,s-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,r,i,n){let s=[t,r];for(;s.length;){let t=s.pop(),r=s.pop();if(t-r<=i)continue;let a=r+Math.ceil((t-r)/i/2)*i;(0,o.q)(e,a,r,t,n),s.push(r,a,a,t)}}const x=new s.A,M=new s.A,v=new s.A,S=new s.A({deallocator:void 0});class C{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class T extends C{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class A extends T{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends T{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var i=r(44208),n=r(34275);function s(e){if(!e)return 0;let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let r=d;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,n.iu)(e)?e.byteLength+m:Array.isArray(e)?h(e,t):0:0}function h(e,t){return d+e.length*t}const c=32,d=16,p=(0,i.A)("ios")||!(0,i.A)("chrome")&&!(0,i.A)("opr")?8:4,m=145;r.d(t,["JY",0,p])},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return h(e,t,r,p)}function u(e,t,r={}){return h(e,t,r,m)}function h(e,t,r={},i){let n=null,o=r.once?(e,r)=>{i(e)&&((0,s.xt)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){let t=e();o(t,t)}return n}function c(e,t,r,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),r(e)}let p=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,n.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());let i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,s="system"){if("unknown"===r)return e;let o=new n.oh((0,i.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let i=e.getTime(),n=c(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,i.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(i)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}},48526(e,t,r){r.d(t,{A:()=>y});var i,n=r(32198),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),d=r(90634),p=r(47610),m=r(56993),f=r(43937);let y=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=c.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:n}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,n.Cg)([(0,f.K)("points")],y.prototype,"writePoints",null),y=i=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>m});var i,n=r(32198),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),d=r(56993),p=r(43937);let m=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=h.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,r){r.d(t,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var i=r(34275),n=r(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);let r=s(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let i=0;i<t.length;++i)r[e.length+i]=t[i];return r}function u(e){return[...e]}function h(e){let t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>A,C:()=>o,DC:()=>d,Ej:()=>w,Ie:()=>C,Jt:()=>T,Lu:()=>x,Ne:()=>M,RF:()=>c,TF:()=>g,VL:()=>m,aI:()=>R,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>S,iT:()=>p,is:()=>F,pg:()=>b,uJ:()=>y,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>f}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=P){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,i,n,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=o,a}function l(e,t=s()){return function(e,t,r,i=s()){return S(i,I),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,o,a,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=s,t[9]=r,t[10]=a,t[11]=l,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,[t,r,i]){!function(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}(e,t,r,i)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function f(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=m(e),r=y(e),i=f(e);return t*t+r*r+i*i}function _(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+f(e)/2,t[2]=e[2]+y(e)/2,t}function w(e,t=[0,0,0]){return t[0]=m(e),t[1]=f(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function x(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function M(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function v(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function C(e){return e?S(e,I):s(I)}function T(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function A(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function F(e){return 6===e.length}function R(e,t,r){if(null==e||null==t)return e===t;if(!F(e)||!F(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];s(),r.d(t,["qv",0,I,"v_",0,P])},46329(e,t,r){r.d(t,{y:()=>c});var i=r(49186),n=r(4305),s=r(513),o=r(50954),a=r(52006),l=r(49663),u=r(46068),h=r(59803);function c(e,t,r){if((0,a.Xq)(t))return(0,h.T)(e,t,r);if((0,a.n1)(t)){let s=(0,n.m_)(e,t,r)[0];if(null==s)throw new i.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let i=(0,o.pM)(e,t);return(0,s.fM)(i,r)}if((0,a.DA)(t)){let i=(0,l.io)(e,t);return(0,s.fM)(i,r)}let c=(0,u.SW)(e,t);return(0,u.pb)(c,r)}},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>h,xD:()=>d});var i=r(5443),n=r(91075),s=r(48526),o=r(86738),a=r(39829),l=r(82799),u=r(60408);function h(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),o=r(48526),a=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},p=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,p,"yR",0,d])},97770(e,t,r){r.d(t,{Ey:()=>I,F8:()=>R,J2:()=>C,Yq:()=>A,_m:()=>T,iS:()=>F,wj:()=>P});var i=r(66552),n=r(73444),s=r(98623),o=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},y={hourCycle:"h23"},g={...m,...y},_={...f,...y},w={"short-date":h,"short-date-short-time":{...h,...m},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...m},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...f},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,..._},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...g},"long-date-long-time":{...p,...f},"long-date-long-time-24":{...p,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},b=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function M(){let e=(0,n.lR)();return(e&&x[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let v=new WeakMap;const S=w["short-date-short-time"];function C(e){return w[e]}function T(e){let{dateStyle:t,timeStyle:r,hour12:i,year:n,month:s}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=s||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===i?void 0:"always"===i),o}function A(e,t=S){return function(e){let t=v.get(e);if(!t){let r=M(),i=P(e.timeZone??"system"),n={...e,timeZone:i};t=new Intl.DateTimeFormat(r,n),v.set(e,t)}return t}(t).format(e)}function F(e,t=S){return A(new Date(e),{...t,...u,...l})}function R(e,t=S){return A(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function I(e,t=S){let r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return A(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:i};return r.toLocaleString(n,{locale:M()})}function P(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,n.Ml)(()=>{v=new WeakMap}),r.d(t,["_v",0,b])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>y,QC:()=>c,lR:()=>h,oQ:()=>m});var i=r(36563);let n;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===n&&(n=a()),n}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const f=[];function y(e){return f.push(e),(0,i.hA)(()=>f.splice(f.indexOf(e),1))}function g(){let e=a();n!==e&&([...f].forEach(t=>t(e)),n=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,r){r.d(t,{F:()=>a});var i=r(44208),n=r(75503),s=r(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((r,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,r){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,r)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,r){r.d(t,{A:()=>p});var i=r(4576),n=r(49186),s=r(65529),o=r(53966),a=r(70328),l=r(19419),u=r(90708),h=r(6518),c=r(37730);const d=(0,a.vt)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,r,i,n]=this.fullBounds;return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let r of e){let e=this._boundsStore.get(r.objectId);e&&t((0,a.Jt)(d,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let r,i=this._featuresById.get(t);i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(r=(0,u.jQ)(r??(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let r=this._featuresById.get(t);if(!r)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0;let{geometry:i,attributes:s}=e;for(let e in s)r.attributes[e]=s[e];return i&&(r.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(r)??0,r}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,r){var i=r(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,r)=>new i.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};r.d(t,["T",0,n])},33771(e,t,r){r.r(t),r.d(t,{default:()=>b});var i=r(60999),n=r(49186),s=r(53966),o=r(34727),a=r(17676),l=r(67076),u=r(21325),h=r(90708),c=r(83221),d=r(31464),p=r(75752),m=r(85113),f=r(82832),y=r(34322),g=r(95466),_=r(54218);r(98623);const w="esri.layers.WFSLayer";class b{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){let{getFeatureUrl:r,getFeatureOutputFormat:i,fields:s,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:h,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:b}=(0,y.UH)(r,l,e.spatialReference);try{await(0,d.Nk)(b,w)}catch{throw new n.A("unsupported-projection","Projection not supported",{inSpatialReference:b,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:"UTC"}:null}),this._geometryType=o,this._getFeatureUrl=r,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=b,this._maxRecordCount=u,this._maxTotalRecordCount=h,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=w;let M=await this._snapshotFeatures(t);if(M.errors.length>0&&(this._supportsPagination=!1,M=await this._snapshotFeatures(t),M.errors.length>0))throw M.errors[0];let v={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:v,spatialReference:w,timeInfo:null,featureStore:new c.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(M.features),{warnings:x(M),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new n.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(let t of x(e))s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){let t=e?.signal,r=this._maxTotalRecordCount,i=this._maxPageCount,n=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0,s=[],l=[];if(null==n)try{s=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{let e=function*(e,t,r){for(let i=0;i<t;i++)yield e._pageQuery(i,r)}(this,(0,o.qE)(Math.ceil(Math.min(n,r)/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,r){let i=e.next();for(;!i.done;){try{let e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||r.push(e)}i=e.next()}}(e,s,l)))}return(0,a.Te)(t),{features:s,totalRecordCount:n,maxTotalRecordCount:r,maxPageCount:i,errors:l}}async _singleQuery(e){let t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,r=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(r,{signal:e})}async _pageQuery(e,t){let r=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:r,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:r,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);let{startIndex:r,signal:i}=t;(0,a.Te)(i);let n=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(let e of n)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,d.Cv)((0,h.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let s=r??1;for(let e of n){let t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,t[this._objectIdField]??(e.objectId=t[this._objectIdField]=s++)}return n}}function x(e){let t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},85113(e,t,r){r.d(t,{BM:()=>C,bd:()=>T,sO:()=>S,xD:()=>c});var i=r(67482),n=r(49186),s=r(21325),o=r(90708),a=r(43334),l=r(92722),u=r(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return h[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function m(e){for(let t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let r=0;r<e.length;r++){let i=e[r],n=e[(r+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function y(e){let t=e[0],r=e[e.length-1];(t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2])&&e.push(t)}function g(e,t){let{coordinates:r,type:i}=e,n=t.hasZ??!1;switch(i){case"Point":return new l.A([],[...r],n,!1);case"LineString":return(0,o.Ap)({paths:[r],hasZ:!0},n,!1);case"MultiLineString":return(0,o.Ap)({paths:r,hasZ:!0},n,!1);case"MultiPoint":return(0,o.PR)({points:r,hasZ:!0},n,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],n,!1);for(let t of"Polygon"===i?[r]:r){_(e,t[0],n);for(let r=1;r<t.length;r++)w(e,t[r],n)}return e}}}function _(e,t,r){y(t),function(e){return!f(e)}(t)?x(e,t,r):b(e,t,r)}function w(e,t,r){y(t),function(e){return f(e)}(t)?x(e,t,r):b(e,t,r)}function b(e,t,r){for(let i of t)M(e,i,r);e.lengths.push(t.length)}function x(e,t,r){for(let i=t.length-1;i>=0;i--)M(e,t[i],r);e.lengths.push(t.length)}function M(e,[t,r,i],n){e.coords.push(t,r),n&&e.coords.push(i||0)}function v(e){switch(typeof e){case"string":return(0,i.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e,t=4326){if(!e)throw new n.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:r}=e;if(!r)return;let i="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new n.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function C(e,t={}){let r,i=[],n=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of d(e)){let{geometry:e,properties:d,id:f}=t;if((!e||(h||=c(e.type),c(e.type)===h))&&(o||=m(p(e)),l||(l=null!=f,l&&(r=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(let e in d){if(n.has(e))continue;let t=v(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),n.add(e);let r=(0,u.rS)(e);r&&i.push({name:r,alias:e,type:t})}}let f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(let e of i)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:i,geometryType:h,hasZ:o,objectIdFieldName:f,objectIdFieldType:r,unknownFields:Array.from(s)}}function T(e,t){return Array.from(function*(e,t={}){let{geometryType:r,objectIdField:i}=t;for(let n of e){let{geometry:e,properties:s,id:o}=n;if(e&&c(e.type)!==r)continue;let l,u=s||{};i&&(l=u[i],null!=o&&!l&&(u[i]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(d(e),t))}},82832(e,t,r){r.d(t,{$1:()=>_,CR:()=>g,MB:()=>m,Yx:()=>h,bP:()=>d});var i=r(67482),n=r(18370),s=r(60408),o=r(21325),a=r(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class c{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new c(e)}const p=new Set;function m(e,t,r,i=!1){p.clear();for(let n in r){let s=e.get(n);if(!s)continue;let o=f(s,r[n]);if(p.add(s.name),s&&(i||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!p.has(t.name))return h(`missing required field "${t.name}"`);return null}function f(e,t){let r=t;return(0,a.WA)(e)&&"string"==typeof t?r=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?r=String(t):(0,a.vE)(e)&&"string"==typeof t&&(r=(0,i._)(t)),(0,a.WX)(r)}const y=(0,n.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(3456)]).then(()=>r(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let r=y.module;if(null==r)throw TypeError("simplify operator not loaded");return r.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const w={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:w},x={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...w,supportedStatisticTypes:w.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};r.d(t,["CI",0,b,"Xn",0,x])},34322(e,t,r){r.d(t,{E:()=>B,Fu:()=>M,O8:()=>F,UH:()=>j,YW:()=>R,mG:()=>A,x$:()=>E});var i=r(56507),n=r(49186),s=r(5479),o=r(84952),a=r(5443),l=r(99917),u=r(16930),h=r(21325),c=r(50498),d=r(85113),p=r(13043),m=r(60694),f=r(20437),y=r(30524);const g="xlink:href",_="2.0.0",w="__esri_wfs_id__",b="wfs-layer:feature-type-not-found",x="wfs-layer:unknown-geometry-type";async function M(e,t){let r=function(e){let t=O(e);(function(e){let t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new n.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),k(t);let r=t.firstElementChild,i=(0,s.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{let t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,p.p)(e,{Name:e=>{let{name:r,prefix:i}=D(e.textContent);t.typeName=`${i}:${r}`,t.name=r,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,r,i,n;for(let s of e.children)switch(s.localName){case"LowerCorner":[t,r]=s.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,n]=s.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:h.KK}}(e))},DefaultCRS:e=>{let i=T(e);i&&(t.defaultSpatialReference=i,r.add(i))},OtherCRS:e=>{let t=T(e);t&&r.add(t)}}),t.title||=t.name,r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:C(r),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,r),r}const v=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function S(e){for(let t of v){let r=e.findIndex(e=>e.toLowerCase()===t);if(r>=0)return e[r]}return null}function C(e){let t=!0,r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],s=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),r.GetFeature.outputFormat=S(s)??S(i),!t)throw new n.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new n.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function T(e){let t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function A(e,t,r){return(0,s.I6)(e,e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t)}async function F(e,t,r,i={}){let{featureType:s,extent:o}=await async function(e,t,r,i={}){let s=e.readFeatureTypes(),o=t?A(s,t,r):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new n.A(b,`The type '${t}' could not be found in the service`):new n.A("wfs-layer:empty-service","The service is empty");let c=o.extent;if(c&&!(0,h.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,i),c=(0,l.project)(c,a)}catch{throw new n.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:o}}(e,t,r,i),{spatialReference:a}=j(e.operations.GetFeature.url,s,i.spatialReference),{fields:c,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,r,i={}){let{typeName:s}=t,[o,a]=await Promise.allSettled([P(e.operations.DescribeFeatureType.url,s,i),I(e,s,r,i)]),l=e=>{let t=`An error occurred while getting info about the feature type '${s}'`;return new n.A("wfs-layer:getWFSLayerTypeInfo-error",t,{error:e})};if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);let{fields:u,errors:h}=o.value??{},c=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new n.A(x,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:c,fields:u,errors:h});return{...R(u??[]),geometryType:c,swapXY:d}}(e,s,a,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:c,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function R(e){let t=e.find(e=>"geometry"===e.type),r=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),r||(r=new f.A({name:w,type:"oid",alias:w}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function I(e,t,r,n={}){let s,o=!1,[a,l]=await Promise.all([E(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...n,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:N(t,r,void 0,{...n,count:1}),signal:n?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}let t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){let r=e[0].toFixed(3),i=e[1].toFixed(3),n=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&i===n&&(o=!0)}}return{geometryType:s,swapXY:o}}async function P(e,t,r){return function(e,t){let{name:r}=D(e),i=O(t);k(i);let o=(0,s.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===r);if(null!=o){let e=o.getAttribute("type"),t=e?(0,s.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===D(e).name):(0,s.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){let t,r=[],i=[],s=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(let o of s){let s,a,l=o.getAttribute("name");if(!l)continue;if(o.hasAttribute("type")?s=D(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(s=D(e.getAttribute("base")).name,{maxLength:e=>{a=+e.getAttribute("value")}})}}),!s)continue;let u="true"===o.getAttribute("nillable"),h=!1;switch(s.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":i.push(new f.A({name:l,alias:l,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":i.push(new f.A({name:l,alias:l,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":i.push(new f.A({name:l,alias:l,type:"string",nullable:u,length:a??(0,y._b)("string")}));break;case"datetime":case"date":i.push(new f.A({name:l,alias:l,type:"date",nullable:u,length:a??(0,y._b)("date")}));break;case"pointpropertytype":t="point",h=!0;break;case"multipointpropertytype":t="multipoint",h=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":t="polyline",h=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":t="polygon",h=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":h=!0,r.push(new n.A(x,`geometry type '${s}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:r.push(new n.A("wfs-layer:unknown-field-type",`Unknown field type '${s}'`,{type:(new XMLSerializer).serializeToString(e)}))}h&&i.push(new f.A({name:l,alias:l,type:"geometry",nullable:u}))}for(let e of i)if("integer"===e.type&&!e.nullable&&z.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:t,fields:i,errors:r}}(t)}throw new n.A(b,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...r?.customParameters},signal:r?.signal})).data)}const z=new Set(["objectid","fid"]);async function E(e,t,r,s,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:N(t,r,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new n.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function N(e,t,r,i){let n="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+n,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function B(e,t,r){let n=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...r?.customParameters},signal:r?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(n.data);if(s?.groups)return+s.groups.numberMatched}function O(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function D(e){let[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function k(e){let t="",r="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new n.A(`wfs-layer:${t}`,r)}function j(e,t,r){let i={wkid:t.defaultSpatialReference},n=null==r?.wkid?i:{wkid:r.wkid};return{spatialReference:n,getFeatureSpatialReference:(0,m.Fi)(e)||n.wkid&&t.supportedSpatialReferences.includes(n.wkid)?{wkid:n.wkid}:{wkid:t.defaultSpatialReference}}}r.d(t,["i5",0,w])},13043(e,t,r){function i(e,t){if(e&&t)for(let r of e.children)if(r.localName in t){let e=t[r.localName];if("function"==typeof e){let t=e(r);t&&i(r,t)}else i(r,e)}}function*n(e,t){for(let r of e.children)if(r.localName in t){let e=t[r.localName];"function"==typeof e?yield e(r):yield*n(r,e)}}r.d(t,{i:()=>n,p:()=>i})},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>h});var i,n=r(32198),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let h=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>m});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(8631),h=r(98453),c=r(36005),d=r(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?p.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,n.Cg)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],m.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n.Cg)([(0,d.e)(h.m)],m.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,n.Cg)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),s=r(12195),o=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let n=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):c??"UTC":null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,l.ZS)(i.timeReference):c:null,m=new Map([[(0,o.NF)(n?.creationDateField??""),d],[(0,o.NF)(n?.editDateField??""),d],[(0,o.NF)(s),p],[(0,o.NF)(u),p]]);for(let{name:i,type:n}of e.fields)if(h.has(n))t.set(i,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,a.L);else{let e=m.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(32198),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>c});var i,n=r(53177),s=r(76357),o=r(32198),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=r(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":n.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,i])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9078],{32198(t,e,r){function n(t,e,r,n){var s,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function s(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}r.d(e,{Cg:()=>n,hk:()=>a,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function a(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function s(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(t){return e(t),s()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,a,o,l,u,h,c,p,f,d,g){return[t,e,r,n,s,i,a,o,l,u,h,c,p,f,d,g]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},35522(t,e,r){r.d(e,{$A:()=>k,Bw:()=>i,C:()=>a,Cc:()=>P,DI:()=>v,Io:()=>_,Ln:()=>m,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>w,T9:()=>g,WQ:()=>l,Z0:()=>I,_S:()=>f,aI:()=>R,ei:()=>T,fw:()=>q,gL:()=>A,hG:()=>M,hZ:()=>o,hs:()=>y,jk:()=>d,lw:()=>h,m3:()=>b,oW:()=>E,t2:()=>C,tn:()=>p,ze:()=>x});var n=r(51850),s=r(34304);function i(t){let e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function h(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function g(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function _(t,e){let r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function M(t,e){let r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function b(t){let e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let r=e[0],n=e[1],s=e[2],i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,r){let n=e[0],s=e[1],i=e[2],a=r[0],o=r[1],l=r[2];return t[0]=s*l-i*o,t[1]=i*a-n*l,t[2]=n*o-s*a,t}function P(t,e,r,n){let s=e[0],i=e[1],a=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=a+n*(r[2]-a),t}function I(t,e,r){let n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function T(t,e,r){let n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function A(t,e,r){return q(t,e,r[0],r[1],r[2],r[3])}function q(t,e,r,n,s,i){let a=e[0],o=e[1],l=e[2],u=n*l-s*o,h=s*a-r*l,c=r*o-n*a,p=n*c-s*h,f=s*u-r*c,d=r*h-n*u,g=2*i;return t[0]=a+u*g+2*p,t[1]=o+h*g+2*f,t[2]=l+c*g+2*d,t}const G=(0,n.vt)(),V=(0,n.vt)();function C(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;let r=t[0],n=t[1],i=t[2],a=e[0],o=e[1],l=e[2],u=(0,s.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function E(t,e,r){let n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2],a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=n*a,t[1]=s*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=u,U=h,Z=c,D=_,O=M,L=i,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){w(G,t),w(V,e);let r=S(G,V);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){let a=1-i,o=a*a,l=i*i,u=o*a,h=3*i*o,c=3*l*a,p=l*i;return t[0]=e[0]*u+r[0]*h+n[0]*c+s[0]*p,t[1]=e[1]*u+r[1]*h+n[1]*c+s[1]*p,t[2]=e[2]*u+r[2]*h+n[2]*c+s[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:a,cross:k,crossAndNormalize:function(t,e,r){let n=e[0],s=e[1],i=e[2],a=r[0],o=r[1],l=r[2],u=s*l-i*o,h=i*a-n*l,c=n*o-s*a,p=Math.sqrt(u*u+h*h+c*c);return t[0]=u/p,t[1]=h/p,t[2]=c/p,t},direction:E,dist:D,distance:_,div:Z,divide:c,dot:S,equals:R,exactEquals:C,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){let a=i*i,o=a*(2*i-3)+1,l=a*(i-2)+i,u=a*(i-1),h=a*(3-2*i);return t[0]=e[0]*o+r[0]*l+n[0]*u+s[0]*h,t[1]=e[1]*o+r[1]*l+n[1]*u+s[1]*h,t[2]=e[2]*o+r[2]*l+n[2]*u+s[2]*h,t},inverse:v,len:L,length:i,lerp:P,max:g,min:d,mul:U,multiply:h,negate:x,normalize:w,random:function(t,e=1){let r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=i*e,t},rotateX:function(t,e,r,n){let s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){let s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){let s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:m,scaleTo:function(t,e){return y(t,t,e/L(t))},set:o,sign:f,sqrDist:O,sqrLen:j,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:u,transformMat3:T,transformMat4:I,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:A,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,L,"jb",0,F,"lo",0,O,"uE",0,j])},69397(t,e,r){r.d(e,{Qf:()=>l,Qh:()=>a,lM:()=>i,ro:()=>u,rq:()=>h});var n=r(44208),s=r(34275);function i(t){if(!t)return 0;let e=c;for(let r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=p;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=c;for(let r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+u(e),0)}function u(t,e=16){return t?(0,s.iu)(t)?t.byteLength+d:Array.isArray(t)?h(t,e):0:0}function h(t,e){return p+t.length*e}const c=32,p=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,d=145;r.d(e,["JY",0,f])},51624(t,e,r){r.d(e,{A:()=>u});var n=r(44208),s=r(69397),i=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class u{constructor(t,e,r=0,n=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,n)}[Symbol.dispose](){this.release()}_init(t,e,r,n){this._data=t,this._dataView=e,this._pos=r,this._end=n}get usedMemory(){return 64+(0,s.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,n=t?.byteLength??0){let s=u.pool.acquire();return s._init(t,e,r,n),s}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;let e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return t;throw Error("Varint overflow")}getPackedEnd(){let t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){let t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){let t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*a;return this._skip(8),r}getSFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*a;return this._skip(8),r}getDouble(){let t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){let t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){let t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){let t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){let t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){let t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,n){let s=this.getMessage(),i=t(s,e,r,n);return s.release(),i}processMessage(t){let e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){let t=this._getLength(),e=u.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){let t=this._data,e=this._pos,r=0,n=0;if(this._end-e>=10){if(n=t[e++],r|=127&n,128&n&&(n=t[e++],r|=(127&n)<<7,128&n&&(n=t[e++],r|=(127&n)<<14,128&n&&(n=t[e++],r|=(127&n)<<21,128&n&&(n=t[e++],r+=268435456*(127&n),128&n&&(n=t[e++],r+=34359738368*(127&n),128&n&&(n=t[e++],r+=4398046511104*(127&n),128&n&&(n=t[e++],r+=562949953421312*(127&n),128&n&&(n=t[e++],r+=72057594037927940*(127&n),128&n&&(n=t[e++],r+=0x8000000000000000*(127&n),128&n))))))))))throw Error("Varint too long!")}else{let s=1;for(;e!==this._end&&(n=t[e],128&n);)++e,r+=(127&n)*s,s*=128;if(e===this._end)throw Error("Varint overrun!");++e,r+=n*s}return this._pos=e,r}_decodeSVarint(){let t,e=this._data,r=0,n=0,s=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n&&(n=e[this._pos++],r|=(127&n)<<7,128&n)&&(n=e[this._pos++],r|=(127&n)<<14,128&n)&&(n=e[this._pos++],r|=(127&n)<<21,128&n)&&(n=e[this._pos++],r+=268435456*(127&n),128&n)&&(n=e[this._pos++],r+=34359738368*(127&n),128&n)&&(n=e[this._pos++],r+=4398046511104*(127&n),128&n)))return s?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=562949953421312n*BigInt(127&n),!(128&n&&(n=e[this._pos++],t+=72057594037927936n*BigInt(127&n),128&n)&&(n=e[this._pos++],t+=9223372036854775808n*BigInt(127&n),128&n)))return Number(s?-(t+1n)/2n:t/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){let n=t.subarray(e,r);return o.decode(n)}let n="",s="";for(let i=e;i<r;++i){let e=t[i];128&e?s+="%"+e.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(e),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new i.A(()=>new u(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},48526(t,e,r){r.d(e,{A:()=>y});var n,s=r(32198),i=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),f=r(47610),d=r(56993),g=r(43937);let y=n=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:n,spatialReference:s}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=c.A.WGS84,{...t,hasM:r,hasZ:n,points:e,spatialReference:s}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,p.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:r,hasZ:s}=this;return new n({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:s})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,r=t.spatialReference;return!(null!=e!=(null!=r)||null!=e&&null!=r&&!e.equals(r))&&(0,i.aI)(this.points,t.points,f.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=e[2],n=3),this.hasM&&(r.m=e[n]),new h.A(r)}removePoint(t){if(!this._validateInputs(t))return null;let e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,g.K)("points")],y.prototype,"writePoints",null),y=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>d});var n,s=r(32198),i=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),f=r(43937);let d=n=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:n,spatialReference:s}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=h.A.WGS84,{...t,hasM:r,hasZ:n,paths:e,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){let t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,r=t.length;e<r;e++)n[e]=t[e].toArray();e[r]=n}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let r=this.paths[t][e],n=this.hasZ,s=this.hasM;return n&&!s?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):s&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&s?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],r=this.spatialReference,n=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths")),this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(r&&(e<0||e>n.length)||!r&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],d.prototype,"writePaths",null),d=n=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,r){r.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>o,yH:()=>l});var n=r(34275),s=r(9093);function i(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function a(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function l(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);let r=i(t.length+e.length);for(let e=0;e<t.length;++e)r[e]=t[e];for(let n=0;n<e.length;++n)r[t.length+n]=e[n];return r}function u(t){return[...t]}function h(t){let e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>I,C:()=>a,DC:()=>p,Ej:()=>M,Ie:()=>k,Jt:()=>P,Lu:()=>x,Ne:()=>v,RF:()=>c,TF:()=>m,VL:()=>d,aI:()=>A,fA:()=>o,gE:()=>u,gX:()=>_,hZ:()=>S,iT:()=>f,is:()=>T,pg:()=>b,uJ:()=>y,vI:()=>w,vY:()=>l,vt:()=>i,w1:()=>h,yr:()=>g}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(t=G){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let r=0;r<6;r++)t[r]=e[r];return t}function o(t,e,r,n,s,a,o=i()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function l(t,e=i()){return function(t,e,r,n=i()){return S(n,q),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],a=t[2],o=t[3],l=t[4],u=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),a=Math.min(a,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),l=Math.max(l,e[r+3*t+1]),u=Math.max(u,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=a,t[3]=o,t[4]=l,t[5]=u}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){let[r,n,i,a,o,l]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=l,e[6]=r,e[7]=o,e[8]=i,e[9]=r,e[10]=o,e[11]=l,e[12]=a,e[13]=n,e[14]=i,e[15]=a,e[16]=n,e[17]=l,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=l,e}function h(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e,r=t){r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r[2]=Math.min(t[2],e[2]),r[3]=Math.max(t[3],e[3]),r[4]=Math.max(t[4],e[4]),r[5]=Math.max(t[5],e[5])}function p(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,[e,r,n]){!function(t,e,r,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],r),t[5]=Math.max(t[5],n)}(t,e,r,n)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function g(t){return t[1]>=t[4]?0:t[4]-t[1]}function y(t){return t[2]>=t[5]?0:t[5]-t[2]}function m(t){let e=d(t),r=y(t),n=g(t);return e*e+r*r+n*n}function _(t,e=[0,0,0]){return e[0]=t[0]+d(t)/2,e[1]=t[1]+g(t)/2,e[2]=t[2]+y(t)/2,e}function M(t,e=[0,0,0]){return e[0]=d(t),e[1]=g(t),e[2]=y(t),e}function b(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function x(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function v(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function w(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function k(t){return t?S(t,q):i(q)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function I(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=-1/0,t[3]=n,t[4]=s,t[5]=1/0,t}function T(t){return 6===t.length}function A(t,e,r){if(null==t||null==e)return t===e;if(!T(t)||!T(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const q=[1/0,1/0,1/0,-1/0,-1/0,-1/0],G=[0,0,0,0,0,0];i(),r.d(e,["qv",0,q,"v_",0,G])},50498(t,e,r){var n=r(66552),s=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(e,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,p])},62815(t,e,r){r.d(e,{N:()=>o,d:()=>l});var n=r(86211),s=r(73941),i=r(21325),a=r(52006);function o(t,e,r){let n=l(e,r);if(1!==n)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,n);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(let r of t.curvePaths)for(let t of r){let r=(0,a.yP)(t);r.length>2&&(r[2]*=e)}if(t.paths)for(let r of t.paths)for(let t of r)t.length>2&&(t[2]*=e)}}(t,n);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(let r of t.curveRings)for(let t of r){let r=(0,a.yP)(t);r.length>2&&(r[2]*=e)}if(t.rings)for(let r of t.rings)for(let t of r)t.length>2&&(t[2]*=e)}}(t,n);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(let r of t.points)r.length>2&&(r[2]*=e)}(t,n);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,n);default:return}}function l(t,e){return null==t||null==e||(0,i.aI)(t,e)||(0,s.xP)(t)||(0,s.xP)(e)?1:(0,n.G9)(t)/(0,n.G9)(e)}},53655(t,e,r){r.d(e,{SH:()=>C,ae:()=>T,cn:()=>g});var n=r(32198),s=r(49186),i=r(51624),a=r(50498);const o=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u="sqlTypeBigInt.sqlTypeBinary.sqlTypeBit.sqlTypeChar.sqlTypeDate.sqlTypeDecimal.sqlTypeDouble.sqlTypeFloat.sqlTypeGeometry.sqlTypeGUID.sqlTypeInteger.sqlTypeLongNVarchar.sqlTypeLongVarbinary.sqlTypeLongVarchar.sqlTypeNChar.sqlTypeNVarchar.sqlTypeOther.sqlTypeReal.sqlTypeSmallInt.sqlTypeSqlXml.sqlTypeTime.sqlTypeTimestamp.sqlTypeTimestamp2.sqlTypeTinyInt.sqlTypeVarbinary.sqlTypeVarchar".split("."),h=["upperLeft","lowerLeft"];function c(t,e){let r=t.getEnum();return r<e.length?e[r]:void 0}function p(t,e){t.featureSet.geometryType=t.usesShortGeometryTypes?a.gy.fromJSON(e):e}function f(t,e=t.featureSet.geometryType){return t.usesShortGeometryTypes?a.gy.toJSON(e):e}function d(t){let e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function g(t){let e=t.asUnsafe(),r={type:l[0]};for(;e.next();)switch(e.tag()){case 1:r.name=e.getString();break;case 2:r.type=c(e,l);break;case 3:r.alias=e.getString();break;case 4:r.sqlType=c(e,u);break;case 5:default:e.skip();break;case 6:r.defaultValue=e.getString()}return r}function y(t){let e={},r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:e.name=r.getString();break;case 2:e.isSystemMaintained=r.getBool();break;default:r.skip()}return e}let m=[];function _(t,e,r){let n=f(e),s=0,i=t.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===r?n=c(i,o):i.skip();continue;case 2:for(let t=i.getPackedEnd();i.pos()<t;)m[s++]=i.getUInt32();continue;case 3:s>0?(m.length=s,null!=e.geometry(r,n,m)&&(m=[])):e.geometry(r,n,[]);for(let t=i.getPackedEnd();i.pos()<t;)e.coord(i.getSInt64());continue;default:i.skip()}}function M(t,e){let r=[],n=t.asUnsafe();for(;n.next();)if(3!==n.tag())n.skip();else for(let t=n.getPackedEnd();n.pos()<t;)r.push(n.getSInt64());e.centroid(r)}let b=[],x=[],v=[];function w(t,e){let r={stack:[],error:void 0,hasError:!1};try{let s=0,i=m,a=0,o=t.asUnsafe(),l=(0,n.mS)(r,o.clonePooled().asUnsafe(),!1);for(;o.next();)switch(o.tag()){case 2:for(let u=o.getPackedEnd();o.pos()<u;)i[s++]=o.getUInt32();continue;case 3:if(!("curvedGeometry"in e))throw Error(`Tried to parse curved geometry in a ${e.constructor.name}, which doesn't support them.`);o.processMessageWithArgs(S,a++);continue;case 4:{let h=o.getUInt32(),c=o.pos()+h;if(0===a||0===s||0===h){o.move(c);continue}i.length=s,v.length=x.length=a,e.curvedGeometry(f(e),i,x,v);let{hasZ:p,hasM:d}=e.featureSet,g=[],y=[0,0];function _(){for(let t=0;t<y.length;++t)g[t]=y[t],y[t]=o.getSInt64()}p&&y.push(0),d&&y.push(0);let M=[0,0],w=[0,0],k=M,P=M,I=0;for(let T=0;T<s;++T){_(),g.fill(0),e.startCurvedPart(y);for(let A=I+i[T];I<A;++I){let q=x[I],G=v[I];switch(q){case 0:for(let V=0;V<G;++V)_(),y[0]+=g[0],y[1]+=g[1],e.lineSegment(g,y);continue;case 1:for(let C=0;C<G;++C)_(),k[0]=o.getSInt64(),k[1]=o.getSInt64(),e.circularArcSegment(g,y,k);continue;case 2:for(let R=0;R<G;++R)_(),M[0]=o.getSInt64(),M[1]=o.getSInt64(),w[0]=o.getSInt64(),w[1]=o.getSInt64(),e.bezierSegment(g,y,M,w);continue;case 3:if(l.move(b[I]),l.getUInt32()<7*G)throw Error("Not implemented: compressed full circle encoding");for(let E=0;E<G;++E){_(),P[0]=l.getDouble(),P[1]=l.getDouble();let F=l.getDouble(),U=l.getDouble(),Z=l.getDouble(),D=l.getDouble(),O=l.getDouble();e.ellipticArcSegment(g,y,P,F,U,Z,D,O)}continue}}e.finishCurvedPart(y)}continue}default:o.skip()}}catch(L){r.error=L,r.hasError=!0}finally{(0,n.hk)(r)}}function S(t,e){let r=t.asUnsafe(),n=0,s=0,i=0;for(;r.next();)switch(r.tag()){case 1:n=r.getEnum();continue;case 2:s=r.getUInt32();continue;case 3:i=r.pos(),r.skip();continue;default:r.skip()}if(3===n&&0===i)throw Error("An elliptic arc segment set did not include a parameters array");x[e]=n,v[e]=s,b[e]=i}function k(t,e){e.feature();let r=e.featureSet.features.at(-1),n=0,{fields:s}=e.featureSet;for(;t.next();)switch(t.tag()){case 1:if(null==s)throw Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[s[n++].name]=t.processMessage(d);continue;case 2:t.processMessageWithArgs(_,e,0);continue;case 4:t.processMessageWithArgs(M,e);continue;case 7:t.processMessageWithArgs(w,e);continue;case 11:r.distance=t.getDouble();continue;default:t.skip();continue}e.finishFeature?.()}function P(t){let e=[1,1,1,1],r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:e[0]=r.getDouble();break;case 2:e[1]=r.getDouble();break;case 4:e[2]=r.getDouble();break;case 3:e[3]=r.getDouble();break;default:r.skip()}return e}function I(t){let e=[0,0,0,0],r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:e[0]=r.getDouble();break;case 2:e[1]=r.getDouble();break;case 4:e[2]=r.getDouble();break;case 3:e[3]=r.getDouble();break;default:r.skip()}return e}function T(t){let e={originPosition:h[0]},r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:e.originPosition=c(r,h);break;case 2:e.scale=r.processMessage(P);break;case 3:e.translate=r.processMessage(I);break;default:r.skip()}return e}function A(t){let e={},r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:e.shapeAreaFieldName=r.getString();break;case 2:e.shapeLengthFieldName=r.getString();break;case 3:e.units=r.getString();break;default:r.skip()}return e}function q(t){let e={};for(;t.next();)switch(t.tag()){case 1:e.wkid=t.getUInt32();break;case 5:e.wkt=t.getString();break;case 2:e.latestWkid=t.getUInt32();break;case 3:e.vcsWkid=t.getUInt32();break;case 4:e.latestVcsWkid=t.getUInt32();break;default:t.skip()}return e}function G(t,e){let r=t.asUnsafe();if(e.featureSet.features.length=0,"features"===e.parseOnly?.type){let t=e.parseOnly.indices.values(),n=0,s=t.next().value;for(;r.next();)15!==r.tag()||n++!==s?r.skip():(s=t.next().value,r.processMessageWithArgs(k,e));return}let n=!1;for("metadata"===e.parseOnly?.type&&(n=!0,e.parseOnly.featureCount=0),p(e,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:e.idField(r.getString());continue;case 3:e.featureSet.globalIdFieldName=r.getString();continue;case 4:e.featureSet.geohashFieldName=r.getString();continue;case 5:e.featureSet.geometryProperties=r.processMessage(A);continue;case 7:p(e,c(r,o));continue;case 8:e.featureSet.spatialReference=r.processMessageWithArgs(q);continue;case 10:e.featureSet.hasZ=r.getBool();continue;case 11:e.featureSet.hasM=r.getBool();continue;case 12:e.featureSet.transform=r.processMessage(T);continue;case 9:e.featureSet.exceededTransferLimit=r.getBool();continue;case 13:e.featureSet.fields??=[],e.featureSet.fields.push(r.processMessage(g));continue;case 15:if(n){++e.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(k,e);continue;case 2:e.idField(r.processMessage(y));continue;default:r.skip()}}function V(t,e,r){let n=-1;for(;t.next();)switch(t.tag()){case 4:n=t.pos(),t.skip();continue;case 1:t.processMessageWithArgs(G,e);continue;default:t.skip()}if(-1!==n){if(!e.queryGeometry()){let r=t.pos();t.move(n),t.processMessageWithArgs(_,e,1),t.move(r)}r.queryGeometryType=e.queryGeometryType(),r.queryGeometry=e.queryGeometry()}e.finish(),r.featureResult=e.featureSet}function C(t,e){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,{[Symbol.dispose](){m=[],b=[],x=[],v=[]}},!1);try{let r={stack:[],error:void 0,hasError:!1};try{let s,a=(0,n.mS)(r,i.A.constructPooled(new Uint8Array(t),new DataView(t)),!1);for(;a.next();)2===a.tag()?(s={},a.processMessageWithArgs(V,e,s)):a.skip();return s}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}catch(t){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:t})}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}},63746(t,e,r){function n(t){return class{constructor(){for(let e of t)this[e]=null}}}function s(t,e=1){let{transform:r,hasZ:n,hasM:s}=t;if(null==r)return n&&1!==e?t=>{t[2]*=e}:null;let[i,a]=function(t,e,r,n){let{scale:s,translate:i,originPosition:a}=t;return"upperLeft"===a&&(s=s.map((t,e)=>1===e?-t:t)),e&&(s=s.map((t,e)=>2===e?t*n:t),i=i.map((t,e)=>2===e?t*n:t)),!e&&r&&(s=s.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[s,i]}(r,n,s,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}r.d(e,{M:()=>s,_:()=>n})},66208(t,e,r){r.d(e,{m:()=>s});var n=r(53655);function s(t,e){let{featureResult:r}=(0,n.SH)(t,e);return r}},39078(t,e,r){r.r(e),r.d(e,{default:()=>c});var n=r(24326),s=r(62815);r(69397),r(16930),r(70328),r(19419),r(50498),r(44208),r(34727),r(21325);class i{constructor(t,e,r){this.uid=t,this.geometry=e,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class a{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null,this.missingAttributes=null}}var o=r(63746);class l{constructor(t){this._options=t,this.featureSet=new a,this.usesShortGeometryTypes=!0,this.transferList=[],this.coordinates=[],this._queryGeometryType=null,this._queryGeometry=null,this._queryCoordinates=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._coords=null,this._coordinateIndex=0,this._partIndex=0,this._partEnd=0,this._vertex=[],this._i=0,this._finishVertex=null}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}queryCoordinates(){return this._queryCoordinates}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null)}_setVertexTransformer(){let{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:r}=this.featureSet,n=r?(0,s.d)(t,e):1;this._transformInPlace??=(0,o.M)(this.featureSet,n)}feature(){this._attributesClass??=(0,o._)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push(new i((0,n.c)(),null,new this._attributesClass)),this.coordinates.push(null),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){let{maxStringAttributeLength:t,maxStringAttributeFields:e}=this._options,{attributes:r}=this.featureSet.features.at(-1),n=r[this.featureSet.objectIdFieldName];!function(t,e,r,n){if(e?.size&&null!=r&&t)for(let s in t){if(!e.has(s))continue;let i=t[s];"string"==typeof i&&i.length>r&&(n(s),t[s]="")}}(r,e,t,t=>{null!=n&&this.missingAttributes.push({objectId:n,attribute:t})})}_createPoint(){let{hasZ:t,hasM:e}=this.featureSet,r={type:"point",x:0,y:0,spatialReference:null,hasZ:t,hasM:e};return t&&(r.z=0),e&&(r.m=0),r}centroid(t){let{hasZ:e,hasM:r}=this.featureSet,n={type:"point",x:0,y:0,spatialReference:null,hasZ:e,hasM:r};[n.x,n.y]=t,e&&(n.z=t[2]),r&&(n.m=t.at(-1)),this.featureSet.features.at(-1).centroid=n}geometry(t,e,r){this._previousX=this._previousY=0,this._lengths=r;let{hasZ:n,hasM:s}=this.featureSet;n??=!1,s??=!1,this._vertex=[0,0],n&&this._vertex.push(0),s&&this._vertex.push(0);let i,a=null;switch(e){case"esriGeometryPoint":this._point=this._createPoint(),i=this._point,this._finishVertex=n?s?l._finishVertexPointXYZM:l._finishVertexPointXYZ:s?l._finishVertexPointXYM:l._finishVertexPointXY;break;case"esriGeometryMultipoint":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i={type:"multipoint",points:null,spatialReference:null,hasZ:n,hasM:s};break;case"esriGeometryPolyline":case"esriGeometryPolygon":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i="esriGeometryPolygon"===e?{type:"polygon",rings:null,spatialReference:null,hasZ:n,hasM:s}:{type:"polyline",paths:null,spatialReference:null,hasZ:n,hasM:s}}1===t?(this._queryGeometry=i,this._queryCoordinates=a,this._queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):(this.featureSet.features.at(-1).geometry=i,this.coordinates[this.coordinates.length-1]=a)}_createPackedCoordinates(t){let e=this._vertex.length;for(this._coords=new Float64Array(t.reduce((t,e)=>t+e,0)*e),this._coordinateIndex=this._partIndex=0,this._partEnd=(t[0]??0)*e;0===this._partEnd&&++this._partIndex<t.length;)this._partEnd+=t[this._partIndex]*e;this._finishVertex=l._finishVertexPacked,this.transferList.push(this._coords.buffer)}coord(t){let e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexPacked(t){let{_vertex:e,_coords:r,_lengths:n}=t;if(r.set(e,t._coordinateIndex),t._coordinateIndex+=e.length,t._coordinateIndex===t._partEnd)for(t._previousX=t._previousY=0;t._coordinateIndex===t._partEnd&&++t._partIndex<n.length;)t._partEnd+=n[t._partIndex]*e.length}}var u=r(66208);class h{parseFeatureQuery(t){let e=new l(t.options),r=(0,u.m)(t.buffer,e);r.missingAttributes=e.missingAttributes;let n={featureSet:r,coordinates:e.coordinates,queryGeometry:e.queryGeometry()??null,queryCoordinates:e.queryCoordinates()??null};return Promise.resolve({result:n,transferList:e.transferList})}}function c(){return new h}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9478],{34727(e,t,n){n.d(t,{$8:()=>D,Cc:()=>u,Hx:()=>g,Io:()=>M,KJ:()=>f,OS:()=>F,Sp:()=>p,XM:()=>c,YN:()=>h,ZH:()=>d,b6:()=>C,cU:()=>a,gg:()=>y,hs:()=>o,kU:()=>s,mP:()=>l,or:()=>V,pF:()=>k,qE:()=>i});const r=new Float32Array(1);function a(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,n){return Math.min(Math.max(e,t),n)}function l(e,t){return 0===t?0:Math.ceil(e/t)*t}function u(e,t,n){return e+(t-e)*n}function o(e,t,n,r,a){return u(r,a,(e-t)/(n-t))}function s(e){return e*Math.PI/180}function f(e){return 180*e/Math.PI}function c(e){return Math.acos(i(e,-1,1))}function h(e){return Math.asin(i(e,-1,1))}function p(e,t,n=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=n}function y(e,t,n=1e-6){return!p(e,t,n)&&e>t}function d(e,t,n=1e-6){return!p(e,t,n)&&e<t}function g(e,t,n=1e-6){return p(e,t,n)||e>t}const b=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(e){return b.setFloat64(0,e),b.getBigInt64(0)}const w=1000000n,x=A(1);function A(e){let t=m(e=Math.abs(e)),n=function(e){return b.setBigInt64(0,e),b.getFloat64(0)}(t<=w?w:t-w);return Math.abs(e-n)}function M(e,t,n=x){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=n&&A(Math.min(Math.abs(e),Math.abs(t)))<n)return Math.abs(e-t)<=n;let r=m(e),a=m(t);return!(r<0!=a<0||(r<a?a-r:r-a)>w)}function C(e,t,n=1e-6){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;let r=Math.abs(e-t),a=Math.abs(e),i=Math.abs(t);if(0===e||0===t||a<1e-12&&i<1e-12){if(r>.01*n)return!1}else if(r/(a+i)>n)return!1;return!0}function D(e){return U(Math.max(-T,Math.min(e,T)))}function U(e){return r[0]=e,r[0]}function V(e){let t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],r=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(p(t,1)&&p(n,1)&&p(r,1))}function F(e,t){return(e%t+t)%t}const T=U(34028234663852886e22);function k(e,t,n){if(void 0===n||0==+n)return Math[e](t);if(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0)return NaN;let r=t.toString().split("e");return r=(t=Math[e](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(t,["pq",0,T])},43946(e,t,n){n.d(t,{D4:()=>f,Hh:()=>l});var r=n(2741);const a=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let i=null;function l(){return i||(i=n.e(382).then(()=>n(30382)).then(({default:e})=>e({locateFile:e=>(0,r.s)(`esri/layers/raster/formats/${e}`)})).then(e=>{!function(e){let t,{_malloc:n,_free:r,memory:i,_lerc_getBlobInfo:l,_lerc_getDataRanges:s,_lerc_decode_4D:f}=e,c=e=>{let r=e.map(e=>function(e){return 16+(e>>3<<3)}(e)),a=r.reduce((e,t)=>e+t),l=n(a);t=new Uint8Array(i.buffer);let u=r[0];r[0]=l;for(let e=1;e<r.length;e++){let t=r[e];r[e]=r[e-1]+u,u=t}return r};u.getBlobInfo=e=>{let n=new Uint8Array(48),a=new Uint8Array(24),[u,f,h]=c([e.length,n.length,a.length]);t.set(e,u),t.set(n,f),t.set(a,h);let p=l(u,e.length,f,h,12,3);if(p)throw r(u),Error(`lerc-getBlobInfo: error code is ${p}`);t=new Uint8Array(i.buffer),o(t,f,n),o(t,h,a);let y=new Uint32Array(n.buffer),d=new Float64Array(a.buffer),[g,b,,m,w,x,A,M,C,D,U]=y,V=0===A,F={version:g,depthCount:D,width:m,height:w,validPixelCount:A,bandCount:x,blobSize:M,maskCount:C,dataType:b,minValue:d[0],maxValue:d[1],maxZerror:d[2],statistics:[],bandCountWithNoData:U};if(U&&D>1)return r(u),F;if(1===D&&1===x){r(u);let e=V?0:d[0],t=V?0:d[1];return F.statistics.push({minValue:e,maxValue:t}),F}let T=D*x*8,k=new Uint8Array(T),I=new Uint8Array(T),N=u,P=0,_=0,v=!1;if(t.byteLength<u+2*T?(r(u),v=!0,[N,P,_]=c([e.length,T,T]),t.set(e,N)):[P,_]=c([T,T]),t.set(k,P),t.set(I,_),p=s(N,e.length,D,x,P,_),p)throw r(N),v||r(P),Error(`lerc-getDataRanges: error code is ${p}`);t=new Uint8Array(i.buffer),o(t,P,k),o(t,_,I);let z=new Float64Array(k.buffer),S=new Float64Array(I.buffer),B=F.statistics;for(let e=0;e<x;e++)if(D>1){let t=z.slice(e*D,(e+1)*D),n=S.slice(e*D,(e+1)*D),r=V?0:Math.min.apply(null,t),a=V?0:Math.max.apply(null,n);B.push({minValue:r,maxValue:a,depthStats:{minValues:t,maxValues:n}})}else B.push({minValue:V?0:z[e],maxValue:V?0:S[e]});return r(N),v||r(P),F},u.decode=(e,n)=>{let{maskCount:l,depthCount:u,bandCount:s,width:h,height:p,dataType:y,bandCountWithNoData:d,validPixelCount:g}=n,b=a[y],m=h*p,w=new Uint8Array(m*s),x=m*u*s*b.size,A=new Uint8Array(x),M=new Uint8Array(s),C=new Uint8Array(8*s);if(0===g)return{data:A,maskData:w,noDataValues:null};let[D,U,V,F,T]=c([e.length,w.length,A.length,M.length,C.length]);t.set(e,D),t.set(w,U),t.set(A,V),t.set(M,F),t.set(C,T);let k=f(D,e.length,l,U,u,h,p,s,y,V,F,T);if(k)throw r(D),Error(`lerc-decode: error code is ${k}`);t=new Uint8Array(i.buffer),o(t,V,A),o(t,U,w);let I=null;if(d){o(t,F,M),o(t,T,C),I=[];let e=new Float64Array(C.buffer);for(let t=0;t<M.length;t++)I.push(M[t]?e[t]:null)}return r(D),{data:A,maskData:w,noDataValues:I}}}(e)}),i)}const u={getBlobInfo:null,decode:null};function o(e,t,n){n.set(e.slice(t,t+n.length))}function s(e,t,n,r,a){if(n<2)return e;let i=new r(t*n);for(let r=0,a=0;r<t;r++)for(let l=0,u=r;l<n;l++,u+=t)i[u]=e[a++];return i}function f(e,t={}){let n=t.inputOffset??0,r=e instanceof Uint8Array?e.subarray(n):new Uint8Array(e,n),i=u.getBlobInfo(r),{data:l,maskData:o,noDataValues:f}=u.decode(r,i),{width:c,height:h,bandCount:p,depthCount:y,dataType:d,maskCount:g,statistics:b}=i,m=a[d],w=new m.ctor(l.buffer),x=[],A=[],M=c*h,C=M*y,D=a.find(e=>e.pixelType===t.outputPixelType)??m,U=D.pixelType!==m.pixelType;for(let e=0;e<p;e++){let n=e*C,r=n+C,a=w.subarray(n,r),i=U?new D.ctor(a):a;if(t.returnInterleaved)x.push(i);else{let e=s(i,M,y,D.ctor);x.push(e)}A.push(o.subarray(n,r))}let V=0===g?null:1===g?A[0]:new Uint8Array(M);if(g>1){V.set(A[0]);for(let e=1;e<A.length;e++){let t=A[e];for(let e=0;e<M;e++)V[e]=V[e]&t[e]}}let{noDataValue:F}=t,T=null!=F&&D.range[0]<=F&&D.range[1]>=F,{validPixelCount:k}=i;if(g>0&&T)for(let e=0;e<p;e++){let t=x[e];if(0===k)t.fill(F);else{let n=A[e]||V;for(let e=0;e<M;e++)0===n[e]&&(t[e]=F)}}let I=g===p&&p>1?A:null;return{width:c,height:h,bandCount:p,pixelType:D.pixelType,depthCount:y,statistics:b,pixels:x,mask:V,validPixelCount:k,bandMasks:I,noDataValues:f}}},59478(e,t,n){n.r(t),n.d(t,{default:()=>o});var r=n(34727),a=n(43946);const i=(0,r.$8)(-1/0);function l(e,t={}){let n=t.noDataValue??i,r=(0,a.D4)(e,{...t,noDataValue:n,outputPixelType:"F32"});return{pixelData:r.pixels[0],width:r.width,height:r.height,minValue:r.statistics[0].minValue,maxValue:r.statistics[0].maxValue,noDataValue:n,maskData:t.returnMask?r.mask:null,validPixelCount:r.validPixelCount}}class u{async _decode(e){await(0,a.Hh)();let t=l(e.buffer,e.options),n=[t.pixelData.buffer];return t.maskData&&n.push(t.maskData.buffer),{result:t,transferList:n}}}function o(){return new u}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9567],{29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,r,e,a,u,i,o,c){return[t,n,r,e,a,u,i,o,c]}r.d(n,{fA:()=>a,vt:()=>e});const u=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:u,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:a},Symbol.toStringTag,{value:"Module"})),r.d(n,["zK",0,u])},34304(t,n,r){r.d(n,{DF:()=>c,FD:()=>a,ct:()=>f});let e=1e-6;function a(){return e}const u=Math.random,i=Math.PI/180,o=180/Math.PI;function c(t){return t*i}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:u,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){e=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"})),r.d(n,["Ov",0,u])},77690(t,n,r){r.d(n,{B8:()=>o,Ge:()=>M,I0:()=>s,KC:()=>c,a4:()=>f,hZ:()=>u,hs:()=>l,lw:()=>h,mg:()=>i,z0:()=>a});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function u(t,n,r,e,a,u,i,o,c,f){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=u,t[5]=i,t[6]=o,t[7]=c,t[8]=f,t}function i(t,n){if(t===n){let r=n[1],e=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8],l=h*i-o*f,s=-h*u+o*c,M=f*u-i*c,m=r*l+e*s+a*M;return m?(m=1/m,t[0]=l*m,t[1]=(-h*e+a*f)*m,t[2]=(o*e-a*i)*m,t[3]=s*m,t[4]=(h*r-a*c)*m,t[5]=(-o*r+a*u)*m,t[6]=M*m,t[7]=(-f*r+e*c)*m,t[8]=(i*r-e*u)*m,t):null}function c(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8];return t[0]=i*h-o*f,t[1]=a*f-e*h,t[2]=e*o-a*i,t[3]=o*c-u*h,t[4]=r*h-a*c,t[5]=a*u-r*o,t[6]=u*f-i*c,t[7]=e*c-r*f,t[8]=r*i-e*u,t}function f(t){let n=t[0],r=t[1],e=t[2],a=t[3],u=t[4],i=t[5],o=t[6],c=t[7],f=t[8];return n*(f*u-i*c)+r*(-f*a+i*o)+e*(c*a-u*o)}function h(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=r[0],M=r[1],m=r[2],b=r[3],d=r[4],x=r[5],p=r[6],y=r[7],v=r[8];return t[0]=s*e+M*i+m*f,t[1]=s*a+M*o+m*h,t[2]=s*u+M*c+m*l,t[3]=b*e+d*i+x*f,t[4]=b*a+d*o+x*h,t[5]=b*u+d*c+x*l,t[6]=p*e+y*i+v*f,t[7]=p*a+y*o+v*h,t[8]=p*u+y*c+v*l,t}function l(t,n,r){let e=r[0],a=r[1],u=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=u*n[6],t[7]=u*n[7],t[8]=u*n[8],t}function s(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=r+r,o=e+e,c=a+a,f=r*i,h=e*i,l=e*o,s=a*i,M=a*o,m=a*c,b=u*i,d=u*o,x=u*c;return t[0]=1-l-m,t[3]=h-x,t[6]=s+d,t[1]=h+x,t[4]=1-f-m,t[7]=M-b,t[2]=s-d,t[5]=M+b,t[8]=1-f-l,t}function M(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8],l=n[9],s=n[10],M=n[11],m=n[12],b=n[13],d=n[14],x=n[15],p=r*o-e*i,y=r*c-a*i,v=r*f-u*i,g=e*c-a*o,q=e*f-u*o,P=a*f-u*c,I=h*b-l*m,S=h*d-s*m,R=h*x-M*m,E=l*d-s*b,k=l*x-M*b,N=s*x-M*d,F=p*N-y*k+v*E+g*R-q*S+P*I;return F?(F=1/F,t[0]=(o*N-c*k+f*E)*F,t[1]=(c*R-i*N-f*S)*F,t[2]=(i*k-o*R+f*I)*F,t[3]=(a*k-e*N-u*E)*F,t[4]=(r*N-a*R+u*S)*F,t[5]=(e*R-r*k-u*I)*F,t[6]=(b*P-d*q+x*g)*F,t[7]=(d*v-m*P-x*y)*F,t[8]=(m*q-b*v+x*p)*F,t):null}function m(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const b=h,d=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:f,equals:function(t,n){let r=t[0],a=t[1],u=t[2],i=t[3],o=t[4],c=t[5],f=t[6],h=t[7],l=t[8],s=n[0],M=n[1],m=n[2],b=n[3],d=n[4],x=n[5],p=n[6],y=n[7],v=n[8],g=(0,e.FD)();return Math.abs(r-s)<=g*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-M)<=g*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-m)<=g*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(i-b)<=g*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-d)<=g*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(c-x)<=g*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(f-p)<=g*Math.max(1,Math.abs(f),Math.abs(p))&&Math.abs(h-y)<=g*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(l-v)<=g*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:s,fromRotation:function(t,n){let r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){let n=(0,e.FD)(),r=t[0],a=t[1],u=t[2],i=t[3],o=t[4],c=t[5],f=t[6],h=t[7],l=t[8];return Math.abs(1-(r*r+i*i+f*f))<=n&&Math.abs(1-(a*a+o*o+h*h))<=n&&Math.abs(1-(u*u+c*c+l*l))<=n},mul:b,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){let r=n[0],e=n[1],a=n[2],u=n[4],i=n[5],o=n[6],c=n[8],f=n[9],h=n[10],l=h*i-o*f,s=-h*u+o*c,M=f*u-i*c,m=r*l+e*s+a*M;if(!m)return null;let b=1/m;return t[0]=l*b,t[1]=(-h*e+a*f)*b,t[2]=(o*e-a*i)*b,t[3]=s*b,t[4]=(h*r-a*c)*b,t[5]=(-o*r+a*u)*b,t[6]=M*b,t[7]=(-f*r+e*c)*b,t[8]=(i*r-e*u)*b,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=Math.sin(r),M=Math.cos(r);return t[0]=M*e+s*i,t[1]=M*a+s*o,t[2]=M*u+s*c,t[3]=M*i-s*e,t[4]=M*o-s*a,t[5]=M*c-s*u,t[6]=f,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,r){let e=r[0],a=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:u,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:m,translate:function(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=r[0],M=r[1];return t[0]=e,t[1]=a,t[2]=u,t[3]=i,t[4]=o,t[5]=c,t[6]=s*e+M*i+f,t[7]=s*a+M*o+h,t[8]=s*u+M*c+l,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>u,Cc:()=>q,Io:()=>d,LI:()=>M,Ln:()=>b,Om:()=>g,Re:()=>c,S8:()=>v,T9:()=>l,WQ:()=>o,aI:()=>R,e$:()=>I,hG:()=>x,hZ:()=>i,hs:()=>m,l0:()=>P,qE:()=>s,t2:()=>S});var e=r(34727),a=r(34304);function u(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,r){return t[0]=n,t[1]=r,t}function o(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function l(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function s(t,n,r,a){return t[0]=(0,e.qE)(n[0],r[0],a[0]),t[1]=(0,e.qE)(n[1],r[1],a[1]),t}function M(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function b(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t}function d(t,n){let r=n[0]-t[0],e=n[1]-t[1];return Math.sqrt(r*r+e*e)}function x(t,n){let r=n[0]-t[0],e=n[1]-t[1];return r*r+e*e}function p(t){let n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function y(t){let n=t[0],r=t[1];return n*n+r*r}function v(t,n){let r=n[0],e=n[1],a=r*r+e*e;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]}function q(t,n,r,e){let a=n[0],u=n[1];return t[0]=a+e*(r[0]-a),t[1]=u+e*(r[1]-u),t}function P(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[2]*a+r[4],t[1]=r[1]*e+r[3]*a+r[5],t}function I(t,n,r,e){let a=n[0]-r[0],u=n[1]-r[1],i=Math.sin(e),o=Math.cos(e);return t[0]=a*o-u*i+r[0],t[1]=a*i+u*o+r[1],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]}function R(t,n){let r=t[0],e=t[1],u=n[0],i=n[1],o=(0,a.FD)();return Math.abs(r-u)<=o*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-i)<=o*Math.max(1,Math.abs(e),Math.abs(i))}const E=p,k=c,N=f,F=h,_=d,K=x,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,n){let r=t[0],e=t[1],a=n[0],u=n[1],i=r*r+e*e;i>0&&(i=1/Math.sqrt(i));let o=a*a+u*u;o>0&&(o=1/Math.sqrt(o));let c=(r*a+e*u)*i*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:s,copy:u,cross:function(t,n,r){let e=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=e,t},dist:_,distance:d,div:F,divide:h,dot:g,equals:R,exactEquals:S,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:E,length:p,lerp:q,max:l,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:N,multiply:f,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:v,projectAndScale:function(t,n,r,e,a){let u=n[0]-r[0],i=n[1]-r[1],o=(e[0]*u+e[1]*i)*(a-1);return u=e[0]*o,i=e[1]*o,t[0]=n[0]+u,t[1]=n[1]+i,t},random:function(t,n=1){let r=2*(0,a.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:I,round:M,scale:m,scaleAndAdd:b,set:i,sqrDist:K,sqrLen:D,squaredDistance:x,squaredLength:y,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:k,subtract:c,transformMat2:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[2]*a,t[1]=r[1]*e+r[3]*a,t},transformMat2d:P,transformMat3:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[3]*a+r[6],t[1]=r[1]*e+r[4]*a+r[7],t},transformMat4:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[4]*a+r[12],t[1]=r[1]*e+r[5]*a+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(n,["Il",0,E,"jb",0,k,"xg",0,_])},34727(t,n,r){r.d(n,{$8:()=>I,Cc:()=>o,Hx:()=>d,Io:()=>q,KJ:()=>h,OS:()=>E,Sp:()=>M,XM:()=>l,YN:()=>s,ZH:()=>b,b6:()=>P,cU:()=>a,gg:()=>m,hs:()=>c,kU:()=>f,mP:()=>i,or:()=>R,pF:()=>N,qE:()=>u});const e=new Float32Array(1);function a(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function u(t,n,r){return Math.min(Math.max(t,n),r)}function i(t,n){return 0===n?0:Math.ceil(t/n)*n}function o(t,n,r){return t+(n-t)*r}function c(t,n,r,e,a){return o(e,a,(t-n)/(r-n))}function f(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function l(t){return Math.acos(u(t,-1,1))}function s(t){return Math.asin(u(t,-1,1))}function M(t,n,r=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=r}function m(t,n,r=1e-6){return!M(t,n,r)&&t>n}function b(t,n,r=1e-6){return!M(t,n,r)&&t<n}function d(t,n,r=1e-6){return M(t,n,r)||t>n}const x=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return x.setFloat64(0,t),x.getBigInt64(0)}const y=1000000n,v=g(1);function g(t){let n=p(t=Math.abs(t)),r=function(t){return x.setBigInt64(0,t),x.getFloat64(0)}(n<=y?y:n-y);return Math.abs(t-r)}function q(t,n,r=v){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=r&&g(Math.min(Math.abs(t),Math.abs(n)))<r)return Math.abs(t-n)<=r;let e=p(t),a=p(n);return!(e<0!=a<0||(e<a?a-e:e-a)>y)}function P(t,n,r=1e-6){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;let e=Math.abs(t-n),a=Math.abs(t),u=Math.abs(n);if(0===t||0===n||a<1e-12&&u<1e-12){if(e>.01*r)return!1}else if(e/(a+u)>r)return!1;return!0}function I(t){return S(Math.max(-k,Math.min(t,k)))}function S(t){return e[0]=t,e[0]}function R(t){let n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],e=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(n,1)&&M(r,1)&&M(e,1))}function E(t,n){return(t%n+n)%n}const k=S(34028234663852886e22);function N(t,n,r){if(void 0===r||0==+r)return Math[t](n);if(n=+n,r=+r,isNaN(n)||"number"!=typeof r||r%1!=0)return NaN;let e=n.toString().split("e");return e=(n=Math[t](+(e[0]+"e"+(e[1]?+e[1]-r:-r)))).toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]+r:r))}r.d(n,["pq",0,k])},19419(t,n,r){r.d(n,{$9:()=>P,C:()=>u,DC:()=>m,HY:()=>q,IO:()=>l,Ie:()=>S,Rj:()=>g,Uc:()=>v,VL:()=>b,VY:()=>o,Wc:()=>x,aI:()=>E,bx:()=>s,fA:()=>i,fT:()=>M,gR:()=>I,gX:()=>p,ib:()=>y,nw:()=>h,pJ:()=>k,tK:()=>f,uJ:()=>d,vt:()=>a,w1:()=>c}),r(34727);var e=r(5443);function a(t=F){return[t[0],t[1],t[2],t[3]]}function u(t,n){return t!==n&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]),t}function i(t,n,r,e,u=a()){return u[0]=t,u[1]=n,u[2]=r,u[3]=e,u}function o(t,n=a()){return n[0]=t.xmin,n[1]=t.ymin,n[2]=t.xmax,n[3]=t.ymax,n}function c(t,n,r=new e.A){return r.xmin=t[0],r.ymin=t[1],r.xmax=t[2],r.ymax=t[3],r.spatialReference=n,r}function f(t,n){n[0]<t[0]&&(t[0]=n[0]),n[0]>t[2]&&(t[2]=n[0]),n[1]<t[1]&&(t[1]=n[1]),n[1]>t[3]&&(t[3]=n[1])}function h(t,n){n<t[0]&&(t[0]=n),n>t[2]&&(t[2]=n)}function l(t,n){n<t[1]&&(t[1]=n),n>t[3]&&(t[3]=n)}function s(t,{xmin:n,ymin:r,xmax:e,ymax:a}){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],a)}function M(t,n,r){if(null==n)u(r,t);else if("length"in n)R(n)?(r[0]=Math.min(t[0],n[0]),r[1]=Math.min(t[1],n[1]),r[2]=Math.max(t[2],n[2]),r[3]=Math.max(t[3],n[3])):(2===n.length||3===n.length)&&(r[0]=Math.min(t[0],n[0]),r[1]=Math.min(t[1],n[1]),r[2]=Math.max(t[2],n[0]),r[3]=Math.max(t[3],n[1]));else switch(n.type){case"extent":r[0]=Math.min(t[0],n.xmin),r[1]=Math.min(t[1],n.ymin),r[2]=Math.max(t[2],n.xmax),r[3]=Math.max(t[3],n.ymax);break;case"point":r[0]=Math.min(t[0],n.x),r[1]=Math.min(t[1],n.y),r[2]=Math.max(t[2],n.x),r[3]=Math.max(t[3],n.y)}}function m(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])}function b(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function d(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function x(t){return b(t)*d(t)}function p(t,n=[0,0]){return n[0]=(t[0]+t[2])/2,n[1]=(t[1]+t[3])/2,n}function y(t){let n=b(t),r=d(t);return Math.sqrt(n*n+r*r)}function v(t,n){return g(t,n[0],n[1])}function g(t,n,r){return n>=t[0]&&r>=t[1]&&n<=t[2]&&r<=t[3]}function q(t,n){return Math.max(n[0],t[0])<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])<=Math.min(n[3],t[3])}function P(t,n,r){return Math.max(n[0],t[0])-r<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])-r<=Math.min(n[3],t[3])}function I(t,n){return n[0]>=t[0]&&n[2]<=t[2]&&n[1]>=t[1]&&n[3]<=t[3]}function S(t){return t?u(t,N):a(N)}function R(t){return null!=t&&4===t.length}function E(t,n){return R(t)&&R(n)?t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]:null==t&&null==n||t===n}function k(t,n){if(4!==n.length||t[0]===t[2]||t[1]===t[3])return!1;for(let r=0;r<n.length;r++){let e=n[r],a=n[(r+1)%n.length];if(e[0]!==t[0]&&e[0]!==t[2]||e[1]!==t[1]&&e[1]!==t[3])return!1;let u=e[1]===a[1]&&e[0]!==a[0],i=e[0]===a[0]&&e[1]!==a[1];if(!u&&!i)return!1}return!0}const N=[1/0,1/0,-1/0,-1/0],F=[0,0,0,0];r.d(n,["qv",0,N])},4305(t,n,r){r.d(n,{B4:()=>c,jK:()=>h,lM:()=>s,m_:()=>l,ty:()=>m});var e=r(34727),a=(r(37585),r(19419)),u=r(15507);const i=[0,0];function o(t){let n=1-t,r=n*n,e=t*t;return[r*n,3*t*r,3*e*n,e*t]}function c(t,n,r,e,a){let[u,i,c,f]=o(a);return[t[0]*u+n[0]*i+r[0]*c+e[0]*f,t[1]*u+n[1]*i+r[1]*c+e[1]*f]}function f(t,n,r,e,a){let[u,i,c,f]=o(a);return t*u+n*i+r*c+e*f}function h(t,n,r){let e=t,[a,o,c]=n.b,f=(0,u.RS)([0,0],e,o,r),h=(0,u.RS)(i,o,c,r),l=(0,u.RS)([0,0],c,a,r),s=(0,u.RS)([0,0],f,h,r),M=(0,u.RS)([0,0],h,l,r);return[{b:[(0,u.RS)([],s,M,r),f,s]},{b:[[...a],M,l]}]}function l(t,n,r){let a=t,[i,o,f]=n.b,h=(0,u.R)(r,[.1,.5,.9],t=>{let n=1-t,[r,e]=c(a,o,f,i,t);return[r,e,3*n*n*(o[0]-a[0])+6*n*t*(f[0]-o[0])+3*t*t*(i[0]-f[0]),3*n*n*(o[1]-a[1])+6*n*t*(f[1]-o[1])+3*t*t*(i[1]-f[1]),6*n*(f[0]-2*o[0]+a[0])+6*t*(i[0]-2*f[0]+o[0]),6*n*(f[1]-2*o[1]+a[1])+6*t*(i[1]-2*f[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0,s=h.map(t=>{let n=c(a,o,f,i,t),[e,u]=n,h=r[0]-e,s=r[1]-u,M=Math.sqrt(h*h+s*s);return l=Math.min(M,l),{t,curvePoint:n,distance:M}}),M=[];for(let t of s){let{t:n,distance:r}=t;(0,e.b6)(r,l)&&!M.some(({t})=>(0,e.Sp)(t,n))&&M.push(t)}return M}function s(t,n,r){let e=n,[u,i,o]=r.b;if((0,a.tK)(t,e),(0,a.tK)(t,u),(0,a.Rj)(t,i[0],i[1])&&(0,a.Rj)(t,o[0],o[1]))return t;for(let n of M(e[0],i[0],o[0],u[0]))n>0&&n<1&&(0,a.nw)(t,f(e[0],i[0],o[0],u[0],n));for(let n of M(e[1],i[1],o[1],u[1]))n>0&&n<1&&(0,a.IO)(t,f(e[1],i[1],o[1],u[1],n));return t}function M(t,n,r,e){let a=3*(3*(n-r)-t+e),u=6*(t-2*n+r),i=3*(n-t);if(0===a)return 0===u?[]:[-i/u];let o=Math.sqrt(u*u-4*a*i);return[(-u+o)/(2*a),(-u-o)/(2*a)]}function m(t,n,r){let e=0,a=[n];for(let n=0;n<16;n++){let n=t,i=[];for(let t of a)i.push(...h(n,t,.5)),n=t.b[0];a=i,n=t,e=0;let o=0;for(let t of a){let[r,a,i]=t.b,c=Math.sqrt((0,u.kb)(n,r));e+=(c+(Math.sqrt((0,u.kb)(n,a))+Math.sqrt((0,u.kb)(a,i))+Math.sqrt((0,u.kb)(i,r))))/2,o+=c,n=r}if(e-o<r)return e}return e}},513(t,n,r){r.d(n,{KP:()=>i,X0:()=>h,fM:()=>f,mq:()=>c,zW:()=>l});var e=r(19419),a=r(59803),u=r(15507);class i{constructor(t,n,r,e,a,u){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=e,this.thetaEnd=a,this.isInvalid=u}get startPoint(){let{cx:t,cy:n,radius:r,thetaStart:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}get endPoint(){let{cx:t,cy:n,radius:r,thetaEnd:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}}function o(t,n){let{cx:r,cy:e,radius:a}=t;return[r+a*Math.cos(n),e+a*Math.sin(n)]}function c(t,n){if(t.isInvalid)return(0,u.RS)([0,0],t.startPoint,t.endPoint,n);let{thetaStart:r,thetaEnd:e}=t;return o(t,r*(1-n)+e*n)}function f(t,n){if(t.isInvalid)return(0,a.T)(t.startPoint,t.endPoint,n);let{cx:r,cy:e,thetaStart:i,thetaEnd:c}=t,[f,h]=n,l=(0,u.Pf)((0,u.yN)(i,c),Math.atan2(h-e,f-r)),s=o(t,l);return{t:(l-i)/(c-i),curvePoint:s,distance:Math.sqrt((0,u.kb)(n,s))}}function h(t,n){if(n.isInvalid)return(0,e.tK)(t,n.startPoint),(0,e.tK)(t,n.endPoint),t;let{cx:r,cy:a,radius:i,thetaStart:c,thetaEnd:f}=n;(0,e.tK)(t,o(n,c)),(0,e.tK)(t,o(n,f));let h=(0,u.yN)(c,f),l=Math.PI/2,s=0;for(let n of[[r+i,a],[r,a+i],[r-i,a],[r,a-i]])s=(0,u.Cp)(h,s),s>h.min&&s<h.max&&(0,e.tK)(t,n),s+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;let{radius:n,thetaStart:r,thetaEnd:e}=t;return n*Math.abs(e-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>f});var e=r(77690),a=r(29242),u=(r(37585),r(513)),i=r(15507);const o=(0,a.vt)();function c(t,n,r){let[a,u]=t,[c,f]=n,[h,l]=r;(0,e.hZ)(o,a,c,h,u,f,l,1,1,1);let s=(0,e.a4)(o),M=4*s/((0,i.kb)(t,n)+(0,i.kb)(n,r)+(0,i.kb)(r,t));if(!isFinite(M)||Math.abs(M)<1e-8)return null;let m=a**2+u**2,b=c**2+f**2,d=h**2+l**2;(0,e.hZ)(o,m,b,d,u,f,l,1,1,1);let x=(0,e.a4)(o);return(0,e.hZ)(o,m,b,d,a,c,h,1,1,1),[x/s*.5,(0,e.a4)(o)/s*-.5]}function f(t,n){let[r,e]=n.c,a=c(t,e,r),o=null==a,f=a??(0,i.RS)([],t,r,.5),[h,l]=t,[s,M]=e,[m,b]=r,[d,x]=f,p=h-d,y=l-x,v=Math.sqrt(p*p+y*y),g=(0,i.t7)(l-x,h-d),q=(0,i.t7)(M-x,s-d),P=(0,i.t7)(b-x,m-d);return(q-g)*(P-q)<0&&(P+=2*Math.sign(g-P)*Math.PI),new u.KP(d,x,v,g,P,o)}function h(t,n,r){let e=(0,u.mq)(t,r/2),a=(0,u.mq)(t,r),i=(0,u.mq)(t,(r+1)/2);return[{c:[a,e]},{c:[[...n.c[0]],i]}]}},79567(t,n,r){r.d(n,{e:()=>h});var e=r(19419),a=r(4305),u=r(513),i=r(50954),o=r(52006),c=r(49663),f=r(46068);function h(t,n,r){if((0,o.Xq)(r))return(0,e.tK)(t,n),(0,e.tK)(t,r),t;if((0,o.n1)(r))return(0,a.lM)(t,n,r);if((0,o.aO)(r)){let e=(0,i.pM)(n,r);return(0,u.X0)(t,e)}if((0,o.DA)(r)){let e=(0,c.io)(n,r);return(0,u.X0)(t,e)}return(0,f.DL)(t,n,r)}},52006(t,n,r){function e(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function a(t){return"curveRings"in t?t.curveRings:t.curvePaths}function u(t){return"b"in t}function i(t){return"c"in t}function o(t){return Array.isArray(t)}function c(t){return"a"in t}function f(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function l(t,n){return a(t).flat().some(t=>function(t,n){return!(o(t)||(u(t)?n.has("cubic-bezier"):i(t)?n.has("circular-arc"):!f(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function s(t){return o(t)?t:u(t)?t.b[0]:i(t)?t.c[0]:t.a[0]}function M(t){if(u(t)){let[n,r,e]=t.b;return{b:[[...n],[...r],[...e]]}}if(i(t)){let[n,r]=t.c;return{c:[[...n],[...r]]}}if(o(t))return[...t];if(f(t)){let[n,r,e,a]=t.a;return{a:[[...n],[...r],e,a]}}if(h(t)){let[n,r,e,a,u,i,o]=t.a;return{a:[[...n],[...r],e,a,u,i,o]}}return t}r.d(n,{DA:()=>f,Ed:()=>e,FD:()=>a,FG:()=>c,V8:()=>l,Xq:()=>o,aO:()=>i,n1:()=>u,tk:()=>M,wY:()=>h,yP:()=>s}),r(4576)},49663(t,n,r){r.d(n,{io:()=>i,xG:()=>o});var e=r(34727),a=(r(37585),r(513)),u=r(15507);function i(t,n){let[r,i,o,c]=n.a,[f,h]=t,[l,s]=r,[M,m]=i,b=f-M,d=h-m,x=Math.sqrt(b*b+d*d),p=l-M,y=s-m,v=Math.sqrt(p*p+y*y),g=0===x||0===v||!(0,e.b6)(x,v),q=x,[P,I]=(0,u.Gz)((0,u.t7)(h-m,f-M),Math.atan2(s-m,l-M),o,c);return new a.KP(M,m,q,P,I,g)}function o(t,n,r){let{cx:e,cy:u,thetaStart:i,thetaEnd:o}=t,[c,f,h,l]=n.a,s=i*(1-r)+o*r;return[{a:[(0,a.mq)(t,r),[e,u],+(Math.abs(s-i)<Math.PI),l]},{a:[[...c],[e,u],+(Math.abs(o-s)<Math.PI),l]}]}},46068(t,n,r){r.d(n,{DL:()=>M,ED:()=>l,SW:()=>c,Uk:()=>h,pb:()=>s,xm:()=>m}),r(77690);var e=r(29242),a=(r(37585),r(19419)),u=r(52006),i=r(15507);class o{constructor(t,n,r,e,a,u,i,o,c){this.cx=t,this.cy=n,this.a=r,this.b=e,this.cosR=a,this.sinR=u,this.u1=i,this.u2=o,this.isInvalid=c}}function c(t,n){let[r,e,a,u,c,f,h]=n.a,[l,s]=t,[M,m]=r,[b,d]=e,x=f*h,p=Math.cos(c),y=Math.sin(c),[v,g]=(0,i.Gz)((0,i.t7)(1/x*(s-d)*p-1/x*(l-b)*y,1/f*(s-d)*y+1/f*(l-b)*p),Math.atan2(1/x*(m-d)*p-1/x*(M-b)*y,1/f*(m-d)*y+1/f*(M-b)*p),a,u);return new o(b,d,f,x,p,y,v,g,0===f||0===x)}function f(t,n){let{a:r,b:e,cosR:a,sinR:u,cx:i,cy:o}=t,c=Math.cos(n),f=Math.sin(n);return[r*c*a-e*f*u+i,r*c*u+e*f*a+o]}function h(t,n){let{u1:r,u2:e}=t;return f(t,r*(1-n)+e*n)}function l(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,u.tk)(n)];let[e,[a,i],o,c,f,l,s]=n.a,{u1:M,u2:m}=t,b=M*(1-r)+m*r;return[{a:[[...h(t,r)],[a,i],+(Math.abs(b-M)<Math.PI),c,f,l,s]},{a:[[...e],[a,i],+(Math.abs(m-b)<Math.PI),c,f,l,s]}]}function s(t,n){let{a:r,b:e,cosR:a,sinR:u,u1:o,u2:c}=t,h=Math.PI/6,l=[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],s=(0,i.R)(n,l,n=>{let i=Math.cos(n),o=Math.sin(n),[c,h]=f(t,n);return[c,h,-r*a*o-e*u*i,-r*u*o+e*a*i,-r*a*i+e*u*o,-r*u*i-e*a*o]}),M=(0,i.yN)(o,c),m=new Set(s.map(t=>(0,i.Cp)(M,t)).filter(t=>t>M.min&&t<M.max));m.add(o),m.add(c);let b,d,x=1/0;for(let r of m){let e=f(t,r),[a,u]=e,i=n[0]-a,h=n[1]-u,l=i*i+h*h;l<x&&(b=(r-o)/(c-o),d=e,x=l)}return{t:b,curvePoint:d,distance:Math.sqrt(x)}}function M(t,n,r){let e=c(n,r),{a:u,b:o,u1:h,u2:l,cosR:s,sinR:M,isInvalid:m}=e,b=r.a[0];if((0,a.tK)(t,n),(0,a.tK)(t,b),m)return t;let d=Math.atan2(-o*M,u*s),x=d+Math.PI,p=Math.atan2(o*s,u*M),y=p+Math.PI,v=(0,i.yN)(h,l);for(let n of[d,x,p,y].map(t=>(0,i.Cp)(v,t)))n>v.min&&n<v.max&&(0,a.tK)(t,f(e,n));return t}function m(t,n,r){let[e,a,u,o,l,s,M]=n.a,m=c(t,n),{u1:b,u2:d,isInvalid:x}=m,p=d-b;if(x)return Math.sqrt((0,i.kb)(t,e));let y=[0,0],v=0,g=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){let t=g.length-1,n=p/(2*t),e=[];for(let r=0;r<t;r++)e.push(g[r]),e.push(f(m,b+(2*r+1)*n));e.push(g[g.length-1]),g=e,v=0;let u=0;for(let t=1;t<g.length;t++){let n=g[t-1],r=g[t];if(v+=Math.sqrt((0,i.kb)(n,r)),t>1){let e=g[t-2],o=(0,i.M_)(y,e,n,a,r);u+=o?Math.sqrt((0,i.kb)(n,o)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else u+=v}if(u-v<r)return v}return v}(0,e.vt)(),(0,e.vt)(),(0,e.vt)(),(0,e.vt)()},59803(t,n,r){r.d(n,{T:()=>u});var e=r(34727),a=r(15507);function u(t,n,r){let[u,i]=t,[o,c]=n,[f,h]=r,[l,s]=[o-u,c-i],M=l*(f-u)+s*(h-i);M/=l**2+s**2,M=isNaN(M)?0:(0,e.qE)(M,0,1);let m=(0,a.RS)([0,0],t,n,M);return{t:M,curvePoint:m,distance:Math.sqrt((0,a.kb)(m,r))}}},15507(t,n,r){r.d(n,{Cp:()=>b,Gz:()=>m,M_:()=>c,Pf:()=>d,R:()=>x,RS:()=>u,kb:()=>i,t7:()=>h,yE:()=>o,yN:()=>M});var e=r(34727),a=r(37585);function u(t,n,r,e){return t[0]=n[0]*(1-e)+r[0]*e,t[1]=n[1]*(1-e)+r[1]*e,t}function i(t,n){return(0,a.hG)(t,n)}function o(t,n,r){let e=i(n,r);if(0===e)return i(n,t);let a=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return a*a/e}function c(t,n,r,e,a){let[u,i]=n,[o,c]=r,[f,h]=e,[l,s]=a,M=(u-o)*(h-s)-(i-c)*(f-l);if(0===M)return null;let m=(u*c-i*o)*(f-l)-(u-o)*(f*s-h*l),b=(u*c-i*o)*(h-s)-(i-c)*(f*s-h*l);return t[0]=m/M,t[1]=b/M,t}const f=2*Math.PI;function h(t,n){let r=Math.atan2(t,n);return r<0?r+f:r}function l(t){return Math.abs(t)%f}function s(t){let n=l(t);return n<Math.PI?n:f-n}function M(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function m(t,n,r,a){if((0,e.Sp)(l(t-n),0))return r?[t,t]:[t,a?t-f:t+f];let[u,i]=a?[t-f,t]:[t,t+f];return[t,b({min:u,max:i},n)]}function b({min:t,max:n},r){let e;return e=n-r,e>=f?(e-=e%f,r+e):(e=r-t,e>=f?(e-=e%f,r-e):r)}function d(t,n){let r=b(t,n);return r>t.min&&r<t.max?r:s(r-t.min)<s(r-t.max)?t.min:t.max}function x(t,n,r,e=10){return n.map(n=>{let a=n;for(let n=0;n<e;n++){let[n,e,u,i,o,c]=r(a),f=t[0]-n,h=t[1]-e,l=-u,s=-i;a+=-(2*f*l+2*h*s)/(2*l*l+2*f*-o+2*s*s+2*h*-c||1e-6)}return a})}}}]);
|