@arcgis/core 5.2.0-next.93 → 5.2.0-next.95

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 (190) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  8. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
  9. package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
  10. package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
  12. package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
  14. package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
  15. package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
  24. package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
  27. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
  28. package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
  39. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  40. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
  44. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  45. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  48. package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
  51. package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  60. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  61. package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
  62. package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
  63. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
  67. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  68. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  69. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  70. package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
  71. package/chunks/EmissionComposite.glsl.js +3 -3
  72. package/chunks/Fog.glsl.js +8 -6
  73. package/chunks/RibbonLine.glsl.js +52 -52
  74. package/chunks/bundle.js +1 -1
  75. package/chunks/portal.js +2 -0
  76. package/config.js +1 -1
  77. package/core/timeUtils.d.ts +62 -0
  78. package/core/timeUtils.js +1 -1
  79. package/kernel.js +1 -1
  80. package/layers/AnnotationFeatureLayer.d.ts +0 -1
  81. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  82. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  83. package/libs/parquet/parquet.js +1 -1
  84. package/package.json +3 -3
  85. package/rest/imageService/fetchRasterInfo.js +1 -1
  86. package/support/revision.js +1 -1
  87. package/symbols/cim/types.d.ts +2 -1
  88. package/views/2d/engine/Stage.js +1 -1
  89. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  90. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  91. package/views/2d/engine/webgl/Painter.js +1 -1
  92. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  98. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  99. package/views/2d/layers/features/FeatureContainer.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  103. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  104. package/views/3d/environment/CloudyWeather.js +1 -1
  105. package/views/3d/environment/SunnyWeather.js +1 -1
  106. package/views/3d/layers/I3SMeshView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/terrain/TileCompositor.js +1 -1
  113. package/views/3d/webgl/RenderCamera.js +1 -1
  114. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  115. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
  116. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  117. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  118. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  119. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  120. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  121. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  122. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  123. package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
  124. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
  125. package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
  126. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
  127. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  128. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  129. package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
  130. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  131. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  132. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  133. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  134. package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  137. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  138. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  139. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  140. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  141. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  142. package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
  143. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  144. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  145. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  146. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  147. package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
  148. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  149. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  151. package/views/SceneView.d.ts +1 -0
  152. package/views/SceneView.js +1 -1
  153. package/views/popupAdapter.js +1 -1
  154. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  155. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
  157. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
  158. package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
  159. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  160. package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
  161. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  162. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  163. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  164. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
  165. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  166. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
  167. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
  168. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  169. package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
  170. package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  172. package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
  173. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
  174. package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
  175. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
  176. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
  177. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  178. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  179. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  180. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
  181. package/chunks/GlowComposite.glsl.js +0 -37
  182. package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
  183. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
  184. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
  185. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
  186. /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
  187. /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
  188. /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
  189. /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
  190. /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7886],{68197(t,e,r){r.d(e,{A:()=>u});var n=r(40876),i=r(4576),a=r(34727),s=r(56507);function o(t){return(0,a.qE)((0,s.Vr)(t),0,255)}function l(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class u{static blendColors(t,e,r,n=new u){return n.r=Math.round(t.r+(e.r-t.r)*r),n.g=Math.round(t.g+(e.g-t.g)*r),n.b=Math.round(t.b+(e.b-t.b)*r),n.a=t.a+(e.a-t.a)*r,n._sanitize()}static fromRgb(t,e){const r=(0,n.lT)(t);return r?u.fromArray(r,e):null}static fromHex(t,e=new u){const r=(0,n.oW)(t);return r?u.fromArray(r,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,n.Eq)(t);return r?u.fromArray(r,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,i.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return e?a.toUpperCase():a}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),r=o(this.g),n=o(this.b);return 0===t||1!==this.a?[e,r,n,o(255*this.a)]:[e,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(t,e,r,n){this.r=t,this.g=e,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>y,G1:()=>m,TS:()=>a,V6:()=>i,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>b});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(t){return!!n[t]||!!n[t.toLowerCase()]}function a(t){return n[t]??n[t.toLowerCase()]}function s(t){return[...a(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?t+(e-t)*n:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,n=1){const i=(t%360+360)%360/360,a=r<=.5?r*(e+1):r+e-r*e,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(t){const e=t.length>5,r=e?8:4,n=(1<<r)-1,i=e?1:17,a=e?9===t.length:5===t.length;let s=Number("0x"+t.slice(1));if(isNaN(s))return null;const o=[0,0,0,1];let l;return a&&(l=s&n,s>>=r,o[3]=i*l/255),l=s&n,s>>=r,o[2]=i*l,l=s&n,s>>=r,o[1]=i*l,l=s&n,s>>=r,o[0]=i*l,o}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),i=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function h(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function y(t){let e=i(t)?a(t):null;return e??=h(t),e??=c(t),e}function f(t){const e=y(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return d(t,0,1)}function g(t){return Math.round(d(t,0,255))}function d(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const _=1/2.2;function b(t){return t**_}r.d(e,["iw",0,_])},85334(t,e,r){r.d(e,{$:()=>d,IB:()=>s,Iy:()=>v,N2:()=>_,RH:()=>w,ZD:()=>b});var n=r(68197),i=r(4576),a=r(4718);function s(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}r(34727),r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(t,e){const r=[];let n,i;if(t[0].length!==e.length)throw new Error("dimensions do not match");const a=t.length,s=t[0].length;let o=0;for(n=0;n<a;n++){for(o=0,i=0;i<s;i++)o+=t[n][i]*e[i];r.push(o)}return r}function y(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),r=p(c,e);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function f(t){const e=p(h,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function m(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function g(t){const e=t.l,r=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function d(t){return s(t)?t:u(t)?function(t){return f(g(function(t){const e=t.l,r=t.c,n=t.h;return{l:e,a:r*Math.cos(n),b:r*Math.sin(n)}}(t)))}(t):l(t)?function(t){return f(g(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,r=t.s/100,n=t.v/100*255,i=n*r,a=i*(1-Math.abs(e%2-1));let s;switch(Math.floor(e)){case 0:s={r:i,g:a,b:0};break;case 1:s={r:a,g:i,b:0};break;case 2:s={r:0,g:i,b:a};break;case 3:s={r:0,g:a,b:i};break;case 4:s={r:a,g:0,b:i};break;case 5:case 6:s={r:i,g:0,b:a};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-i),s.g=Math.round(s.g+n-i),s.b=Math.round(s.b+n-i),s}(t):t}function _(t){return o(t)?t:function(t){const{r:e,g:r,b:n}=t,i=Math.max(e,r,n),a=i-Math.min(e,r,n);let s=i,o=0===a?0:i===e?(r-n)/a%6:i===r?(n-e)/a+2:(e-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(d(t))}function b(t){return l(t)?t:function(t){return m(y(t))}(d(t))}function w(t){return u(t)?t:function(t){return function(t){const e=t.l,r=t.a,n=t.b,i=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:e,c:i,h:a}}(m(y(t)))}(d(t))}function v(t,e,r={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new n.A(t):t)).length||1===e){const r=[],n=t[0];for(let t=0;t<e;t++)r.push(n.clone());return r}if(r.shuffle&&(t=(0,i.k4)((0,a.o8)(t),r.seed)),t.length>=e){const r=[],n=(t.length-1)/(e-1);for(let i=0;i<e;i++){const e=Math.round(i*n);r.push(t[e].clone())}return r}return function(t,e,r={}){const n=[],a=t.length-1,s=Math.ceil((e-t.length)/a);t:for(let i=0;i<a;i++){const a=t[i],o=t[i+1];for(let i=1;i<=s;i++){const l=i/(s+1);if(n.push(E(a,o,l,r)),n.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,i.k4)(n,r.seed??1)]}(t,e,r)}const T=(t,e)=>{const r=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+r))};function E(t,e,r,a={}){const s=t.r,o=t.g,l=t.b,u=e.r,c=e.g,h=e.b,p=Math.round(s+(u-s)*r),y=Math.round(o+(c-o)*r),f=Math.round(l+(h-l)*r);if(!a.offset)return new n.A([p,y,f]);const m=(0,i.Mo)(a.seed);return new n.A([T(p,m),T(y,m),T(f,m)])}},91829(t,e,r){function n(){return[0,0,0,0]}function i(t,e,r,n){return[t,e,r,n]}function a(){return i(1,1,1,1)}function s(){return i(1,0,0,0)}function o(){return i(0,1,0,0)}function l(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}r.d(e,{_Y:()=>u,fA:()=>i,vt:()=>n});const c=[0,0,0,0],h=a(),p=s(),y=o(),f=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:f,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:a,unitW:u,unitX:s,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,h,"uY",0,c])},78955(t,e,r){r.d(e,{Bw:()=>g,C:()=>i,Cc:()=>w,LI:()=>p,Om:()=>b,S8:()=>_,T9:()=>h,WQ:()=>s,Z0:()=>v,aI:()=>E,hG:()=>m,hZ:()=>a,hs:()=>y,jk:()=>c,m3:()=>d,t2:()=>T});var n=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function s(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function l(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function c(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function p(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function f(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}function g(t){const e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}function d(t){const e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}function _(t,e){const r=e[0],n=e[1],i=e[2],a=e[3];let s=r*r+n*n+i*i+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=r*s,t[1]=n*s,t[2]=i*s,t[3]=a*s),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,r,n){const i=e[0],a=e[1],s=e[2],o=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=s+n*(r[2]-s),t[3]=o+n*(r[3]-o),t}function v(t,e,r){const n=e[0],i=e[1],a=e[2],s=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*s,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*s,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*s,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*s,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function E(t,e){const r=t[0],i=t[1],a=t[2],s=t[3],o=e[0],l=e[1],u=e[2],c=e[3],h=(0,n.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-l)<=h*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=h*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))}const x=o,I=l,P=u,D=f,S=m,L=g,A=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:D,distance:f,div:P,divide:u,dot:b,equals:E,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[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:L,length:g,lerp:w,max:h,min:c,mul:I,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:_,random:function(t,e=1){const r=n.Ov;let i,a,s,o,l,u;do{i=2*r()-1,a=2*r()-1,l=i*i+a*a}while(l>=1);do{s=2*r()-1,o=2*r()-1,u=s*s+o*o}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=e*i,t[1]=e*a,t[2]=e*s*c,t[3]=e*o*c,t},round:p,scale:y,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:a,sqrDist:S,sqrLen:A,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:o,transformMat4:v,transformQuat:function(t,e,r){const n=e[0],i=e[1],a=e[2],s=r[0],o=r[1],l=r[2],u=r[3],c=u*n+o*a-l*i,h=u*i+l*n-s*a,p=u*a+s*i-o*n,y=-s*n-o*i-l*a;return t[0]=c*u+y*-s+h*-l-p*-o,t[1]=h*u+y*-o+p*-s-c*-l,t[2]=p*u+y*-l+c*-o-h*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},60408(t,e,r){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function s(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?a(t)?"esriGeometryPoint":s(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>o,Pv:()=>c,Rg:()=>s,U9:()=>i,W0:()=>h,ZC:()=>n,fT:()=>a,uW:()=>l})},4264(t,e,r){r.d(e,{lf:()=>Lt,L:()=>Mt,A4:()=>At,aR:()=>kt,tU:()=>Rt,V1:()=>Nt,uU:()=>Ot});var n=r(19419),i=r(13195),a=r(89518),s=r(68572),o=r(63907),l=r(85079),u=r(74038);class c{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,n){const i=this.propertyInfos,a=this.getEncodingInfos(),s=[],o=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<o;t++)s.push(0);for(const o of Object.keys(a)){const l=a[o],{type:u,precisionFactor:c,isLayout:h}=i[o],p=h?r.getLayoutProperty(o):r.getPaintProperty(o),y=p.interpolator?.getInterpolationRange(e);let f=0;for(const r of l){const{offset:i}=r,a=Math.floor(i/4),o=i%4*8,l=n??p.getValue(y?y[f]:e,t),h=c||1;switch(u){case 0:case 1:s[a]|=this._encodeByte(l*h,0)<<o;break;case 2:case 3:s[a]|=this._encodeShort(l*h,0)<<o;break;case 4:case 5:{const t=this._encodeByte(l*h,0),e=this._encodeByte(l*h,8);s[a]|=t<<o,s[a]|=e<<o}break;case 6:case 7:s[a]|=this._encodeShort(l*h,0),s[a]|=this._encodeShort(l*h,16);break;case 8:case 9:s[a]|=this._encodeByte(l*h,0),s[a]|=this._encodeByte(l*h,8),s[a]|=this._encodeByte(l*h,16),s[a]|=this._encodeByte(l*h,24);break;case 10:s[a]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(a,s,l);break;default:throw new Error("Unsupported encoding type")}f++}}return s}getAtributeState(t){let e=0;const r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){const n=r[t],i=n.name,{count:a,dataType:s,normalized:o}=c._encodingInfo[n.type],{attribueIdx:l,precisionFactor:u}=n,h=u||1,p=[{location:l[0],name:i,propertyName:t,count:a,type:s,normalized:o,precisionFactor:h}];if(this._precisionFactors[i]=h,2===e){const e=`${i}To`;p.push({location:l[1],name:e,propertyName:t,count:a,type:s,normalized:o,precisionFactor:h}),this._precisionFactors[e]=h}return p}_buildMaterialInfo(){const t=[];this._propertyEncodingInfo={};const e={},r=this.properties,n=this.propertyInfos;let i=-1;for(const a of r){i++;const r=n[a].name;e[r]=!1,e[`${r}To`]=!1;const s=this.getAtributeState(i);if(0===s||3===s)continue;const o=this._getLayoutElementsForPropertyState(a,s,n);t.push(...o)}for(const r of t)e[r.name]=!0;const a=function(t){const e=(0,s.H)(t),r=[];let n=0;for(const t of e)r.push({...t,offset:n}),n+=h(t.type)*t.count;return r}(t);this._buildLayout(a),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this.opacityLayout?this._locations=(0,l._u)([this.baseGeometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this.baseGeometryLayout);const e=this.baseGeometryLayout;let r=e[0].stride;const n=[];let i=0;for(const e of t)i+=h(e.type)*e.count;r=p(r+i);for(const t of e)n.push(new u._(t.name,t.count,t.type,t.offset,r,t.normalized));let a=0;for(const i of t)n.push(new u._(i.name,i.count,i.type,e[0].stride+a,r,i.normalized)),void 0===this._propertyEncodingInfo[i.propertyName]&&(this._propertyEncodingInfo[i.propertyName]=[]),this._propertyEncodingInfo[i.propertyName].push({offset:a}),a+=h(i.type)*i.count;this._ddStrideInBytes=a,this._geometryLayout=n;const s=this._locations;for(const e of t)s.set(e.name,e.location);this._stride=r}_buildShaderUniforms(){const t=[],e=this.properties,r=this.propertyInfos;let n=-1;for(const i of e){n++;const{name:e,type:a,isLayout:s}=r[i];switch(this.getAtributeState(n)){case 0:t.push({name:e,getValue:(t,e,r,n)=>{const o=s?t.getLayoutValue(i,e):t.getPaintValue(i,e);switch(a){case 11:{const r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),i=n.getMosaicItemPosition(r,!1);if(null==i)return null;const{tl:a,br:s}=i;return[a[0],s[1],s[0],a[1]]}case 12:{const t=n.getMosaicItemPosition(o,!i.includes("line-"));if(null==t)return null;const{tl:e,br:r}=t;return[e[0],r[1],r[0],e[1]]}case 10:{const t=o[3];return[t*o[0],t*o[1],t*o[2],t]}default:return o}}});break;case 2:{const r=`${e}Mix`;t.push({name:r,getValue:(t,e,r,n)=>(s?t.getLayoutProperty(i):t.getPaintProperty(i)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){const e=255*t[3];return(0,a.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;const n=r.rect,i=r.width,a=r.height;e[t]=this._encodeShort(n.x+2,0),e[t]|=this._encodeShort(n.y+2+a,16),e[t+1]=this._encodeShort(n.x+2+i,0),e[t+1]|=this._encodeShort(n.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const h=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},p=t=>t+3&-4;class y extends c{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=y.GEOMETRY_LAYOUT,this.properties=y.ATTRIBUTES,this.propertyInfos=y.ATTRIBUTES_INFO}}class f extends c{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends c{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends c{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,8),new u._("offset",2,o.pe.BYTE,4,8),new u._("normal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=e?g.ATTRIBUTES_FILL:g.ATTRIBUTES_OUTLINE,this.propertyInfos=e?g.ATTRIBUTES_INFO_FILL:g.ATTRIBUTES_INFO_OUTLINE}}class d extends c{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,16),new u._("extrudeOffset",4,o.pe.BYTE,4,16),new u._("directionNormal",4,o.pe.BYTE,8,16),new u._("accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=d.ATTRIBUTES,this.propertyInfos=d.ATTRIBUTES_INFO}}const _=[new u._("positionAndOffset",4,o.pe.SHORT,0,16),new u._("iconInfo",4,o.pe.UNSIGNED_SHORT,8,16)],b=[new u._("opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class w extends c{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10,attribueIdx:[2,8]},"icon-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"icon-halo-color":{name:"haloColor",type:10,attribueIdx:[4,10]},"icon-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[5,11]},"icon-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[6,12]},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0,attribueIdx:[7,13]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=b,this.properties=w.ATTRIBUTES,this.propertyInfos=w.ATTRIBUTES_INFO}}class v extends c{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10,attribueIdx:[4,10]},"text-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"text-halo-color":{name:"haloColor",type:10,attribueIdx:[5,11]},"text-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[6,12]},"text-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[7,13]},"text-size":{name:"size",type:1,isLayout:!0,attribueIdx:[2,8]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=b,this.properties=v.ATTRIBUTES,this.propertyInfos=v.ATTRIBUTES_INFO}}var T=r(68197),E=r(85334);function x(t,e,r,n){const i=3*t,a=3*(r-t)-i,s=1-i-a,o=3*e,l=3*(n-e)-o,u=1-o-l;function c(t){return((s*t+a)*t+i)*t}function h(t){return(3*s*t+2*a)*t+i}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,n,i,a,s,o;for(i=t,o=0;o<8;o++){if(a=c(i)-t,Math.abs(a)<e)return i;if(s=h(i),Math.abs(s)<1e-6)break;i-=a/s}if(r=0,n=1,i=t,i<r)return r;if(i>n)return n;for(;r<n;){if(a=c(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i}(t,e))}}const I={ease:x(.25,.1,.25,1),linear:x(0,0,1,1),easeIn:x(.42,0,1,1),easeOut:x(0,0,.58,1),easeInOut:x(.42,0,.58,1)};I["ease-in"]=I.easeIn,I["ease-out"]=I.easeOut,I["ease-in-out"]=I.easeInOut;const P={kind:"null"},D={kind:"number"},S={kind:"string"},L={kind:"boolean"},A={kind:"color"},R={kind:"object"},N={kind:"value"};function M(t,e){return{kind:"array",itemType:t,n:e}}const k=[P,D,S,L,A,R,M(N)];function O(t){if("array"===t.kind){const e=O(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function B(t){if(null===t)return P;if("string"==typeof t)return S;if("boolean"==typeof t)return L;if("number"==typeof t)return D;if(t instanceof T.A)return A;if(Array.isArray(t)){let e;for(const r of t){const t=B(r);if(e){if(e!==t){e=N;break}}else e=t}return M(e||N,t.length)}return"object"==typeof t?R:N}function U(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||U(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of k)if(U(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof T.A?t.toString():JSON.stringify(t)}class F{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class z{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new z}evaluate(t,e){return t?.id}}class V{constructor(){this.type=S}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new V}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class H{constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new H}evaluate(t,e){return e}}class ${constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=L}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new $(Tt(t[1],e),Tt(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(Tt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=L}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(Tt(t[n],e));return new q(r)}evaluate(t,e){for(const r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=L}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(Tt(t[n],e));return new j(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=L}static parse(t,e){const r=[];for(let n=1;n<t.length;n++)r.push(Tt(t[n],e));return new W(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!1;return!0}}class Z{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let n;const i=[];for(let a=1;a<t.length-1;a+=2){const s=Tt(t[a],e),o=Tt(t[a+1],e,r);n||(n=o.type),i.push({condition:s,output:o})}const a=Tt(t[t.length-1],e,r);return n||(n=a.type),new Z(n,i,a)}evaluate(t,e){for(const r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class X{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let r;const n=[];for(let i=1;i<t.length;i++){const a=Tt(t[i],e);r||(r=a.type),n.push(a)}return new X(r,n)}evaluate(t,e){for(const r of this._args){const n=r.evaluate(t,e);if(null!==n)return n}return null}}class K{constructor(t,e,r,n,i){this.type=t,this._input=e,this._labels=r,this._outputs=n,this._fallback=i}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let r;const n=Tt(t[1],e),i=[],a={};let s;for(let n=2;n<t.length-1;n+=2){let o=t[n];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(s){if(e!==s)throw new Error('"match" requires labels to have the same type')}else s=e;a[t]=i.length}const l=Tt(t[n+1],e);r||(r=l.type),i.push(l)}return new K(r,n,a,i,Tt(t[t.length-1],e))}evaluate(t,e){const r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,r,n,i){this._operator=t,this.type=e,this.interpolation=r,this.input=n,this._stops=i}static parse(t,e,r){const n=t[0];if(t.length<5)throw new Error(`"${n}" expects at least 4 arguments`);const i=t[1];if(!Array.isArray(i)||0===i.length)throw new Error(`"${i}" is not a valid interpolation`);switch(i[0]){case"linear":if(1!==i.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==i.length||"number"!=typeof i[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==i.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=i[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${i[0]}"`)}if(t.length%2!=1)throw new Error(`"${n}" expects an even number of arguments`);const a=Tt(t[2],e,D);let s;"interpolate-hcl"===n||"interpolate-lab"===n?s=A:r&&"value"!==r.kind&&(s=r);const o=[];for(let r=3;r<t.length;r+=2){const i=t[r];if("number"!=typeof i)throw new Error(`"${n}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=i)throw new Error(`"${n}" requires strictly ascending stop inputs`);const a=Tt(t[r+1],e,s);s||(s=a.type),o.push([i,a])}if(s&&s!==A&&s!==D&&("array"!==s.kind||s.itemType!==D))throw new Error(`"${n}" cannot interpolate type ${O(s)}`);return new J(n,s,i,a,o)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const n=this.input.evaluate(t,e);if(n<=r[0][0])return r[0][1].evaluate(t,e);if(n>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(n<r[a][0]););const s=r[a-1][0],o=r[a][0],l=J.interpolationRatio(this.interpolation,n,s,o),u=r[a-1][1].evaluate(t,e),c=r[a][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(c))return u.map((t,e)=>(0,i.GW)(t,c[e],l));if("color"===this.type.kind&&u instanceof T.A&&c instanceof T.A){const t=new T.A(u),e=new T.A(c);return new T.A([(0,i.GW)(t.r,e.r,l),(0,i.GW)(t.g,e.g,l),(0,i.GW)(t.b,e.b,l),(0,i.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof c)return(0,i.GW)(u,c,l);throw new Error(`"${this._operator}" cannot interpolate type ${O(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,E.RH)(u),e=(0,E.RH)(c),r=e.h-t.h,n=(0,E.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,i.GW)(t.c,e.c,l),l:(0,i.GW)(t.l,e.l,l)});return new T.A({a:(0,i.GW)(u.a,c.a,l),...n})}if("interpolate-lab"===this._operator){const t=(0,E.ZD)(u),e=(0,E.ZD)(c),r=(0,E.$)({l:(0,i.GW)(t.l,e.l,l),a:(0,i.GW)(t.a,e.a,l),b:(0,i.GW)(t.b,e.b,l)});return new T.A({a:(0,i.GW)(u.a,c.a,l),...r})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const r=this._stops;if(1===r.length)return 0;if(t>=r[r.length-1][0])return 0;let n=0;for(;++n<r.length&&!(t<r[n][0]););const i=r[n-1][0],a=r[n][0];return J.interpolationRatio(this.interpolation,e,i,a)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const r=e[e.length-1][0];if(t>=r)return[r,r];let n=0;for(;++n<e.length&&!(t<e[n][0]););return[e[n-1][0],e[n][0]]}static interpolationRatio(t,e,r,n){let i=0;return"linear"===t[0]?i=J._exponentialInterpolationRatio(e,1,r,n):"exponential"===t[0]?i=J._exponentialInterpolationRatio(e,t[1],r,n):"cubic-bezier"===t[0]&&(i=x(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,r,n),1e-5)),i<0?i=0:i>1&&(i=1),i}static _exponentialInterpolationRatio(t,e,r,n){const i=n-r;if(0===i)return 0;const a=t-r;return 1===e?a/i:(e**a-1)/(e**i-1)}}class Q{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const r=Tt(t[1],e,D);let n;const i=[];i.push([-1/0,Tt(t[2],e)]);for(let r=3;r<t.length;r+=2){const a=t[r];if("number"!=typeof a)throw new Error('"step" requires stop inputs as literal numbers');if(i.length&&i[i.length-1][0]>=a)throw new Error('"step" requires strictly ascending stop inputs');const s=Tt(t[r+1],e);n||(n=s.type),i.push([a,s])}return new Q(n,r,i)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const n=this._input.evaluate(t,e);let i=0;for(;++i<r.length&&!(n<r[i][0]););return this._stops[i-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const n=new F(e);for(let r=1;r<t.length-1;r+=2){const i=t[r];if("string"!=typeof i)throw new Error(`"let" requires a string to define variable names - found ${i}`);n.add(i,Tt(t[r+1],e))}const i=Tt(t[t.length-1],n,r);return new tt(i.type,i)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const n=e.get(t[1]);if(!n)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(r||N,n)}evaluate(t,e){return this.output.evaluate(t,e)}}class rt{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const r=Tt(t[1],e,D),n=Tt(t[2],e);return new rt(n.type.itemType,r,n)}evaluate(t,e){const r=this._index.evaluate(t,e),n=this._array.evaluate(t,e);if(r<0||r>=n.length)throw new Error('"at" index out of bounds');if(r!==Math.floor(r))throw new Error('"at" index must be an integer');return n[r]}}class nt{constructor(t){this._args=t,this.type=N}static parse(t,e){const r=t.slice(1).map(t=>Array.isArray(t)?Tt(t,e):t);return new nt(r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r&&r.evaluate?r.evaluate(t,e):r)),!r||r.length<2&&r.length%2==1?"":(t=>Array.from({length:t.length/2},(e,r)=>(t=>t)(t[2*r],t[2*r+1])))(r).join()}}class it{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let r,n;switch(t.length){case 2:return r=Tt(t[1],e),new it(r);case 3:return r=Tt(t[1],e),n=Tt(t[2],e),new it(r,n);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t?.values[r]}}class at{constructor(t,e){this._key=t,this._obj=e,this.type=L}static parse(t,e){let r,n;switch(t.length){case 2:return r=Tt(t[1],e),new at(r);case 3:return r=Tt(t[1],e),n=Tt(t[2],e),new at(r,n);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!t?.values[r]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=L}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(Tt(t[1],e),Tt(t[2],e))}evaluate(t,e){const r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class ot{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const r=Tt(t[1],e),n=Tt(t[2],e);if(4===t.length){const i=Tt(t[3],e,D);return new ot(r,n,i)}return new ot(r,n)}evaluate(t,e){const r=this._item.evaluate(t,e),n=this._array.evaluate(t,e);if(this._from){const i=this._from.evaluate(t,e);if(i!==Math.floor(i))throw new Error('"index-of" index must be an integer');return n.indexOf(r,i)}return n.indexOf(r)}}class lt{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const r=Tt(t[1],e);return new lt(r)}evaluate(t,e){const r=this._arg.evaluate(t,e);if("string"==typeof r)return r.length;if(Array.isArray(r))return r.length;throw new Error('"length" expects string or array')}}class ut{constructor(t,e,r,n){this.type=t,this._array=e,this._from=r,this._to=n}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const r=Tt(t[1],e),n=Tt(t[2],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const i=Tt(t[3],e,D);if(i.type!==D)throw new Error('"slice" index must return a number');return new ut(r.type,r,n,i)}return new ut(r.type,r,n)}evaluate(t,e){const r=this._array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw new Error('"slice" input must be an array or a string');const n=this._from.evaluate(t,e);if(n<0||n>=r.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');if(this._to){const i=this._to.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"slice" index out of bounds');if(i!==Math.floor(i))throw new Error('"slice" index must be an integer');return r.slice(n,i)}return r.slice(n)}}class ct{constructor(){this.type=L}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ct}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,r){const n=t.slice(1).map(t=>Tt(t,e));return new ht(n,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class pt{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const r=t.slice(1).map(t=>Tt(t,e));return new pt(r,pt.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class yt{constructor(t){this._args=t,this.type=S}static parse(t,e){return new yt(t.slice(1).map(t=>Tt(t,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class ft{constructor(t,e){this._arg=t,this._calculate=e,this.type=S}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const r=Tt(t[1],e);return new ft(r,ft.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class mt{constructor(t){this._args=t,this.type=A}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const r=t.slice(1).map(t=>Tt(t,e));return new mt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),n=this._validate(this._args[1].evaluate(t,e)),i=this._validate(this._args[2].evaluate(t,e));return new T.A({r,g:n,b:i})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class gt{constructor(t){this._args=t,this.type=A}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const r=t.slice(1).map(t=>Tt(t,e));return new gt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),n=this._validate(this._args[1].evaluate(t,e)),i=this._validate(this._args[2].evaluate(t,e)),a=this._validateAlpha(this._args[3].evaluate(t,e));return new T.A({r,g:n,b:i,a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class dt{constructor(t){this._color=t,this.type=M(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const r=Tt(t[1],e);return new dt(r)}evaluate(t,e){return new T.A(this._color.evaluate(t,e)).toRgba()}}class _t{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0];if(t.length<2)throw new Error(`${r} expects at least one argument`);let n,i=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":n=S;break;case"number":n=D;break;case"boolean":n=L;break;default:throw new Error('"array" type argument must be string, number or boolean')}i++}else n=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');i++}n=M(n,e)}else switch(r){case"string":n=S;break;case"number":n=D;break;case"boolean":n=L;break;case"object":n=R}const a=[];for(;i<t.length;i++){const r=Tt(t[i],e);a.push(r)}return new _t(n,a)}evaluate(t,e){let r;for(const n of this._args){const i=n.evaluate(t,e);if(r=B(i),U(r,this.type))return i}throw new Error(`Expected ${O(this.type)} but got ${O(r)}`)}}class bt{static{this.types={"to-boolean":L,"to-color":A,"to-number":D,"to-string":S}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0],n=bt.types[r];if(n===L||n===S){if(2!==t.length)throw new Error(`${r} expects one argument`)}else if(t.length<2)throw new Error(`${r} expects at least one argument`);const i=[];for(let r=1;r<t.length;r++){const n=Tt(t[r],e);i.push(n)}return new bt(n,i)}evaluate(t,e){if(this.type===L)return Boolean(this._args[0].evaluate(t,e));if(this.type===S)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const r of this._args){const n=Number(r.evaluate(t,e));if(!isNaN(n))return n}return null}if(this.type===A){for(const r of this._args)try{const n=bt.toColor(r.evaluate(t,e));if(n instanceof T.A)return n}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof T.A)return t;if("string"==typeof t){const e=T.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return T.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class wt{constructor(t){this._val=t,this.type=B(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new wt(t[1])}evaluate(t,e){return this._val}}class vt{constructor(t){this._arg=t,this.type=S}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new vt(Tt(t[1],e))}evaluate(t,e){return O(B(this._arg.evaluate(t,e)))}}function Tt(t,e,r){const n=typeof t;if("string"===n||"boolean"===n||"number"===n||null===t){if(r)switch(r.kind){case"string":"string"!==n&&(t=bt.toString(t));break;case"number":"number"!==n&&(t=bt.toNumber(t));break;case"color":t=bt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const i=t[0];if("string"!=typeof i)throw new Error("First element of expression must be a string");const a=Et[i];if(void 0===a)throw new Error(`Invalid expression operator "${i}"`);if(!a)throw new Error(`Unimplemented expression operator "${i}"`);return a.parse(t,e,r)}const Et={array:_t,boolean:_t,collator:null,format:nt,image:null,literal:wt,number:_t,"number-format":null,object:_t,string:_t,"to-boolean":bt,"to-color":bt,"to-number":bt,"to-string":bt,typeof:vt,accumulated:null,"feature-state":null,"geometry-type":V,id:z,"line-progress":null,properties:C,at:rt,get:it,has:at,in:st,"index-of":ot,length:lt,slice:ut,"!":Y,"!=":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t!==e)}},"<":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t<e)}},"<=":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t<=e)}},"==":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t===e)}},">":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t>e)}},">=":class extends ${static parse(t,e){return $.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:Z,coalesce:X,match:K,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:ft,"is-supported-script":null,"resolved-locale":null,upcase:ft,rgb:mt,rgba:gt,"to-rgba":dt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const r of t)e*=r;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const r of t)e+=r;return e})}},abs:pt,acos:pt,asin:pt,atan:pt,ceil:pt,cos:pt,e:pt,floor:pt,ln:pt,ln2:pt,log10:pt,log2:pt,max:pt,min:pt,pi:pt,round:pt,sin:pt,sqrt:pt,tan:pt,zoom:H,"heatmap-density":null,"has-id":ct,none:W};class xt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=Tt(t,null,L);return new xt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return xt.convertComparison("==",t[1],t[2]);case"!=":return xt.negate(xt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return xt.convertComparison(e,t[1],t[2]);case"in":return xt.convertIn(t[1],t.slice(2));case"!in":return xt.negate(xt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return xt.convertCombining(e,t.slice(1));case"has":return xt.convertHas(t[1]);case"!has":return xt.negate(xt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class It{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var Pt=r(40876);class Dt{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&Et[e[0]]){const r={number:D,color:A,string:S,boolean:L,enum:S};try{const n=Tt(e,null,"array"===t.type?M(r[t.value]||N,t.length):r[t.type]);this.getValue=this._buildExpression(n,t),this.isDataDriven=!0,n instanceof J&&n.input instanceof H&&(this.interpolator=n)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);const n=e?.stops&&e.stops.length>0;if(n)for(const r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),n)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else n?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Dt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,n)=>{try{const i=t.evaluate(n,r);return void 0===i?e.default:this._validate(i,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,n)=>{let i;return n&&(i=n.values[t.property]),void 0!==i&&(i=this._validate(i,e)),null!=i?i:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(r,n)=>{let i;return n&&(i=n.values[t.property]),i=this._categorical(i,t.stops),void 0!==i?i:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(r,n)=>{let i;return n&&(i=n.values[t.property]),"number"==typeof i?this._interval(i,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(r,n)=>{let i;return n&&(i=n.values[t.property]),"number"==typeof i?this._interpolate(i,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const r=e.length;for(let n=0;n<r;n++)if(e[n][0]===t)return e[n][1]}_interval(t,e){const r=e.length;let n=0;for(let i=0;i<r&&e[i][0]<=t;i++)n=i;return e[n][1]}_interpolate(t,e,r){let n,a;const s=e.length;for(let r=0;r<s;r++){const i=e[r];if(!(i[0]<=t)){a=i;break}n=i}if(n&&a){const e=a[0]-n[0],s=t-n[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(n[1])){const t=n[1],e=a[1],r=[];for(let n=0;n<t.length;n++)r.push((0,i.GW)(t[n],e[n],o));return r}return(0,i.GW)(n[1],a[1],o)}return n?n[1]:a?a[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,Pt.Vm)(t)??void 0:t instanceof T.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}class St{constructor(t,e,r,n,i=null){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"]??e.source,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=n,this.sourceType=i,t){case 0:this._layoutDefinition=It.backgroundLayoutDefinition,this._paintDefinition=It.backgroundPaintDefinition;break;case 1:this._layoutDefinition=It.fillLayoutDefinition,this._paintDefinition=It.fillPaintDefinition;break;case 2:this._layoutDefinition=It.lineLayoutDefinition,this._paintDefinition=It.linePaintDefinition;break;case 3:this._layoutDefinition=It.symbolLayoutDefinition,this._paintDefinition=It.symbolPaintDefinition;break;case 4:this._layoutDefinition=It.circleLayoutDefinition,this._paintDefinition=It.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=xt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let n;const i=this._layoutProperties[t];return i&&(n=i.getValue(e,r)),void 0===n&&(n=this._layoutDefinition[t].default),n}getPaintValue(t,e,r){let n;const i=this._paintProperties[t];return i&&(n=i.getValue(e,r)),void 0===n&&(n=this._paintDefinition[t].default),n}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,n,i,a,s,o){return!1}getFeatureInflatedBounds(t,e,r,n){return null}_parseLayout(t){const e={};for(const r in t){const n=this._layoutDefinition[r];n&&(e[r]=new Dt(n,t[r]))}return e}_parsePaint(t){const e={};for(const r in t){const n=this._paintDefinition[r];n&&(e[r]=new Dt(n,t[r]))}return e}computeAttributesKey(t,e,r,n){let i=0,a=0;for(const t of e){let e=3;if(t&&t!==n){const n=r[t],{isLayout:i,isOptional:a}=n,s=i?this.getLayoutProperty(t):this.getPaintProperty(t);e=s?.interpolator?2:s?.isDataDriven?1:a&&!s?3:0}a|=e<<i,i+=2}return a<<3|t}}class Lt extends St{constructor(t,e,r,n,i=null){super(t,e,r,n,i),this.backgroundMaterial=new y(this.computeAttributesKey(0,y.ATTRIBUTES,y.ATTRIBUTES_INFO))}}class At extends St{constructor(t,e,r,n,i=null){super(t,e,r,n,i);const a=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=a?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||o?.isDataDriven;const l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l?.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!a&&a.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new m(this.computeAttributesKey(1,m.ATTRIBUTES,m.ATTRIBUTES_INFO)),this.outlineMaterial=new g(this.computeAttributesKey(2,this.outlineUsesFillColor?g.ATTRIBUTES_FILL:g.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?g.ATTRIBUTES_INFO_FILL:g.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,n){const i=Bt(t);if(!i)return null;const a=this.getPaintValue("fill-translate",e,t),s=n*Math.max(a[0],a[1]);return i[0]-=s,i[2]-=s,i[1]+=s,i[3]+=s,i}isIntersectingFeature(t,e,r,n,a,s,o,l){const u=n.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio,h=c/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const p=(0,i.yM)(this.getPaintValue("fill-translate",a,n),this.getPaintValue("fill-translate-anchor",a,n),s,h);return t-=c*p.x,e-=c*p.y,!!(0,i.s3)(t,e,u)||(0,i.ru)(t,e,u,r)}}class Rt extends St{constructor(t,e,r,n,i=null){super(t,e,r,n,i);const a=this.getPaintProperty("line-pattern");if(this.lineMaterial=new d(this.computeAttributesKey(3,d.ATTRIBUTES,d.ATTRIBUTES_INFO,a?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<1.05){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case 0:default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}getFeatureInflatedBounds(t,e,r,n){const i=Bt(t);if(!i)return null;const a=this.getPaintValue("line-translate",e,t),s=n*Math.max(a[0],a[1]);i[0]-=s,i[2]-=s,i[1]+=s,i[3]+=s;const o=n*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=n*(this.getPaintValue("line-width",e,t)/2);return i[0]-=o+l,i[1]-=o+l,i[2]+=o+l,i[3]+=o+l,i}isIntersectingFeature(t,e,r,n,a,s,o,l){let u=n.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio,h=c/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const p=(0,i.yM)(this.getPaintValue("line-translate",a,n),this.getPaintValue("line-translate-anchor",a,n),s,h);t-=c*p.x,e-=c*p.y;const y=h*this.getPaintValue("line-offset",a,n)||0;0!==y&&(u=(0,i.cP)(u,-y));const f=this.getPaintValue("line-width",a,n);return(0,i.ru)(t,e,u,h*(f/2)+r)}}class Nt extends St{constructor(t,e,r,n,i=null){super(t,e,r,n,i),this.iconMaterial=new w(this.computeAttributesKey(4,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.textMaterial=new v(this.computeAttributesKey(6,v.ATTRIBUTES,v.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Mt extends St{constructor(t,e,r,n,i=null){super(t,e,r,n,i),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,n){const i=Bt(t);if(!i)return null;const a=this.getPaintValue("circle-translate",e,t),s=Math.max(a[0],a[1]);i[0]-=s,i[2]-=s,i[1]+=s,i[3]+=s;const o=n*(8*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return i[0]-=o,i[1]-=o,i[2]+=o,i[3]+=o,i}isIntersectingFeature(t,e,r,n,a,s,o,l){const u=n.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const h=(0,i.yM)(this.getPaintValue("circle-translate",a,n),this.getPaintValue("circle-translate-anchor",a,n),s,c),p=c*(this.getPaintValue("circle-radius",a,n)+this.getPaintValue("circle-stroke-width",a,n));let y,f;for(const n of u)if(n)for(const i of n)if(y=i.x+h.x,f=i.y+h.y,Math.sqrt((t-y)*(t-y)+(e-f)*(e-f))-r<=p)return!0;return!1}}class kt{constructor(t,e,r){let n;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),n=t.getLayoutProperty("icon-anchor"),n?.isDataDriven?this._anchorProp=n:this.anchor=t.getLayoutValue("icon-anchor",e),n=t.getLayoutProperty("icon-offset"),n?.isDataDriven?this._offsetProp=n:this.offset=t.getLayoutValue("icon-offset",e),n=t.getLayoutProperty("icon-padding"),n?.isDataDriven?this._paddingProp=n:this.padding=t.getLayoutValue("icon-padding",e),n=t.getLayoutProperty("icon-rotate"),n?.isDataDriven?this._rotateProp=n:this.rotate=t.getLayoutValue("icon-rotate",e),n=t.getLayoutProperty("icon-size"),n?.isDataDriven?this._sizeProp=n:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Ot{constructor(t,e,r){let n;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),n=t.getLayoutProperty("text-anchor"),n?.isDataDriven?this._anchorProp=n:this.anchor=t.getLayoutValue("text-anchor",e),n=t.getLayoutProperty("text-justify"),n?.isDataDriven?this._justifyProp=n:this.justify=t.getLayoutValue("text-justify",e),n=t.getLayoutProperty("text-letter-spacing"),n?.isDataDriven?this._letterSpacingProp=n:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),n=t.getLayoutProperty("text-line-height"),n?.isDataDriven?this._lineHeightProp=n:this.lineHeight=t.getLayoutValue("text-line-height",e),n=t.getLayoutProperty("text-max-angle"),n?.isDataDriven?this._maxAngleProp=n:this.maxAngle=t.getLayoutValue("text-max-angle",e),n=t.getLayoutProperty("text-max-width"),n?.isDataDriven?this._maxWidthProp=n:this.maxWidth=t.getLayoutValue("text-max-width",e),n=t.getLayoutProperty("text-offset"),n?.isDataDriven?this._offsetProp=n:this.offset=t.getLayoutValue("text-offset",e),n=t.getLayoutProperty("text-padding"),n?.isDataDriven?this._paddingProp=n:this.padding=t.getLayoutValue("text-padding",e),n=t.getLayoutProperty("text-rotate"),n?.isDataDriven?this._rotateProp=n:this.rotate=t.getLayoutValue("text-rotate",e),n=t.getLayoutProperty("text-size"),n?.isDataDriven?this._sizeProp=n:this.size=t.getLayoutValue("text-size",e),n=t.getLayoutProperty("text-writing-mode"),n?.isDataDriven?this._writingModeProp=n:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Bt(t){const e=t?.getGeometry();if(null==e)return null;let r=1/0,i=1/0,a=-1/0,s=-1/0;for(const t of e)if(t)for(const e of t)r=Math.min(r,e.x),i=Math.min(i,e.y),a=Math.max(a,e.x),s=Math.max(s,e.y);return(0,n.fA)(r,i,a,s)}},45013(t,e,r){r.d(e,{A:()=>a});var n=r(4718),i=r(4264);class a{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,n.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const r=this.getStyleLayerByUID(t),n=0!==r?.getLayoutValue("symbol-placement",e);let i=r?.getLayoutValue("icon-rotation-alignment",e);2===i&&(i=n?0:1);let a=r?.getLayoutValue("text-rotation-alignment",e);2===a&&(a=n?0:1);const s=r?.getPaintValue("icon-translate",e),o=r?.getPaintValue("icon-translate-anchor",e),l=r?.getPaintValue("text-translate",e),u=r?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:r?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:r?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:r?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:r?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:i,textRotationAlignment:a,iconTranslateAnchor:o,iconTranslate:s,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let n,i=!0;const s=this._layerByName[t.id];if(s){const o=this.layers.indexOf(s);e||(e=o),e===o?(i=!1,n=a._recreateLayer(t,s,this._getSourceType(t.source)),this.layers[e]=n,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),n=this._create(t,e,this.layers),this.layers.splice(e,0,n),r.layers.splice(e,0,t))}else n=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(n),r.layers.push(t)):(this.layers.splice(e,0,n),r.layers.splice(e,0,t));this._layerByName[t.id]=n,this._uidToLayer.set(n.uid,n),i&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const r=this._layerByName[t];if(!r)return;const n={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},i=a._recreateLayer(n,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=i,this._style.layers[s].paint=e,this._layerByName[r.id]=i,this._uidToLayer.set(r.uid,i)}setLayoutProperties(t,e){const r=this._layerByName[t];if(!r)return;const n={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},i=a._recreateLayer(n,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=i,this._style.layers[s].layout=e,this._layerByName[r.id]=i,this._uidToLayer.set(r.uid,i)}setStyleLayerVisibility(t,e){const r=this._layerByName[t];if(!r)return;const n=r.layout||{};n.visibility=e;const i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:n,paint:r.paint},s=a._recreateLayer(i,r,r.sourceType),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=n,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){const e="string"==typeof t?this._layerByName[t]:this._uidToLayer.get(t);if(!e)return!1;const r=e.getLayoutProperty("visibility");return!r||1!==r.getValue()}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){const t=[],e=[];let r=0;for(const n of this.layers){const i=n.layout;if(1===n.type){const e=n;let a=n.source+"|"+n.sourceLayer;a+="|"+(i?.visibility??""),a+="|"+n.minzoom,a+="|"+n.maxzoom,a+="|"+JSON.stringify(n.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(a+="|"+r),t.push({key:a,layer:n})}else if(2===n.type){const t=n,a=n.paint,s=null!=a&&(null!=a["line-pattern"]||null!=a["line-dasharray"]);let o=n.source+"|"+n.sourceLayer;o+="|"+(i?.visibility??""),o+="|"+n.minzoom,o+="|"+n.maxzoom,o+="|"+JSON.stringify(n.filter),o+="|"+(void 0!==i?i["line-cap"]:""),o+="|"+(void 0!==i?i["line-join"]:""),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:n})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,r;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const n=t.length;for(let i=0;i<n;i++){const a=t[i];if(a.key===e)a.layer.refLayerId=r;else if(e=a.key,r=a.layer.id,1===a.layer.type){if(!a.layer.getPaintProperty("fill-outline-color"))for(let s=i+1;s<n;s++){const n=t[s];if(n.key!==e)break;if(n.layer.getPaintProperty("fill-outline-color")){t[i]=n,t[s]=a,r=n.layer.id;break}}}else if(2===a.layer.type){let s=a.layer;for(let o=i+1;o<n;o++){const n=t[o];if(n.key!==e)break;const l=n.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[i]=n,t[o]=a,r=n.layer.id)}}}}_create(t,e,r){const n=1-(1+e)*(1/(r.length+1)),a=this._runningId++,s=this._getSourceType(t.source);switch(t.type){case"background":return new i.lf(0,t,n,a,s);case"fill":return new i.A4(1,t,n,a,s);case"line":return new i.tU(2,t,n,a,s);case"symbol":return new i.V1(3,t,n,a,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new i.L(4,t,n,a,s)}return null}_getSourceType(t){return this._style.sources?.[t]?.type??null}static _recreateLayer(t,e,r){switch(t.type){case"background":return new i.lf(0,t,e.z,e.uid,r);case"fill":return new i.A4(1,t,e.z,e.uid,r);case"line":return new i.tU(2,t,e.z,e.uid,r);case"symbol":return new i.V1(3,t,e.z,e.uid,r);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new i.L(4,t,e.z,e.uid,r)}return null}}},89518(t,e,r){r.d(e,{M9:()=>o,Ss:()=>l,fw:()=>c,lj:()=>a,ws:()=>u});const n=new Float32Array(1),i=new Uint32Array(n.buffer);function a(t){return function(t,e,r){return Math.round(Math.max(Math.min(t,r),e))}(t,-32768,32767)}function s(t){return n[0]=t,i[0]}function o(t,e){return 65535&t|e<<16}function l(t,e,r,n){return 255&t|(255&e)<<8|(255&r)<<16|n<<24}function u(t,e){return 255&t|(255&e)<<8}function c(t){const e=s(t),r=e>>>31;let n=e>>>23&255,i=8388607&e;return n-=127,n>15?r<<15|31744:n<-25?0:(n<-14&&(i+=8388608,i/=2**(-14-n),n=-15),n+=15,i/=8192,i=function(t){const e=Math.floor(t),r=t-e;return e<1023&&(r>.5||.5===r&&e%2==1)?e+1:e}(i),r<<15|n<<10|i)}},68572(t,e,r){r.d(e,{H:()=>s,q:()=>o}),r(44208);var n=r(23304),i=r(63907);function a(t){switch(t){case i.pe.BYTE:case i.pe.UNSIGNED_BYTE:return 1;case i.pe.SHORT:case i.pe.UNSIGNED_SHORT:case i.pe.HALF_FLOAT:return 2;case i.pe.FLOAT:case i.pe.INT:case i.pe.UNSIGNED_INT:return 4}}function s(t){const e=[],r=[],n=[];for(const i of t){const t=a(i.type)*i.count;switch(t%2||t%4||4){case 4:e.push(i);continue;case 2:r.push(i);continue;case 1:n.push(i);continue;default:throw new Error("Found unexpected dataType byte count")}}return e.push(...r),e.push(...n),e}class o{static fromVertexSpec(t,e){const r=t.attributes,n=t.optionalAttributes;let i,l,u;const c=[];for(const t in r){if(r[t].otherSource)continue;const e=r[t];"position"===e.pack?i={...e,name:t,offset:0}:"id"===e.pack?l={...e,name:t,offset:4}:"bitset"===t?u={...e,name:t,offset:7}:c.push({...e,name:t})}for(const t in n)if(!0===e[t]){const e=n[t];c.push({...e,name:t})}const h=s(c),p=[];let y=8,f=1;for(const t of h)p.push({...t,offset:y}),y+=a(t.type)*t.count,t.packAlternating&&(f=Math.max(t.packAlternating.count,f));const m=Uint32Array.BYTES_PER_ELEMENT,g=y%m;return new o(i,l,u,p,y+(g?m-g:0),f)}constructor(t,e,r,n,i,a){this.position=t,this.id=e,this.bitset=r,this.standardAttributes=n,this.stride=i,this.packVertexCount=a,n.push(r),this._attributes=[t,e,r,...n]}get attributeLayout(){if(!this._attributeLayout){const t=(0,n.hU)(this._attributes),e=this._attributes.map(t=>({name:t.name,count:t.count,offset:t.offset,type:t.type,packPrecisionFactor:t.packPrecisionFactor,normalized:t.normalized??!1}));this._attributeLayout={attributes:e,hash:t,stride:this.stride}}return this._attributeLayout}}},23304(t,e,r){r.d(e,{Ph:()=>a,Z0:()=>s,hU:()=>i});var n=r(799);function i(t){const e=t.map(({name:t,count:e,type:r})=>`${t}.${e}.${r}`).join(",");return(0,n.Wm)(e)}function a(t,e,r,n,i,s,o){if(t.primitiveName===e){let e=n?.readWithDefault(i,s,t[r]&&o);return"text"===t.type&&(e=e.toString()),void(t[r]=e)}if("type"in t&&null!=t.type){if(t.effects)for(const l of t.effects)a(l,e,r,n,i,s,o);switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.symbolLayers)for(const l of t.symbolLayers)a(l,e,r,n,i,s,o);break;case"CIMTextSymbol":t.symbol&&a(t.symbol,e,r,n,i,s,o);break;case"CIMHatchFill":t.lineSymbol&&a(t.lineSymbol,e,r,n,i,s,o);break;case"CIMPictureMarker":case"CIMCharacterMarker":case"CIMVectorMarker":if(t.markerPlacement&&a(t.markerPlacement,e,r,n,i,s,o),"CIMVectorMarker"===t.type&&t.markerGraphics)for(const l of t.markerGraphics)a(l,e,r,n,i,s,o),a(l.symbol,e,r,n,i,s,o)}}}function s(t){const e=Math.max(1.25*t.width,20);return null!=t.effects&&t.effects.length>0?400:e}},85079(t,e,r){r.d(e,{Sk:()=>s,Xk:()=>i,_u:()=>a});var n=r(21818);function i(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function a(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function s(t){return a(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,i,a=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=i,this.normalized=a,this.divisor=s,this.integer=o}}},63907(t,e,r){const n={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},a=Object.values(i),s={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.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:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(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,a,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,s,"pe",0,n,"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}])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4250],{32198(t,n,e){function r(t,n,e,r){var o,a=arguments.length,u=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(n,e,u):o(n,e))||u);return a>3&&u&&Object.defineProperty(n,e,u),u}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function u(t){function n(n){t.error=t.hasError?new a(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var a=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(a).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,e){var r=e(32198),o=e(69622),a=(e(44208),e(4718)),u=(e(53966),e(97768)),i=e(88620),s=e(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,i.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},s=new Map;for(const n in e){const u=e[n],i=r?.originOf(n),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;const l=this[n];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,a.TU)(l,t),null!=l&&null==f)continue;0===i?s.set(n,f):o[n]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const t=(0,i.oY)(c)?.store;if(t)for(const[n,e]of s)t.set(n,e,0)}return c}};return o=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],o),o},f=l(o.A);e.d(n,["OU",0,l,"Pw",0,f])},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,i,s){return[t,n,e,r,o,a,u,i,s]}e.d(n,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(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]]}e.d(n,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b){return[t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function i(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return a(1,1,1)}function c(){return a(1,0,0)}function l(){return a(0,1,0)}function f(){return a(0,0,1)}e.d(n,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],d=s(),M=c(),b=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:b,UNIT_Z:p,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:s,unitX:c,unitY:l,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,p,"Cw",0,M,"JP",0,b,"Un",0,d,"uY",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function s(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const l=[0,0,0,0],f=a(),h=u(),d=i(),M=s(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:d,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,l])},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function s(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,a])},77690(t,n,e){e.d(n,{B8:()=>i,Ge:()=>d,I0:()=>h,KC:()=>s,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,i,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function i(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s;let M=e*f+r*h+o*d;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*c)*M,t[2]=(i*r-o*u)*M,t[3]=h*M,t[4]=(l*e-o*s)*M,t[5]=(-i*e+o*a)*M,t[6]=d*M,t[7]=(-c*e+r*s)*M,t[8]=(u*e-r*a)*M,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8];return t[0]=u*l-i*c,t[1]=o*c-r*l,t[2]=r*i-o*u,t[3]=i*s-a*l,t[4]=e*l-o*s,t[5]=o*a-e*i,t[6]=a*c-u*s,t[7]=r*s-e*c,t[8]=e*u-r*a,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8];return n*(c*a-u*s)+e*(-c*o+u*i)+r*(s*o-a*i)}function l(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1],M=e[2],b=e[3],p=e[4],m=e[5],y=e[6],g=e[7],w=e[8];return t[0]=h*r+d*u+M*c,t[1]=h*o+d*i+M*l,t[2]=h*a+d*s+M*f,t[3]=b*r+p*u+m*c,t[4]=b*o+p*i+m*l,t[5]=b*a+p*s+m*f,t[6]=y*r+g*u+w*c,t[7]=y*o+g*i+w*l,t[8]=y*a+g*s+w*f,t}function f(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[3]=l-m,t[6]=h+p,t[1]=l+m,t[4]=1-c-M,t[7]=d-b,t[2]=h-p,t[5]=d+b,t[8]=1-c-f,t}function d(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(s*U-u*T-c*S)*q,t[2]=(u*x-i*U+c*O)*q,t[3]=(o*x-r*T-a*C)*q,t[4]=(e*T-o*U+a*S)*q,t[5]=(r*U-e*x-a*O)*q,t[6]=(b*I-p*A+m*v)*q,t[7]=(p*w-M*I-m*g)*q,t[8]=(M*A-b*w+m*y)*q,t):null}function M(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const b=l,p=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=n[0],d=n[1],M=n[2],b=n[3],p=n[4],m=n[5],y=n[6],g=n[7],w=n[8],v=(0,r.FD)();return Math.abs(e-h)<=v*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=v*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-M)<=v*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-m)<=v*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=v*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(o*o+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n},mul:b,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s,M=e*f+r*h+o*d;if(!M)return null;const b=1/M;return t[0]=f*b,t[1]=(-l*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(l*e-o*s)*b,t[5]=(-i*e+o*a)*b,t[6]=d*b,t[7]=(-c*e+r*s)*b,t[8]=(u*e-r*a)*b,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*u,t[1]=d*o+h*i,t[2]=d*a+h*s,t[3]=d*u-h*r,t[4]=d*i-h*o,t[5]=d*s-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:M,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=s,t[6]=h*r+d*u+c,t[7]=h*o+d*i+l,t[8]=h*a+d*s+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>m,$h:()=>C,B8:()=>l,C:()=>a,D_:()=>i,N9:()=>g,O7:()=>U,Qw:()=>c,Tl:()=>h,X_:()=>I,e$:()=>M,eL:()=>b,hM:()=>y,hZ:()=>u,hs:()=>d,kN:()=>p,l:()=>O,lw:()=>f,mg:()=>s,o1:()=>S,sC:()=>A,t2:()=>q,t5:()=>x,tZ:()=>D,ut:()=>_});var r=e(51850),o=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=M,t[14]=b,t[15]=p,t}function i(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,n){if(t===n){const e=n[1],r=n[2],o=n[3],a=n[6],u=n[7],i=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=a,t[11]=n[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return l(t,n)||i(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(o*x-r*T-a*C)*q,t[2]=(b*I-p*A+m*v)*q,t[3]=(h*A-f*I-d*v)*q,t[4]=(s*U-u*T-c*S)*q,t[5]=(e*T-o*U+a*S)*q,t[6]=(p*w-M*I-m*g)*q,t[7]=(l*I-h*w+d*g)*q,t[8]=(u*x-i*U+c*O)*q,t[9]=(r*U-e*x-a*O)*q,t[10]=(M*A-b*w+m*y)*q,t[11]=(f*w-l*A-d*y)*q,t[12]=(i*S-u*C-s*O)*q,t[13]=(e*C-r*S+o*O)*q,t[14]=(b*g-M*v-p*y)*q,t[15]=(l*v-f*g+h*y)*q,t):null}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=n[9],d=n[10],M=n[11],b=n[12],p=n[13],m=n[14],y=n[15];let g=e[0],w=e[1],v=e[2],A=e[3];return t[0]=g*r+w*i+v*f+A*b,t[1]=g*o+w*s+v*h+A*p,t[2]=g*a+w*c+v*d+A*m,t[3]=g*u+w*l+v*M+A*y,g=e[4],w=e[5],v=e[6],A=e[7],t[4]=g*r+w*i+v*f+A*b,t[5]=g*o+w*s+v*h+A*p,t[6]=g*a+w*c+v*d+A*m,t[7]=g*u+w*l+v*M+A*y,g=e[8],w=e[9],v=e[10],A=e[11],t[8]=g*r+w*i+v*f+A*b,t[9]=g*o+w*s+v*h+A*p,t[10]=g*a+w*c+v*d+A*m,t[11]=g*u+w*l+v*M+A*y,g=e[12],w=e[13],v=e[14],A=e[15],t[12]=g*r+w*i+v*f+A*b,t[13]=g*o+w*s+v*h+A*p,t[14]=g*a+w*c+v*d+A*m,t[15]=g*u+w*l+v*M+A*y,t}function h(t,n,e){const r=e[0],o=e[1],a=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*a+n[12],t[13]=n[1]*r+n[5]*o+n[9]*a+n[13],t[14]=n[2]*r+n[6]*o+n[10]*a+n[14],t[15]=n[3]*r+n[7]*o+n[11]*a+n[15];else{const e=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7],d=n[8],M=n[9],b=n[10],p=n[11];t[0]=e,t[1]=u,t[2]=i,t[3]=s,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=M,t[10]=b,t[11]=p,t[12]=e*r+c*o+d*a+n[12],t[13]=u*r+l*o+M*a+n[13],t[14]=i*r+f*o+b*a+n[14],t[15]=s*r+h*o+p*a+n[15]}return t}function d(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let u=r[0],i=r[1],s=r[2],c=Math.sqrt(u*u+i*i+s*s);if(c<=(0,o.FD)())return void a(t,n);c=1/c,u*=c,i*=c,s*=c;const l=Math.sin(e),f=Math.cos(e),h=1-f,d=n[0],M=n[1],b=n[2],p=n[3],m=n[4],y=n[5],g=n[6],w=n[7],v=n[8],A=n[9],I=n[10],O=n[11],S=u*u*h+f,U=i*u*h+s*l,C=s*u*h-i*l,x=u*i*h-s*l,T=i*i*h+f,q=s*i*h+u*l,_=u*s*h+i*l,D=i*s*h-u*l,F=s*s*h+f;t[0]=d*S+m*U+v*C,t[1]=M*S+y*U+A*C,t[2]=b*S+g*U+I*C,t[3]=p*S+w*U+O*C,t[4]=d*x+m*T+v*q,t[5]=M*x+y*T+A*q,t[6]=b*x+g*T+I*q,t[7]=p*x+w*T+O*q,t[8]=d*_+m*D+v*F,t[9]=M*_+y*D+A*F,t[10]=b*_+g*D+I*F,t[11]=p*_+w*D+O*F,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[4],u=n[5],i=n[6],s=n[7],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=a*o+c*r,t[5]=u*o+l*r,t[6]=i*o+f*r,t[7]=s*o+h*r,t[8]=c*o-a*r,t[9]=l*o-u*r,t[10]=f*o-i*r,t[11]=h*o-s*r,t}function p(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function m(t,n,e){if(0===n)return i(t);let r=e[0],a=e[1],u=e[2],s=Math.sqrt(r*r+a*a+u*u);if(s<=(0,o.FD)())return null;s=1/s,r*=s,a*=s,u*=s;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=r*r*f+l,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+l,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,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 w(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=r+r,s=o+o,c=a+a,l=r*i,f=r*s,h=r*c,d=o*s,M=o*c,b=a*c,p=u*i,m=u*s,y=u*c;return t[0]=1-(d+b),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(l+b),t[6]=M+p,t[7]=0,t[8]=h+m,t[9]=M-p,t[10]=1-(l+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function A(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(s*s+c*c+l*l),t}function O(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function S(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3],s=o+o,c=a+a,l=u+u,f=o*s,h=o*c,d=o*l,M=a*c,b=a*l,p=u*l,m=i*s,y=i*c,g=i*l,w=r[0],v=r[1],A=r[2];return t[0]=(1-(M+p))*w,t[1]=(h+g)*w,t[2]=(d-y)*w,t[3]=0,t[4]=(h-g)*v,t[5]=(1-(f+p))*v,t[6]=(b+m)*v,t[7]=0,t[8]=(d+y)*A,t[9]=(b-m)*A,t[10]=(1-(f+M))*A,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function U(t,n,e,r,o){const a=n[0],u=n[1],i=n[2],s=n[3],c=a+a,l=u+u,f=i+i,h=a*c,d=a*l,M=a*f,b=u*l,p=u*f,m=i*f,y=s*c,g=s*l,w=s*f,v=r[0],A=r[1],I=r[2],O=o[0],S=o[1],U=o[2],C=(1-(b+m))*v,x=(d+w)*v,T=(M-g)*v,q=(d-w)*A,_=(1-(h+m))*A,D=(p+y)*A,F=(M+g)*I,R=(p-y)*I,j=(1-(h+b))*I;return t[0]=C,t[1]=x,t[2]=T,t[3]=0,t[4]=q,t[5]=_,t[6]=D,t[7]=0,t[8]=F,t[9]=R,t[10]=j,t[11]=0,t[12]=e[0]+O-(C*O+q*S+F*U),t[13]=e[1]+S-(x*O+_*S+R*U),t[14]=e[2]+U-(T*O+D*S+j*U),t[15]=1,t}function C(t,n,e,r,o,a,u){const i=1/(e-n),s=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(e+n)*i,t[9]=(o+r)*s,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function x(t,n,e,r){const a=n[0],u=n[1],s=n[2];let c=a-e[0],l=u-e[1],f=s-e[2];const h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(t);let d=1/Math.sqrt(c*c+l*l+f*f);c*=d,l*=d,f*=d;const M=r[0],b=r[1],p=r[2];let m=b*f-p*l,y=p*c-M*f,g=M*l-b*c;d=Math.sqrt(m*m+y*y+g*g),d?(d=1/d,m*=d,y*=d,g*=d):(m=0,y=0,g=0);let w=l*g-f*y,v=f*m-c*g,A=c*y-l*m;d=Math.sqrt(w*w+v*v+A*A),d?(d=1/d,w*=d,v*=d,A*=d):(w=0,v=0,A=0),t[0]=m,t[1]=w,t[2]=c,t[3]=0,t[4]=y,t[5]=v,t[6]=l,t[7]=0,t[8]=g,t[9]=A,t[10]=f,t[11]=0,t[12]=-(m*a+y*u+g*s),t[13]=-(w*a+v*u+A*s),t[14]=-(c*a+l*u+f*s),t[15]=1}function T(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function q(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function _(t){const n=(0,o.FD)(),e=t[0],r=t[1],a=t[2],u=t[4],i=t[5],s=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(r*r+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n}function D(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 F=f,R=T;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15];return t[0]=i*(h*m-d*p)-f*(s*m-c*p)+b*(s*d-c*h),t[1]=-(r*(h*m-d*p)-f*(o*m-a*p)+b*(o*d-a*h)),t[2]=r*(s*m-c*p)-i*(o*m-a*p)+b*(o*c-a*s),t[3]=-(r*(s*d-c*h)-i*(o*d-a*h)+f*(o*c-a*s)),t[4]=-(u*(h*m-d*p)-l*(s*m-c*p)+M*(s*d-c*h)),t[5]=e*(h*m-d*p)-l*(o*m-a*p)+M*(o*d-a*h),t[6]=-(e*(s*m-c*p)-u*(o*m-a*p)+M*(o*c-a*s)),t[7]=e*(s*d-c*h)-u*(o*d-a*h)+l*(o*c-a*s),t[8]=u*(f*m-d*b)-l*(i*m-c*b)+M*(i*d-c*f),t[9]=-(e*(f*m-d*b)-l*(r*m-a*b)+M*(r*d-a*f)),t[10]=e*(i*m-c*b)-u*(r*m-a*b)+M*(r*c-a*i),t[11]=-(e*(i*d-c*f)-u*(r*d-a*f)+l*(r*c-a*i)),t[12]=-(u*(f*p-h*b)-l*(i*p-s*b)+M*(i*h-s*f)),t[13]=e*(f*p-h*b)-l*(r*p-o*b)+M*(r*h-o*f),t[14]=-(e*(i*p-s*b)-u*(r*p-o*b)+M*(r*s-o*i)),t[15]=e*(i*h-s*f)-u*(r*h-o*f)+l*(r*s-o*i),t},copy:a,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],M=t[13],b=t[14],p=t[15];return(n*u-e*a)*(f*p-h*b)-(n*i-r*a)*(l*p-h*M)+(n*s-o*a)*(l*b-f*M)+(e*i-r*u)*(c*p-h*d)-(e*s-o*u)*(c*b-f*d)+(r*s-o*i)*(c*M-l*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],M=t[11],b=t[12],p=t[13],m=t[14],y=t[15],g=n[0],w=n[1],v=n[2],A=n[3],I=n[4],O=n[5],S=n[6],U=n[7],C=n[8],x=n[9],T=n[10],q=n[11],_=n[12],D=n[13],F=n[14],R=n[15],j=(0,o.FD)();return Math.abs(e-g)<=j*Math.max(1,Math.abs(e),Math.abs(g))&&Math.abs(r-w)<=j*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=j*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=j*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-I)<=j*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(s-O)<=j*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-U)<=j*Math.max(1,Math.abs(l),Math.abs(U))&&Math.abs(f-C)<=j*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(h-x)<=j*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-T)<=j*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(M-q)<=j*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(b-_)<=j*Math.max(1,Math.abs(b),Math.abs(_))&&Math.abs(p-D)<=j*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(m-F)<=j*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(y-R)<=j*Math.max(1,Math.abs(y),Math.abs(R))},exactEquals:q,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,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[1]=l+m,t[2]=h-p,t[3]=0,t[4]=l-m,t[5]=1-c-M,t[6]=d+b,t[7]=0,t[8]=h+p,t[9]=d-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],a=-n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=r*r+o*o+a*a+u*u;return f>0?(e[0]=2*(i*u+l*r+s*a-c*o)/f,e[1]=2*(s*u+l*o+c*r-i*a)/f,e[2]=2*(c*u+l*a+i*o-s*r)/f):(e[0]=2*(i*u+l*r+s*a-c*o),e[1]=2*(s*u+l*o+c*r-i*a),e[2]=2*(c*u+l*a+i*o-s*r)),w(t,n,e),t},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:U,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:p,fromXRotation:y,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:g,frustum:C,getRotation:O,getScale:I,getTranslation:A,hasIdentityRotation:D,identity:i,invert:l,invertOrIdentity:c,isOrthoNormal:_,lookAt:x,mul:F,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,o,a,u){const i=1/(n-e),s=1/(r-o),c=1/(a-u);return t[0]=-2*i,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]=(n+e)*i,t[13]=(o+r)*s,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const a=1/Math.tan(n/2);let u;return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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!=o&&o!==1/0?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),s=2/(u+i),c=2/(o+a);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]=-(u-i)*s*.5,t[9]=(o-a)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:M,rotateX:b,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o-c*r,t[1]=u*o-l*r,t[2]=i*o-f*r,t[3]=s*o-h*r,t[8]=a*r+c*o,t[9]=u*r+l*o,t[10]=i*r+f*o,t[11]=s*r+h*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o+c*r,t[1]=u*o+l*r,t[2]=i*o+f*r,t[3]=s*o+h*r,t[4]=c*o-a*r,t[5]=l*o-u*r,t[6]=f*o-i*r,t[7]=h*o-s*r,t},scale:d,set:u,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:R,subtract:T,targetTo:function(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=r[0],s=r[1],c=r[2];let l=o-e[0],f=a-e[1],h=u-e[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let M=s*h-c*f,b=c*l-i*h,p=i*f-s*l;return d=M*M+b*b+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,b*=d,p*=d),t[0]=M,t[1]=b,t[2]=p,t[3]=0,t[4]=f*p-h*b,t[5]=h*M-l*p,t[6]=l*b-f*M,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>a,C:()=>u,Cc:()=>U,DI:()=>A,Io:()=>y,Ln:()=>m,Om:()=>O,Qr:()=>f,Re:()=>c,S8:()=>I,T9:()=>b,WQ:()=>s,Z0:()=>C,_S:()=>d,aI:()=>R,ei:()=>x,fw:()=>q,gL:()=>T,hG:()=>g,hZ:()=>i,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>w,oW:()=>j,t2:()=>F,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function b(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function O(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2];return t[0]=o*s-a*i,t[1]=a*u-r*s,t[2]=r*i-o*u,t}function U(t,n,e,r){const o=n[0],a=n[1],u=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t}function C(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function x(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function T(t,n,e){return q(t,n,e[0],e[1],e[2],e[3])}function q(t,n,e,r,o,a){const u=n[0],i=n[1],s=n[2],c=r*s-o*i,l=o*u-e*s,f=e*i-r*u,h=r*f-o*l,d=o*c-e*f,M=e*l-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+l*b+2*d,t[2]=s+f*b+2*M,t}const _=(0,r.vt)(),D=(0,r.vt)();function F(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function R(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=n[0],i=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-s)<=c*Math.max(1,Math.abs(a),Math.abs(s))}function j(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=c,E=l,k=f,z=y,B=g,L=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){I(_,t),I(D,n);const e=O(_,D);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,a){const u=1-a,i=u*u,s=a*a,c=i*u,l=3*a*i,f=3*s*u,h=s*a;return t[0]=n[0]*c+e[0]*l+r[0]*f+o[0]*h,t[1]=n[1]*c+e[1]*l+r[1]*f+o[1]*h,t[2]=n[2]*c+e[2]*l+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:u,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=o*s-a*i,l=a*u-r*s,f=r*i-o*u,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:j,dist:z,distance:y,div:k,divide:f,dot:O,equals:R,exactEquals:F,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,a){const u=a*a,i=u*(2*a-3)+1,s=u*(a-2)+a,c=u*(a-1),l=u*(3-2*a);return t[0]=n[0]*i+e[0]*s+r[0]*c+o[0]*l,t[1]=n[1]*i+e[1]*s+r[1]*c+o[1]*l,t[2]=n[2]*i+e[2]*s+r[2]*c+o[2]*l,t},inverse:A,len:L,length:a,lerp:U,max:b,min:M,mul:E,multiply:l,negate:v,normalize:I,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:m,scaleTo:function(t,n){return p(t,t,n/L(t))},set:i,sign:d,sqrDist:B,sqrLen:N,squaredDistance:g,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:c,transformMat3:x,transformMat4:C,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:T,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,L,"jb",0,P,"lo",0,B,"uE",0,N])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>I,hG:()=>b,hZ:()=>a,hs:()=>d,jk:()=>l,m3:()=>m,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function i(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function f(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function d(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function m(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let u=e*e+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t[3]=i+r*(e[3]-i),t}function v(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*u,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*u,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*u,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*u,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=n[0],s=n[1],c=n[2],l=n[3],f=(0,r.FD)();return Math.abs(e-i)<=f*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-s)<=f*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const O=i,S=s,U=c,C=M,x=b,T=p,q=m;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:C,distance:M,div:U,divide:c,dot:g,equals:I,exactEquals:A,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:T,length:p,lerp:w,max:f,min:l,mul:S,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let o,a,u,i,s,c;do{o=2*e()-1,a=2*e()-1,s=o*o+a*a}while(s>=1);do{u=2*e()-1,i=2*e()-1,c=u*u+i*i}while(c>=1);const l=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*u*l,t[3]=n*i*l,t},round:h,scale:d,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:a,sqrDist:x,sqrLen:q,squaredDistance:b,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:O,subtract:i,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=e[3],l=c*r+i*a-s*o,f=c*o+s*r-u*a,h=c*a+u*o-i*r,d=-u*r-i*o-s*a;return t[0]=l*c+d*-u+f*-s-h*-i,t[1]=f*c+d*-i+h*-u-l*-s,t[2]=h*c+d*-s+l*-i-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,e){e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(49208);function o(t,n,e,o,a,u,i=Math.floor(t.length/3)){const s=(0,r.jd)(n,a);if(null==s)return!1;if(s===r.pO){if(t===o&&e===u)return!0;const n=e+3*i;for(let r=e,a=u;r<n;r++,a++)o[a]=t[r]??0;return!0}const c=e+3*i;for(let n=e,r=u;n<c;n+=3,r+=3)s(t,n,o,r);return!0}},49208(t,n,e){e.d(n,{Tp:()=>f,jd:()=>l,pO:()=>d});var r=e(34727),o=e(86211),a=e(73941),u=e(79258),i=e(34403),s=e(21325);const c={2:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},5:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},7:{5:null,7:d,9:null,10:d,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},3:{5:M,7:null,9:null,10:M,1:function(t,n,e,r){const o=t[n]/D,a=_-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),i=Math.cos(a)*u;e[r]=Math.cos(o)*i,e[r+1]=Math.sin(o)*i,e[r+2]=Math.sin(a)*u},6:null,8:null,0:null,3:d,11:function(t,n,e,r){M(t,n,e,r),p(e,r,e,r)},2:M,4:function(t,n,e,r){M(t,n,e,r),U(e,r,e,r)}},4:{5:C,7:null,9:null,10:C,1:function(t,n,e,r){C(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){C(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){C(t,n,e,r),p(e,r,e,r)},2:C,4:d},1:{5:S,7:null,9:null,10:S,1:d,6:null,8:null,0:null,3:function(t,n,e,r){S(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){S(t,n,e,r),p(e,r,e,r)},2:S,4:function(t,n,e,r){S(t,n,e,r),U(e,r,e,r)}},6:{5:null,7:O,9:null,10:O,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:v,6:w,8:g,0:null,3:b,11:p,2:d,4:U},11:{5:m,7:null,9:null,10:m,1:function(t,n,e,r){m(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){m(t,n,e,r),b(e,r,e,r)},11:d,2:m,4:function(t,n,e,r){m(t,n,e,r),U(e,r,e,r)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(x.source.spatialReference===t&&x.dest.spatialReference===n)return x;const e=h(t,x.source),r=h(n,x.dest);return 0===e&&0===r?(0,s.aI)(t,n)?x.projector=d:x.projector=null:x.projector=c[e][r],x}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?n.spatialReferenceId=1:(0,s.oT)(t)?n.spatialReferenceId=2:(0,s.K8)(t)?n.spatialReferenceId=3:(0,s.r1)(t)?n.spatialReferenceId=11:t.wkt===a.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===a.FY.wkt?n.spatialReferenceId=6:t.wkt===a.LJ.wkt?n.spatialReferenceId=8:(0,a.q8)(t)?n.spatialReferenceId=7:(0,a.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function d(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n]??0)}function M(t,n,e,r){e[r]=q*(t[n]/D),e[r+1]=q*(_-2*Math.atan(Math.exp(-t[n+1]/D))),e[r+2]=t[n+2]??0}function b(t,n,e,o){!function(t,n,e,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(T*t[n+1],-u,u),s=Math.sin(i);e[o++]=T*t[n]*a.radius,e[o++]=a.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]??0}(t,n,e,o,u.$O)}function p(t,n,e,r){e[r]=t[n]*F,e[r+1]=t[n+1]*F,e[r+2]=t[n+2]??0}function m(t,n,e,r){e[r]=t[n]*R,e[r+1]=t[n+1]*R,e[r+2]=t[n+2]??0}function y(t,n,e,r,o){const a=o+(t[n+2]??0),u=T*t[n],i=T*t[n+1],s=Math.cos(i)*a;e[r]=Math.cos(u)*s,e[r+1]=Math.sin(u)*s,e[r+2]=Math.sin(i)*a}function g(t,n,e,r){y(t,n,e,r,u.Sw.radius)}function w(t,n,e,r){y(t,n,e,r,u.sH.radius)}function v(t,n,e,r){y(t,n,e,r,u.$O.radius)}function A(t,n,e,o,a){const u=t[n],i=t[n+1],s=t[n+2]??0,c=Math.sqrt(u*u+i*i+s*s),l=(0,r.YN)(s/(0===c?1:c)),f=Math.atan2(i,u);e[o++]=q*f,e[o++]=q*l,e[o]=c-a}function I(t,n,e,r){A(t,n,e,r,u.Sw.radius)}function O(t,n,e,r){A(t,n,e,r,u.sH.radius)}function S(t,n,e,r){A(t,n,e,r,u.$O.radius)}function U(t,n,e,r){!function(t,n,e,r,o){const a=T*t[n],u=T*t[n+1],i=t[n+2]??0,s=Math.sin(u),c=Math.cos(u),l=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(l+i)*c*Math.cos(a),e[r++]=(l+i)*c*Math.sin(a),e[r++]=(l*(1-o.eccentricitySquared)+i)*s}(t,n,e,r,u.$O)}function C(t,n,e,r){const o=i.TP,a=t[n],s=t[n+1],c=t[n+2]??0;let l,f,h,d,M,b,p,m,y,g,w,v,A,I,O,S,U,C,x,T,_;l=Math.abs(c),f=a*a+s*s,h=Math.sqrt(f),d=f+c*c,M=Math.sqrt(d),T=Math.atan2(s,a),b=c*c/d,p=f/d,I=o.a2/M,O=o.a3-o.a4/M,p>.3?(m=l/M*(1+p*(o.a1+I+b*O)/M),x=Math.asin(m),g=m*m,y=Math.sqrt(1-g)):(y=h/M*(1-b*(o.a5-I-p*O)/M),x=Math.acos(y),g=1-y*y,m=Math.sqrt(g)),w=1-u.$O.eccentricitySquared*g,v=u.$O.radius/Math.sqrt(w),A=o.a6*v,I=h-v*y,O=l-A*m,U=y*I+m*O,S=y*O-m*I,C=S/(A/w+U),x+=C,_=U+S*C/2,c<0&&(x=-x),e[r++]=q*T,e[r++]=q*x,e[r]=_}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},T=(0,r.kU)(1),q=(0,r.KJ)(1),_=.5*Math.PI,D=u.$O.radius,F=D*Math.PI/180,R=180/(D*Math.PI);e.d(n,["w5",0,c])},98764(t,n,e){e.d(n,{lO:()=>l});var r=e(73941),o=e(16930),a=e(21325);const u=new o.A(r.fv),i=new o.A(r.FY),s=new o.A(r.LJ),c=new o.A(r.Ro);function l(t){const n=f.get(t);if(n)return n;let e=u;if(t)if(t===i)e=i;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?e=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=i:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=i.wkt.toUpperCase(),d=s.wkt.toUpperCase();e.d(n,["GD",0,u,"Y0",0,c])},34403(t,n,e){var r=e(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,e.d(n,["TP",0,u])},64798(t,n,e){e.r(n),e.d(n,{default:()=>j});var r=e(4576),o=e(34275),a=e(82534),u=e(35522);function i(){return new Float32Array(3)}function s(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,e){const r=new Float32Array(3);return r[0]=t,r[1]=n,r[2]=e,r}function l(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function d(){return c(0,1,0)}function M(){return c(0,0,1)}const b=l(),p=f(),m=h(),y=d(),g=M();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:y,UNIT_Z:g,ZEROS:b,clone:s,create:i,fromValues:c,ones:f,unitX:h,unitY:d,unitZ:M,zeros:l},Symbol.toStringTag,{value:"Module"}));var w=e(51850),v=e(16930),A=e(9762),I=e(63531),O=e(69846),S=e(48425),U=e(59418),C=e(37203);function x(t,n,e){return t?.attributeInfo.useElevation?n?function(t,n){const e=new Float64Array(n);for(let r=0;r<n;r++)e[r]=t[3*r+2];return e}(n,e):null:t?.attributeInfo.storageInfo?(0,U.m0)(t.attributeInfo.storageInfo,t.buffer,e,!0):null}function T(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function q(t){let n=0;for(const e of t||[])n|=1<<e;return n}var _=e(57005);class D{transform(t){const n=this._transform(t),e=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&e.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&e.push(t.values.buffer);return Promise.resolve({result:n,transferList:e})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const e=(0,U.wH)(n,t);if(null==e.vertexAttributes.position)return;const r=(0,U.MA)(n,e.vertexAttributes.position),o=e.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,s=new Float64Array(3*i);for(let t=0;t<i;t++)s[3*t]=r[3*t]*u[0]+a[0],s[3*t+1]=r[3*t+1]*u[1]+a[1],s[3*t+2]=r[3*t+2]*u[2]+a[2];return s}if("lepcc-xyz"===t.encoding)return(0,C.Me)(n).result}(t.schema,t.geometryBuffer);let e=n.length/3,o=null;const a=new Array,u=x(t.primaryAttributeData,n,e);null!=t.primaryAttributeData&&u&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const i=x(t.modulationAttributeData,n,e);null!=t.modulationAttributeData&&i&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:i});let s=function(t,n,e,r){const{rendererJSON:o,isRGBRenderer:a}=t;let u=null,i=null;if(n&&a)u=n;else if(n&&"pointCloudUniqueValueRenderer"===o?.type){i=S.A.fromJSON(o);const t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=(e?e(n[o]):n[o])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(r)){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===o?.type){i=O.A.fromJSON(o);const t=i.stops;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let n=1;n<t.length;n++)if(r<t[n].value){const e=(r-t[n-1].value)/(t[n].value-t[n-1].value);u[3*o]=t[n].color.r*e+t[n-1].color.r*(1-e),u[3*o+1]=t[n].color.g*e+t[n-1].color.g*(1-e),u[3*o+2]=t[n].color.b*e+t[n-1].color.b*(1-e);break}}}else if(n&&"pointCloudClassBreaksRenderer"===o?.type){i=I.A.fromJSON(o);const t=i.colorClassBreakInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o];for(let n=0;n<t.length;n++)if(r>=t[n].minValue&&r<=t[n].maxValue){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(e&&i?.colorModulation){const t=i.colorModulation.minValue,n=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=e[a],i=r>=n?1:r<=t?o:o+(1-o)*(r-t)/(n-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,u,i,e);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(r.Ru).map(t=>{const r=x(t,n,e),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(e),e=function(t,n,e,r,o){const a=t.length/3,u=function(t){return t.map(t=>{const{filterJSON:n}=t;switch(n.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(n.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:q(n.requiredClearBits),requiredMask:q(n.requiredSetBits)};default:return t}})}(r);let i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){const{clearMask:n,filterJSON:e,requiredMask:i,valuesSet:s}=u[t],c=o[t].values[r];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;s.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":(c&i)===i&&0===(c&n)||(a=!1);break;case"pointCloudReturnFilter":{const t=15&c,n=c>>>4&15,r=n>1,o=1===t,u=t===n;let i=!1;for(const t of e.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(e[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],n[3*i]=n[3*r],n[3*i+1]=n[3*r+1],n[3*i+2]=n[3*r+2],i++)}return i}(n,s,o,t.filterInfo,u)}for(const r of t.userAttributesData){const t=x(r,n,e);a.push({attributeInfo:r.attributeInfo,values:t})}3*e<s.length&&(s=s.slice(0,3*e)),function(t,n,e){if(0!==e)for(let r=0;r<n;r++)t[3*r+2]+=e}(n,e,t.elevationOffset);const c=F(n,e,_.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:s,attributes:a,pointIdFilterMap:o}}}function F(t,n,e,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,n))throw new Error("Can't reproject");const a=s(e.getCenter((0,w.vt)())),l=i(),f=i(),h=c(e.halfSizeX,e.halfSizeY,e.halfSizeZ);e.getQuaternionConjugate(R);const d=new Float32Array(3*n);for(let e=0;e<n;e++){let n=3*e;l[0]=t[n]-a[0],l[1]=t[n+1]-a[1],l[2]=t[n+2]-a[2],(0,u.gL)(f,l,R),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),d[n++]=l[0],d[n++]=l[1],d[n]=l[2]}return e.setHalfSize(h),d}const R=(0,a.vt)();function j(){return new D}},59418(t,n,e){e.d(n,{wH:()=>b,MA:()=>h,E5:()=>d,m0:()=>m});var r=e(49186),o=e(4718),a=e(53966),u=e(34275),i=e(37203);const s=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,n,e){let o="",a=0;for(;a<e;){const u=t[n+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const i=(31&u)<<6|63&t[n+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(15&u)<<12|(63&t[n+a+1])<<6|63&t[n+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(7&u)<<18|(63&t[n+a+1])<<12|(63&t[n+a+2])<<6|63&t[n+a+3];if(i>=65536){const t=55296+(i-65536>>10),n=56320+(1023&i);o+=String.fromCharCode(t,n)}else o+=String.fromCharCode(i);a+=4}}}return o}function l(t,n){const e={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<n.length;o++){const a=n[o],u=a.valueType||a.type,i=g[u];e.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return e.byteCount=r,e}function f(t,n,e){const o=[];let a,u,i=0;for(u=0;u<t;u+=1){if(a=n[u],a>0){if(o.push(c(e,i,a-1)),0!==e[i+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);i+=a}return o}function h(t,n){return new(0,y[n.valueType])(t,n.byteOffset,n.count*n.valuesPerElement)}function d(t,n){if(!t)return null;const e=t[n];return(0,u.IY)(t)?-32768===e?null:e:(0,u._G)(t)?e===u.h2?null:e:e!=e?null:e}function M(t,n,e){if(n!==t&&s().error(`Invalid ${e} buffer size\n expected: ${t}, actual: ${n})`),n<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:n})}function b(t,n){const e=l(t,n&&n.header);let r=e.byteCount;const o={isDraco:!1,header:e,byteOffset:e.byteCount,byteCount:0,vertexAttributes:{}},a=e.fields,u=null!=a.vertexCount?a.vertexCount:a.count;for(const t of n.ordering){if(!n.vertexAttributes[t])continue;const e={...n.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=e,r+=v(e.valueType)*e.valuesPerElement*u}const i=a.faceCount;if(n.faces&&i){o.faces={};for(const t of n.ordering){if(!n.faces[t])continue;const e={...n.faces[t],byteOffset:r,count:i};o.faces[t]=e,r+=v(e.valueType)*e.valuesPerElement*i}}const s=a.featureCount;if(n.featureAttributes&&n.featureAttributeOrder&&s){o.featureAttributes={};for(const t of n.featureAttributeOrder){if(!n.featureAttributes[t])continue;const e={...n.featureAttributes[t],byteOffset:r,count:s};o.featureAttributes[t]=e,r+=("UInt64"===e.valueType?8:v(e.valueType))*e.valuesPerElement*s}}return M(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function m(t,n,e,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(n));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(n));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(s().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(s().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const u=function(t,n,e){const a=null!=n.header?l(t,n.header):{byteOffset:0,byteCount:0,fields:{count:e}},u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let i=a.byteCount;for(let t=0;t<n.ordering.length;t++){const e=n.ordering[t],s=(0,o.o8)(n[e]);if(s.count=a.fields.count??0,"String"===s.valueType){if(s.byteOffset=i,s.byteCount=a.fields[e+"ByteCount"],"UTF-8"!==s.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:s.encoding});if(s.timeEncoding&&"ECMA_ISO8601"!==s.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:s.timeEncoding})}else{if(!w(s.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:s.valueType});{const t=v(s.valueType);i+=i%t!==0?t-i%t:0,s.byteOffset=i,s.byteCount=t*s.valuesPerElement*s.count}}i+=s.byteCount??0,u.entries[e]=s}return u.byteCount=i-u.byteOffset,u}(n,t,e);M(u.byteOffset+u.byteCount,n.byteLength,"attribute");const c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){const t=u.entries.attributeByteCounts,e=h(n,t),r=function(t,n){return new Uint8Array(t,n.byteOffset,n.byteCount)}(n,c);return c.timeEncoding?function(t,n,e){return f(t,n,e).map(t=>{const n=t?Date.parse(t):null;return null==n||Number.isNaN(n)?null:n})}(t.count,e,r):f(t.count,e,r)}return a?h(n,c):function(t,n){const e=h(t,n);if(e.length>=1024)return e;const r=new Array;return e.forEach((t,n)=>r.push(d(e,n))),r}(n,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},g={Float32:(t,n)=>new DataView(t,0).getFloat32(n,!0),Float64:(t,n)=>new DataView(t,0).getFloat64(n,!0),UInt8:(t,n)=>new DataView(t,0).getUint8(n),Int8:(t,n)=>new DataView(t,0).getInt8(n),UInt16:(t,n)=>new DataView(t,0).getUint16(n,!0),Int16:(t,n)=>new DataView(t,0).getInt16(n,!0),UInt32:(t,n)=>new DataView(t,0).getUint32(n,!0),Int32:(t,n)=>new DataView(t,0).getInt32(n,!0)};function w(t){return y.hasOwnProperty(t)}function v(t){return w(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,n,e){e.d(n,{Ax:()=>d,Me:()=>i,mb:()=>f});var r=e(49186);const o=!0;function a(t,n,e){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,e+0,10)),version:n.getUint16(e+10,o),checksum:n.getUint32(e+12,o)}}function u(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),minX:t.getFloat64(n+8,o),minY:t.getFloat64(n+16,o),minZ:t.getFloat64(n+24,o),maxX:t.getFloat64(n+32,o),maxY:t.getFloat64(n+40,o),maxZ:t.getFloat64(n+48,o),errorX:t.getFloat64(n+56,o),errorY:t.getFloat64(n+64,o),errorZ:t.getFloat64(n+72,o),count:t.getUint32(n+80,o),reserved:t.getUint32(n+84,o)}}function i(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:i}=a(t,n,e);if(e+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");const c=u(n,e);if(e+=88,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*c.count),f=[],h=[],d=[],M=[];if(e=s(t,e,f),e=s(t,e,h),e=s(t,e,d),e=s(t,e,M),e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let b=0,p=0;for(let t=0;t<f.length;t++){p+=f[t];let n=0;for(let e=0;e<h[t];e++){n+=d[b];const t=M[b];l[3*b]=Math.min(c.maxX,c.minX+2*c.errorX*n),l[3*b+1]=Math.min(c.maxY,c.minY+2*c.errorY*p),l[3*b+2]=Math.min(c.maxZ,c.minZ+2*c.errorZ*t),b++}}return{errorX:c.errorX,errorY:c.errorY,errorZ:c.errorZ,result:l}}function s(t,n,e){const r=[];n=c(t,n,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,n=c(t,n,o);for(let t=0;t<o.length;t++)e.push(o[t]+r[a])}return n}function c(t,n,e){const a=new DataView(t,n),u=a.getUint8(0),i=31&u,s=!!(32&u),c=(192&u)>>6;let l=0;if(0===c)l=a.getUint32(1,o),n+=5;else if(1===c)l=a.getUint16(1,o),n+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=a.getUint8(1),n+=2}if(s)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*i/8),h=new Uint8Array(t,n,f);let d=0,M=0,b=0;const p=-1>>>32-i;for(let t=0;t<l;t++){for(;M<i;)d|=h[b]<<M,M+=8,b+=1;e[t]=d&p,d>>>=i,M-=i,M+i>32&&(d|=h[b-1]>>8-M)}return n+b}function l(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),colorMapCount:t.getUint16(n+12,o),lookupMethod:t.getUint8(n+14),compressionMethod:t.getUint8(n+15)}}function f(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=l(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+e!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const n=new Uint8Array(t,e,3*i.colorMapCount),o=new Uint8Array(t,e+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){const e=o[t];a[3*t]=n[3*e],a[3*t+1]=n[3*e+1],a[3*t+2]=n[3*e+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+e!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,e).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(e+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=n.getUint8(e),a=n.getUint8(e+1),u=n.getUint8(e+2),s=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)s[3*t]=o,s[3*t+1]=a,s[3*t+2]=u;return s}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function h(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),scaleFactor:t.getUint16(n+12,o),bitsPerPoint:t.getUint8(n+14),reserved:t.getUint8(n+15)}}function d(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=h(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(i.count);if(8===i.bitsPerPoint){if(i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint8Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else if(16===i.bitsPerPoint){if(2*i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint16Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else{const n=[];if(c(t,e,n)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}return s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737],{20737(e,t,r){r.r(t),r.d(t,{default:()=>z});var i=r(32198),s=r(37838),n=r(11254),o=r(69540),a=r(7762),l=r(49186),d=r(36563),u=r(25728),c=r(17676),h=r(36708),p=r(91429),y=r(16930),m=r(55156),b=r(60950),f=r(89808),g=r(99959);const v=Symbol("isAnnotationFeatureGraphicOrigin");var M;class C extends g.A{get[(M=v,b.ym)](){return this.layer}get[m.e](){return this.layer}get[f.Q](){return this.layer}constructor(e,t){super(),this[M]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var F=r(4146),I=r(52136),S=r(18768),w=r(63074),A=r(69208),E=r(40775),Z=r(47685),T=r(10086),O=r(34287),x=r(8303),L=r(54310),j=r(25036),k=r(82935),_=r(4902),D=r(92474);let P=class extends((0,o.OU)((0,_.s)(D.x_))){constructor(e){super(e),this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??null}};(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],P.prototype,"graphicOrigin",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],P.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:Number})],P.prototype,"subtypeCode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"title",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],P.prototype,"visible",void 0),P=(0,i.Cg)([(0,p.$K)("esri.layers.support.AnnotationFeatureSublayer")],P);var V=r(60694),R=r(10873),q=r(15426),H=r(17036),$=r(30524),G=r(91908),U=r(97552),N=r(30291),B=r(36005);const J="annotation-feature-layer",Q=(0,H.p)(),W=a.A.ofType(P);let K=class extends((0,E.I)((0,T.j)((0,w.dM)((0,k.e)((0,Z.w6)((0,j.j)((0,L.J)((0,S.b)((0,O.q)((0,x.A)((0,u.M)((0,A.d)((0,I.p)((0,o.OU)(F.A))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new W,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){const t=e?.signal,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(c.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new l.A(`${J}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new l.A(`${J}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,q.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){const r=new W(t.subtypes.map(({code:e})=>new P({subtypeCode:e})).reverse());if(this.visibleLayers){const e=new Set(this.visibleLayers);r.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return r}readTitleFromService(e,t){const{url:r}=this,i=t.name||(0,V.qg)(r)?.title;switch(this.sublayerTitleMode){case"item-title":if(r)return(0,V.yG)(r,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,V.cr)(e),i?`${e} - ${(0,V.cr)(i)}`:e;break}}return i?(0,V.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(this.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,N.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:s}=await(0,c.qr)(Promise.all([r.e(893),r.e(7013),r.e(9714)]).then(r.bind(r,65515)),e),n=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,d.Bf)((0,c.u7)(e,()=>n.cancelLoad())??(0,d.hA)()),!1),await n.load({signal:e}),n}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){const e=(0,q.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,q.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(U.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features){const t=this.findSublayerForFeature(e);e.origin=t?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this}return i}async queryObjectIds(e,t){const r=await this.load();return r.source.queryObjectIds(U.A.from(e)??r.createQuery(),t)}async queryFeatureCount(e,t){const r=await this.load();return r.source.queryFeatureCount(U.A.from(e)??r.createQuery(),t)}async queryExtent(e,t){const r=await this.load();return r.source.queryExtent(U.A.from(e)??r.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,G.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,$.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,q.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new l.A(J+":unsupported-version","The feature service must be version 10.8 or above.");const e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(this.fieldsIndex.has("FeatureID")||this.fieldsIndex.has("FeatureGlobalID")||t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new l.A(J+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const r=[...t.layers||[],...t.tables||[]];return r.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,i.Cg)([(0,p.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],K.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,p.MZ)(R.es)],K.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"elementField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({...Q.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],K.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(Q.fieldsIndex)],K.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)(R.id)],K.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISAnnotationLayer"]})],K.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)(Q.outFields)],K.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)(R.M6)],K.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"referenceScale",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1,readOnly:!0})],K.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"statusField",void 0),(0,i.Cg)([(0,p.MZ)({type:W})],K.prototype,"sublayers",void 0),(0,i.Cg)([(0,B.w)("service","sublayers",["subtypes"])],K.prototype,"readSublayers",null),(0,i.Cg)([(0,p.MZ)({type:String})],K.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"symbolCollection",void 0),(0,i.Cg)([(0,B.w)("service","title",["name"])],K.prototype,"readTitleFromService",null),(0,i.Cg)([(0,B.w)("portal-item","title")],K.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],K.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"unplacedAnnotationsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:[Number],json:{write:{ignoreOrigin:!0}}})],K.prototype,"visibleLayers",null),K=(0,i.Cg)([(0,p.$K)("esri.layers.AnnotationFeatureLayer")],K);const z=K},40775(e,t,r){var i=r(32198),s=r(11254),n=r(49186),o=r(84952),a=r(91429),l=r(95250);function d(e,t){const r=e.indexOf(t);if(-1!==r)return e[r+1]}function u(e,t){const r=d(e,t);return r&&"string"==typeof r?JSON.parse(r):null}function c(e){const t=d(e,"ReferenceScale")??0;return"string"!=typeof t?t:parseFloat(t)}function h(e){return u(e,"SymbolCollection")??void 0}function p(e){return u(e,"StyleCollection")??void 0}r.d(t,["I",0,e=>{const t=e;let r=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new n.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");const t=(0,o.fj)(this.url,"queryDataElements"),r={f:"json",layers:this.layerId},{data:i}=await(0,s.A)(t,{...e,responseType:"json",query:r}),a=i.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!a)throw new n.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");const d=a.extensionProperties?.propertySetItems??[],u=c(d),y=(0,l.S)(h(d)),m=(0,l.S)(p(d));this.read({referenceScale:u,symbolCollection:y,styleCollection:m},{origin:"service"})}};return r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.DataElementMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>p,Zk:()=>c});var i=r(32198),s=r(65529),n=r(4718),o=r(91429),a=r(20816);const l=new s.bk;function d(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function c(e,t,r=null,i=!1){const s=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const h=Symbol();function p(e){return null!=e&&"object"==typeof e&&h in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,r){const i=new URL(e).host,s=a.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let s=class extends r{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,d=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),u=y(this),c=y(this)&&m(t,i,this.gdbVersion);if(!a||u&&!c||!l&&!d&&!s)return;const h=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=y(this),o=y(this)&&m(t,r,this.gdbVersion),a=y(this)&&!m(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},95250(e,t,r){function i(e){return s(e,{CIMRGBColor:n,CIMCharacterMarker:o})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);const r={};for(const[i,n]of Object.entries(e))r[i]=s(n,t);return r}return e}function n(e){const[t,r,i,s]=e.values;return[t,r,i,255*s/100]}function o(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}r.d(t,{S:()=>i})},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>l,w5:()=>d});var i=r(11254);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function d(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,s,"Z3",0,n])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5471,9397],{66344(t,e,s){s.d(e,{q:()=>o});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,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(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,a){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,o.size,0)),n>this._maxSize)return void this._notifyRemove(e,s,n,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return i||console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,0);const u=1+Math.max(a,-4)- -3;this._db.set(e,new r(s,n,u)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e){e=t.id+e;const s=this._db.get(e);if(!s)return;this._size-=s.size,t.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const t=this._notifyRemove(e,s.entry,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._clients.forEach(s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}})});const i={};this._clients.forEach(t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"});const n=Object.keys(e);n.sort((t,s)=>e[s]-e[t]),n.forEach(s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]);for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,s]of this._db)e.startsWith(t.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){const n=this._clients.get(t.split(a)[0])?.removeFunc,r=n?.(e,i,s);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const s=e??this;if(s.size<=t)return;const i=e?.id;let n=!0;for(;n;){n=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!i||r.startsWith(i))){const i=e??this._clients.get(r.split(a)[0]);if(this._purgeItem(r,o,i),s.size<=.9*t)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!i||n.startsWith(i)){const i=e??this._clients.get(n.split(a)[0]);if(this._purgeItem(n,r,i),s.size<=.9*t)return}}_purgeItem(t,e,s){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new n(0);class r{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}const a=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},9775(t,e,s){s.d(e,{A:()=>r});var i=s(62788),n=s(95488);class r{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new n.I,this._items=new Set}get length(){return(0,i.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,i.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const 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){const 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,i.gc)(this._observable),yield*this._items}}},69397(t,e,s){s.d(e,{Qf:()=>o,Qh:()=>r,lM:()=>n});var i=s(34275);function n(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=a(t[s],!1));return e}function r(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let s=h;for(let i=0;i<e;i++)s+=a(t[i]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=a(t[s]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?r(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?u(e,16):0:0),0)}function u(t,e){return h+t.length*e}const l=32,h=16,c=145},36745(t,e,s){s.d(e,{z:()=>o});var i=s(4718),n=s(51118),r=s(60408),a=s(92722);class o{static fromOptimized(t,e,s=1){return(new u).initialize(t,e,s)}static fromJSON(t){const[e,s]=h(t),i=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,s,i,n,1)}static fromOptimizedCIM(t,e,s=1){return(new d).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=h(t),n=(0,r.Pv)(t),a=(0,r.W0)(t);return(new p).initialize(s,i,n,a,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new d).initialize(new a.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new c).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new d).initialize(new a.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new p).initialize([],t,e,s,i)}asJSON(){const t=(0,n.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class u extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new u).initialize(new a.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],r=s[n-e+1],a=s[n]-t,o=s[n+1]-r;i+=Math.sqrt(a*a+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function h(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends o{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],r=t[0],a=t[1],o=n[0]-r,u=n[1]-a;s+=Math.sqrt(o*o+u*u)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new a.A([],[],t,e),{coords:i,lengths:n}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),n.length=0;else for(const s of this._paths){for(const n of s)i.push(n[0]),i.push(n[1]*this.yFactor),t&&i.push(n[2]),e&&i.push(n[this._mIndex]);n.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new c).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class d extends u{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new d).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends c{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new p).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},65864(t,e,s){s.d(e,{rS:()=>h,xD:()=>d});var i=s(5443),n=s(91075),r=s(48526),a=s(86738),o=s(39829),u=s(82799),l=s(60408);function h(t){return null==t?null:t instanceof n.A?t:(0,l.fT)(t)?a.A.fromJSON(t):(0,l.Rg)(t)?u.A.fromJSON(t):(0,l.Bi)(t)?o.A.fromJSON(t):(0,l.U9)(t)?r.A.fromJSON(t):(0,l.ZC)(t)?i.A.fromJSON(t):null}const c={esriGeometryPoint:a.A,esriGeometryPolyline:u.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:o.A};function d(t){return t&&c[t]||null}},78957(t,e,s){s.d(e,{d:()=>h,R:()=>F});class i{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:e,_compare:s}=this;e.push(t);let i=e.length-1>>>0;const n=e[i];for(;i>0;){const t=i-1>>1,r=e[t];if(!(s(r,n)<=0))break;e[t]=n,e[i]=r,i=t}}dequeue(){const{_data:t,_compare:e}=this,s=t[0],i=t.pop();if(0===t.length)return s;t[0]=i;let n=0;const r=t.length,a=t[0];let o,u,l=null;for(;;){const s=2*n+1,i=2*n+2;if(l=null,s<r&&(o=t[s],e(o,a)>0&&(l=s)),i<r&&(u=t[i],(null===l&&e(u,a)<=0||null!==l&&e(u,o)<=0)&&(l=i)),null===l)break;t[n]=t[l],t[l]=a,n=l}return s}}const n=(t,e)=>t<e?-1:t>e?1:0;var r=s(19419),a=s(537),o=s(12359),u=s(95108),l=s(12176);function h(t){if(0===t.totalSize)return null;const e=(0,a.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let i=0,n=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>n&&(n=s,i=e)}if(t.seekPath(i),0===t.pathSize)return null;t.seekPathStart();const u=(0,a.B$)(t);if(Math.abs(n)<=2*s*s)return[(u[0]+u[2])/2,(u[1]+u[3])/2];t.seekPathStart();const l=(0,o.w2)(t,(0,r.vt)());if(null===l)return null;if(t.totalPoints<4)return l;const h=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],_=[NaN,NaN,NaN,NaN];let m=!1,w=d(l,t,!0);0===w.distance&&(m=!0,h[0][0]=l[0],h[0][1]=l[1],w=d(l,t,!1)),f[0]=w.distance,_[0]=0;const F=[NaN,NaN];let S=!1,z=.25,P=-1,I=NaN;do{if(I=NaN,h[1]=p(t,y(u[0],u[2],z),0,e),isNaN(h[1][0])||isNaN(h[1][1])||(w=d(h[1],t,!1),I=w.distance),!isNaN(I)&&I>s&&c(h[1],t))S=!0,f[1]=I,_[1]=g(h[1],l);else if(!isNaN(I)&&I>P&&(P=I,F[0]=h[1][0],F[1]=h[1][1]),z-=.01,z<.1){if(!(P>=0))break;S=!0,f[1]=P,h[1][0]=F[0],h[1][1]=F[1],_[1]=g(h[1],l)}}while(!S);S=!1,z=.5,P=-1;let v=.01,b=1;do{if(I=NaN,h[2]=p(t,y(u[0],u[2],z),0,e),isNaN(h[2][0])||isNaN(h[2][1])||(w=d(h[2],t,!1),I=w.distance),!isNaN(I)&&I>s&&c(h[2],t))S=!0,f[2]=I,_[2]=g(h[2],l);else if(!isNaN(I)&&I>P)P=I,F[0]=h[2][0],F[1]=h[2][1];else if(I>P&&(P=I,F[0]=h[2][0],F[1]=h[2][1]),z=.5+v*b,v+=.01,b*=-1,z<.3||z>.7){if(!(P>=0))break;S=!0,f[2]=P,h[2][0]=F[0],h[2][1]=F[1],_[2]=g(h[2],l)}}while(!S);S=!1,z=.75,P=-1;do{if(I=NaN,h[3]=p(t,y(u[0],u[2],z),0,e),isNaN(h[3][0])||isNaN(h[3][1])||(w=d(h[3],t,!1),I=w.distance),!isNaN(I)&&I>s&&c(h[3],t))S=!0,f[3]=I,_[3]=g(h[3],l);else if(I>P&&(P=I,F[0]=h[3][0],F[1]=h[3][1]),z+=.01,z>.9){if(!(P>=0))break;S=!0,f[3]=P,h[3][0]=F[0],h[3][1]=F[1],_[3]=g(h[3],l)}}while(!S);const N=[0,1,2,3],R=m?0:1;let C;for(let t=R;t<4;t++)for(let t=R;t<3;t++){const e=_[t],s=_[t+1];x(e,s)>0&&(C=N[t],N[t]=N[t+1],N[t+1]=C,_[t]=s,_[t+1]=e)}let O=R,M=0,q=0;for(let t=R;t<4;t++){switch(t){case 0:q=2*f[N[t]];break;case 1:q=1.66666666*f[N[t]];break;case 2:q=1.33333333*f[N[t]];break;case 3:q=f[N[t]]}q>M&&(M=q,O=N[t])}return h[O]}function c(t,e){let s,i,n,r,a=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=r)n=e.x,r=e.y,i>t[1]!=r>t[1]&&((n-s)*(t[1]-i)-(r-i)*(t[0]-s)>0?a++:a--);return 0!==a}function d(t,e,s){if(s&&c(t,e))return{coord:t,distance:0};let i=1/0,n=0,r=0,a=[0,0],o=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=o){o=[e.x,e.y],(0,u.gR)(l,t,a,o);const s=g(t,l);s<i&&(i=s,n=l[0],r=l[1])}return{coord:[n,r],distance:Math.sqrt(i)}}function p(t,e,s,i){const n=[e,0];let a=1/0,o=1/0,u=!1,h=!1;const c=[[e,i[1]-1],[e,i[3]+1]],d=[0,0],p=[0,0],m=[0,0],y=[[0,0],[0,0]],g=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(y[0][0]=t.x,y[0][1]=t.y;t.nextPoint();y[0][0]=y[1][0],y[0][1]=y[1][1]){if(y[1][0]=t.x,y[1][1]=t.y,null===f(g,y))continue;if(p[0]=c[0][0],p[1]=c[0][1],m[0]=c[1][0],m[1]=c[1][1],0===_(g,p,m))continue;if(!(0,l.Ql)(c[0],c[1],y[0],y[1],d))continue;const e=d[1];a>o?e<a&&(a=e,u=!0):e<o&&(o=e,h=!0)}return u&&h?n[1]=(a+o)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||(t=(0,r.vt)());const[s,i]=e[0],[n,a]=e[1];return t[0]=Math.min(s,n),t[1]=Math.min(i,a),t[2]=Math.max(s,n),t[3]=Math.max(i,a),t}function _(t,e,s){let i=m(e,t),n=m(s,t);const r=t[0],a=t[1],o=t[2],u=t[3];if(i&n)return 0;if(!(i|n))return 4;const l=(i?1:0)|(n?2:0);do{const l=s[0]-e[0],h=s[1]-e[1];if(l>h)3&i?(1&i?(e[1]+=h*(r-e[0])/l,e[0]=r):(e[1]+=h*(o-e[0])/l,e[0]=o),i=m(e,t)):3&n?(1&n?(s[1]+=h*(r-s[0])/l,s[0]=r):(s[1]+=h*(o-s[0])/l,s[0]=o),n=m(s,t)):i?(4&i?(e[0]+=l*(a-e[1])/h,e[1]=a):(e[0]+=l*(u-e[1])/h,e[1]=u),i=m(e,t)):(4&n?(s[0]+=l*(a-s[1])/h,s[1]=a):(s[0]+=l*(u-s[1])/h,s[1]=u),n=m(s,t));else if(12&i?(4&i?(e[0]+=l*(a-e[1])/h,e[1]=a):(e[0]+=l*(u-e[1])/h,e[1]=u),i=m(e,t)):12&n?(4&n?(s[0]+=l*(a-s[1])/h,s[1]=a):(s[0]+=l*(u-s[1])/h,s[1]=u),n=m(s,t)):i?(1&i?(e[1]+=h*(r-e[0])/l,e[0]=r):(e[1]+=h*(o-e[0])/l,e[0]=o),i=m(e,t)):(1&n?(s[1]+=h*(r-s[0])/l,s[0]=r):(s[1]+=h*(o-s[0])/l,s[0]=o),n=m(s,t)),i&n)return 0}while(i|n);return l}function m(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function y(t,e,s){return t+(e-t)*s}function g(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function x(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}class w{constructor(t,e,s,i){this.x=t,this.y=e,this.cellSize=s,this.distancefromCellCenter=(0,u.Xf)(t,e,i),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function F(t){if(!t.nextPath()||!t.pathSize)return null;const e=(0,a.B$)(t),s=e[2]-e[0],n=e[3]-e[1];if(0===s||0===n)return[e[0]+s/2,e[1]+n/2];const r=Math.max(Math.min(s,n)/100,1),u=new i((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(s,n);let h=l/2,c=0,d=0;for(c=e[0];c<e[2];c+=l)for(d=e[1];d<e[3];d+=l)u.enqueue(new w(c+h,d+h,h,t));t.reset(),t.nextPath();const p=(0,o.IK)(t);if(null===p)return null;let f,_=new w(p[0],p[1],0,t);for(;u.size>0;)f=u.dequeue(),f.distancefromCellCenter>_.distancefromCellCenter&&(_=f),f.maxDistanceToPolygon-_.distancefromCellCenter<=r||(h=f.cellSize/2,u.enqueue(new w(f.x-h,f.y-h,h,t)),u.enqueue(new w(f.x+h,f.y-h,h,t)),u.enqueue(new w(f.x-h,f.y+h,h,t)),u.enqueue(new w(f.x+h,f.y+h,h,t)));return[_.x,_.y]}},62815(t,e,s){s.d(e,{N:()=>o,d:()=>u});var i=s(86211),n=s(73941),r=s(21325),a=s(52006);function o(t,e,s){const i=u(e,s);if(1!==i)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,i);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(const s of t.curvePaths)for(const t of s){const s=(0,a.yP)(t);s.length>2&&(s[2]*=e)}if(t.paths)for(const s of t.paths)for(const t of s)t.length>2&&(t[2]*=e)}}(t,i);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(const s of t.curveRings)for(const t of s){const s=(0,a.yP)(t);s.length>2&&(s[2]*=e)}if(t.rings)for(const s of t.rings)for(const t of s)t.length>2&&(t[2]*=e)}}(t,i);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const s of t.points)s.length>2&&(s[2]*=e)}(t,i);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,i);default:return}}function u(t,e){return null==t||null==e||(0,r.aI)(t,e)||(0,n.xP)(t)||(0,n.xP)(e)?1:(0,i.G9)(t)/(0,i.G9)(e)}},6557(t,e,s){s.r(e),s.d(e,{default:()=>L});var i=s(32198),n=s(21818),r=s(49186),a=s(71511),o=s(44208),u=s(53966),l=s(17676),h=s(563),c=s(39516),d=s(86211),p=s(16930),f=s(70328),_=s(19419),m=s(21325),y=s(90708),g=s(29441),x=s(56390),w=s(99352),F=s(8384),S=s(58727),z=s(95031),P=s(24460),I=s(64714),v=s(17754),b=s(20437),N=s(95466),R=s(30524),C=s(50639),O=s(42760),M=s(39412),q=s(63892),T=s(30661),A=s(28923),E=s(44320),G=s(35258),k=s(16630);const Z=new T.Z,D="__OBJECTID",B=new TextDecoder,Q=8e3;class W{constructor(t,e){this._files=t,this._createFileStream=e,this._fileIndex=0,this._streamIndex=0,this._streams=[],this._pending=new Set,this._resolvedCount=0}async next(t){for(await this._fill(t);this._pending.size>0;){(0,l.Te)(t),await this._fill(t);const e=await V(this._pending);if(this._pending.delete(e.read),this._resolvedCount++,null!=e.chunk)return e.chunk}return null}async _fill(t){for(this._removeDone();this._pending.size<8;){const e=this._getOrCreateNextStream(t);if(null==e)return;this._pending.add(e.read(t))}}_getOrCreateNextStream(t){const e=this._resolvedCount>=8?8:2;if(this._fileIndex<this._files.length&&this._streams.length<e){const e=this._files[this._fileIndex++],s=new J(e.id,this._createFileStream(e,t));return this._streams.push(s),s}return this._getNextStream()}_getNextStream(){const t=this._streams.length;for(let e=0;e<t;e++){const s=(this._streamIndex+e)%t,i=this._streams[s];if(i.canRead)return this._streamIndex=(s+1)%t,i}return null}_removeDone(){let t=this._streamIndex;for(let e=this._streams.length-1;e>=0;e--)this._streams[e].done&&(this._streams.splice(e,1),e<t&&t--);this._streamIndex=this._streams.length>0?t%this._streams.length:0}}function V(t){return Promise.race(Array.from(t,async t=>({read:t,chunk:await t})))}class J{constructor(t,e){this._fileId=t,this._stream=e,this._readCount=0,this._reachedEnd=!1}get canRead(){return!this._reachedEnd}get done(){return this._reachedEnd&&0===this._readCount}async read(t){this._readCount++;try{const e=await this._stream,s=await e.next(t);return null==s?(this._reachedEnd=!0,null):{fileId:this._fileId,chunk:s}}finally{this._readCount--}}}class L{constructor(){this._hasZ=!1,this._hasM=!1,this._queue=new h.QueueProcessor({concurrency:4,process:(t,e)=>this._executeQuery(t,e)}),this._streams=new Map,this._streamIdCounter=0,this._indexMap={},this._handles=new a.A}async load(t){const e=t.spatialReference?p.A.fromJSON(t.spatialReference):void 0;if(e&&!e.isWGS84&&!e.isWebMercator)throw new r.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");this._customParameters=t.customParameters,this._loadParameters=t,await this._updateProvider((0,z.M)(t.provider,null,()=>this._customParameters));const s=await this._provider.getMetadata(),i=await(0,O.nc)(s,{fields:t.fields?.map(t=>b.A.fromJSON(t)),geometryEncoding:t.geometryEncoding?(0,C.G)(t.geometryEncoding):null,geometryType:t.geometryType?(0,O.hG)(t.geometryType):null,displayOptimization:t.displayOptimization,spatialReference:e});if(this._hasZ=!!s?.hasZ,this._hasM=!!s?.hasM,!i.fields)throw new r.A("parquet:unsupported","Fields must be defined");let n;if(i.spatialReference&&i.geometryType){if(!i.spatialReference)throw new r.A("parquet:unsupported","SpatialReference must be defined");if(!i.spatialReference.isGeographic&&!i.spatialReference.isWebMercator)throw new r.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");i.spatialReference.isGeographic&&!i.spatialReference.isWGS84&&(u.A.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:i.spatialReference}),i.spatialReference=p.A.WGS84),n={geometry:i.geometryEncoding?{geometryType:(0,O.sA)(i.geometryType),spatialReference:i.spatialReference.toJSON(),encoding:i.geometryEncoding.toJSON()}:null,displayOptimization:i.displayOptimization}}this.setCustomParameters(t.customParameters),this._displayOptimization=i.displayOptimization,await this._provider.updateGeometryInfo(n),this._capabilities=nt(await this._getFileStatistics(),this._hasZ,this._hasM);const a=await this._provider.getFiles();if(!a.length)return{layerDefinition:{},capabilities:nt(null,this._hasZ,this._hasM)};const o=await a[0].file;i.file=o;const{fields:l}=i;if(null==l)throw new r.A("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",l);l.push(new b.A({name:D,type:"oid",alias:D}));for(const t of l){const e=o.getColumnId(t.name);null!=e&&(this._indexMap[t.name]=e)}const h=new N.A(l.map(t=>t.toJSON()));this._fieldsIndex=h;const c=(0,O.sA)(i.geometryType??"point");return this._metadata=G.i.createFeature({fieldsIndex:h.toJSON(),geometryType:c,hasZ:this._hasZ,hasM:this._hasM,featureIdInfo:{type:"object-id",fieldName:D},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:i.spatialReference,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:c,featureIdInfo:{type:"object-id",fieldName:D},hasM:this._hasM,hasZ:this._hasZ,spatialReference:i.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},this._fullExtent=s?.extent?s.extent:await this._tryDeriveParquetFullExtent(i),{capabilities:this._capabilities,layerDefinition:{fields:i.fields?.map(t=>t.toJSON()),drawingInfo:(0,I.F0)(c),extent:this._fullExtent??void 0,geometryType:c,geometryEncoding:i.geometryEncoding?.toJSON(),displayOptimization:i.displayOptimization}}}destroy(){this._provider.destroy(),this._queue.destroy();for(const{handle:t}of this._streams.values())t.remove();this._streams.clear(),this._indexMap={},this._handles.removeAll()}async reload(t){this.destroy(),await this.load(t)}set remoteClient(t){this._source=t.createInvokeProxy("")}setCustomParameters(t){this._customParameters=t}getIndexMap(){return this._indexMap}async updateFileProvider(t){this._loadParameters={...this._loadParameters,provider:t};const e=(0,z.M)(t,this._provider.getGeometryInfo(),()=>this._customParameters);await this._updateProvider(e)}async getDiagnosticsSnapshot(){const t=await this._provider.getFiles();return{files:await Promise.all(t.map(t=>t.getDiagnosticsSnapshot()))}}async getColumnIndex(t){return(await this._getFileInfoById(t.fileId)).getColumnIndex(t.rowGroupIndex,t.columnIndex)}async getOffsetIndex(t){return(await this._getFileInfoById(t.fileId)).getOffsetIndex(t.rowGroupIndex,t.columnIndex)}async queryFeatures(t,e){const s=await(0,S.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),function(t){return!!(t.objectIds?.length||t.outStatistics||t.orderByFields?.length||t.returnDistinctValues)}(s)||(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,Q):Q,s.resultOffset=s.resultOffset??0),s.outStatistics?this._queryStatistics(s,e):(s.returnDistinctValues&&(s.returnGeometry=void 0),(await this._enqueueQuery(s,e)).createQueryResponse())}async queryFeatureCount(t,e){const s=await(0,S.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),$(s)?(s.outFields=void 0,s.returnGeometry=void 0,(await this._enqueueQuery(s,e)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(t,e){const s=await(0,S.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),$(s)?(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,8e3):8e3,s.resultOffset=s.resultOffset??0,s.returnGeometry=void 0,s.outFields=void 0,(await this._enqueueQuery(s,e)).items.map(t=>t.getObjectId())):Array.from({length:await this._getFeatureCount()},(t,e)=>e)}async queryAttributeBins(t,e={}){throw new r.A("parquet:unsupported","queryAttributeBins not supported.")}async queryExtent(t,e){const s=await(0,S.T2)(t,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),this._fullExtent&&!$(s))return{count:await this._getFeatureCount(),extent:this._fullExtent};const i=(0,n.z)(this._metadata.spatialReference);s.returnGeometry=!0,s.outFields=void 0;const r=(0,f.hZ)((0,f.vt)(),f.qv),a=(0,f.vt)(),o=await this._enqueueQuery(s,e);let u=0;for(const t of o.items)t.getBounds(a)&&((0,f.RF)(r,a),u+=1);return{count:u,extent:(0,x.Wc)(r,i,s.outSR?(0,n.z)(s.outSR):i.toJSON(),i,!1)}}async queryStream(t,e){if(!e.signal)throw new Error("InternalError: AbortSignal must be passed");const s=await this._getCandidateFiles(t),i=new W(s,async(e,s)=>{const i=await e.file,n=await this._createParquetDisplayQuery(i,e.id,t);return i.executeQuery(n,Q,s)}),n=this._streamIdCounter++,r=(0,l.NY)(e.signal,t=>{const e=this._streams.get(n);null!=e&&(e.handle.remove(),this._streams.delete(n))});return this._streams.set(n,{stream:i,handle:r}),n}async getStreamNext(t,e){if(!e.signal)throw new Error("InternalError: AbortSignal must be passed");const s=this._streams.get(t);if(!s)return{result:null};const i=await s.stream.next(e.signal);if(null==i)return s.handle.remove(),this._streams.delete(t),{result:null};const n=i.chunk.serialize().buffer,r={fileId:i.fileId,buffer:n};return n instanceof ArrayBuffer?{result:r,transferList:[n]}:{result:r}}async getStreamNextFeatures(t,e){const{result:s}=await this.getStreamNext(t,e);if(null==s)return null;const i=(await(0,M.N)()).ParquetChunk.deserialize(new Uint8Array(s.buffer)),n=new k.s(this._metadata,this._indexMap,i,s.fileId),r=[];for(;n.next();){const t=(0,y.zv)(n.readGeometryWorldSpace(),n.geometryType,n.hasZ,n.hasM),e=n.readAttributes();r.push({attributes:e,geometry:t})}return{features:r}}async createPatch(t,e,s,i,n){if(!n.signal)throw new Error("InternalError: AbortSignal must be passed");const r=await this._getFileInfoById(t),a=await r.file;return(await a.createChunkPatch(e,s,i,n.signal)).serialize().buffer}async _updateProvider(t){const e=this._provider;this._handles.removeAll(),this._provider=t,this._handles.add([t.events.on("rangeRead",t=>{this._source.onRangeRead(t)}),t.events.on("sourceChanged",async()=>{await this.reload(this._loadParameters),await this._source.onSourceChange()})]),await(e?.destroy())}async _getCandidateFiles(t){const e=await this._provider.getFiles(),s=await this._getSpatialFilePruning(t);if(null==s)return e;const i=e.filter(t=>this._mayIncludeFileForSpatialPruning(t,s));return"xz"===s.type?function(t,e){return t.slice().sort((t,s)=>{const i=it(t,e),n=it(s,e);return i===n?0:i<n?-1:1})}(i,s):i}async _queryStatistics(t,e){const s=await(0,S.T2)({...t},null,this._queryEngineParams.spatialReference);if(s.returnGeometry=void 0,function(t,e){return!!t.outStatistics?.length&&!$(t)&&!t.groupByFieldsForStatistics?.length&&!t.orderByFields?.length&&!t.returnDistinctValues&&!t.returnAggIds&&t.outStatistics.every(t=>function(t,e){switch(t.statisticType){case"count":return"1"===t.onStatisticField||null!=e.get(t.onStatisticField);case"min":case"max":{const s=e.get(t.onStatisticField);return null!=s&&(0,R.WA)(s)}default:return!1}}(t,e))}(s,this._fieldsIndex)){const t=await this._getStatisticsFromFiles(s);if(t)return t}return(await this._enqueueQuery(s,e)).createQueryResponse()}async _getStatisticsFromFiles(t){const e=await this._provider.getFiles(),s={},i=[];for(const n of t.outStatistics??[]){const t=Y(n,e);if(!t.available)return null;s[n.outStatisticFieldName]=t.value,i.push(X(n,this._fieldsIndex))}return{fields:i,features:[{attributes:s}]}}async _getSpatialFilePruning(t){if("tile"!==t.type&&("arcade"!==t.type||null==t.extent))return null;const e=this._displayOptimization,s=e?.index;if(null==s)return null;const i=t.outSpatialReference.wkid;if(null==s.wkid||null==i)return null;const n=s.wkid,r=await(0,M.N)();switch(s.type){case"xz":return{type:"xz",fieldName:(0,q.FG)(s.code),intersects:(e,a)=>r.queryIntersectsXZStatistics(s.fullExtent,t.extent,i,n,s.maxLevel,e,a)};case"z":return{type:"xy",xFieldName:(0,q.FG)(s.xColumn),yFieldName:(0,q.FG)(s.yColumn),intersects:(e,s,a,o)=>r.queryIntersectsXYStatistics(t.extent,i,n,e,s,a,o)}}}_mayIncludeFileForSpatialPruning(t,e){switch(e.type){case"xz":{const s=st(t,e);return"null-only"!==s?.type&&("bounds"!==s?.type||e.intersects(s.minValue,s.maxValue))}case"xy":{const s=t.statistics.statistics.get(e.xFieldName),i=t.statistics.statistics.get(e.yFieldName);return"null-only"!==s?.type&&"null-only"!==i?.type&&("bounds"!==s?.type||"bounds"!==i?.type||e.intersects(s.minValue,s.maxValue,i.minValue,i.maxValue))}}}async _tryDeriveParquetFullExtent(t){if(!t.spatialReference)return null;if(null==this._fullExtent&&"location"===t.geometryEncoding?.type){const e=await this._provider.getFiles(),{xField:s,yField:n}=t.geometryEncoding,r=(0,f.hZ)((0,f.vt)(),f.qv);let a=!1;for(const t of e){const e=await t.file;for(const t of e.rowGroups()){const e={stack:[],error:void 0,hasError:!1};try{const o=(0,i.mS)(e,t.columnDescriptorForAttribute(s),!1),u=(0,i.mS)(e,t.columnDescriptorForAttribute(n),!1),l=(0,P.Hk)(o),h=(0,P.Hk)(u);if("bounds"===l?.type&&"bounds"===h?.type){const t=[l.minValue,h.minValue,l.maxValue,h.maxValue];(0,f.DC)(r,t),a=!0}t.free()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}return a?{xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:t.spatialReference?.toJSON()}:null}return null}async _getFileInfoById(t){const e=await this._provider.getFiles();for(const s of e)if(s.id===t)return s;throw new Error(`InternalError: File ${t} does not exist`)}async _getFileStatistics(){return{featureCount:await this._getFeatureCount(),byteLength:await this._getByteLength()}}async _getFile(t){return(await this._getFileInfoById(t)).file}async _createParquetQuery(t,e,s,i,n){const r=(await(0,M.N)()).Query.new();null!=s&&r.setPreFilterStart(s),null!=i&&r.setPreFilterCount(i),null!=n&&r.setPostFilterCount(n);const a=await this._getRequiredFields(t);r.setOutFields(a),(t.geometry||t.returnGeometry)&&r.setReturnGeometry(!0),r.setReturnZ(!!t.returnZ),r.setReturnM(!!t.returnM);const o=this._tryGetGeneralizedGeometryResolution(t);null!=o&&r.setSourceResolution(o);const u=t.geometry?.spatialReference??this._queryEngineParams.spatialReference,l=u.wkid;if(t.geometry&&((0,m.K8)(u)||(0,m.oT)(u))){const e=(0,_.C)((0,_.vt)(),_.qv);for(const s of(0,x.qo)(t.geometry))(0,_.DC)(e,s);r.setOutSpatialReference(l),r.setExtent({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]})}if(t.where){const{id:s,file:i}=e;await this._setWhereClause(r,await i,s,t.where)}return r}async _createParquetDisplayQuery(t,e,s){const i=(await(0,M.N)()).Query.new();if("tile"===s.type){i.setExtent(s.extent),i.setQuantizationTransform(s.transform);const t=this._sourceResolution(s.resolution,s.outSpatialReference);null!=t&&i.setSourceResolution(t)}else"arcade"===s.type&&null!=s.extent&&i.setExtent(s.extent);return i.setOutFields(s.outFields.filter(t=>null!=this._indexMap[t])),i.setOutSpatialReference(s.outSpatialReference.wkid),i.setReturnGeometry(s.returnGeometry),i.setReturnZ(s.returnZ),i.setReturnM(s.returnM),s.where&&await this._setWhereClause(i,t,e,s.where),i}async _getFeatureCount(){return(await this._provider.getFiles()).map(t=>t.statistics.rowCount).reduce((t,e)=>t+e,0)}async _getByteLength(){return(await this._provider.getFiles()).map(t=>t.statistics.byteSize).reduce((t,e)=>t+e,0)}_validateQuery(t){if(!this._capabilities.query.supportsStatistics&&t.outStatistics)throw new r.A("parquet:unsupported","Statistics queries are not supported",{query:t});if(!this._capabilities.query.supportsOrderBy&&t.orderByFields?.length)throw new r.A("parquet:unsupported","Queries using orderBy are not supported",{query:t});if(!this._capabilities.query.supportsDistinct&&t.returnDistinctValues)throw new r.A("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:t})}async _setWhereClause(t,e,s,i){const n=this._indexMap,a=this._fieldsIndex,o={getAttribute(t,i){const r=n[i];if(null==r){const e=a.get(i);if("__OBJECTID"===e?.name){const e=t.row+t.rowGroupStart;return(0,v.xb)(s,e)}return null}const o=e.readAttribute(t.rowGroup,t.row,r);if(null==o)return null;const u=a.get(i);return"esriFieldTypeString"===u.type||"esriFieldTypeDateOnly"===u.type||"esriFieldTypeTimeOnly"===u.type||"esriFieldTypeTimestampOffset"===u.type?B.decode(o):o}},u=await(0,c.GP)(i,this._fieldsIndex);if(!u.isStandardized)throw new r.A("sql-parse-error","expression is not standardized");const l=u.fieldNames.map(t=>a.get(t)).filter(t=>t&&null!=this._indexMap[t?.name]);t.setWhere(i),t.setWhereEvaluator((t,e,s)=>u.testFeatureCompiled({rowGroup:t,row:e,rowGroupStart:s},o,null)),t.setWhereFields(l.map(t=>t.name))}async*_streamFeatures(t,e,s,i,n){const r=await this._provider.getFiles();let a=0;for(const o of r){const r=a,u=a+o.statistics.rowCount;if(a+=o.statistics.rowCount,null!=e&&e>=u)continue;const l=null!=e?Math.max(e-r,0):null;let h=s;if(null!=s){const t=e??0,i=t+s,n=Math.max(t,r),a=Math.min(i,u);h=Math.max(a-n,0)}if(0===h)continue;const c=await this._createParquetQuery(t,o,l,h,i),d=await o.file,p=await d.executeQuery(c,Q),f=async()=>{const t=await p.next(n);if(!t)return null;const e=new k.s(this._metadata,this._indexMap,t,o.id);return et([new A.j(e,null,0,!1)],this._queryEngineParams)};let _=await f();for(;null!=_;)yield _,_=await f()}}async _queryFeaturesWithQueryEnginePagination(t,e){const s=[],i=this._streamFeatures(t,null,null,null,e);let n=await i.next();for(;!n.done;){const r=await n.value.executeQueryForOpaqueFeatures({...t,where:void 0},e);for(const t of r)s.push(t);n=await i.next()}return s}async _queryFeaturesWithUpfrontPagination(t,e){let s,i,n,r=t.resultOffset??0,a=t.resultRecordCount??Q;!function(t){for(const e in t){const s=e;if(j(s)&&null!==t[s])return!0}return!1}(t)?(r&&(s=r,r=0),i=t.resultRecordCount):function(t){for(const e in t){const s=e;if(H(s)&&null!==t[s])return!0}return!1}(t)||(n=r+a);const o=[],u=this._streamFeatures(t,s,i,n,e);let l=await u.next();for(;!l.done&&a>0;){const s=await l.value.executeQueryForOpaqueFeatures({...t,where:void 0},e);for(const t of s)if(r>0)r--;else if(o.push(t),--a<=0)return o;l=await u.next()}return o}_enqueueQuery(t,e){return this._queue.push(t,e)}async _executeQuery(t,e){if(t.objectIds?.length){const s=new Map;for(const e of t.objectIds){const t=(0,v.wY)(e),i=(0,v.gE)(e);let n=s.get(t);n||(n=[],s.set(t,n)),n.push(i)}const i=[];for(const[n,r]of s.entries()){const s=await this._executeFileIdQuery(t,n,r,e);for(const t of s)i.push(t)}return new F.G(i,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Z,featureIdInfo:this._queryEngineParams.featureIdInfo})}if("1=1"===t.where&&(t.where=null),t.resultOffset??=0,t.resultRecordCount??=await this._getFeatureCount(),t.resultRecordCount>2e7&&(!this._displayOptimization||!t.geometry))throw new r.A("parquet:cannot-execute-query","Unable to execute query, dataset is too large.");const s=!!t.orderByFields?.length||!!t.outStatistics?.length||!!t.returnDistinctValues,i=s?await this._queryFeaturesWithQueryEnginePagination(t,e):await this._queryFeaturesWithUpfrontPagination(t,e);return s||(t.resultOffset=0),new F.G(i,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Z,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(t,e,s,i){const n=await this._getRequiredFields(t),r=(await(0,M.N)()).Query.new();r.setOutFields(n),r.setReturnGeometry(!!t.returnGeometry),r.setReturnZ(!!t.returnZ),r.setReturnM(!!t.returnM),r.setIds(new Uint32Array(s));const a=await this._getFile(e),o=await a.executeQuery(r,Q,i);let u=await o.next(i),l=0;const h=[];for(;null!=u;){const t=new k.s(this._metadata,this._indexMap,u,e),s=new A.j(t,null,l++,!1);h.push(s),u=await o.next(i)}return et(h,this._queryEngineParams).executeQueryForOpaqueFeatures(t,i)}async _getRequiredFields(t){const e=new Set;if(t.outStatistics)for(const s of(0,g.g9)(this._fieldsIndex,t.outStatistics,t.groupByFieldsForStatistics))e.add(s);else if(t.outFields)for(const s of t.outFields)e.add(s);return(e.has("*")?this._fieldsIndex.fields.map(t=>t.name):Array.from(e)).filter(t=>null!=this._indexMap[t])}_tryGetGeneralizedGeometryResolution(t){if(!this._displayOptimization)return null;const e=t.outSR??this._queryEngineParams.spatialReference;if(!(0,m.K8)(e)&&!(0,m.oT)(e))return null;const s=t.quantizationParameters?.tolerance??t.maxAllowableOffset;return s?this._sourceResolution(s,e):null}_sourceResolution(t,e){const s=this._queryEngineParams.spatialReference,i=t*((0,d.GA)(e)/(0,d.GA)(s));return!Number.isFinite(i)||i<=0?null:i}}function U(t){switch(t){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":case"resultOffset":case"resultRecordCount":return!0;default:return!1}}function j(t){switch(t){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":return!0;default:return!1}}function H(t){switch(t){case"fullText":case"having":case"timeExtent":return!0;case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"resultOffset":case"geometry":case"resultRecordCount":return!1}return!1}function $(t){for(const e in t){const s=e;if(U(s)&&null!==t[s])return!0}return!1}function X(t,e){const s="exceedslimit"!==t.statisticType?e.get(t.onStatisticField):null,i="min"!==t.statisticType&&"max"!==t.statisticType||"esriFieldTypeDate"!==s?.type?"esriFieldTypeDouble":s.type;return{name:t.outStatisticFieldName,alias:t.outStatisticFieldName,type:i}}function Y(t,e){switch(t.statisticType){case"count":return function(t,e){if("count"!==t.statisticType)return{available:!1,value:null};if("1"===t.onStatisticField)return{available:!0,value:e.reduce((t,e)=>t+e.statistics.rowCount,0)};let s=0;for(const i of e){const e=i.statistics.statistics.get(t.onStatisticField);if(null==e||null==e.nullCount)return{available:!1,value:null};s+=i.statistics.rowCount-e.nullCount}return{available:!0,value:s}}(t,e);case"min":return K(t,e,Math.min);case"max":return K(t,e,Math.max);default:return{available:!1,value:null}}}function K(t,e,s){if("min"!==t.statisticType&&"max"!==t.statisticType)return{available:!1,value:null};let i=null;const n="min"===t.statisticType?"minValue":"maxValue";for(const r of e){const e=r.statistics.statistics.get(t.onStatisticField);if(null==e)return{available:!1,value:null};switch(e.type){case"null-only":continue;case"unknown":return{available:!1,value:null};case"bounds":{const t=tt(e[n]);if(null==t)return{available:!1,value:null};i=null==i?t:s(i,t);break}}}return{available:!0,value:i}}function tt(t){return"number"==typeof t&&Number.isFinite(t)?t:null}function et(t,e){const s=new E.I;for(const e of t)s.insert(e);return new x.do({...e,featureStore:s})}function st(t,e){return t.statistics.statistics.get(e.fieldName)??null}function it(t,e){const s=st(t,e);return"bounds"!==s?.type?Number.POSITIVE_INFINITY:s.maxValue-s.minValue}function nt(t,e,s){const i=t?.featureCount;let n=!1;return null!=i&&i<(0,o.A)("parquetlayer-full-query-feature-count")&&(n=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:s,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{...w.F,maxRecordCount:Q,supportsOrderBy:n,supportsDistinct:!0,supportsStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1}},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},95466(t,e,s){s.d(e,{A:()=>l});var i=s(49186),n=s(53966),r=s(12195),a=s(30524),o=s(98623),u=s(56400);class l{static fromJSON(t){return new l(t.fields,t.timeZoneByFieldName)}static fromLayer(t){return new l(t.fields??[],c(t))}static fromLayerJSON(t){return new l(t.fields??[],c(t))}constructor(t=[],e){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=t||[],this._timeZoneByFieldName=e?new Map(e):null;const s=[];for(const t of this.fields){const e=t?.name,i=(0,a.GZ)(e);if(e&&i){const n=(0,a.NF)(e);this._fieldsMap.set(e,t),this._fieldsMap.set(n,t),this._normalizedFieldsMap.set(i,t),s.push(`${n}:${t.type}:${this._timeZoneByFieldName?.get(e)}`),(0,a.vE)(t)?(this.dateFields.push(t),this._dateFieldsSet.add(t)):(0,a.WA)(t)&&(this._numericFieldsSet.add(t),this.numericFields.push(t)),(0,a.te)(t)||(0,a.Xz)(t)||(t.editable=null==t.editable||!!t.editable,t.nullable=null==t.nullable||!!t.nullable)}}s.sort(),this.uid=s.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const t of this.fields)(0,a.te)(t)||(0,a.Xz)(t)||t.nullable||void 0!==(0,a.lD)(t)||this._requiredFields.push(t)}return this._requiredFields}equals(t){return this.uid===t?.uid}has(t){return null!=this.get(t)}get(t){return(0,a.Vb)({fieldName:t,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(t){const e=this.get(t&&"string"!=typeof t?t.name:t);return e?this._timeZoneByFieldName?this._timeZoneByFieldName.get(e.name):"date"===e.type||"esriFieldTypeDate"===e.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${e.name}'`)),"UTC"):h.has(e.type)?o.L:null:null}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isTimeOnlyField(t){return(0,a.OH)(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){return this.get(t)?.name??void 0}toJSON(){return{fields:this.fields.map(t=>(0,r.W)(t)?t.toJSON():t),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(t){const e=new Map;if(!t.fields)return e;const s=!0===t.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=t,r=(i?"startField"in i?i.startField:i.startTimeField:"")??"",l=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(t){return"dateFieldsTimeZone"in t}(t)?t.dateFieldsTimeZone??null:t.dateFieldsTimeReference?(0,u.ZS)(t.dateFieldsTimeReference):null,d=n?function(t){return"timeZone"in t}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,u.ZS)(n.dateFieldsTimeReference):c??"UTC":null,p=i?function(t){return"timeZone"in t}(i)?i.timeZone??c:i.timeReference?(0,u.ZS)(i.timeReference):c:null,f=new Map([[(0,a.NF)(n?.creationDateField??""),d],[(0,a.NF)(n?.editDateField??""),d],[(0,a.NF)(r),p],[(0,a.NF)(l),p]]);for(const{name:i,type:n}of t.fields)if(h.has(n))e.set(i,o.L);else if("date"!==n&&"esriFieldTypeDate"!==n)e.set(i,null);else if(s)e.set(i,o.L);else{const t=f.get((0,a.NF)(i??""))??c;e.set(i,t)}return e}}}]);