@arcgis/core 6.0.0-next.35 → 6.0.0-next.37

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 (188) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{0202eb8c2b2865f99981.js → 00311d1b18d5952a014b.js} +1 -1
  3. package/assets/esri/core/workers/chunks/0b21d0e2e5a91c34a108.js +1 -0
  4. package/assets/esri/core/workers/chunks/{f717005e14a7e9141df7.js → 2050c844b5a29b1df28a.js} +1 -1
  5. package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +1 -0
  6. package/assets/esri/core/workers/chunks/2f9072563194026e320e.js +1 -0
  7. package/assets/esri/core/workers/chunks/{d9a240a3c6bf85124474.js → 342a97974a78007b25e0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +1 -0
  9. package/assets/esri/core/workers/chunks/{4d18b48d4a282a0f341c.js → 427d929dc7f89b0a1ea9.js} +1 -1
  10. package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +1 -0
  11. package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +1 -0
  12. package/assets/esri/core/workers/chunks/592b5db1459c02cf6a0c.js +1 -0
  13. package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +1 -0
  14. package/assets/esri/core/workers/chunks/{379db67f78161ebd5468.js → 7023651ed6398dcf8efb.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{90360c0bd053d3e3fd77.js → 7027a0e7bfabb3bb7fc2.js} +1 -1
  16. package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +1 -0
  17. package/assets/esri/core/workers/chunks/{40c2674dae73f0942751.js → 7d497df6e13162156342.js} +1 -1
  18. package/assets/esri/core/workers/chunks/8a3dfe997712dc2ddead.js +1 -0
  19. package/assets/esri/core/workers/chunks/{81bcc495e6eaf2cf7474.js → 8f82a0a6747f673a2a7e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +1 -0
  21. package/assets/esri/core/workers/chunks/{d3369ffed19f4c264dcd.js → 9ab0735e86cf8932bf9d.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +1 -0
  23. package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +1 -0
  24. package/assets/esri/core/workers/chunks/{796c6195b6bf59dcc9bd.js → b25a05c58b0fd0f6ac60.js} +1 -1
  25. package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +1 -0
  26. package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +1 -0
  27. package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +1 -0
  28. package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +1 -0
  29. package/assets/esri/core/workers/chunks/cf2e5f827cea7d7319ce.js +1 -0
  30. package/assets/esri/core/workers/chunks/dae2036faa28dade2119.js +1 -0
  31. package/assets/esri/core/workers/chunks/{e8fb2ba7b7a4f0916325.js → eed4b90494a54f8b337b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +1 -0
  33. package/chunks/Clouds.glsl.js +7 -11
  34. package/chunks/RibbonLine.glsl.js +158 -84
  35. package/config.js +1 -1
  36. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  37. package/kernel.js +1 -1
  38. package/layers/BaseElevationLayer.js +1 -1
  39. package/layers/ElevationLayer.js +1 -1
  40. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  41. package/layers/IntegratedMeshLayer.d.ts +2 -0
  42. package/layers/IntegratedMeshLayer.js +1 -1
  43. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  44. package/layers/support/ElevationQuery.js +1 -1
  45. package/layers/video/VideoController.js +3 -3
  46. package/layers/video/types.d.ts +12 -0
  47. package/package.json +3 -3
  48. package/support/timeUtils.js +1 -1
  49. package/views/2d/engine/Bitmap.js +1 -1
  50. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  51. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  52. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  53. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  54. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  55. package/views/2d/engine/webgl/Overlay.js +1 -1
  56. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  57. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  58. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  59. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  60. package/views/2d/engine/webgl/collisions/LabelStore.js +1 -1
  61. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  68. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
  72. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
  73. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +1 -1
  74. package/views/2d/engine/webgl/textureUtils.js +1 -1
  75. package/views/2d/layers/LayerView2D.js +1 -1
  76. package/views/2d/webglDeps.js +1 -1
  77. package/views/3d/GroundView3D.js +1 -1
  78. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  79. package/views/3d/analysis/LineOfSight/placementUtils.js +1 -1
  80. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  81. package/views/3d/input/SceneInputManager.js +1 -1
  82. package/views/3d/interactive/Manipulator3D.js +1 -1
  83. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  84. package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
  85. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  86. package/views/3d/layers/I3SMeshView3D.js +1 -1
  87. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  88. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  89. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  90. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  91. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  92. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  93. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  94. package/views/3d/support/engineContent/line.js +1 -1
  95. package/views/3d/support/engineContent/marker.js +1 -1
  96. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  97. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  98. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  99. package/views/3d/support/flow/geometryUtils.js +1 -1
  100. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  101. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  102. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  103. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  104. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  105. package/views/3d/support/gaussianSplatting/GaussianTileBuilder.js +2 -0
  106. package/views/3d/support/gaussianSplatting/formatConstants.js +2 -0
  107. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  108. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  109. package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
  110. package/views/3d/terrain/OverlayRenderer.js +1 -1
  111. package/views/3d/terrain/TerrainRenderer.js +1 -1
  112. package/views/3d/terrain/TerrainSurface.js +1 -1
  113. package/views/3d/terrain/TileCompositor.js +1 -1
  114. package/views/3d/terrain/TileRenderer.js +1 -1
  115. package/views/3d/webgl/RenderNode.d.ts +1 -1
  116. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  117. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  118. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  119. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
  120. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +15 -11
  121. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  122. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  123. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  124. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  125. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  126. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  127. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  128. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  129. package/views/3d/webgl-engine/lib/AttributeView.js +1 -1
  130. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  131. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  132. package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
  133. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  134. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  135. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  136. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  137. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  138. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  139. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  140. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBufferView.js +1 -1
  141. package/views/3d/webgl-engine/lib/VerticesView.js +2 -0
  142. package/views/3d/webgl-engine/lib/attributeViewUtils.js +1 -1
  143. package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
  144. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  145. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  146. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  147. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  148. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  149. package/views/3d/webgl-engine/materials/internal/lineMarkerBufferUtils.js +2 -0
  150. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +2 -0
  151. package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
  152. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  153. package/views/draw/DrawTool.js +1 -1
  154. package/views/draw/support/ManagedTooltipField.js +1 -1
  155. package/views/support/TextureCompressionHelper.js +1 -1
  156. package/views/support/imageReprojection.js +1 -1
  157. package/views/webgl/FramebufferObject.js +1 -1
  158. package/views/webgl/RenderingContext.js +1 -1
  159. package/views/webgl/Texture.js +1 -1
  160. package/views/webgl/rasterUtils.js +1 -1
  161. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  162. package/views/webgl/textureUtils.js +1 -1
  163. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  164. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  165. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  166. package/widgets/OrientedImageryViewer.js +2 -2
  167. package/widgets/ScaleRangeSlider/types.d.ts +3 -3
  168. package/assets/esri/core/workers/chunks/039d9bc5b5015012f811.js +0 -1
  169. package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +0 -1
  170. package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +0 -1
  171. package/assets/esri/core/workers/chunks/29c610ce1c81ebb84a6b.js +0 -1
  172. package/assets/esri/core/workers/chunks/3223f9fbc76ba9ef8d13.js +0 -1
  173. package/assets/esri/core/workers/chunks/3fdcc383bbd9cf0d274c.js +0 -1
  174. package/assets/esri/core/workers/chunks/46c290108a90518ef695.js +0 -1
  175. package/assets/esri/core/workers/chunks/48b8b57f559a53c6c513.js +0 -1
  176. package/assets/esri/core/workers/chunks/4a979fce1c971b614a18.js +0 -1
  177. package/assets/esri/core/workers/chunks/5bd1414220e42cb8ebcf.js +0 -1
  178. package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +0 -1
  179. package/assets/esri/core/workers/chunks/723df53cfa0189837d01.js +0 -1
  180. package/assets/esri/core/workers/chunks/7400b8c454b47ee4fb3c.js +0 -1
  181. package/assets/esri/core/workers/chunks/7af4edc6e87d27b9d467.js +0 -1
  182. package/assets/esri/core/workers/chunks/990e96139b5a1dccb061.js +0 -1
  183. package/assets/esri/core/workers/chunks/a607541959169741a943.js +0 -1
  184. package/assets/esri/core/workers/chunks/aa779896fd9e5c341349.js +0 -1
  185. package/assets/esri/core/workers/chunks/c131e0dd180a4c10e12e.js +0 -1
  186. package/assets/esri/core/workers/chunks/f3b4159c0722df8ffe13.js +0 -1
  187. package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +0 -1
  188. package/views/3d/webgl-engine/lib/GaussianSplatPrepassDepthRenderer.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3642],{69540(e,t,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},l=new Map;for(let t in i){let o=i[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,s.TU)(h,e),null!=h&&null==d)continue;0===a?l.set(t,d):r[t]=d}let u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>m,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=i(32198),r=i(69622),s=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))}async function h(e,t,i){return(await(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>I,Bw:()=>s,C:()=>o,Cc:()=>F,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>w,Qr:()=>d,Re:()=>u,S8:()=>v,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>P,ei:()=>A,fw:()=>z,gL:()=>C,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>h,m3:()=>b,oW:()=>D,t2:()=>R,tn:()=>c,ze:()=>S});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function M(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function b(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function F(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function C(e,t,i){return z(e,t,i[0],i[1],i[2],i[3])}function z(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,m=r*u-i*d,f=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*m,e[2]=l+d*p+2*f,e}const B=(0,n.vt)(),E=(0,n.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function D(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,q=h,N=d,Z=_,j=M,L=s,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){v(B,e),v(E,t);let i=w(B,E);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(e,t,i){return e[0]=t[0]+i[12],e[1]=t[1]+i[13],e[2]=t[2]+i[14],e},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:I,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:D,dist:Z,distance:_,div:N,divide:d,dot:w,equals:P,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:x,len:L,length:s,lerp:F,max:p,min:f,mul:q,multiply:h,negate:S,normalize:v,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/L(e))},set:a,sign:m,sqrDist:j,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:C,transformQuatValues:z},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,L,"jb",0,O,"lo",0,j,"uE",0,k])},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),x.prune(),v.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(M(e,i))for(S.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;M(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):S.push(s))}i=S.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!M(e,t))return!1;for(S.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(M(e,s)){if(t.leaf||_(e,s))return!0;S.push(r)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(v.clear(),w.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(v.push(i),w.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);b(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);v.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=f(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),d(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,v,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(x.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else x.pushArray(i.children);i=x.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function M(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const S=new s.A,x=new s.A,v=new s.A,w=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var n=i(44208),r=i(34275);function s(e){if(!e)return 0;let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let i=c;for(let n=0;n<t;n++)i+=a(e[n]);return i}(e);let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):d;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,t):0:0}function h(e,t){return c+e.length*t}const d=32,c=16,m=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,f=145;i.d(t,["JY",0,m])},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>u});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,m)}function u(e,t,i={}){return h(e,t,i,f)}function h(e,t,i={},n){let r=null,o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return r}function d(e,t,i,o={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,s.xt)(h),i(e)}let m=l(e,(e,i)=>{d(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var n=i(4718),r=i(62788),s=i(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(97770),r=(i(98623),i(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,s="system"){if("unknown"===i)return e;let o=new r.oh((0,n.wj)(s)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),m=i(47610),f=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var n,r=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),m=i(43937);let f=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths")),this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,r.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,r.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,i){i.d(t,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function o(e){let t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>T,C:()=>o,DC:()=>c,Ej:()=>M,Ie:()=>I,Jt:()=>F,Lu:()=>S,Ne:()=>x,RF:()=>d,TF:()=>g,VL:()=>f,aI:()=>C,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>m,is:()=>A,pg:()=>b,uJ:()=>y,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=B){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return w(n,z),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,i,n]){!function(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}(e,t,i,n)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=f(e),i=y(e),n=p(e);return t*t+i*i+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function M(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function S(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function x(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function v(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function I(e){return e?w(e,z):s(z)}function F(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function A(e){return 6===e.length}function C(e,t,i){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const z=[1/0,1/0,1/0,-1/0,-1/0,-1/0],B=[0,0,0,0,0,0];s(),i.d(t,["qv",0,z,"v_",0,B])},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>z,F8:()=>C,J2:()=>I,Yq:()=>T,_m:()=>F,iS:()=>A,wj:()=>B});var n=i(66552),r=i(73444),s=i(98623),o=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},M={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...f},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let e=(0,r.lR)();return(e&&S[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let v=new WeakMap;const w=M["short-date-short-time"];function I(e){return M[e]}function F(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=w){return function(e){let t=v.get(e);if(!t){let i=x(),n=B(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),v.set(e,t)}return t}(t).format(e)}function A(e,t=w){return T(new Date(e),{...t,...u,...l})}function C(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function z(e,t=w){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:x()})}function B(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{v=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>f});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,n.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>m});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(37730);const c=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},71202(e,t,i){i.r(t),i.d(t,{default:()=>b});var n=i(56507),r=i(60999),s=i(49186),o=i(53966),a=i(17676),l=i(60408),u=i(21325),h=i(90708),d=i(83221),c=i(31464),m=i(75752),f=i(85113),p=i(64714),y=i(82832),g=i(95466),_=i(98453),M=i(30524);i(98623);class b{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{let t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};let i=[],[n]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),r=(0,f.BM)(n,{geometryType:e.geometryType}),o=e.fields||r.fields||[],a=null==e.hasZ?r.hasZ:e.hasZ,l=r.geometryType,h=!l,c=e.objectIdField||r.objectIdFieldName||"__OBJECTID",b=e.spatialReference||u.KK,S=e.timeInfo;o===r.fields&&r.unknownFields.length>0&&i.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:r.unknownFields}});let x=new g.A(o),v=x.dateFields.length>0,w=x.get(c);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,c=w.name):(w={alias:c,name:c,type:"string"===r.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));let I={};for(let e of o){if(e.name??=e.alias,e.alias??=e.name,!e.name)throw new s.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.m.jsonValues.includes(e.type))throw new s.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){let t=(0,M.lD)(e);void 0!==t&&(I[e.name]=t)}e.length??=(0,M._b)(e)}if(S){if(S.startTimeField){let e=x.get(S.startTimeField);e?(S.startTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.startTimeField=null}if(S.endTimeField){let e=x.get(S.endTimeField);e?(S.endTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.endTimeField=null}if(S.trackIdField){let e=x.get(S.trackIdField);e?S.trackIdField=e.name:(S.trackIdField=null,i.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}!S.startTimeField&&!S.endTimeField&&(i.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}let F=l?(0,p.F0)(l):void 0,T=v?{timeZoneIANA:"UTC"}:null,A={warnings:i,featureErrors:[],layerDefinition:{...h?y.Xn:y.CI,drawingInfo:F??void 0,templates:(0,p.e2)(I),extent:void 0,geometryType:l,objectIdField:c,fields:o,hasZ:!!a,timeInfo:S,dateFieldsTimeReference:T}};this._featureIdInfo={type:"object-id",fieldName:c},this._queryEngine=new m.do({fieldsIndex:g.A.fromLayerJSON({fields:o,timeInfo:S,dateFieldsTimeReference:T}),geometryType:l,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:b,timeInfo:S,featureStore:new d.A({geometryType:l,hasM:!1,hasZ:a})});let C=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);C>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(C,1),this._createDefaultAttributes=(0,p.Vx)(I,c);let z=this._createFeatures(n);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,z);let B=this._normalizeFeatures(z,A.featureErrors);this._queryEngine.featureStore.addMany(B);let{fullExtent:E,timeExtent:R}=await this._queryEngine.fetchRecomputedExtents();if(A.layerDefinition.extent=E,R){let{start:e,end:t}=R;A.layerDefinition.timeInfo.timeExtent=[e,t]}return A}async applyEdits(e){let{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,y.$1)(t,i),(0,c.Nk)(e.adds,t),(0,c.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);let t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,a.zf)(e)||o.A.getLogger("esri.layers.GeoJSONLayer").error(new s.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();let{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}_createFeatures(e){if(null==e)return[];let{geometryType:t,hasZ:i}=this._queryEngine,n=this._featureIdInfo.fieldName,r=(0,f.bd)(e,{geometryType:t,hasZ:i,objectIdField:n});if(!(0,u.aI)(this._queryEngine.spatialReference,u.KK))for(let e of r)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,c.Cv)((0,h.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),u.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){let{url:t,customParameters:i}=this._loadOptions,r=(await(0,n.A)(t??"",{responseType:"json",query:{...i},signal:e})).data;return(0,f.sO)(r),r}_normalizeFeatures(e,t){let{fieldsIndex:i}=this._queryEngine,n=[],r=this._featureIdInfo.fieldName;for(let s of e){let e=this._createDefaultAttributes(),o=(0,y.MB)(i,e,s.attributes,!0);o?t?.push(o):(this._assignObjectId(e,s.attributes,!0),s.attributes=e,s.objectId=e[r],n.push(s))}return n}async _applyEdits(e){let{adds:t,updates:i,deletes:n}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),i?.length&&this._applyUpdateEdits(r,i),n?.length){for(let e of n)r.deleteResults.push((0,y.bP)(e));this._queryEngine.featureStore.removeManyById(n)}let{fullExtent:s,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:s,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){let{addResults:i}=e,{geometryType:n,hasM:r,hasZ:s,spatialReference:o,featureStore:a,fieldsIndex:u}=this._queryEngine,d=this._featureIdInfo.fieldName,m=[];for(let r of t){if(r.geometry&&n!==(0,l.$B)(r.geometry)){i.push((0,y.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),s=(0,y.MB)(u,t,r.attributes);if(s)i.push(s);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){let t=r.attributes[d];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){let e=r.geometry.spatialReference??o;r.geometry=(0,c.Cv)((0,y.CR)(r.geometry,e),e,o)}m.push(r),i.push((0,y.bP)(r.attributes[d]))}}a.addMany((0,h.Di)([],m,n,s,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:s,featureStore:o,fieldsIndex:a}=this._queryEngine,u=this._featureIdInfo.fieldName;for(let d of t){let{attributes:t,geometry:m}=d,f=t?.[u];if(null==f){e.push((0,y.Yx)(`Identifier field ${u} missing`));continue}if(!o.has(f)){e.push((0,y.Yx)(`Feature with object id ${f} missing`));continue}let p=(0,h.oN)(o.getFeature(f),i,r,n);if(null!=m){if(i!==(0,l.$B)(m)){e.push((0,y.Yx)("Incorrect geometry type."));continue}let t=m.spatialReference??s;p.geometry=(0,c.Cv)((0,y.CR)(m,t),t,s)}if(t){let i=(0,y.MB)(a,p.attributes,t);if(i){e.push(i);continue}}o.add((0,h.E2)(p,i,r,n,this._featureIdInfo)),e.push((0,y.bP)(f))}}_createObjectIdGenerator(e,t){let i=this._featureIdInfo.fieldName,n=e.fieldsIndex.get(i);if("esriFieldTypeString"===n.type)return()=>n.name+"-"+Date.now().toString(16);let r=-1/0;for(let e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,i=!1){let n=this._featureIdInfo.fieldName;e[n]=i&&n in t?t[n]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,c.Nk)(u.KK,e)}catch{throw new s.A("geojson-layer","Projection not supported")}}}},85113(e,t,i){i.d(t,{BM:()=>I,bd:()=>F,sO:()=>w,xD:()=>d});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),a=i(43334),l=i(92722),u=i(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return h[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function f(e){for(let t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let i=0;i<e.length;i++){let n=e[i],r=e[(i+1)%e.length];t+=n[0]*r[1]-r[0]*n[1]}return t<=0}function y(e){let t=e[0],i=e[e.length-1];(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2])&&e.push(t)}function g(e,t){let{coordinates:i,type:n}=e,r=t.hasZ??!1;switch(n){case"Point":{let e=r||3!==i.length?r&&2===i.length?[...i,0]:[...i]:i.slice(0,2);return new l.A([],e,r,!1)}case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],r,!1);for(let t of"Polygon"===n?[i]:i){_(e,t[0],r);for(let i=1;i<t.length;i++)M(e,t[i],r)}return e}}}function _(e,t,i){y(t),function(e){return!p(e)}(t)?S(e,t,i):b(e,t,i)}function M(e,t,i){y(t),function(e){return p(e)}(t)?S(e,t,i):b(e,t,i)}function b(e,t,i){for(let n of t)x(e,n,i);e.lengths.push(t.length)}function S(e,t,i){for(let n=t.length-1;n>=0;n--)x(e,t[n],i);e.lengths.push(t.length)}function x(e,[t,i,n],r){e.coords.push(t,i),r&&e.coords.push(n||0)}function v(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:i}=e;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function I(e,t={}){let i,n=[],r=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of c(e)){let{geometry:e,properties:c,id:p}=t;if((!e||(h||=d(e.type),d(e.type)===h))&&(o||=f(m(e)),l||(l=null!=p,l&&(i=typeof p,c&&(a=Object.keys(c).filter(e=>c[e]===p)))),c&&a&&l&&null!=p&&(a.length>1?a=a.filter(e=>c[e]===p):1===a.length&&(a=c[a[0]]===p?a:[])),c))for(let e in c){if(r.has(e))continue;let t=v(c[e]);if("unknown"===t){s.add(e);continue}s.delete(e),r.add(e);let i=(0,u.rS)(e);i&&n.push({name:i,alias:e,type:t})}}let p=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(p)for(let e of n)if(e.name===p&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:p,objectIdFieldType:i,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){let{geometryType:i,objectIdField:n}=t;for(let r of e){let{geometry:e,properties:s,id:o}=r;if(e&&d(e.type)!==i)continue;let l,u=s||{};n&&(l=u[n],null!=o&&!l&&(u[n]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(c(e),t))}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const m={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},f={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?m:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?f:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>_,CR:()=>g,MB:()=>f,Yx:()=>h,bP:()=>c});var n=i(67482),r=i(18370),s=i(60408),o=i(21325),a=i(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function f(e,t,i,n=!1){m.clear();for(let r in i){let s=e.get(r);if(!s)continue;let o=p(s,i[r]);if(m.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,a.WA)(e)&&"string"==typeof t?i=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,a.vE)(e)&&"string"==typeof t&&(i=(0,n._)(t)),(0,a.WX)(i)}const y=(0,r.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let i=y.module;if(null==i)throw TypeError("simplify operator not loaded");return i.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const M={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:M},S={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...M,supportedStatisticTypes:M.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};i.d(t,["CI",0,b,"Xn",0,S])},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):d??"UTC":null,m=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,l.ZS)(n.timeReference):d:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),c],[(0,o.NF)(r?.editDateField??""),c],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,a.L);else{let e=f.get((0,o.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1588,6553],{79608(t,e,n){n.d(e,{A:()=>f});var r=n(32198),a=n(69540),i=n(91429);let o=class extends a.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,i.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const u=o;var s=n(69622),c=n(4902),l=n(25482);let h=0,f=class extends((0,l.T)((0,a.OU)((0,c.s)(s.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){let e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,i.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,i.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":u}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,i.$K)("esri.analysis.Analysis")],f)},91715(t,e,n){n.d(e,{xH:()=>i,N1:()=>u}),n(35522);var r=n(51850),a=n(71351);function i(t,e){return o(t)===o(e)}function o(t){if(null==t)return null;let e=null==t.layer?"":t.layer.id,n=null;return n=null==t.objectId?null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid:t.objectId,null==n?null:`o-${e}-${n}`}n(44208),n(58083),n(70328),n(77548),n(6867),n(49718),(0,r.vt)();const u={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,a.vt)(),(0,r.vt)()},80200(t,e,n){n.d(e,{d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3};function a(t,e){let n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,n,r,i,o){return a(function(t,e){return t<<e|t>>>32-e}(a(a(e,t),a(r,o)),i),n)}function o(t,e,n,r,a,o,u){return i(e&n|~e&r,t,e,a,o,u)}function u(t,e,n,r,a,o,u){return i(e&r|n&~r,t,e,a,o,u)}function s(t,e,n,r,a,o,u){return i(e^n^r,t,e,a,o,u)}function c(t,e,n,r,a,o,u){return i(n^(e|~r),t,e,a,o,u)}function l(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,r=-271733879,i=-1732584194,l=271733878;for(let e=0;e<t.length;e+=16){let h=n,f=r,M=i,d=l;n=o(n,r,i,l,t[e],7,-680876936),l=o(l,n,r,i,t[e+1],12,-389564586),i=o(i,l,n,r,t[e+2],17,606105819),r=o(r,i,l,n,t[e+3],22,-1044525330),n=o(n,r,i,l,t[e+4],7,-176418897),l=o(l,n,r,i,t[e+5],12,1200080426),i=o(i,l,n,r,t[e+6],17,-1473231341),r=o(r,i,l,n,t[e+7],22,-45705983),n=o(n,r,i,l,t[e+8],7,1770035416),l=o(l,n,r,i,t[e+9],12,-1958414417),i=o(i,l,n,r,t[e+10],17,-42063),r=o(r,i,l,n,t[e+11],22,-1990404162),n=o(n,r,i,l,t[e+12],7,1804603682),l=o(l,n,r,i,t[e+13],12,-40341101),i=o(i,l,n,r,t[e+14],17,-1502002290),r=o(r,i,l,n,t[e+15],22,1236535329),n=u(n,r,i,l,t[e+1],5,-165796510),l=u(l,n,r,i,t[e+6],9,-1069501632),i=u(i,l,n,r,t[e+11],14,643717713),r=u(r,i,l,n,t[e],20,-373897302),n=u(n,r,i,l,t[e+5],5,-701558691),l=u(l,n,r,i,t[e+10],9,38016083),i=u(i,l,n,r,t[e+15],14,-660478335),r=u(r,i,l,n,t[e+4],20,-405537848),n=u(n,r,i,l,t[e+9],5,568446438),l=u(l,n,r,i,t[e+14],9,-1019803690),i=u(i,l,n,r,t[e+3],14,-187363961),r=u(r,i,l,n,t[e+8],20,1163531501),n=u(n,r,i,l,t[e+13],5,-1444681467),l=u(l,n,r,i,t[e+2],9,-51403784),i=u(i,l,n,r,t[e+7],14,1735328473),r=u(r,i,l,n,t[e+12],20,-1926607734),n=s(n,r,i,l,t[e+5],4,-378558),l=s(l,n,r,i,t[e+8],11,-2022574463),i=s(i,l,n,r,t[e+11],16,1839030562),r=s(r,i,l,n,t[e+14],23,-35309556),n=s(n,r,i,l,t[e+1],4,-1530992060),l=s(l,n,r,i,t[e+4],11,1272893353),i=s(i,l,n,r,t[e+7],16,-155497632),r=s(r,i,l,n,t[e+10],23,-1094730640),n=s(n,r,i,l,t[e+13],4,681279174),l=s(l,n,r,i,t[e],11,-358537222),i=s(i,l,n,r,t[e+3],16,-722521979),r=s(r,i,l,n,t[e+6],23,76029189),n=s(n,r,i,l,t[e+9],4,-640364487),l=s(l,n,r,i,t[e+12],11,-421815835),i=s(i,l,n,r,t[e+15],16,530742520),r=s(r,i,l,n,t[e+2],23,-995338651),n=c(n,r,i,l,t[e],6,-198630844),l=c(l,n,r,i,t[e+7],10,1126891415),i=c(i,l,n,r,t[e+14],15,-1416354905),r=c(r,i,l,n,t[e+5],21,-57434055),n=c(n,r,i,l,t[e+12],6,1700485571),l=c(l,n,r,i,t[e+3],10,-1894986606),i=c(i,l,n,r,t[e+10],15,-1051523),r=c(r,i,l,n,t[e+1],21,-2054922799),n=c(n,r,i,l,t[e+8],6,1873313359),l=c(l,n,r,i,t[e+15],10,-30611744),i=c(i,l,n,r,t[e+6],15,-1560198380),r=c(r,i,l,n,t[e+13],21,1309151649),n=c(n,r,i,l,t[e+4],6,-145523070),l=c(l,n,r,i,t[e+11],10,-1120210379),i=c(i,l,n,r,t[e+2],15,718787259),r=c(r,i,l,n,t[e+9],21,-343485551),n=a(n,h),r=a(r,f),i=a(i,M),l=a(l,d)}return[n,r,i,l]}function h(t,e=r.Hex){let n=e||r.Base64,a=l(function(t){let e=[];for(let n=0,r=8*t.length;n<r;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case r.Raw:return a;case r.Hex:return function(t){let e="0123456789abcdef",n=[];for(let r=0,a=4*t.length;r<a;r++)n.push(e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15));return n.join("")}(a);case r.String:return function(t){let e=[];for(let n=0,r=32*t.length;n<r;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(a);case r.Base64:return function(t){let e=[];for(let n=0,r=4*t.length;n<r;n+=3){let r=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let a=0;a<4;a++)8*n+6*a>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-a)&63))}return e.join("")}(a)}}n.d(e,["T",0,r])},4341(t,e,n){n.d(e,{I:()=>a});var r=n(26390);class a{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},87024(t,e,n){n.d(e,{P:()=>M});var r=n(49186),a=n(80200),i=n(76553),o=n(84952),u=n(13069),s=n(96156),c=n(35666),l=n(10107),h=n(85648),f=n(97159);function M(t){let e=t?.origins??[void 0];return(n,r)=>{let a=function(t,e,n){if("resource"===t?.type)return function(t,e,n){let r=(0,s.z4)(e,n);return{type:String,read:(t,e,n)=>{let a=(0,f.r)(t,e,n);return r.type===String?a:"function"==typeof r.type?new r.type({url:a}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(e,a,u,s){if(!s?.resources)return"string"==typeof e?void(a[u]=(0,f.t)(e,s)):void(a[u]=e.write({},s));let l=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),M=(0,f.t)(l,{...s,verifyItemRelativeUrls:s?.verifyItemRelativeUrls?{writtenUrls:s.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=r.type!==String&&(!(0,i.H)(this)||s?.origin&&this.originIdOf(n)>(0,c.aB)(s.origin)),b={object:this,propertyName:n,value:e,targetUrl:M,dest:a,targetPropertyName:u,context:s,params:t};s?.portalItem&&M&&!(0,o.oP)(M)?g&&t?.contentAddressed?d(b):g?function(t){let{context:e,targetUrl:n,params:r,value:a,dest:i,targetPropertyName:u}=t;if(!e.portalItem)return;let s=e.portalItem.resourceFromPath(n),c=p(a,n,e),l=(0,h.n)(c),f=(0,o.Zo)(s.path),M=r?.compress??!1;l===f?(e.resources&&m({...t,resource:s,content:c,compress:M,updates:e.resources.toUpdate}),i[u]=n):d(t)}(b):function({context:t,targetUrl:e,dest:n,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[r]=e)}(b):s?.portalItem&&(null==M||null!=(0,f.i)(M)||(0,o.w8)(M)||g)?d(b):a[u]=M}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:t,write:e}=f.b;return{read:t,write:e}}}}(t,n,r);for(let t of e){let e=(0,l.rM)(n,t,r);for(let t in a)e[t]=a[t]}}}function d(t){let{targetUrl:e,params:n,value:i,context:s,dest:c,targetPropertyName:l}=t;if(!s.portalItem)return;let M=(0,f.p)(e),d=p(i,e,s);if(n?.contentAddressed&&"json"!==d.type)return void s.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${l}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));let g=n?.contentAddressed&&"json"===d.type?(0,a.d)(d.jsonString):M?.filename??(0,u.lk)(),b=n?.prefix??M?.prefix,y=(0,o.fj)(b,g),v=`${y}.${(0,h.n)(d)}`;if(n?.contentAddressed&&s.resources&&"json"===d.type){let t=s.resources.toKeep.find(({resource:t})=>t.path===v)??s.resources.toAdd.find(({resource:t})=>t.path===v);if(t)return void(c[l]=t.resource.itemRelativeUrl)}let _=s.portalItem.resourceFromPath(v);(0,o.w8)(e)&&s.resources&&s.resources.pendingOperations.push((0,o.tk)(e).then(t=>{_.path=`${y}.${(0,h.n)({type:"blob",blob:t})}`,c[l]=_.itemRelativeUrl}).catch(()=>{}));let x=n?.compress??!1;s.resources&&m({...t,resource:_,content:d,compress:x,updates:s.resources.toAdd}),c[l]=_.itemRelativeUrl}function m({object:t,propertyName:e,updates:n,resource:r,content:a,compress:i}){n.push({resource:r,content:a,compress:i,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function p(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},62885(t,e,n){n.d(e,{H:()=>i,V:()=>a});var r=n(7762);function a(t,e,n=r.A){return e||=new n,e===t||e.destroyed||(e.removeAll(),(a=t)&&(Array.isArray(a)||"items"in a&&Array.isArray(a.items))?e.addMany(t):t&&e.add(t)),e;var a}function i(t){return t}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(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:()=>a,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,e,n,r,a,i,o,u,s,c,l,h,f,M,d,m){return[t,e,n,r,a,i,o,u,s,c,l,h,f,M,d,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},82534(t,e,n){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>a,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function a(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(-1,-1)}function s(){return i(1,0)}function c(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>a,vt:()=>r});const l=o(),h=u(),f=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:M,ZEROS:[0,0],clone:a,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:u,ones:o,unitX:s,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,h,"Un",0,l])},91829(t,e,n){function r(){return[0,0,0,0]}function a(t,e,n,r){return[t,e,n,r]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function u(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>a,vt:()=>r});const l=[0,0,0,0],h=i(),f=o(),M=u(),d=s(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:f,UNIT_Y:M,UNIT_Z:d,ZEROS:l,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:a,ones:i,unitW:c,unitX:o,unitY:u,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,l])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>S,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>y,O7:()=>q,Qw:()=>c,Tl:()=>f,X_:()=>I,e$:()=>d,eL:()=>m,hM:()=>b,hZ:()=>o,hs:()=>M,kN:()=>p,l:()=>w,lw:()=>h,mg:()=>s,o1:()=>j,sC:()=>x,t2:()=>P,t5:()=>A,tZ:()=>R,ut:()=>C});var r=n(51850),a=n(34304);function i(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,a,i,o,u,s,c,l,h,f,M,d,m,p){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=M,t[13]=d,t[14]=m,t[15]=p,t}function u(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 s(t,e){if(t===e){let n=e[1],r=e[2],a=e[3],i=e[6],o=e[7],u=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]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=u}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 c(t,e){return l(t,e)||u(t),t}function l(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],M=e[11],d=e[12],m=e[13],p=e[14],g=e[15],b=n*u-r*o,y=n*s-a*o,v=n*c-i*o,_=r*s-a*u,x=r*c-i*u,I=a*c-i*s,w=l*m-h*d,j=l*p-f*d,q=l*g-M*d,S=h*p-f*m,A=h*g-M*m,O=f*g-M*p,P=b*O-y*A+v*S+_*q-x*j+I*w;return P?(P=1/P,t[0]=(u*O-s*A+c*S)*P,t[1]=(a*A-r*O-i*S)*P,t[2]=(m*I-p*x+g*_)*P,t[3]=(f*x-h*I-M*_)*P,t[4]=(s*q-o*O-c*j)*P,t[5]=(n*O-a*q+i*j)*P,t[6]=(p*v-d*I-g*y)*P,t[7]=(l*I-f*v+M*y)*P,t[8]=(o*A-u*q+c*w)*P,t[9]=(r*q-n*A-i*w)*P,t[10]=(d*x-m*v+g*b)*P,t[11]=(h*v-l*x-M*b)*P,t[12]=(u*j-o*S-s*w)*P,t[13]=(n*S-r*j+a*w)*P,t[14]=(m*y-d*_-p*b)*P,t[15]=(l*_-h*y+f*b)*P,t):null}function h(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],l=e[7],h=e[8],f=e[9],M=e[10],d=e[11],m=e[12],p=e[13],g=e[14],b=e[15],y=n[0],v=n[1],_=n[2],x=n[3];return t[0]=y*r+v*u+_*h+x*m,t[1]=y*a+v*s+_*f+x*p,t[2]=y*i+v*c+_*M+x*g,t[3]=y*o+v*l+_*d+x*b,y=n[4],v=n[5],_=n[6],x=n[7],t[4]=y*r+v*u+_*h+x*m,t[5]=y*a+v*s+_*f+x*p,t[6]=y*i+v*c+_*M+x*g,t[7]=y*o+v*l+_*d+x*b,y=n[8],v=n[9],_=n[10],x=n[11],t[8]=y*r+v*u+_*h+x*m,t[9]=y*a+v*s+_*f+x*p,t[10]=y*i+v*c+_*M+x*g,t[11]=y*o+v*l+_*d+x*b,y=n[12],v=n[13],_=n[14],x=n[15],t[12]=y*r+v*u+_*h+x*m,t[13]=y*a+v*s+_*f+x*p,t[14]=y*i+v*c+_*M+x*g,t[15]=y*o+v*l+_*d+x*b,t}function f(t,e,n){let r=n[0],a=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*a+e[8]*i+e[12],t[13]=e[1]*r+e[5]*a+e[9]*i+e[13],t[14]=e[2]*r+e[6]*a+e[10]*i+e[14],t[15]=e[3]*r+e[7]*a+e[11]*i+e[15];else{let n=e[0],o=e[1],u=e[2],s=e[3],c=e[4],l=e[5],h=e[6],f=e[7],M=e[8],d=e[9],m=e[10],p=e[11];t[0]=n,t[1]=o,t[2]=u,t[3]=s,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=M,t[9]=d,t[10]=m,t[11]=p,t[12]=n*r+c*a+M*i+e[12],t[13]=o*r+l*a+d*i+e[13],t[14]=u*r+h*a+m*i+e[14],t[15]=s*r+f*a+p*i+e[15]}return t}function M(t,e,n){let r=n[0],a=n[1],i=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]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],u=r[1],s=r[2],c=Math.sqrt(o*o+u*u+s*s);if(c<=(0,a.FD)())return void i(t,e);c=1/c,o*=c,u*=c,s*=c;let l=Math.sin(n),h=Math.cos(n),f=1-h,M=e[0],d=e[1],m=e[2],p=e[3],g=e[4],b=e[5],y=e[6],v=e[7],_=e[8],x=e[9],I=e[10],w=e[11],j=o*o*f+h,q=u*o*f+s*l,S=s*o*f-u*l,A=o*u*f-s*l,O=u*u*f+h,P=s*u*f+o*l,C=o*s*f+u*l,R=u*s*f-o*l,T=s*s*f+h;t[0]=M*j+g*q+_*S,t[1]=d*j+b*q+x*S,t[2]=m*j+y*q+I*S,t[3]=p*j+v*q+w*S,t[4]=M*A+g*O+_*P,t[5]=d*A+b*O+x*P,t[6]=m*A+y*O+I*P,t[7]=p*A+v*O+w*P,t[8]=M*C+g*R+_*T,t[9]=d*C+b*R+x*T,t[10]=m*C+y*R+I*T,t[11]=p*C+v*R+w*T,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),a=Math.cos(n),i=e[4],o=e[5],u=e[6],s=e[7],c=e[8],l=e[9],h=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]=i*a+c*r,t[5]=o*a+l*r,t[6]=u*a+h*r,t[7]=s*a+f*r,t[8]=c*a-i*r,t[9]=l*a-o*r,t[10]=h*a-u*r,t[11]=f*a-s*r,t}function p(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 g(t,e,n){if(0===e)return u(t);let r=n[0],i=n[1],o=n[2],s=Math.sqrt(r*r+i*i+o*o);if(s<=(0,a.FD)())return null;s=1/s,r*=s,i*=s,o*=s;let c=Math.sin(e),l=Math.cos(e),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+o*c,t[2]=o*r*h-i*c,t[3]=0,t[4]=r*i*h-o*c,t[5]=i*i*h+l,t[6]=o*i*h+r*c,t[7]=0,t[8]=r*o*h+i*c,t[9]=i*o*h-r*c,t[10]=o*o*h+l,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]=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 y(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 v(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=r+r,s=a+a,c=i+i,l=r*u,h=r*s,f=r*c,M=a*s,d=a*c,m=i*c,p=o*u,g=o*s,b=o*c;return t[0]=1-(M+m),t[1]=h+b,t[2]=f-g,t[3]=0,t[4]=h-b,t[5]=1-(l+m),t[6]=d+p,t[7]=0,t[8]=f+g,t[9]=d-p,t[10]=1-(l+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const _=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function I(t,e){let n=e[0],r=e[1],a=e[2],i=e[4],o=e[5],u=e[6],s=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+a*a),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(s*s+c*c+l*l),t}function w(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 j(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=e[3],s=a+a,c=i+i,l=o+o,h=a*s,f=a*c,M=a*l,d=i*c,m=i*l,p=o*l,g=u*s,b=u*c,y=u*l,v=r[0],_=r[1],x=r[2];return t[0]=(1-(d+p))*v,t[1]=(f+y)*v,t[2]=(M-b)*v,t[3]=0,t[4]=(f-y)*_,t[5]=(1-(h+p))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(M+b)*x,t[9]=(m-g)*x,t[10]=(1-(h+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function q(t,e,n,r,a){let i=e[0],o=e[1],u=e[2],s=e[3],c=i+i,l=o+o,h=u+u,f=i*c,M=i*l,d=i*h,m=o*l,p=o*h,g=u*h,b=s*c,y=s*l,v=s*h,_=r[0],x=r[1],I=r[2],w=a[0],j=a[1],q=a[2],S=(1-(m+g))*_,A=(M+v)*_,O=(d-y)*_,P=(M-v)*x,C=(1-(f+g))*x,R=(p+b)*x,T=(d+y)*I,D=(p-b)*I,N=(1-(f+m))*I;return t[0]=S,t[1]=A,t[2]=O,t[3]=0,t[4]=P,t[5]=C,t[6]=R,t[7]=0,t[8]=T,t[9]=D,t[10]=N,t[11]=0,t[12]=n[0]+w-(S*w+P*j+T*q),t[13]=n[1]+j-(A*w+C*j+D*q),t[14]=n[2]+q-(O*w+R*j+N*q),t[15]=1,t}function S(t,e,n,r,a,i,o){let u=1/(n-e),s=1/(a-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*s,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(a+r)*s,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function A(t,e,n,r){let i=e[0],o=e[1],s=e[2],c=i-n[0],l=o-n[1],h=s-n[2],f=(0,a.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void u(t);let M=1/Math.sqrt(c*c+l*l+h*h);c*=M,l*=M,h*=M;let d=r[0],m=r[1],p=r[2],g=m*h-p*l,b=p*c-d*h,y=d*l-m*c;M=Math.sqrt(g*g+b*b+y*y),M?(M=1/M,g*=M,b*=M,y*=M):(g=0,b=0,y=0);let v=l*y-h*b,_=h*g-c*y,x=c*b-l*g;M=Math.sqrt(v*v+_*_+x*x),M?(M=1/M,v*=M,_*=M,x*=M):(v=0,_=0,x=0),t[0]=g,t[1]=v,t[2]=c,t[3]=0,t[4]=b,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=x,t[10]=h,t[11]=0,t[12]=-(g*i+b*o+y*s),t[13]=-(v*i+_*o+x*s),t[14]=-(c*i+l*o+h*s),t[15]=1}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[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 P(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 C(t){let e=(0,a.FD)(),n=t[0],r=t[1],i=t[2],o=t[4],u=t[5],s=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(r*r+u*u+l*l))<=e&&Math.abs(1-(i*i+s*s+h*h))<=e}function R(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 T=h,D=O;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],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],M=e[11],d=e[12],m=e[13],p=e[14],g=e[15];return t[0]=u*(f*g-M*p)-h*(s*g-c*p)+m*(s*M-c*f),t[1]=-(r*(f*g-M*p)-h*(a*g-i*p)+m*(a*M-i*f)),t[2]=r*(s*g-c*p)-u*(a*g-i*p)+m*(a*c-i*s),t[3]=-(r*(s*M-c*f)-u*(a*M-i*f)+h*(a*c-i*s)),t[4]=-(o*(f*g-M*p)-l*(s*g-c*p)+d*(s*M-c*f)),t[5]=n*(f*g-M*p)-l*(a*g-i*p)+d*(a*M-i*f),t[6]=-(n*(s*g-c*p)-o*(a*g-i*p)+d*(a*c-i*s)),t[7]=n*(s*M-c*f)-o*(a*M-i*f)+l*(a*c-i*s),t[8]=o*(h*g-M*m)-l*(u*g-c*m)+d*(u*M-c*h),t[9]=-(n*(h*g-M*m)-l*(r*g-i*m)+d*(r*M-i*h)),t[10]=n*(u*g-c*m)-o*(r*g-i*m)+d*(r*c-i*u),t[11]=-(n*(u*M-c*h)-o*(r*M-i*h)+l*(r*c-i*u)),t[12]=-(o*(h*p-f*m)-l*(u*p-s*m)+d*(u*f-s*h)),t[13]=n*(h*p-f*m)-l*(r*p-a*m)+d*(r*f-a*h),t[14]=-(n*(u*p-s*m)-o*(r*p-a*m)+d*(r*s-a*u)),t[15]=n*(u*f-s*h)-o*(r*f-a*h)+l*(r*s-a*u),t},copy:i,determinant:function(t){let e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8],l=t[9],h=t[10],f=t[11],M=t[12],d=t[13],m=t[14],p=t[15];return(e*o-n*i)*(h*p-f*m)-(e*u-r*i)*(l*p-f*d)+(e*s-a*i)*(l*m-h*d)+(n*u-r*o)*(c*p-f*M)-(n*s-a*o)*(c*m-h*M)+(r*s-a*u)*(c*d-l*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],l=t[7],h=t[8],f=t[9],M=t[10],d=t[11],m=t[12],p=t[13],g=t[14],b=t[15],y=e[0],v=e[1],_=e[2],x=e[3],I=e[4],w=e[5],j=e[6],q=e[7],S=e[8],A=e[9],O=e[10],P=e[11],C=e[12],R=e[13],T=e[14],D=e[15],N=(0,a.FD)();return Math.abs(n-y)<=N*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-v)<=N*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-_)<=N*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=N*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-I)<=N*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-w)<=N*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(c-j)<=N*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-q)<=N*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(h-S)<=N*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(f-A)<=N*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(M-O)<=N*Math.max(1,Math.abs(M),Math.abs(O))&&Math.abs(d-P)<=N*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(m-C)<=N*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(p-R)<=N*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(g-T)<=N*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(b-D)<=N*Math.max(1,Math.abs(b),Math.abs(D))},exactEquals:P,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],a=e[2],i=e[3],o=n+n,u=r+r,s=a+a,c=n*o,l=r*o,h=r*u,f=a*o,M=a*u,d=a*s,m=i*o,p=i*u,g=i*s;return t[0]=1-h-d,t[1]=l+g,t[2]=f-p,t[3]=0,t[4]=l-g,t[5]=1-c-d,t[6]=M+m,t[7]=0,t[8]=f+p,t[9]=M-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=_,r=-e[0],a=-e[1],i=-e[2],o=e[3],u=e[4],s=e[5],c=e[6],l=e[7],h=r*r+a*a+i*i+o*o;return h>0?(n[0]=2*(u*o+l*r+s*i-c*a)/h,n[1]=2*(s*o+l*a+c*r-u*i)/h,n[2]=2*(c*o+l*i+u*a-s*r)/h):(n[0]=2*(u*o+l*r+s*i-c*a),n[1]=2*(s*o+l*a+c*r-u*i),n[2]=2*(c*o+l*i+u*a-s*r)),v(t,e,n),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:j,fromRotationTranslationScaleOrigin:q,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:p,fromXRotation:b,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:y,frustum:S,getRotation:w,getScale:I,getTranslation:x,hasIdentityRotation:R,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:A,mul:T,multiply:h,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,a,i,o){let u=1/(e-n),s=1/(r-a),c=1/(i-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*u,t[13]=(a+r)*s,t[14]=(o+i)*c,t[15]=1,t},perspective:function(t,e,n,r,a){let i,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!=a&&a!==1/0?(i=1/(r-a),t[10]=(a+r)*i,t[14]=2*a*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(a+i);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-u)*s*.5,t[9]=(a-i)*c*.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:d,rotateX:m,rotateY:function(t,e,n){let r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],u=e[2],s=e[3],c=e[8],l=e[9],h=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]=i*a-c*r,t[1]=o*a-l*r,t[2]=u*a-h*r,t[3]=s*a-f*r,t[8]=i*r+c*a,t[9]=o*r+l*a,t[10]=u*r+h*a,t[11]=s*r+f*a,t},rotateZ:function(t,e,n){let r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],u=e[2],s=e[3],c=e[4],l=e[5],h=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]=i*a+c*r,t[1]=o*a+l*r,t[2]=u*a+h*r,t[3]=s*a+f*r,t[4]=c*a-i*r,t[5]=l*a-o*r,t[6]=h*a-u*r,t[7]=f*a-s*r,t},scale:M,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:D,subtract:O,targetTo:function(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=r[0],s=r[1],c=r[2],l=a-n[0],h=i-n[1],f=o-n[2],M=l*l+h*h+f*f;M>0&&(M=1/Math.sqrt(M),l*=M,h*=M,f*=M);let d=s*f-c*h,m=c*l-u*f,p=u*h-s*l;return M=d*d+m*m+p*p,M>0&&(M=1/Math.sqrt(M),d*=M,m*=M,p*=M),t[0]=d,t[1]=m,t[2]=p,t[3]=0,t[4]=h*p-f*m,t[5]=f*d-l*p,t[6]=l*m-h*d,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t},translate:f,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>j,Bw:()=>i,C:()=>o,Cc:()=>q,DI:()=>x,Io:()=>b,Ln:()=>g,Om:()=>w,Qr:()=>h,Re:()=>c,S8:()=>I,T9:()=>m,WQ:()=>s,Z0:()=>S,_S:()=>M,aI:()=>D,ei:()=>A,fw:()=>P,gL:()=>O,hG:()=>y,hZ:()=>u,hs:()=>p,jk:()=>d,lw:()=>l,m3:()=>v,oW:()=>N,t2:()=>T,tn:()=>f,ze:()=>_});var r=n(51850),a=n(34304);function i(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 u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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}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 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 f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,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 p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(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 b(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function v(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function I(t,e=t){let n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function w(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function j(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function q(t,e,n,r){let a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12],t[1]=n[1]*r+n[5]*a+n[9]*i+n[13],t[2]=n[2]*r+n[6]*a+n[10]*i+n[14],t}function A(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function O(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,a,i){let o=e[0],u=e[1],s=e[2],c=r*s-a*u,l=a*o-n*s,h=n*u-r*o,f=r*h-a*l,M=a*c-n*h,d=n*l-r*c,m=2*i;return t[0]=o+c*m+2*f,t[1]=u+l*m+2*M,t[2]=s+h*m+2*d,t}const C=(0,r.vt)(),R=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function D(t,e){if(t===e)return!0;let n=t[0],r=t[1],i=t[2],o=e[0],u=e[1],s=e[2],c=(0,a.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function N(t,e,n){let r=n[0]-e[0],a=n[1]-e[1],i=n[2]-e[2],o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const z=c,F=l,U=h,Z=b,$=y,V=i,E=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:s,angle:function(t,e){I(C,t),I(R,e);let n=w(C,R);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,a,i){let o=1-i,u=o*o,s=i*i,c=u*o,l=3*i*u,h=3*s*o,f=s*i;return t[0]=e[0]*c+n[0]*l+r[0]*h+a[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+a[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+a[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:j,crossAndNormalize:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2],c=a*s-i*u,l=i*o-r*s,h=r*u-a*o,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:N,dist:Z,distance:b,div:U,divide:h,dot:w,equals:D,exactEquals:T,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,a,i){let o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*u+n[0]*s+r[0]*c+a[0]*l,t[1]=e[1]*u+n[1]*s+r[1]*c+a[1]*l,t[2]=e[2]*u+n[2]*s+r[2]*c+a[2]*l,t},inverse:x,len:V,length:i,lerp:q,max:m,min:d,mul:F,multiply:l,negate:_,normalize:I,random:function(t,e=1){let n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[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:p,scaleAndAdd:g,scaleTo:function(t,e){return p(t,t,e/V(t))},set:u,sign:M,sqrDist:$,sqrLen:E,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:z,subtract:c,transformMat3:A,transformMat4:S,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:O,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,V,"jb",0,z,"lo",0,$,"uE",0,E])},78955(t,e,n){n.d(e,{Bw:()=>p,C:()=>a,Cc:()=>v,LI:()=>f,Om:()=>y,S8:()=>b,T9:()=>h,WQ:()=>o,Z0:()=>_,aI:()=>I,hG:()=>m,hZ:()=>i,hs:()=>M,jk:()=>l,m3:()=>g,t2:()=>x});var r=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,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 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 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 c(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]=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 h(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 M(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 d(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+a*a+i*i)}function m(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+a*a+i*i}function p(t){let e=t[0],n=t[1],r=t[2],a=t[3];return Math.sqrt(e*e+n*n+r*r+a*a)}function g(t){let e=t[0],n=t[1],r=t[2],a=t[3];return e*e+n*n+r*r+a*a}function b(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=i*o),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=e[3];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t[3]=u+r*(n[3]-u),t}function _(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,t}function x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function I(t,e){let n=t[0],a=t[1],i=t[2],o=t[3],u=e[0],s=e[1],c=e[2],l=e[3],h=(0,r.FD)();return Math.abs(n-u)<=h*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(a-s)<=h*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}const w=u,j=s,q=c,S=d,A=m,O=p,P=g;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:a,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:d,div:q,divide:c,dot:y,equals:I,exactEquals:x,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:O,length:p,lerp:v,max:h,min:l,mul:j,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:b,random:function(t,e=1){let n,a,i,o,u,s,c=r.Ov;do{n=2*c()-1,a=2*c()-1,u=n*n+a*a}while(u>=1);do{i=2*c()-1,o=2*c()-1,s=i*i+o*o}while(s>=1);let l=Math.sqrt((1-u)/s);return t[0]=e*n,t[1]=e*a,t[2]=e*i*l,t[3]=e*o*l,t},round:f,scale:M,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:i,sqrDist:A,sqrLen:P,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:u,transformMat4:_,transformQuat:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2],c=n[3],l=c*r+u*i-s*a,h=c*a+s*r-o*i,f=c*i+o*a-u*r,M=-o*r-u*a-s*i;return t[0]=l*c+M*-o+h*-s-f*-u,t[1]=h*c+M*-u+f*-o-l*-s,t[2]=f*c+M*-s+l*-u-h*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],a=!1;return function(...i){return a&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(i,r)||(n=t.apply(this,i),e=this,r=i,a=!0),n}}n.d(e,{B:()=>r})},76553(t,e,n){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>r})},4197(t,e,n){n.d(e,{Vj:()=>o,cj:()=>i,jh:()=>a});var r=n(9093);function a(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function i(t){return[...t]}function o(t){let e=(0,r.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>S,C:()=>o,DC:()=>f,Ej:()=>y,Ie:()=>j,Jt:()=>q,Lu:()=>_,Ne:()=>x,RF:()=>h,TF:()=>g,VL:()=>d,aI:()=>O,fA:()=>u,gE:()=>c,gX:()=>b,hZ:()=>w,iT:()=>M,is:()=>A,pg:()=>v,uJ:()=>p,vI:()=>I,vY:()=>s,vt:()=>i,w1:()=>l,yr:()=>m}),n(35522);var r=n(5443),a=(n(19419),n(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let n=0;n<6;n++)t[n]=e[n];return t}function u(t,e,n,r,a,o,u=i()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=o,u}function s(t,e=i()){return function(t,e,n,r=i()){return w(r,P),function(t,e,n=0,r=e.length/3){let a=t[0],i=t[1],o=t[2],u=t[3],s=t[4],c=t[5];for(let t=0;t<r;t++)a=Math.min(a,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),s=Math.max(s,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=a,t[1]=i,t[2]=o,t[3]=u,t[4]=s,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function c(t,e=(0,a.jh)(24)){let[n,r,i,o,u,s]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=s,e[6]=n,e[7]=u,e[8]=i,e[9]=n,e[10]=u,e[11]=s,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=s,e[18]=o,e[19]=u,e[20]=i,e[21]=o,e[22]=u,e[23]=s,e}function l(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e,n=t){n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n[3]=Math.max(t[3],e[3]),n[4]=Math.max(t[4],e[4]),n[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function M(t,[e,n,r]){!function(t,e,n,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],n),t[5]=Math.max(t[5],r)}(t,e,n,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=d(t),n=p(t),r=m(t);return e*e+n*n+r*r}function b(t,e=[0,0,0]){return e[0]=t[0]+d(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+p(t)/2,e}function y(t,e=[0,0,0]){return e[0]=d(t),e[1]=m(t),e[2]=p(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function _(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function x(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function I(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function j(t){return t?w(t,P):i(P)}function q(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function S(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=-1/0,t[3]=r,t[4]=a,t[5]=1/0,t}function A(t){return 6===t.length}function O(t,e,n){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i(),n.d(e,["qv",0,P,"v_",0,C])},71351(t,e,n){n.d(e,{C:()=>l,Cr:()=>h,LV:()=>c,fA:()=>f,vt:()=>u});var r=n(4341),a=(n(77690),n(29242)),i=n(35522),o=n(51850);function u(t){return t?s((0,o.o8)(t.origin),(0,o.o8)(t.direction)):s((0,o.vt)(),(0,o.vt)())}function s(t,e){return{origin:t,direction:e}}function c(t,e){let n=M.get();return n.origin=t,n.direction=e,n}function l(t,e=u()){return f(t.origin,t.direction,e)}function h(t,e,n=u()){return(0,i.C)(n.origin,t),(0,i.Re)(n.direction,e,t),n}function f(t,e,n=u()){return(0,i.C)(n.origin,t),(0,i.C)(n.direction,e),n}n(32114);const M=new r.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,a.vt)()},32114(t,e,n){n.d(e,{Rc:()=>M,rq:()=>h,Km:()=>f}),n(44208);var r=n(26390),a=n(29242),i=n(9093),o=n(82534),u=n(48163),s=n(51850),c=n(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(u.vt)}static createVec3f64(){return new l(s.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(o.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),M=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},85648(t,e,n){n.d(e,{n:()=>a});var r=n(84952);function a(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){let e=(0,r.Zo)(t);return s[e]||o}(t.url)}(t)]||u}const i={},o="text/plain",u=i[o],s={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let t in s)i[s[t]]=t},24212(t,e,n){n.d(e,{$7:()=>s,B:()=>u,M7:()=>h,XF:()=>l,tW:()=>c,w7:()=>o});var r=n(56512),a=n(86211),i=n(16271);function o(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?f:M}(t).mode}(null==t||(t.hasZ??!1),e)}function u(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function s(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function c(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function l(t,e){e&&t.warn(".elevationInfo=",e)}function h(t){return(t?.offset??0)*(0,i.Ao)(t?.unit)}(0,r.B)((t,e,n)=>{if(!t||"decimal-degrees"===e)return 0;let r="unknown"!==e&&e?e:"meters",i=(0,a.mq)(n);return i?(0,a.oU)(t,r,i):0});const f={mode:"absolute-height",offset:0},M={mode:"on-the-ground",offset:null}},49718(t,e,n){n(51850),n(6867).w_},6867(t,e,n){n.d(e,{w_:()=>h});var r=n(58083),a=n(9093),i=n(35522),o=n(51850),u=n(78955),s=n(91829),c=n(71351);class l{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,e,n,r=null,a=null,i=null){this.intersector=t,this._distance=n,this._renderDistance=r,this.target=e,this.drapedLayerOrder=a,this.renderPriority=i}}class h extends l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,i.hs)(M,this.ray.direction,this.distance),(0,i.Bw)(M))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,i.hs)(M,this.ray.direction,this.distance),(0,i.WQ)(t,this.ray.origin,M),!0)}getTransformedNormal(t){return(0,i.C)(d,this.normal),d[3]=0,(0,u.Z0)(d,d,this.transformation),(0,i.C)(t,d),(0,i.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,a.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,e,n,u,s,c,l,h){this._setBase(t,e,n,u,l,h),(0,i.C)(this.normal,s??o.Cb),(0,r.C)(this.transformation,c??a.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,i.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const M=(0,o.vt)(),d=(0,s.vt)()},78553(t,e,n){n.d(e,{D:()=>i,p:()=>a});var r=n(78888);function a(t){let e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function i(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1588,6553],{79608(t,e,n){n.d(e,{A:()=>f});var r=n(32198),a=n(69540),i=n(91429);let o=class extends a.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,i.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const u=o;var s=n(69622),c=n(4902),l=n(25482);let h=0,f=class extends((0,l.T)((0,a.OU)((0,c.s)(s.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){let e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,i.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,i.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":u}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,i.$K)("esri.analysis.Analysis")],f)},91715(t,e,n){n.d(e,{xH:()=>i,N1:()=>u}),n(35522);var r=n(51850),a=n(71351);function i(t,e){return o(t)===o(e)}function o(t){if(null==t)return null;let e=null==t.layer?"":t.layer.id,n=null;return n=null==t.objectId?null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid:t.objectId,null==n?null:`o-${e}-${n}`}n(44208),n(58083),n(70328),n(77548),n(6867),n(49718),(0,r.vt)();const u={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,a.vt)(),(0,r.vt)()},80200(t,e,n){n.d(e,{d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3};function a(t,e){let n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,n,r,i,o){return a(function(t,e){return t<<e|t>>>32-e}(a(a(e,t),a(r,o)),i),n)}function o(t,e,n,r,a,o,u){return i(e&n|~e&r,t,e,a,o,u)}function u(t,e,n,r,a,o,u){return i(e&r|n&~r,t,e,a,o,u)}function s(t,e,n,r,a,o,u){return i(e^n^r,t,e,a,o,u)}function c(t,e,n,r,a,o,u){return i(n^(e|~r),t,e,a,o,u)}function l(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,r=-271733879,i=-1732584194,l=271733878;for(let e=0;e<t.length;e+=16){let h=n,f=r,M=i,d=l;n=o(n,r,i,l,t[e],7,-680876936),l=o(l,n,r,i,t[e+1],12,-389564586),i=o(i,l,n,r,t[e+2],17,606105819),r=o(r,i,l,n,t[e+3],22,-1044525330),n=o(n,r,i,l,t[e+4],7,-176418897),l=o(l,n,r,i,t[e+5],12,1200080426),i=o(i,l,n,r,t[e+6],17,-1473231341),r=o(r,i,l,n,t[e+7],22,-45705983),n=o(n,r,i,l,t[e+8],7,1770035416),l=o(l,n,r,i,t[e+9],12,-1958414417),i=o(i,l,n,r,t[e+10],17,-42063),r=o(r,i,l,n,t[e+11],22,-1990404162),n=o(n,r,i,l,t[e+12],7,1804603682),l=o(l,n,r,i,t[e+13],12,-40341101),i=o(i,l,n,r,t[e+14],17,-1502002290),r=o(r,i,l,n,t[e+15],22,1236535329),n=u(n,r,i,l,t[e+1],5,-165796510),l=u(l,n,r,i,t[e+6],9,-1069501632),i=u(i,l,n,r,t[e+11],14,643717713),r=u(r,i,l,n,t[e],20,-373897302),n=u(n,r,i,l,t[e+5],5,-701558691),l=u(l,n,r,i,t[e+10],9,38016083),i=u(i,l,n,r,t[e+15],14,-660478335),r=u(r,i,l,n,t[e+4],20,-405537848),n=u(n,r,i,l,t[e+9],5,568446438),l=u(l,n,r,i,t[e+14],9,-1019803690),i=u(i,l,n,r,t[e+3],14,-187363961),r=u(r,i,l,n,t[e+8],20,1163531501),n=u(n,r,i,l,t[e+13],5,-1444681467),l=u(l,n,r,i,t[e+2],9,-51403784),i=u(i,l,n,r,t[e+7],14,1735328473),r=u(r,i,l,n,t[e+12],20,-1926607734),n=s(n,r,i,l,t[e+5],4,-378558),l=s(l,n,r,i,t[e+8],11,-2022574463),i=s(i,l,n,r,t[e+11],16,1839030562),r=s(r,i,l,n,t[e+14],23,-35309556),n=s(n,r,i,l,t[e+1],4,-1530992060),l=s(l,n,r,i,t[e+4],11,1272893353),i=s(i,l,n,r,t[e+7],16,-155497632),r=s(r,i,l,n,t[e+10],23,-1094730640),n=s(n,r,i,l,t[e+13],4,681279174),l=s(l,n,r,i,t[e],11,-358537222),i=s(i,l,n,r,t[e+3],16,-722521979),r=s(r,i,l,n,t[e+6],23,76029189),n=s(n,r,i,l,t[e+9],4,-640364487),l=s(l,n,r,i,t[e+12],11,-421815835),i=s(i,l,n,r,t[e+15],16,530742520),r=s(r,i,l,n,t[e+2],23,-995338651),n=c(n,r,i,l,t[e],6,-198630844),l=c(l,n,r,i,t[e+7],10,1126891415),i=c(i,l,n,r,t[e+14],15,-1416354905),r=c(r,i,l,n,t[e+5],21,-57434055),n=c(n,r,i,l,t[e+12],6,1700485571),l=c(l,n,r,i,t[e+3],10,-1894986606),i=c(i,l,n,r,t[e+10],15,-1051523),r=c(r,i,l,n,t[e+1],21,-2054922799),n=c(n,r,i,l,t[e+8],6,1873313359),l=c(l,n,r,i,t[e+15],10,-30611744),i=c(i,l,n,r,t[e+6],15,-1560198380),r=c(r,i,l,n,t[e+13],21,1309151649),n=c(n,r,i,l,t[e+4],6,-145523070),l=c(l,n,r,i,t[e+11],10,-1120210379),i=c(i,l,n,r,t[e+2],15,718787259),r=c(r,i,l,n,t[e+9],21,-343485551),n=a(n,h),r=a(r,f),i=a(i,M),l=a(l,d)}return[n,r,i,l]}function h(t,e=r.Hex){let n=e||r.Base64,a=l(function(t){let e=[];for(let n=0,r=8*t.length;n<r;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case r.Raw:return a;case r.Hex:return function(t){let e="0123456789abcdef",n=[];for(let r=0,a=4*t.length;r<a;r++)n.push(e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15));return n.join("")}(a);case r.String:return function(t){let e=[];for(let n=0,r=32*t.length;n<r;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(a);case r.Base64:return function(t){let e=[];for(let n=0,r=4*t.length;n<r;n+=3){let r=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let a=0;a<4;a++)8*n+6*a>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-a)&63))}return e.join("")}(a)}}n.d(e,["T",0,r])},4341(t,e,n){n.d(e,{I:()=>a});var r=n(26390);class a{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},87024(t,e,n){n.d(e,{P:()=>M});var r=n(49186),a=n(80200),i=n(76553),o=n(84952),u=n(13069),s=n(96156),c=n(35666),l=n(10107),h=n(85648),f=n(97159);function M(t){let e=t?.origins??[void 0];return(n,r)=>{let a=function(t,e,n){if("resource"===t?.type)return function(t,e,n){let r=(0,s.z4)(e,n);return{type:String,read:(t,e,n)=>{let a=(0,f.r)(t,e,n);return r.type===String?a:"function"==typeof r.type?new r.type({url:a}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(e,a,u,s){if(!s?.resources)return"string"==typeof e?void(a[u]=(0,f.t)(e,s)):void(a[u]=e.write({},s));let l=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),M=(0,f.t)(l,{...s,verifyItemRelativeUrls:s?.verifyItemRelativeUrls?{writtenUrls:s.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=r.type!==String&&(!(0,i.H)(this)||s?.origin&&this.originIdOf(n)>(0,c.aB)(s.origin)),b={object:this,propertyName:n,value:e,targetUrl:M,dest:a,targetPropertyName:u,context:s,params:t};s?.portalItem&&M&&!(0,o.oP)(M)?g&&t?.contentAddressed?d(b):g?function(t){let{context:e,targetUrl:n,params:r,value:a,dest:i,targetPropertyName:u}=t;if(!e.portalItem)return;let s=e.portalItem.resourceFromPath(n),c=p(a,n,e),l=(0,h.n)(c),f=(0,o.Zo)(s.path),M=r?.compress??!1;l===f?(e.resources&&m({...t,resource:s,content:c,compress:M,updates:e.resources.toUpdate}),i[u]=n):d(t)}(b):function({context:t,targetUrl:e,dest:n,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[r]=e)}(b):s?.portalItem&&(null==M||null!=(0,f.i)(M)||(0,o.w8)(M)||g)?d(b):a[u]=M}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:t,write:e}=f.b;return{read:t,write:e}}}}(t,n,r);for(let t of e){let e=(0,l.rM)(n,t,r);for(let t in a)e[t]=a[t]}}}function d(t){let{targetUrl:e,params:n,value:i,context:s,dest:c,targetPropertyName:l}=t;if(!s.portalItem)return;let M=(0,f.p)(e),d=p(i,e,s);if(n?.contentAddressed&&"json"!==d.type)return void s.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${l}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));let g=n?.contentAddressed&&"json"===d.type?(0,a.d)(d.jsonString):M?.filename??(0,u.lk)(),b=n?.prefix??M?.prefix,y=(0,o.fj)(b,g),v=`${y}.${(0,h.n)(d)}`;if(n?.contentAddressed&&s.resources&&"json"===d.type){let t=s.resources.toKeep.find(({resource:t})=>t.path===v)??s.resources.toAdd.find(({resource:t})=>t.path===v);if(t)return void(c[l]=t.resource.itemRelativeUrl)}let _=s.portalItem.resourceFromPath(v);(0,o.w8)(e)&&s.resources&&s.resources.pendingOperations.push((0,o.tk)(e).then(t=>{_.path=`${y}.${(0,h.n)({type:"blob",blob:t})}`,c[l]=_.itemRelativeUrl}).catch(()=>{}));let x=n?.compress??!1;s.resources&&m({...t,resource:_,content:d,compress:x,updates:s.resources.toAdd}),c[l]=_.itemRelativeUrl}function m({object:t,propertyName:e,updates:n,resource:r,content:a,compress:i}){n.push({resource:r,content:a,compress:i,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function p(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},62885(t,e,n){n.d(e,{H:()=>i,V:()=>a});var r=n(7762);function a(t,e,n=r.A){return e||=new n,e===t||e.destroyed||(e.removeAll(),(a=t)&&(Array.isArray(a)||"items"in a&&Array.isArray(a.items))?e.addMany(t):t&&e.add(t)),e;var a}function i(t){return t}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(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:()=>a,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,e,n,r,a,i,o,u,s,c,l,h,f,M,d,m){return[t,e,n,r,a,i,o,u,s,c,l,h,f,M,d,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},82534(t,e,n){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>a,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function a(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(-1,-1)}function s(){return i(1,0)}function c(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>a,vt:()=>r});const l=o(),h=u(),f=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:M,ZEROS:[0,0],clone:a,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:u,ones:o,unitX:s,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,h,"Un",0,l])},91829(t,e,n){function r(){return[0,0,0,0]}function a(t,e,n,r){return[t,e,n,r]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function u(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>a,vt:()=>r});const l=[0,0,0,0],h=i(),f=o(),M=u(),d=s(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:f,UNIT_Y:M,UNIT_Z:d,ZEROS:l,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:a,ones:i,unitW:c,unitX:o,unitY:u,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,l])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>S,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>y,O7:()=>q,Qw:()=>c,Tl:()=>f,X_:()=>I,e$:()=>d,eL:()=>m,hM:()=>b,hZ:()=>o,hs:()=>M,kN:()=>p,l:()=>w,lw:()=>h,mg:()=>s,o1:()=>j,sC:()=>x,t2:()=>P,t5:()=>A,tZ:()=>R,ut:()=>C});var r=n(51850),a=n(34304);function i(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,a,i,o,u,s,c,l,h,f,M,d,m,p){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=M,t[13]=d,t[14]=m,t[15]=p,t}function u(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 s(t,e){if(t===e){let n=e[1],r=e[2],a=e[3],i=e[6],o=e[7],u=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]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=u}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 c(t,e){return l(t,e)||u(t),t}function l(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],M=e[11],d=e[12],m=e[13],p=e[14],g=e[15],b=n*u-r*o,y=n*s-a*o,v=n*c-i*o,_=r*s-a*u,x=r*c-i*u,I=a*c-i*s,w=l*m-h*d,j=l*p-f*d,q=l*g-M*d,S=h*p-f*m,A=h*g-M*m,O=f*g-M*p,P=b*O-y*A+v*S+_*q-x*j+I*w;return P?(P=1/P,t[0]=(u*O-s*A+c*S)*P,t[1]=(a*A-r*O-i*S)*P,t[2]=(m*I-p*x+g*_)*P,t[3]=(f*x-h*I-M*_)*P,t[4]=(s*q-o*O-c*j)*P,t[5]=(n*O-a*q+i*j)*P,t[6]=(p*v-d*I-g*y)*P,t[7]=(l*I-f*v+M*y)*P,t[8]=(o*A-u*q+c*w)*P,t[9]=(r*q-n*A-i*w)*P,t[10]=(d*x-m*v+g*b)*P,t[11]=(h*v-l*x-M*b)*P,t[12]=(u*j-o*S-s*w)*P,t[13]=(n*S-r*j+a*w)*P,t[14]=(m*y-d*_-p*b)*P,t[15]=(l*_-h*y+f*b)*P,t):null}function h(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],l=e[7],h=e[8],f=e[9],M=e[10],d=e[11],m=e[12],p=e[13],g=e[14],b=e[15],y=n[0],v=n[1],_=n[2],x=n[3];return t[0]=y*r+v*u+_*h+x*m,t[1]=y*a+v*s+_*f+x*p,t[2]=y*i+v*c+_*M+x*g,t[3]=y*o+v*l+_*d+x*b,y=n[4],v=n[5],_=n[6],x=n[7],t[4]=y*r+v*u+_*h+x*m,t[5]=y*a+v*s+_*f+x*p,t[6]=y*i+v*c+_*M+x*g,t[7]=y*o+v*l+_*d+x*b,y=n[8],v=n[9],_=n[10],x=n[11],t[8]=y*r+v*u+_*h+x*m,t[9]=y*a+v*s+_*f+x*p,t[10]=y*i+v*c+_*M+x*g,t[11]=y*o+v*l+_*d+x*b,y=n[12],v=n[13],_=n[14],x=n[15],t[12]=y*r+v*u+_*h+x*m,t[13]=y*a+v*s+_*f+x*p,t[14]=y*i+v*c+_*M+x*g,t[15]=y*o+v*l+_*d+x*b,t}function f(t,e,n){let r=n[0],a=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*a+e[8]*i+e[12],t[13]=e[1]*r+e[5]*a+e[9]*i+e[13],t[14]=e[2]*r+e[6]*a+e[10]*i+e[14],t[15]=e[3]*r+e[7]*a+e[11]*i+e[15];else{let n=e[0],o=e[1],u=e[2],s=e[3],c=e[4],l=e[5],h=e[6],f=e[7],M=e[8],d=e[9],m=e[10],p=e[11];t[0]=n,t[1]=o,t[2]=u,t[3]=s,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=M,t[9]=d,t[10]=m,t[11]=p,t[12]=n*r+c*a+M*i+e[12],t[13]=o*r+l*a+d*i+e[13],t[14]=u*r+h*a+m*i+e[14],t[15]=s*r+f*a+p*i+e[15]}return t}function M(t,e,n){let r=n[0],a=n[1],i=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]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],u=r[1],s=r[2],c=Math.sqrt(o*o+u*u+s*s);if(c<=(0,a.FD)())return void i(t,e);c=1/c,o*=c,u*=c,s*=c;let l=Math.sin(n),h=Math.cos(n),f=1-h,M=e[0],d=e[1],m=e[2],p=e[3],g=e[4],b=e[5],y=e[6],v=e[7],_=e[8],x=e[9],I=e[10],w=e[11],j=o*o*f+h,q=u*o*f+s*l,S=s*o*f-u*l,A=o*u*f-s*l,O=u*u*f+h,P=s*u*f+o*l,C=o*s*f+u*l,R=u*s*f-o*l,T=s*s*f+h;t[0]=M*j+g*q+_*S,t[1]=d*j+b*q+x*S,t[2]=m*j+y*q+I*S,t[3]=p*j+v*q+w*S,t[4]=M*A+g*O+_*P,t[5]=d*A+b*O+x*P,t[6]=m*A+y*O+I*P,t[7]=p*A+v*O+w*P,t[8]=M*C+g*R+_*T,t[9]=d*C+b*R+x*T,t[10]=m*C+y*R+I*T,t[11]=p*C+v*R+w*T,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),a=Math.cos(n),i=e[4],o=e[5],u=e[6],s=e[7],c=e[8],l=e[9],h=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]=i*a+c*r,t[5]=o*a+l*r,t[6]=u*a+h*r,t[7]=s*a+f*r,t[8]=c*a-i*r,t[9]=l*a-o*r,t[10]=h*a-u*r,t[11]=f*a-s*r,t}function p(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 g(t,e,n){if(0===e)return u(t);let r=n[0],i=n[1],o=n[2],s=Math.sqrt(r*r+i*i+o*o);if(s<=(0,a.FD)())return null;s=1/s,r*=s,i*=s,o*=s;let c=Math.sin(e),l=Math.cos(e),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+o*c,t[2]=o*r*h-i*c,t[3]=0,t[4]=r*i*h-o*c,t[5]=i*i*h+l,t[6]=o*i*h+r*c,t[7]=0,t[8]=r*o*h+i*c,t[9]=i*o*h-r*c,t[10]=o*o*h+l,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]=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 y(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 v(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=r+r,s=a+a,c=i+i,l=r*u,h=r*s,f=r*c,M=a*s,d=a*c,m=i*c,p=o*u,g=o*s,b=o*c;return t[0]=1-(M+m),t[1]=h+b,t[2]=f-g,t[3]=0,t[4]=h-b,t[5]=1-(l+m),t[6]=d+p,t[7]=0,t[8]=f+g,t[9]=d-p,t[10]=1-(l+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const _=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function I(t,e){let n=e[0],r=e[1],a=e[2],i=e[4],o=e[5],u=e[6],s=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+a*a),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(s*s+c*c+l*l),t}function w(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 j(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=e[3],s=a+a,c=i+i,l=o+o,h=a*s,f=a*c,M=a*l,d=i*c,m=i*l,p=o*l,g=u*s,b=u*c,y=u*l,v=r[0],_=r[1],x=r[2];return t[0]=(1-(d+p))*v,t[1]=(f+y)*v,t[2]=(M-b)*v,t[3]=0,t[4]=(f-y)*_,t[5]=(1-(h+p))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(M+b)*x,t[9]=(m-g)*x,t[10]=(1-(h+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function q(t,e,n,r,a){let i=e[0],o=e[1],u=e[2],s=e[3],c=i+i,l=o+o,h=u+u,f=i*c,M=i*l,d=i*h,m=o*l,p=o*h,g=u*h,b=s*c,y=s*l,v=s*h,_=r[0],x=r[1],I=r[2],w=a[0],j=a[1],q=a[2],S=(1-(m+g))*_,A=(M+v)*_,O=(d-y)*_,P=(M-v)*x,C=(1-(f+g))*x,R=(p+b)*x,T=(d+y)*I,D=(p-b)*I,N=(1-(f+m))*I;return t[0]=S,t[1]=A,t[2]=O,t[3]=0,t[4]=P,t[5]=C,t[6]=R,t[7]=0,t[8]=T,t[9]=D,t[10]=N,t[11]=0,t[12]=n[0]+w-(S*w+P*j+T*q),t[13]=n[1]+j-(A*w+C*j+D*q),t[14]=n[2]+q-(O*w+R*j+N*q),t[15]=1,t}function S(t,e,n,r,a,i,o){let u=1/(n-e),s=1/(a-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*s,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(a+r)*s,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function A(t,e,n,r){let i=e[0],o=e[1],s=e[2],c=i-n[0],l=o-n[1],h=s-n[2],f=(0,a.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void u(t);let M=1/Math.sqrt(c*c+l*l+h*h);c*=M,l*=M,h*=M;let d=r[0],m=r[1],p=r[2],g=m*h-p*l,b=p*c-d*h,y=d*l-m*c;M=Math.sqrt(g*g+b*b+y*y),M?(M=1/M,g*=M,b*=M,y*=M):(g=0,b=0,y=0);let v=l*y-h*b,_=h*g-c*y,x=c*b-l*g;M=Math.sqrt(v*v+_*_+x*x),M?(M=1/M,v*=M,_*=M,x*=M):(v=0,_=0,x=0),t[0]=g,t[1]=v,t[2]=c,t[3]=0,t[4]=b,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=x,t[10]=h,t[11]=0,t[12]=-(g*i+b*o+y*s),t[13]=-(v*i+_*o+x*s),t[14]=-(c*i+l*o+h*s),t[15]=1}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[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 P(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 C(t){let e=(0,a.FD)(),n=t[0],r=t[1],i=t[2],o=t[4],u=t[5],s=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(r*r+u*u+l*l))<=e&&Math.abs(1-(i*i+s*s+h*h))<=e}function R(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 T=h,D=O;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],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],M=e[11],d=e[12],m=e[13],p=e[14],g=e[15];return t[0]=u*(f*g-M*p)-h*(s*g-c*p)+m*(s*M-c*f),t[1]=-(r*(f*g-M*p)-h*(a*g-i*p)+m*(a*M-i*f)),t[2]=r*(s*g-c*p)-u*(a*g-i*p)+m*(a*c-i*s),t[3]=-(r*(s*M-c*f)-u*(a*M-i*f)+h*(a*c-i*s)),t[4]=-(o*(f*g-M*p)-l*(s*g-c*p)+d*(s*M-c*f)),t[5]=n*(f*g-M*p)-l*(a*g-i*p)+d*(a*M-i*f),t[6]=-(n*(s*g-c*p)-o*(a*g-i*p)+d*(a*c-i*s)),t[7]=n*(s*M-c*f)-o*(a*M-i*f)+l*(a*c-i*s),t[8]=o*(h*g-M*m)-l*(u*g-c*m)+d*(u*M-c*h),t[9]=-(n*(h*g-M*m)-l*(r*g-i*m)+d*(r*M-i*h)),t[10]=n*(u*g-c*m)-o*(r*g-i*m)+d*(r*c-i*u),t[11]=-(n*(u*M-c*h)-o*(r*M-i*h)+l*(r*c-i*u)),t[12]=-(o*(h*p-f*m)-l*(u*p-s*m)+d*(u*f-s*h)),t[13]=n*(h*p-f*m)-l*(r*p-a*m)+d*(r*f-a*h),t[14]=-(n*(u*p-s*m)-o*(r*p-a*m)+d*(r*s-a*u)),t[15]=n*(u*f-s*h)-o*(r*f-a*h)+l*(r*s-a*u),t},copy:i,determinant:function(t){let e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8],l=t[9],h=t[10],f=t[11],M=t[12],d=t[13],m=t[14],p=t[15];return(e*o-n*i)*(h*p-f*m)-(e*u-r*i)*(l*p-f*d)+(e*s-a*i)*(l*m-h*d)+(n*u-r*o)*(c*p-f*M)-(n*s-a*o)*(c*m-h*M)+(r*s-a*u)*(c*d-l*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],l=t[7],h=t[8],f=t[9],M=t[10],d=t[11],m=t[12],p=t[13],g=t[14],b=t[15],y=e[0],v=e[1],_=e[2],x=e[3],I=e[4],w=e[5],j=e[6],q=e[7],S=e[8],A=e[9],O=e[10],P=e[11],C=e[12],R=e[13],T=e[14],D=e[15],N=(0,a.FD)();return Math.abs(n-y)<=N*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-v)<=N*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-_)<=N*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=N*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-I)<=N*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-w)<=N*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(c-j)<=N*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-q)<=N*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(h-S)<=N*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(f-A)<=N*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(M-O)<=N*Math.max(1,Math.abs(M),Math.abs(O))&&Math.abs(d-P)<=N*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(m-C)<=N*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(p-R)<=N*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(g-T)<=N*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(b-D)<=N*Math.max(1,Math.abs(b),Math.abs(D))},exactEquals:P,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],a=e[2],i=e[3],o=n+n,u=r+r,s=a+a,c=n*o,l=r*o,h=r*u,f=a*o,M=a*u,d=a*s,m=i*o,p=i*u,g=i*s;return t[0]=1-h-d,t[1]=l+g,t[2]=f-p,t[3]=0,t[4]=l-g,t[5]=1-c-d,t[6]=M+m,t[7]=0,t[8]=f+p,t[9]=M-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=_,r=-e[0],a=-e[1],i=-e[2],o=e[3],u=e[4],s=e[5],c=e[6],l=e[7],h=r*r+a*a+i*i+o*o;return h>0?(n[0]=2*(u*o+l*r+s*i-c*a)/h,n[1]=2*(s*o+l*a+c*r-u*i)/h,n[2]=2*(c*o+l*i+u*a-s*r)/h):(n[0]=2*(u*o+l*r+s*i-c*a),n[1]=2*(s*o+l*a+c*r-u*i),n[2]=2*(c*o+l*i+u*a-s*r)),v(t,e,n),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:j,fromRotationTranslationScaleOrigin:q,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:p,fromXRotation:b,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:y,frustum:S,getRotation:w,getScale:I,getTranslation:x,hasIdentityRotation:R,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:A,mul:T,multiply:h,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,a,i,o){let u=1/(e-n),s=1/(r-a),c=1/(i-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*u,t[13]=(a+r)*s,t[14]=(o+i)*c,t[15]=1,t},perspective:function(t,e,n,r,a){let i,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!=a&&a!==1/0?(i=1/(r-a),t[10]=(a+r)*i,t[14]=2*a*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(a+i);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-u)*s*.5,t[9]=(a-i)*c*.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:d,rotateX:m,rotateY:function(t,e,n){let r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],u=e[2],s=e[3],c=e[8],l=e[9],h=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]=i*a-c*r,t[1]=o*a-l*r,t[2]=u*a-h*r,t[3]=s*a-f*r,t[8]=i*r+c*a,t[9]=o*r+l*a,t[10]=u*r+h*a,t[11]=s*r+f*a,t},rotateZ:function(t,e,n){let r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],u=e[2],s=e[3],c=e[4],l=e[5],h=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]=i*a+c*r,t[1]=o*a+l*r,t[2]=u*a+h*r,t[3]=s*a+f*r,t[4]=c*a-i*r,t[5]=l*a-o*r,t[6]=h*a-u*r,t[7]=f*a-s*r,t},scale:M,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:D,subtract:O,targetTo:function(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=r[0],s=r[1],c=r[2],l=a-n[0],h=i-n[1],f=o-n[2],M=l*l+h*h+f*f;M>0&&(M=1/Math.sqrt(M),l*=M,h*=M,f*=M);let d=s*f-c*h,m=c*l-u*f,p=u*h-s*l;return M=d*d+m*m+p*p,M>0&&(M=1/Math.sqrt(M),d*=M,m*=M,p*=M),t[0]=d,t[1]=m,t[2]=p,t[3]=0,t[4]=h*p-f*m,t[5]=f*d-l*p,t[6]=l*m-h*d,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t},translate:f,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>j,Bw:()=>i,C:()=>o,Cc:()=>q,DI:()=>x,Io:()=>b,Ln:()=>g,Om:()=>w,Qr:()=>h,Re:()=>c,S8:()=>I,T9:()=>m,WQ:()=>s,Z0:()=>S,_S:()=>M,aI:()=>D,ei:()=>A,fw:()=>P,gL:()=>O,hG:()=>y,hZ:()=>u,hs:()=>p,jk:()=>d,lw:()=>l,m3:()=>v,oW:()=>N,t2:()=>T,tn:()=>f,ze:()=>_});var r=n(51850),a=n(34304);function i(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 u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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}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 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 f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,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 p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(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 b(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function v(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function I(t,e=t){let n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function w(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function j(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function q(t,e,n,r){let a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12],t[1]=n[1]*r+n[5]*a+n[9]*i+n[13],t[2]=n[2]*r+n[6]*a+n[10]*i+n[14],t}function A(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function O(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,a,i){let o=e[0],u=e[1],s=e[2],c=r*s-a*u,l=a*o-n*s,h=n*u-r*o,f=r*h-a*l,M=a*c-n*h,d=n*l-r*c,m=2*i;return t[0]=o+c*m+2*f,t[1]=u+l*m+2*M,t[2]=s+h*m+2*d,t}const C=(0,r.vt)(),R=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function D(t,e){if(t===e)return!0;let n=t[0],r=t[1],i=t[2],o=e[0],u=e[1],s=e[2],c=(0,a.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function N(t,e,n){let r=n[0]-e[0],a=n[1]-e[1],i=n[2]-e[2],o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const z=c,F=l,U=h,Z=b,$=y,V=i,E=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:s,angle:function(t,e){I(C,t),I(R,e);let n=w(C,R);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,a,i){let o=1-i,u=o*o,s=i*i,c=u*o,l=3*i*u,h=3*s*o,f=s*i;return t[0]=e[0]*c+n[0]*l+r[0]*h+a[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+a[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+a[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:j,crossAndNormalize:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2],c=a*s-i*u,l=i*o-r*s,h=r*u-a*o,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:N,dist:Z,distance:b,div:U,divide:h,dot:w,equals:D,exactEquals:T,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,a,i){let o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*u+n[0]*s+r[0]*c+a[0]*l,t[1]=e[1]*u+n[1]*s+r[1]*c+a[1]*l,t[2]=e[2]*u+n[2]*s+r[2]*c+a[2]*l,t},inverse:x,len:V,length:i,lerp:q,max:m,min:d,mul:F,multiply:l,negate:_,normalize:I,random:function(t,e=1){let n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[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:p,scaleAndAdd:g,scaleTo:function(t,e){return p(t,t,e/V(t))},set:u,sign:M,sqrDist:$,sqrLen:E,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:z,subtract:c,transformMat3:A,transformMat4:S,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:O,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,V,"jb",0,z,"lo",0,$,"uE",0,E])},78955(t,e,n){n.d(e,{Bw:()=>p,C:()=>a,Cc:()=>v,LI:()=>f,Om:()=>y,S8:()=>b,T9:()=>h,WQ:()=>o,Z0:()=>_,aI:()=>I,hG:()=>m,hZ:()=>i,hs:()=>M,jk:()=>l,m3:()=>g,t2:()=>x});var r=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,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 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 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 c(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]=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 h(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 M(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 d(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+a*a+i*i)}function m(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+a*a+i*i}function p(t){let e=t[0],n=t[1],r=t[2],a=t[3];return Math.sqrt(e*e+n*n+r*r+a*a)}function g(t){let e=t[0],n=t[1],r=t[2],a=t[3];return e*e+n*n+r*r+a*a}function b(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=i*o),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,n,r){let a=e[0],i=e[1],o=e[2],u=e[3];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t[3]=u+r*(n[3]-u),t}function _(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,t}function x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function I(t,e){let n=t[0],a=t[1],i=t[2],o=t[3],u=e[0],s=e[1],c=e[2],l=e[3],h=(0,r.FD)();return Math.abs(n-u)<=h*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(a-s)<=h*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}const w=u,j=s,q=c,S=d,A=m,O=p,P=g;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:a,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:d,div:q,divide:c,dot:y,equals:I,exactEquals:x,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:O,length:p,lerp:v,max:h,min:l,mul:j,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:b,random:function(t,e=1){let n,a,i,o,u,s,c=r.Ov;do{n=2*c()-1,a=2*c()-1,u=n*n+a*a}while(u>=1);do{i=2*c()-1,o=2*c()-1,s=i*i+o*o}while(s>=1);let l=Math.sqrt((1-u)/s);return t[0]=e*n,t[1]=e*a,t[2]=e*i*l,t[3]=e*o*l,t},round:f,scale:M,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:i,sqrDist:A,sqrLen:P,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:u,transformMat4:_,transformQuat:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2],c=n[3],l=c*r+u*i-s*a,h=c*a+s*r-o*i,f=c*i+o*a-u*r,M=-o*r-u*a-s*i;return t[0]=l*c+M*-o+h*-s-f*-u,t[1]=h*c+M*-u+f*-o-l*-s,t[2]=f*c+M*-s+l*-u-h*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],a=!1;return function(...i){return a&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(i,r)||(n=t.apply(this,i),e=this,r=i,a=!0),n}}n.d(e,{B:()=>r})},76553(t,e,n){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>r})},4197(t,e,n){n.d(e,{Vj:()=>o,cj:()=>i,jh:()=>a});var r=n(9093);function a(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function i(t){return[...t]}function o(t){let e=(0,r.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>S,C:()=>o,DC:()=>f,Ej:()=>y,Ie:()=>j,Jt:()=>q,Lu:()=>_,Ne:()=>x,RF:()=>h,TF:()=>g,VL:()=>d,aI:()=>O,fA:()=>u,gE:()=>c,gX:()=>b,hZ:()=>w,iT:()=>M,is:()=>A,pg:()=>v,uJ:()=>p,vI:()=>I,vY:()=>s,vt:()=>i,w1:()=>l,yr:()=>m}),n(35522);var r=n(5443),a=(n(19419),n(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let n=0;n<6;n++)t[n]=e[n];return t}function u(t,e,n,r,a,o,u=i()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=o,u}function s(t,e=i()){return function(t,e,n,r=i()){return w(r,P),function(t,e,n=0,r=e.length/3){let a=t[0],i=t[1],o=t[2],u=t[3],s=t[4],c=t[5];for(let t=0;t<r;t++)a=Math.min(a,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),s=Math.max(s,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=a,t[1]=i,t[2]=o,t[3]=u,t[4]=s,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function c(t,e=(0,a.jh)(24)){let[n,r,i,o,u,s]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=s,e[6]=n,e[7]=u,e[8]=i,e[9]=n,e[10]=u,e[11]=s,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=s,e[18]=o,e[19]=u,e[20]=i,e[21]=o,e[22]=u,e[23]=s,e}function l(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e,n=t){n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n[3]=Math.max(t[3],e[3]),n[4]=Math.max(t[4],e[4]),n[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function M(t,[e,n,r]){!function(t,e,n,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],n),t[5]=Math.max(t[5],r)}(t,e,n,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=d(t),n=p(t),r=m(t);return e*e+n*n+r*r}function b(t,e=[0,0,0]){return e[0]=t[0]+d(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+p(t)/2,e}function y(t,e=[0,0,0]){return e[0]=d(t),e[1]=m(t),e[2]=p(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function _(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function x(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function I(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function j(t){return t?w(t,P):i(P)}function q(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function S(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=-1/0,t[3]=r,t[4]=a,t[5]=1/0,t}function A(t){return 6===t.length}function O(t,e,n){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i(),n.d(e,["qv",0,P,"v_",0,C])},71351(t,e,n){n.d(e,{C:()=>l,Cr:()=>h,LV:()=>c,fA:()=>f,vt:()=>u});var r=n(4341),a=(n(77690),n(29242)),i=n(35522),o=n(51850);function u(t){return t?s((0,o.o8)(t.origin),(0,o.o8)(t.direction)):s((0,o.vt)(),(0,o.vt)())}function s(t,e){return{origin:t,direction:e}}function c(t,e){let n=M.get();return n.origin=t,n.direction=e,n}function l(t,e=u()){return f(t.origin,t.direction,e)}function h(t,e,n=u()){return(0,i.C)(n.origin,t),(0,i.Re)(n.direction,e,t),n}function f(t,e,n=u()){return(0,i.C)(n.origin,t),(0,i.C)(n.direction,e),n}n(32114);const M=new r.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,a.vt)()},32114(t,e,n){n.d(e,{Rc:()=>M,rq:()=>h,Km:()=>f}),n(44208);var r=n(26390),a=n(29242),i=n(9093),o=n(82534),u=n(48163),s=n(51850),c=n(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(u.vt)}static createVec3f64(){return new l(s.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(o.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),M=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},85648(t,e,n){n.d(e,{n:()=>a});var r=n(84952);function a(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){let e=(0,r.Zo)(t);return s[e]||o}(t.url)}(t)]||u}const i={},o="text/plain",u=i[o],s={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let t in s)i[s[t]]=t},24212(t,e,n){n.d(e,{$7:()=>s,B:()=>u,M7:()=>h,XF:()=>l,tW:()=>c,w7:()=>o});var r=n(56512),a=n(86211),i=n(16271);function o(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?f:M}(t).mode}(null==t||(t.hasZ??!1),e)}function u(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function s(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function c(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function l(t,e){e&&t.warn(".elevationInfo=",e)}function h(t){return(t?.offset??0)*(0,i.Ao)(t?.unit)}(0,r.B)((t,e,n)=>{if(!t||"decimal-degrees"===e)return 0;let r="unknown"!==e&&e?e:"meters",i=(0,a.mq)(n);return i?(0,a.oU)(t,r,i):0});const f={mode:"absolute-height",offset:0},M={mode:"on-the-ground",offset:null}},49718(t,e,n){n(51850),n(6867).w_},6867(t,e,n){n.d(e,{w_:()=>h});var r=n(58083),a=n(9093),i=n(35522),o=n(51850),u=n(78955),s=n(91829),c=n(71351);class l{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,e,n,r=null,a=null,i=null){this.intersector=t,this._distance=n,this._renderDistance=r,this.target=e,this.drapedLayerOrder=a,this.renderPriority=i}}class h extends l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,i.hs)(M,this.ray.direction,this.distance),(0,i.Bw)(M))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,i.hs)(M,this.ray.direction,this.distance),(0,i.WQ)(t,this.ray.origin,M),!0)}getTransformedNormal(t){return(0,i.C)(d,this.normal),d[3]=0,(0,u.Z0)(d,d,this.transformation),(0,i.C)(t,d),(0,i.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,a.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,e,n,u,s,c,l,h){this._setBase(t,e,n,u,l,h),(0,i.C)(this.normal,s??o.Cb),(0,r.C)(this.transformation,c??a.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,i.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const M=(0,o.vt)(),d=(0,s.vt)()},78553(t,e,n){n.d(e,{D:()=>i,p:()=>a});var r=n(78888);function a(t){let e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function i(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7201],{73354(t,e,n){n.d(e,{a:()=>f,b:()=>a,c:()=>i,d:()=>s,e:()=>c,f:()=>u,l:()=>h,n:()=>m,t:()=>o}),n(44208);var r=n(72727);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],_=n[12],M=n[13],b=n[14],v=0,x=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],s=e[v+2];t[x]=h*n+c*r+p*s+_,t[x+1]=u*n+m*r+y*s+M,t[x+2]=f*n+d*r+g*s+b,v+=o,x+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8],_=0,M=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],s=e[_+2];t[M]=h*n+c*r+p*s,t[M+1]=u*n+m*r+y*s,t[M+2]=f*n+d*r+g*s,_+=o,M+=i}}function l(t,e,n,r=3,i=r){let o=Math.min(t.length/r,e.length/i),s=0,a=0;for(let l=0;l<o;l++)t[a]=n*e[s],t[a+1]=n*e[s+1],t[a+2]=n*e[s+2],s+=i,a+=r;return t}function h(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,i=3,o=i){let s=Math.min(t.length/i,e.length/o),a=0,l=0,h=1/2.2;for(let u=0;u<s;u++)t[l]=r*(n*e[a])**h,t[l+1]=r*(n*e[a+1])**h,t[l+2]=r*(n*e[a+2])**h,a+=o,l+=i}function f(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=0,u=0;for(let r=0;r<l;r++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=o,u+=i;return t}function c(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),o=0,s=0;for(let a=0;a<i;a++){let i=e[o],a=e[o+1],l=e[o+2],h=i*i+a*a+l*l;if(h>0){let e=1/Math.sqrt(h);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*l}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:m,normalizeView:c,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride,l=0,h=0;for(let t=0;t<r;t++)i[h]=s[l]>>n,i[h+1]=s[l+1]>>n,i[h+2]=s[l+2]>>n,l+=a,h+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){let e=(0,a.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},l=new Map;for(let e in n){let s=n[e],a=r?.originOf(e),h=s.clonable;if(s.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[e],f=null;if("function"==typeof h)f=h(u,t);else if("reference"===h)f=u;else if(f=(0,o.TU)(u,t),null!=u&&null==f)continue;0===a?l.set(e,f):i[e]=f}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let t=(0,a.oY)(h)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return h}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},f=u(i.A);n.d(e,["OU",0,u,"Pw",0,f])},9775(t,e,n){n.d(e,{A:()=>o});var r=n(62788),i=n(95488);class o{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},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 o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p){return[t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>o,D_:()=>a,N9:()=>M,O7:()=>w,Qw:()=>h,Tl:()=>c,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>_,hZ:()=>s,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>f,mg:()=>l,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>C,tZ:()=>N,ut:()=>O});var r=n(51850),i=n(34304);function o(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 s(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=f,t[11]=c,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(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 l(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=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]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}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 h(t,e){return u(t,e)||a(t),t}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],_=n*a-r*s,M=n*l-i*s,b=n*h-o*s,v=r*l-i*a,x=r*h-o*a,S=i*h-o*l,A=u*p-f*d,R=u*y-c*d,w=u*g-m*d,T=f*y-c*p,C=f*g-m*p,E=c*g-m*y,I=_*E-M*C+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*E-l*C+h*T)*I,t[1]=(i*C-r*E-o*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(c*x-f*S-m*v)*I,t[4]=(l*w-s*E-h*R)*I,t[5]=(n*E-i*w+o*R)*I,t[6]=(y*b-d*S-g*M)*I,t[7]=(u*S-c*b+m*M)*I,t[8]=(s*C-a*w+h*A)*I,t[9]=(r*w-n*C-o*A)*I,t[10]=(d*x-p*b+g*_)*I,t[11]=(f*b-u*x-m*_)*I,t[12]=(a*R-s*T-l*A)*I,t[13]=(n*T-r*R+i*A)*I,t[14]=(p*M-d*v-y*_)*I,t[15]=(u*v-f*M+c*_)*I,t):null}function f(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=e[8],c=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],_=e[15],M=n[0],b=n[1],v=n[2],x=n[3];return t[0]=M*r+b*a+v*f+x*p,t[1]=M*i+b*l+v*c+x*y,t[2]=M*o+b*h+v*m+x*g,t[3]=M*s+b*u+v*d+x*_,M=n[4],b=n[5],v=n[6],x=n[7],t[4]=M*r+b*a+v*f+x*p,t[5]=M*i+b*l+v*c+x*y,t[6]=M*o+b*h+v*m+x*g,t[7]=M*s+b*u+v*d+x*_,M=n[8],b=n[9],v=n[10],x=n[11],t[8]=M*r+b*a+v*f+x*p,t[9]=M*i+b*l+v*c+x*y,t[10]=M*o+b*h+v*m+x*g,t[11]=M*s+b*u+v*d+x*_,M=n[12],b=n[13],v=n[14],x=n[15],t[12]=M*r+b*a+v*f+x*p,t[13]=M*i+b*l+v*c+x*y,t[14]=M*o+b*h+v*m+x*g,t[15]=M*s+b*u+v*d+x*_,t}function c(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=f,t[7]=c,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+h*i+m*o+e[12],t[13]=s*r+u*i+d*o+e[13],t[14]=a*r+f*i+p*o+e[14],t[15]=l*r+c*i+y*o+e[15]}return t}function m(t,e,n){let r=n[0],i=n[1],o=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]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let s=r[0],a=r[1],l=r[2],h=Math.sqrt(s*s+a*a+l*l);if(h<=(0,i.FD)())return void o(t,e);h=1/h,s*=h,a*=h,l*=h;let u=Math.sin(n),f=Math.cos(n),c=1-f,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],_=e[5],M=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=s*s*c+f,w=a*s*c+l*u,T=l*s*c-a*u,C=s*a*c-l*u,E=a*a*c+f,I=l*a*c+s*u,O=s*l*c+a*u,N=a*l*c-s*u,P=l*l*c+f;t[0]=m*R+g*w+v*T,t[1]=d*R+_*w+x*T,t[2]=p*R+M*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+v*I,t[5]=d*C+_*E+x*I,t[6]=p*C+M*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*N+v*P,t[9]=d*O+_*N+x*P,t[10]=p*O+M*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],f=e[10],c=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]=o*i+h*r,t[5]=s*i+u*r,t[6]=a*i+f*r,t[7]=l*i+c*r,t[8]=h*i-o*r,t[9]=u*i-s*r,t[10]=f*i-a*r,t[11]=c*i-l*r,t}function y(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 g(t,e,n){if(0===e)return a(t);let r=n[0],o=n[1],s=n[2],l=Math.sqrt(r*r+o*o+s*s);if(l<=(0,i.FD)())return null;l=1/l,r*=l,o*=l,s*=l;let h=Math.sin(e),u=Math.cos(e),f=1-u;return t[0]=r*r*f+u,t[1]=o*r*f+s*h,t[2]=s*r*f-o*h,t[3]=0,t[4]=r*o*f-s*h,t[5]=o*o*f+u,t[6]=s*o*f+r*h,t[7]=0,t[8]=r*s*f+o*h,t[9]=o*s*f-r*h,t[10]=s*s*f+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(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 M(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 b(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=r+r,l=i+i,h=o+o,u=r*a,f=r*l,c=r*h,m=i*l,d=i*h,p=o*h,y=s*a,g=s*l,_=s*h;return t[0]=1-(m+p),t[1]=f+_,t[2]=c-g,t[3]=0,t[4]=f-_,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=c+g,t[9]=d-y,t[10]=1-(u+m),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 x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t}function A(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 R(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=e[3],l=i+i,h=o+o,u=s+s,f=i*l,c=i*h,m=i*u,d=o*h,p=o*u,y=s*u,g=a*l,_=a*h,M=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(c+M)*b,t[2]=(m-_)*b,t[3]=0,t[4]=(c-M)*v,t[5]=(1-(f+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+_)*x,t[9]=(p-g)*x,t[10]=(1-(f+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){let o=e[0],s=e[1],a=e[2],l=e[3],h=o+o,u=s+s,f=a+a,c=o*h,m=o*u,d=o*f,p=s*u,y=s*f,g=a*f,_=l*h,M=l*u,b=l*f,v=r[0],x=r[1],S=r[2],A=i[0],R=i[1],w=i[2],T=(1-(p+g))*v,C=(m+b)*v,E=(d-M)*v,I=(m-b)*x,O=(1-(c+g))*x,N=(y+_)*x,P=(d+M)*S,L=(y-_)*S,B=(1-(c+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=B,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+N*R+B*w),t[15]=1,t}function T(t,e,n,r,i,o,s){let a=1/(n-e),l=1/(i-r),h=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*l,t[10]=(s+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*h,t[15]=0,t}function C(t,e,n,r){let o=e[0],s=e[1],l=e[2],h=o-n[0],u=s-n[1],f=l-n[2],c=(0,i.FD)();if(Math.abs(h)<c&&Math.abs(u)<c&&Math.abs(f)<c)return void a(t);let m=1/Math.sqrt(h*h+u*u+f*f);h*=m,u*=m,f*=m;let d=r[0],p=r[1],y=r[2],g=p*f-y*u,_=y*h-d*f,M=d*u-p*h;m=Math.sqrt(g*g+_*_+M*M),m?(m=1/m,g*=m,_*=m,M*=m):(g=0,_=0,M=0);let b=u*M-f*_,v=f*g-h*M,x=h*_-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=h,t[3]=0,t[4]=_,t[5]=v,t[6]=u,t[7]=0,t[8]=M,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*o+_*s+M*l),t[13]=-(b*o+v*s+x*l),t[14]=-(h*o+u*s+f*l),t[15]=1}function E(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 I(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 O(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],s=t[4],a=t[5],l=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+s*s+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(o*o+l*l+f*f))<=e}function N(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 P=f,L=E;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],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(c*g-m*y)-f*(l*g-h*y)+p*(l*m-h*c),t[1]=-(r*(c*g-m*y)-f*(i*g-o*y)+p*(i*m-o*c)),t[2]=r*(l*g-h*y)-a*(i*g-o*y)+p*(i*h-o*l),t[3]=-(r*(l*m-h*c)-a*(i*m-o*c)+f*(i*h-o*l)),t[4]=-(s*(c*g-m*y)-u*(l*g-h*y)+d*(l*m-h*c)),t[5]=n*(c*g-m*y)-u*(i*g-o*y)+d*(i*m-o*c),t[6]=-(n*(l*g-h*y)-s*(i*g-o*y)+d*(i*h-o*l)),t[7]=n*(l*m-h*c)-s*(i*m-o*c)+u*(i*h-o*l),t[8]=s*(f*g-m*p)-u*(a*g-h*p)+d*(a*m-h*f),t[9]=-(n*(f*g-m*p)-u*(r*g-o*p)+d*(r*m-o*f)),t[10]=n*(a*g-h*p)-s*(r*g-o*p)+d*(r*h-o*a),t[11]=-(n*(a*m-h*f)-s*(r*m-o*f)+u*(r*h-o*a)),t[12]=-(s*(f*y-c*p)-u*(a*y-l*p)+d*(a*c-l*f)),t[13]=n*(f*y-c*p)-u*(r*y-i*p)+d*(r*c-i*f),t[14]=-(n*(a*y-l*p)-s*(r*y-i*p)+d*(r*l-i*a)),t[15]=n*(a*c-l*f)-s*(r*c-i*f)+u*(r*l-i*a),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],h=t[8],u=t[9],f=t[10],c=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*s-n*o)*(f*y-c*p)-(e*a-r*o)*(u*y-c*d)+(e*l-i*o)*(u*p-f*d)+(n*a-r*s)*(h*y-c*m)-(n*l-i*s)*(h*p-f*m)+(r*l-i*a)*(h*d-u*m)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],f=t[8],c=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],_=t[15],M=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],B=(0,i.FD)();return Math.abs(n-M)<=B*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-b)<=B*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-v)<=B*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-x)<=B*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-A)<=B*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-R)<=B*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-w)<=B*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(f-T)<=B*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(c-C)<=B*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(m-E)<=B*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=B*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=B*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=B*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=B*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-L)<=B*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:I,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],o=e[3],s=n+n,a=r+r,l=i+i,h=n*s,u=r*s,f=r*a,c=i*s,m=i*a,d=i*l,p=o*s,y=o*a,g=o*l;return t[0]=1-f-d,t[1]=u+g,t[2]=c-y,t[3]=0,t[4]=u-g,t[5]=1-h-d,t[6]=m+p,t[7]=0,t[8]=c+y,t[9]=m-p,t[10]=1-h-f,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],o=-e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=r*r+i*i+o*o+s*s;return f>0?(n[0]=2*(a*s+u*r+l*o-h*i)/f,n[1]=2*(l*s+u*i+h*r-a*o)/f,n[2]=2*(h*s+u*o+a*i-l*r)/f):(n[0]=2*(a*s+u*r+l*o-h*i),n[1]=2*(l*s+u*i+h*r-a*o),n[2]=2*(h*s+u*o+a*i-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,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:y,fromXRotation:_,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:M,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:h,isOrthoNormal:O,lookAt:C,mul:P,multiply:f,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,o,s){let a=1/(e-n),l=1/(r-i),h=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*l,t[14]=(s+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,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?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(s-a)*l*.5,t[9]=(i-o)*h*.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:d,rotateX:p,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[8],u=e[9],f=e[10],c=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]=o*i-h*r,t[1]=s*i-u*r,t[2]=a*i-f*r,t[3]=l*i-c*r,t[8]=o*r+h*i,t[9]=s*r+u*i,t[10]=a*r+f*i,t[11]=l*r+c*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=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]=o*i+h*r,t[1]=s*i+u*r,t[2]=a*i+f*r,t[3]=l*i+c*r,t[4]=h*i-o*r,t[5]=u*i-s*r,t[6]=f*i-a*r,t[7]=c*i-l*r,t},scale:m,set:s,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:L,subtract:E,targetTo:function(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=r[0],l=r[1],h=r[2],u=i-n[0],f=o-n[1],c=s-n[2],m=u*u+f*f+c*c;m>0&&(m=1/Math.sqrt(m),u*=m,f*=m,c*=m);let d=l*c-h*f,p=h*u-a*c,y=a*f-l*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=f*y-c*p,t[5]=c*d-u*y,t[6]=u*p-f*d,t[7]=0,t[8]=u,t[9]=f,t[10]=c,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>o,C:()=>s,Cc:()=>w,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>A,Qr:()=>f,Re:()=>h,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>B,t2:()=>P,tn:()=>c,ze:()=>v});var r=n(51850),i=n(34304);function o(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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 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 f(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){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,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 p(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 y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(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 _(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 M(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 b(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 x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function w(t,e,n,r){let i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function T(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function C(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,i,o){let s=e[0],a=e[1],l=e[2],h=r*l-i*a,u=i*s-n*l,f=n*a-r*s,c=r*f-i*u,m=i*h-n*f,d=n*u-r*h,p=2*o;return t[0]=s+h*p+2*c,t[1]=a+u*p+2*m,t[2]=l+f*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],h=(0,i.FD)();return Math.abs(n-s)<=h*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}function B(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=h,D=u,U=f,F=_,k=M,j=o,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(t,e){S(O,t),S(N,e);let n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,i,o){let s=1-o,a=s*s,l=o*o,h=a*s,u=3*o*a,f=3*l*s,c=l*o;return t[0]=e[0]*h+n[0]*u+r[0]*f+i[0]*c,t[1]=e[1]*h+n[1]*u+r[1]*f+i[1]*c,t[2]=e[2]*h+n[2]*u+r[2]*f+i[2]*c,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:s,cross:R,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],h=i*l-o*a,u=o*s-r*l,f=r*a-i*s,c=Math.sqrt(h*h+u*u+f*f);return t[0]=h/c,t[1]=u/c,t[2]=f/c,t},direction:B,dist:F,distance:_,div:U,divide:f,dot:A,equals:L,exactEquals:P,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,o){let s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,h=s*(o-1),u=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*h+i[0]*u,t[1]=e[1]*a+n[1]*l+r[1]*h+i[1]*u,t[2]=e[2]*a+n[2]*l+r[2]*h+i[2]*u,t},inverse:x,len:j,length:o,lerp:w,max:p,min:d,mul:D,multiply:u,negate:v,normalize:S,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[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:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/j(t))},set:a,sign:m,sqrDist:k,sqrLen:Z,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:h,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,j,"jb",0,G,"lo",0,k,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),i=n(71511),o=n(36563),s=n(53966),a=n(97768),l=n(17676),h=n(83027);class u{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(let e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){let n=new f(t,e);return this._listeners.push(n),this._connectListener(n),(0,o.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){return this._invokeMethod(t,[e],n,r)}invokeMethodWithArgs(t,e,n,r){return this._invokeMethod(t,e,n,r)}_invokeMethod(t,e,n,r){if(this._thread){let i=this._transferLists[t],o=i?i(...e):[];return this._thread.apply(t,e,{transferList:o,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this._invokeMethod(t,e,n,r))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(c):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class f{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function c(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),o=n(4576),s=n(4718),a=n(91429),l=n(5443),h=n(91075),u=n(86738),f=n(16930),c=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends h.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??=f.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,c.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,s.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,s.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,o.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],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 u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),o=n(4718),s=n(91429),a=n(5443),l=n(91075),h=n(86738),u=n(16930),f=n(90634),c=n(56993),m=n(43937);let d=r=class extends l.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??=u.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,o.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,o.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,o.o8)(this.paths),t.curvePaths=(0,o.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 h.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new h.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new h.A(n[0],n[1],n[2],n[3],this.spatialReference):new h.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)&&((0,c.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 h.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new h.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,c.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,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",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,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),i=n(99917),o=n(9762);function s(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);let s=(0,i.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),o=n(9762),s=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,o.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>s,cj:()=>o,jh:()=>i});var r=n(9093);function i(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return[...t]}function s(t){let e=(0,r.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>h});var r,i=n(32198),o=n(69540),s=n(25482),a=n(91429),l=n(93223);let h=class extends((0,o.OU)(s.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],h.prototype,"origin",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],h)},18251(t,e,n){n.d(e,{A:()=>h});var r=n(32198),i=n(69540),o=n(25482),s=n(91429),a=n(51850),l=n(93223);let h=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],h)},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)},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 o(t){return void 0!==t.x&&void 0!==t.y}function s(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?o(t)?"esriGeometryPoint":s(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>s,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>o,uW:()=>l})},65864(t,e,n){n.d(e,{rS:()=>u,xD:()=>c});var r=n(5443),i=n(91075),o=n(48526),s=n(86738),a=n(39829),l=n(82799),h=n(60408);function u(t){return null==t?null:t instanceof i.A?t:(0,h.fT)(t)?s.A.fromJSON(t):(0,h.Rg)(t)?l.A.fromJSON(t):(0,h.Bi)(t)?a.A.fromJSON(t):(0,h.U9)(t)?o.A.fromJSON(t):(0,h.ZC)(t)?r.A.fromJSON(t):null}const f={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:o.A,esriGeometryMultiPatch:a.A};function c(t){return t&&f[t]||null}},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>l});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,s.Ed)(t))for(let n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(let t of n)if((0,s.aO)(t)){let[n,r]=t.c;n[0]+=e,r[0]+=e}else if((0,s.FG)(t)){let[n,r]=t.a;n[0]+=e,r[0]+=e}else if((0,s.n1)(t)){let[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e}else t[0]+=e;for(let n of function(t){return(0,o.Bi)(t)?t.rings:t.paths}(t))for(let t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>f,jZ:()=>u});var r=n(12195),i=n(19419),o=n(537),s=n(95108),a=n(60408),l=n(80754),h=n(21325);function u(t){return c(t,!0)}function f(t){return c(t,!1)}function c(t,e){if(null==t)return null;let n=t.spatialReference,i=(0,h.Vp)(n),s=(0,r.W)(t)?t.toJSON():t;if(!i)return s;let u=(0,h.K8)(n)?102100:4326,f=l.j7[u].maxX,c=l.j7[u].minX;if((0,a.fT)(s))return d(s,f,c);if((0,a.U9)(s))return s.points=s.points.map(t=>d(t,f,c)),s;if((0,a.ZC)(s))return m(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){let t=(0,o.Rg)(b,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,c),i=2*f*r,a=0===i?s:(0,l.kS)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>f?_(a,f,e):n.xmin<c?_(a,c,e):a}return s}function m(t,e){if(!e)return t;let n=function(t,e){let n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:u,frameId:f}=p(t.xmin,e),{x:c,frameId:m}=p(t.xmax,e),d=u===c&&a>0;if(a>2*h){let t={xmin:o<s?u:c,ymin:r,xmax:h,ymax:i},e={xmin:l,ymin:r,xmax:o<s?c:u,ymax:i},a={xmin:0,ymin:r,xmax:h,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(f),y(t,d)&&g.push(f),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=f+1;t<m;t++)p.push(t),g.push(t);n.push(new M(t,[f]),new M(e,[m]),new M(a,p),new M(d,g))}else u>c||d?n.push(new M({xmin:u,ymin:r,xmax:h,ymax:i},[f]),new M({xmin:l,ymin:r,xmax:c,ymax:i},[m])):n.push(new M({xmin:u,ymin:r,xmax:c,ymax:i},[f]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){let r=t[0];if(r>e){let n=(0,l.kd)(r,e);t[0]=r+-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t[0]=r+-2*n*e}}else{let r=t.x;if(r>e){let n=(0,l.kd)(r,e);t.x+=-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t.x+=-2*n*e}}return t}function p(t,e){let n,[r,i]=e.valid,o=2*i,s=0;return t>i?(n=Math.ceil(Math.abs(t-i)/o),t-=n*o,s=n):t<r&&(n=Math.ceil(Math.abs(t-r)/o),t+=n*o,s=-n),{x:t,frameId:s}}function y(t,e){let{xmin:n,ymin:r,xmax:i,ymax:o}=e;return g(t,n,r)&&g(t,n,o)&&g(t,i,o)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){let r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new v).cut(t,e);let i=r?t.rings:t.paths,o=r?4:2,l=i.length,h=-2*e;for(let t=0;t<l;t++){let e=i[t];if(e&&e.length>=o){let t=[];for(let[n,...r]of e)t.push([n+h,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class M{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,i.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(let t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(let n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);let r=-2*this._xCut;for(let t of this._linesOut)if(t&&t.length>=this._minPts){for(let e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){let e=this._side(t[0]);if(e*this._prevSide===-1){let n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){let t=this._firstPt,e=this._prevPt;(t[0]!==e[0]||t[1]!==e[1])&&this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){let e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:+(t>this._xCut)}_intersect(t,e){let n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let o=2;o<i;o++)r.push(t[o]+n*(e[o]-t[o]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){let n=t.slice();return n[0]=e,n}function S(t,e,n){let r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>I,F8:()=>E,J2:()=>R,Yq:()=>T,_m:()=>w,iS:()=>C,wj:()=>O});var r=n(66552),i=n(73444),o=n(98623),s=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},_={...p,...y},M={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...d},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...p},"long-month-day-year-long-time-24":{...f,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...d},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let t=(0,i.lR)();return(t&&v[t])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:t})=>"month"===t)?.value.toLowerCase()&&(v.bs="sr-Latn-CS");let S=new WeakMap;const A=M["short-date-short-time"];function R(t){return M[t]}function w(t){let{dateStyle:e,timeStyle:n,hour12:r,year:i,month:o}=t,s={};return e?s.dateStyle=e:i&&(s.year=i,s.month=o||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===r?void 0:"always"===r),s}function T(t,e=A){return function(t){let e=S.get(t);if(!e){let n=x(),r=O(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function C(t,e=A){return T(new Date(t),{...e,...h,...l})}function E(t,e=A){return T(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function I(t,e=A){let n=s.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return T(n.toJSDate(),e);let r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:x()})}function O(t){switch(t){case"system":return o.N;case o.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>f,lR:()=>u,oQ:()=>d});var r=n(36563);let i;n(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){let t=s?.getAttribute("lang"),e=globalThis.navigator?.language;return o??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=l()){return c(t)?.language}function f(t=l()){let e=c(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function c(t=l()){return h.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){let t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),s&&new MutationObserver(()=>{g()}).observe(s,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>f,MU:()=>u,yf:()=>m});var r=n(35522),i=n(51850),o=n(10614),s=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class h{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function u(t,e,n,h,u){return!h||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,s){let a=new l(t.slice().buffer,e);if(!s)return a;let h=n[0].stride,u=a.data.byteLength/h;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(a.data),l=(0,i.vt)();for(let t=0;t<u;++t)(0,o.Tz)(l,n,t,h/2,e/2),(0,r.ei)(l,l,s),(0,o.aT)(n,t,l[0],l[1],l[2],h/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(a.data),o=(0,i.vt)();for(let t=0;t<u;++t){let i=(t*h+e)/4;o[0]=n[i],o[1]=n[i+1],o[2]=n[i+2],(0,r.ei)(o,o,s),n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2]}}return a}(t,e,n,u):function(t,e,n,r){let i=n[0].stride,o=i/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),h=t.byteLength/i,u=1<n.length?n[1].offset/4:o,m=i+4;return n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,s.pe.SHORT,12,m,!0)),c(l,h,u,i,m,f(e,l,o,r))}(t,e,n,u)}function f(t,e,n,r){let i=t.length/3,o=e.length/n,{faceNormals:s,faceAreas:a,faceEdges:l,edgeFaces:h,vertexFaces:u,vertexFaceCountAndOffset:f}=function(t,e,n,r,i,o){let s=new Float32Array(3*i),a=new Float32Array(i),l=new Uint32Array(3*i),h=new Int32Array(2*(3*i)),u=3*i,f=new Uint32Array(u),c=new Uint32Array(2*n);for(let t=0;t<i;++t){let e=3*t;for(let t=0;t<3;++t)++c[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;c[n+1]=t,t+=c[n]}for(let t=0;t<i;++t){let e=3*t;for(let n=0;n<3;++n)f[c[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)c[2*t+1]-=c[2*t]}let m=0,d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*c[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){let r=Math.min(t,e),i=Math.max(t,e),o=t<e?0:1,s=2*r,a=p[s],l=p[s+1],u=-1;for(let t=a;t<l;t+=2)if(d[t]===i){u=d[t+1];break}return-1===u&&(u=m++,d[l]=i,d[l+1]=u,p[s+1]=l+2,h[2*u+(1-o)]=-1),h[2*u+o]=n,u}for(let n=0;n<r.length;n+=3){let i=r[n],h=i*e,u=t[h],f=t[h+1],c=t[h+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],_=t[d+2],M=r[n+2],b=M*e,v=u-p,x=f-g,S=c-_,A=u-t[b],R=f-t[b+1],w=c-t[b+2],T=x*w-S*R,C=S*A-v*w,E=v*R-x*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;let N=1/I;if(o){let t=o[0]*T+o[3]*C+o[6]*E,e=o[1]*T+o[4]*C+o[7]*E,n=o[2]*T+o[5]*C+o[8]*E;s[3*O]=t*N,s[3*O+1]=e*N,s[3*O+2]=n*N}else s[3*O]=T*N,s[3*O+1]=C*N,s[3*O+2]=E*N;let P=y(i,m,O),L=y(m,M,O),B=y(M,i,O);l[3*O]=P,l[3*O+1]=L,l[3*O+2]=B}return{faceNormals:s,faceAreas:a,faceEdges:l,vertexFaces:f,vertexFaceCountAndOffset:c,edgeFaces:h}}(e,n,o,t,i,r);return function(t,e,n,r,i,o){let s=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e),h=0,u=new Uint32Array(e),f=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===s[t])continue;s[t]=1;let c=n[3*t],m=n[3*t+1],d=n[3*t+2];for(f=0,u[f++]=t,l[0]=i[3*t],l[1]=i[3*t+1],l[2]=i[3*t+2],h=3,a[t]=t+1;h>0;){let e=l[--h];for(let r=0;r<2;++r){let y=o[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;let g=n[3*y],_=n[3*y+1],M=n[3*y+2];if(Math.abs(1-(c*g+m*_+d*M))<p){u[f++]=y,s[y]=1;for(let t=0;t<3;++t){let n=i[3*y+t];n!==e&&(l[h++]=n)}}}}if(f>1){let t=0,e=0,i=0,o=0;for(let s=0;s<f;++s){let a=u[s],l=r[a];t+=l,e+=n[3*a]*l,i+=n[3*a+1]*l,o+=n[3*a+2]*l}let s=Math.sqrt(e*e+i*i+o*o)||1;e/=s,i/=s,o/=s;for(let s=0;s<f;++s){let a=u[s];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=o,r[a]=t}}}}(t,i,s,a,l,h),d(i,o,t,s,a,u,f)}function c(t,e,n,r,i,o){let s=r/4,a=i/4,h=o.outputVertexCount,u=new Float32Array(h*a),f=new Uint32Array(u.buffer),c=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,o,s){for(let a=0;a<o;++a){let o=a*i,l=a*e;for(let e=0;e<n;++e)t[l+e]=r[o+e];t[l+n]=s[a];for(let e=n;e<i;++e)t[l+e+1]=r[o+e]}}(f,a,n,c,s,e,o.packedNormals),m(f,a,n,c,s,e,h,o.appendedVertexToOriginal,o.packedNormals,!0),new l(u.buffer,o.indices)}function m(t,e,n,r,i,o,s,a,l,h){for(let u=o;u<s;++u){let s=a[u-o]*i,f=u*e;for(let e=0;e<i;++e)t[f+e+(h&&e>=n?1:0)]=r[s+e];t[f+n]=l[u]}}function d(t,e,n,r,i,o,s){let a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n),u=e,f=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),c=new ArrayBuffer(4*a),m=new Int16Array(c),d=new Uint32Array(c),p=0,g=0,_=new Uint32Array(t),M=0,b=1-y;for(let t=0;t<e;++t){p=s[2*t+1],g=p+s[2*t];let n=t;for(;p<g;){{let t=o[--g],e=3*t,s=r[e],a=r[e+1],l=r[e+2];M=0,_[M++]=t;let h=p;for(;h<g;){let t=o[h],e=3*t;if(s*r[e]+a*r[e+1]+l*r[e+2]>b){_[M++]=t;let e=--g;if(h<e){o[h]=o[e];continue}}++h}let u=0,f=0,c=0;if(1===M)u=s,f=a,c=l;else{for(let t=0;t<M;++t){let e=_[t],n=i[e],o=3*e;u+=r[o]*n,f+=r[o+1]*n,c+=r[o+2]*n}let t=Math.sqrt(u*u+f*f+c*c)||1;u/=t,f/=t,c/=t}{let t=1/(Math.abs(u)+Math.abs(f)+Math.abs(c)),e=u*t,r=f*t,i=e,o=r;c<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),o=(r>=0?1:-1)*(1-Math.abs(e)));let s=2*n,a=Math.round(32767*i),l=Math.round(32767*o);m[s]=a<-32767?-32767:a>32767?32767:a,m[s+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<M;++e){let r=3*_[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(p>=g)break;n=u++,f[n-e]=t}}return new h(l,d,f,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>E,process:()=>_,project:()=>S,setLegacySchema:()=>x,setModifications:()=>v,setModificationsSync:()=>T,test:()=>B,transformNormals:()=>A});var r=n(34727),i=n(77690),o=n(29242),s=n(58083),a=n(9093),l=n(16930),h=n(4197),u=n(95696),f=n(18251),c=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function _(t){w=await L();let e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();let e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),o=new Uint8Array(w.HEAPU8.buffer,i,r);o.set(new Uint8Array(n));let s=w.dracoDecompressPointCloudData(i,o.byteLength);if(w._free(i),s.error.length>0)throw Error(`i3s.wasm: ${s.error}`);let a=s.featureIds?.length>0?s.featureIds.slice():null,l=s.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function b(t){await L(),I(t);let e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function v(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){let e,{localMatrix:r,origin:i,positions:o,vertexSpace:s}=t,a=l.A.fromJSON(t.inSpatialReference),c=l.A.fromJSON(t.outSpatialReference),m=r?(0,h.Vj)(r):void 0,d=(0,h.cj)(i),[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(a,c);let g=[0,0,0];if(!p(d,a,0,g,c,0))throw Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(e=new Float64Array(o.length),!p(o,a,0,e,c,0,e.length/3))throw Error("Failed to project")}else{let t="georeferenced"===s.type?u.A.fromJSON(s):f.A.fromJSON(s),{projectMeshVertexPositions:r}=await Promise.all([n.e(2258),n.e(2346)]).then(()=>n(74594)),i=r({vertexAttributes:{position:o},transform:m?{localMatrix:m}:void 0,vertexSpace:t,spatialReference:a},c);if(!i)throw Error("Failed to project");e=i}let _=e.length,[M,b,v]=g;for(let t=0;t<_;t+=3)e[t]-=M,e[t+1]-=b,e[t+2]-=v;return{result:{projected:e,original:o,projectedOrigin:g},transferList:[e.buffer,o.buffer]}}async function A({normalMatrix:t,normals:e}){let n=new Float32Array(e.length);return(0,c.b)(n,e,t),(0,r.or)(t)&&(0,c.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){O(t)}let w;function T(t){if(!w)return;let e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){let{context:r,globalTrafo:l,geometryElevationOffset:h,mbs:u,obbData:f,layouts:c,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:_,geometryBuffer:M,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(M.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,M.byteLength);T.set(new Uint8Array(M));let C=new Float64Array(t.HEAPU8.buffer,w,33);N(C,[NaN,NaN,NaN],0);let E=3;N(C,l,E),E+=16,N(C,u.center,E),E+=3,C[E++]=u.radius,f&&N(C,f,E++);let I={isDraco:!1,isLegacy:!1,color:c.some(t=>t.some(t=>"color"===t.name)),normal:m&&c.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:c.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:c.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!f,R,T.byteLength,b,I,w,p,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;let P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,B=O.anchorIds.length>0?Array.from(O.anchorIds):null,G=O.anchors.length>0?Array.from(O.anchors):null,D=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=c[0].slice(),F=(0,i.z0)((0,o.vt)(),l),k=(0,y.MU)(O.interleavedVertedData,D,U,d&&!I.normal,F),j=O.positions.slice(),Z=function(t,e,n,r,i){let o=n?(0,a.o8)(n):(0,a.vt)();(0,s.lw)(o,e,o);let l=o[0],h=o[1],u=o[2],f=o[4],c=o[5],m=o[6],d=o[8],p=o[9],y=o[10],g=o[12],_=o[13],M=o[14],b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){let n=t[e],o=t[e+1],s=t[e+2],a=n*u+o*m+s*y+M,x=0;if(r>0){let t=n*l+o*f+s*d+g,e=n*h+o*c+s*p+_;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=i,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(j,l,v?.geometries[0]?.transformation,_,h),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,V=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),Y=new g._b(U,k.data,k.indices,O.hasColors,O.hasModifications,{data:j,indices:V});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(k.data),n.push(k.indices.buffer),n.push(j.buffer),n.push(V.buffer),new g.sQ(P,L,B,G,Y,l,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;let{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(w.HEAPU8.buffer,r,i),s=new Float64Array(n);o.set(s),w.filterOBBs(e,r,i),s.set(o),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,d())}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{return await(await n.e(2980).then(()=>n(82980))).default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const B={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>M,Ir:()=>y,_b:()=>f,sQ:()=>c});var r=n(53966),i=n(15142),o=n(51850),s=n(35982),a=n(39829),l=n(99917),h=n(27993),u=n(89056);class f{constructor(t,e,n,r,i,o){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=o}}class c{constructor(t,e,n,r,i,o,s,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=o,this.obb=s,this.geometryMinElevation=a,this.geometryMaxElevation=l}}class m extends s.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(let[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(let e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){let r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){let n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new i.A({deallocator:null}),p=(0,o.vt)();function y(t,e,n,i=!1){d.clear();let o=1/0,s=1/0,h=-1/0,f=-1/0,c=!1;for(let t of e){let e="clip"===t.type?2:+("mask"===t.type),m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,l.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){let t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}let M=y;if(i){let t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}let b=1===M.length&&y.length>1?[...y.map(t=>[t]),M]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{c||=1===e;for(let t of b){d.push(e),d.push(t.length);for(let e of t){d.push(e.length);for(let t of e){let e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),o=Math.min(o,t[0]),s=Math.min(s,t[1]),h=Math.max(h,t[0]),f=Math.max(f,t[1])}}}}}if(null!=t)if(c){let e=1e-4;d.push(2),d.push(2),d.push(4),d.push(o-e),d.push(s-e),d.push(0),d.push(h+e),d.push(s-e),d.push(0),d.push(h+e),d.push(f+e),d.push(0),d.push(o-e),d.push(f+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);let m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){let r=[];for(let i of t){let t=[];for(let r of i){if(!(0,h.F)(r,e,p,n)||!_(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(let r of e){let e=r.geometry,i=e.rings.length,o=e.rings.some(t=>t.length<3);if(0!==i&&!o){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){let i=e.rings[r];n+=1;for(let o=0;o<i.length;++o){let i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,o,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>s,aT:()=>o});var r=n(34727),i=n(35522);function o(t,e,n,r,i,o=2,s=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),h=n*l,u=r*l,f=i<=0?(h>=0?1:-1)*(1-Math.abs(u)):h,c=i<=0?(u>=0?1:-1)*(1-Math.abs(h)):u,m=e*o+s;t[m]=a(f),t[m+1]=a(c)}function s(t,e,n,r=2,o=0){let s=n*r+o,a=l(e[s]),h=l(e[s+1]),u=1-Math.abs(a)-Math.abs(h);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(h)),t[1]=(h>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=h),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,o=!1,s=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=o,this.divisor=s,this.integer=a}}},63907(t,e,n){const r={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},o=Object.values(i),s={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.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:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.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};n.d(e,["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,o,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,s,"pe",0,r,"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}])}}]);