@arcgis/core 5.1.0-next.25 → 5.1.0-next.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PopupTemplate.d.ts +12 -8
- package/README.md +4 -5
- package/applications/Components/testUtils.js +1 -1
- package/applications/Components/viewUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{7a2e9626d0853a6d1547.js → 01e4cc34be6265843258.js} +1 -1
- package/assets/esri/core/workers/chunks/0389ebb63510dd7024de.js +2 -0
- package/assets/esri/core/workers/chunks/03e20ac54d6f141b5001.js +1 -0
- package/assets/esri/core/workers/chunks/049ec6dcb5d9519029fe.js +1 -0
- package/assets/esri/core/workers/chunks/{54794b18edc584fd7515.js → 07528211e59740c47aaa.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e32e7b2ea2ea1a1fc04.js → 1069b92c2c5fe5f0398b.js} +1 -1
- package/assets/esri/core/workers/chunks/17078f4ab1b3e33c80b4.js +1 -0
- package/assets/esri/core/workers/chunks/23079a2e584fca0bdb66.js +1 -0
- package/assets/esri/core/workers/chunks/{6fde745f3a62e7f5a97d.js → 36fd18a05ba503e6f3b5.js} +1 -1
- package/assets/esri/core/workers/chunks/{a78ac951c00f090d9024.js → 3a018c78859b5edec4fd.js} +1 -1
- package/assets/esri/core/workers/chunks/{abc2471cfa9430ca5645.js → 3a8f2f6ac3c3e7e71c00.js} +1 -1
- package/assets/esri/core/workers/chunks/{7189e03cc24f5c10865a.js → 4490f8eeeb2ee04daa9d.js} +2 -2
- package/assets/esri/core/workers/chunks/{593e9c8ac3b3b02deeb9.js → 4b4cf6efde26dd80f4ad.js} +1 -1
- package/assets/esri/core/workers/chunks/4e9b3b4b3dcce94c99a5.js +1 -0
- package/assets/esri/core/workers/chunks/{14792047c5519dd89828.js → 541619f434b643f0526d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4fc6dd1423075e145b29.js → 5fff383615ba93adbf36.js} +1 -1
- package/assets/esri/core/workers/chunks/{25bc7c7bc2793d209640.js → 776c0c38b9179dda00b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e6f51f66b71e0d6525ec.js → 8dcc8df5925f66e45b8c.js} +1 -1
- package/assets/esri/core/workers/chunks/8eae33c4d8932b7a6bc1.js +1 -0
- package/assets/esri/core/workers/chunks/{f5c5a9e771074f780fc8.js → 94563b007647a9c4ad76.js} +1 -1
- package/assets/esri/core/workers/chunks/{0140dc583e20b031eac9.js → 952ff668d202e80b43b0.js} +1 -1
- package/assets/esri/core/workers/chunks/a061a17b62686f945e81.js +1 -0
- package/assets/esri/core/workers/chunks/{835d6dd8c5a00682d879.js → a1eb8c6fd9a885cbaec9.js} +1 -1
- package/assets/esri/core/workers/chunks/{9e7eea56e96f012f9ff4.js → a7d06c1553dfb6e83fe6.js} +1 -1
- package/assets/esri/core/workers/chunks/b1ddc837a6805a09d0da.js +1 -0
- package/assets/esri/core/workers/chunks/b9d68a5dcb50999d3a90.js +1 -0
- package/assets/esri/core/workers/chunks/{f12f96770a45ce6d1ed7.js → c3a0b38abf0a12a466fa.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2661d39c48376163adf.js → c55c70dde682084867a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{2de299ff3a902d380be6.js → c814abf3e67d9eadbc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/c9bfe3d8416856c4a657.js +1 -0
- package/assets/esri/core/workers/chunks/e4faccd48060349b8da1.js +1 -0
- package/assets/esri/core/workers/chunks/{f1c1f7583fa13dff9b5c.js → e611f37bc22f75ce8a06.js} +44 -38
- package/assets/esri/core/workers/chunks/{deee88e3f1641c6ef5db.js → ee6f7c5d3c2f187645ff.js} +1 -1
- package/assets/esri/core/workers/chunks/ef29e9e575091ef3adbb.js +1 -0
- package/assets/esri/core/workers/chunks/{ef267b938327c41727c1.js → f89b7b0ccfbd1e5f9a0f.js} +1 -1
- package/assets/esri/core/workers/chunks/{c794f7be868e53ca4a8c.js → fb05f27710fb50691d7a.js} +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewerNavigationUI.scss +4 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ImageMaterial.glsl.js +7 -7
- package/chunks/MeasurementArrow.glsl.js +5 -8
- package/chunks/ShadowCastAccumulate.glsl.js +5 -10
- package/chunks/ShadowHighlight.glsl.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vec4.js +1 -1
- package/config.d.ts +2 -2
- package/config.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/geometry/support/buffer/math/common.js +1 -1
- package/geometry/support/buffer/math/vec3.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/support/FeatureReductionBinning.d.ts +3 -4
- package/layers/support/FeatureReductionBinning.js +1 -1
- package/layers/support/FeatureReductionCluster.d.ts +3 -4
- package/layers/support/FeatureReductionCluster.js +1 -1
- package/layers/support/featureReductionProperties.js +1 -1
- package/package.json +3 -3
- package/renderers/FlowRenderer.d.ts +6 -2
- package/support/actions/ActionBase.d.ts +5 -3
- package/support/actions/ActionBase.js +1 -1
- package/support/basemapDefinitions.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.d.ts +1 -1
- package/symbols/TextSymbol.d.ts +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/support/densifyForPreview.js +2 -0
- package/symbols/support/previewSymbol2D.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/LocalAtmosphere.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/environment/NoiseTextureAtlas.js +1 -1
- package/views/3d/environment/Precipitation.js +1 -1
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +12 -6
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
- package/views/layers/MediaLayerView.d.ts +90 -4
- package/views/layers/MediaLayerView.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +14 -19
- package/widgets/Features.d.ts +1 -1
- package/widgets/Measurement.d.ts +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/Arrow.js +1 -1
- package/widgets/Popup.d.ts +1 -1
- package/widgets/ValuePicker.d.ts +1 -1
- package/widgets/support/legacyIcon.js +1 -1
- package/assets/esri/core/workers/chunks/1be4e308280149eae4fb.js +0 -1
- package/assets/esri/core/workers/chunks/1dcd057695f8db79eca2.js +0 -1
- package/assets/esri/core/workers/chunks/1df8330823841b5bb6a5.js +0 -1
- package/assets/esri/core/workers/chunks/2063b49607a03f7718ee.js +0 -1
- package/assets/esri/core/workers/chunks/2b76a8897ad7ba284d33.js +0 -1
- package/assets/esri/core/workers/chunks/36da644678e6acf3bdb5.js +0 -1
- package/assets/esri/core/workers/chunks/4754610760f3f634adf9.js +0 -2
- package/assets/esri/core/workers/chunks/551fee27bf3abf0c41fd.js +0 -1
- package/assets/esri/core/workers/chunks/57b620d7e029747adca3.js +0 -1
- package/assets/esri/core/workers/chunks/74e3c224e879edb37812.js +0 -1
- package/assets/esri/core/workers/chunks/868c8a152cb1452b9a94.js +0 -1
- package/assets/esri/core/workers/chunks/e839c5f3a0213091a399.js +0 -1
- package/assets/esri/core/workers/chunks/feececf6809231f72c5a.js +0 -1
- package/views/layers/MediaLayerViewMixin.d.ts +0 -109
- package/views/layers/MediaLayerViewMixin.js +0 -2
- /package/assets/esri/core/workers/chunks/{4754610760f3f634adf9.js.LICENSE.txt → 0389ebb63510dd7024de.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{7189e03cc24f5c10865a.js.LICENSE.txt → 4490f8eeeb2ee04daa9d.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4560],{4560(e,r,s){s.d(r,{i0:()=>o,j4:()=>d,fs:()=>n});var a=s(97770),t=s(30524);s(7762),s(84952),s(27865),s(43281);var i=s(98623),c=s(56400);let l;function n(e){return(0,t.vE)(e)||(0,t.zD)(e)||(0,t.Ah)(e)}async function d(e,r){if(!e)return null;if(!l){const e=await Promise.all([s.e(9696),s.e(4800),s.e(5)]).then(s.bind(s,44123)).then(e=>e.WhereClauseCache);l=new e(50,500)}return l.get(e,r)}function o(e,r){const{format:s,fieldFormat:t,timeZoneOptions:l,fieldType:n}=r??{},d=t?(0,a._m)(t):null;let o,y;switch(l&&({timeZone:o,timeZoneName:y}=(0,c.hv)(l.layerTimeZone,l.datesInUnknownTimezone,l.viewTimeZone,d||(0,a.J2)(s||"short-date-short-time"),n)),n){case"date-only":{const r=d||(0,a.J2)(s||"short-date");return"string"==typeof e?(0,a.iS)(e,{...r}):(0,a.Yq)(e,{...r,timeZone:i.n$})}case"time-only":{const r=d||(0,a.J2)(s||"short-time");return"string"==typeof e?(0,a.F8)(e,r):(0,a.Yq)(e,{...r,timeZone:i.n$})}case"timestamp-offset":{const r=s||d||l?d||(0,a.J2)(s||"short-date-short-time"):void 0,t=r?{...r,timeZone:o,timeZoneName:y}:void 0;return"string"==typeof e?(0,a.Ey)(e,t):(0,a.Yq)(e,t)}default:{const r=s||d||l?d||(0,a.J2)(s||"short-date-short-time"):void 0;return(0,a.Yq)("string"==typeof e?new Date(e):e,r?{...r,timeZone:o,timeZoneName:y}:void 0)}}}new Set(["integer","small-integer"])},43281(e,r,s){s.d(r,{H:()=>c,q:()=>i});var a=s(2741),t=s(10838);async function i(e){if(!e)return;const r=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,s=await(0,t.ud)("esri/t9n/basemaps");return s[e]||s[r]}const c={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-hillshade",url:"https://services.arcgisonline.com/ArcGIS/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1},{id:"terrain-base",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/33064a20de0c48d2bb61efa8faca93a8/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Terrain Base"},{id:"terrain-reference",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/14fbc125ccc9488888b014db09f35f67/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Reference Reference",isReference:!0}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/94329802cbfa44a18f423e6f1a0b875c/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Trees_v1/SceneServer",itemId:"9d3d89d42cfe4e2c9d108a2f0d518406",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Trees_v1/SceneServer",itemId:"9d3d89d42cfe4e2c9d108a2f0d518406",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Buildings_v1/SceneServer",itemId:"cd33b09dde0a419c986ca1a78a5fc06d",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,a.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"dark-gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8487],{65686(e,t,s){s.d(t,{a:()=>f,b:()=>y,l:()=>h,n:()=>n,t:()=>u});var r=s(40876),i=(s(44208),s(53966));function f(e,t,s){u(e.typedBuffer,t.typedBuffer,s,e.typedBufferStride,t.typedBufferStride)}function u(e,t,s,r=4,i=r){if(e.length/r!==t.length/i)return;const f=e.length/r,u=s[0],n=s[1],c=s[2],h=s[3],y=s[4],d=s[5],l=s[6],p=s[7],o=s[8];let B=0,a=0;for(let s=0;s<f;s++){const s=t[B],f=t[B+1],E=t[B+2],T=t[B+3];e[a]=u*s+h*f+l*E,e[a+1]=n*s+y*f+p*E,e[a+2]=c*s+d*f+o*E,e[a+3]=T,B+=i,a+=r}}function n(e,t){const s=Math.min(e.count,t.count),r=e.typedBuffer,i=e.typedBufferStride,f=t.typedBuffer,u=t.typedBufferStride;for(let e=0;e<s;e++){const t=e*i,s=e*u,n=f[s],c=f[s+1],h=f[s+2],y=n*n+c*c+h*h;if(y>0){const e=1/Math.sqrt(y);r[t]=e*n,r[t+1]=e*c,r[t+2]=e*h}}}function c(e,t,s,r=4){const i=Math.min(e.length/r,t.count),f=t.typedBuffer,u=t.typedBufferStride;let n=0,c=0;for(let t=0;t<i;t++)e[c]=s*f[n],e[c+1]=s*f[n+1],e[c+2]=s*f[n+2],e[c+3]=s*f[n+3],n+=u,c+=r}function h(e,t,s,r){y(e.typedBuffer,t,s,r,e.typedBufferStride)}function y(e,t,s,i,f=4){const u=Math.min(e.length/f,t.count),n=t.typedBuffer,c=t.typedBufferStride;let h=0,y=0;const d=1/r.Tf;for(let t=0;t<u;t++)e[y]=i*(s*n[h])**d,e[y+1]=i*(s*n[h+1])**d,e[y+2]=i*(s*n[h+2])**d,e[y+3]=i*s*n[h+3],h+=c,y+=f}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:y,linearToSRGBView:h,normalize:n,scale:c,scaleView:function(e,t,s){c(e.typedBuffer,t,s,e.typedBufferStride)},transformMat3:u,transformMat3View:f,transformMat4:function(e,t,s,r=4,f=r){if(e.length/r!==t.length/f)return void i.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const u=e.length/r,n=s[0],c=s[1],h=s[2],y=s[3],d=s[4],l=s[5],p=s[6],o=s[7],B=s[8],a=s[9],E=s[10],T=s[11],m=s[12],S=s[13],A=s[14],g=s[15];let b=0,_=0;for(let s=0;s<u;s++){const s=t[b],i=t[b+1],u=t[b+2],x=t[b+3];e[_]=n*s+d*i+B*u+m*x,e[_+1]=c*s+l*i+a*u+S*x,e[_+2]=h*s+p*i+E*u+A*x,e[_+3]=y*s+o*i+T*u+g*x,b+=f,_+=r}},transformMat4View:function(e,t,s){if(e.count!==t.count)return;const r=e.count,i=s[0],f=s[1],u=s[2],n=s[3],c=s[4],h=s[5],y=s[6],d=s[7],l=s[8],p=s[9],o=s[10],B=s[11],a=s[12],E=s[13],T=s[14],m=s[15],S=e.typedBuffer,A=e.typedBufferStride,g=t.typedBuffer,b=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*A,s=e*b,r=g[s],_=g[s+1],x=g[s+2],M=g[s+3];S[t]=i*r+c*_+l*x+a*M,S[t+1]=f*r+h*_+p*x+E*M,S[t+2]=u*r+y*_+o*x+T*M,S[t+3]=n*r+d*_+B*x+m*M}}},Symbol.toStringTag,{value:"Module"}))},13030(e,t,s){s.d(t,{Y$:()=>E,XW:()=>a,qB:()=>C,Qt:()=>G,My:()=>W,bf:()=>$,jZ:()=>_,j0:()=>x,Sx:()=>M,E$:()=>L,h:()=>V,P:()=>X,SL:()=>P,dy:()=>se,gH:()=>m,ZD:()=>T,si:()=>w,mJ:()=>H,UL:()=>K,D6:()=>q,Yi:()=>O,An:()=>j,LC:()=>N,xs:()=>A,EC:()=>S,Xm:()=>R,Vp:()=>J,zD:()=>ee,m8:()=>z,nS:()=>U,H$:()=>k,eI:()=>v,td:()=>re,Eq:()=>b,jz:()=>g,Aj:()=>Y,E7:()=>Q,Y4:()=>te,TX:()=>D,Uz:()=>I,ml:()=>Z,XP:()=>F});var r=s(34727),i=s(78955),f=s(91829),u=s(20498);class n{static{this.ElementCount=9}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.elementCount=9;const f=this.TypedArrayConstructor;void 0===r&&(r=9*f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}getMat(e,t){let s=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[s++];return t}setMat(e,t){let s=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[s++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,s){this.typedBuffer[e*this.typedBufferStride+t]=s}copyFrom(e,t,s){const r=this.typedBuffer,i=t.typedBuffer;let f=e*this.typedBufferStride,u=s*t.typedBufferStride;for(let e=0;e<9;++e)r[f++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.elementCount=16;const f=this.TypedArrayConstructor;void 0===r&&(r=16*f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}getMat(e,t){let s=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[s++];return t}setMat(e,t){let s=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[s++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,s){this.typedBuffer[e*this.typedBufferStride+t]=s}copyFrom(e,t,s){this.copyFromTypedBuffer(e,t.typedBuffer,s*t.typedBufferStride)}copyFromTypedBuffer(e,t,s){const r=this.typedBuffer;let i=e*this.typedBufferStride;for(let e=0;e<16;++e)r[i++]=t[s++]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=1}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.elementCount=1;const f=this.TypedArrayConstructor;void 0===r&&(r=f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.stride=r,this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}var y=s(37585);class d{static{this.ElementCount=2}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.start=s,this.elementCount=2;const f=this.TypedArrayConstructor;void 0===r&&(r=2*f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,y.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,s){this.typedBuffer[e*this.typedBufferStride+t]=s}setValues(e,t,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=s}copyFrom(e,t,s){const r=this.typedBuffer,i=t.typedBuffer;let f=e*this.typedBufferStride,u=s*t.typedBufferStride;r[f++]=i[u++],r[f]=i[u]}get buffer(){return this.typedBuffer.buffer}}var l=s(35522);class p{static{this.ElementCount=3}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.elementCount=3;const f=this.TypedArrayConstructor;void 0===r&&(r=3*f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,l.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,s){this.typedBuffer[e*this.typedBufferStride+t]=s}setValues(e,t,s,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=s,this.typedBuffer[e]=r}copyFrom(e,t,s){const r=this.typedBuffer,i=t.typedBuffer;let f=e*this.typedBufferStride,u=s*t.typedBufferStride;r[f++]=i[u++],r[f++]=i[u++],r[f]=i[u]}get buffer(){return this.typedBuffer.buffer}}class o{static{this.ElementCount=4}constructor(e,t,s=0,r,i){this.TypedArrayConstructor=e,this.start=s,this.elementCount=4;const f=this.TypedArrayConstructor;void 0===r&&(r=4*f.BYTES_PER_ELEMENT);const u=0===t.byteLength?0:s;this.typedBuffer=null==i?new f(t,u):new f(t,u,(i-s)/f.BYTES_PER_ELEMENT),this.typedBufferStride=r/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,s=this.count-t){const r=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,r,this.stride,r+s*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,i.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,s){this.typedBuffer[e*this.typedBufferStride+t]=s}setValues(e,t,s,r,i){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=s,this.typedBuffer[e++]=r,this.typedBuffer[e]=i}copyFrom(e,t,s){const r=this.typedBuffer,i=t.typedBuffer;let f=e*this.typedBufferStride,u=s*t.typedBufferStride;r[f++]=i[u++],r[f++]=i[u++],r[f++]=i[u++],r[f]=i[u]}get buffer(){return this.typedBuffer.buffer}}var B=s(620);class a extends h{constructor(e,t=0,s,r){(0,B.vA)(u.SX),super((0,u.pX)(),e,t,s,r),this.elementType="f16"}static{this.ElementType="f16"}}class E extends h{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}static{this.ElementType="f32"}}class T extends d{constructor(e,t=0,s,r){(0,B.vA)(u.SX),super((0,u.pX)(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f16"}}class m extends d{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f32"}}class S extends p{constructor(e,t=0,s,r){(0,B.vA)(u.SX),super((0,u.pX)(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="f16"}}class A extends p{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static fromTypedArray(e,t){return new A(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class g extends o{constructor(e,t=0,s,r){(0,B.vA)(u.SX),super((0,u.pX)(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="f16"}}class b extends o{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f32"}}class _ extends n{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f32"}}class x extends n{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="f64"}}class M extends c{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f32"}}class L extends c{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="f64"}}class C extends h{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="f64"}}class w extends d{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="f64"}}class R extends p{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(R,e,t)}static fromTypedArray(e,t){return new R(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class Y extends o{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="f64"}}class P extends h{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u8"}}class N extends d{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="u8"}}class v extends p{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(v,e,t)}static fromTypedArray(e,t){return new v(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class F extends o{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="u8"}}class V extends h{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u16"}}class O extends d{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="u16"}}class U extends p{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u16"}}class I extends o{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="u16"}}class X extends h{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="u32"}}class j extends d{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="u32"}}class k extends p{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u32"}}class Z extends o{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="u32"}}class $ extends h{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i8"}}class q extends d{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="i8"}}class z extends p{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class D extends o{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="i8"}}class G extends h{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="i16"}}class H extends d{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="i16"}}class J extends p{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i16"}}class Q extends o{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i16"}}class W extends h{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i32"}}class K extends d{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends o{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(te,e,t)}static{this.ElementType="i32"}}class se extends P{constructor(e,t=0,s,r){super(e,t,s,r)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,r.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(se,e,t)}}class re extends F{constructor(e,t=0,s,r){super(e,t,s,r)}getVec(e,t){return(0,i.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,i.jk)(ie,(0,i.T9)(ie,t,f.uY),f.Un),(0,i.hs)(ie,ie,255),(0,i.LI)(ie,ie),super.setVec(e,ie)}get(e,t){return super.get(e,t)/255}set(e,t,s){super.set(e,t,Math.round(255*(0,r.qE)(s,0,1)))}setValues(e,t,s,r,f){(0,i.hZ)(ie,t,s,r,f),this.setVec(e,ie)}slice(e,t){return this.sliceBuffer(re,e,t)}}const ie=(0,f.vt)()},20498(e,t,s){s.d(t,{SX:()=>f,pX:()=>i});let r=globalThis.Float16Array;function i(){return r}let f=!!r},620(e,t,s){s.d(t,{O_:()=>f,vA:()=>i}),s(48163),s(78955),(0,s(91829).vt)();class r{constructor(e){this.message=e}toString(){return`AssertException: ${this.message}`}}function i(e,t="Assertion"){if(!e){const e=new Error(t).stack;throw new r(`${t} at ${e}`)}}function f(e,t,s,r){let i,f=(s[0]-e[0])/t[0],u=(r[0]-e[0])/t[0];f>u&&(i=f,f=u,u=i);let n=(s[1]-e[1])/t[1],c=(r[1]-e[1])/t[1];if(n>c&&(i=n,n=c,c=i),f>c||n>u)return!1;n>f&&(f=n),c<u&&(u=c);let h=(s[2]-e[2])/t[2],y=(r[2]-e[2])/t[2];return h>y&&(i=h,h=y,y=i),!(f>y||h>u||(y<u&&(u=y),u<0))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,8574],{73354(e,t,n){n.d(t,{a:()=>d,b:()=>s,c:()=>o,d:()=>a,e:()=>h,f:()=>c,l:()=>u,n:()=>f,t:()=>i});var r=n(40876);function a(e,t,n){i(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function i(e,t,n,r=3,a=r){if(e.length/r!==Math.ceil(t.length/a))return e;const i=e.length/r,o=n[0],s=n[1],l=n[2],u=n[4],c=n[5],d=n[6],h=n[8],f=n[9],m=n[10],g=n[12],p=n[13],y=n[14];let T=0,S=0;for(let n=0;n<i;n++){const n=t[T],i=t[T+1],A=t[T+2];e[S]=o*n+u*i+h*A+g,e[S+1]=s*n+c*i+f*A+p,e[S+2]=l*n+d*i+m*A+y,T+=a,S+=r}return e}function o(e,t,n){s(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function s(e,t,n,r=3,a=r){if(e.length/r!==Math.ceil(t.length/a))return;const i=e.length/r,o=n[0],s=n[1],l=n[2],u=n[3],c=n[4],d=n[5],h=n[6],f=n[7],m=n[8];let g=0,p=0;for(let n=0;n<i;n++){const n=t[g],i=t[g+1],y=t[g+2];e[p]=o*n+u*i+h*y,e[p+1]=s*n+c*i+f*y,e[p+2]=l*n+d*i+m*y,g+=a,p+=r}}function l(e,t,n,r=3,a=r){const i=Math.min(e.length/r,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=n*t[o],e[s+1]=n*t[o+1],e[s+2]=n*t[o+2],o+=a,s+=r;return e}function u(e,t,n,r){c(e.typedBuffer,t.typedBuffer,n,r,e.typedBufferStride,t.typedBufferStride)}function c(e,t,n,a,i=3,o=i){const s=Math.min(e.length/i,t.length/o);let l=0,u=0;const c=1/r.Tf;for(let r=0;r<s;r++)e[u]=a*(n*t[l])**c,e[u+1]=a*(n*t[l+1])**c,e[u+2]=a*(n*t[l+2])**c,l+=o,u+=i}function d(e,t,n,r=3,a=r){const i=e.length/r;if(i!==Math.ceil(t.length/a))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+n[0],e[s+1]=t[o+1]+n[1],e[s+2]=t[o+2]+n[2],o+=a,s+=r;return e}function h(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,n=3,r=n){const a=Math.min(e.length/n,t.length/r);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],u=a*a+s*s+l*l;if(u>0){const t=1/Math.sqrt(u);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=r,o+=n}}n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:f,normalizeView:h,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)a[u]=o[l]>>n,a[u+1]=o[l+1]>>n,a[u+2]=o[l+2]>>n,l+=s,u+=i},transformMat3:s,transformMat3View:o,transformMat4:i,transformMat4View:a,translate:d},Symbol.toStringTag,{value:"Module"}))},40876(e,t,n){n.d(t,{Eq:()=>f,G1:()=>g,TS:()=>i,Tf:()=>T,V6:()=>a,Vm:()=>m,ay:()=>l,c1:()=>p,c4:()=>o,j5:()=>u,lT:()=>d,oW:()=>c,xV:()=>A});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const a=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,o=2*n-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&r,o>>=n,s[3]=a*l/255),l=o&r,o>>=n,s[2]=a*l,l=o&r,o>>=n,s[1]=a*l,l=o&r,o>>=n,s[0]=a*l,s}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),a=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(a+16*a)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function f(e){let t=a(e)?i(e):null;return t??=d(e),t??=c(e),t}function m(e){const t=f(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const T=2.2,S=1/T;function A(e){return e**S}},81139(e,t,n){n.d(t,{O:()=>r});class r{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get size(){let e=0;for(const t of this._outer.values())e+=t.size;return e}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,n){const r=this._outer.get(e);r?r.set(t,n):this._outer.set(e,new Map([[t,n]]))}delete(e,t){const n=this._outer.get(e);n&&(n.delete(t),0===n.size&&this._outer.delete(e))}pop(e,t){const n=this.get(e,t);return this.delete(e,t),n}*outerMap(){for(const e of this._outer)yield e}*values(){for(const e of this._outer.values())yield*e.values()}*[Symbol.iterator](){for(const[e,t]of this._outer)for(const[n,r]of t)yield[e,n,r]}forEach(e){this._outer.forEach((t,n)=>e(t,n))}forAll(e){this._outer.forEach((t,n)=>t.forEach((t,r)=>e(t,n,r)))}copy(){const e=new r;return this.forAll((t,n,r)=>e.set(n,r,t)),e}}},95488(e,t,n){n.d(t,{I:()=>a});var r=n(11406);class a extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>a,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(e,t,n,r,a,i,o,s,l,u,c,d,h,f,m,g){return[e,t,n,r,a,i,o,s,l,u,c,d,h,f,m,g]}},Symbol.toStringTag,{value:"Module"}))},48163(e,t,n){function r(){return[0,0]}function a(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function o(e,t=[0,0]){const n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function s(){return i(1,1)}function l(){return i(1,0)}function u(){return i(0,1)}n.d(t,{Un:()=>c,ci:()=>o,fA:()=>i,o8:()=>a,vt:()=>r});const c=s(),d=l(),h=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:d,UNIT_Y:h,ZEROS:[0,0],clone:a,create:r,freeze:function(e,t){return[e,t]},fromArray:o,fromValues:i,ones:s,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(e,t,n){function r(){return[0,0,0]}function a(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function d(){return i(0,0,1)}n.d(t,{CN:()=>o,Cb:()=>p,Cw:()=>m,JP:()=>g,Un:()=>f,ci:()=>s,fA:()=>i,o8:()=>a,uY:()=>h,vt:()=>r});const h=[0,0,0],f=l(),m=u(),g=c(),p=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:m,UNIT_Y:g,UNIT_Z:p,ZEROS:h,clone:a,create:r,freeze:o,fromArray:s,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:d,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(e,t,n){n.d(t,{DF:()=>l,FD:()=>a,Ov:()=>i,ct:()=>u});let r=1e-6;function a(){return r}const i=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:a,setEpsilon:function(e){r=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>w,Bw:()=>i,C:()=>o,Cc:()=>v,DI:()=>_,Il:()=>z,Io:()=>T,Ln:()=>y,Om:()=>E,Qr:()=>d,Re:()=>u,S8:()=>b,T9:()=>g,WQ:()=>l,Z0:()=>C,_S:()=>f,aI:()=>O,ei:()=>R,gL:()=>N,hG:()=>S,hZ:()=>s,hs:()=>p,jb:()=>B,jk:()=>m,lo:()=>D,lw:()=>c,m3:()=>A,oW:()=>x,t2:()=>P,tn:()=>h,uE:()=>j,xg:()=>U,ze:()=>M});var r=n(51850),a=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function s(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function d(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function h(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function p(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function T(e,t){const n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(n*n+r*r+a*a)}function S(e,t){const n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return n*n+r*r+a*a}function A(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const n=t[0],r=t[1],a=t[2];let i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function E(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function w(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2];return e[0]=a*l-i*s,e[1]=i*o-r*l,e[2]=r*s-a*o,e}function v(e,t,n,r){const a=t[0],i=t[1],o=t[2];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e}function C(e,t,n){const r=t[0],a=t[1],i=t[2];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12],e[1]=n[1]*r+n[5]*a+n[9]*i+n[13],e[2]=n[2]*r+n[6]*a+n[10]*i+n[14],e}function R(e,t,n){const r=t[0],a=t[1],i=t[2];return e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8],e}function N(e,t,n){const r=n[0],a=n[1],i=n[2],o=n[3],s=t[0],l=t[1],u=t[2],c=a*u-i*l,d=i*s-r*u,h=r*l-a*s,f=a*h-i*d,m=i*c-r*h,g=r*d-a*c,p=2*o;return e[0]=s+c*p+2*f,e[1]=l+d*p+2*m,e[2]=u+h*p+2*g,e}const G=(0,r.vt)(),I=(0,r.vt)();function P(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],o=t[0],s=t[1],l=t[2],u=(0,a.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function x(e,t,n){const r=n[0]-t[0],a=n[1]-t[1],i=n[2]-t[2];let o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=a*o,e[2]=i*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const B=u,k=c,L=d,U=T,D=S,z=i,j=A;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(e,t){b(G,e),b(I,t);const n=E(G,I);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,a,i){const o=1-i,s=o*o,l=i*i,u=s*o,c=3*i*s,d=3*l*o,h=l*i;return e[0]=t[0]*u+n[0]*c+r[0]*d+a[0]*h,e[1]=t[1]*u+n[1]*c+r[1]*d+a[1]*h,e[2]=t[2]*u+n[2]*c+r[2]*d+a[2]*h,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:w,crossAndNormalize:function(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2],u=a*l-i*s,c=i*o-r*l,d=r*s-a*o,h=Math.sqrt(u*u+c*c+d*d);return e[0]=u/h,e[1]=c/h,e[2]=d/h,e},direction:x,dist:U,distance:T,div:L,divide:d,dot:E,equals:O,exactEquals:P,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,a,i){const o=i*i,s=o*(2*i-3)+1,l=o*(i-2)+i,u=o*(i-1),c=o*(3-2*i);return e[0]=t[0]*s+n[0]*l+r[0]*u+a[0]*c,e[1]=t[1]*s+n[1]*l+r[1]*u+a[1]*c,e[2]=t[2]*s+n[2]*l+r[2]*u+a[2]*c,e},inverse:_,len:z,length:i,lerp:v,max:g,min:m,mul:k,multiply:c,negate:M,normalize:b,random:function(e,t=1){const n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=i*t,e},rotateX:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:p,scaleAndAdd:y,set:s,sign:f,sqrDist:D,sqrLen:j,squaredDistance:S,squaredLength:A,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:B,subtract:u,transformMat3:R,transformMat4:C,transformQuat:N},Symbol.toStringTag,{value:"Module"}))},3330(e,t,n){n.d(t,{GB:()=>a,Qo:()=>o,Y4:()=>i});var r=n(92647);class a{static{this.instance=r.mQ.parseSpecifier("UTC")}}function i(e){return e instanceof r.bo?e===a.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return i(e)?a.instance:e}},83027(e,t,n){n.d(t,{h:()=>r});const r=n(29953).ho},35982(e,t,n){n.d(t,{B:()=>l});var r=n(4576),a=n(36563),i=n(53966),o=n(74887),s=n(83027);class l{constructor(e,t,n,r,a={}){this._mainMethod=t,this._transferLists=n,this._listeners=[],this._promise=(0,s.h)(e,{...a,schedule:r}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,a.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const n={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(n),this._connectListener(n),(0,a.hA)(()=>{n.removed=!0,(0,r.TF)(this._listeners,n),this._thread&&null!=n.threadHandle&&n.threadHandle.remove()})}[Symbol.dispose](){this.destroy()}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,n){return this.invokeMethod(this._mainMethod,e,t,n)}invokeMethod(e,t,n,r){if(this._thread){const a=this._transferLists[e],i=a?a(t):[];return this._thread.invoke(e,t,{transferList:i,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,o.Te)(n),this.invokeMethod(e,t,n))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(u):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function u(){}},91075(e,t,n){n.d(t,{A:()=>l});var r=n(5482),a=n(25482),i=n(91429),o=n(16930),s=n(36005);let l=class extends a.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const n=new o.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,i.MZ)()],l.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,r.Cg)([(0,i.$K)("esri.geometry.Geometry")],l)},86738(e,t,n){n.d(t,{A:()=>S});var r=n(5482),a=n(69622),i=n(53966),o=n(91429),s=n(56507),l=n(91075),u=n(16930),c=n(21325),d=n(28735);function h({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,c.K8)(n))return(0,d.tD)(e,t,r);if((0,c.EA)(n))return r[0]=e,r[1]=t,r}return null}const f=[0,0];var m,g=n(43937),p=n(36005);const y=[0,0];function T(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let S=m=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",a.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,a){let o;if(Array.isArray(e))o=e,a=t,e=o[0],t=o[1],n=o[2],r=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,n=o.z,r=o.m,(a=o.spatialReference)&&"esri.geometry.SpatialReference"!==a.declaredClass&&(a=new u.A(a)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&a?.isWebMercator){const n=(0,d.je)(o.longitude,o.latitude,y);e=n[0],t=n[1]}}else T(n)?(a=n,n=null):T(r)&&(a=r,r=null);const s={x:e,y:t};return null==s.x&&null!=s.y?i.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&i.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=a&&(s.spatialReference=a),null!=n&&(s.z=n),null!=r&&(s.m=r),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return h(this,f)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,d.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return h(this,f)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,d.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new m;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return m.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:a,spatialReference:i}=this,{z:o,m:s}=e;let{x:l,y:u,spatialReference:c}=e;if(!i.equals(c))if(i.isWebMercator&&c.isWGS84)[l,u]=(0,d.je)(l,u),c=i;else{if(!i.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,d.tD)(l,u),c=i}return t===l&&n===u&&r===o&&a===s&&i.wkid===c.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,c.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,a=2*r;let i;return t>r?(i=Math.ceil(Math.abs(t-r)/a),t-=i*a):t<n&&(i=Math.ceil(Math.abs(t-n)/a),t+=i*a),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,a=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+a*a)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],S.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"latitude",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"longitude",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,s.GB)(e))],S.prototype,"x",void 0),(0,r.Cg)([(0,g.K)("x")],S.prototype,"writeX",null),(0,r.Cg)([(0,p.w)("x")],S.prototype,"readX",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],S.prototype,"y",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],S.prototype,"z",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],S.prototype,"m",void 0),S=m=(0,r.Cg)([(0,o.$K)("esri.geometry.Point")],S),S.prototype.toJSON.isDefaultToJSON=!0},21276(e,t,n){n.d(t,{H:()=>i,f:()=>a});var r=n(49186);function a(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function i(e){e.forEach(a)}},65806(e,t,n){n.d(t,{g:()=>o});var r=n(51850),a=n(91218),i=n(9762);function o(e,t,n,r){if((0,a.canProjectWithoutEngine)(e.spatialReference,n))return s[0]=e.x,s[1]=e.y,s[2]=e.z??0,(0,i.projectBuffer)(s,e.spatialReference,0,t,n,0);const o=(0,a.tryProject)(e,n,r);return!!o&&(t[0]=o.x,t[1]=o.y,t[2]=o.z??0,!0)}const s=(0,r.vt)()},27993(e,t,n){n.d(t,{F:()=>s});var r=n(91218),a=n(16930),i=n(9762),o=n(65806);function s(e,t,n,a){return!(null==t||null==a||e.length<2)&&((0,r.canProjectWithoutEngine)(t,a)?(0,i.projectBuffer)(e,t,0,n,a,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,o.g)(l,n,a)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:a.A.WGS84,type:"point"}},4197(e,t,n){n.d(t,{Vj:()=>u,cj:()=>l,jh:()=>i,l5:()=>s,xm:()=>o});var r=n(34275),a=n(9093);function i(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function u(e){const t=(0,a.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},95696(e,t,n){n.d(t,{A:()=>u});var r,a=n(5482),i=n(69540),o=n(25482),s=n(91429),l=n(93223);let u=class extends((0,i.OU)(o.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,a.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,a.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,a.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,n){n.r(t),n.d(t,{default:()=>u});var r=n(5482),a=n(69540),i=n(25482),o=n(91429),s=n(51850),l=n(93223);let u=class extends((0,a.OU)(i.o)){constructor(e){super(e),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function a(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function s(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?i(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":s(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":a(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>s,Pv:()=>c,Rg:()=>o,U9:()=>a,W0:()=>d,ZC:()=>r,fT:()=>i,uW:()=>l})},28735(e,t,n){n.d(t,{Cv:()=>p,Gh:()=>S,ci:()=>A,je:()=>y,jg:()=>d,tD:()=>T,y7:()=>g,yw:()=>c});var r=n(4718),a=n(21276),i=n(16930),o=n(79258),s=n(21325);function l(e){return 57.29577951308232*e}function u(e){return.017453292519943*e}function c(e){return e/o.$O.radius}function d(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function h(e){return null!=e.wkid||null!=e.wkt}const f=[0,0];function m(e,t,n,r,a){const i=e,o=a;if(o.spatialReference=n,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,f,r);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,f,r),[o.xmax,o.ymax]=t(i.xmax,i.ymax,f,r);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,n=[];let a;for(let i=0;i<e.length;i++){const o=e[i];a=[],n.push(a);for(let e=0;e<o.length;e++)a.push(t(o[e][0],o[e][1],[0,0],r)),o[e].length>2&&a[e].push(o[e][2]),o[e].length>3&&a[e].push(o[e][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in i&&"points"in o){const e=i.points,n=[];for(let a=0;a<e.length;a++)n[a]=t(e[a][0],e[a][1],[0,0],r),e[a].length>2&&n[a].push(e[a][2]),e[a].length>3&&n[a].push(e[a][3]);o.points=n}return a}function g(e,t){const n=e&&(h(e)?e:e.spatialReference),r=t&&(h(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,s.aI)(r,n)||(0,s.K8)(r)&&(0,s.oT)(n)||(0,s.K8)(n)&&(0,s.oT)(r))}function p(e,t){if(null==e)return null;const n=e.spatialReference,a=t&&(h(t)?t:t.spatialReference);return g(n,a)?(0,s.aI)(n,a)?(0,r.o8)(e):(0,s.K8)(a)?m(e,y,i.A.WebMercator,!1,(0,r.o8)(e)):(0,s.oT)(a)?m(e,T,i.A.WGS84,!1,(0,r.o8)(e)):null:null}function y(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=u(t);return n[0]=u(e)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function T(e,t,n=[0,0],r=!1){if(e===s.Mc[0])n[0]=-180;else if(e===s.Mc[1])n[0]=180;else{const t=l(e/o.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),n}function S(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),m(e,y,i.A.WebMercator,t,n)}function A(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),m(e,T,i.A.WGS84,t,n)}},97770(e,t,n){n.d(t,{Ey:()=>P,F8:()=>I,J2:()=>C,Yq:()=>N,_m:()=>R,_v:()=>A,iS:()=>G,wj:()=>O});var r=n(66552),a=n(73444),i=n(98623),o=(n(56400),n(92647));const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},g={...m,second:"numeric"},p={hourCycle:"h23"},y={...m,...p},T={...g,...p},S={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...g},"short-date-long-time-24":{...c,...T},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...g},"short-date-le-long-time-24":{...c,...T},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,...y},"long-month-day-year-long-time":{...d,...g},"long-month-day-year-long-time-24":{...d,...T},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...m},"day-short-month-year-short-time-24":{...h,...y},"day-short-month-year-long-time":{...h,...g},"day-short-month-year-long-time-24":{...h,...T},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,...y},"long-date-long-time":{...f,...g},"long-date-long-time-24":{...f,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":g},A=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),b=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function E(){const e=(0,a.lR)();return(e&&M[e])??(0,a.QC)()}"mart"!==b&&(M.bs="sr-Latn-CS");let w=new WeakMap;const v=S["short-date-short-time"];function C(e){return S[e]}function R(e){const{dateStyle:t,timeStyle:n,hour12:r,year:a,month:i}=e,o={};return t?o.dateStyle=t:a&&(o.year=a,o.month=i||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function N(e,t=v){return function(e){let t=w.get(e);if(!t){const n=E(),r=O(e.timeZone??i.qU),a={...e,timeZone:r};t=new Intl.DateTimeFormat(n,a),w.set(e,t)}return t}(t).format(e)}function G(e,t=v){return N(new Date(e),{...t,...u,...l})}function I(e,t=v){return N(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function P(e,t=v){if(t.timeZone)return N(new Date(e),t);const n=o.c9.fromISO(e,{setZone:!0}),r=0===n.offset?i.n$:t.timeZone,a={...t,timeZone:r};return n.toLocaleString(a,{locale:E()})}function O(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}(0,a.Ml)(()=>{w=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>p,QC:()=>d,lR:()=>c,oQ:()=>m});var r=n(36563);let a;n(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function l(){return void 0===a&&(a=s()),a}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return h(e)?.language}function d(e=l()){const t=h(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function h(e=l()){return u.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,r.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,r.hA)(()=>g.splice(g.indexOf(e),1))}function y(){const e=s();a!==e&&([...g].forEach(t=>t(e)),a=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},10838(e,t,n){n.d(t,{ao:()=>h,ud:()=>f,xO:()=>m});var r=n(49186),a=n(36563),i=n(74887),o=n(73444);const s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){if(function(e){return e in s}(e)){const t=s[e];return!0===t?e:t}return null}const u=[],c=new Map;function d(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function h(e){return u.includes(e)||(d(e),u.unshift(e)),(0,a.hA)(()=>{const t=u.indexOf(e);t>-1&&(u.splice(t,1),d(e))})}async function f(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const n=[];for(const r of u)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=c.get(e);return n&&await p.add(n),n}function m(e){const t=(0,o.lR)(e);return t?l(e)??l(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},98623(e,t,n){n.d(t,{L5:()=>a,N5:()=>o,n$:()=>i,qU:()=>r});const r="system",a="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone},56400(e,t,n){n.d(t,{ZS:()=>u,S3:()=>f,hv:()=>c,wr:()=>d,P6:()=>l});var r=n(91869),a=n(3330),i=n(98623);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=n(92647);function l(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?u(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=i.qU){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=i.qU){if(!e||!o.has(e.timeZone))return t;const n=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=s.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${s.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function c(e,t,n,r,a){if(t&&"date"===a)return{timeZone:i.n$,timeZoneName:void 0};const o=r.hour,s=n===i.L5;return{timeZone:s?"timestamp-offset"===a?void 0:e??i.n$:n,timeZoneName:s&&o?"shortOffset":void 0}}function d(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return e===i.qU||e===i.L5||t.has(e.toLowerCase())||n.has(e.toLowerCase())}const h=new Map;function f(e){return e===i.L5?a.GB.instance:e===i.n$||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.tE)(h,e,()=>s.oh.create(e))}},18003(e,t,n){n.r(t),n.d(t,{destroyContext:()=>B,dracoDecompressPointCloudData:()=>N,filterObbsForModifications:()=>G,filterObbsForModificationsSync:()=>j,initialize:()=>H,interpretObbModificationResults:()=>z,process:()=>R,project:()=>O,setLegacySchema:()=>P,setModifications:()=>I,setModificationsSync:()=>U,test:()=>q,transformNormals:()=>x});var r=n(34727),a=n(16930),i=n(4197),o=n(95696),s=n(18251),l=n(73354),u=n(2741);let c;var d=n(4576),h=n(81139),f=n(48163),m=n(35522),g=n(51850),p=n(10614),y=n(63907),T=n(74038);class S{constructor(e,t){this.data=e,this.indices=t}}function A(e,t,n,r){if(!r||n.some(({name:e})=>"normal"===e)||n.some(({name:e})=>"normalCompressed"===e))return new S(e.slice().buffer,t);const a=n[0].stride,i=a/4,o=new Float32Array(e.buffer,e.byteOffset,e.byteLength/4),s=new Array,l=new Array,u=new h.O,c=new Array;for(let e=0;e<t.length;e+=3){const n=t[e],r=n*i;(0,m.hZ)(M,o[r],o[r+1],o[r+2]);const a=t[e+1],h=a*i;(0,m.hZ)(_,o[h],o[h+1],o[h+2]);const p=t[e+2],y=p*i;(0,m.hZ)(b,o[y],o[y+1],o[y+2]),(0,m.jb)(E,M,_),(0,m.jb)(w,M,b);const T=e/3,S=(0,m.$A)((0,g.vt)(),E,w);l[T]=.5*(0,m.Il)(S),(0,m.S8)(S,S),s[T]=S;const A=(0,f.ci)([n,a].sort(d.UT)),v=u.get(A[0],A[1])??[];v.push(T),u.set(A[0],A[1],v);const C=(0,f.ci)([n,p].sort(d.UT)),R=u.get(C[0],C[1])??[];R.push(T),u.set(C[0],C[1],R);const N=(0,f.ci)([a,p].sort(d.UT)),G=u.get(N[0],N[1])??[];G.push(T),u.set(N[0],N[1],G),c.push([A,C,N])}const A=e.byteLength/a,C=new Set;for(let e=0;e<t.length;e+=3){const t=e/3;if(C.has(t))continue;const n=s[t],r=[t];C.add(t);const a=Array.from(c[t]),i=new Set;for(i.add(t);a.length>0;){const e=a.pop(),t=u.get(e[0],e[1]);t?.forEach(e=>{if(i.has(e))return;const t=s[e];Math.abs(1-(0,m.Om)(n,t))<.04&&(r.push(e),C.add(e),a.push(...c[e])),i.add(e)})}if(r.length>1){let e=0;const t=r.reduce((t,n)=>(e+=l[n],(0,m.WQ)(t,t,(0,m.hs)(v,s[n],l[n]))),(0,g.vt)());(0,m.S8)(t,t),r.forEach(n=>{s[n]=t,l[n]=e})}}const R=a+4;n.forEach(e=>e.stride=R),n.push(new T._("normalCompressed",2,y.pe.SHORT,a,R,!0));const N=new Array;for(let e=0;e<t.length;e+=3){const n=e/3,r=t[e],a=N[r]??[];a.push(n),N[r]=a;const i=t[e+1],o=N[i]??[];o.push(n),N[i]=o;const s=t[e+2],l=N[s]??[];l.push(n),N[s]=l}const G=A+N.reduce((e,t)=>e+new Set(t).size-1,0),I=R/4,P=new Float32Array(G*I),O=new(G<256?Uint8Array:G<65536?Uint16Array:Uint32Array)(t);let x=A;const B=new Int16Array(P.buffer),k=a/2,L=R/2;for(let e=0;e<A;++e){const t=e*I,n=e*i;for(let e=0;e<i;++e)P[t+e]=o[n+e];const r=(e,t,n=[])=>{const r=s[e];return n.push(e),t.filter(e=>{const t=s[e];return!(Math.abs(1-(0,m.Om)(t,r))<.8&&(n.push(e),1))}),1===n.length?r:(n.reduce((e,t)=>(0,m.WQ)(e,e,(0,m.hs)(_,s[t],l[t])),(0,m.hZ)(M,0,0,0)),(0,m.S8)(M,M))},a=N[e],u=r(a.pop(),a);for((0,p.aT)(B,e,u[0],u[1],u[2],L,k);a.length;){const t=x++,s=t*I;for(let e=0;e<i;++e)P[s+e]=o[n+e];const l=a.pop(),u=new Array,c=r(l,a,u);(0,p.aT)(B,t,c[0],c[1],c[2],L,k),u.forEach(n=>{for(let r=3*n;r<3*n+3;++r)O[r]===e&&(O[r]=t)})}}const U=x<G?P.slice(0,x*I).buffer:P.buffer;return new S(U,O)}const M=(0,g.vt)(),_=(0,g.vt)(),b=(0,g.vt)(),E=(0,g.vt)(),w=(0,g.vt)(),v=(0,g.vt)();var C=n(98697);async function R(e){L=await W();const t=[e.geometryBuffer];return{result:D(L,e,t),transferList:t}}async function N(e){L=await W();const t=[e.geometryBuffer],{geometryBuffer:n}=e,r=n.byteLength,a=L._malloc(r),i=new Uint8Array(L.HEAPU8.buffer,a,r);i.set(new Uint8Array(n));const o=L.dracoDecompressPointCloudData(a,i.byteLength);if(L._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function G(e){await W(),j(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function I(e){await W(),U(e)}async function P(e){L=await W(),L.setLegacySchema(e.context,e.jsonSchema)}async function O(e){const{localMatrix:t,origin:r,positions:l,vertexSpace:u}=e,c=a.A.fromJSON(e.inSpatialReference),d=a.A.fromJSON(e.outSpatialReference),h=t?(0,i.Vj)(t):void 0,f=(0,i.cj)(r);let m;const[{projectBuffer:g},{initializeProjection:p}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,91218))]);await p(c,d);const y=[0,0,0];if(!g(f,c,0,y,d,0))throw new Error("Failed to project");if("georeferenced"===u.type&&null==u.origin){if(m=new Float64Array(l.length),!g(l,c,0,m,d,0,m.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===u.type?o.A.fromJSON(u):s.default.fromJSON(u),{projectMeshVertexPositions:t}=await Promise.all([n.e(6269),n.e(8487),n.e(4594)]).then(n.bind(n,74594)),r=t({vertexAttributes:{position:l},transform:h?{localMatrix:h}:void 0,vertexSpace:e,spatialReference:c},d);if(!r)throw new Error("Failed to project");m=r}const T=m.length,[S,A,M]=y;for(let e=0;e<T;e+=3)m[e]-=S,m[e+1]-=A,m[e+2]-=M;return{result:{projected:m,original:l,projectedOrigin:y},transferList:[m.buffer,l.buffer]}}async function x({normalMatrix:e,normals:t}){const n=new Float32Array(t.length);return(0,l.b)(n,t,e),(0,r.or)(e)&&(0,l.n)(n,n),{result:{transformed:n,original:t},transferList:[n.buffer,t.buffer]}}function B(e){F(e)}let k,L;function U(e){if(!L)return;const t=e.modifications,n=L._malloc(8*t.length),r=new Float64Array(L.HEAPU8.buffer,n,t.length);for(let e=0;e<t.length;++e)r[e]=t[e];L.setModifications(e.context,n,t.length,e.isGeodetic),L._free(n)}function D(e,t,n){const{context:r,globalTrafo:a,mbs:i,obbData:o,layouts:s,needNormals:l,computeNormals:u,elevationOffset:c,geometryBuffer:d,geometryDescriptor:h,indexToVertexProjector:f,vertexToRenderProjector:m,normalReferenceFrame:g}=t,p=e._malloc(d.byteLength),y=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(e.HEAPU8.buffer,p,d.byteLength);T.set(new Uint8Array(d));const S=new Float64Array(e.HEAPU8.buffer,y,33);Z(S,[NaN,NaN,NaN],0);let M=3;Z(S,a,M),M+=16,Z(S,i.center,M),M+=3,S[M++]=i.radius,o&&Z(S,o,M++);const _={isDraco:!1,isLegacy:!1,color:s.some(e=>e.some(e=>"color"===e.name)),normal:l&&s.some(e=>e.some(e=>"normalCompressed"===e.name)),uv0:s.some(e=>e.some(e=>"uv0"===e.name)),uvRegion:s.some(e=>e.some(e=>"uvRegion"===e.name)),featureIndex:h.featureIndex},b=e.process(r,!!o,p,T.byteLength,h,_,y,c,f,m,g);if(e._free(y),e._free(p),b.error.length>0)throw new Error(`i3s.wasm: ${b.error}`);if(b.discarded)return null;const E=b.componentOffsets.length>0?b.componentOffsets.slice():null,w=b.featureIds.length>0?b.featureIds.slice():null,v=b.anchorIds.length>0?Array.from(b.anchorIds):null,R=b.anchors.length>0?Array.from(b.anchors):null,N=1===b.indicesType?new Uint16Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/2).slice():new Uint32Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/4).slice(),G=s[0].slice(),I=A(b.interleavedVertedData,N,G,u&&!_.normal),P=b.positions.slice(),{buffer:O,byteOffset:x,byteLength:B}=b.positionIndices,k=1===b.positionIndicesType?new Uint16Array(O,x,B/2).slice():new Uint32Array(O,x,B/4).slice(),L=new C._b(G,I.data,I.indices,b.hasColors,b.hasModifications,{data:P,indices:k});return w&&n.push(w.buffer),E&&n.push(E.buffer),n.push(I.data),n.push(I.indices.buffer),n.push(P.buffer),n.push(k.buffer),new C.sQ(E,w,v,R,L,a,b.obb)}function z(e){return 0===e?0:1===e?1:2===e?2:3}function j(e){if(!L)return;const{context:t,buffer:n}=e,r=L._malloc(n.byteLength),a=n.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(L.HEAPU8.buffer,r,a),o=new Float64Array(n);i.set(o),L.filterOBBs(t,r,a),o.set(i),L._free(r)}function F(e){0===L?.destroy(e)&&(L=null,k=null,c=null)}function Z(e,t,n){for(let r=0;r<t.length;++r)e[r+n]=t[r]}async function H(){L||await W()}async function W(){return L||(L=await(k??=(c??=(async()=>{const e=await n.e(2980).then(n.bind(n,82980));return await e.default({locateFile:e=>(0,u.s)(`esri/libs/i3s/${e}`)})})(),c))),L}const q={transform:(e,t)=>L&&D(L,e,t),destroy:F}},98697(e,t,n){n.d(t,{Ir:()=>m,_b:()=>c,cm:()=>g,sQ:()=>d,ze:()=>p});var r=n(53966),a=n(15142),i=n(51850),o=n(35982),s=n(91218),l=n(16930),u=n(27993);class c{constructor(e,t,n,r,a,i){this.layout=e,this.interleavedVertexData=t,this.indices=n,this.hasColors=r,this.hasModifications=a,this.positionData=i}}class d{constructor(e,t,n,r,a,i,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=n,this.anchors=r,this.transformedGeometry=a,this.globalTrafo=i,this.obb=o}}o.B;const h=new a.A({deallocator:null}),f=(0,i.vt)();function m(e,t,n){h.clear();let a=1/0,i=1/0,o=-1/0,l=-1/0,c=!1;for(const e of t){const t="clip"===e.type?2:"mask"===e.type?1:0,d=e.geometry;let m=e=>e;if(d.spatialReference){if(!(0,s.canProjectWithoutEngine)(d.spatialReference,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}m=e=>((0,u.F)(e,d.spatialReference,f,n),f)}c=c||1===t;const g=d.rings.length,p=d.rings.some(e=>e.length<3);if(0===g||p)r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (no rings or rings with less than 3 vertices).",{polygon:d});else{h.push(t),h.push(g);for(const e of d.rings){h.push(e.length);for(const t of e){const e=m(t);h.push(e[0]),h.push(e[1]),h.push(e[2]??0),a=Math.min(a,e[0]),i=Math.min(i,e[1]),o=Math.max(o,e[0]),l=Math.max(l,e[1])}}}}if(null!=e)if(c){const t=1e-4;h.push(2),h.push(2),h.push(4),h.push(a-t),h.push(i-t),h.push(0),h.push(o+t),h.push(i-t),h.push(0),h.push(o+t),h.push(l+t),h.push(0),h.push(a-t),h.push(l+t),h.push(0),h.push(4),h.push(e[0]),h.push(e[1]),h.push(0),h.push(e[2]),h.push(e[1]),h.push(0),h.push(e[2]),h.push(e[3]),h.push(0),h.push(e[0]),h.push(e[3]),h.push(0)}else h.push(1),h.push(1),h.push(4),h.push(e[0]),h.push(e[1]),h.push(0),h.push(e[2]),h.push(e[1]),h.push(0),h.push(e[2]),h.push(e[3]),h.push(0),h.push(e[0]),h.push(e[3]),h.push(0);h.push(3);const d=new Float64Array(h.length);for(let e=0;e<h.length;++e)d[e]=h.at(e);return d}function g(e,t){let n=0;for(const r of t){const t=r.geometry,a=t.rings.length,i=t.rings.some(e=>e.length<3);if(0!==a&&!i){n+=1,n+=1;for(let r=0;r<t.rings.length;++r){const a=t.rings[r];n+=1;for(let i=0;i<a.length;++i){const a=[e[n+0],e[n+1],e[n+2]];n+=3,t.setPoint(r,i,a)}}}}}function p(e,t){let n=0,r=t.geometry;const a=r.rings.length,i=r.rings.some(e=>e.length<3);if(0===a||i)return null;r=r.clone(),r.spatialReference=l.A.WGS84,n+=1,n+=1;for(let t=0;t<r.rings.length;++t){const a=r.rings[t];n+=1;for(let i=0;i<a.length;++i){const a=[e[n+0],e[n+1],e[n+2]];n+=3,r.setPoint(t,i,a)}}return r}},10614(e,t,n){n.d(t,{aT:()=>a});var r=n(34727);function a(e,t,n,r,a,o=2,s=0){const l=1/(Math.abs(n)+Math.abs(r)+Math.abs(a)),u=n*l,c=r*l,d=a<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,h=a<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,f=t*o+s;e[f]=i(d),e[f+1]=i(h)}function i(e){return(0,r.qE)(Math.round(32767*e),-32767,32767)}n(35522),n(51850)},74038(e,t,n){n.d(t,{_:()=>r});class r{constructor(e,t,n,r,a,i=!1,o=0,s=!1){this.name=e,this.count=t,this.type=n,this.offset=r,this.stride=a,this.normalized=i,this.divisor=o,this.integer=s}}},63907(e,t,n){n.d(t,{$0:()=>d,CQ:()=>g,H0:()=>i,SB:()=>l,WR:()=>r,XN:()=>o,iE:()=>s,ld:()=>u,nI:()=>m,pe:()=>a,r6:()=>h,vt:()=>c,yI:()=>f});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},a={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(i),s={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:a.FLOAT,UNSIGNED_BYTE:a.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:a.BYTE,UNSIGNED_SHORT:a.UNSIGNED_SHORT,SHORT:a.SHORT,UNSIGNED_INT:a.UNSIGNED_INT,INT:a.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},c={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},d=0,h=36064,f=36065,m=33306,g={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}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5013],{68197(t,e,r){r.d(e,{A:()=>u});var i=r(40876),a=r(4576),n=r(34727),s=r(56507);function o(t){return(0,n.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,i=new u){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=(0,i.lT)(t);return r?u.fromArray(r,e):null}static fromHex(t,e=new u){const r=(0,i.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,i.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,a.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,i=3===r||4===r,a=4===r||8===r,n=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${a?l(Math.round(255*this.a),i):""}`;return e?n.toUpperCase():n}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),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}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,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},85334(t,e,r){r.d(e,{$:()=>d,IB:()=>s,Iy:()=>v,N2:()=>b,RH:()=>w,ZD:()=>_});var i=r(68197),a=r(4576),n=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 i,a;if(t[0].length!==e.length)throw new Error("dimensions do not match");const n=t.length,s=t[0].length;let o=0;for(i=0;i<n;i++){for(o=0,a=0;a<s;a++)o+=t[i][a]*e[a];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,i=t.h;return{l:e,a:r*Math.cos(i),b:r*Math.sin(i)}}(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,i=t.v/100*255,a=i*r,n=a*(1-Math.abs(e%2-1));let s;switch(Math.floor(e)){case 0:s={r:a,g:n,b:0};break;case 1:s={r:n,g:a,b:0};break;case 2:s={r:0,g:a,b:n};break;case 3:s={r:0,g:n,b:a};break;case 4:s={r:n,g:0,b:a};break;case 5:case 6:s={r:a,g:0,b:n};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+i-a),s.g=Math.round(s.g+i-a),s.b=Math.round(s.b+i-a),s}(t):t}function b(t){return o(t)?t:function(t){const e=t.r,r=t.g,i=t.b,a=Math.max(e,r,i),n=a-Math.min(e,r,i);let s=a,o=0===n?0:a===e?(r-i)/n%6:a===r?(i-e)/n+2:(e-r)/n+4,l=0===n?0:n/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(d(t))}function _(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,i=t.b,a=Math.sqrt(r*r+i*i);let n=Math.atan2(i,r);return n=n>0?n:n+2*Math.PI,{l:e,c:a,h:n}}(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 i.A(t):t)).length||1===e){const r=[],i=t[0];for(let t=0;t<e;t++)r.push(i.clone());return r}if(r.shuffle&&(t=(0,a.k4)((0,n.o8)(t),r.seed)),t.length>=e){const r=[],i=(t.length-1)/(e-1);for(let a=0;a<e;a++){const e=Math.round(a*i);r.push(t[e].clone())}return r}return function(t,e,r={}){const i=[],n=t.length-1,s=Math.ceil((e-t.length)/n);t:for(let a=0;a<n;a++){const n=t[a],o=t[a+1];for(let a=1;a<=s;a++){const l=a/(s+1);if(i.push(T(n,o,l,r)),i.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,a.k4)(i,r.seed??1)]}(t,e,r)}const x=(t,e)=>{const r=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+r))};function T(t,e,r,n={}){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(!n.offset)return new i.A([p,y,f]);const m=(0,a.Mo)(n.seed);return new i.A([x(p,m),x(y,m),x(f,m)])}},5408(t,e,r){r.d(e,{_H:()=>i,ih:()=>a});const i=4096,a=8},4264(t,e,r){r.d(e,{lf:()=>kt,L:()=>Ot,A4:()=>St,aR:()=>Nt,tU:()=>Rt,V1:()=>Mt,uU:()=>Ut});var i=r(19419),a=r(5408),n=r(13195),s=r(89518),o=r(68572),l=r(63907),u=r(85079),c=r(74038);class h{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,i){const a=this.propertyInfos,n=this.getEncodingInfos(),s=[],o=s.length,l=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<l;t++)s.push(0);for(const l of Object.keys(n)){const u=n[l],{type:c,precisionFactor:h,isLayout:p}=a[l],y=p?r.getLayoutProperty(l):r.getPaintProperty(l),f=y.interpolator?.getInterpolationRange(e);let m=0;for(const r of u){const{offset:a}=r,n=o+Math.floor(a/4),l=i??y.getValue(f?f[m]:e,t),u=h||1;switch(c){case 0:case 1:s[n]|=this._encodeByte(l*u,0);break;case 2:case 3:s[n]|=this._encodeShort(l*u,0);break;case 4:case 5:s[n]|=this._encodeByte(l*u,0),s[n]|=this._encodeByte(l*u,8);break;case 6:case 7:s[n]|=this._encodeShort(l*u,0),s[n]|=this._encodeShort(l*u,16);break;case 8:case 9:s[n]|=this._encodeByte(l*u,0),s[n]|=this._encodeByte(l*u,8),s[n]|=this._encodeByte(l*u,16),s[n]|=this._encodeByte(l*u,24);break;case 10:s[n]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(n,s,l);break;default:throw new Error("Unsupported encoding type")}m++}}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:l.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:l.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:l.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:l.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:l.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){const i=r[t],a=i.name,{count:n,dataType:s,normalized:o}=h._encodingInfo[i.type],{attribueIdx:l,precisionFactor:u}=i,c=u||1,p=[{location:l[0],name:a,propertyName:t,count:n,type:s,normalized:o,precisionFactor:c}];if(this._precisionFactors[a]=c,2===e){const e=`${a}To`;p.push({location:l[1],name:e,propertyName:t,count:n,type:s,normalized:o,precisionFactor:c}),this._precisionFactors[e]=c}return p}_buildMaterialInfo(){const t=[];this._propertyEncodingInfo={};const e={},r=this.properties,i=this.propertyInfos;let a=-1;for(const n of r){a++;const r=i[n].name;e[r]=!1,e[`${r}To`]=!1;const s=this.getAtributeState(a);if(0===s||3===s)continue;const o=this._getLayoutElementsForPropertyState(n,s,i);t.push(...o)}for(const r of t)e[r.name]=!0;const n=function(t){const e=(0,o.H)(t),r=[];let i=0;for(const t of e)r.push({...t,offset:i}),i+=p(t.type)*t.count;return r}(t);this._buildLayout(n),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this.opacityLayout?this._locations=(0,u._u)([this.baseGeometryLayout,this.opacityLayout]):this._locations=(0,u.Xk)(this.baseGeometryLayout);const e=this.baseGeometryLayout;let r=e[0].stride;const i=[];let a=0;for(const e of t)a+=p(e.type)*e.count;r=y(r+a);for(const t of e)i.push(new c._(t.name,t.count,t.type,t.offset,r,t.normalized));let n=0;for(const a of t)i.push(new c._(a.name,a.count,a.type,e[0].stride+n,r,a.normalized)),void 0===this._propertyEncodingInfo[a.propertyName]&&(this._propertyEncodingInfo[a.propertyName]=[]),this._propertyEncodingInfo[a.propertyName].push({offset:n}),n+=p(a.type)*a.count;this._ddStrideInBytes=n,this._geometryLayout=i;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 i=-1;for(const a of e){i++;const{name:e,type:n,isLayout:s}=r[a];switch(this.getAtributeState(i)){case 0:t.push({name:e,getValue:(t,e,r,i)=>{const o=s?t.getLayoutValue(a,e):t.getPaintValue(a,e);switch(n){case 11:{const r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),a=i.getMosaicItemPosition(r,!1);if(null==a)return null;const{tl:n,br:s}=a;return[n[0],s[1],s[0],n[1]]}case 12:{const t=i.getMosaicItemPosition(o,!a.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,i)=>(s?t.getLayoutProperty(a):t.getPaintProperty(a)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){const e=255*t[3];return(0,s.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;const i=r.rect,a=r.width,n=r.height;e[t]=this._encodeShort(i.x+2,0),e[t]|=this._encodeShort(i.y+2+n,16),e[t+1]=this._encodeShort(i.x+2+a,0),e[t+1]|=this._encodeShort(i.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const p=t=>{switch(t){case l.pe.FLOAT:case l.pe.INT:case l.pe.UNSIGNED_INT:return 4;case l.pe.SHORT:case l.pe.UNSIGNED_SHORT:case l.pe.HALF_FLOAT:return 2;case l.pe.BYTE:case l.pe.UNSIGNED_BYTE:return 1}},y=t=>t+3&-4;class f extends h{static{this.ATTRIBUTES=["background-color","background-pattern"]}static{this.GEOMETRY_LAYOUT=[new c._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"background-color":{name:"background-color",type:0,attribueIdx:[0,1],isLayout:!1},"background-pattern":{name:"background-pattern",type:0,attribueIdx:[1,2],isLayout:!1,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends h{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 c._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new c._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=g.ATTRIBUTES,this.propertyInfos=g.ATTRIBUTES_INFO}}class d extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new c._("position",2,l.pe.SHORT,0,8),new c._("offset",2,l.pe.BYTE,4,8),new c._("normal",2,l.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=e?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.propertyInfos=e?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE}}class b extends h{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new c._("position",2,l.pe.SHORT,0,16),new c._("extrudeOffset",4,l.pe.BYTE,4,16),new c._("directionNormal",4,l.pe.BYTE,8,16),new c._("accumulatedDistance",2,l.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=b.GEOMETRY_LAYOUT,this.properties=b.ATTRIBUTES,this.propertyInfos=b.ATTRIBUTES_INFO}}const _=[new c._("positionAndOffset",4,l.pe.SHORT,0,16),new c._("iconInfo",4,l.pe.UNSIGNED_SHORT,8,16)],w=[new c._("opacityInfo",1,l.pe.UNSIGNED_BYTE,0,1)];class v extends h{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=w,this.properties=v.ATTRIBUTES,this.propertyInfos=v.ATTRIBUTES_INFO}}class x extends h{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=w,this.properties=x.ATTRIBUTES,this.propertyInfos=x.ATTRIBUTES_INFO}}var T=r(68197),E=r(85334);function P(t,e,r,i){const a=3*t,n=3*(r-t)-a,s=1-a-n,o=3*e,l=3*(i-e)-o,u=1-o-l;function c(t){return((s*t+n)*t+a)*t}function h(t){return(3*s*t+2*n)*t+a}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,i,a,n,s,o;for(a=t,o=0;o<8;o++){if(n=c(a)-t,Math.abs(n)<e)return a;if(s=h(a),Math.abs(s)<1e-6)break;a-=n/s}if(r=0,i=1,a=t,a<r)return r;if(a>i)return i;for(;r<i;){if(n=c(a),Math.abs(n-t)<e)return a;t>n?r=a:i=a,a=.5*(i-r)+r}return a}(t,e))}}const I={};I.ease=P(.25,.1,.25,1),I.linear=P(0,0,1,1),I.easeIn=I["ease-in"]=P(.42,0,1,1),I.easeOut=I["ease-out"]=P(0,0,.58,1),I.easeInOut=I["ease-in-out"]=P(.42,0,.58,1);const D={kind:"null"},L={kind:"number"},A={kind:"string"},k={kind:"boolean"},S={kind:"color"},R={kind:"object"},M={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const N=[D,L,A,k,S,R,O(M)];function U(t){if("array"===t.kind){const e=U(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 D;if("string"==typeof t)return A;if("boolean"==typeof t)return k;if("number"==typeof t)return L;if(t instanceof T.A)return S;if(Array.isArray(t)){let e;for(const r of t){const t=B(r);if(e){if(e!==t){e=M;break}}else e=t}return O(e||M,t.length)}return"object"==typeof t?R:M}function z(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||z(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of N)if(z(t,e))return!0;return e.kind===t.kind}function V(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 G{constructor(){this.type=M}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new G}evaluate(t,e){return t?.id}}class ${constructor(){this.type=A}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new $}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 Y{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new Y}evaluate(t,e){return e}}class H{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=k}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(xt(t[1],e),xt(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class W{constructor(t){this._arg=t,this.type=k}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new W(xt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class j{constructor(t){this._args=t,this.type=k}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new j(r)}evaluate(t,e){for(const r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class q{constructor(t){this._args=t,this.type=k}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new q(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!0;return!1}}class K{constructor(t){this._args=t,this.type=k}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new K(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 i;const a=[];for(let n=1;n<t.length-1;n+=2){const s=xt(t[n],e),o=xt(t[n+1],e,r);i||(i=o.type),a.push({condition:s,output:o})}const n=xt(t[t.length-1],e,r);return i||(i=n.type),new Z(i,a,n)}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 J{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 i=[];for(let a=1;a<t.length;a++){const n=xt(t[a],e);r||(r=n.type),i.push(n)}return new J(r,i)}evaluate(t,e){for(const r of this._args){const i=r.evaluate(t,e);if(null!==i)return i}return null}}class X{constructor(t,e,r,i,a){this.type=t,this._input=e,this._labels=r,this._outputs=i,this._fallback=a}static parse(t,e){if(t.length<3)throw 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 i=xt(t[1],e),a=[],n={};let s;for(let i=2;i<t.length-1;i+=2){let o=t[i];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;n[t]=a.length}const l=xt(t[i+1],e);r||(r=l.type),a.push(l)}return new X(r,i,n,a,xt(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 Q{constructor(t,e,r,i,a){this._operator=t,this.type=e,this.interpolation=r,this.input=i,this._stops=a}static parse(t,e,r){const i=t[0];if(t.length<5)throw new Error(`"${i}" expects at least 4 arguments`);const a=t[1];if(!Array.isArray(a)||0===a.length)throw new Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(1!==a.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==a.length||"number"!=typeof a[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==a.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=a[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 "${a[0]}"`)}if(t.length%2!=1)throw new Error(`"${i}" expects an even number of arguments`);const n=xt(t[2],e,L);let s;"interpolate-hcl"===i||"interpolate-lab"===i?s=S:r&&"value"!==r.kind&&(s=r);const o=[];for(let r=3;r<t.length;r+=2){const a=t[r];if("number"!=typeof a)throw new Error(`"${i}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=a)throw new Error(`"${i}" requires strictly ascending stop inputs`);const n=xt(t[r+1],e,s);s||(s=n.type),o.push([a,n])}if(s&&s!==S&&s!==L&&("array"!==s.kind||s.itemType!==L))throw new Error(`"${i}" cannot interpolate type ${U(s)}`);return new Q(i,s,a,n,o)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const i=this.input.evaluate(t,e);if(i<=r[0][0])return r[0][1].evaluate(t,e);if(i>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););const s=r[a-1][0],o=r[a][0],l=Q.interpolationRatio(this.interpolation,i,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,n.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,n.GW)(t.r,e.r,l),(0,n.GW)(t.g,e.g,l),(0,n.GW)(t.b,e.b,l),(0,n.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof c)return(0,n.GW)(u,c,l);throw new Error(`"${this._operator}" cannot interpolate type ${U(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,E.RH)(u),e=(0,E.RH)(c),r=e.h-t.h,i=(0,E.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,n.GW)(t.c,e.c,l),l:(0,n.GW)(t.l,e.l,l)});return new T.A({a:(0,n.GW)(u.a,c.a,l),...i})}if("interpolate-lab"===this._operator){const t=(0,E.ZD)(u),e=(0,E.ZD)(c),r=(0,E.$)({l:(0,n.GW)(t.l,e.l,l),a:(0,n.GW)(t.a,e.a,l),b:(0,n.GW)(t.b,e.b,l)});return new T.A({a:(0,n.GW)(u.a,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 i=0;for(;++i<r.length&&!(t<r[i][0]););const a=r[i-1][0],n=r[i][0];return Q.interpolationRatio(this.interpolation,e,a,n)}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 i=0;for(;++i<e.length&&!(t<e[i][0]););return[e[i-1][0],e[i][0]]}static interpolationRatio(t,e,r,i){let a=0;return"linear"===t[0]?a=Q._exponentialInterpolationRatio(e,1,r,i):"exponential"===t[0]?a=Q._exponentialInterpolationRatio(e,t[1],r,i):"cubic-bezier"===t[0]&&(a=P(t[1],t[2],t[3],t[4])(Q._exponentialInterpolationRatio(e,1,r,i),1e-5)),a<0?a=0:a>1&&(a=1),a}static _exponentialInterpolationRatio(t,e,r,i){const a=i-r;if(0===a)return 0;const n=t-r;return 1===e?n/a:(e**n-1)/(e**a-1)}}class tt{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=xt(t[1],e,L);let i;const a=[];a.push([-1/0,xt(t[2],e)]);for(let r=3;r<t.length;r+=2){const n=t[r];if("number"!=typeof n)throw new Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=n)throw new Error('"step" requires strictly ascending stop inputs');const s=xt(t[r+1],e);i||(i=s.type),a.push([n,s])}return new tt(i,r,a)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const i=this._input.evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););return this._stops[a-1][1].evaluate(t,e)}}class et{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 i=new F(e);for(let r=1;r<t.length-1;r+=2){const a=t[r];if("string"!=typeof a)throw new Error(`"let" requires a string to define variable names - found ${a}`);i.add(a,xt(t[r+1],e))}const a=xt(t[t.length-1],i,r);return new et(a.type,a)}evaluate(t,e){return this._output.evaluate(t,e)}}class rt{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 i=e.get(t[1]);if(!i)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new rt(r||M,i)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{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=xt(t[1],e,L),i=xt(t[2],e);return new it(i.type.itemType,r,i)}evaluate(t,e){const r=this._index.evaluate(t,e),i=this._array.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"at" index out of bounds');if(r!==Math.floor(r))throw new Error('"at" index must be an integer');return i[r]}}class at{constructor(t,e){this._key=t,this._obj=e,this.type=M}static parse(t,e){let r,i;switch(t.length){case 2:return r=xt(t[1],e),new at(r);case 3:return r=xt(t[1],e),i=xt(t[2],e),new at(r,i);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 nt{constructor(t,e){this._key=t,this._obj=e,this.type=k}static parse(t,e){let r,i;switch(t.length){case 2:return r=xt(t[1],e),new nt(r);case 3:return r=xt(t[1],e),i=xt(t[2],e),new nt(r,i);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=k}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(xt(t[1],e),xt(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=L}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const r=xt(t[1],e),i=xt(t[2],e);if(4===t.length){const a=xt(t[3],e,L);return new ot(r,i,a)}return new ot(r,i)}evaluate(t,e){const r=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){const a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw new Error('"index-of" index must be an integer');return i.indexOf(r,a)}return i.indexOf(r)}}class lt{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const r=xt(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,i){this.type=t,this._array=e,this._from=r,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const r=xt(t[1],e),i=xt(t[2],e,L);if(i.type!==L)throw new Error('"slice" index must return a number');if(4===t.length){const a=xt(t[3],e,L);if(a.type!==L)throw new Error('"slice" index must return a number');return new ut(r.type,r,i,a)}return new ut(r.type,r,i)}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 i=this._from.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');if(this._to){const a=this._to.evaluate(t,e);if(a<0||a>=r.length)throw new Error('"slice" index out of bounds');if(a!==Math.floor(a))throw new Error('"slice" index must be an integer');return r.slice(i,a)}return r.slice(i)}}class ct{constructor(){this.type=k}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=L}static parse(t,e,r){const i=t.slice(1).map(t=>xt(t,e));return new ht(i,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=L}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const r=t.slice(1).map(t=>xt(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=A}static parse(t,e){return new yt(t.slice(1).map(t=>xt(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=A}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=xt(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=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const r=t.slice(1).map(t=>xt(t,e));return new mt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new T.A({r,g:i,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class gt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const r=t.slice(1).map(t=>xt(t,e));return new gt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),n=this._validateAlpha(this._args[3].evaluate(t,e));return new T.A({r,g:i,b:a,a:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw 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=O(L,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const r=xt(t[1],e);return new dt(r)}evaluate(t,e){return new T.A(this._color.evaluate(t,e)).toRgba()}}class bt{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 i,a=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;default:throw new Error('"array" type argument must be string, number or boolean')}a++}else i=M;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');a++}i=O(i,e)}else switch(r){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;case"object":i=R}const n=[];for(;a<t.length;a++){const r=xt(t[a],e);n.push(r)}return new bt(i,n)}evaluate(t,e){let r;for(const i of this._args){const a=i.evaluate(t,e);if(r=B(a),z(r,this.type))return a}throw new Error(`Expected ${U(this.type)} but got ${U(r)}`)}}class _t{static{this.types={"to-boolean":k,"to-color":S,"to-number":L,"to-string":A}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0],i=_t.types[r];if(i===k||i===A){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 a=[];for(let r=1;r<t.length;r++){const i=xt(t[r],e);a.push(i)}return new _t(i,a)}evaluate(t,e){if(this.type===k)return Boolean(this._args[0].evaluate(t,e));if(this.type===A)return V(this._args[0].evaluate(t,e));if(this.type===L){for(const r of this._args){const i=Number(r.evaluate(t,e));if(!isNaN(i))return i}return null}if(this.type===S){for(const r of this._args)try{const i=_t.toColor(r.evaluate(t,e));if(i instanceof T.A)return i}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return V(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=A}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new vt(xt(t[1],e))}evaluate(t,e){return U(B(this._arg.evaluate(t,e)))}}function xt(t,e,r){const i=typeof t;if("string"===i||"boolean"===i||"number"===i||null===t){if(r)switch(r.kind){case"string":"string"!==i&&(t=_t.toString(t));break;case"number":"number"!==i&&(t=_t.toNumber(t));break;case"color":t=_t.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const a=t[0];if("string"!=typeof a)throw new Error("First element of expression must be a string");const n=Tt[a];if(void 0===n)throw new Error(`Invalid expression operator "${a}"`);if(!n)throw new Error(`Unimplemented expression operator "${a}"`);return n.parse(t,e,r)}const Tt={array:bt,boolean:bt,collator:null,format:null,image:null,literal:wt,number:bt,"number-format":null,object:bt,string:bt,"to-boolean":_t,"to-color":_t,"to-number":_t,"to-string":_t,typeof:vt,accumulated:null,"feature-state":null,"geometry-type":$,id:G,"line-progress":null,properties:C,at:it,get:at,has:nt,in:st,"index-of":ot,length:lt,slice:ut,"!":W,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:j,any:q,case:Z,coalesce:J,match:X,within:null,interpolate:Q,"interpolate-hcl":Q,"interpolate-lab":Q,step:tt,let:et,var:rt,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:Y,"heatmap-density":null,"has-id":ct,none:K};class Et{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=xt(t,null,k);return new Et(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 Et.convertComparison("==",t[1],t[2]);case"!=":return Et.negate(Et.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Et.convertComparison(e,t[1],t[2]);case"in":return Et.convertIn(t[1],t.slice(2));case"!in":return Et.negate(Et.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Et.convertCombining(e,t.slice(1));case"has":return Et.convertHas(t[1]);case"!has":return Et.negate(Et.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 Pt{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 It=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&&Tt[e[0]]){const r={number:L,color:S,string:A,boolean:k,enum:A};try{const i=xt(e,null,"array"===t.type?O(r[t.value]||M,t.length):r[t.type]);this.getValue=this._buildExpression(i,t),this.isDataDriven=!0,i instanceof Q&&i.input instanceof Y&&(this.interpolator=i)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);const i=e?.stops&&e.stops.length>0;if(i)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)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=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=V(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,i)=>{try{const a=t.evaluate(i,r);return void 0===a?e.default:this._validate(a,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),void 0!==a&&(a=this._validate(a,e)),null!=a?a:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),a=this._categorical(a,t.stops),void 0!==a?a:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0!==t.default?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 i=0;i<r;i++)if(e[i][0]===t)return e[i][1]}_interval(t,e){const r=e.length;let i=0;for(let a=0;a<r&&e[a][0]<=t;a++)i=a;return e[i][1]}_interpolate(t,e,r){let i,a;const s=e.length;for(let r=0;r<s;r++){const n=e[r];if(!(n[0]<=t)){a=n;break}i=n}if(i&&a){const e=a[0]-i[0],s=t-i[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(i[1])){const t=i[1],e=a[1],r=[];for(let i=0;i<t.length;i++)r.push((0,n.GW)(t[i],e[i],o));return r}return(0,n.GW)(i[1],a[1],o)}return i?i[1]:a?a[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof T.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Lt=r(76213);class At{constructor(t,e,r,i){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=i,t){case 0:this._layoutDefinition=Pt.backgroundLayoutDefinition,this._paintDefinition=Pt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Pt.fillLayoutDefinition,this._paintDefinition=Pt.fillPaintDefinition;break;case 2:this._layoutDefinition=Pt.lineLayoutDefinition,this._paintDefinition=Pt.linePaintDefinition;break;case 3:this._layoutDefinition=Pt.symbolLayoutDefinition,this._paintDefinition=Pt.symbolPaintDefinition;break;case 4:this._layoutDefinition=Pt.circleLayoutDefinition,this._paintDefinition=Pt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Et.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let i;const a=this._layoutProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._layoutDefinition[t].default),i}getPaintValue(t,e,r){let i;const a=this._paintProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._paintDefinition[t].default),i}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,i,a,n,s){return!1}getFeatureInflatedBounds(t,e,r,i){return null}_parseLayout(t){const e={};for(const r in t){const i=this._layoutDefinition[r];i&&(e[r]=new Dt(i,t[r]))}return e}_parsePaint(t){const e={};for(const r in t){const i=this._paintDefinition[r];i&&(e[r]=new Dt(i,t[r]))}return e}computeAttributesKey(t,e,r,i){let a=0,n=0;for(const t of e){let e=3;if(t&&t!==i){const i=r[t],{isLayout:a,isOptional:n}=i,s=a?this.getLayoutProperty(t):this.getPaintProperty(t);e=s?.interpolator?2:s?.isDataDriven?1:n&&!s?3:0}n|=e<<a,a+=2}return n<<3|t}}class kt extends At{constructor(t,e,r,i){super(t,e,r,i),this.backgroundMaterial=new f(this.computeAttributesKey(0,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}}class St extends At{constructor(t,e,r,i){super(t,e,r,i);const a=this.getPaintProperty("fill-color"),n=this.getPaintProperty("fill-opacity"),s=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=a?.isDataDriven,this.hasDataDrivenOpacity=n?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||s?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!a&&a.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new g(this.computeAttributesKey(1,g.ATTRIBUTES,g.ATTRIBUTES_INFO)),this.outlineMaterial=new d(this.computeAttributesKey(2,this.outlineUsesFillColor?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,i){const a=Bt(t);if(!a)return null;const n=this.getPaintValue("fill-translate",e,t),s=i*Math.max(n[0],n[1]);return a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s,a}isIntersectingFeature(t,e,r,i,s,o,l){const u=i.getGeometry();if(!u)return!1;const c=a.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const h=(0,n.yM)(this.getPaintValue("fill-translate",s,i),this.getPaintValue("fill-translate-anchor",s,i),o,a.ih);return t-=c*h.x,e-=c*h.y,!!(0,n.s3)(t,e,u)||(0,n.ru)(t,e,u,r)}}class Rt extends At{constructor(t,e,r,i){super(t,e,r,i);const a=this.getPaintProperty("line-pattern");if(this.lineMaterial=new b(this.computeAttributesKey(3,b.ATTRIBUTES,b.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<Lt.Gh){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,i){const a=Bt(t);if(!a)return null;const n=this.getPaintValue("line-translate",e,t),s=i*Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;const o=i*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=i*(this.getPaintValue("line-width",e,t)/2);return a[0]-=o+l,a[1]-=o+l,a[2]+=o+l,a[3]+=o+l,a}isIntersectingFeature(t,e,r,i,s,o,l){let u=i.getGeometry();if(!u)return!1;const c=a.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const h=(0,n.yM)(this.getPaintValue("line-translate",s,i),this.getPaintValue("line-translate-anchor",s,i),o,a.ih);t-=c*h.x,e-=c*h.y;const p=c*this.getPaintValue("line-offset",s,i)||0;0!==p&&(u=(0,n.cP)(u,-p));const y=c*(this.getPaintValue("line-width",s,i)/2),f=Math.max(1,r-y);return(0,n.ru)(t,e,u,f)}}class Mt extends At{constructor(t,e,r,i){super(t,e,r,i),this.iconMaterial=new v(this.computeAttributesKey(4,v.ATTRIBUTES,v.ATTRIBUTES_INFO)),this.textMaterial=new x(this.computeAttributesKey(6,x.ATTRIBUTES,x.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 Ot extends At{constructor(t,e,r,i){super(t,e,r,i),this.circleMaterial=new m(this.computeAttributesKey(5,m.ATTRIBUTES,m.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,i){const n=Bt(t);if(!n)return null;const s=this.getPaintValue("circle-translate",e,t),o=Math.max(s[0],s[1]);n[0]-=o,n[2]-=o,n[1]+=o,n[3]+=o;const l=i*(a.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return n[0]-=l,n[1]-=l,n[2]+=l,n[3]+=l,n}isIntersectingFeature(t,e,r,i,s,o,l){const u=i.getGeometry();if(!u)return!1;const c=a.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const h=(0,n.yM)(this.getPaintValue("circle-translate",s,i),this.getPaintValue("circle-translate-anchor",s,i),o,c),p=c*(this.getPaintValue("circle-radius",s,i)+this.getPaintValue("circle-stroke-width",s,i));let y,f;for(const i of u)if(i)for(const a of i)if(y=a.x+h.x,f=a.y+h.y,Math.sqrt((t-y)*(t-y)+(e-f)*(e-f))-r<=p)return!0;return!1}}class Nt{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),i=t.getLayoutProperty("icon-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("icon-anchor",e),i=t.getLayoutProperty("icon-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("icon-offset",e),i=t.getLayoutProperty("icon-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("icon-padding",e),i=t.getLayoutProperty("icon-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("icon-rotate",e),i=t.getLayoutProperty("icon-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Ut{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),i=t.getLayoutProperty("text-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("text-anchor",e),i=t.getLayoutProperty("text-justify"),i?.isDataDriven?this._justifyProp=i:this.justify=t.getLayoutValue("text-justify",e),i=t.getLayoutProperty("text-letter-spacing"),i?.isDataDriven?this._letterSpacingProp=i:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),i=t.getLayoutProperty("text-line-height"),i?.isDataDriven?this._lineHeightProp=i:this.lineHeight=t.getLayoutValue("text-line-height",e),i=t.getLayoutProperty("text-max-angle"),i?.isDataDriven?this._maxAngleProp=i:this.maxAngle=t.getLayoutValue("text-max-angle",e),i=t.getLayoutProperty("text-max-width"),i?.isDataDriven?this._maxWidthProp=i:this.maxWidth=t.getLayoutValue("text-max-width",e),i=t.getLayoutProperty("text-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("text-offset",e),i=t.getLayoutProperty("text-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("text-padding",e),i=t.getLayoutProperty("text-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("text-rotate",e),i=t.getLayoutProperty("text-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("text-size",e),i=t.getLayoutProperty("text-writing-mode"),i?.isDataDriven?this._writingModeProp=i:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Bt(t){const e=t?.getGeometry();if(null==e)return null;let r=1/0,a=1/0,n=-1/0,s=-1/0;for(const t of e)if(t)for(const e of t)r=Math.min(r,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),s=Math.max(s,e.y);return(0,i.fA)(r,a,n,s)}},45013(t,e,r){r.d(e,{A:()=>n});var i=r(4718),a=r(4264);class n{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,i.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){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),i=0!==r?.getLayoutValue("symbol-placement",e);let a=r?.getLayoutValue("icon-rotation-alignment",e);2===a&&(a=i?0:1);let n=r?.getLayoutValue("text-rotation-alignment",e);2===n&&(n=i?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:a,textRotationAlignment:n,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 i,a=!0;const s=this._layerByName[t.id];if(s){const o=this.layers.indexOf(s);e||(e=o),e===o?(a=!1,i=n._recreateLayer(t,s),this.layers[e]=i,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),i=this._create(t,e,this.layers),this.layers.splice(e,0,i),r.layers.splice(e,0,t))}else i=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(i),r.layers.push(t)):(this.layers.splice(e,0,i),r.layers.splice(e,0,t));this._layerByName[t.id]=i,this._uidToLayer.set(i.uid,i),a&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){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 i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},a=n._recreateLayer(i,r),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].paint=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setLayoutProperties(t,e){const r=this._layerByName[t];if(!r)return;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:e,paint:r.paint},a=n._recreateLayer(i,r),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].layout=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setStyleLayerVisibility(t,e){const r=this._layerByName[t];if(!r)return;const i=r.layout||{};i.visibility=e;const a={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:i,paint:r.paint},s=n._recreateLayer(a,r),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=i,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const r=e.layout;return r?.visibility??"visible"}_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 i of this.layers){const a=i.layout;if(1===i.type){const e=i;let n=i.source+"|"+i.sourceLayer;n+="|"+(a?.visibility??""),n+="|"+i.minzoom,n+="|"+i.maxzoom,n+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(n+="|"+r),t.push({key:n,layer:i})}else if(2===i.type){const t=i,n=i.paint,s=null!=n&&(null!=n["line-pattern"]||null!=n["line-dasharray"]);let o=i.source+"|"+i.sourceLayer;o+="|"+(a?.visibility??""),o+="|"+i.minzoom,o+="|"+i.maxzoom,o+="|"+JSON.stringify(i.filter),o+="|"+(void 0!==a?a["line-cap"]:""),o+="|"+(void 0!==a?a["line-join"]:""),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,r;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const i=t.length;for(let a=0;a<i;a++){const n=t[a];if(n.key===e)n.layer.refLayerId=r;else if(e=n.key,r=n.layer.id,1===n.layer.type){if(!n.layer.getPaintProperty("fill-outline-color"))for(let s=a+1;s<i;s++){const i=t[s];if(i.key!==e)break;if(i.layer.getPaintProperty("fill-outline-color")){t[a]=i,t[s]=n,r=i.layer.id;break}}}else if(2===n.layer.type){let s=n.layer;for(let o=a+1;o<i;o++){const i=t[o];if(i.key!==e)break;const l=i.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[a]=i,t[o]=n,r=i.layer.id)}}}}_create(t,e,r){const i=1-(1+e)*(1/(r.length+1)),n=this._runningId++;switch(t.type){case"background":return new a.lf(0,t,i,n);case"fill":return new a.A4(1,t,i,n);case"line":return new a.tU(2,t,i,n);case"symbol":return new a.V1(3,t,i,n);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,i,n)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new a.lf(0,t,e.z,e.uid);case"fill":return new a.A4(1,t,e.z,e.uid);case"line":return new a.tU(2,t,e.z,e.uid);case"symbol":return new a.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,e.z,e.uid)}return null}}},85079(t,e,r){r.d(e,{Xk:()=>a,_u:()=>n});var i=r(21818);function a(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{const i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function n(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,a,n=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=a,this.normalized=n,this.divisor=s,this.integer=o}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2455,3354],{5482(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,o){i(t,e,n||0,r||t.length-1,o||a)}function i(t,e,n,r,a){for(;r>n;){if(r-n>600){var s=r-n+1,l=e-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-l*c/s+h)),Math.min(r,Math.floor(e+(s-l)*c/s+h)),a)}var f=t[e],d=n,p=r;for(o(t,n,e),a(t[r],f)>0&&o(t,n,r);d<p;){for(o(t,d,p),d++,p--;a(t[d],f)<0;)d++;for(;a(t[p],f)>0;)p--}0===a(t[n],f)?o(t,n,p):o(t,++p,r),p<=e&&(n=p+1),e<=p&&(r=p-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function a(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>h,b:()=>s,c:()=>a,d:()=>i,e:()=>f,f:()=>c,l:()=>u,n:()=>d,t:()=>o});var r=n(40876);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,r=3,i=r){if(t.length/r!==Math.ceil(e.length/i))return t;const o=t.length/r,a=n[0],s=n[1],l=n[2],u=n[4],c=n[5],h=n[6],f=n[8],d=n[9],p=n[10],m=n[12],g=n[13],y=n[14];let M=0,x=0;for(let n=0;n<o;n++){const n=e[M],o=e[M+1],v=e[M+2];t[x]=a*n+u*o+f*v+m,t[x+1]=s*n+c*o+d*v+g,t[x+2]=l*n+h*o+p*v+y,M+=i,x+=r}return t}function a(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,r=3,i=r){if(t.length/r!==Math.ceil(e.length/i))return;const o=t.length/r,a=n[0],s=n[1],l=n[2],u=n[3],c=n[4],h=n[5],f=n[6],d=n[7],p=n[8];let m=0,g=0;for(let n=0;n<o;n++){const n=e[m],o=e[m+1],y=e[m+2];t[g]=a*n+u*o+f*y,t[g+1]=s*n+c*o+d*y,t[g+2]=l*n+h*o+p*y,m+=i,g+=r}}function l(t,e,n,r=3,i=r){const o=Math.min(t.length/r,e.length/i);let a=0,s=0;for(let l=0;l<o;l++)t[s]=n*e[a],t[s+1]=n*e[a+1],t[s+2]=n*e[a+2],a+=i,s+=r;return t}function u(t,e,n,r){c(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function c(t,e,n,i,o=3,a=o){const s=Math.min(t.length/o,e.length/a);let l=0,u=0;const c=1/r.Tf;for(let r=0;r<s;r++)t[u]=i*(n*e[l])**c,t[u+1]=i*(n*e[l+1])**c,t[u+2]=i*(n*e[l+2])**c,l+=a,u+=o}function h(t,e,n,r=3,i=r){const o=t.length/r;if(o!==Math.ceil(e.length/i))return t;let a=0,s=0;for(let l=0;l<o;l++)t[s]=e[a]+n[0],t[s+1]=e[a+1]+n[1],t[s+2]=e[a+2]+n[2],a+=i,s+=r;return t}function f(t,e){d(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function d(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let o=0,a=0;for(let s=0;s<i;s++){const i=e[o],s=e[o+1],l=e[o+2],u=i*i+s*s+l*l;if(u>0){const e=1/Math.sqrt(u);t[a]=e*i,t[a+1]=e*s,t[a+2]=e*l}o+=r,a+=n}}n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:f,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,a=e.typedBuffer,s=e.typedBufferStride;let l=0,u=0;for(let t=0;t<r;t++)i[u]=a[l]>>n,i[u+1]=a[l+1]>>n,i[u+2]=a[l+2]>>n,l+=s,u+=o},transformMat3:s,transformMat3View:a,transformMat4:o,transformMat4View:i,translate:h},Symbol.toStringTag,{value:"Module"}))},40876(t,e,n){n.d(e,{Eq:()=>d,G1:()=>m,TS:()=>o,Tf:()=>M,V6:()=>i,Vm:()=>p,ay:()=>l,c1:()=>g,c4:()=>a,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>v});const r={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!!r[t]||!!r[t.toLowerCase()]}function o(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...o(t)]}function s(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n,r=1){const i=(t%360+360)%360/360,o=n<=.5?n*(e+1):n+e-n*e,a=2*n-o;return[Math.round(255*s(a,o,i+1/3)),Math.round(255*s(a,o,i)),Math.round(255*s(a,o,i-1/3)),r]}function u(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,i=e?1:17,o=e?9===t.length:5===t.length;let a=Number("0x"+t.slice(1));if(isNaN(a))return null;const s=[0,0,0,1];let l;return o&&(l=a&r,a>>=n,s[3]=i*l/255),l=a&r,a>>=n,s[2]=i*l,l=a&r,a>>=n,s[1]=i*l,l=a&r,a>>=n,s[0]=i*l,s}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),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),i=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(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*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&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])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(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 d(t){let e=i(t)?o(t):null;return e??=h(t),e??=c(t),e}function p(t){const e=d(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const M=2.2,x=1/M;function v(t){return t**x}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,a,s,l,u,c,h,f,d,p,m){return[t,e,n,r,i,o,a,s,l,u,c,h,f,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,n){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function o(t,e){return[t,e]}function a(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function s(){return o(1,1)}function l(){return o(1,0)}function u(){return o(0,1)}n.d(e,{Un:()=>c,ci:()=>a,fA:()=>o,o8:()=>i,vt:()=>r});const c=s(),h=l(),f=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:i,create:r,freeze:function(t,e){return[t,e]},fromArray:a,fromValues:o,ones:s,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function a(t,e,n){return[t,e,n]}function s(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return o(1,1,1)}function u(){return o(1,0,0)}function c(){return o(0,1,0)}function h(){return o(0,0,1)}n.d(e,{CN:()=>a,Cb:()=>g,Cw:()=>p,JP:()=>m,Un:()=>d,ci:()=>s,fA:()=>o,o8:()=>i,uY:()=>f,vt:()=>r});const f=[0,0,0],d=l(),p=u(),m=c(),g=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:m,UNIT_Z:g,ZEROS:f,clone:i,create:r,freeze:a,fromArray:s,fromValues:o,ones:l,unitX:u,unitY:c,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>i,Ov:()=>o,ct:()=>u});let r=1e-6;function i(){return r}const o=Math.random,a=Math.PI/180,s=180/Math.PI;function l(t){return t*a}function u(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>o,C:()=>a,Cc:()=>B,DI:()=>b,Il:()=>I,Io:()=>M,Ln:()=>y,Om:()=>A,Qr:()=>h,Re:()=>u,S8:()=>_,T9:()=>m,WQ:()=>l,Z0:()=>R,_S:()=>d,aI:()=>k,ei:()=>C,gL:()=>X,hG:()=>x,hZ:()=>s,hs:()=>g,jb:()=>Y,jk:()=>p,lo:()=>q,lw:()=>c,m3:()=>v,oW:()=>T,t2:()=>z,tn:()=>f,uE:()=>Z,xg:()=>P,ze:()=>w});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function x(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t}function B(t,e,n,r){const i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function R(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function C(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function X(t,e,n){const r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*s-r*u,f=r*l-i*s,d=i*f-o*h,p=o*c-r*f,m=r*h-i*c,g=2*a;return t[0]=s+c*g+2*d,t[1]=l+h*g+2*p,t[2]=u+f*g+2*m,t}const N=(0,r.vt)(),j=(0,r.vt)();function z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function k(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function T(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let a=r*r+i*i+o*o;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=o*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=u,O=c,E=h,P=M,q=x,I=o,Z=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(t,e){_(N,t),_(j,e);const n=A(N,j);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){const a=1-o,s=a*a,l=o*o,u=s*a,c=3*o*s,h=3*l*a,f=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=i*l-o*s,c=o*a-r*l,h=r*s-i*a,f=Math.sqrt(u*u+c*c+h*h);return t[0]=u/f,t[1]=c/f,t[2]=h/f,t},direction:T,dist:P,distance:M,div:E,divide:h,dot:A,equals:k,exactEquals:z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,u=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},inverse:b,len:I,length:o,lerp:B,max:m,min:p,mul:O,multiply:c,negate:w,normalize:_,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,a=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:s,sign:d,sqrDist:q,sqrLen:Z,squaredDistance:x,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:u,transformMat3:C,transformMat4:R,transformQuat:X},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>s});var r=n(4576),i=n(21818),o=(n(44208),n(15142)),a=n(11006);class s{constructor(t=9,e){this._compareMinX=f,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),b.prune(),_.prune(),A.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(x(t,n))for(w.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],a=n.leaf?r(o):o;x(t,a)&&(n.leaf?e(o):M(t,a)?l(o,e):w.push(o))}n=w.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r],o=e.leaf?n(i):i;if(x(t,o)){if(e.leaf||M(t,o))return!0;w.push(i)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,a=0,s=!1;const l=this._toBBox(t);for(_.clear(),A.clear();n||_.length>0;){if(n||(n=_.pop(),o=_.data[_.length-1],a=A.pop()??0,s=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),_.push(n),this._condense(_),this;s||n.leaf||!M(n,l)?o?(a++,n=o.children[a],s=!1):n=null:(_.push(n),A.push(a),a=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new R(t.slice(e,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const a=new C([]);a.height=r;const s=Math.ceil(i/o),l=s*Math.ceil(Math.sqrt(o));v(t,e,n,l,this._compareMinX);for(let i=e;i<=n;i+=l){const e=Math.min(i+l-1,n);v(t,i,e,s,this._compareMinY);for(let n=i;n<=e;n+=s){const i=Math.min(n+s-1,e);a.children.push(this._build(t,n,i,r-1))}}return u(a,this._toBBox),a}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);_.clear();const o=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,a=e.children.length;o<a;o++){const a=e.children[o],s=p(a),l=g(t,a)-s;l<i?(i=l,r=s<r?s:r,n=a):l===i&&s<r&&(r=s,n=a)}e=n||e.children[0]}return e}(i,this._data,e,_);for(o.children.push(t),h(o,i);e>=0&&_.data[e].children.length>this._maxEntries;)this._split(_,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}(i,_,e)}_split(t,e){const n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return;const a=n.children.splice(o,n.children.length-o),s=n.leaf?new R(a):new C(a);s.height=n.height,u(n,this._toBBox),u(s,this._toBBox),e?t.data[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this._data=new C([t,e]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,o;r=i=1/0;for(let a=e;a<=n-e;a++){const e=c(t,0,a,this._toBBox),s=c(t,a,n,this._toBBox),l=y(e,s),u=p(e)+p(s);l<r?(r=l,o=a,i=u<i?u:i):l===r&&u<i&&(i=u,o=a)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:f,i=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this._toBBox,o=c(t,0,e,i),a=c(t,n-e,n,i);let s=m(o)+m(a);for(let r=e;r<n-e;r++){const e=t.children[r];h(o,t.leaf?i(e):e),s+=m(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(a,t.leaf?i(e):e),s+=m(a)}return s}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],o=i.children;o.splice((0,r.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,i.z)(t));else b.pushArray(n.children);n=b.pop()??null}}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,i){i||(i=new R([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,a=e;a<n;a++)o=t.children[a],h(i,t.leaf?r(o):o);return i}function h(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function y(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function v(t,e,n,r,i){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=r)continue;const s=n+Math.ceil((e-n)/r/2)*r;(0,a.q)(t,s,n,e,i),o.push(n,s,s,e)}}const w=new o.A,b=new o.A,_=new o.A,A=new o.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class C extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},91075(t,e,n){n.d(e,{A:()=>l});var r=n(5482),i=n(25482),o=n(91429),a=n(16930),s=n(36005);let l=class extends i.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=a.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof a.A)return t;if(null!=t){const n=new a.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,r.Cg)([(0,o.MZ)()],l.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasM",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasZ",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:a.A.WGS84})],l.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,r.Cg)([(0,o.$K)("esri.geometry.Geometry")],l)},86738(t,e,n){n.d(e,{A:()=>x});var r=n(5482),i=n(69622),o=n(53966),a=n(91429),s=n(56507),l=n(91075),u=n(16930),c=n(21325),h=n(28735);function f({x:t,y:e,spatialReference:n},r=[0,0]){if(n){if((0,c.K8)(n))return(0,h.tD)(t,e,r);if((0,c.EA)(n))return r[0]=t,r[1]=e,r}return null}const d=[0,0];var p,m=n(43937),g=n(36005);const y=[0,0];function M(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let x=p=class extends l.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",i.A.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,r,i){let a;if(Array.isArray(t))a=t,i=e,t=a[0],e=a[1],n=a[2],r=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,n=a.z,r=a.m,(i=a.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new u.A(i)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)o.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)o.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&i?.isWebMercator){const n=(0,h.je)(a.longitude,a.latitude,y);t=n[0],e=n[1]}}else M(n)?(i=n,n=null):M(r)&&(i=r,r=null);const s={x:t,y:e};return null==s.x&&null!=s.y?o.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&o.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(s.spatialReference=i),null!=n&&(s.z=n),null!=r&&(s.m=r),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return f(this,d)?.[1]??null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,h.je)(n,t,y)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return f(this,d)?.[0]??null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,h.je)(t,e,y)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new p;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return p.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:r,m:i,spatialReference:o}=this,{z:a,m:s}=t;let{x:l,y:u,spatialReference:c}=t;if(!o.equals(c))if(o.isWebMercator&&c.isWGS84)[l,u]=(0,h.je)(l,u),c=o;else{if(!o.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,h.tD)(l,u),c=o}return e===l&&n===u&&r===a&&i===s&&o.wkid===c.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,c.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,r]=t.valid,i=2*r;let o;return e>r?(o=Math.ceil(Math.abs(e-r)/i),e-=o*i):e<n&&(o=Math.ceil(Math.abs(e-n)/i),e+=o*i),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,r=t.y-e.y,i=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+r*r+i*i)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasM",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasZ",null),(0,r.Cg)([(0,a.MZ)({type:Number})],x.prototype,"latitude",null),(0,r.Cg)([(0,a.MZ)({type:Number})],x.prototype,"longitude",null),(0,r.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.wg)(t=>isNaN(t)?t:(0,s.GB)(t))],x.prototype,"x",void 0),(0,r.Cg)([(0,m.K)("x")],x.prototype,"writeX",null),(0,r.Cg)([(0,g.w)("x")],x.prototype,"readX",null),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],x.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],x.prototype,"m",void 0),x=p=(0,r.Cg)([(0,a.$K)("esri.geometry.Point")],x),x.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,n){n.d(e,{H:()=>o,f:()=>i});var r=n(49186);function i(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function o(t){t.forEach(i)}},48353(t,e,n){n.d(e,{l:()=>u});var r=n(34727),i=n(58083),o=n(51850);function a(t,e,n){const r=Math.sin(t),i=Math.cos(t),o=Math.sin(e),a=Math.cos(e),s=n;return s[0]=-r,s[4]=-o*i,s[8]=a*i,s[12]=0,s[1]=i,s[5]=-o*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=o,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(49208),l=n(21325);function u(t,e,n,r){const o=(0,s.Tp)(t,r);if(null==o)return!1;const u=o.source.spatialReferenceId,p=o.dest.spatialReferenceId;if(u===p&&!c(p)&&(0!==u||(0,l.aI)(t,r)))return(0,i.kN)(n,e),!0;if(c(p)){const t=s.w5[u][10],r=s.w5[10][p];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,d,0),a(h*f[0],h*f[1],n),n[12]=d[0],n[13]=d[1],n[14]=d[2],!0)}const m=c(u);if((3===p||11===p||2===p||5===p)&&(2===u||m||3===u||5===u)){const t=s.w5[u][10],r=s.w5[10][p];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,d,0),m?function(t,e,n){a(t,e,n),(0,i.mg)(n,n)}(h*f[0],h*f[1],n):(0,i.D_)(n),n[12]=d[0],n[13]=d[1],n[14]=d[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const h=(0,r.kU)(1),f=(0,o.vt)(),d=(0,o.vt)()},65806(t,e,n){n.d(e,{g:()=>a});var r=n(51850),i=n(91218),o=n(9762);function a(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,o.projectBuffer)(s,t.spatialReference,0,e,n,0);const a=(0,i.tryProject)(t,n,r);return!!a&&(e[0]=a.x,e[1]=a.y,e[2]=a.z??0,!0)}const s=(0,r.vt)()},95696(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(69540),a=n(25482),s=n(91429),l=n(93223);let u=class extends((0,o.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(t,e,n){n.r(e),n.d(e,{default:()=>u});var r=n(5482),i=n(69540),o=n(25482),a=n(91429),s=n(51850),l=n(93223);let u=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(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?o(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(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)}n.d(e,{$B:()=>u,Bi:()=>s,Pv:()=>c,Rg:()=>a,U9:()=>i,W0:()=>h,ZC:()=>r,fT:()=>o,uW:()=>l})},38419(t,e,n){n.r(e),n.d(e,{default:()=>s});var r=n(44208),i=n(75503),o=n(95696),a=n(72258);class s{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new i.wq;const r=function(t){const{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i}=t,s=(0,a.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i},o.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),s=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return l().fromJSON(s)}createIndexThread(t){const e=l();if(!t)return{result:e.toJSON()};const n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(const t of n)r+=t.length/3;const i=new Array(r);let o=0;for(const t of n)for(let n=0;n<t.length;n+=3)i[o++]=u(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(i),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=u(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function l(){return new i.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function u(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,e,n){n.d(e,{$5:()=>_,CN:()=>x,JP:()=>M,KM:()=>S,Mv:()=>R,X4:()=>v,gr:()=>b,qs:()=>A,si:()=>w,xA:()=>B});var r=n(34727),i=n(77690),o=n(29242),a=n(58083),s=n(9093),l=n(35522),u=n(51850),c=n(73941),h=n(48353),f=n(9762),d=(n(79258),n(21325)),p=n(28735),m=n(13030),g=n(73354),y=n(65686);const M="Projection may be possible after calling projection.load().";function x(t,e,n,r){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function v(t,e,n,r,i,o){return X(0,m.xs.fromTypedArray(t),0,m.Xm.fromTypedArray(e),n,m.Xm.fromTypedArray(r),i,m.xs.fromTypedArray(o))?o:null}function w(t,e,n,r,i,o){return X(1,m.xs.fromTypedArray(t),0,m.Xm.fromTypedArray(e),n,m.Xm.fromTypedArray(r),i,m.xs.fromTypedArray(o))?o:null}function b(t,e,n,r){return(0,f.projectBuffer)(t,e,0,n,r,0)?n:null}function _(t,e,n,r){return(0,f.projectBuffer)(t,e,0,n,r,0)?n:null}function A(t,e,n){return(0,i.Ge)(k,n),(0,g.b)(e,t,k),(0,r.or)(k)&&(0,g.n)(e,e),e}function S(t,e,n){return(0,i.z0)(k,n),(0,y.t)(e,t,k),(0,r.or)(k)&&(0,g.n)(e,e,4),e}function B(t,e,n,r,i,o){if(!X(0,m.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,m.Xm.fromTypedArray(e),n,m.Xm.fromTypedArray(r),i,m.xs.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function R(t,e,n,r,i,o){if(!X(1,m.xs.fromTypedArray(t,16),1,m.Xm.fromTypedArray(e),n,m.Xm.fromTypedArray(r),i,m.xs.fromTypedArray(o,16)))return null;for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function C(t,e,n,r,o){switch((0,h.l)(r,n,z,r),1===t&&(0,a.B8)(z,z),e){case 0:return(0,i.Ge)(o,z);case 1:return(0,i.z0)(o,z)}}function X(t,e,n,r,i,o,a,s){if(!e)return;const u=r.count;if(function(t){return t.isWGS84||(0,d.x1)(t)||(0,c.q8)(t)||(0,c.KQ)(t)}(i))for(let r=0;r<u;r++)o.getVec(r,N),e.getVec(r,j),(0,l.ei)(j,j,C(t,n,N,a,k)),s.setVec(r,j);else for(let i=0;i<u;i++){o.getVec(i,N),e.getVec(i,j);const u=(0,p.jg)(r.get(i,1));let c=Math.cos(u);1===n!=(0===t)&&(c=1/c),C(t,n,N,a,k),0===t?(k[0]*=c,k[1]*=c,k[2]*=c,k[3]*=c,k[4]*=c,k[5]*=c):(k[0]*=c,k[3]*=c,k[6]*=c,k[1]*=c,k[4]*=c,k[7]*=c),(0,l.ei)(j,j,k),(0,l.S8)(j,j),s.setVec(i,j)}return s}const N=(0,u.vt)(),j=(0,u.vt)(),z=(0,s.vt)(),k=(0,o.vt)()},72258(t,e,n){n.d(e,{UR:()=>w,p5:()=>v,xK:()=>R});var r=n(53966),i=n(34727),o=n(86211),a=n(77690),s=n(29242),l=n(58083),u=n(9093),c=n(35522),h=n(51850),f=n(73941),d=n(98764),p=n(48353),m=n(65806),g=n(27615),y=n(73354),M=n(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(t,e,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const i=t;if(!(0,m.g)(e,i,r))return!1;const{origin:o}=n;return(0,c.Re)(t,i,o),!0}const i=(0,d.lO)(r),o=t;if(!(0,m.g)(e,o,i))return!1;const{origin:a}=n,s=z;if(!(0,p.l)(r,a,s,i))return!1;const u=(0,l.B8)(z,s);return null!=u&&((0,c.Z0)(t,o,u),!0)}function w(t,e,n){const{vertexSpace:r,transform:i,vertexAttributes:o}=t,s=(0,g.Hq)(r)?i:null,h=S(t.spatialReference,n,3);if((0,g.yJ)(r,e)&&(!s||(0,l.t2)(s.localMatrix,u.zK))&&B(h)){const{position:t,normal:e,tangent:r}=o,i=n?.allowBufferReuse;return{position:i?t:t.slice(),normal:i?e:e?.slice(),tangent:i?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},i,o){const a=b(e,o);if(!(0,p.l)(e,r,C,a))return(0,M.CN)(x(),e,a),null;if(n&&(0,l.lw)(C,C,n.localMatrix),!(0,p.l)(e,i,X,a))return(0,M.CN)(x(),a,e),null;(0,l.B8)(X,X);const s=(0,l.lw)(C,X,C);return A(s,e,o,3),_(t,s)}(t,t.vertexSpace,e.origin,n):function({spatialReference:t,vertexAttributes:e,transform:n},{origin:r},i,o){const a=b(t,o);if(!(0,p.l)(t,r,C,a))return(0,M.CN)(x(),t,a),null;n&&(0,l.lw)(C,C,n.localMatrix),A(C,t,o,1);const s=new Float64Array(e.position.length),u=function(t,e,n,r,i){(0,y.t)(r,t,e);const o=new Float64Array(t.length);return(0,M.$5)(r,i,o,n)?o:((0,M.CN)(x(),i,n),null)}(e.position,C,t,s,a);if(!u)return null;const h=function(t,e,n,r,i,o){if(null==i)return null;const a=new Float32Array(i.length);return(0,M.qs)(i,a,o),(0,M.si)(a,t,e,n,r,a)?a:((0,M.CN)(x(),r,e),null)}(u,t,s,a,e.normal,C);if(e.normal&&!h)return null;const f=function(t,e,n,r,i,o){if(null==i)return null;const a=new Float32Array(i.length);return(0,M.KM)(i,a,o),(0,M.Mv)(a,t,e,n,r,a)?a:((0,M.CN)(x(),r,e),null)}(u,t,s,a,e.tangent,C);if(e.tangent&&!f)return null;if(i){const t=(0,c.ze)(j,i);(0,y.a)(u,u,t)}return{position:u,normal:h,tangent:f}}(t,t.vertexSpace,e.origin,n);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},i,o){const s=b(e,o);if(!(0,p.l)(e,i,C,s))return(0,M.CN)(x(),e,s),null;const u=1/S(e,o,2);(0,l.hs)(C,C,[u,u,u]);const c=(0,l.B8)(X,C),{position:h,normal:f,tangent:d}=function(t,e,n){if(!e)return t;if(!n){const{position:n,normal:r,tangent:i}=t;return{position:(0,y.a)(new Float64Array(n.length),n,e),tangent:i,normal:r}}const r=_(t,n.localMatrix);return(0,y.a)(r.position,r.position,e),r}(t,r,n),m=new Float64Array(h.length),g=function(t,e,n,r,i){const o=(0,M.gr)(t,e,r,i);if(!o)return(0,M.CN)(x(),e,i),null;const a=new Float64Array(o.length);return(0,y.t)(a,o,n),a}(h,e,c,m,s);if(!g)return null;const v=(0,a.Ge)(N,c),w=function(t,e,n,r,i,o,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,M.X4)(t,e,n,r,i,s)?((0,y.b)(s,s,o),s):((0,M.CN)(x(),n,i),null)}(f,h,e,m,s,v,f!==t.normal?f:void 0);if(!w&&f)return null;const A=function(t,e,n,r,i,o,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,M.xA)(t,e,n,r,i,s)?((0,y.b)(s,s,o,4),s):((0,M.CN)(x(),n,i),null)}(d,h,e,m,s,v,d!==t.tangent?d:void 0);return!A&&d?null:{position:g,normal:w,tangent:A}}(t,t.vertexSpace,e.origin,n):function({vertexAttributes:t,transform:e,spatialReference:n},{origin:r},i,o){const a=S(n,o,3),s=r||!B(a)?(0,l.C)(C,e?.localMatrix??u.zK):null;s&&A(s,n,o,3);const{position:h,normal:f,tangent:d}=s?_(t,s):t,p=o?.allowBufferReuse,m=p?h:new Float64Array(h.length);let g=h;if(r&&(g=(0,y.a)(m,g,r)),i){const t=(0,c.ze)(j,i);g=(0,y.a)(m,g,t)}return{position:g!==t.position||p?g:g.slice(),normal:f!==t.normal||p?f:f?.slice(),tangent:d!==t.tangent||p?d:d?.slice()}}(t,t.vertexSpace,e.origin,n)}}function b(t,e){return e?.useEllipsoid&&(0,f.B3)(t)?d.Y0:(0,d.lO)(t)}function _(t,e){const n=new Float64Array(t.position.length);(0,y.t)(n,t.position,e);const r=t.normal?new Float32Array(t.normal.length):null,i=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,e),i&&t.tangent&&(0,M.KM)(t.tangent,i,e),{position:n,normal:r,tangent:i}}function A(t,e,n,r){const i=S(e,n,r);B(i)||(0,l.hs)(t,t,[i,i,i])}function S(t,e,n){const r=!!(1&n),i=!!(2&n),o=e?.sourceUnit,a=e?.targetUnit;if(!o&&!a)return 1;let s=R(o,t);r||!o||B(s)||(x().warn("source unit conversion not supported"),s=1);let l=1/R(a,t);return i||!a||B(l)||(x().warn("target unit conversion not supported"),l=1),s*l}function B(t){return(0,i.Io)(t,1)}function R(t,e){if(null==t)return 1;const n=(0,o.KX)(e);return 1/(0,o.oU)(n,"meters",t)}const C=(0,u.vt)(),X=(0,u.vt)(),N=(0,s.vt)(),j=(0,h.vt)(),z=(0,u.vt)()},27615(t,e,n){n.d(e,{CK:()=>l,Hq:()=>s,MW:()=>u,TE:()=>c,yJ:()=>h});var r=n(35522),i=n(86738),o=n(95696),a=n(18251);function s(t){return null!=t.origin}function l(t){return s(t.vertexSpace)}function u(t,e){if(!s(t))return null;const[n,r,o]=t.origin;return new i.A({x:n,y:r,z:o,spatialReference:e})}function c(t,e){const{x:n,y:r,z:i,spatialReference:s}=t,l=[n,r,i??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new a.default({origin:l}):new o.A({origin:l})}function h(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},28735(t,e,n){n.d(e,{Cv:()=>g,Gh:()=>x,ci:()=>v,je:()=>y,jg:()=>h,tD:()=>M,y7:()=>m,yw:()=>c});var r=n(4718),i=n(21276),o=n(16930),a=n(79258),s=n(21325);function l(t){return 57.29577951308232*t}function u(t){return.017453292519943*t}function c(t){return t/a.$O.radius}function h(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.$O.radius))}function f(t){return null!=t.wkid||null!=t.wkt}const d=[0,0];function p(t,e,n,r,i){const o=t,a=i;if(a.spatialReference=n,"x"in o&&"x"in a)[a.x,a.y]=e(o.x,o.y,d,r);else if("xmin"in o&&"xmin"in a)[a.xmin,a.ymin]=e(o.xmin,o.ymin,d,r),[a.xmax,a.ymax]=e(o.xmax,o.ymax,d,r);else if("paths"in o&&"paths"in a||"rings"in o&&"rings"in a){const t="paths"in o?o.paths:o.rings,n=[];let i;for(let o=0;o<t.length;o++){const a=t[o];i=[],n.push(i);for(let t=0;t<a.length;t++)i.push(e(a[t][0],a[t][1],[0,0],r)),a[t].length>2&&i[t].push(a[t][2]),a[t].length>3&&i[t].push(a[t][3])}"paths"in a?a.paths=n:a.rings=n}else if("points"in o&&"points"in a){const t=o.points,n=[];for(let i=0;i<t.length;i++)n[i]=e(t[i][0],t[i][1],[0,0],r),t[i].length>2&&n[i].push(t[i][2]),t[i].length>3&&n[i].push(t[i][3]);a.points=n}return i}function m(t,e){const n=t&&(f(t)?t:t.spatialReference),r=e&&(f(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!r)&&(!!(0,s.aI)(r,n)||(0,s.K8)(r)&&(0,s.oT)(n)||(0,s.K8)(n)&&(0,s.oT)(r))}function g(t,e){if(null==t)return null;const n=t.spatialReference,i=e&&(f(e)?e:e.spatialReference);return m(n,i)?(0,s.aI)(n,i)?(0,r.o8)(t):(0,s.K8)(i)?p(t,y,o.A.WebMercator,!1,(0,r.o8)(t)):(0,s.oT)(i)?p(t,M,o.A.WGS84,!1,(0,r.o8)(t)):null:null}function y(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const r=u(e);return n[0]=u(t)*a.$O.radius,n[1]=a.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function M(t,e,n=[0,0],r=!1){if(t===s.Mc[0])n[0]=-180;else if(t===s.Mc[1])n[0]=180;else{const e=l(t/a.$O.radius);n[0]=r?e:e-360*Math.floor((e+180)/360)}return n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-e/a.$O.radius))),n}function x(t,e=!1,n=(0,r.o8)(t)){return(0,i.f)(t),(0,i.f)(n),p(t,y,o.A.WebMercator,e,n)}function v(t,e=!1,n=(0,r.o8)(t)){return(0,i.f)(t),(0,i.f)(n),p(t,M,o.A.WGS84,e,n)}}}]);
|