@arcgis/core 5.2.0-next.143 → 5.2.0-next.145

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.
Files changed (95) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcgisGlobal.d.ts +5 -5
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  8. package/assets/esri/core/workers/chunks/18f20fd43ec9ce03cef1.js +1 -0
  9. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  10. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  11. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  12. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  13. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  14. package/assets/esri/core/workers/chunks/{5b3cfe95314a75a735c1.js → 588e677f33df86a595bf.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{1c0975c2dd1d0e2710bb.js → 6883a5c6883eccaddf64.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{f74e32d2ffe81778826b.js → 6c1d5577a17a5c8ccf39.js} +1 -1
  17. package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +1 -0
  18. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  19. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  20. package/assets/esri/core/workers/chunks/77ebacfdf8e57f2e03f1.js +1118 -0
  21. package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +1 -0
  22. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  23. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  24. package/assets/esri/core/workers/chunks/{402a82c77420254831bc.js → b7d77dd2abb255fd2e5a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +1 -0
  26. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  27. package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +1 -0
  28. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  29. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  30. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  31. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  32. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  33. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  34. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  35. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  36. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  37. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  38. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  39. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  40. package/config.js +1 -1
  41. package/kernel.js +1 -1
  42. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  43. package/layers/graphics/transferFeatures.js +1 -1
  44. package/package.json +2 -2
  45. package/symbols/cim/cimAnalyzer.js +1 -1
  46. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  47. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  48. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  49. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  50. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  51. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  52. package/views/3d/layers/support/FeatureMemory.js +1 -1
  53. package/views/3d/layers/support/FeatureTile.js +1 -1
  54. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  55. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  56. package/views/3d/support/PBFDecoder.js +1 -1
  57. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  58. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  59. package/views/SceneView.d.ts +4 -10
  60. package/views/View.d.ts +4 -12
  61. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  62. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  63. package/views/interactive/options/ValueOptions.d.ts +9 -2
  64. package/views/interactive/options/ViewOptions.d.ts +81 -6
  65. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  66. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  67. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  68. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  69. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  70. package/widgets/BasemapGallery/types.d.ts +3 -3
  71. package/widgets/BatchAttributeForm.js +1 -1
  72. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  73. package/widgets/Editor.d.ts +9 -9
  74. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  75. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  76. package/widgets/Sketch.d.ts +9 -9
  77. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  78. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  79. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  80. package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
  81. package/assets/esri/core/workers/chunks/4097edb2ad522dff50ce.js +0 -1
  82. package/assets/esri/core/workers/chunks/4a0216ee6382d9276f1c.js +0 -1
  83. package/assets/esri/core/workers/chunks/55766692b578e60dd70e.js +0 -1742
  84. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  85. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  86. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  87. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  88. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  89. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  90. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  91. package/assets/esri/core/workers/chunks/de24fc414a3f243d675e.js +0 -1
  92. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  93. package/assets/esri/core/workers/chunks/ea746d9bbea170719a1c.js +0 -1
  94. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  95. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>y,$m:()=>T,gh:()=>x,md:()=>S});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.phases=t,this.paused=!1,this.ticks=-1,this.removed=!1}}class c{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const d={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},_=["prepare","preRender","render","postRender","update","finish"],f=[],g=new h.A;class p{constructor(t){this._task=t}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1,m()}}function m(){b??=(u=performance.now(),requestAnimationFrame(A))}const v={frameTasks:g,willDispatch:!1,clearFrameTasks:function(t=!1){g.forAll(t=>{t.removed=!0}),t&&w()},dispatch:I,executeFrameTasks:function(t){let e=(0,a.l5)(t-u);u=t;let s=1e3/60,r=Math.max(0,e-s);d.time=t,d.frameDuration=(0,a.l5)(s-r);for(let s=0;s<_.length;s++){let r=performance.now(),l=_[s];g.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(d.elapsedFrameTime=(0,a.l5)(performance.now()-t),d.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,d))});let h=performance.now();E[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}w();let l=performance.now();q.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=b&&(cancelAnimationFrame(b),b=requestAnimationFrame(A))}};function y(t){let e=new c(t);return f.push(e),v.willDispatch||(v.willDispatch=!0,(0,r.d)(I)),e}let b=null;function A(){let t=performance.now();b=null,b=g.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(A):null,v.executeFrameTasks(t)}const k=new h.A;function w(){g.forAll(t=>{t.removed&&k.push(t)}),g.removeUnorderedMany(k.data,k.length),k.clear()}function I(){for(;f.length;){let t=f.shift();t.isActive&&t.callback()}v.willDispatch=!1}function S(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}function x(){let t=Promise.withResolvers(),e=function(t){let e=new o(t);return g.push(e),m(),new p(e)}({postRender:()=>{e.remove(),y(()=>t.resolve())}});return t.promise}async function T(t){await function(t){return S(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const E=_.map(t=>new l(t)),q=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>p,$m:()=>w,md:()=>k});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],_=[],f=new h.A,g={frameTasks:f,willDispatch:!1,clearFrameTasks:function(t=!1){f.forAll(t=>{t.removed=!0}),t&&b()},dispatch:A,executeFrameTasks:function(t){let e=(0,a.l5)(t-c);c=t;let s=1e3/60,r=Math.max(0,e-s);u.time=t,u.frameDuration=(0,a.l5)(s-r);for(let s=0;s<d.length;s++){let r=performance.now(),l=d[s];f.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(u.elapsedFrameTime=(0,a.l5)(performance.now()-t),u.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,u))});let h=performance.now();I[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}b();let l=performance.now();S.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=m&&(cancelAnimationFrame(m),m=requestAnimationFrame(v))}};function p(t){let e=new o(t);return _.push(e),g.willDispatch||(g.willDispatch=!0,(0,r.d)(A)),e}let m=null;function v(){let t=performance.now();m=null,m=f.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(v):null,g.executeFrameTasks(t)}const y=new h.A;function b(){f.forAll(t=>{t.removed&&y.push(t)}),f.removeUnorderedMany(y.data,y.length),y.clear()}function A(){for(;_.length;){let t=_.shift();t.isActive&&t.callback()}g.willDispatch=!1}function k(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}async function w(t){await function(t){return k(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const I=d.map(t=>new l(t)),S=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(54154),l(9169),l(12696),l(68785),l(89214),l(98619),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(84368),l(14113);var s=l(57323)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,8366],{73354(t,e,n){n.d(e,{a:()=>c,b:()=>a,c:()=>o,d:()=>u,e:()=>h,f:()=>f,l:()=>s,n:()=>p,t:()=>i}),n(44208);var r=n(72727);function o(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=n[0],f=n[1],c=n[2],h=n[4],p=n[5],M=n[6],d=n[8],m=n[9],g=n[10],v=n[12],y=n[13],S=n[14],_=0,w=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],u=e[_+2];t[w]=s*n+h*r+d*u+v,t[w+1]=f*n+p*r+m*u+y,t[w+2]=c*n+M*r+g*u+S,_+=i,w+=o}return t}function u(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=n[0],f=n[1],c=n[2],h=n[3],p=n[4],M=n[5],d=n[6],m=n[7],g=n[8],v=0,y=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],u=e[v+2];t[y]=s*n+h*r+d*u,t[y+1]=f*n+p*r+m*u,t[y+2]=c*n+M*r+g*u,v+=i,y+=o}}function l(t,e,n,r=3,o=r){let i=Math.min(t.length/r,e.length/o),u=0,a=0;for(let l=0;l<i;l++)t[a]=n*e[u],t[a+1]=n*e[u+1],t[a+2]=n*e[u+2],u+=o,a+=r;return t}function s(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,r,o=3,i=o){let u=Math.min(t.length/o,e.length/i),a=0,l=0,s=1/2.2;for(let f=0;f<u;f++)t[l]=r*(n*e[a])**s,t[l+1]=r*(n*e[a+1])**s,t[l+2]=r*(n*e[a+2])**s,a+=i,l+=o}function c(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=0,f=0;for(let r=0;r<l;r++)t[f]=e[s]+n[0],t[f+1]=e[s+1]+n[1],t[f+2]=e[s+2]+n[2],s+=i,f+=o;return t}function h(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){let o=Math.min(t.length/n,e.length/r),i=0,u=0;for(let a=0;a<o;a++){let o=e[i],a=e[i+1],l=e[i+2],s=o*o+a*a+l*l;if(s>0){let e=1/Math.sqrt(s);t[u]=e*o,t[u+1]=e*a,t[u+2]=e*l}i+=r,u+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:s,normalize:p,normalizeView:h,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,a=e.typedBufferStride,l=0,s=0;for(let t=0;t<r;t++)o[s]=u[l]>>n,o[s+1]=u[l+1]>>n,o[s+2]=u[l+2]>>n,l+=a,s+=i},transformMat3:a,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function a(){return i(-1,-1)}function l(){return i(1,0)}function s(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>o,vt:()=>r});const f=u(),c=a(),h=l(),p=s();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:f,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:a,ones:u,unitX:l,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,c,"Un",0,f])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function a(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function s(){return o(0,0,0,1)}n.d(e,{_Y:()=>s,fA:()=>o,vt:()=>r});const f=[0,0,0,0],c=i(),h=u(),p=a(),M=l(),d=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:M,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:i,unitW:s,unitX:u,unitY:a,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,f])},67026(t,e,n){n.d(e,{A6:()=>d,Xd:()=>f,Xr:()=>p,lw:()=>c,x8:()=>s});var r=n(29242),o=n(82534),i=n(51850),u=n(34304),a=n(35522),l=n(78955);function s(t,e,n){n*=.5;let r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function f(t,e){let n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,u.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function c(t,e,n){let r=e[0],o=e[1],i=e[2],u=e[3],a=n[0],l=n[1],s=n[2],f=n[3];return t[0]=r*f+u*a+o*s-i*l,t[1]=o*f+u*l+i*a-r*s,t[2]=i*f+u*s+r*l-o*a,t[3]=u*f-r*a-o*l-i*s,t}function h(t,e,n,r){let o,i,a,l,s,f=e[0],c=e[1],h=e[2],p=e[3],M=n[0],d=n[1],m=n[2],g=n[3];return i=f*M+c*d+h*m+p*g,i<0&&(i=-i,M=-M,d=-d,m=-m,g=-g),1-i>(0,u.FD)()?(o=Math.acos(i),a=Math.sin(o),l=Math.sin((1-r)*o)/a,s=Math.sin(r*o)/a):(l=1-r,s=r),t[0]=l*f+s*M,t[1]=l*c+s*d,t[2]=l*h+s*m,t[3]=l*p+s*g,t}function p(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function M(t,e){let n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let o=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+i]-e[3*i+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,n,r){let o=.5*Math.PI/180;e*=o,n*=o,r*=o;let i=Math.sin(e),u=Math.cos(e),a=Math.sin(n),l=Math.cos(n),s=Math.sin(r),f=Math.cos(r);return t[0]=i*l*f-u*a*s,t[1]=u*a*f+i*l*s,t[2]=u*l*s-i*a*f,t[3]=u*l*f+i*a*s,t}const m=l.C,g=l.hZ,v=l.WQ,y=c,S=l.hs,_=l.Om,w=l.Cc,A=l.Bw,b=A,B=l.m3,O=B,x=l.S8,I=l.t2,N=l.aI,T=(0,i.vt)(),Z=(0,i.fA)(1,0,0),q=(0,i.fA)(0,1,0),R=(0,o.vt)(),C=(0,o.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,e){let n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:p,copy:m,dot:_,equals:N,exactEquals:I,fromEuler:d,fromMat3:M,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let n=e[0],r=e[1],o=e[2],i=e[3],u=n*n+r*r+o*o+i*i,a=u?1/u:0;return t[0]=-n*a,t[1]=-r*a,t[2]=-o*a,t[3]=i*a,t},len:b,length:A,lerp:w,mul:y,multiply:c,normalize:x,random:function(t){let e=u.Ov,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),a=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=a*Math.sin(2*Math.PI*o),t[3]=a*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l+u*a,t[1]=o*l+i*a,t[2]=i*l-o*a,t[3]=u*l-r*a,t},rotateY:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l-i*a,t[1]=o*l+u*a,t[2]=i*l+r*a,t[3]=u*l-o*a,t},rotateZ:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*a,t[1]=o*l-r*a,t[2]=i*l+u*a,t[3]=u*l-i*a,t},rotationTo:function(t,e,n){let r=(0,a.Om)(e,n);return r<-.999999?((0,a.$A)(T,Z,e),(0,a.Il)(T)<1e-6&&(0,a.$A)(T,q,e),(0,a.S8)(T,T),s(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,a.$A)(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,x(t,t))},scale:S,set:g,setAxes:function(t,e,n,r){let o=P;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],x(t,M(t,o))},setAxisAngle:s,slerp:h,sqlerp:function(t,e,n,r,o,i){return h(R,e,o,i),h(C,n,r,i),h(t,R,C,2*i*(1-i)),t},sqrLen:O,squaredLength:B,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),n.d(e,["hZ",0,g,"t2",0,I])},48353(t,e,n){n.d(e,{l:()=>s});var r=n(34727),o=n(58083),i=n(51850);function u(t,e,n){let r=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),a=n;return a[0]=-r,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=u*r,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=n(49208),l=n(21325);function s(t,e,n,r){let i=(0,a.Tp)(t,r);if(null==i)return!1;let s=i.source.spatialReferenceId,M=i.dest.spatialReferenceId;if(s===M&&!f(M)&&(0!==s||(0,l.aI)(t,r)))return(0,o.kN)(n,e),!0;if(f(M)){let t=a.w5[s][10],r=a.w5[10][M];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),u(c*h[0],c*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}let d=f(s);if((3===M||11===M||2===M||5===M)&&(2===s||d||3===s||5===s)){let t=a.w5[s][10],r=a.w5[10][M];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),d?function(t,e,n){u(t,e,n),(0,o.mg)(n,n)}(c*h[0],c*h[1],n):(0,o.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const c=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,n){n.d(e,{g:()=>u});var r=n(51850),o=n(99917),i=n(9762);function u(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,i.projectBuffer)(a,t.spatialReference,0,e,n,0);let u=(0,o.tryProject)(t,n,r);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const a=(0,r.vt)()},73836(t,e,n){n.d(e,{A:()=>p});var r=n(32198),o=n(69540),i=n(25482),u=n(91429),a=n(58083),l=n(9093),s=n(67026),f=n(82534),c=n(51850),h=n(24770);let p=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,c.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){let t=(0,l.vt)();return(0,s.x8)(M,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,a.o1)(t,M,this.translation,this.scale),t}get localMatrixInverse(){return(0,a.B8)((0,l.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,a.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"translation",void 0),(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"scale",void 0),(0,r.Cg)([(0,u.MZ)()],p.prototype,"rotation",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"localMatrix",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"localMatrixInverse",null),p=(0,r.Cg)([(0,u.$K)("esri.geometry.support.MeshTransform")],p);const M=(0,f.vt)()},24770(t,e,n){n.d(e,{$I:()=>m,AU:()=>p,g7:()=>d,i4:()=>f,ui:()=>c,vt:()=>s,yo:()=>M});var r=n(34727),o=n(58083),i=n(67026),u=n(82534),a=n(35522),l=n(51850);function s(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,e,n=s()){return(0,a.C)(n,t),n[3]=e,n}function c(t,e=s()){let n=(0,o.l)(y,t);return g(e,(0,r.KJ)((0,i.Xd)(e,n))),e}function h(t,e,n=s()){return(0,i.x8)(y,t,m(t)),(0,i.x8)(S,e,m(e)),(0,i.lw)(y,S,y),g(n,(0,r.KJ)((0,i.Xd)(n,y)))}function p(t,e,n,r=s()){return f(l.Cw,t,_),f(l.JP,e,w),f(l.Cb,n,A),h(_,w,_),h(_,A,r),r}function M(t){return t}function d(t){return t[3]}function m(t){return(0,r.kU)(t[3])}function g(t,e){return t[3]=e,t}const v=[0,0,1,0],y=(0,u.vt)(),S=(0,u.vt)(),_=(s(),s()),w=s(),A=s();n.d(e,["up",0,v])},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},27921(t,e,n){n.d(e,{$Q:()=>I,BX:()=>x,C:()=>s,Cr:()=>p,H:()=>T,LV:()=>l,O_:()=>h,Qj:()=>f,T7:()=>b,Ui:()=>A,_I:()=>Z,fA:()=>c,gv:()=>B,lU:()=>M,mN:()=>q,mP:()=>_,mR:()=>w,vE:()=>P,vt:()=>a,wE:()=>R});var r=n(34727),o=n(35522),i=n(51850),u=(n(78955),n(44280),n(32114));function a(t=X){return[t[0],t[1],t[2],t[3]]}function l(t=X[0],e=X[1],n=X[2],r=X[3]){return c(t,e,n,r,u.Km.get())}function s(t,e){return c(e[0],e[1],e[2],e[3],t)}function f(t){return t}function c(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function h(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function p(t,e,n,r=a()){let o=n[0]-e[0],i=n[1]-e[1],u=n[2]-e[2],l=t[0]-e[0],s=t[1]-e[1],f=t[2]-e[2],c=i*f-u*s,h=u*l-o*f,p=o*s-i*l,M=c*c+h*h+p*p,d=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=c*d,r[1]=h*d,r[2]=p*d,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,e,n,r=0,i=Math.floor(1/3*n),u=Math.floor(2/3*n)){if(n<3)return!1;e(m,r);let a=i,l=!1;for(;a<n-1&&!l;)e(g,a),a++,l=!(0,o.t2)(m,g);if(!l)return!1;for(a=Math.max(a,u),l=!1;a<n&&!l;)e(v,a),a++,(0,o.Re)(y,m,g),(0,o.S8)(y,y),(0,o.Re)(S,g,v),(0,o.S8)(S,S),l=!(0,o.t2)(m,v)&&!(0,o.t2)(g,v)&&Math.abs((0,o.Om)(y,S))<d;return l?(p(m,g,v,t),!0):(0!==r||1!==i||2!==u)&&M(t,e,n,0,1,2)}n(32728);const d=.99619469809,m=(0,i.vt)(),g=(0,i.vt)(),v=(0,i.vt)(),y=(0,i.vt)(),S=(0,i.vt)();function _(t,e,n){return e!==t&&s(t,e),t[3]=-(0,o.Om)(t,n),t}function w(t,e,n,r){return(0,o.$A)(v,e,t),h(n,v,r)}function A(t,e,n){return null!=e&&C(P(t,e.origin,e.direction,E,n))}function b(t,e,n){return C(P(t,e.origin,e.vector,0,n))}function B(t,e,n){return C(P(t,e.origin,e.vector,1,n))}function O(t,e){return q(t,e)<=0}function x(t,e){return q(t,e)>=0}function I(t,e){return function(t,e,n,r,i,u,a){let l=(0,o.Om)(t,n),s=q(t,e);if(l>-1e-6&&l<1e-6)return N(s,i,u);let f=-s/l,c=N(l,i,!1);return!(a&&!c&&!N(s,i,u))&&(c?f>r.c0&&(r.c0=f):f<r.c1&&(r.c1=f),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0)}function N(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function T(t,e,n,r=!1){let i=e.at(-1),u=q(t,i),a=r?u>0:u<=0;for(let l=0;l<e.length;l++){let s=e.at(l),f=q(t,s),c=r?f>0:f<=0;a!==c&&(0,o.Cc)(n(),i,s,u/(u-f)),c&&(0,o.C)(n(),s),i=s,u=f,a=c}}function Z(t,e,n){let r=(0,o.hs)(u.rq.get(),t,-t[3]),i=function(t,e,n){let r=(0,o.hs)(u.rq.get(),t,(0,o.Om)(t,e));return(0,o.Re)(n,e,r),n}(t,(0,o.Re)(u.rq.get(),e,r),u.rq.get());return(0,o.WQ)(n,i,r),n}function q(t,e){return(0,o.Om)(t,e)+t[3]}function R(t,e,n){for(let r=0;r<n;++r)if(O(t,e[r]))return!1;return!0}function C(t){return 0===t||1===t}function P(t,e,n,i,u){let a=(0,o.Om)(t,n),l=q(t,e);if(0===a)return l>=0?2:3;let s=-l/a;return 1&i&&(s=(0,r.qE)(s,0,1)),!(4&i)&&s<0||!(8&i)&&s>1?l>=0?2:3:((0,o.WQ)(u,e,(0,o.hs)(u,n,s)),l>=0?0:1)}const X=[0,0,1,0],E=8;(0,i.vt)()},44280(t,e,n){n.d(e,{g7:()=>a,gr:()=>u});var r=n(34727),o=n(35522),i=n(51850);function u(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function a(t,e){let n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>p,rq:()=>c,Km:()=>h}),n(44208);var r=n(26390),o=n(29242),i=n(9093),u=n(82534),a=n(48163),l=n(51850),s=n(91829);class f{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(a.vt)}static createVec3f64(){return new f(l.vt)}static createVec4f64(){return new f(s.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(u.vt)}get test(){}}f.createVec2f64();const c=f.createVec3f64(),h=f.createVec4f64(),p=(f.createMat3f64(),f.createMat4f64());f.createQuatf64()},77793(t,e,n){n.d(e,{V:()=>i,f:()=>u});var r=n(86738),o=n(73836);function i(t,e,n=a){return new r.A({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}function u(t,e=a){return new o.A({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}const a={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,e,n){n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>m,extractMesh:()=>d,meshFeatureSetFromJSON:()=>M});var r=n(52106),o=n(53966),i=n(91869),u=n(5443),a=n(16930),l=n(40118),s=n(63579),f=n(20557),c=n(22671),h=n(77793);const p=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function M(t,e,n){let o=n.features;n.features=[],delete n.geometryType;let i=c.A.fromJSON(n);if(i.geometryType="mesh",!n.assetMaps)return i;let u=m(e,n.assetMaps),l=t.sourceSpatialReference??a.A.WGS84,s=n.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(p=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!p)return t;for(let e in t)p.has(e)||delete t[e];return t}):()=>({});var p;for(let t of o){let n=d(t,s,l,e,u);i.features.push(new r.A({geometry:n,attributes:h(t)}))}return i}function d(t,e,n,r,o){let i=t.attributes[e],a=o.get(i);if(null==a||!t.geometry)return null;let f=(0,h.V)(t.attributes,n,r.transformFieldRoles),c=u.A.fromJSON(t.geometry);c.spatialReference=n;let p=(0,h.f)(t.attributes,r.transformFieldRoles),M=n.isGeographic?"local":"georeferenced",d=function(t){let e=Array.from(t.files.values()),n=[];for(let t of e){if(2!==t.status)return null;let e=[];for(let n of t.parts){if(!n)return null;e.push(new s.Bq(n.url,n.hash))}n.push(new s.Qp(t.name,t.mimeType,e))}return{type:"service",assets:n}}(a);return d?(0,l.createWithExternalSource)(f,d,{extent:c,transform:p,vertexSpace:M,unitConversionDisabled:!0}):(0,l.H5)(f,{transform:p,vertexSpace:M})}function m(t,e){let n=new Map;for(let r of e){let e=r.parentGlobalId;if(null==e)continue;let o=r.assetName,u=r.assetType,a=r.assetHash,l=r.assetURL,s=r.conversionStatus,c=r.seqNo,h=(0,f.Fm)(u,t.supportedFormats);if(!h){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${u}, but it does not list it as a supported type`);continue}let M=(0,i.tE)(n,e,()=>({files:new Map}));(0,i.tE)(M.files,o,()=>({name:o,type:u,mimeType:h,status:g(s),parts:[]})).parts[c]={hash:a,url:l}}return n}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,e,n){n.d(e,{YH:()=>u,nu:()=>a,wp:()=>i}),n(34727);var r=n(35522),o=n(51850);function i(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function u(t,e,n){n||=t;let o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function a(t,e,n,i=(0,o.vt)()){let u=(0,r.Bw)(t),a=(0,r.Bw)(e),f=(0,r.Om)(t,e)/(u*a);if(f<.9999999999999999){let o=Math.acos(f),c=((1-n)*u+n*a)/Math.sin(o),h=c/u*Math.sin((1-n)*o),p=c/a*Math.sin(n*o);return(0,r.hs)(l,t,h),(0,r.hs)(s,e,p),(0,r.WQ)(i,l,s)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const l=(0,o.vt)(),s=(0,o.vt)()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7499],{68197(t,e,r){r.d(e,{A:()=>h});var i=r(40876),a=r(4576),n=r(34727),s=r(78888);function o(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function u(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class h{static blendColors(t,e,r,i=new h){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?h.fromArray(r,e):null}static fromHex(t,e=new h){let r=(0,i.oW)(t);return r?h.fromArray(r,e):null}static fromArray(t,e=new h){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?h.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new h([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof h?t:new h(t),i=u(this),a=u(r);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)<e}setColor(t){if("string"==typeof t)h.fromString(t,this);else if((0,a.yc)(t))h.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,a=4===r||8===r,n=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${a?l(Math.round(255*this.a),i):""}`;return e?n.toUpperCase():n}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>y,G1:()=>m,Q6:()=>_,TS:()=>n,V6:()=>a,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(t){return!!i[t]||!!i[t.toLowerCase()]}function n(t){return i[t]??i[t.toLowerCase()]}function s(t){return[...n(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let a=(t%360+360)%360/360,n=r<=.5?r*(e+1):r+e-r*e,s=2*r-n;return[Math.round(255*o(s,n,a+1/3)),Math.round(255*o(s,n,a)),Math.round(255*o(s,n,a-1/3)),i]}function u(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,a=e?1:17,n=e?9===t.length:5===t.length,s=Number("0x"+t.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return n&&(o=s&i,s>>=r,l[3]=a*o/255),o=s&i,s>>=r,l[2]=a*o,o=s&i,s>>=r,l[1]=a*o,o=s&i,s>>=r,l[0]=a*o,l}function h(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),a=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(a+16*a)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function y(t){let e=a(t)?n(t):null;return e??=c(t),e??=h(t),e}function f(t){let e=y(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function m(t){return d(t,0,1)}function g(t){return Math.round(d(t,0,255))}function d(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const b=1/2.2;function _(t){return t**2.2}function v(t){return t**b}r.d(e,["iw",0,b])},91829(t,e,r){function i(){return[0,0,0,0]}function a(t,e,r,i){return[t,e,r,i]}function n(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function o(){return a(0,1,0,0)}function l(){return a(0,0,1,0)}function u(){return a(0,0,0,1)}r.d(e,{_Y:()=>u,fA:()=>a,vt:()=>i});const h=[0,0,0,0],c=n(),p=s(),y=o(),f=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:f,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:i,freeze:function(t,e,r,i){return[t,e,r,i]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let i=0;i<r;++i)e[i]=t[i];return e},fromValues:a,ones:n,unitW:u,unitX:s,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,h])},78955(t,e,r){r.d(e,{Bw:()=>g,C:()=>a,Cc:()=>v,LI:()=>p,Om:()=>_,S8:()=>b,T9:()=>c,WQ:()=>s,Z0:()=>x,aI:()=>T,hG:()=>m,hZ:()=>n,hs:()=>y,jk:()=>h,m3:()=>d,t2:()=>w});var i=r(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function n(t,e,r,i,a){return t[0]=e,t[1]=r,t[2]=i,t[3]=a,t}function s(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],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[3]=e[3]*r[3],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[3]=e[3]/r[3],t}function h(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[3]=Math.min(e[3],r[3]),t}function c(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[3]=Math.max(e[3],r[3]),t}function p(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function f(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return Math.sqrt(r*r+i*i+a*a+n*n)}function m(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return r*r+i*i+a*a+n*n}function g(t){let e=t[0],r=t[1],i=t[2],a=t[3];return Math.sqrt(e*e+r*r+i*i+a*a)}function d(t){let e=t[0],r=t[1],i=t[2],a=t[3];return e*e+r*r+i*i+a*a}function b(t,e){let r=e[0],i=e[1],a=e[2],n=e[3],s=r*r+i*i+a*a+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=a*s,t[3]=n*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,r,i){let a=e[0],n=e[1],s=e[2],o=e[3];return t[0]=a+i*(r[0]-a),t[1]=n+i*(r[1]-n),t[2]=s+i*(r[2]-s),t[3]=o+i*(r[3]-o),t}function x(t,e,r){let i=e[0],a=e[1],n=e[2],s=e[3];return t[0]=r[0]*i+r[4]*a+r[8]*n+r[12]*s,t[1]=r[1]*i+r[5]*a+r[9]*n+r[13]*s,t[2]=r[2]*i+r[6]*a+r[10]*n+r[14]*s,t[3]=r[3]*i+r[7]*a+r[11]*n+r[15]*s,t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){let r=t[0],a=t[1],n=t[2],s=t[3],o=e[0],l=e[1],u=e[2],h=e[3],c=(0,i.FD)();return Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}const I=o,E=l,P=u,D=f,L=m,A=g,k=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:a,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:D,distance:f,div:P,divide:u,dot:_,equals:T,exactEquals:w,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:A,length:g,lerp:v,max:c,min:h,mul:E,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:b,random:function(t,e=1){let r,a,n,s,o,l,u=i.Ov;do{r=2*u()-1,a=2*u()-1,o=r*r+a*a}while(o>=1);do{n=2*u()-1,s=2*u()-1,l=n*n+s*s}while(l>=1);let h=Math.sqrt((1-o)/l);return t[0]=e*r,t[1]=e*a,t[2]=e*n*h,t[3]=e*s*h,t},round:p,scale:y,scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t[3]=e[3]+r[3]*i,t},set:n,sqrDist:L,sqrLen:k,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:o,transformMat4:x,transformQuat:function(t,e,r){let i=e[0],a=e[1],n=e[2],s=r[0],o=r[1],l=r[2],u=r[3],h=u*i+o*n-l*a,c=u*a+l*i-s*n,p=u*n+s*a-o*i,y=-s*i-o*a-l*n;return t[0]=h*u+y*-s+c*-l-p*-o,t[1]=c*u+y*-o+p*-s-h*-l,t[2]=p*u+y*-l+h*-o-c*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>a});var i=r(34275);function a(t){if(!t)return 0;let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=h;for(let i=0;i<e;i++)r+=s(t[i]);return r}(t);let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r]));return e}function s(t,e=!0){switch(typeof t){case"object":return e?n(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return h+t.length*e}const u=32,h=16,c=145},4264(t,e,r){r.d(e,{lf:()=>St,L:()=>Rt,A4:()=>Mt,aR:()=>zt,tU:()=>Ot,V1:()=>Nt,uU:()=>Ut});var i=r(19419),a=r(12176),n=r(13195),s=r(89518),o=r(68572),l=r(63907),u=r(85079),h=r(74038);class c{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,i){let a=this.propertyInfos,n=this.getEncodingInfos(),s=[],o=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<o;t++)s.push(0);for(let o of Object.keys(n)){let l=n[o],{type:u,precisionFactor:h,isLayout:c}=a[o],p=c?r.getLayoutProperty(o):r.getPaintProperty(o),y=p.interpolator?.getInterpolationRange(e),f=0;for(let r of l){let{offset:a}=r,n=Math.floor(a/4),o=a%4*8,l=null==i||11!==u&&12!==u?p.getValue(y?y[f]:e,t):i,c=h||1;switch(u){case 0:case 1:s[n]|=this._encodeByte(l*c,0)<<o;break;case 2:case 3:s[n]|=this._encodeShort(l*c,0)<<o;break;case 4:case 5:{let t=this._encodeByte(l*c,0),e=this._encodeByte(l*c,8);s[n]|=t<<o,s[n]|=e<<o}break;case 6:case 7:s[n]|=this._encodeShort(l*c,0),s[n]|=this._encodeShort(l*c,16);break;case 8:case 9:s[n]|=this._encodeByte(l*c,0),s[n]|=this._encodeByte(l*c,8),s[n]|=this._encodeByte(l*c,16),s[n]|=this._encodeByte(l*c,24);break;case 10:s[n]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(n,s,l);break;default:throw Error("Unsupported encoding type")}f++}}return s}getAtributeState(t){let e=0,r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}static{this._encodingInfo={0:{dataType:l.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:l.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:l.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:l.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:l.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){let i=r[t],a=i.name,{count:n,dataType:s,normalized:o}=c._encodingInfo[i.type],{attribueIdx:l,precisionFactor:u}=i,h=u||1,p=[{location:l[0],name:a,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}];if(this._precisionFactors[a]=h,2===e){let e=`${a}To`;p.push({location:l[1],name:e,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}),this._precisionFactors[e]=h}return p}_buildMaterialInfo(){let t=[];this._propertyEncodingInfo={};let e={},r=this.properties,i=this.propertyInfos,a=-1;for(let n of r){a++;let r=i[n].name;e[r]=!1,e[`${r}To`]=!1;let s=this.getAtributeState(a);if(0===s||3===s)continue;let o=this._getLayoutElementsForPropertyState(n,s,i);t.push(...o)}for(let r of t)e[r.name]=!0;let n=function(t){let e=(0,o.H)(t),r=[],i=0;for(let t of e)r.push({...t,offset:i}),i+=p(t.type)*t.count;return r}(t);this._buildLayout(n),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this._locations=this.opacityLayout?(0,u._u)([this.baseGeometryLayout,this.opacityLayout]):(0,u.Xk)(this.baseGeometryLayout);let e=this.baseGeometryLayout,r=e[0].stride,i=[],a=0;for(let e of t)a+=p(e.type)*e.count;r=y(r+a);for(let t of e)i.push(new h._(t.name,t.count,t.type,t.offset,r,t.normalized));let n=0;for(let a of t)i.push(new h._(a.name,a.count,a.type,e[0].stride+n,r,a.normalized)),void 0===this._propertyEncodingInfo[a.propertyName]&&(this._propertyEncodingInfo[a.propertyName]=[]),this._propertyEncodingInfo[a.propertyName].push({offset:n}),n+=p(a.type)*a.count;this._ddStrideInBytes=n,this._geometryLayout=i;let s=this._locations;for(let e of t)s.set(e.name,e.location);this._stride=r}_buildShaderUniforms(){let t=[],e=this.properties,r=this.propertyInfos,i=-1;for(let a of e){i++;let{name:e,type:n,isLayout:s}=r[a];switch(this.getAtributeState(i)){case 0:t.push({name:e,getValue:(t,e,r,i)=>{let o=s?t.getLayoutValue(a,e):t.getPaintValue(a,e);switch(n){case 11:{let r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),a=i.getMosaicItemPosition(r,!1);if(null==a)return null;let{tl:n,br:s}=a;return[n[0],s[1],s[0],n[1]]}case 12:{let t=i.getMosaicItemPosition(o,!a.includes("line-"));if(null==t)return null;let{tl:e,br:r}=t;return[e[0],r[1],r[0],e[1]]}case 10:{let t=o[3];return[t*o[0],t*o[1],t*o[2],t]}default:return o}}});break;case 2:{let r=`${e}Mix`;t.push({name:r,getValue:(t,e,r,i)=>(s?t.getLayoutProperty(a):t.getPaintProperty(a)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){let e=255*t[3];return(0,s.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;let i=r.rect,a=r.width,n=r.height;e[t]=this._encodeShort(i.x+2,0),e[t]|=this._encodeShort(i.y+2+n,16),e[t+1]=this._encodeShort(i.x+2+a,0),e[t+1]|=this._encodeShort(i.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const p=t=>{switch(t){case l.pe.FLOAT:case l.pe.INT:case l.pe.UNSIGNED_INT:return 4;case l.pe.SHORT:case l.pe.UNSIGNED_SHORT:case l.pe.HALF_FLOAT:return 2;case l.pe.BYTE:case l.pe.UNSIGNED_BYTE:return 1}},y=t=>t+3&-4;class f extends c{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends c{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends c{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=g.ATTRIBUTES,this.propertyInfos=g.ATTRIBUTES_INFO}}class d extends c{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,8),new h._("offset",2,l.pe.BYTE,4,8),new h._("normal",2,l.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=e?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.propertyInfos=e?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE}}class b extends c{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,16),new h._("extrudeOffset",4,l.pe.BYTE,4,16),new h._("directionNormal",4,l.pe.BYTE,8,16),new h._("accumulatedDistance",2,l.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=b.GEOMETRY_LAYOUT,this.properties=b.ATTRIBUTES,this.propertyInfos=b.ATTRIBUTES_INFO}}const _=[new h._("positionAndOffset",4,l.pe.SHORT,0,16),new h._("iconInfo",4,l.pe.UNSIGNED_SHORT,8,16)],v=[new h._("opacityInfo",1,l.pe.UNSIGNED_BYTE,0,1)];class x extends c{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10,attribueIdx:[2,8]},"icon-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"icon-halo-color":{name:"haloColor",type:10,attribueIdx:[4,10]},"icon-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[5,11]},"icon-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[6,12]},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0,attribueIdx:[7,13]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=x.ATTRIBUTES,this.propertyInfos=x.ATTRIBUTES_INFO}}class w extends c{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10,attribueIdx:[4,10]},"text-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"text-halo-color":{name:"haloColor",type:10,attribueIdx:[5,11]},"text-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[6,12]},"text-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[7,13]},"text-size":{name:"size",type:1,isLayout:!0,attribueIdx:[2,8]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=w.ATTRIBUTES,this.propertyInfos=w.ATTRIBUTES_INFO}}var T=r(68197),I=r(85334);function E(t,e,r,i){let a=3*t,n=3*(r-t)-a,s=1-a-n,o=3*e,l=3*(i-e)-o,u=1-o-l;function h(t){return((s*t+n)*t+a)*t}function c(t){return(3*s*t+2*n)*t+a}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,i,a,n,s,o;for(a=t,o=0;o<8;o++){if(n=h(a)-t,Math.abs(n)<e)return a;if(s=c(a),Math.abs(s)<1e-6)break;a-=n/s}if(r=0,i=1,a=t,a<r)return r;if(a>i)return i;for(;r<i;){if(n=h(a),Math.abs(n-t)<e)return a;t>n?r=a:i=a,a=.5*(i-r)+r}return a}(t,e))}}const P={ease:E(.25,.1,.25,1),linear:E(0,0,1,1),easeIn:E(.42,0,1,1),easeOut:E(0,0,.58,1),easeInOut:E(.42,0,.58,1)};P["ease-in"]=P.easeIn,P["ease-out"]=P.easeOut,P["ease-in-out"]=P.easeInOut;const D={kind:"null"},L={kind:"number"},A={kind:"string"},k={kind:"boolean"},S={kind:"color"},M={kind:"object"},O={kind:"value"};function N(t,e){return{kind:"array",itemType:t,n:e}}const R=[D,L,A,k,S,M,N(O)];function z(t){if("array"===t.kind){let e=z(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return D;if("string"==typeof t)return A;if("boolean"==typeof t)return k;if("number"==typeof t)return L;if(t instanceof T.A)return S;if(Array.isArray(t)){let e;for(let r of t){let t=U(r);if(e){if(e!==t){e=O;break}}else e=t}return N(e||O,t.length)}return"object"==typeof t?M:O}function B(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||B(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(let e of R)if(B(t,e))return!0;return e.kind===t.kind}function V(t){if(null===t)return"";let e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof T.A?t.toString():JSON.stringify(t)}class F{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}function G(t){if(!Array.isArray(t)||0===t.length)return!1;let e=t[0];if("literal"===e)return!1;if("accumulated"===e||"feature-state"===e||"geometry-type"===e||"id"===e||"line-progress"===e||"properties"===e||"has-id"===e||("get"===e||"has"===e)&&2===t.length)return!0;for(let e=1;e<t.length;e++)if(G(t[e]))return!0;return!1}class ${constructor(){this.type=O}static parse(t){if(t.length>1)throw Error('"id" does not expect arguments');return new $}evaluate(t,e){return t?.id}}class C{constructor(){this.type=A}static parse(t){if(t.length>1)throw Error('"geometry-type" does not expect arguments');return new C}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class Y{constructor(){this.type=M}static parse(t){if(t.length>1)throw Error('"properties" does not expect arguments');return new Y}evaluate(t,e){return t?.values}}class q{constructor(){this.type=L}static parse(t){if(t.length>1)throw Error('"zoom" does not expect arguments');return new q}evaluate(t,e){return e}}class j{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=k}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw Error(`"${t[0]}" collator not supported`);return new j(It(t[1],e),It(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class H{constructor(t){this._arg=t,this.type=k}static parse(t,e){if(2!==t.length)throw Error('"!" expects 1 argument');return new H(It(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class W{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new W(r)}evaluate(t,e){for(let r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class Z{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new Z(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!0;return!1}}class K{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new K(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw Error('"case" expects at least 3 arguments');if(t.length%2==1)throw Error('"case" expects an odd number of arguments');let i,a=[];for(let n=1;n<t.length-1;n+=2){let s=It(t[n],e),o=It(t[n+1],e,r);i||=o.type,a.push({condition:s,output:o})}let n=It(t[t.length-1],e,r);return i||=n.type,new X(i,a,n)}evaluate(t,e){for(let r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class Q{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw Error('"coalesce" expects at least 1 argument');let r,i=[];for(let a=1;a<t.length;a++){let n=It(t[a],e);r||=n.type,i.push(n)}return new Q(r,i)}evaluate(t,e){for(let r of this._args){let i=r.evaluate(t,e);if(null!==i)return i}return null}}class J{constructor(t,e,r,i,a){this.type=t,this._input=e,this._labels=r,this._outputs=i,this._fallback=a}static parse(t,e){if(t.length<3)throw Error('"match" expects at least 3 arguments');if(t.length%2==0)throw Error('"case" expects an even number of arguments');let r,i,a=It(t[1],e),n=[],s={};for(let a=2;a<t.length-1;a+=2){let o=t[a];Array.isArray(o)||(o=[o]);for(let t of o){let e=typeof t;if("string"!==e&&"number"!==e)throw Error('"match" requires string or number literal as labels');if(i){if(e!==i)throw Error('"match" requires labels to have the same type')}else i=e;s[t]=n.length}let l=It(t[a+1],e);r||=l.type,n.push(l)}return new J(r,a,s,n,It(t[t.length-1],e))}evaluate(t,e){let r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class tt{constructor(t,e,r,i,a){this._operator=t,this.type=e,this.interpolation=r,this.input=i,this._stops=a}static parse(t,e,r){let i=t[0];if(t.length<5)throw Error(`"${i}" expects at least 4 arguments`);let a=t[1];if(!Array.isArray(a)||0===a.length)throw Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(1!==a.length)throw Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==a.length||"number"!=typeof a[1])throw Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==a.length)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){let e=a[t];if("number"!=typeof e||e<0||e>1)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw Error(`"${i}" expects an even number of arguments`);let n,s=It(t[2],e,L);"interpolate-hcl"===i||"interpolate-lab"===i?n=S:r&&"value"!==r.kind&&(n=r);let o=[];for(let r=3;r<t.length;r+=2){let a=t[r];if("number"!=typeof a)throw Error(`"${i}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=a)throw Error(`"${i}" requires strictly ascending stop inputs`);let s=It(t[r+1],e,n);n||=s.type,o.push([a,s])}if(n&&n!==S&&n!==L&&("array"!==n.kind||n.itemType!==L))throw Error(`"${i}" cannot interpolate type ${z(n)}`);return new tt(i,n,a,s,o)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this.input.evaluate(t,e);if(i<=r[0][0])return r[0][1].evaluate(t,e);if(i>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););let s=r[a-1][0],o=r[a][0],l=tt.interpolationRatio(this.interpolation,i,s,o),u=r[a-1][1].evaluate(t,e),h=r[a][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,n.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof T.A&&h instanceof T.A){let t=new T.A(u),e=new T.A(h);return new T.A([(0,n.GW)(t.r,e.r,l),(0,n.GW)(t.g,e.g,l),(0,n.GW)(t.b,e.b,l),(0,n.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,n.GW)(u,h,l);throw Error(`"${this._operator}" cannot interpolate type ${z(this.type)}`)}if("interpolate-hcl"===this._operator){let t=(0,I.RH)(u),e=(0,I.RH)(h),r=e.h-t.h,i=(0,I.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,n.GW)(t.c,e.c,l),l:(0,n.GW)(t.l,e.l,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...i})}if("interpolate-lab"===this._operator){let t=(0,I.ZD)(u),e=(0,I.ZD)(h),r=(0,I.$)({l:(0,n.GW)(t.l,e.l,l),a:(0,n.GW)(t.a,e.a,l),b:(0,n.GW)(t.b,e.b,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...r})}throw Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){let r=this._stops;if(1===r.length||t>=r[r.length-1][0])return 0;let i=0;for(;++i<r.length&&!(t<r[i][0]););let a=r[i-1][0],n=r[i][0];return tt.interpolationRatio(this.interpolation,e,a,n)}getInterpolationRange(t){let e=this._stops;if(1===e.length){let t=e[0][0];return[t,t]}let r=e[e.length-1][0];if(t>=r)return[r,r];let i=0;for(;++i<e.length&&!(t<e[i][0]););return[e[i-1][0],e[i][0]]}static interpolationRatio(t,e,r,i){let a=0;return"linear"===t[0]?a=tt._exponentialInterpolationRatio(e,1,r,i):"exponential"===t[0]?a=tt._exponentialInterpolationRatio(e,t[1],r,i):"cubic-bezier"===t[0]&&(a=E(t[1],t[2],t[3],t[4])(tt._exponentialInterpolationRatio(e,1,r,i),1e-5)),a<0?a=0:a>1&&(a=1),a}static _exponentialInterpolationRatio(t,e,r,i){let a=i-r;if(0===a)return 0;let n=t-r;return 1===e?n/a:(e**n-1)/(e**a-1)}}class et{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw Error('"step" expects an even number of arguments');let r,i=It(t[1],e,L),a=[];a.push([-1/0,It(t[2],e)]);for(let i=3;i<t.length;i+=2){let n=t[i];if("number"!=typeof n)throw Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=n)throw Error('"step" requires strictly ascending stop inputs');let s=It(t[i+1],e);r||=s.type,a.push([n,s])}return new et(r,i,a)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this._input.evaluate(t,e),a=0;for(;++a<r.length&&!(i<r[a][0]););return this._stops[a-1][1].evaluate(t,e)}}class rt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw Error('"let" expects at least 3 arguments');if(t.length%2==1)throw Error('"let" expects an odd number of arguments');let i=new F(e);for(let r=1;r<t.length-1;r+=2){let a=t[r];if("string"!=typeof a)throw Error(`"let" requires a string to define variable names - found ${a}`);i.add(a,It(t[r+1],e))}let a=It(t[t.length-1],i,r);return new rt(a.type,a)}evaluate(t,e){return this._output.evaluate(t,e)}}class it{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw Error('"var" requires just one literal string argument');let i=e.get(t[1]);if(!i)throw Error(`${t[1]} must be defined before being used in a "var" expression`);return new it(r||O,i)}evaluate(t,e){return this.output.evaluate(t,e)}}class at{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(3!==t.length)throw Error('"at" expects 2 arguments');let r=It(t[1],e,L),i=It(t[2],e);return new at(i.type.itemType,r,i)}evaluate(t,e){let r=this._index.evaluate(t,e),i=this._array.evaluate(t,e);if(r<0||r>=i.length)throw Error('"at" index out of bounds');if(r!==Math.floor(r))throw Error('"at" index must be an integer');return i[r]}}class nt{constructor(t){this._args=t,this.type=O}static parse(t,e){let r=t.slice(1).map(t=>Array.isArray(t)?It(t,e):t);return new nt(r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r&&r.evaluate?r.evaluate(t,e):r)),!r||r.length<2&&r.length%2==1?"":(t=>Array.from({length:t.length/2},(e,r)=>(t=>t)(t[2*r],t[2*r+1])))(r).join()}}class st{constructor(t,e){this._key=t,this._obj=e,this.type=O}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new st(r);case 3:return r=It(t[1],e),i=It(t[2],e),new st(r,i);default:throw Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t?.values[r]}}class ot{constructor(t,e){this._key=t,this._obj=e,this.type=k}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new ot(r);case 3:return r=It(t[1],e),i=It(t[2],e),new ot(r,i);default:throw Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!t?.values[r]}}class lt{constructor(t,e){this._key=t,this._vals=e,this.type=k}static parse(t,e){if(3!==t.length)throw Error('"in" expects 2 arguments');return new lt(It(t[1],e),It(t[2],e))}evaluate(t,e){let r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class ut{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=L}static parse(t,e){if(t.length<3||t.length>4)throw Error('"index-of" expects 3 or 4 arguments');let r=It(t[1],e),i=It(t[2],e);if(4===t.length){let a=It(t[3],e,L);return new ut(r,i,a)}return new ut(r,i)}evaluate(t,e){let r=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){let a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw Error('"index-of" index must be an integer');return i.indexOf(r,a)}return i.indexOf(r)}}class ht{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw Error('"length" expects 2 arguments');let r=It(t[1],e);return new ht(r)}evaluate(t,e){let r=this._arg.evaluate(t,e);if("string"==typeof r||Array.isArray(r))return r.length;throw Error('"length" expects string or array')}}class ct{constructor(t,e,r,i){this.type=t,this._array=e,this._from=r,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw Error('"slice" expects 2 or 3 arguments');let r=It(t[1],e),i=It(t[2],e,L);if(i.type!==L)throw Error('"slice" index must return a number');if(4===t.length){let a=It(t[3],e,L);if(a.type!==L)throw Error('"slice" index must return a number');return new ct(r.type,r,i,a)}return new ct(r.type,r,i)}evaluate(t,e){let r=this._array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw Error('"slice" input must be an array or a string');let i=this._from.evaluate(t,e);if(i<0||i>=r.length)throw Error('"slice" index out of bounds');if(i!==Math.floor(i))throw Error('"slice" index must be an integer');if(this._to){let a=this._to.evaluate(t,e);if(a<0||a>=r.length)throw Error('"slice" index out of bounds');if(a!==Math.floor(a))throw Error('"slice" index must be an integer');return r.slice(i,a)}return r.slice(i)}}class pt{constructor(){this.type=k}static parse(t){if(1!==t.length)throw Error('"has-id" expects no arguments');return new pt}evaluate(t,e){return void 0!==t?.id}}class yt{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static parse(t,e,r){let i=t.slice(1).map(t=>It(t,e));return new yt(i,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class ft{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){let r=t.slice(1).map(t=>It(t,e));return new ft(r,ft.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class mt{constructor(t){this._args=t,this.type=A}static parse(t,e){return new mt(t.slice(1).map(t=>It(t,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class gt{constructor(t,e){this._arg=t,this._calculate=e,this.type=A}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw Error(`${t[0]} expects 1 argument`);let r=It(t[1],e);return new gt(r,gt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class dt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw Error('"rgb" expects 3 arguments');let r=t.slice(1).map(t=>It(t,e));return new dt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new T.A({r,g:i,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}}class bt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw Error('"rgba" expects 4 arguments');let r=t.slice(1).map(t=>It(t,e));return new bt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),n=this._validateAlpha(this._args[3].evaluate(t,e));return new T.A({r,g:i,b:a,a:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw Error(`${t}: invalid alpha color component`);return t}}class _t{constructor(t){this._color=t,this.type=N(L,4)}static parse(t,e){if(2!==t.length)throw Error('"to-rgba" expects 1 argument');let r=It(t[1],e);return new _t(r)}evaluate(t,e){return new T.A(this._color.evaluate(t,e)).toRgba()}}class vt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0];if(t.length<2)throw Error(`${r} expects at least one argument`);let i,a=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;default:throw Error('"array" type argument must be string, number or boolean')}a++}else i=O;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw Error('"array" length argument must be a positive integer literal');a++}i=N(i,e)}else switch(r){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;case"object":i=M}let n=[];for(;a<t.length;a++){let r=It(t[a],e);n.push(r)}return new vt(i,n)}evaluate(t,e){let r;for(let i of this._args){let a=i.evaluate(t,e);if(r=U(a),B(r,this.type))return a}throw Error(`Expected ${z(this.type)} but got ${z(r)}`)}}class xt{static{this.types={"to-boolean":k,"to-color":S,"to-number":L,"to-string":A}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0],i=xt.types[r];if(i===k||i===A){if(2!==t.length)throw Error(`${r} expects one argument`)}else if(t.length<2)throw Error(`${r} expects at least one argument`);let a=[];for(let r=1;r<t.length;r++){let i=It(t[r],e);a.push(i)}return new xt(i,a)}evaluate(t,e){if(this.type===k)return!!this._args[0].evaluate(t,e);if(this.type===A)return V(this._args[0].evaluate(t,e));if(this.type===L){for(let r of this._args){let i=Number(r.evaluate(t,e));if(!isNaN(i))return i}return null}if(this.type===S){for(let r of this._args)try{let i=xt.toColor(r.evaluate(t,e));if(i instanceof T.A)return i}catch{}return null}}static toBoolean(t){return!!t}static toString(t){return V(t)}static toNumber(t){let e=Number(t);if(isNaN(e))throw Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof T.A)return t;if("string"==typeof t){let e=T.A.fromString(t);if(e)return e;throw Error(`"${t}" is not a color`)}if(Array.isArray(t))return T.A.fromArray(t);throw Error(`"${t}" is not a color`)}}class wt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw Error('"literal" expects 1 argument');return new wt(t[1])}evaluate(t,e){return this._val}}class Tt{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw Error('"typeof" expects 1 argument');return new Tt(It(t[1],e))}evaluate(t,e){return z(U(this._arg.evaluate(t,e)))}}function It(t,e,r){let i=typeof t;if("string"===i||"boolean"===i||"number"===i||null===t){if(r)switch(r.kind){case"string":"string"!==i&&(t=xt.toString(t));break;case"number":"number"!==i&&(t=xt.toNumber(t));break;case"color":t=xt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw Error("Expression must be a non empty array");let a=t[0];if("string"!=typeof a)throw Error("First element of expression must be a string");let n=Et[a];if(void 0===n)throw Error(`Invalid expression operator "${a}"`);if(!n)throw Error(`Unimplemented expression operator "${a}"`);return n.parse(t,e,r)}const Et={array:vt,boolean:vt,collator:null,format:nt,image:null,literal:wt,number:vt,"number-format":null,object:vt,string:vt,"to-boolean":xt,"to-color":xt,"to-number":xt,"to-string":xt,typeof:Tt,accumulated:null,"feature-state":null,"geometry-type":C,id:$,"line-progress":null,properties:Y,at,get:st,has:ot,in:lt,"index-of":ut,length:ht,slice:ct,"!":H,"!=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t!==e)}},"<":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<e)}},"<=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<=e)}},"==":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t===e)}},">":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>e)}},">=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>=e)}},all:W,any:Z,case:X,coalesce:Q,match:J,within:null,interpolate:tt,"interpolate-hcl":tt,"interpolate-lab":tt,step:et,let:rt,var:it,concat:mt,downcase:gt,"is-supported-script":null,"resolved-locale":null,upcase:gt,rgb:dt,rgba:bt,"to-rgba":_t,"-":class extends yt{static parse(t,e){switch(t.length){case 2:return yt.parse(t,e,t=>-t[0]);case 3:return yt.parse(t,e,t=>t[0]-t[1]);default:throw Error('"-" expects 1 or 2 arguments')}}},"*":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=1;for(let r of t)e*=r;return e})}},"/":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]/t[1]);throw Error('"/" expects 2 arguments')}},"%":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]%t[1]);throw Error('"%" expects 2 arguments')}},"^":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]**t[1]);throw Error('"^" expects 1 or 2 arguments')}},"+":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=0;for(let r of t)e+=r;return e})}},abs:ft,acos:ft,asin:ft,atan:ft,ceil:ft,cos:ft,e:ft,floor:ft,ln:ft,ln2:ft,log10:ft,log2:ft,max:ft,min:ft,pi:ft,round:ft,sin:ft,sqrt:ft,tan:ft,zoom:q,"heatmap-density":null,"has-id":pt,none:K};class Pt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{let e=It(t,null,k);return new Pt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;let e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Pt.convertComparison("==",t[1],t[2]);case"!=":return Pt.negate(Pt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Pt.convertComparison(e,t[1],t[2]);case"in":return Pt.convertIn(t[1],t.slice(2));case"!in":return Pt.negate(Pt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Pt.convertCombining(e,t.slice(1));case"has":return Pt.convertHas(t[1]);case"!has":return Pt.negate(Pt.convertHas(t[1]));default:throw Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Dt{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var Lt=r(40876);class At{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&Et[e[0]]){let r={number:L,color:S,string:A,boolean:k,enum:A};try{let i=It(e,null,"array"===t.type?N(r[t.value]||O,t.length):r[t.type]);this.getValue=this._buildExpression(i,t),this.isDataDriven=G(e),this.isDataDriven&&i instanceof tt&&i.input instanceof q&&(this.interpolator=i)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);let i=e?.stops&&e.stops.length>0;if(i)for(let r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=At._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=V(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,i)=>{try{let a=t.evaluate(i,r);return void 0===a?e.default:this._validate(a,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),void 0!==a&&(a=this._validate(a,e)),a??(void 0===t.default?e.default:t.default)}}_buildCategorical(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),a=this._categorical(a,t.stops),void 0===a?void 0===t.default?e.default:t.default:a}}_buildInterval(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0===t.default?e.default:t.default}}_buildInterpolate(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0===t.default?e.default:t.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){let r=e.length;for(let i=0;i<r;i++)if(e[i][0]===t)return e[i][1]}_interval(t,e){let r=e.length,i=0;for(let a=0;a<r&&e[a][0]<=t;a++)i=a;return e[i][1]}_interpolate(t,e,r){let i,a,s=e.length;for(let r=0;r<s;r++){let n=e[r];if(!(n[0]<=t)){a=n;break}i=n}if(i&&a){let e=a[0]-i[0],s=t-i[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(i[1])){let t=i[1],e=a[1],r=[];for(let i=0;i<t.length;i++)r.push((0,n.GW)(t[i],e[i],o));return r}return(0,n.GW)(i[1],a[1],o)}return i?i[1]:a?a[1]:void 0}static _isEmpty(t){for(let e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,Lt.Vm)(t)??void 0:t instanceof T.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}class kt{constructor(t,e,r,i,a=null){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"]??e.source,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=i,this.sourceType=a,t){case 0:this._layoutDefinition=Dt.backgroundLayoutDefinition,this._paintDefinition=Dt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Dt.fillLayoutDefinition,this._paintDefinition=Dt.fillPaintDefinition;break;case 2:this._layoutDefinition=Dt.lineLayoutDefinition,this._paintDefinition=Dt.linePaintDefinition;break;case 3:this._layoutDefinition=Dt.symbolLayoutDefinition,this._paintDefinition=Dt.symbolPaintDefinition;break;case 4:this._layoutDefinition=Dt.circleLayoutDefinition,this._paintDefinition=Dt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0===this._featureFilter?this._featureFilter=Pt.createFilter(this.filter):this._featureFilter}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let i,a=this._layoutProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._layoutDefinition[t].default),i}getPaintValue(t,e,r){let i,a=this._paintProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._paintDefinition[t].default),i}isPainterDataDriven(){let t=this._paintProperties;if(t)for(let e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,i,a,n,s,o){return!1}getFeatureInflatedBounds(t,e,r,i){return null}_parseLayout(t){let e={};for(let r in t){let i=this._layoutDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}_parsePaint(t){let e={};for(let r in t){let i=this._paintDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}computeAttributesKey(t,e,r,i){let a=0,n=0;for(let t of e){let e=3;if(t&&t!==i){let{isLayout:i,isOptional:a}=r[t],n=i?this.getLayoutProperty(t):this.getPaintProperty(t);e=n?.interpolator?2:n?.isDataDriven?1:a&&!n?3:0}n|=e<<a,a+=2}return n<<3|t}}class St extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.backgroundMaterial=new f(this.computeAttributesKey(0,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}}class Mt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||o?.isDataDriven;let l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l?.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new g(this.computeAttributesKey(1,g.ATTRIBUTES,g.ATTRIBUTES_INFO)),this.outlineMaterial=new d(this.computeAttributesKey(2,this.outlineUsesFillColor?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("fill-translate",e,t),s=i*Math.max(n[0],n[1]);return a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=[...h.map(t=>t.map(t=>[t.x,t.y]))],p=8/l.normalizationRatio,y=p/o,f=(0,n.yM)(this.getPaintValue("fill-translate",i,r),this.getPaintValue("fill-translate-anchor",i,r),s,y);if("point"===u){let[r,i]=t[0];return r=r/l.normalizationRatio+l.normalizationOffsetX,i=i/l.normalizationRatio+l.normalizationOffsetY,r-=p*f.x,i-=p*f.y,!!(0,a.s3)([r,i],c)||(0,a.VK)([r,i],c,e)}let m=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=p*f.x,r-=p*f.y,m.push([t,r])}return(0,a.M5)(m,c)}}class Ot extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new b(this.computeAttributesKey(3,b.ATTRIBUTES,b.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){let t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<1.05){let t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case 0:default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("line-translate",e,t),s=i*Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=i*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=this.getPaintValue("line-width",e,t)/2*i;return a[0]-=o+l,a[1]-=o+l,a[2]+=o+l,a[3]+=o+l,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio,p=c/o,y=(0,n.yM)(this.getPaintValue("line-translate",i,r),this.getPaintValue("line-translate-anchor",i,r),s,p);if("point"===u){let[n,s]=t[0];n=n/l.normalizationRatio+l.normalizationOffsetX,s=s/l.normalizationRatio+l.normalizationOffsetY,n-=c*y.x,s-=c*y.y;let o=this.getPaintValue("line-width",i,r)/2*p+e,u=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.VK)([n,s],u,o)}let f=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=c*y.x,r-=c*y.y,f.push([t,r])}let m=p*this.getPaintValue("line-offset",i,r)||0;0!==m&&(h=(0,n.cP)(h,-m));let g=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.M5)(f,g)}}class Nt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.iconMaterial=new x(this.computeAttributesKey(4,x.ATTRIBUTES,x.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Rt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.circleMaterial=new m(this.computeAttributesKey(5,m.ATTRIBUTES,m.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("circle-translate",e,t),s=Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=8*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2*i;return a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio/o,p=(0,n.yM)(this.getPaintValue("circle-translate",i,r),this.getPaintValue("circle-translate-anchor",i,r),s,c),y=8*(this.getPaintValue("circle-radius",i,r)+this.getPaintValue("circle-stroke-width",i,r));if("point"===u){let r,i,[a,n]=t[0];a=a/l.normalizationRatio+l.normalizationOffsetX,n=n/l.normalizationRatio+l.normalizationOffsetY;for(let t of h)if(t)for(let s of t){r=s.x+p.x,i=s.y+p.y;let t=Math.sqrt((a-r)*(a-r)+(n-i)*(n-i))-e;if(t<=0||t<=y)return!0}}let f=t.map(t=>{let[e,r]=t;return e=e/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,[e,r]});for(let t of h)if(t)for(let e of t){let t=e.x+p.x,r=e.y+p.y,i=[[t-y,r-y],[t-y,r+y],[t+y,r+y],[t+y,r-y],[t-y,r-y]];if((0,a.M5)(f,[i]))return!0}return!1}}class zt{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("icon-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("icon-anchor",e),i=t.getLayoutProperty("icon-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("icon-offset",e),i=t.getLayoutProperty("icon-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("icon-padding",e),i=t.getLayoutProperty("icon-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("icon-rotate",e),i=t.getLayoutProperty("icon-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Ut{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("text-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("text-anchor",e),i=t.getLayoutProperty("text-justify"),i?.isDataDriven?this._justifyProp=i:this.justify=t.getLayoutValue("text-justify",e),i=t.getLayoutProperty("text-letter-spacing"),i?.isDataDriven?this._letterSpacingProp=i:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),i=t.getLayoutProperty("text-line-height"),i?.isDataDriven?this._lineHeightProp=i:this.lineHeight=t.getLayoutValue("text-line-height",e),i=t.getLayoutProperty("text-max-angle"),i?.isDataDriven?this._maxAngleProp=i:this.maxAngle=t.getLayoutValue("text-max-angle",e),i=t.getLayoutProperty("text-max-width"),i?.isDataDriven?this._maxWidthProp=i:this.maxWidth=t.getLayoutValue("text-max-width",e),i=t.getLayoutProperty("text-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("text-offset",e),i=t.getLayoutProperty("text-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("text-padding",e),i=t.getLayoutProperty("text-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("text-rotate",e),i=t.getLayoutProperty("text-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("text-size",e),i=t.getLayoutProperty("text-writing-mode"),i?.isDataDriven?this._writingModeProp=i:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Bt(t){let e=t?.getGeometry();if(null==e)return null;let r=1/0,a=1/0,n=-1/0,s=-1/0;for(let t of e)if(t)for(let e of t)r=Math.min(r,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),s=Math.max(s,e.y);return(0,i.fA)(r,a,n,s)}},45013(t,e,r){r.d(e,{A:()=>n});var i=r(4718),a=r(4264);class n{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,i.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){let e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){let r=this.getStyleLayerByUID(t),i=0!==r?.getLayoutValue("symbol-placement",e),a=r?.getLayoutValue("icon-rotation-alignment",e);2===a&&(a=+!i);let n=r?.getLayoutValue("text-rotation-alignment",e);2===n&&(n=+!i);let s=r?.getPaintValue("icon-translate",e),o=r?.getPaintValue("icon-translate-anchor",e),l=r?.getPaintValue("text-translate",e),u=r?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:r?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:r?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:r?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:r?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:a,textRotationAlignment:n,iconTranslateAnchor:o,iconTranslate:s,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){let e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){let e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;let r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let i,a=!0,s=this._layerByName[t.id];if(s){let o=this.layers.indexOf(s);e||=o,e===o?(a=!1,i=n._recreateLayer(t,s,this._getSourceType(t.source)),this.layers[e]=i,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),i=this._create(t,e,this.layers),this.layers.splice(e,0,i),r.layers.splice(e,0,t))}else i=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(i),r.layers.push(t)):(this.layers.splice(e,0,i),r.layers.splice(e,0,t));this._layerByName[t.id]=i,this._uidToLayer.set(i.uid,i),a&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){let e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){let e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);let r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){let e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){let e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].paint=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setLayoutProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].layout=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setStyleLayerVisibility(t,e){let r=this._layerByName[t];if(!r)return;let i=r.layout||{};i.visibility=e;let a={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:i,paint:r.paint},s=n._recreateLayer(a,r,r.sourceType),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=i,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){let e="string"==typeof t?this._layerByName[t]:this._uidToLayer.get(t);if(!e)return!1;let r=e.getLayoutProperty("visibility");return!(r&&1===r.getValue())}_recomputeZValues(){let t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){let t=[],e=[],r=0;for(let i of this.layers){let a=i.layout;if(1===i.type){let e=i,n=i.source+"|"+i.sourceLayer;n+="|"+(a?.visibility??""),n+="|"+i.minzoom,n+="|"+i.maxzoom,n+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(n+="|"+r),t.push({key:n,layer:i})}else if(2===i.type){let t=i,n=i.paint,s=null!=n&&(null!=n["line-pattern"]||null!=n["line-dasharray"]),o=i.source+"|"+i.sourceLayer;o+="|"+(a?.visibility??""),o+="|"+i.minzoom,o+="|"+i.maxzoom,o+="|"+JSON.stringify(i.filter),o+="|"+(void 0===a?"":a["line-cap"]),o+="|"+(void 0===a?"":a["line-join"]),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){t.sort((t,e)=>t.key<e.key?-1:+(t.key>e.key));let e,r,i=t.length;for(let a=0;a<i;a++){let n=t[a];if(n.key===e)n.layer.refLayerId=r;else if(e=n.key,r=n.layer.id,1===n.layer.type){if(!n.layer.getPaintProperty("fill-outline-color"))for(let s=a+1;s<i;s++){let i=t[s];if(i.key!==e)break;if(i.layer.getPaintProperty("fill-outline-color")){t[a]=i,t[s]=n,r=i.layer.id;break}}}else if(2===n.layer.type){let s=n.layer;for(let o=a+1;o<i;o++){let i=t[o];if(i.key!==e)break;let l=i.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[a]=i,t[o]=n,r=i.layer.id)}}}}_create(t,e,r){let i=1-(1+e)*(1/(r.length+1)),n=this._runningId++,s=this._getSourceType(t.source);switch(t.type){case"background":return new a.lf(0,t,i,n,s);case"fill":return new a.A4(1,t,i,n,s);case"line":return new a.tU(2,t,i,n,s);case"symbol":return new a.V1(3,t,i,n,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,i,n,s)}return null}_getSourceType(t){return this._style.sources?.[t]?.type??null}static _recreateLayer(t,e,r){switch(t.type){case"background":return new a.lf(0,t,e.z,e.uid,r);case"fill":return new a.A4(1,t,e.z,e.uid,r);case"line":return new a.tU(2,t,e.z,e.uid,r);case"symbol":return new a.V1(3,t,e.z,e.uid,r);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,e.z,e.uid,r)}return null}}},85079(t,e,r){r.d(e,{Sk:()=>s,Xk:()=>a,_u:()=>n});var i=r(21818);function a(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{let i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function n(t){let e=new Map,r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function s(t){return n(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,a,n=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=a,this.normalized=n,this.divisor=s,this.integer=o}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(72824),l(54154),l(9169),l(12696),l(77695),l(68785),l(89214),l(98619),l(62602),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(84368),l(14113);var s=l(28491)}}]);