@arcgis/core 6.0.0-next.5 → 6.0.0-next.7

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 (215) 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/arcade/functions/knowledgegraph.js +1 -1
  5. package/arcade/geometry/unitConversion.js +1 -1
  6. package/arcgisGlobal.d.ts +5 -5
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  11. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  13. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  14. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  15. package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
  16. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  17. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  19. package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
  20. package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  22. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  23. package/assets/esri/core/workers/chunks/518e8883b6ed613bf451.js +1 -0
  24. package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
  26. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  27. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  28. package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
  30. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  31. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
  32. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  33. package/assets/esri/core/workers/chunks/7038ead1fa1674416ab3.js +1 -0
  34. package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
  35. package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 7165d6f6a5078768bebb.js} +1 -1
  36. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  37. package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
  38. package/assets/esri/core/workers/chunks/801e9e66edb4961461eb.js +1 -0
  39. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  40. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  41. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
  42. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  43. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
  44. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  45. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  47. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → c29c474c4b1049352d3e.js} +1 -1
  48. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  49. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  50. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
  51. package/assets/esri/core/workers/chunks/ecaac39dde7ec4213264.js +1 -0
  52. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  53. package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
  54. package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → fd0a5c243f3426f2a0b5.js} +1 -1
  55. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
  56. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +1 -1
  57. package/assets/esri/themes/base/widgets/_Features.scss +1 -1
  58. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +5 -9
  59. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -4
  60. package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -1
  61. package/assets/esri/themes/dark/main.css +1 -1
  62. package/assets/esri/themes/light/main.css +1 -1
  63. package/assets/esri/themes/light/view.css +1 -1
  64. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  65. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  66. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  67. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  68. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  69. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  70. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  71. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  72. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  73. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  74. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  75. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  76. package/chunks/GlobalIllumination.glsl.js +4 -2
  77. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  78. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  79. package/config.js +1 -1
  80. package/core/colorUtils.js +1 -1
  81. package/core/has.js +1 -1
  82. package/core/units.js +1 -1
  83. package/core/workers/workerFactory.js +1 -1
  84. package/geometry/projectionUtils.js +1 -1
  85. package/geometry/support/wkt.js +2 -0
  86. package/kernel.js +1 -1
  87. package/layers/graphics/data/FeatureStore.js +1 -1
  88. package/layers/graphics/data/QueryEngineResult.js +1 -1
  89. package/layers/graphics/data/geometryUtils.js +1 -1
  90. package/layers/graphics/data/projectionSupport.js +1 -1
  91. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  92. package/layers/graphics/transferFeatures.js +1 -1
  93. package/layers/knowledgeGraph/layerUtils.js +1 -1
  94. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  95. package/layers/raster/datasets/TIFFRaster.js +1 -1
  96. package/package.json +2 -2
  97. package/symbols/cim/cimAnalyzer.js +1 -1
  98. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  99. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  100. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  101. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  102. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  103. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  104. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  105. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  106. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  107. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  108. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  109. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  110. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  111. package/views/3d/layers/support/FeatureMemory.js +1 -1
  112. package/views/3d/layers/support/FeatureTile.js +1 -1
  113. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  114. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  115. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  116. package/views/3d/support/PBFDecoder.js +1 -1
  117. package/views/3d/support/elevationUpdateUtils.js +1 -1
  118. package/views/3d/terrain/TerrainRenderer.js +1 -1
  119. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  120. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  121. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  122. package/views/SceneView.d.ts +4 -10
  123. package/views/View.d.ts +4 -12
  124. package/views/draw/Draw.d.ts +1 -1
  125. package/views/draw/support/InteractiveHandle.js +1 -1
  126. package/views/interactive/options/SnappingOptions.d.ts +29 -12
  127. package/views/interactive/options/TooltipOptions.d.ts +9 -1
  128. package/views/interactive/options/ValueOptions.d.ts +9 -2
  129. package/views/interactive/options/ViewOptions.d.ts +82 -6
  130. package/views/interactive/support/Units.d.ts +1 -0
  131. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  132. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  133. package/views/support/projectionUtils.js +1 -1
  134. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  135. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  136. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  137. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  138. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  139. package/widgets/BasemapGallery/types.d.ts +3 -3
  140. package/widgets/BasemapLayerList.js +1 -1
  141. package/widgets/BatchAttributeForm.js +1 -1
  142. package/widgets/DirectionalPad.js +1 -1
  143. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  144. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  145. package/widgets/Editor.d.ts +9 -9
  146. package/widgets/Expand.js +1 -1
  147. package/widgets/FeatureForm.js +1 -1
  148. package/widgets/FeatureTable/FieldColumn.js +1 -1
  149. package/widgets/FeatureTable.js +1 -1
  150. package/widgets/Features/FeaturesDrillIn.js +1 -1
  151. package/widgets/Features.js +1 -1
  152. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  153. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  154. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  155. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  156. package/widgets/PanoramicVideoViewer.js +1 -1
  157. package/widgets/Print.js +1 -1
  158. package/widgets/ScaleRangeSlider.js +1 -1
  159. package/widgets/Search/SearchResultRenderer.js +1 -1
  160. package/widgets/Sketch/SketchViewModel.d.ts +14 -9
  161. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  162. package/widgets/Sketch.d.ts +10 -10
  163. package/widgets/Track/TrackViewModel.d.ts +1 -1
  164. package/widgets/UtilityNetworkAssociations.js +1 -1
  165. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  166. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  167. package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
  168. package/widgets/UtilityNetworkTrace.js +1 -1
  169. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  170. package/widgets/ValuePicker.js +1 -1
  171. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  172. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  173. package/widgets/support/GridControls.js +1 -1
  174. package/widgets/support/PluginSettingsControls.js +1 -1
  175. package/widgets/support/SelectionToolbar.js +1 -1
  176. package/widgets/support/SnappingControls.js +1 -1
  177. package/widgets/support/componentsUtils.js +1 -1
  178. package/arcade/geometry/wkt.js +0 -2
  179. package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
  180. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
  182. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  183. package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
  184. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  185. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  186. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  187. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  188. package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
  189. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  190. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  191. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  192. package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
  193. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  194. package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
  195. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  196. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  197. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  198. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  199. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  200. package/assets/esri/core/workers/chunks/8b54589f173259c1ba55.js +0 -1
  201. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  202. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  203. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  204. package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
  205. package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
  206. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  207. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  208. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  209. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  210. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  211. package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
  212. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  213. package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
  214. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  215. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>i});class i{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}let t=this._pool.pop();return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);(!a.read||"object"!=typeof a.read)&&(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);(!n.write||"object"!=typeof n.write)&&(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){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 n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>m,$m:()=>j,gh:()=>S,md:()=>k});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.phases=e,this.paused=!1,this.ticks=-1,this.removed=!1}}class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let h=0;const f={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],p=[],y=new o.A;class g{constructor(e){this._task=e}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1,_()}}function _(){w??=(h=performance.now(),requestAnimationFrame(b))}const v={frameTasks:y,willDispatch:!1,clearFrameTasks:function(e=!1){y.forAll(e=>{e.removed=!0}),e&&O()},dispatch:N,executeFrameTasks:function(e){let t=(0,l.l5)(e-h);h=e;let r=1e3/60,i=Math.max(0,t-r);f.time=e,f.frameDuration=(0,l.l5)(r-i);for(let r=0;r<d.length;r++){let i=performance.now(),s=d[r];y.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(f.elapsedFrameTime=(0,l.l5)(performance.now()-e),f.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,f))});let o=performance.now();T[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}O();let s=performance.now();C.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=w&&(cancelAnimationFrame(w),w=requestAnimationFrame(b))}};function m(e){let t=new c(e);return p.push(t),v.willDispatch||(v.willDispatch=!0,(0,i.d)(N)),t}let w=null;function b(){let e=performance.now();w=null,w=y.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(b):null,v.executeFrameTasks(e)}const A=new o.A;function O(){y.forAll(e=>{e.removed&&A.push(e)}),y.removeUnorderedMany(A.data,A.length),A.clear()}function N(){for(;p.length;){let e=p.shift();e.isActive&&e.callback()}v.willDispatch=!1}function k(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}function S(){let e=Promise.withResolvers(),t=function(e){let t=new u(e);return y.push(t),_(),new g(t)}({postRender:()=>{t.remove(),m(()=>e.resolve())}});return e.promise}async function j(e){await function(e){return k(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const T=d.map(e=>new s(e)),C=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>i});class i{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}let t=this._pool.pop();return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);(!a.read||"object"!=typeof a.read)&&(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);(!n.write||"object"!=typeof n.write)&&(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){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 n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>g,$m:()=>O,md:()=>A});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const h={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll(e=>{e.removed=!0}),e&&w()},dispatch:b,executeFrameTasks:function(e){let t=(0,l.l5)(e-c);c=e;let r=1e3/60,i=Math.max(0,t-r);h.time=e,h.frameDuration=(0,l.l5)(r-i);for(let r=0;r<f.length;r++){let i=performance.now(),s=f[r];p.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(h.elapsedFrameTime=(0,l.l5)(performance.now()-e),h.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,h))});let o=performance.now();N[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}w();let s=performance.now();k.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(e){let t=new u(e);return d.push(t),y.willDispatch||(y.willDispatch=!0,(0,i.d)(b)),t}let _=null;function v(){let e=performance.now();_=null,_=p.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(v):null,y.executeFrameTasks(e)}const m=new o.A;function w(){p.forAll(e=>{e.removed&&m.push(e)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){let e=d.shift();e.isActive&&e.callback()}y.willDispatch=!1}function A(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}async function O(e){await function(e){return A(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const N=f.map(e=>new s(e)),k=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4548,8846],{73354(t,e,r){r.d(e,{a:()=>c,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>f,n:()=>p,t:()=>i}),r(44208);var n=r(72727);function o(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[4],p=r[5],d=r[6],y=r[8],h=r[9],m=r[10],v=r[12],b=r[13],M=r[14],w=0,A=0;for(let r=0;r<a;r++){let r=e[w],n=e[w+1],u=e[w+2];t[A]=f*r+g*n+y*u+v,t[A+1]=s*r+p*n+h*u+b,t[A+2]=c*r+d*n+m*u+M,w+=i,A+=o}return t}function u(t,e,r){l(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[3],p=r[4],d=r[5],y=r[6],h=r[7],m=r[8],v=0,b=0;for(let r=0;r<a;r++){let r=e[v],n=e[v+1],u=e[v+2];t[b]=f*r+g*n+y*u,t[b+1]=s*r+p*n+h*u,t[b+2]=c*r+d*n+m*u,v+=i,b+=o}}function a(t,e,r,n=3,o=n){let i=Math.min(t.length/n,e.length/o),u=0,l=0;for(let a=0;a<i;a++)t[l]=r*e[u],t[l+1]=r*e[u+1],t[l+2]=r*e[u+2],u+=o,l+=n;return t}function f(t,e,r,n){s(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,r,n,o=3,i=o){let u=Math.min(t.length/o,e.length/i),l=0,a=0,f=1/2.2;for(let s=0;s<u;s++)t[a]=n*(r*e[l])**f,t[a+1]=n*(r*e[l+1])**f,t[a+2]=n*(r*e[l+2])**f,l+=i,a+=o}function c(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=0,s=0;for(let n=0;n<a;n++)t[s]=e[f]+r[0],t[s+1]=e[f+1]+r[1],t[s+2]=e[f+2]+r[2],f+=i,s+=o;return t}function g(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,r=3,n=r){let o=Math.min(t.length/r,e.length/n),i=0,u=0;for(let l=0;l<o;l++){let o=e[i],l=e[i+1],a=e[i+2],f=o*o+l*l+a*a;if(f>0){let e=1/Math.sqrt(f);t[u]=e*o,t[u+1]=e*l,t[u+2]=e*a}i+=n,u+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:f,normalize:p,normalizeView:g,scale:a,scaleView:function(t,e,r){a(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){let n=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,l=e.typedBufferStride,a=0,f=0;for(let t=0;t<n;t++)o[f]=u[a]>>r,o[f+1]=u[a+1]>>r,o[f+2]=u[a+2]>>r,a+=l,f+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){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 l(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>o,vt:()=>n});const s=u(),c=l(),g=a(),p=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,c,"Un",0,s])},91829(t,e,r){function n(){return[0,0,0,0]}function o(t,e,r,n){return[t,e,r,n]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>o,vt:()=>n});const s=[0,0,0,0],c=i(),g=u(),p=l(),d=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:y,UNIT_X:g,UNIT_Y:p,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:o,ones:i,unitW:f,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,s])},48353(t,e,r){r.d(e,{l:()=>f});var n=r(34727),o=r(58083),i=r(51850);function u(t,e,r){let n=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),l=r;return l[0]=-n,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*n,l[9]=u*n,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=r(49208),a=r(21325);function f(t,e,r,n){let i=(0,l.Tp)(t,n);if(null==i)return!1;let f=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(f===d&&!s(d)&&(0!==f||(0,a.aI)(t,n)))return(0,o.kN)(r,e),!0;if(s(d)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),u(c*g[0],c*g[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}let y=s(f);if((3===d||11===d||2===d||5===d)&&(2===f||y||3===f||5===f)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),y?function(t,e,r){u(t,e,r),(0,o.mg)(r,r)}(c*g[0],c*g[1],r):(0,o.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>u});var n=r(51850),o=r(99917),i=r(9762);function u(t,e,r,n){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,e,r,0);let u=(0,o.tryProject)(t,r,n);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const l=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>c});var n,o=r(32198),i=r(69540),u=r(25482),l=r(4718),a=r(53966),f=r(91429),s=r(31199);let c=n=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"color",void 0),(0,o.Cg)([(0,f.wg)("color")],c.prototype,"castColor",null),(0,o.Cg)([(0,f.MZ)({nonNullable:!0,json:{write:s.B}})],c.prototype,"position",void 0),(0,o.Cg)([(0,f.wg)("position")],c.prototype,"castPosition",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"uv",void 0),(0,o.Cg)([(0,f.wg)("uv")],c.prototype,"castUv",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"normal",void 0),(0,o.Cg)([(0,f.wg)("normal")],c.prototype,"castNormal",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"tangent",void 0),(0,o.Cg)([(0,f.wg)("tangent")],c.prototype,"castTangent",null),c=n=(0,o.Cg)([(0,f.$K)("esri.geometry.support.MeshVertexAttributes")],c)},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;let n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},31199(t,e,r){function n(t,e,r,n){let{loggerTag:o,stride:i}=e;return t.length%i===0?t:(n.error(o,`Invalid array length, expected a multiple of ${i}`),new r([]))}function o(t,e,r,o,i){if(!t)return t;if(t instanceof e)return n(t,o,e,i);for(let u of r)if(t instanceof u)return n(new e(t),o,e,i);if(Array.isArray(t))return n(new e(t),o,e,i);{let n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>o})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>f});var n=r(49186),o=r(4718),i=r(17676),u=r(1193),l=r(66895),a=r(72258);async function f(t,e,r){await Promise.resolve(),(0,i.Te)(r);let f=(0,a.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!f)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...f,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>s,Lz:()=>i,QN:()=>c,WO:()=>a,hz:()=>l,o2:()=>o});const n=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){let r=o(t);return{...t,[n]:{...r,...e}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){if(l(t)?.materialMap)return t;let e={materialMap:new Map};return{...t,[u]:e}}const f=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&f in t?t[f]:void 0}function c(t){if(s(t)?.textureMap)return t;let e={textureMap:new Map};return{...t,[f]:e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,6486],{32198(t,e,n){function r(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,a){i(t,e,n||0,r||t.length-1,a||o)}function i(t,e,n,r,o){for(;r>n;){if(r-n>600){var s=r-n+1,u=e-n+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(u-s/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-u*h/s+c)),Math.min(r,Math.floor(e+(s-u)*h/s+c)),o)}var f=t[e],p=n,M=r;for(a(t,n,e),o(t[r],f)>0&&a(t,n,r);p<M;){for(a(t,p,M),p++,M--;o(t[p],f)<0;)p++;for(;o(t[M],f)>0;)M--}0===o(t[n],f)?a(t,n,M):a(t,++M,r),M<=e&&(n=M+1),e<=M&&(r=M-1)}}function a(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:+(t>e)}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>c,b:()=>s,c:()=>i,d:()=>o,e:()=>f,f:()=>h,l:()=>l,n:()=>p,t:()=>a}),n(44208);var r=n(72727);function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[4],p=n[5],M=n[6],m=n[8],d=n[9],y=n[10],g=n[12],b=n[13],x=n[14],v=0,_=0;for(let n=0;n<u;n++){let n=e[v],r=e[v+1],o=e[v+2];t[_]=l*n+f*r+m*o+g,t[_+1]=h*n+p*r+d*o+b,t[_+2]=c*n+M*r+y*o+x,v+=a,_+=i}return t}function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[3],p=n[4],M=n[5],m=n[6],d=n[7],y=n[8],g=0,b=0;for(let n=0;n<u;n++){let n=e[g],r=e[g+1],o=e[g+2];t[b]=l*n+f*r+m*o,t[b+1]=h*n+p*r+d*o,t[b+2]=c*n+M*r+y*o,g+=a,b+=i}}function u(t,e,n,r=3,i=r){let a=Math.min(t.length/r,e.length/i),o=0,s=0;for(let u=0;u<a;u++)t[s]=n*e[o],t[s+1]=n*e[o+1],t[s+2]=n*e[o+2],o+=i,s+=r;return t}function l(t,e,n,r){h(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n,r,i=3,a=i){let o=Math.min(t.length/i,e.length/a),s=0,u=0,l=1/2.2;for(let h=0;h<o;h++)t[u]=r*(n*e[s])**l,t[u+1]=r*(n*e[s+1])**l,t[u+2]=r*(n*e[s+2])**l,s+=a,u+=i}function c(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=0,h=0;for(let r=0;r<u;r++)t[h]=e[l]+n[0],t[h+1]=e[l+1]+n[1],t[h+2]=e[l+2]+n[2],l+=a,h+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),a=0,o=0;for(let s=0;s<i;s++){let i=e[a],s=e[a+1],u=e[a+2],l=i*i+s*s+u*u;if(l>0){let e=1/Math.sqrt(l);t[o]=e*i,t[o+1]=e*s,t[o+2]=e*u}a+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:l,normalize:p,normalizeView:f,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,a=t.typedBufferStride,o=e.typedBuffer,s=e.typedBufferStride,u=0,l=0;for(let t=0;t<r;t++)i[l]=o[u]>>n,i[l+1]=o[u+1]>>n,i[l+2]=o[u+2]>>n,u+=s,l+=a},transformMat3:s,transformMat3View:o,transformMat4:a,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),a=(n(44208),n(4718)),o=(n(53966),n(97768)),s=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){let e=(0,s.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},u=new Map;for(let e in n){let o=n[e],s=r?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==s&&0!==s&&5!==s&&4!==s)continue;let h=this[e],c=null;if("function"==typeof l)c=l(h,t);else if("reference"===l)c=h;else if(c=(0,a.TU)(h,t),null!=h&&null==c)continue;0===s?u.set(e,c):i[e]=c}let l=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){let t=(0,s.oY)(l)?.store;if(t)for(let[e,n]of u)t.set(e,n,0)}return l}};return i=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],i),i},c=h(i.A);n.d(e,["OU",0,h,"Pw",0,c])},95488(t,e,n){n.d(e,{I:()=>i});var r=n(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()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:r,fromValues:function(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m){return[t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function o(){return a(1,1)}function s(){return a(-1,-1)}function u(){return a(1,0)}function l(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>i,vt:()=>r});const h=o(),c=s(),f=u(),p=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,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:a,negativeOnes:s,ones:o,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,c,"Un",0,h])},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function s(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return a(1,1,1)}function l(){return a(1,0,0)}function h(){return a(0,1,0)}function c(){return a(0,0,1)}n.d(e,{CN:()=>o,ci:()=>s,fA:()=>a,o8:()=>i,vt:()=>r});const f=[0,0,0],p=u(),M=l(),m=h(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:M,UNIT_Y:m,UNIT_Z:d,ZEROS:f,clone:i,create:r,freeze:o,fromArray:s,fromValues:a,ones:u,unitX:l,unitY:h,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,d,"Cw",0,M,"JP",0,m,"Un",0,p,"uY",0,f])},91829(t,e,n){function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function a(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function s(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{_Y:()=>l,fA:()=>i,vt:()=>r});const h=[0,0,0,0],c=a(),f=o(),p=s(),M=u(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:M,ZEROS:h,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:i,ones:a,unitW:l,unitX:o,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,h])},34304(t,e,n){n.d(e,{DF:()=>u,FD:()=>i,ct:()=>l});let r=1e-6;function i(){return r}const a=Math.random,o=Math.PI/180,s=180/Math.PI;function u(t){return t*o}function l(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:l,toRadian:u},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},58083(t,e,n){n.d(e,{$0:()=>y,$h:()=>P,B8:()=>h,C:()=>a,D_:()=>s,N9:()=>b,O7:()=>O,Qw:()=>l,Tl:()=>f,X_:()=>w,e$:()=>M,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>d,l:()=>S,lw:()=>c,mg:()=>u,o1:()=>A,sC:()=>_,t2:()=>Y,t5:()=>R,tZ:()=>X,ut:()=>q});var r=n(51850),i=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m,d){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=h,t[10]=c,t[11]=f,t[12]=p,t[13]=M,t[14]=m,t[15]=d,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){return h(t,e)||s(t),t}function h(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],y=e[15],g=n*s-r*o,b=n*u-i*o,x=n*l-a*o,v=r*u-i*s,_=r*l-a*s,w=i*l-a*u,S=h*m-c*M,A=h*d-f*M,O=h*y-p*M,P=c*d-f*m,R=c*y-p*m,B=f*y-p*d,Y=g*B-b*R+x*P+v*O-_*A+w*S;return Y?(Y=1/Y,t[0]=(s*B-u*R+l*P)*Y,t[1]=(i*R-r*B-a*P)*Y,t[2]=(m*w-d*_+y*v)*Y,t[3]=(f*_-c*w-p*v)*Y,t[4]=(u*O-o*B-l*A)*Y,t[5]=(n*B-i*O+a*A)*Y,t[6]=(d*x-M*w-y*b)*Y,t[7]=(h*w-f*x+p*b)*Y,t[8]=(o*R-s*O+l*S)*Y,t[9]=(r*O-n*R-a*S)*Y,t[10]=(M*_-m*x+y*g)*Y,t[11]=(c*x-h*_-p*g)*Y,t[12]=(s*A-o*P-u*S)*Y,t[13]=(n*P-r*A+i*S)*Y,t[14]=(m*b-M*v-d*g)*Y,t[15]=(h*v-c*b+f*g)*Y,t):null}function c(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=e[8],f=e[9],p=e[10],M=e[11],m=e[12],d=e[13],y=e[14],g=e[15],b=n[0],x=n[1],v=n[2],_=n[3];return t[0]=b*r+x*s+v*c+_*m,t[1]=b*i+x*u+v*f+_*d,t[2]=b*a+x*l+v*p+_*y,t[3]=b*o+x*h+v*M+_*g,b=n[4],x=n[5],v=n[6],_=n[7],t[4]=b*r+x*s+v*c+_*m,t[5]=b*i+x*u+v*f+_*d,t[6]=b*a+x*l+v*p+_*y,t[7]=b*o+x*h+v*M+_*g,b=n[8],x=n[9],v=n[10],_=n[11],t[8]=b*r+x*s+v*c+_*m,t[9]=b*i+x*u+v*f+_*d,t[10]=b*a+x*l+v*p+_*y,t[11]=b*o+x*h+v*M+_*g,b=n[12],x=n[13],v=n[14],_=n[15],t[12]=b*r+x*s+v*c+_*m,t[13]=b*i+x*u+v*f+_*d,t[14]=b*a+x*l+v*p+_*y,t[15]=b*o+x*h+v*M+_*g,t}function f(t,e,n){let r=n[0],i=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15];else{let n=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7],p=e[8],M=e[9],m=e[10],d=e[11];t[0]=n,t[1]=o,t[2]=s,t[3]=u,t[4]=l,t[5]=h,t[6]=c,t[7]=f,t[8]=p,t[9]=M,t[10]=m,t[11]=d,t[12]=n*r+l*i+p*a+e[12],t[13]=o*r+h*i+M*a+e[13],t[14]=s*r+c*i+m*a+e[14],t[15]=u*r+f*i+d*a+e[15]}return t}function p(t,e,n){let r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function M(t,e,n,r){let o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);if(l<=(0,i.FD)())return void a(t,e);l=1/l,o*=l,s*=l,u*=l;let h=Math.sin(n),c=Math.cos(n),f=1-c,p=e[0],M=e[1],m=e[2],d=e[3],y=e[4],g=e[5],b=e[6],x=e[7],v=e[8],_=e[9],w=e[10],S=e[11],A=o*o*f+c,O=s*o*f+u*h,P=u*o*f-s*h,R=o*s*f-u*h,B=s*s*f+c,Y=u*s*f+o*h,q=o*u*f+s*h,X=s*u*f-o*h,I=u*u*f+c;t[0]=p*A+y*O+v*P,t[1]=M*A+g*O+_*P,t[2]=m*A+b*O+w*P,t[3]=d*A+x*O+S*P,t[4]=p*R+y*B+v*Y,t[5]=M*R+g*B+_*Y,t[6]=m*R+b*B+w*Y,t[7]=d*R+x*B+S*Y,t[8]=p*q+y*X+v*I,t[9]=M*q+g*X+_*I,t[10]=m*q+b*X+w*I,t[11]=d*q+x*X+S*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+l*r,t[5]=o*i+h*r,t[6]=s*i+c*r,t[7]=u*i+f*r,t[8]=l*i-a*r,t[9]=h*i-o*r,t[10]=c*i-s*r,t[11]=f*i-u*r,t}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function y(t,e,n){if(0===e)return s(t);let r=n[0],a=n[1],o=n[2],u=Math.sqrt(r*r+a*a+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,a*=u,o*=u;let l=Math.sin(e),h=Math.cos(e),c=1-h;return t[0]=r*r*c+h,t[1]=a*r*c+o*l,t[2]=o*r*c-a*l,t[3]=0,t[4]=r*a*c-o*l,t[5]=a*a*c+h,t[6]=o*a*c+r*l,t[7]=0,t[8]=r*o*c+a*l,t[9]=a*o*c-r*l,t[10]=o*o*c+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,u=i+i,l=a+a,h=r*s,c=r*u,f=r*l,p=i*u,M=i*l,m=a*l,d=o*s,y=o*u,g=o*l;return t[0]=1-(p+m),t[1]=c+g,t[2]=f-y,t[3]=0,t[4]=c-g,t[5]=1-(h+m),t[6]=M+d,t[7]=0,t[8]=f+y,t[9]=M-d,t[10]=1-(h+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function _(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function w(t,e){let n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],u=e[8],l=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(a*a+o*o+s*s),t[2]=Math.sqrt(u*u+l*l+h*h),t}function S(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,h=o+o,c=i*u,f=i*l,p=i*h,M=a*l,m=a*h,d=o*h,y=s*u,g=s*l,b=s*h,x=r[0],v=r[1],_=r[2];return t[0]=(1-(M+d))*x,t[1]=(f+b)*x,t[2]=(p-g)*x,t[3]=0,t[4]=(f-b)*v,t[5]=(1-(c+d))*v,t[6]=(m+y)*v,t[7]=0,t[8]=(p+g)*_,t[9]=(m-y)*_,t[10]=(1-(c+M))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,i){let a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,h=o+o,c=s+s,f=a*l,p=a*h,M=a*c,m=o*h,d=o*c,y=s*c,g=u*l,b=u*h,x=u*c,v=r[0],_=r[1],w=r[2],S=i[0],A=i[1],O=i[2],P=(1-(m+y))*v,R=(p+x)*v,B=(M-b)*v,Y=(p-x)*_,q=(1-(f+y))*_,X=(d+g)*_,I=(M+b)*w,C=(d-g)*w,T=(1-(f+m))*w;return t[0]=P,t[1]=R,t[2]=B,t[3]=0,t[4]=Y,t[5]=q,t[6]=X,t[7]=0,t[8]=I,t[9]=C,t[10]=T,t[11]=0,t[12]=n[0]+S-(P*S+Y*A+I*O),t[13]=n[1]+A-(R*S+q*A+C*O),t[14]=n[2]+O-(B*S+X*A+T*O),t[15]=1,t}function P(t,e,n,r,i,a,o){let s=1/(n-e),u=1/(i-r),l=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function R(t,e,n,r){let a=e[0],o=e[1],u=e[2],l=a-n[0],h=o-n[1],c=u-n[2],f=(0,i.FD)();if(Math.abs(l)<f&&Math.abs(h)<f&&Math.abs(c)<f)return void s(t);let p=1/Math.sqrt(l*l+h*h+c*c);l*=p,h*=p,c*=p;let M=r[0],m=r[1],d=r[2],y=m*c-d*h,g=d*l-M*c,b=M*h-m*l;p=Math.sqrt(y*y+g*g+b*b),p?(p=1/p,y*=p,g*=p,b*=p):(y=0,g=0,b=0);let x=h*b-c*g,v=c*y-l*b,_=l*g-h*y;p=Math.sqrt(x*x+v*v+_*_),p?(p=1/p,x*=p,v*=p,_*=p):(x=0,v=0,_=0),t[0]=y,t[1]=x,t[2]=l,t[3]=0,t[4]=g,t[5]=v,t[6]=h,t[7]=0,t[8]=b,t[9]=_,t[10]=c,t[11]=0,t[12]=-(y*a+g*o+b*u),t[13]=-(x*a+v*o+_*u),t[14]=-(l*a+h*o+c*u),t[15]=1}function B(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function q(t){let e=(0,i.FD)(),n=t[0],r=t[1],a=t[2],o=t[4],s=t[5],u=t[6],l=t[8],h=t[9],c=t[10];return Math.abs(1-(n*n+o*o+l*l))<=e&&Math.abs(1-(r*r+s*s+h*h))<=e&&Math.abs(1-(a*a+u*u+c*c))<=e}function X(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const I=c,C=B;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],y=e[15];return t[0]=s*(f*y-p*d)-c*(u*y-l*d)+m*(u*p-l*f),t[1]=-(r*(f*y-p*d)-c*(i*y-a*d)+m*(i*p-a*f)),t[2]=r*(u*y-l*d)-s*(i*y-a*d)+m*(i*l-a*u),t[3]=-(r*(u*p-l*f)-s*(i*p-a*f)+c*(i*l-a*u)),t[4]=-(o*(f*y-p*d)-h*(u*y-l*d)+M*(u*p-l*f)),t[5]=n*(f*y-p*d)-h*(i*y-a*d)+M*(i*p-a*f),t[6]=-(n*(u*y-l*d)-o*(i*y-a*d)+M*(i*l-a*u)),t[7]=n*(u*p-l*f)-o*(i*p-a*f)+h*(i*l-a*u),t[8]=o*(c*y-p*m)-h*(s*y-l*m)+M*(s*p-l*c),t[9]=-(n*(c*y-p*m)-h*(r*y-a*m)+M*(r*p-a*c)),t[10]=n*(s*y-l*m)-o*(r*y-a*m)+M*(r*l-a*s),t[11]=-(n*(s*p-l*c)-o*(r*p-a*c)+h*(r*l-a*s)),t[12]=-(o*(c*d-f*m)-h*(s*d-u*m)+M*(s*f-u*c)),t[13]=n*(c*d-f*m)-h*(r*d-i*m)+M*(r*f-i*c),t[14]=-(n*(s*d-u*m)-o*(r*d-i*m)+M*(r*u-i*s)),t[15]=n*(s*f-u*c)-o*(r*f-i*c)+h*(r*u-i*s),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],h=t[9],c=t[10],f=t[11],p=t[12],M=t[13],m=t[14],d=t[15];return(e*o-n*a)*(c*d-f*m)-(e*s-r*a)*(h*d-f*M)+(e*u-i*a)*(h*m-c*M)+(n*s-r*o)*(l*d-f*p)-(n*u-i*o)*(l*m-c*p)+(r*u-i*s)*(l*M-h*p)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],h=t[7],c=t[8],f=t[9],p=t[10],M=t[11],m=t[12],d=t[13],y=t[14],g=t[15],b=e[0],x=e[1],v=e[2],_=e[3],w=e[4],S=e[5],A=e[6],O=e[7],P=e[8],R=e[9],B=e[10],Y=e[11],q=e[12],X=e[13],I=e[14],C=e[15],T=(0,i.FD)();return Math.abs(n-b)<=T*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=T*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(a-v)<=T*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(o-_)<=T*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(s-w)<=T*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-S)<=T*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-A)<=T*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-O)<=T*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(c-P)<=T*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-B)<=T*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(M-Y)<=T*Math.max(1,Math.abs(M),Math.abs(Y))&&Math.abs(m-q)<=T*Math.max(1,Math.abs(m),Math.abs(q))&&Math.abs(d-X)<=T*Math.max(1,Math.abs(d),Math.abs(X))&&Math.abs(y-I)<=T*Math.max(1,Math.abs(y),Math.abs(I))&&Math.abs(g-C)<=T*Math.max(1,Math.abs(g),Math.abs(C))},exactEquals:Y,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,h=r*o,c=r*s,f=i*o,p=i*s,M=i*u,m=a*o,d=a*s,y=a*u;return t[0]=1-c-M,t[1]=h+y,t[2]=f-d,t[3]=0,t[4]=h-y,t[5]=1-l-M,t[6]=p+m,t[7]=0,t[8]=f+d,t[9]=p-m,t[10]=1-l-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=r*r+i*i+a*a+o*o;return c>0?(n[0]=2*(s*o+h*r+u*a-l*i)/c,n[1]=2*(u*o+h*i+l*r-s*a)/c,n[2]=2*(l*o+h*a+s*i-u*r)/c):(n[0]=2*(s*o+h*r+u*a-l*i),n[1]=2*(u*o+h*i+l*r-s*a),n[2]=2*(l*o+h*a+s*i-u*r)),x(t,e,n),t},fromRotation:y,fromRotationTranslation:x,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:P,getRotation:S,getScale:w,getTranslation:_,hasIdentityRotation:X,identity:s,invert:h,invertOrIdentity:l,isOrthoNormal:q,lookAt:R,mul:I,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,a,o){let s=1/(e-n),u=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(o+a)*l,t[15]=1,t},perspective:function(t,e,n,r,i){let a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:M,rotateX:m,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-l*r,t[1]=o*i-h*r,t[2]=s*i-c*r,t[3]=u*i-f*r,t[8]=a*r+l*i,t[9]=o*r+h*i,t[10]=s*r+c*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+l*r,t[1]=o*i+h*r,t[2]=s*i+c*r,t[3]=u*i+f*r,t[4]=l*i-a*r,t[5]=h*i-o*r,t[6]=c*i-s*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:C,subtract:B,targetTo:function(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=r[0],u=r[1],l=r[2],h=i-n[0],c=a-n[1],f=o-n[2],p=h*h+c*c+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,c*=p,f*=p);let M=u*f-l*c,m=l*h-s*f,d=s*c-u*h;return p=M*M+m*m+d*d,p>0&&(p=1/Math.sqrt(p),M*=p,m*=p,d*=p),t[0]=M,t[1]=m,t[2]=d,t[3]=0,t[4]=c*d-f*m,t[5]=f*M-h*d,t[6]=h*m-c*M,t[7]=0,t[8]=h,t[9]=c,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>a,C:()=>o,Cc:()=>O,DI:()=>_,Io:()=>g,Ln:()=>y,Om:()=>S,Qr:()=>c,Re:()=>l,S8:()=>w,T9:()=>m,WQ:()=>u,Z0:()=>P,_S:()=>p,aI:()=>C,ei:()=>R,fw:()=>Y,gL:()=>B,hG:()=>b,hZ:()=>s,hs:()=>d,jk:()=>M,lw:()=>h,m3:()=>x,oW:()=>T,t2:()=>I,tn:()=>f,ze:()=>v});var r=n(51850),i=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function O(t,e,n,r){let i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function P(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12],t[1]=n[1]*r+n[5]*i+n[9]*a+n[13],t[2]=n[2]*r+n[6]*i+n[10]*a+n[14],t}function R(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function B(t,e,n){return Y(t,e,n[0],n[1],n[2],n[3])}function Y(t,e,n,r,i,a){let o=e[0],s=e[1],u=e[2],l=r*u-i*s,h=i*o-n*u,c=n*s-r*o,f=r*c-i*h,p=i*l-n*c,M=n*h-r*l,m=2*a;return t[0]=o+l*m+2*f,t[1]=s+h*m+2*p,t[2]=u+c*m+2*M,t}const q=(0,r.vt)(),X=(0,r.vt)();function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2],l=(0,i.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))}function T(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],a=n[2]-e[2],o=r*r+i*i+a*a;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=a*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=l,j=h,Z=c,E=g,D=b,z=a,k=x;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,e){w(q,t),w(X,e);let n=S(q,X);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,a){let o=1-a,s=o*o,u=a*a,l=s*o,h=3*a*s,c=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*h+r[0]*c+i[0]*f,t[1]=e[1]*l+n[1]*h+r[1]*c+i[1]*f,t[2]=e[2]*l+n[2]*h+r[2]*c+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:A,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=i*u-a*s,h=a*o-r*u,c=r*s-i*o,f=Math.sqrt(l*l+h*h+c*c);return t[0]=l/f,t[1]=h/f,t[2]=c/f,t},direction:T,dist:E,distance:g,div:Z,divide:c,dot:S,equals:C,exactEquals:I,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,a){let o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*h,t},inverse:_,len:z,length:a,lerp:O,max:m,min:M,mul:j,multiply:h,negate:v,normalize:w,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,a=2*n()-1,o=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=a*e,t},rotateX:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:y,scaleTo:function(t,e){return d(t,t,e/z(t))},set:s,sign:p,sqrDist:D,sqrLen:k,squaredDistance:b,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:l,transformMat3:R,transformMat4:P,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:B,transformQuatValues:Y},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,z,"jb",0,N,"lo",0,D,"uE",0,k])},78955(t,e,n){n.d(e,{Bw:()=>d,C:()=>i,Cc:()=>x,LI:()=>f,Om:()=>b,S8:()=>g,T9:()=>c,WQ:()=>o,Z0:()=>v,aI:()=>w,hG:()=>m,hZ:()=>a,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>_});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function h(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(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 p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+a*a)}function m(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function d(t){let e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function y(t){let e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function g(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t}function v(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function w(t,e){let n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],h=e[3],c=(0,r.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-h)<=c*Math.max(1,Math.abs(o),Math.abs(h))}const S=s,A=u,O=l,P=M,R=m,B=d,Y=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,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:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:P,distance:M,div:O,divide:l,dot:b,equals:w,exactEquals:_,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:B,length:d,lerp:x,max:c,min:h,mul:A,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,i,a,o,s,u,l=r.Ov;do{n=2*l()-1,i=2*l()-1,s=n*n+i*i}while(s>=1);do{a=2*l()-1,o=2*l()-1,u=a*a+o*o}while(u>=1);let h=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*a*h,t[3]=e*o*h,t},round:f,scale:p,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:R,sqrLen:Y,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:s,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=n[3],h=l*r+s*a-u*i,c=l*i+u*r-o*a,f=l*a+o*i-s*r,p=-o*r-s*i-u*a;return t[0]=h*l+p*-o+c*-u-f*-s,t[1]=c*l+p*-s+f*-o-h*-u,t[2]=f*l+p*-u+h*-s-c*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>s});var r=n(4576),i=n(21818),a=(n(44208),n(15142)),o=n(11006);class s{constructor(t=9,e){this._compareMinX=f,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),w.prune(),S.prune()}all(t){u(this._data,t)}search(t,e){let n=this._data,r=this._toBBox;if(b(t,n))for(v.clear();n;){for(let i=0,a=n.children.length;i<a;i++){let a=n.children[i],o=n.leaf?r(a):a;b(t,o)&&(n.leaf?e(a):g(t,o)?u(a,e):v.push(a))}n=v.pop()}}collides(t){let e=this._data,n=this._toBBox;if(!b(t,e))return!1;for(v.clear();e;){for(let r=0,i=e.children.length;r<i;r++){let i=e.children[r],a=e.leaf?n(i):i;if(b(t,a)){if(e.leaf||g(t,a))return!0;v.push(i)}}e=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,n=this._data,a=null,o=0,s=!1,u=this._toBBox(t);for(w.clear(),S.clear();n||w.length>0;){if(n||(n=w.pop(),a=w.data[w.length-1],o=S.pop()??0,s=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;s||n.leaf||!g(n,u)?a?(o++,n=a.children[o],s=!1):n=null:(w.push(n),S.push(o),o=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){let i=n-e+1,a=this._maxEntries;if(i<=a){let r=new P(t.slice(e,n+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/a**(r-1)));let o=new R([]);o.height=r;let s=Math.ceil(i/a),u=s*Math.ceil(Math.sqrt(a));x(t,e,n,u,this._compareMinX);for(let i=e;i<=n;i+=u){let e=Math.min(i+u-1,n);x(t,i,e,s,this._compareMinY);for(let n=i;n<=e;n+=s){let i=Math.min(n+s-1,e);o.children.push(this._build(t,n,i,r-1))}}return l(o,this._toBBox),o}_insert(t,e,n){let r=this._toBBox,i=n?t:r(t);w.clear();let a=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let a=0,o=e.children.length;a<o;a++){let o=e.children[a],s=M(o),u=d(t,o)-s;u<i?(i=u,r=s<r?s:r,n=o):u===i&&s<r&&(r=s,n=o)}e=n||e.children[0]}return e}(i,this._data,e,w);for(a.children.push(t),c(a,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}(i,w,e)}_split(t,e){let n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);let a=this._chooseSplitIndex(n,i,r);if(!a)return;let o=n.children.splice(a,n.children.length-a),s=n.leaf?new P(o):new R(o);s.height=n.height,l(n,this._toBBox),l(s,this._toBBox),e?t.data[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,a;r=i=1/0;for(let o=e;o<=n-e;o++){let e=h(t,0,o,this._toBBox),s=h(t,o,n,this._toBBox),u=y(e,s),l=M(e)+M(s);u<r?(r=u,a=o,i=l<i?l:i):u===r&&l<i&&(i=l,a=o)}return a}_chooseSplitAxis(t,e,n){let r=t.leaf?this._compareMinX:f,i=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);let i=this._toBBox,a=h(t,0,e,i),o=h(t,n-e,n,i),s=m(a)+m(o);for(let r=e;r<n-e;r++){let e=t.children[r];c(a,t.leaf?i(e):e),s+=m(a)}for(let r=n-e-1;r>=e;r--){let e=t.children[r];c(o,t.leaf?i(e):e),s+=m(o)}return s}_condense(t){for(let e=t.length-1;e>=0;e--){let n=t.data[e];if(0===n.children.length)if(e>0){let i=t.data[e-1],a=i.children;a.splice((0,r.qh)(a,n,a.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,e){let n=t;for(_.clear();n;){if(!0===n.leaf)for(let t of n.children)e((0,i.z)(t));else _.pushArray(n.children);n=_.pop()??null}}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,r,i){i||=new P([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],c(i,t.leaf?r(a):a);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function M(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function y(t,e){let n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,a-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,i){let a=[e,n];for(;a.length;){let e=a.pop(),n=a.pop();if(e-n<=r)continue;let s=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,s,n,e,i),a.push(n,s,s,e)}}const v=new a.A,_=new a.A,w=new a.A,S=new a.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class O extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class P extends O{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends O{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),a=n(4576),o=n(4718),s=n(91429),u=n(5443),l=n(91075),h=n(86738),c=n(16930),f=n(90634),p=n(47610),M=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,a.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,M.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new h.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,M.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],d.prototype,"writePoints",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Multipoint")],d),d.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>M});var r,i=n(32198),a=n(4718),o=n(91429),s=n(5443),u=n(91075),l=n(86738),h=n(16930),c=n(90634),f=n(56993),p=n(43937);let M=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,a.o8)(t)}get extent(){let t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new s.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,a.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,a.o8)(this.paths),t.curvePaths=(0,a.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)&&((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new l.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)&&((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths")),this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],M.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],M.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],M.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],M.prototype,"writePaths",null),M=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],M),M.prototype.toJSON.isDefaultToJSON=!0},48353(t,e,n){n.d(e,{l:()=>l});var r=n(34727),i=n(58083),a=n(51850);function o(t,e,n){let r=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e),s=n;return s[0]=-r,s[4]=-a*i,s[8]=o*i,s[12]=0,s[1]=i,s[5]=-a*r,s[9]=o*r,s[13]=0,s[2]=0,s[6]=o,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(49208),u=n(21325);function l(t,e,n,r){let a=(0,s.Tp)(t,r);if(null==a)return!1;let l=a.source.spatialReferenceId,M=a.dest.spatialReferenceId;if(l===M&&!h(M)&&(0!==l||(0,u.aI)(t,r)))return(0,i.kN)(n,e),!0;if(h(M)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),o(c*f[0],c*f[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}let m=h(l);if((3===M||11===M||2===M||5===M)&&(2===l||m||3===l||5===l)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),m?function(t,e,n){o(t,e,n),(0,i.mg)(n,n)}(c*f[0],c*f[1],n):(0,i.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const c=(0,r.kU)(1),f=(0,a.vt)(),p=(0,a.vt)()},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),a=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,a.projectBuffer)(s,t.spatialReference,0,e,n,0);let o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const s=(0,r.vt)()},95696(t,e,n){n.d(e,{A:()=>l});var r,i=n(32198),a=n(69540),o=n(25482),s=n(91429),u=n(93223);let l=class extends((0,a.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,n){n.d(e,{A:()=>l});var r=n(32198),i=n(69540),a=n(25482),o=n(91429),s=n(51850),u=n(93223);let l=class extends((0,i.OU)(a.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},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)},52006(t,e,n){function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function a(t){return"b"in t}function o(t){return"c"in t}function s(t){return Array.isArray(t)}function u(t){return"a"in t}function l(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function c(t,e){return i(t).flat().some(t=>function(t,e){return!(s(t)||(a(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!l(t)&&!h(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return s(t)?t:a(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function p(t){if(a(t)){let[e,n,r]=t.b;return{b:[[...e],[...n],[...r]]}}if(o(t)){let[e,n]=t.c;return{c:[[...e],[...n]]}}if(s(t))return[...t];if(l(t)){let[e,n,r,i]=t.a;return{a:[[...e],[...n],r,i]}}if(h(t)){let[e,n,r,i,a,o,s]=t.a;return{a:[[...e],[...n],r,i,a,o,s]}}return t}n.d(e,{DA:()=>l,Ed:()=>r,FD:()=>i,FG:()=>u,V8:()=>c,Xq:()=>s,aO:()=>o,n1:()=>a,tk:()=>p,wY:()=>h,yP:()=>f}),n(4576)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?a(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>l,Bi:()=>s,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>c,ZC:()=>r,fT:()=>a,uW:()=>u})},65864(t,e,n){n.d(e,{rS:()=>h,xD:()=>f});var r=n(5443),i=n(91075),a=n(48526),o=n(86738),s=n(39829),u=n(82799),l=n(60408);function h(t){return null==t?null:t instanceof i.A?t:(0,l.fT)(t)?o.A.fromJSON(t):(0,l.Rg)(t)?u.A.fromJSON(t):(0,l.Bi)(t)?s.A.fromJSON(t):(0,l.U9)(t)?a.A.fromJSON(t):(0,l.ZC)(t)?r.A.fromJSON(t):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:u.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:a.A,esriGeometryMultiPatch:s.A};function f(t){return t&&c[t]||null}},38419(t,e,n){n.r(e),n.d(e,{default:()=>s});var r=n(44208),i=n(75503),a=n(95696),o=n(72258);class s{async createIndex(t,e){if(!t.vertexAttributes?.position)return new i.wq;let n=function(t){let{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i}=t,s=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i},a.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),r=null==e?this.createIndexThread(n).result:await e.invoke("createIndexThread",n,{transferList:[]});return u().fromJSON(r)}createIndexThread(t){let e=u();if(!t)return{result:e.toJSON()};let n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(let t of n)r+=t.length/3;let i=Array(r),a=0;for(let t of n)for(let n=0;n<t.length;n+=3)i[a++]=l(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(i),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){let n=Array(e.length/9),r=0;for(let t=0;t<e.length;t+=9)n[r++]=l(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function u(){return new i.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function l(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},27615(t,e,n){n.d(e,{CK:()=>u,Hq:()=>s,MW:()=>l,TE:()=>h,yJ:()=>c});var r=n(35522),i=n(86738),a=n(95696),o=n(18251);function s(t){return null!=t.origin}function u(t){return s(t.vertexSpace)}function l(t,e){if(!s(t))return null;let[n,r,a]=t.origin;return new i.A({x:n,y:r,z:a,spatialReference:e})}function h(t,e){let{x:n,y:r,z:i,spatialReference:s}=t,u=[n,r,i??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new o.A({origin:u}):new a.A({origin:u})}function c(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1843],{48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function u(){return n(1,1)}function f(){return n(-1,-1)}function h(){return n(1,0)}function c(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const l=u(),d=f(),o=h(),a=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:l,UNIT_X:o,UNIT_Y:a,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:f,ones:u,unitX:h,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,l])},91829(e,t,r){function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function n(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function f(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>s});const l=[0,0,0,0],d=n(),o=u(),a=f(),p=h(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:o,UNIT_Y:a,UNIT_Z:p,ZEROS:l,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:function(e,t,r,s){return[e,t,r,s]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:n,unitW:c,unitX:u,unitY:f,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,l])},78955(e,t,r){r.d(t,{Bw:()=>E,C:()=>i,Cc:()=>S,LI:()=>o,Om:()=>_,S8:()=>T,T9:()=>d,WQ:()=>u,Z0:()=>m,aI:()=>R,hG:()=>y,hZ:()=>n,hs:()=>a,jk:()=>l,m3:()=>B,t2:()=>A});var s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function n(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function f(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function l(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function o(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function a(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+s*s+i*i+n*n)}function y(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return r*r+s*s+i*i+n*n}function E(e){let t=e[0],r=e[1],s=e[2],i=e[3];return Math.sqrt(t*t+r*r+s*s+i*i)}function B(e){let t=e[0],r=e[1],s=e[2],i=e[3];return t*t+r*r+s*s+i*i}function T(e,t){let r=t[0],s=t[1],i=t[2],n=t[3],u=r*r+s*s+i*i+n*n;return u>0&&(u=1/Math.sqrt(u),e[0]=r*u,e[1]=s*u,e[2]=i*u,e[3]=n*u),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function S(e,t,r,s){let i=t[0],n=t[1],u=t[2],f=t[3];return e[0]=i+s*(r[0]-i),e[1]=n+s*(r[1]-n),e[2]=u+s*(r[2]-u),e[3]=f+s*(r[3]-f),e}function m(e,t,r){let s=t[0],i=t[1],n=t[2],u=t[3];return e[0]=r[0]*s+r[4]*i+r[8]*n+r[12]*u,e[1]=r[1]*s+r[5]*i+r[9]*n+r[13]*u,e[2]=r[2]*s+r[6]*i+r[10]*n+r[14]*u,e[3]=r[3]*s+r[7]*i+r[11]*n+r[15]*u,e}function A(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function R(e,t){let r=e[0],i=e[1],n=e[2],u=e[3],f=t[0],h=t[1],c=t[2],l=t[3],d=(0,s.FD)();return Math.abs(r-f)<=d*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-h)<=d*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(u-l)<=d*Math.max(1,Math.abs(u),Math.abs(l))}const M=f,N=h,I=c,b=p,C=y,F=E,O=B;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:b,distance:p,div:I,divide:c,dot:_,equals:R,exactEquals:A,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:F,length:E,lerp:S,max:d,min:l,mul:N,multiply:h,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:T,random:function(e,t=1){let r,i,n,u,f,h,c=s.Ov;do{r=2*c()-1,i=2*c()-1,f=r*r+i*i}while(f>=1);do{n=2*c()-1,u=2*c()-1,h=n*n+u*u}while(h>=1);let l=Math.sqrt((1-f)/h);return e[0]=t*r,e[1]=t*i,e[2]=t*n*l,e[3]=t*u*l,e},round:o,scale:a,scaleAndAdd:function(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e},set:n,sqrDist:C,sqrLen:O,squaredDistance:y,squaredLength:B,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:f,transformMat4:m,transformQuat:function(e,t,r){let s=t[0],i=t[1],n=t[2],u=r[0],f=r[1],h=r[2],c=r[3],l=c*s+f*n-h*i,d=c*i+h*s-u*n,o=c*n+u*i-f*s,a=-u*s-f*i-h*n;return e[0]=l*c+a*-u+d*-h-o*-f,e[1]=d*c+a*-f+o*-u-l*-h,e[2]=o*c+a*-h+l*-f-d*-u,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13030(e,t,r){r.d(t,{Y$:()=>E,XW:()=>y,qB:()=>b,Qt:()=>Z,My:()=>J,bf:()=>X,jZ:()=>R,j0:()=>M,Sx:()=>N,E$:()=>I,Qy:()=>se,h:()=>x,P:()=>w,SL:()=>G,dy:()=>te,ES:()=>ie,gH:()=>T,ZD:()=>B,si:()=>C,mJ:()=>$,UL:()=>Q,D6:()=>j,Yi:()=>P,An:()=>Y,LC:()=>g,xs:()=>S,EC:()=>_,Xm:()=>F,Vp:()=>k,zD:()=>K,m8:()=>q,nS:()=>D,H$:()=>H,eI:()=>L,td:()=>re,Eq:()=>A,jz:()=>m,Aj:()=>O,E7:()=>W,Y4:()=>ee,TX:()=>z,Uz:()=>v,ml:()=>V,XP:()=>U});var s=r(34727),i=r(37585),n=r(48163),u=r(78955),f=r(91829);class h{static{this.ElementCount=9}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=9;let n=this.TypedArrayConstructor;void 0===s&&(s=9*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;for(let e=0;e<9;++e)s[n++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=16;let n=this.TypedArrayConstructor;void 0===s&&(s=16*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){let s=this.typedBuffer,i=e*this.typedBufferStride;for(let e=0;e<16;++e)s[i++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=1;let n=this.TypedArrayConstructor;void 0===s&&(s=n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.stride=s,this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class d{static{this.ElementCount=2}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;let n=this.TypedArrayConstructor;void 0===s&&(s=2*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,i.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var o=r(35522);class a{static{this.ElementCount=3}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=3;let n=this.TypedArrayConstructor;void 0===s&&(s=3*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=s}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;let n=this.TypedArrayConstructor;void 0===s&&(s=4*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,u.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s,i){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=s,this.typedBuffer[e]=i}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class y extends l{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class E extends l{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}static{this.ElementType="f32"}}class B extends d{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(B,e,t)}static{this.ElementType="f16"}}class T extends d{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f32"}}class _ extends a{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f16"}}class S extends a{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(S,e,t)}static fromTypedArray(e,t){return new S(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class m extends p{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f16"}}class A extends p{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f32"}}class R extends h{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class M extends h{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="f32"}}class I extends c{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class b extends l{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f64"}}class C extends d{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="f64"}}class F extends a{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(F,e,t)}static fromTypedArray(e,t){return new F(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class O extends p{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="f64"}}class G extends l{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u8"}}class g extends d{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="u8"}}class L extends a{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static fromTypedArray(e,t){return new L(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class U extends p{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u8"}}class x extends l{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="u16"}}class P extends d{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class D extends a{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class v extends p{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="u16"}}class w extends l{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="u32"}}class Y extends d{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="u32"}}class H extends a{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="u32"}}class V extends p{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class X extends l{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i8"}}class j extends d{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class q extends a{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="i8"}}class z extends p{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class Z extends l{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class k extends a{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="i16"}}class W extends p{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class J extends l{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class Q extends d{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i32"}}class K extends a{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends G{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,s.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends U{constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,u.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,u.jk)(ue,(0,u.T9)(ue,t,f.uY),f.Un),(0,u.hs)(ue,ue,255),(0,u.LI)(ue,ue),super.setVec(e,ue)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,s.qE)(r,0,1)))}setValues(e,t,r,s,i){(0,u.hZ)(ue,t,r,s,i),this.setVec(e,ue)}slice(e,t){return this.sliceBuffer(re,e,t)}}class se extends Z{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,s.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(se,e,t)}}class ie extends ${constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,i.hZ)(ne,-1,-1),(0,i.T9)(t,(0,i.hs)(t,super.getVec(e,t),1/32767),ne)}setVec(e,t){(0,i.qE)(ne,t,n.IA,n.Un),(0,i.hs)(ne,ne,32767),(0,i.LI)(ne,ne),super.setVec(e,ne)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,s.qE)(r,-1,1)))}setValues(e,t,r){(0,i.hZ)(ne,t,r),this.setVec(e,ne)}slice(e,t){return this.sliceBuffer(ie,e,t)}}const ne=(0,n.vt)(),ue=(0,f.vt)()},90239(e,t,r){function s(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(t,{GJ:()=>s})},1843(e,t,r){r.d(t,{BP:()=>l,l5:()=>d});var s=r(13030),i=r(90239),n=r(4431),u=r(620),f=r(85079);class h{constructor(e,t,r=0){this.layout=e,this.byteOffset=r,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(let t of e.fields.keys()){let s=e.fields.get(t);this[t]=new s.constructor(this.buffer,r+s.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(e,t){let r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new h(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,s=e.count){let i=this.stride,n=e.byteOffset+t*i,u=this.byteOffset+r*i,f=s*i;if(i%4==0&&n%4==0&&u%4==0){let t=new Uint32Array(e.buffer,n,f/4);new Uint32Array(this.buffer,u,f/4).set(t)}else{let t=new Uint8Array(e.buffer,n,f);new Uint8Array(this.buffer,u,f).set(t)}return this}get usedMemory(){return this.byteLength}dispose(){}}class c{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:p(e[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,n.U)(this))}vec2f16(e,t){return this._appendField(e,s.ZD,t),this}vec2f(e,t){return this._appendField(e,s.gH,t),this}vec2f64(e,t){return this._appendField(e,s.si,t),this}vec3f16(e,t){return this._appendField(e,s.EC,t),this}vec3f(e,t){return this._appendField(e,s.xs,t),this}vec3f64(e,t){return this._appendField(e,s.Xm,t),this}vec4f16(e,t){return this._appendField(e,s.jz,t),this}vec4f(e,t){return this._appendField(e,s.Eq,t),this}vec4f64(e,t){return this._appendField(e,s.Aj,t),this}mat3f(e,t){return this._appendField(e,s.jZ,t),this}mat3f64(e,t){return this._appendField(e,s.j0,t),this}mat4f(e,t){return this._appendField(e,s.Sx,t),this}mat4f64(e,t){return this._appendField(e,s.E$,t),this}vec4u8(e,t){return this._appendField(e,s.XP,t),this}f16(e,t){return this._appendField(e,s.XW,t),this}f32(e,t){return this._appendField(e,s.Y$,t),this}f64(e,t){return this._appendField(e,s.qB,t),this}u8(e,t){return this._appendField(e,s.SL,t),this}u16(e,t){return this._appendField(e,s.h,t),this}i8(e,t){return this._appendField(e,s.bf,t),this}vec2i8(e,t){return this._appendField(e,s.D6,t),this}vec2i16(e,t){return this._appendField(e,s.mJ,t),this}vec2u8(e,t){return this._appendField(e,s.LC,t),this}vec2u16(e,t){return this._appendField(e,s.Yi,t),this}vec4u16(e,t){return this._appendField(e,s.Uz,t),this}vec4i16(e,t){return this._appendField(e,s.E7,t),this}u32(e,t){return this._appendField(e,s.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,u.vA)(!1,`${e} already added to vertex buffer layout`);let s=t.ElementCount*(0,i.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:s,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{let s=(0,i.GJ)(r.constructor.ElementType);e=Math.floor((e+s-1)/s)*s,r.offset=e,e+=r.size,t=Math.max(t,s)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new h(this,e)}createView(e,t){return new h(this,e,t)}clone(){let e=new c;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new c}class d{constructor(e){this.fields=[],e.fields.forEach((e,t)=>{let r={...e,constructor:a(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const o=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function a(e){return`${e.ElementType}_${e.ElementCount}`}function p(e){return y.get(e)}const y=new Map;o.forEach(e=>y.set(a(e),e))},4431(e,t,r){r.d(t,{U:()=>n});var s=r(63907),i=r(74038);function n(e,t=0){let r=e.stride;return e.fields.entries().map(([e,n])=>{let u=n.constructor.ElementCount,f=function(e){switch(e){case"u8":return s.pe.UNSIGNED_BYTE;case"u16":return s.pe.UNSIGNED_SHORT;case"u32":return s.pe.UNSIGNED_INT;case"i8":return s.pe.BYTE;case"i16":return s.pe.SHORT;case"i32":return s.pe.INT;case"f16":return s.pe.HALF_FLOAT;case"f32":return s.pe.FLOAT;default:throw Error("BufferType not supported in WebGL")}}(n.constructor.ElementType),h=n.offset,c=n.optional?.glNormalized??!1,l=n.optional?.integer??!1;return new i._(e,u,f,h,r,c,t,l)}).toArray()}},620(e,t,r){r.d(t,{O_:()=>n,vA:()=>i}),r(48163),r(78955),(0,r(91829).vt)();class s{constructor(e){this.message=e}toString(){return`AssertException: ${this.message}`}}function i(e,t="Assertion"){if(!e){let e=Error(t).stack;throw new s(`${t} at ${e}`)}}function n(e,t,r,s){let i,n=(r[0]-e[0])/t[0],u=(s[0]-e[0])/t[0];n>u&&(i=n,n=u,u=i);let f=(r[1]-e[1])/t[1],h=(s[1]-e[1])/t[1];if(f>h&&(i=f,f=h,h=i),n>h||f>u)return!1;f>n&&(n=f),h<u&&(u=h);let c=(r[2]-e[2])/t[2],l=(s[2]-e[2])/t[2];return c>l&&(i=c,c=l,l=i),!(n>l||c>u||(l<u&&(u=l),u<0))}},85079(e,t,r){r.d(t,{Sk:()=>u,Xk:()=>i,_u:()=>n});var s=r(21818);function i(e){let t=0;return(0,s.z)(new Map(e.map(({name:e,count:r})=>{let s=[e,t];return 16===r?t+=4:9===r?t+=3:++t,s})))}function n(e){let t=new Map,r=0;return e.forEach(e=>e.forEach(({name:e,count:s})=>{t.set(e,r),16===s?r+=4:9===s?r+=3:++r})),t}function u(e){return n(Array.from(e.values()).map(({layout:e})=>e))}},74038(e,t,r){r.d(t,{_:()=>s});class s{constructor(e,t,r,s,i,n=!1,u=0,f=!1){this.name=e,this.count=t,this.type=r,this.offset=s,this.stride=i,this.normalized=n,this.divisor=u,this.integer=f}}},63907(e,t,r){const s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},n=Object.values(i),u={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(t,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,n,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,s,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{10382(e,t,r){r.d(t,{A:()=>u});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class u{constructor(){this._clients=[],this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(let e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(let t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){let r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();let s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(let e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(let e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){let e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){let e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;let t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>F,N1:()=>V});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),u=r(72457),c=r(61322),d=r(53966),h=r(97768),f=r(56507),p=r(84952);const g={async request(e,t){let r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,p.sC)(e.url)?.after?s:"array-buffer";let n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),w=r(92602),b=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){let e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){let t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){let{modulePath:e,jobId:r}=t,s=await c.default.loadWorker(e);s||=await(import(e));let n=c.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}const P=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=m.Go;let x,N;const L="Failed to create Worker. Fallback to execute module in main thread";async function O(){if(!(0,o.A)("esri-workers"))return M(new C);if(!x&&!N)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=w.A.default){let t={...w.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(w.A));e.assetsPath=(0,p.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-snapping-density-sample-interval":(0,o.A)("featurelayer-snapping-density-sample-interval"),"featurelayer-snapping-density-max-vertices-per-feature":(0,o.A)("featurelayer-snapping-density-max-vertices-per-feature"),"featurelayer-snapping-density-max-distance":(0,o.A)("featurelayer-snapping-density-max-distance"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.s2)(e.workers.workerPath):e.workers.workerPath=(0,p.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");let t=w.A.workers.loaderConfig,r=function(e){let t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]});return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:{fullVersion:_.ol}})}());x=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(x)try{e=new Worker(x,{name:"esri-worker-"+S++})}catch{P().warn(L,N),e=new C}else P().warn(L,N),e=new C;return M(e)}async function M(e){return new Promise(t=>{function r(n){let o=(0,m.VI)(n);o&&o.type===E&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),P().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let S=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:U,RESPONSE:q}=m.Go;class R{static async create(e){let t=await O();return new R(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){let{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{let o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){let t=(0,m.VI)(e);if(t)switch(t.type){case U:this._onOpenedMessage(t);break;case q:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){let t,{methodName:r,jobId:s,data:n,abortable:o}=e,i=o?new AbortController:null,l=this._inJobs,u=g[r];try{if("function"!=typeof u)throw TypeError(`${r} is not a function`);t=u.call(null,n,{signal:i?i.signal:null})}catch(e){return void this._post({type:q,jobId:s,error:(0,m.mF)(e)})}(0,a.$X)(t)?(l.set(s,{controller:i,promise:t}),t.then(e=>{l.has(s)&&(l.delete(s),this._post({type:q,jobId:s},e))},e=>{l.has(s)&&(l.delete(s),e||={message:"Error encountered at method"+r},(0,a.zf)(e)||this._post({type:q,jobId:s,error:(0,m.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:q,jobId:s},t)}_onOpenedMessage(e){let{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const H=[],$=new Map;let W=function(){let e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function V(e,t={},r){let s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,u.k)(n,s),s}async function F(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");let l=(0,i.tE)($,e,()=>new K(e));return"local"===r?async function({modulePath:e},t){let r=await c.default.loadWorker(e);r||=await(import(e)),(0,a.Te)(t.signal);let s=t.client||r;return await V([c.default.connect(r,t.schedule)],{...t,client:s})}(l,t):async function(e,t){await async function(){if(T)return T;z=new AbortController;let e=[];for(let t=0;t<W;t++){let r=R.create(t).then(e=>(H[t]=e,e));e.push(r)}return T=Promise.all(e),T}(),(0,a.Te)(t.signal);let r=[];return V(function*(e,t,r,s){let n=new Set;for(let o=0;o<t;o++){let t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield H[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let z,T=null;class K{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){let t,r=Array.from(this._proxyUseCount.keys()),s=D;D=(D+1)%W;for(let n=0;n<r.length;n++){let o=r[(s+n)%r.length];if(e(o)&&(r.length===W&&(t??=o),0===this._getProxyUseCount(o)))return o}if(null!=t)return t;for(let t=0;t<W;t++){let r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),u=r(93637),c=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),p(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var g=r(56507),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function w(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);let t=await(0,g.A)(e,{responseType:"text"});return JSON.parse(t.data)}class b{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){let n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let a=o[1]?`${o[1]}/`:"",l=o[2],u=(0,i.xO)(s),c=n.startsWith("esri/"),d=`${a}${l}.json`,h=u?`${a}${l}_${u}.json`:d,f=c?`${a}messages.en.json`:d,p=c?`${a}messages.${u??"en"}.json`:h,g=[...new Set(c?[p,h,f,d]:[p,f])];for(let[t,s]of g.entries())try{return await w(e(s))}catch(e){if(t===g.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){let{format:s={}}=r;return(0,c.HC)(e,e=>function(e,t,r){let s,n,o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";let i=(0,u.wc)(s,t);if(null==i)return"";let a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):p(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new b(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){let t=i[e];return!0===t?e:t}return null}const l=[],u=new Map;function c(e){for(let t of u.keys())p(e.pattern,t)&&u.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,n.hA)(()=>{let t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function h(e){let t=(0,o.JK)();u.has(e)||u.set(e,async function(e,t){let r=[];for(let s of l)if(p(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}throw r.length?new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));let r=u.get(e);return r&&await g.add(r),r}function f(e){let t=(0,o.lR)(e);return t?a(e)??a(t):null}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{u.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||=Promise.withResolvers()}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>u,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){let t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){let{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function u(e,t){return Object.is(e,-0)&&(e=0),function(e){let t=e||i;if(!o.has(t)){let r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);