@arcgis/core 5.1.0-next.74 → 5.1.0-next.76
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/arcade/ArcadePortal.js +1 -1
- package/arcade/functions/aiServices.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/portalUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/07aca5ecad659d55e795.js +2 -0
- package/assets/esri/core/workers/chunks/09630888267cde87654f.js +1 -0
- package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +1 -0
- package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +1 -0
- package/assets/esri/core/workers/chunks/{d00dafad202450e6ee2e.js → 14eb2cc8e2ad6d8d03fd.js} +1 -1
- package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +1 -0
- package/assets/esri/core/workers/chunks/176dd195f77b98cb0b0f.js +1 -0
- package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +1 -0
- package/assets/esri/core/workers/chunks/{b98c24229463029504e8.js → 1f6b7626f333809837ef.js} +1 -1
- package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +1 -0
- package/assets/esri/core/workers/chunks/2a2e97918524e0f436d7.js +1 -0
- package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +1 -0
- package/assets/esri/core/workers/chunks/{bab23b905678e42815e5.js → 312036c89a6a09bb06c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{37091cf498a16ccad7ff.js → 330b47ac0759c3c35cc5.js} +1 -1
- package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +1 -0
- package/assets/esri/core/workers/chunks/{a270960d80d8344dd75f.js → 34ea3ed78041437a8fc8.js} +1 -1
- package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +1 -0
- package/assets/esri/core/workers/chunks/3a183259805638c25363.js +1 -0
- package/assets/esri/core/workers/chunks/{deaca3cd202851ecf9c2.js → 3cce9dad8ee0e4971d50.js} +1 -1
- package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +1 -0
- package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +1 -0
- package/assets/esri/core/workers/chunks/42336e0d1ef88737b078.js +1 -0
- package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +1 -0
- package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
- package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +1 -0
- package/assets/esri/core/workers/chunks/53750e85f3128993a43a.js +1 -0
- package/assets/esri/core/workers/chunks/{4bbe684050b3b04681d0.js → 537fe2522dff1e6ce03b.js} +1 -1
- package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +1 -0
- package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +1 -0
- package/assets/esri/core/workers/chunks/5d8e944b192aad4cf986.js +1 -0
- package/assets/esri/core/workers/chunks/{5476c2f7b83f4ccd0335.js → 5e1b847b116d21908a54.js} +1 -1
- package/assets/esri/core/workers/chunks/5ed8d8b5336c81fbcda3.js +1 -0
- package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
- package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +1 -0
- package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +1 -0
- package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
- package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +1 -0
- package/assets/esri/core/workers/chunks/702e8468836863abd81b.js +1 -0
- package/assets/esri/core/workers/chunks/7540f7df86620f067b5a.js +1 -0
- package/assets/esri/core/workers/chunks/76e34f81bb4a7b0e694c.js +1 -0
- package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +1 -0
- package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +1 -0
- package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
- package/assets/esri/core/workers/chunks/852f4cd514008fee5a55.js +1 -0
- package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +1 -0
- package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +1 -0
- package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +1 -0
- package/assets/esri/core/workers/chunks/9103eb0b9078019d3a26.js +1 -0
- package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +1 -0
- package/assets/esri/core/workers/chunks/91f9e0e3662d4bf9f163.js +1 -0
- package/assets/esri/core/workers/chunks/99c161fecae710b53b40.js +1 -0
- package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +1 -0
- package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +1 -0
- package/assets/esri/core/workers/chunks/9d10db72e342fe63c981.js +1 -0
- package/assets/esri/core/workers/chunks/{a36761e3122f70fbb3c9.js → 9d6491f996eeb0c646ed.js} +1 -1
- package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +1 -0
- package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +1 -0
- package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +1 -0
- package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +1 -0
- package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +1 -0
- package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
- package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +1 -0
- package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +1 -0
- package/assets/esri/core/workers/chunks/baeb96aef03d4c566af7.js +1 -0
- package/assets/esri/core/workers/chunks/bc75ab48f4c7609ef09d.js +1 -0
- package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +1 -0
- package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +1 -0
- package/assets/esri/core/workers/chunks/{b905e637a67fbb7af4ae.js → bf8f603848bad4a7deb4.js} +1 -1
- package/assets/esri/core/workers/chunks/bfe575da727ce7c8d331.js +2 -0
- package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +1 -0
- package/assets/esri/core/workers/chunks/cb45e5d4a4ef82cda583.js +1 -0
- package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +1 -0
- package/assets/esri/core/workers/chunks/{5b324e572737a308500d.js → cf14b3a44705dacefac4.js} +1 -1
- package/assets/esri/core/workers/chunks/d3b086eb9aa8c7d09048.js +1 -0
- package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +1 -0
- package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +1 -0
- package/assets/esri/core/workers/chunks/{41809c16544ec25120fa.js → d95ffd990b3a7df69e1e.js} +1 -1
- package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +1 -0
- package/assets/esri/core/workers/chunks/dda2cb5c073d1e65f14f.js +1 -0
- package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +1 -0
- package/assets/esri/core/workers/chunks/{ad064583f8a836005098.js → e262c4864dc06c43b380.js} +1 -1
- package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +1 -0
- package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +1 -0
- package/assets/esri/core/workers/chunks/ea59b81299acaf0d85ee.js +1 -0
- package/assets/esri/core/workers/chunks/{873c1b705ac3d4e6c384.js → ea97619a4470f1540b99.js} +1 -1
- package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +1 -0
- package/assets/esri/core/workers/chunks/edee616b6f1b5be8fd39.js +1 -0
- package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +1 -0
- package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +1 -0
- package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +1 -0
- package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +1 -0
- package/assets/esri/themes/base/widgets/_Sketch.scss +32 -0
- 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/assets/esri/widgets/Sketch/t9n/Sketch.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_en.json +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/SpatialReference.js +1 -1
- package/chunks/aiServices.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/workers/registry.js +1 -1
- package/form/elements/AttachmentElement.d.ts +15 -16
- package/form/elements/GroupElement.d.ts +3 -2
- package/form/elements/inputs/attachments/AttachmentInput.d.ts +7 -9
- package/form/elements/inputs/attachments/AudioInput.d.ts +6 -8
- package/form/elements/inputs/attachments/DocumentInput.d.ts +5 -7
- package/form/elements/inputs/attachments/ImageInput.d.ts +6 -8
- package/form/elements/inputs/attachments/Input.d.ts +2 -6
- package/form/elements/inputs/attachments/SignatureInput.d.ts +5 -7
- package/form/elements/inputs/attachments/VideoInput.d.ts +6 -8
- package/form/elements/inputs/attachments/types.d.ts +3 -3
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/operators/projectOperator.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/kernel.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/package.json +4 -4
- package/popup/Features.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/engine/webgl/TextureManager.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/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/managers/MeasurementManager.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
- package/views/support/GeometryWorker.js +2 -0
- package/views/support/GeometryWorkerHandle.js +2 -0
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -3
- package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -11
- package/widgets/FeatureTable/support/types.d.ts +2 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +28 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
- package/widgets/OrientedImageryViewer.d.ts +27 -0
- package/widgets/Sketch/SketchViewModel.d.ts +10 -2
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +0 -1
- package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +0 -1
- package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +0 -1
- package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +0 -1
- package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +0 -1
- package/assets/esri/core/workers/chunks/12e575a6d2b008b8fc2b.js +0 -1
- package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +0 -1
- package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +0 -1
- package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +0 -1
- package/assets/esri/core/workers/chunks/1db1656a033f3992f0d6.js +0 -1
- package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +0 -1
- package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +0 -1
- package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +0 -1
- package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +0 -1
- package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +0 -1
- package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +0 -1
- package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +0 -1
- package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +0 -1
- package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +0 -1
- package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +0 -1
- package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +0 -1
- package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +0 -1
- package/assets/esri/core/workers/chunks/4c13869d260a902d3014.js +0 -1
- package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +0 -1
- package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +0 -2
- package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +0 -1
- package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +0 -1
- package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +0 -1
- package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +0 -1
- package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +0 -1
- package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +0 -1
- package/assets/esri/core/workers/chunks/6a21c9a4aeebe806ea39.js +0 -1
- package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +0 -1
- package/assets/esri/core/workers/chunks/6d11ec355e5474b2968b.js +0 -1
- package/assets/esri/core/workers/chunks/6d25230dd85a4ba54c4f.js +0 -1
- package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +0 -1
- package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +0 -1
- package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +0 -1
- package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +0 -1
- package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +0 -1
- package/assets/esri/core/workers/chunks/7951d93f5f15aa76f49c.js +0 -1
- package/assets/esri/core/workers/chunks/7a56c836c89a8b978800.js +0 -1
- package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +0 -1
- package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +0 -1
- package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +0 -1
- package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +0 -1
- package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +0 -1
- package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +0 -1
- package/assets/esri/core/workers/chunks/9be9ccce6369f67202bc.js +0 -1
- package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +0 -1
- package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +0 -1
- package/assets/esri/core/workers/chunks/a94bd20551c1179c7ec5.js +0 -1
- package/assets/esri/core/workers/chunks/a9d2c83bb10b5ade0ca0.js +0 -1
- package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +0 -1
- package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +0 -1
- package/assets/esri/core/workers/chunks/bc887bd62579dba81e2b.js +0 -1
- package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +0 -1
- package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +0 -1
- package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +0 -1
- package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +0 -1
- package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +0 -1
- package/assets/esri/core/workers/chunks/c5f155fe114a2a05aaf2.js +0 -2
- package/assets/esri/core/workers/chunks/c61002a117dc2218d6af.js +0 -1
- package/assets/esri/core/workers/chunks/c804a66ef7615aa8de89.js +0 -1
- package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +0 -1
- package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +0 -1
- package/assets/esri/core/workers/chunks/d21fdd67477800101f3b.js +0 -1
- package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +0 -1
- package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +0 -1
- package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +0 -1
- package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +0 -1
- package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +0 -1
- package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +0 -1
- package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +0 -1
- package/assets/esri/core/workers/chunks/f43a63094190d2074cd0.js +0 -1
- package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +0 -1
- package/views/support/MeasurementWorker.js +0 -2
- package/views/support/MeasurementWorkerHandle.js +0 -2
- /package/assets/esri/core/workers/chunks/{5511e640e171c294f52a.js.LICENSE.txt → 07aca5ecad659d55e795.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c5f155fe114a2a05aaf2.js.LICENSE.txt → bfe575da727ce7c8d331.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,1775,1948,3931,6061,8125],{61691(e,t,i){i.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,i){i.d(t,{S:()=>r});var n=i(61691);class r extends n.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(e,t,i){i.d(t,{a:()=>o,e:()=>s});var n=i(86211),r=i(78125);function s(e,t={}){const{unit:i}=t;let s=(0,r.fromGeometry)(e).calculateArea2D();if(s&&i){const t=(0,r.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const o=(0,n.B5)(t);o!==i&&(o?s=(0,n.oU)(s,o,i):(s=Math.sqrt(s),s*=(0,n.GA)(t),s**=2,s=(0,n.oU)(s,"square-meters",i)))}return s}const o=Object.freeze(Object.defineProperty({__proto__:null,execute:s,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}))},49590(e,t,i){i.d(t,{e:()=>p,g:()=>f,l:()=>u});var n=i(86211),r=i(86742),s=i(5808);let o,a,l,c;function h(){return!!o&&(0,r.s1)()}async function u(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(1550)]).then(i.bind(i,78125)),(0,r.Hh)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.fz)()}}function p(e,t={}){const{curveType:i="geodesic",unit:c}=t,h=l(e);let u=(0,r.g7)(o(e),a(h),s.O[i]);return u&&c&&(u=(0,n.oU)(u,"square-meters",c)),u}const f=Object.freeze(Object.defineProperty({__proto__:null,execute:p,isLoaded:h,load:u,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},27749(e,t,i){i.d(t,{e:()=>f,g:()=>d,l:()=>p});var n=i(86211),r=i(77085),s=i(5808);let o,a,l,c,h;function u(){return!!o&&(0,r.s1)()}async function p(){if(!u()){const[e]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),(0,r.Hh)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,h=(0,r.fz)()}}function f(e,t,i={}){const{curveType:h="geodesic",unit:u}=i;u&&(t=(0,n.oU)(t,u,"meters"));const p=l(e);return c((0,r.g7)(o(e),t,a(p),s.O[h]),p)}const d=Object.freeze(Object.defineProperty({__proto__:null,execute:f,executeMany:function(e,t,i={}){const{curveType:h="geodesic",unit:u}=i;u&&(t=(0,n.oU)(t,u,"meters"));const p=e.map(o),f=l(e);return(0,r.zo)(p,t,a(f),s.O[h]).map(e=>c(e,f))},isLoaded:u,load:p,get supportsCurves(){return h}},Symbol.toStringTag,{value:"Module"}))},39663(e,t,i){i.d(t,{e:()=>p,g:()=>f,l:()=>u});var n=i(86211),r=i(35223),s=i(5808);let o,a,l,c;function h(){return!!o&&(0,r.s1)()}async function u(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(1550)]).then(i.bind(i,78125)),(0,r.Hh)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.fz)()}}function p(e,t={}){const{curveType:i="geodesic",unit:c}=t,h=l(e);let u=(0,r.g7)(o(e),a(h),s.O[i]);return u&&c&&(u=(0,n.oU)(u,"meters",c)),u}const f=Object.freeze(Object.defineProperty({__proto__:null,execute:p,isLoaded:h,load:u,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},7817(e,t,i){i.d(t,{e:()=>s,l:()=>a,s:()=>o});var n=i(86211),r=i(78125);function s(e,t={}){const{unit:i}=t;let s=(0,r.fromGeometry)(e).calculateLength2D();if(s&&i){const t=(0,r.getSpatialReference)(e);s=(0,n.PQ)(s,t,i)}return s}const o=!0,a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},10222(e,t,i){i.d(t,{e:()=>s,s:()=>a});var n=i(81150),r=i(78125);function s(e){const t=(0,r.getSpatialReference)(e);return(0,r.toGeometry)((0,n.g7)((0,r.fromGeometry)(e),(0,r.fromSpatialReference)(t),!1),t)}const o=(0,n.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:function(e){const t=e.map(r.fromGeometry),i=(0,r.getSpatialReference)(e);return(0,n.zo)(t,(0,r.fromSpatialReference)(i),!1).map(e=>(0,r.toGeometry)(e,i))},isSimple:function(e){return(0,n.Pg)((0,r.fromGeometry)(e),(0,r.fromSpatialReference)((0,r.getSpatialReference)(e)),!1)},supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},73354(e,t,i){i.d(t,{a:()=>p,b:()=>l,c:()=>a,d:()=>s,e:()=>f,f:()=>u,l:()=>h,n:()=>d,t:()=>o});var n=i(40876),r=(i(44208),i(72727));function s(e,t,i){o(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function o(e,t,i,n=3,s=n){const o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a),c=i[0],h=i[1],u=i[2],p=i[4],f=i[5],d=i[6],m=i[8],g=i[9],y=i[10],v=i[12],w=i[13],x=i[14];let _=0,C=0;for(let i=0;i<l;i++){const i=t[_],r=t[_+1],o=t[_+2];e[C]=c*i+p*r+m*o+v,e[C+1]=h*i+f*r+g*o+w,e[C+2]=u*i+d*r+y*o+x,_+=s,C+=n}return e}function a(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function l(e,t,i,n=3,s=n){const o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a),c=i[0],h=i[1],u=i[2],p=i[3],f=i[4],d=i[5],m=i[6],g=i[7],y=i[8];let v=0,w=0;for(let i=0;i<l;i++){const i=t[v],r=t[v+1],o=t[v+2];e[w]=c*i+p*r+m*o,e[w+1]=h*i+f*r+g*o,e[w+2]=u*i+d*r+y*o,v+=s,w+=n}}function c(e,t,i,n=3,r=n){const s=Math.min(e.length/n,t.length/r);let o=0,a=0;for(let l=0;l<s;l++)e[a]=i*t[o],e[a+1]=i*t[o+1],e[a+2]=i*t[o+2],o+=r,a+=n;return e}function h(e,t,i,n){u(e.typedBuffer,t.typedBuffer,i,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,r,s=3,o=s){const a=Math.min(e.length/s,t.length/o);let l=0,c=0;const h=1/n.Tf;for(let n=0;n<a;n++)e[c]=r*(i*t[l])**h,e[c+1]=r*(i*t[l+1])**h,e[c+2]=r*(i*t[l+2])**h,l+=o,c+=s}function p(e,t,i,n=3,s=n){const o=(0,r.k)(e.length,n,3),a=(0,r.k)(t.length,s,3),l=Math.min(o,a);let c=0,h=0;for(let r=0;r<l;r++)e[h]=t[c]+i[0],e[h+1]=t[c+1]+i[1],e[h+2]=t[c+2]+i[2],c+=s,h+=n;return e}function f(e,t){d(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function d(e,t,i=3,n=i){const r=Math.min(e.length/i,t.length/n);let s=0,o=0;for(let a=0;a<r;a++){const r=t[s],a=t[s+1],l=t[s+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[o]=t*r,e[o+1]=t*a,e[o+2]=t*l}s+=n,o+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:d,normalizeView:f,scale:c,scaleView:function(e,t,i){c(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){const n=Math.min(e.count,t.count),r=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)r[c]=o[l]>>i,r[c+1]=o[l+1]>>i,r[c+2]=o[l+2]>>i,l+=a,c+=s},transformMat3:l,transformMat3View:a,transformMat4:o,transformMat4View:s,translate:p},Symbol.toStringTag,{value:"Module"}))},69540(e,t,i){i.d(t,{OU:()=>h,Pw:()=>u});var n=i(5482),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const c=Symbol("ClonableMixin"),h=e=>{var t;const i=e;let r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,n=t.store,r={},l=new Map;for(const t in i){const o=i[t],a=n?.originOf(t),c=o.clonable;if(o.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let u=null;if("function"==typeof c)u=c(h,e);else if("reference"===c)u=h;else if(u=(0,s.TU)(h,e),null!=h&&null==u)continue;0===a?l.set(t,u):r[t]=u}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,i]of l)e.set(t,i,0)}return c}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},u=h(r.A)},7762(e,t,i){i.d(t,{A:()=>I});var n,r=i(5482),s=i(98291),o=i(4576),a=i(65529),l=i(36563),c=i(4718),h=i(53966),u=i(93687),p=i(76030),f=i(56507),d=i(62788),m=i(10107),g=i(7695),y=i(64108),v=i(95488),w=i(12195);class x{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class _{constructor(e,t,i,n,r){this.target=e,this.added=t,this.removed=i,this.start=n,this.deleteCount=r}}const C=new u.A(()=>new x,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function b(e){return e?e instanceof Z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function A(e){if(e?.length)return e[0]}function T(e,t,i,n){const r=Math.min(e.length-i,t.length-n);let s=0;for(;s<r&&e[i+s]===t[n+s];)s++;return s}function S(e,t,i,n){t&&t.forEach((t,r,s)=>{e.push(t),S(e,i.call(n,t,r,s),i,n)})}const R=new Set,z=new Set,O=new Set,P=new Map;let E=0,Z=n=class extends a.nJ{static ofType(e){if(!e)return n;if(P.has(e))return P.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let i=class extends n{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,f.dp)(e):(0,f.aq)(e)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),P.set(e,i),i}static isCollection(e){return null!=e&&e instanceof n}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:E++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof n?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?h.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,d.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,b(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{i()?.call(null,e),n.remove()});return n}add(e,t){if((0,d.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,d.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,b(e)),this._emitAfterChanges(1),this}at(e){if((0,d.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,d.gc)(this._observable);const t=e.map(b);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,d.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,d.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,d.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,d.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,d.gc)(this._observable);const i=[];return S(i,this,e,t),new n(i)}forEach(e,t){return(0,d.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,d.gc)(this._observable),this._items[e]}getNextIndex(e){(0,d.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,d.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,d.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,d.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,d.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,d.gc)(this._observable);const i=this._items.map(e,t);return new n({items:i})}reorder(e,t=this.length-1){(0,d.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,d.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,d.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,d.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,d.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,d.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,d.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof n?e.toArray():e,i=this._items,r=[],s=t.length;for(let e=0;e<s;e++){const n=t[e],s=i.indexOf(n);if(s>-1){const n=1+T(t,i,e+1,s+1),o=this._splice(s,n);o&&o.length>0&&r.push.apply(r,o),e+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,d.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,d.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,d.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const n=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(e,t,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,d.gc)(this._observable),this._items.slice()}toJSON(e){return(0,d.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,d.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,d.gc)(this._observable),this._items.toString()}unshift(...e){return(0,d.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const n=this._items,r=this.itemType;let s,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,p._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=C.acquire();t.target=this,t.cancellable=!0;for(let i=0,r=o.length;i<r;i++)s=o[i],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(i,1),n.splice(e,0,s),e+=1,i-=1,r-=1);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=C.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let i=0;i<t;i++)e.reset(o[i]),this.emit("after-remove",e);C.release(e)}}if(i?.length){if(r){const e=[];for(const t of i){const i=r.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),o=e===this.length;if(t||s){const r=C.acquire();r.target=this,r.cancellable=!0;const a=C.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._length=n.length,s&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._length=n.length,a.reset(l),this.emit("after-add",a));C.release(a),C.release(r)}else{if(o)for(const e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||o?.length)&&this._notifyChangeEvent(i,o),this.hasEventListener("after-splice")){const n=new _(this,i,o,e,t);this.emit("after-splice",n)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=C.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,C.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;R.clear(),z.clear(),O.clear();for(const{added:t,removed:i}of e){if(t)if(0===O.size&&0===z.size)for(const e of t)R.add(e);else for(const e of t)z.has(e)?(O.add(e),z.delete(e)):O.has(e)||R.add(e);if(i)if(0===O.size&&0===R.size)for(const e of i)z.add(e);else for(const e of i)R.has(e)?R.delete(e):(O.delete(e),z.add(e))}const i=s.A.acquire();R.forEach(e=>{i.push(e)});const n=s.A.acquire();z.forEach(e=>{n.push(e)});const r=this._items,o=t.items,a=s.A.acquire();if(O.forEach(e=>{o.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||n.length||a.length)){const e={target:this,added:i,removed:n,moved:a},r=t.listeners.length;for(let i=0;i<r;i++){const n=t.listeners[i];n.removed||n.callback.call(this,e)}}s.A.release(i),s.A.release(n),s.A.release(a)}R.clear(),z.clear(),O.clear()}};(0,r.Cg)([(0,m.MZ)()],Z.prototype,"_updating",void 0),(0,r.Cg)([(0,m.MZ)()],Z.prototype,"_length",void 0),(0,r.Cg)([(0,m.MZ)()],Z.prototype,"length",null),(0,r.Cg)([(0,m.MZ)()],Z.prototype,"items",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Z.prototype,"updating",null),Z=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],Z);const I=Z},4902(e,t,i){i.d(t,{s:()=>o});var n=i(5482),r=i(64108);let s=0;const o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};o(class{})},7695(e,t,i){function n(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>n})},82534(e,t,i){function n(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>r,vt:()=>n,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n){return[e,t,i,n]}},Symbol.toStringTag,{value:"Module"}))},48163(e,t,i){function n(){return[0,0]}function r(e){return[e[0],e[1]]}function s(e,t){return[e,t]}function o(){return s(1,1)}function a(){return s(1,0)}function l(){return s(0,1)}i.d(t,{Un:()=>c,fA:()=>s,o8:()=>r,vt:()=>n});const c=o(),h=a(),u=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:h,UNIT_Y:u,ZEROS:[0,0],clone:r,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const i=Math.min(2,e.length);for(let n=0;n<i;++n)t[n]=e[n];return t},fromValues:s,ones:o,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},17799(e,t,i){i.d(t,{T9:()=>a,d_:()=>r,gT:()=>s});var n=i(86211);function r(e,t){return{type:(0,n.t$)(t),value:e,unit:t}}function s(e,t){return{type:(0,n.t$)(t),value:e,unit:t}}function o(e,t,i="arithmetic"){return{type:(0,n.t$)(t),value:e,unit:t,rotationType:i}}function a(e,t){return null==e?t:null==t||e.value>(0,n.oU)(t.value,t.unit,e.unit)?e:t}r(0,"meters"),s(0,"square-meters"),o(0,"radians"),o(0,"degrees"),o(0,"degrees","geographic")},36708(e,t,i){i.d(t,{C_:()=>p,OH:()=>m,Vh:()=>g,on:()=>u,pc:()=>y,wB:()=>l,z7:()=>c});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,f)}function c(e,t,i={}){return h(e,t,i,d)}function h(e,t,i={},n){let r=null;const o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return r}function u(e,t,i,o={}){let a=null,c=null,h=null;function u(){a&&c&&(c.remove(),o.onListenerRemove?.(a),a=null,c=null)}function p(e){o.once&&o.once&&(0,s.xt)(h),i(e)}const f=l(e,(e,i)=>{u(),(0,n.wb)(e)&&(a=e,c=(0,n.on)(e,t,p),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{f.remove(),u()}),h}function p(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??f)])})}(e,d,t)}function f(e){return!0}function d(e){return!!e}i(80559);const m={sync:!0},g={initial:!0},y={sync:!0,initial:!0}},35982(e,t,i){i.d(t,{B:()=>h});var n=i(4576),r=i(71511),s=i(36563),o=i(53966),a=i(97768),l=i(17676),c=i(83027);class h{constructor(e,t,i,n,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new u(e,t);return this._listeners.push(i),this._connectListener(i),(0,s.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){const r=this._transferLists[e],s=r?r(t):[];return this._thread.invoke(e,t,{transferList:s,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class u{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},87992(e,t,i){i.d(t,{JR:()=>A,ME:()=>C,MY:()=>T,NO:()=>_,Nh:()=>b,V2:()=>P,_s:()=>E,e6:()=>I,gh:()=>M,tr:()=>L,uX:()=>g});var n=i(5482),r=i(69397),s=i(16930),o=(i(70328),i(19419)),a=i(60408),l=i(21325),c=i(513),h=i(50954),u=i(79567),p=i(52006),f=i(49663),d=i(46068),m=i(92722);class g{constructor({type:e,spatialReference:t,vertexCount:i,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:a,partFlags:l,segmentFlags:c,segmentIndices:h,segmentParams:u,segmentCountArc:p,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=i,this.vertexXY=n,this.vertexZ=r,this.vertexM=s,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=u,this.segmentCountArc=p,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:i}=this;return e&&e-t-i}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?r.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:i,hasZ:n,hasM:r,segmentCountArc:s,segmentCountBezier:o}=this,a=P(e,t,i,n,r,this.hasCurves(),s,o);a.spatialReference=this.spatialReference;const{vertexXY:l,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,i+1)),a.partOffsets.set(e.subarray(0,i+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:i,segmentParams:n,segmentParamCount:r}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(i.subarray(0,t),0),a.segmentParams.set(n.subarray(0,r),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,l.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const i=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,i)=>Math.abs(e-i)>t||isNaN(e)!==isNaN(i);for(let t=0;t<this.vertexCount;++t)if(i(this.vertexXY[2*t],e.vertexXY[2*t])||i(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(i(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(i(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(i(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=z(e),this._segments=new w(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class w{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new x(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let i=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[i++],n=t[i++],r=t[i++],s=t[i++];return{b:[this.end,[e,n],[r,s]]}}const n=t[i++],r=t[i++],s=t[i++],o=t[i++],a=t[i++],l=t[i++];i++,i++;const c=t[i++],h=t[i++];if(!Boolean(4&n)&&1===s)return{c:[this.end,[c,h]]};const u=2&n?0:1,p=1&n?0:1;return{a:[this.end,[a,l],u,p,o,r,s]}}}function _(e,t){const i={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(i,new S(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:i,vertexXY:r,vertexZ:s,vertexM:a}=e,l=R(e);if(e.hasCurves()){const i={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(i,new S(e,["vertexZ","vertexM"]),!1);const r=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:i}of t.segments)(0,u.e)(r,e,i),e=(0,p.yP)(i)}const[s,a,c,h]=r;t={xmin:s,ymin:a,xmax:c,ymax:h,spatialReference:l}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}else{let e,n,s,o;e=n=1/0,s=o=-1/0;for(let t=0;t<i;++t){const i=r[2*t],a=r[2*t+1];e=Math.min(e,i),s=Math.max(s,i),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:s,ymax:o,spatialReference:l}}if(s){let e=1/0,i=-1/0;for(const t of s)e=Math.min(e,t),i=Math.max(i,t);t.zmin=e,t.zmax=i}if(a){let e=1/0,i=-1/0;for(const t of a)e=Math.min(e,t),i=Math.max(i,t);t.mmin=e,t.mmax=i}return t}(e)),t}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}function C(e){let t,i,n;if((0,a.fT)(e)){n="point";const{x:r,y:s,z:o,m:a}=e,l=[r,s];null!=o&&l.push(o),null!=a&&l.push(a),i=[[l]],t=1}else(0,a.U9)(e)?(n="multipoint",i=[e.points],t=e.points.length):(0,a.Rg)(e)?(n="polyline",i=e.curvePaths??e.paths,t=i.reduce((e,t)=>e+t.length,0)):(n="polygon",i=e.curveRings??e.rings,t=i.reduce((e,t)=>(0===t.length||(e+=t.length,O(t[0],(0,p.yP)(t.at(-1)))&&--e),e),0));const r=P(n,t,n.includes("point")?0:i.length,(0,a.Pv)(e),(0,a.W0)(e),(0,p.Ed)(e)),{hasZ:s,hasM:o,vertexXY:l,vertexZ:c,vertexM:h}=r;function u(e){l[2*d]=e[0],l[2*d+1]=e[1],s&&(c[d]=e[2]),o&&(h[d]=e[f]),++d}r.spatialReference=e.spatialReference??void 0;const f=r.hasZ?3:2;let d=0;if(!r.isMultipart()){if(!s&&!o){for(const[e,t]of i[0])l[2*d]=e,l[2*d+1]=t,++d;return r}for(const e of i[0])u(e);return r}const m="polygon"===n,{partOffsets:g}=r;let y=0;if(!r.hasCurves()){for(const e of i){if(g[y++]=d,0===e.length)continue;let t=e.length;if(m&&O(e[0],e.at(-1))&&--t,s||o)for(let i=0;i<t;++i)u(e[i]);else for(let i=0;i<t;++i){const[t,n]=e[i];l[2*d]=t,l[2*d+1]=n,++d}}return g[y]=d,r}function v(e){const t=w+e;if(t<=(r.segmentParams?.length??0))return;let i=t*j;i=20*Math.ceil(i/20);const n=r.segmentParams;r.segmentParams=new Float64Array(i),null!=n&&r.segmentParams.set(n)}let w=0;for(const e of i){if(r.partOffsets[y++]=d,0===e.length)continue;const t=e[0];let i=t;for(let t=1;t<e.length;++t){const n=e[t];u(i);const s=d-1;(0,p.wY)(n)?(v(10),++r.segmentCountArc,w=E(i,n,r,s,w),i=n.a[0]):(0,p.DA)(n)?(v(10),++r.segmentCountArc,w=Z(i,n,r,s,w),i=n.a[0]):(0,p.aO)(n)?(v(10),++r.segmentCountArc,w=I(i,n,r,s,w),i=n.c[0]):(0,p.n1)(n)?(v(4),++r.segmentCountBezier,w=L(0,n,r,s,w),i=n.b[0]):i=n}m&&O(t,i)||u(i)}return r.partOffsets[y]=d,r}function M(e){const t=z(e),{vertexCount:i,partCount:n,hasZ:r,hasM:s}=e,o=R(e);if("point"===e.type){const[t,i]=e.vertexXY,n=e.vertexZ?.[0],r=e.vertexM?.[0];return{x:t,y:i,z:n,m:r,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<i;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:r,hasM:s}}const l="polygon"===e.type;if(!e.hasCurves()){const i=new Array;for(let r=0;r<n;++r){const n=e.partOffsets[r+1],s=new Array;for(;a<n;)s.push(t(a++));l&&s.length>0&&s.push(s[0]),i.push(s)}return l?{rings:i,hasZ:r,hasM:s,spatialReference:o}:{paths:i,hasZ:r,hasM:s,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:i}of e.parts){const e=[i];for(const{curve:i}of t)e.push(i);c.push(e)}return l?{rings:[],curveRings:c,hasZ:r,hasM:s,spatialReference:o}:{paths:[],curvePaths:c,hasZ:r,hasM:s,spatialReference:o}}function b(e,{lengths:t,coords:i,hasZ:n,hasM:r},s){const o=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,r??=!1;const c=P(e,l,o,n,r,!1,0,0);if(c.spatialReference=s??void 0,!c.isMultipart()){for(let e=0,t=0;e<l;++e)c.vertexXY[2*e]=i[t++],c.vertexXY[2*e+1]=i[t++],n&&(c.vertexZ[e]=i[t++]),r&&(c.vertexM[e]=i[t++]);return c}const h=2+Number(n)+Number(r);let u=0,p=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[p],s=t+e-Number(a);c.partOffsets[++p]=s;for(let e=t;e<s;++e)c.vertexXY[2*e]=i[u++],c.vertexXY[2*e+1]=i[u++],n&&(c.vertexZ[e]=i[u++]),r&&(c.vertexM[e]=i[u++]);a&&(u+=h)}return c}function A({type:e,vertexCount:t,vertexXY:i,vertexZ:n,vertexM:r,partCount:s,partOffsets:o,hasZ:a,hasM:l}){const c=new m.A([],[],a,l);s=Math.max(s,1);const h="polygon"===e;let u=0;for(let e=0;e<s;++e){const s=o?.[e+1]??t,p=c.coords.length;for(let e=u;e<s;++e)c.coords.push(i[2*e],i[2*e+1]),a&&c.coords.push(n[e]),l&&c.coords.push(r[e]);if(h){const e=u;c.coords.push(i[2*e],i[2*e+1]),a&&c.coords.push(n[e]),l&&c.coords.push(r[e])}c.lengths.push((c.coords.length-p)/c.stride),u=s}return"point"===e&&(c.lengths.length=0),c}function T(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,i=e.isCustomWkid()?0:e.getOldID();if(i<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===i)&&(n=void 0);const r=e.getVCS();if(null==r)return{wkid:i,latestWkid:n,wkt:t};const s=r.isCustomWkid()?0:r.getOldID();if(s<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===s)&&(o=void 0),{wkid:i,wkt:t,latestWkid:n,vcsWkid:s,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class S{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const i of t)e[i]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function z({vertexXY:e,vertexZ:t,vertexM:i}){return t?i?n=>[e[2*n],e[2*n+1],t[n],i[n]]:i=>[e[2*i],e[2*i+1],t[i]]:i?t=>[e[2*t],e[2*t+1],i[t]]:t=>[e[2*t],e[2*t+1]]}function O(e,t){return e.every((e,i)=>e===t[i])}function P(e,t,i,n,r,s,o,a){o??=0,a??=0;const l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:i,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(c+=Float64Array.BYTES_PER_ELEMENT*t),r&&(c+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(c+=(i+1)*Int32Array.BYTES_PER_ELEMENT,c+=(i+1)*Int8Array.BYTES_PER_ELEMENT),s&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let u=0;return l.vertexXY=new Float64Array(h,u,2*t),u+=l.vertexXY.byteLength,n&&(l.vertexZ=new Float64Array(h,u,t),u+=l.vertexZ.byteLength),r&&(l.vertexM=new Float64Array(h,u,t),u+=l.vertexM.byteLength),s&&(l.segmentParams=new Float64Array(h,u,l.segmentParamCount),u+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(h,u,t),l.segmentIndices.fill(V),u+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(h,u,i+1),u+=l.partOffsets.byteLength,l.partFlags=new Int8Array(h,u,i+1),u+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,i).fill(1)),s&&(l.segmentFlags=new Int8Array(h,u,t),l.segmentFlags.fill(1),u+=l.segmentFlags.byteLength),l}function E(e,t,{segmentFlags:i,segmentIndices:n,segmentParams:r},s,o){i[s]=4,n[s]=o;const[a,[l,c],h,u,p,f,m]=t.a;let g=4;u||(g|=1),h||(g|=2);const y=(0,d.SW)(e,t),[v,w]=(0,d.Uk)(y,.5);return r[o++]=g,r[o++]=f,r[o++]=m,r[o++]=p,r[o++]=l,r[o++]=c,r[o++]=y.u2-y.u1,r[o++]=y.u1,r[o++]=v,r[o++]=w,o}function Z(e,t,{segmentFlags:i,segmentIndices:n,segmentParams:r},s,o){i[s]=4,n[s]=o;const a=(0,f.io)(e,t);return D(a,4,...(0,c.mq)(a,.5),r,o)}function I(e,t,{segmentFlags:i,segmentIndices:n,segmentParams:r},s,o){return i[s]=4,n[s]=o,D((0,h.pM)(e,t),0,...t.c[1],r,o)}function D(e,t,i,n,r,s){const{cx:o,cy:a,thetaStart:l,thetaEnd:c,radius:h}=e;return l>c||(t|=1),Math.abs(c-l)<=Math.PI||(t|=2),r[s++]=t,r[s++]=h,r[s++]=1,r[s++]=0,r[s++]=o,r[s++]=a,r[s++]=c-l,r[s++]=l,r[s++]=i,r[s++]=n,s}function L(e,{b:[t,[i,n],[r,s]]},{segmentFlags:o,segmentIndices:a,segmentParams:l},c,h){return o[c]=2,a[c]=h,l[h++]=i,l[h++]=n,l[h++]=r,l[h++]=s,h}const j=1.61803,V=-1},54239(e,t,i){i.d(t,{A:()=>g});var n,r=i(5482),s=i(4576),o=i(66552),a=i(25482),l=i(86211),c=i(67076),h=i(91429),u=i(43937),p=i(36005);const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),d=f.jsonValues.slice();(0,s.Xy)(d,"orthometric");const m=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return f.write(e,t,i)}readHeightModel(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return m.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||m.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function y(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,h.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:d,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,r.Cg)([(0,u.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,r.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,r.Cg)([(0,h.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,r.Cg)([(0,p.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,r.Cg)([(0,p.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,r.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,r.Cg)([(0,h.$K)("esri.geometry.HeightModelInfo")],g)},86742(e,t,i){i.d(t,{Hh:()=>o,fz:()=>l,g7:()=>a,s1:()=>s});var n=i(83290);let r;function s(){return!!r&&(0,n.i)()}async function o(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(6859),i.e(6558)]).then(i.bind(i,6558)),Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(6061)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,n.l)()]);r=new e.OperatorGeodeticArea,t(n.p)}}function a(e,t,i){return r.execute(e,t,i,null)}function l(){return r.supportsCurves()}},77085(e,t,i){i.d(t,{Hh:()=>a,fz:()=>h,g7:()=>l,s1:()=>o,zo:()=>c});var n=i(76061),r=i(83290);let s;function o(){return!!s&&(0,r.i)()}async function a(){if(!o()){const[e,t]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(1088)]).then(i.bind(i,31088)),Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function l(e,t,i,n){return s.execute(e,t,i,n,null)}function c(e,t,i,r){const o=s.executeMany(new n.S(e),t,i,r,null);return Array.from(o)}function h(){return s.supportsCurves()}},35223(e,t,i){i.d(t,{Hh:()=>o,fz:()=>l,g7:()=>a,s1:()=>s});var n=i(83290);let r;function s(){return!!r&&(0,n.i)()}async function o(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(4167)]).then(i.bind(i,28879)),Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(6061)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,n.l)()]);r=new e.OperatorGeodeticLength,t(n.p)}}function a(e,t,i){return r.execute(e,t,i,null)}function l(){return r.supportsCurves()}},4144(e,t,i){i.d(t,{Hh:()=>a,fz:()=>h,g7:()=>l,s1:()=>o,zo:()=>c});var n=i(76061),r=i(83290);let s;function o(){return!!s&&(0,r.i)()}async function a(){if(!o()){const[e,t]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(9192)]).then(i.bind(i,9192)),Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756)]).then(i.bind(i,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorProject,t(r.p)}}function l(e,t){return s.execute(e,t,null)}function c(e,t){const i=s.executeMany(new n.S(e),t,null);return Array.from(i)}function h(){return s.supportsCurves()}},81150(e,t,i){i.d(t,{Pg:()=>l,fz:()=>c,g7:()=>o,zo:()=>a});var n=i(76061),r=(i(55537),i(88885),i(15756));i(95213);const s=new r.f;function o(e,t,i){return s.execute(e,t,i,null)}function a(e,t,i){const r=s.executeMany(new n.S(e),t,i,null);return Array.from(r)}function l(e,t,i){return s.isSimpleAsFeature(e,t,i,null,null)}function c(){return s.supportsCurves()}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>f,executeMany:()=>d,isLoaded:()=>u,load:()=>p,supportsCurves:()=>h});var n=i(4144),r=i(17499);let s,o,a,l,c,h;function u(){return!!s&&(0,n.s1)()}async function p(){if(!u()){const[e,t]=await Promise.all([Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(9285)]).then(i.bind(i,78125)),Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(6129)]).then(i.bind(i,86129)),(0,n.Hh)()]);s=e.fromGeometry,o=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,h=(0,n.fz)()}}function f(e,t,i){const h=a(e),u=c(o(h),o(t),i),p=l((0,n.g7)(s(e),u),t);return!i?.zConversionDisabled&&p?.hasZ&&(0,r.gw)([p],h,t),p}function d(e,t,i){const h=e.map(s),u=a(e),p=c(o(u),o(t),i),f=(0,n.zo)(h,p).map(e=>l(e,t));return!i?.zConversionDisabled&&f&&(0,r.gw)(f,u,t),f}},78125(e,t,i){i.r(t),i.d(t,{fromExtent:()=>g,fromGeometry:()=>m,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>w,fromPolyline:()=>x,fromPolylineUsingImportOperator:()=>_,fromSpatialReference:()=>C,getSpatialReference:()=>d,toExtent:()=>b,toGeometry:()=>M,toMultipoint:()=>A,toPoint:()=>T,toPolygon:()=>S,toPolyline:()=>R});var n=i(83661),r=(i(79187),i(55537)),s=i(95213),o=i(88885),a=i(5443),l=i(48526),c=i(86738),h=i(39829),u=i(82799),p=(i(90293),i(83299));const f="_gxVersion";function d(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function m(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return x(e);case"polygon":return w(e);case"extent":return g(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function g(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function y(e){if(!e.getCacheValue(f)){const t=new o.M,i=new s.P,n=e.points,r=e.hasM,a=e.hasZ,l=a?3:2;for(let e=0,s=n.length;e<s;e++){const s=n[e];i.setXYCoords(s[0],s[1]),a&&i.setZ(s[2]??0),r&&i.setM(s[l]??NaN),t.add(i)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function w(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:i,hasZ:n,rings:r}=e,s=(0,p.fromGeometryToGXGeometry)({curveRings:t,hasM:i,hasZ:n,rings:r});e.setCacheValue(f,s)}return e.getCacheValue(f)}function x(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:i,hasZ:n,paths:r}=e,s=(0,p.fromGeometryToGXGeometry)({curvePaths:t,hasM:i,hasZ:n,paths:r});e.setCacheValue(f,s)}return e.getCacheValue(f)}function _(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:i,hasZ:n,paths:r}=e,s=(0,p.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:i,hasZ:n,paths:r});e.setCacheValue(f,s)}return e.getCacheValue(f)}function C(e){return e.cache?(e.cache[f]??=(0,p.fromSpatialReference)(e),e.cache[f]):(0,p.fromSpatialReference)(e)}function M(e,t){if(e)switch(e.getGeometryType()){case r.G.enumPoint:return T(e,t);case r.G.enumEnvelope:return b(e,t);case r.G.enumMultiPoint:return A(e,t);case r.G.enumPolyline:return R(e,t);case r.G.enumPolygon:return S(e,t)}return null}function b(e,t){if(e.isEmpty())return null;const i=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),n=e.getDescription();if(n.hasM()){const t=e.queryInterval(2,0);i.mmin=t.vmin,i.mmax=t.vmax}if(n.hasZ()){const t=e.queryInterval(1,0);i.zmin=t.vmin,i.zmax=t.vmax}return i.setCacheValue(f,e),i}function A(e,t){if(e.isEmpty())return null;const i=e.getDescription(),n=i.hasM(),r=i.hasZ(),o=[],a=new s.P;for(let t=0,i=e.getPointCount();t<i;t++){e.getPointByVal(t,a);const i=[a.getX(),a.getY()];r&&i.push(a.getZ()),n&&i.push(a.getM()),o.push(i)}const c=new l.A({hasM:n,hasZ:r,points:o,spatialReference:t});return c.setCacheValue(f,e),c}function T(e,t){if(e instanceof n.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const i=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),r=e.getDescription();return r.hasM()&&(i.m=e.getM()),r.hasZ()&&(i.z=e.getZ()),i.setCacheValue(f,e),i}function S(e,t){if(e.isEmpty())return null;const i=h.A.fromJSON({...(0,p.toGeometry)(e,null),spatialReference:t});return i.setCacheValue(f,e),i}function R(e,t){if(e.isEmpty())return null;const i=u.A.fromJSON({...(0,p.toGeometry)(e,null),spatialReference:t});return i.setCacheValue(f,e),i}},5808(e,t,i){i.d(t,{O:()=>n});const n={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},17499(e,t,i){i.d(t,{gw:()=>o});var n=i(49186),r=i(60408),s=i(62815);function o(e,t,i){let n;for(const o of e)if(o&&(0,r.Pv)(o)&&!("vertexAttributes"in o)){if(!n){null==t.vcsWkid&&null==i.vcsWkid||l(t,i);const e="type"in o?o.type:(0,r.$B)(o);if(n=(0,s.N)(e,t,i),!n)return}n(o)}}class a extends n.A{constructor(){super("projection:z-unsupported","projection of z values is unsupported between different vertical coordinate systems")}}function l({vcsWkid:e},{vcsWkid:t}){if((e??null)!==(t??null))throw new a}},72727(e,t,i){function n(e,t,i){if(t<=0)return 0;const n=e-i;return n<0?0:Math.floor(n/t)+1}i.d(t,{k:()=>n}),i(53966)},27921(e,t,i){i.d(t,{$Q:()=>x,C:()=>a,Cr:()=>h,O_:()=>c,Qj:()=>l,T7:()=>v,Tj:()=>w,lU:()=>u,mN:()=>_,vE:()=>C,vt:()=>o});var n=i(34727),r=i(35522),s=i(51850);function o(e=M){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,i,n,r=o()){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,i){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return i[0]=t[0]*r,i[1]=t[1]*r,i[2]=t[2]*r,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function h(e,t,i,n=o()){const r=i[0]-t[0],s=i[1]-t[1],a=i[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],h=e[2]-t[2],u=s*h-a*c,p=a*l-r*h,f=r*c-s*l,d=u*u+p*p+f*f,m=Math.abs(d-1)>1e-5&&d>1e-12?1/Math.sqrt(d):1;return n[0]=u*m,n[1]=p*m,n[2]=f*m,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function u(e,t,i,n=0,s=Math.floor(i*(1/3)),o=Math.floor(i*(2/3))){if(i<3)return!1;t(f,n);let a=s,l=!1;for(;a<i-1&&!l;)t(d,a),a++,l=!(0,r.t2)(f,d);if(!l)return!1;for(a=Math.max(a,o),l=!1;a<i&&!l;)t(m,a),a++,(0,r.Re)(g,f,d),(0,r.S8)(g,g),(0,r.Re)(y,d,m),(0,r.S8)(y,y),l=!(0,r.t2)(f,m)&&!(0,r.t2)(d,m)&&Math.abs((0,r.Om)(g,y))<p;return l?(h(f,d,m,e),!0):(0!==n||1!==s||2!==o)&&u(e,t,i,0,1,2)}i(78955),i(44280),i(32114),i(32728);const p=.99619469809,f=(0,s.vt)(),d=(0,s.vt)(),m=(0,s.vt)(),g=(0,s.vt)(),y=(0,s.vt)();function v(e,t,i){return function(e){return 0===e||1===e}(C(e,t.origin,t.vector,0,i))}function w(e,t){return _(e,t)>=0}function x(e,t){const i=(0,r.Om)(e,t.ray.direction),n=-_(e,t.ray.origin);if(n<0&&i>=0)return!1;if(i>-1e-6&&i<1e-6)return n>0;if((n<0||i<0)&&!(n<0&&i<0))return!0;const s=n/i;return i>0?s<t.c1&&(t.c1=s):s>t.c0&&(t.c0=s),t.c0<=t.c1}function _(e,t){return(0,r.Om)(e,t)+e[3]}function C(e,t,i,s,o){const a=(0,r.Om)(e,i),l=_(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&s&&(c=(0,n.qE)(c,0,1)),!(4&s)&&c<0||!(8&s)&&c>1?l>=0?2:3:((0,r.WQ)(o,t,(0,r.hs)(o,i,c)),l>=0?0:1)}const M=[0,0,1,0]},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>o});var n=i(34727),r=i(35522),s=i(51850);function o(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const i=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,n.XM)(i)}(0,s.vt)(),(0,s.vt)()},32114(e,t,i){i.d(t,{Rc:()=>f,J8:()=>d,rq:()=>u,Km:()=>p}),i(44208);var n=i(26390),r=i(29242),s=i(9093),o=i(82534),a=i(48163),l=i(51850),c=i(91829);class h{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(l.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(r.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const u=h.createVec3f64(),p=h.createVec4f64(),f=(h.createMat3f64(),h.createMat4f64()),d=h.createQuatf64()},62369(e,t,i){i.r(t),i.d(t,{default:()=>N});var n=i(5482),r=i(11254),s=i(49186),o=i(97768),a=i(25728),l=i(17676),c=i(84952),h=i(91429),u=i(54239),p=i(4146),f=i(89186),d=i(18768),m=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class x extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(_.forEach((e,t)=>{e===this&&_.delete(t)}),this.destroy())}}const _=new Map;var C=i(34727),M=i(19419),b=(i(44208),i(86211)),A=i(5443),T=i(86738),S=i(16930),R=i(21325),z=i(28735),O=i(91806),P=i(87045);class E{constructor(e){const t=E.checkUnsupported(e);if(null!=t)throw t;const i=e;this.spatialReference=i.spatialReference,this._isWebMercator=this.spatialReference.isWebMercator,this._isGCS=(0,R.EA)(this.spatialReference),this.origin=[i.origin.x,i.origin.y],this.pixelSize=i.size[0],this.dpi=i.dpi;const n=i.lods.reduce((e,t)=>(t.level<e.minLod.level&&(e.minLod=t),e.max=Math.max(e.max,t.level),e),{minLod:i.lods[0],max:-1/0}),r=n.minLod,s=2**r.level;let o=r.resolution*s,a=r.scale*s;this.levels=new Array(n.max+1);for(let e=0;e<this.levels.length;e++)this.levels[e]={resolution:o,scale:a,tileSize:[o*i.size[0],o*i.size[1]]},o/=2,a/=2}clone(){return new E(this.toTileInfo())}toTileInfo(){return new P.A({dpi:this.dpi,origin:new T.A({x:this.origin[0],y:this.origin[1],spatialReference:this.spatialReference}),size:[this.pixelSize,this.pixelSize],spatialReference:this.spatialReference,lods:this.levels.map((e,t)=>new O.A({level:t,scale:e.scale,resolution:e.resolution}))})}getExtent(e,t,i,n){const r=this.levels[e],s=r.tileSize[0],o=r.tileSize[1];n[0]=this.origin[0]+i*s,n[2]=this.origin[0]+(i+1)*s,n[3]=this.origin[1]-t*o,n[1]=this.origin[1]-(t+1)*o}convertExtentToRadians(e,t){this._isWebMercator?(t[0]=(0,z.yw)(e[0]),t[1]=(0,z.jg)(e[1]),t[2]=(0,z.yw)(e[2]),t[3]=(0,z.jg)(e[3])):this._isGCS&&(t[0]=(0,C.kU)(e[0]),t[1]=(0,C.kU)(e[1]),t[2]=(0,C.kU)(e[2]),t[3]=(0,C.kU)(e[3]))}getExtentGeometry(e,t,i,n=new A.A){return this.getExtent(e,t,i,Z),n.spatialReference=this.spatialReference,n.xmin=Z[0],n.ymin=Z[1],n.xmax=Z[2],n.ymax=Z[3],n.zmin=void 0,n.zmax=void 0,n}ensureMaxLod(e){if(null==e)return!1;let t=!1;for(;this.levels.length<=e;){const{resolution:e,scale:i}=this.levels[this.levels.length-1],n=e/2*this.pixelSize;this.levels.push({resolution:e/2,scale:i/2,tileSize:[n,n]}),t=!0}return t}capMaxLod(e){this.levels.length>e+1&&(this.levels.length=e+1)}getMaxLod(){return this.levels.length-1}scaleAtLevel(e){return this.levels[0].scale/2**e}levelAtScale(e){const t=this.levels[0].scale;return e>=t?0:Math.log(t/e)*Math.LOG2E}resolutionAtLevel(e){return this.levels[0].resolution/2**e}compatibleWith(e,t=1/0){if(E.checkUnsupported(e))return!1;const i=new E(e);if(!i.spatialReference.equals(this.spatialReference))return!1;if(i.pixelSize!==this.pixelSize)return!1;const n=Math.min(this.levels.length-1,i.levels.length-1,t),r=this.levels[n].resolution;let s=.5*r;return!(!(0,C.Sp)(i.origin[0],this.origin[0],s)||!(0,C.Sp)(i.origin[1],this.origin[1],s))&&(s=.5*r/2**n/this.pixelSize*12,(0,C.Sp)(r,i.levels[n].resolution,s))}rootTilesInExtent(e,t=null,i=1/0){const n=new Array,r=this.levels[0].tileSize;if(null==e||0===r[0]||0===r[1])return n;E.computeRowColExtent(e,r,this.origin,Z);let s=Z[1],o=Z[3],a=Z[0],l=Z[2];const c=l-a,h=o-s;if(c*h>i){const e=Math.floor(Math.sqrt(i));h>e&&(s=s+Math.floor(.5*h)-Math.floor(.5*e),o=s+e),c>e&&(a=a+Math.floor(.5*c)-Math.floor(.5*e),l=a+e)}for(let e=s;e<o;e++)for(let t=a;t<l;t++)n.push([0,e,t]);return null!=t&&(t[0]=this.origin[0]+a*r[0],t[1]=this.origin[1]-o*r[1],t[2]=this.origin[0]+l*r[0],t[3]=this.origin[1]-s*r[1]),n}static computeRowColExtent(e,t,i,n){const r=.001*(e[2]-e[0]+(e[3]-e[1]));n[0]=Math.max(0,Math.floor((e[0]+r-i[0])/t[0])),n[2]=Math.max(0,Math.ceil((e[2]-r-i[0])/t[0])),n[1]=Math.max(0,Math.floor((i[1]-e[3]+r)/t[1])),n[3]=Math.max(0,Math.ceil((i[1]-e[1]-r)/t[1]))}static isPowerOfTwo(e){const t=e.lods,i=t[0].resolution*2**t[0].level;return!t.some(e=>!(0,C.b6)(e.resolution,i/2**e.level))}static hasGapInLevels(e){const t=e.lods.map(e=>e.level);t.sort((e,t)=>e-t);for(let e=1;e<t.length;e++)if(t[e]!==t[0]+e)return!0;return!1}static tileSizeSupported(e){const t=e.size[1];return t===e.size[0]&&!(t&t-1)&&t>=128&&t<=512}static hasOriginPerLODs(e){const t=e.origin;return e.lods.some(e=>null!=e.origin&&(e.origin[0]!==t.x||e.origin[1]!==t.y))}static getMissingTileInfoError(){return new s.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information")}static checkUnsupported(e){return null==e?new s.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information"):e.lods.length<1?new s.A("tilingscheme:generic","Tiling scheme must have at least one level"):E.isPowerOfTwo(e)?E.hasGapInLevels(e)?new s.A("tilingscheme:gaps","Tiling scheme levels must not have gaps between min and max level"):E.tileSizeSupported(e)?E.hasOriginPerLODs(e)?new s.A("tilingscheme:multiple-origin","Tiling scheme levels must not have their own origin"):null:new s.A("tilingscheme:tile-size","Tiles must be square and size must be one of [128, 256, 512]"):new s.A("tilingscheme:power-of-two","Tiling scheme must be power of two")}static fromExtent(e,t){const i=e[2]-e[0],n=e[3]-e[1],r=(0,b.GA)(t),s=1.2*Math.max(i,n),o=s/256,a=o*r*(96/.0254),l=new E(new P.A({size:[256,256],origin:new T.A({x:e[0]-.5*(s-i),y:e[3]+.5*(s-n)}),lods:[new O.A({level:0,resolution:o,scale:a})],spatialReference:t}));return l.ensureMaxLod(20),l}static makeWebMercatorAuxiliarySphere(e){const t=new E(E.WebMercatorAuxiliarySphereTileInfo);return t.ensureMaxLod(e),t}static makeGCSWithTileSize(e,t=256,i=16){const n=256/t,r=new E(new P.A({size:[t,t],origin:new T.A({x:-180,y:90,spatialReference:e}),spatialReference:e,lods:[new O.A({level:0,resolution:.703125*n,scale:295497598.570834*n})]}));return r.ensureMaxLod(i),r}static{this.WebMercatorAuxiliarySphereTileInfo=new P.A({size:[256,256],origin:new T.A({x:-20037508.342787,y:20037508.342787,spatialReference:S.A.WebMercator}),spatialReference:S.A.WebMercator,lods:[new O.A({level:0,resolution:156543.03392800014,scale:591657527.591555})]})}static{this.WebMercatorAuxiliarySphere=E.makeWebMercatorAuxiliarySphere(19)}get test(){}}const Z=(0,M.vt)(),I=(0,C.$8)(C.pq/10),D=(0,M.vt)();E.WebMercatorAuxiliarySphere.getExtent(0,0,0,D),(0,M.vt)([-180,-90,180,90]);var L=i(36005);let j=class extends((0,f.f)((0,d.b)((0,m.q)((0,g.A)((0,a.M)(p.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=_.get(e);return t||(null!=e?(t=new x(t=>e.immediate.schedule(t)),_.set(e,t)):(t=new x,_.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new s.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}fetchTile(e,t,i,n){const s=n?.signal,o={responseType:"array-buffer",signal:s},a={noDataValue:n?.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(e,t,i,n)).then(()=>(0,r.A)(this.getTileUrl(e,t,i),o)).then(e=>this._lercDecoder.decode(e.data,a,s)).then(e=>new v.A(e?new v.A({values:e.pixelData,width:e.width,height:e.height,noDataValue:e.noDataValue}):{values:[],width:0,height:0,noDataValue:n?.noDataValue??I}))}getTileUrl(e,t,i){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,c.x0)({...this.parsedUrl.query,blankTile:!n&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}async createElevationSampler(e,t){const{createSampler:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}_fetchTileAvailability(e,t,i,n){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,n):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[V]}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],j.prototype,"capabilities",void 0),(0,n.Cg)([(0,L.w)("service","capabilities",["capabilities"])],j.prototype,"readCapabilities",null),(0,n.Cg)([(0,h.MZ)({json:{read:{source:"copyrightText"}}})],j.prototype,"copyright",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0,type:u.A})],j.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],j.prototype,"path",void 0),(0,n.Cg)([(0,h.MZ)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],j.prototype,"minScale",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],j.prototype,"maxScale",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],j.prototype,"opacity",void 0),(0,n.Cg)([(0,h.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],j.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,h.MZ)()],j.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],j.prototype,"type",void 0),(0,n.Cg)([(0,h.MZ)(y.OZ)],j.prototype,"url",void 0),(0,n.Cg)([(0,h.MZ)()],j.prototype,"version",void 0),(0,n.Cg)([(0,L.w)("version",["currentVersion"])],j.prototype,"readVersion",null),j=(0,n.Cg)([(0,h.$K)("esri.layers.ElevationLayer")],j);const V=Symbol("default-fetch-tile");j.prototype.fetchTile[V]=!0;const N=j},4146(e,t,i){i.d(t,{A:()=>v});var n=i(5482),r=i(11254),s=i(49186),o=i(65529),a=i(4902),l=i(92474),c=i(53966),h=i(17676),u=i(84952),p=i(91429),f=i(5443),d=i(16930),m=i(92602),g=i(79677);let y=0,v=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,d.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=d.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([i.e(812),i.e(5613),i.e(909)]).then(i.bind(i,45613));try{return await n(t)}catch(e){const i=t?.portalItem,n=i?.id||"unset",r=i?.portal?.url||m.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,h.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,u.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,p.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,p.MZ)({type:f.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,p.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:d.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,p.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,p.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,p.$K)("esri.layers.Layer")],v)},92722(e,t,i){i.d(t,{A:()=>r});var n=i(69397);class r{constructor(e=[],t=[],i=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=i,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:i,hasM:n}){return new r(e,t,i||!1,n||!1)}static fromRect([e,t,i,n]){const s=i-e,o=n-t;return new r([5],[e,t,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const i of this.lengths){if(i<3)continue;const{stride:n}=this;let r=this.coords[n*t],s=this.coords[n*t+1];for(let o=1;o<i;o+=1){const i=n*(t+o),a=this.coords[i],l=this.coords[i+1];e+=-.5*(a-r)*(l+s),r=a,s=l}t+=i}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:i}=this;for(const n of this.lengths){for(let r=0;r<n;r++){const n=i*(t+r);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:i}=e;let n=0;const{stride:r}=this;for(const e of i){for(let i=1;i<e;i++){const e=r*(n+i);t[e]+=t[e-r],t[e+1]+=t[e+1-r]}n+=e}return e}clone(e){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:i,size:n}=this,s=this.coords.slice(0,n*i);return e?(e.set(s),new r(t,e,this.hasZ,this.hasM)):new r(t,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const i=new Array(t*e);for(let t=0,n=0;t<i.length;t+=e)i[n++]=this.coords[t],i[n++]=this.coords[t+1];return new r(this.lengths,i,!1,!1)}}},89186(e,t,i){i.d(t,{f:()=>h});var n=i(5482),r=i(91429),s=i(16930),o=i(87045),a=i(65509),l=i(25943),c=i(36005);const h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const n=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:s,minScale:c,maxScale:h}=t;if(null==r&&null==s&&(0!==c||0!==h)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);r=t>=c?i.level:r,s=t>=h?i.level:s}}if(n)return new l.d({layer:this,minLOD:r,maxLOD:s});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new a.A(e,r,s)}return null}};return(0,n.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,n.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,n.Cg)([(0,r.MZ)({type:s.A})],i.prototype,"spatialReference",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,n.Cg)([(0,r.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,n.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}},63490(e,t,i){i.d(t,{E1:()=>c,Mr:()=>l,TH:()=>a});var n=i(5482),r=i(69540),s=i(25482),o=i(91429);let a=class extends((0,r.OU)(s.o)){constructor(){super(...arguments),this.url=null}};(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,n.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.constantElevation=null}};(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,n.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l);const c=e=>null!=e&&"number"==typeof e.constantElevation},23281(e,t,i){i.d(t,{eR:()=>C,Qv:()=>z,fs:()=>A,Yp:()=>O,o:()=>E,RR:()=>M,l6:()=>b});var n=i(66552),r=(i(86211),i(28735),i(5482)),s=i(69540),o=i(25482),a=i(91429),l=i(69622),c=i(21325);let h=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],h);const u=h;let p=class extends((0,s.OU)((0,o.T)(u))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,heading:o,pitch:a,roll:l,affineTransformations:c,focalLength:h,principalOffsetPoint:u,radialDistortionCoefficients:p,tangentialDistortionCoefficients:f}=this,d=[e,t,i,n,r,s,o,a,l];return this.isAdvanced&&(c?.forEach(e=>d.push(e)),d.push(h),u?.forEach(e=>d.push(e)),p?.forEach(e=>d.push(e)),f?.forEach(e=>d.push(e))),d.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"z",void 0),p=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],p);const f=p;let d=class extends((0,s.OU)((0,o.T)(u))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:s}=this,o=`${s}`.split("|");return o.splice(1,1),`${e}|${t}|${i}|${n}|${r}|${o.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],d.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],d.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],d.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],d.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"properties",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],d);const m=d;let g=class extends((0,s.OU)((0,o.T)(u))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,omega:o,phi:a,kappa:l,affineTransformations:c,focalLength:h,principalOffsetPoint:u,radialDistortionCoefficients:p,tangentialDistortionCoefficients:f}=this,d=[e,t,i,n,r,s,o,a,l];return this.isAdvanced&&(c?.forEach(e=>d.push(e)),d.push(h),u?.forEach(e=>d.push(e)),p?.forEach(e=>d.push(e)),f?.forEach(e=>d.push(e))),d.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,s.OU)((0,o.T)(u))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,yaw:o,pitch:a,roll:l,affineTransformations:c,focalLength:h,principalOffsetPoint:u,radialDistortionCoefficients:p,tangentialDistortionCoefficients:f}=this,d=[e,t,i,n,r,s,o,a,l];return this.isAdvanced&&(c?.forEach(e=>d.push(e)),d.push(h),u?.forEach(e=>d.push(e)),u?.forEach(e=>d.push(e)),p?.forEach(e=>d.push(e)),f?.forEach(e=>d.push(e))),d.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,x=new Map;x.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),x.set("1",{desc:"Using Heading, Pitch and Roll",constructor:f}),x.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),x.set("4",{desc:"Using Local Tangent Plane",constructor:m});var _=i(63490);function C(e,t,i){return e?(0,_.E1)(e)?new _.Mr(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new _.TH({...e,url:n})):null}(e,t,i):e}const M=new n.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),b=new n.J({Feet:"feet",Meter:"meter"}),A=new n.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),T=new Map;T.set("1",function(e){const[t,i,n,r,s,o,a,l,c,h,u,p,f,d,m,g,y,v,w,x,_,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,heading:o,pitch:a,roll:l,...R([c,h,u,p,f,d],[g,y],[v,w,x],[_,C],m)}}),T.set("3",function(e){const[t,i,n,r,s,o,a,l,c,h,u,p,f,d,m,g,y,v,w,x,_,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,yaw:o,pitch:a,roll:l,...R([c,h,u,p,f,d],[g,y],[v,w,x],[_,C],m)}}),T.set("2",function(e){const[t,i,n,r,s,o,a,l,c,h,u,p,f,d,m,g,y,v,w,x,_,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:s,omega:o,phi:a,kappa:l,...R([c,h,u,p,f,d],[g,y],[v,w,x],[_,C],m)}}),T.set("4",function(e){const[t,i,n,r,s,...o]=e.slice(1),a=T.get(s),l=x.get(s)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:new l(a([s,"",...o]))}:null});const S=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function R(e,t,i,n,r){const s=S(e),o=S(t),a=S(i),l=S(n);return{affineTransformations:6===s?.length?s:void 0,focalLength:6===s?.length?parseFloat(r):void 0,principalOffsetPoint:2!==o?.length?[0,0]:o,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function z(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function O(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}const P="sequenceorder";function E(e,t){if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()===P.toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}return e.split(";").map(e=>{const[i,n]=e.split(/\s+/).map(e=>e.trim()),r=t.find(e=>e.name.toLowerCase()===i.toLowerCase());return r?{fieldName:r?r.name:P,sortOrder:"desc"===n?"desc":"asc"}:null}).filter(e=>null!=e)}},90091(e,t,i){i.d(t,{createSampler:()=>z,query:()=>R});var n=i(60999),r=i(49186),s=i(97768),o=i(17676),a=i(86211),l=i(91218),c=i(19419),h=i(4576),u=i(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(n,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){return(0,h.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class d extends p{constructor(e,t,i,n){super(e,i),this.maskExtents=n,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i);if(!e)return n.length-1;const r=this.extent;if(null==r)return-1;for(let i=n.length-1;i>=0;i--){const s=n[i],o=s.resolution*t.size[0],a=s.resolution*t.size[1];if(Math.ceil(r.width/o)*Math.ceil(r.height/a)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let n=!1;e(i,()=>n=!0),n?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:i,tilemapCache:n}=this.layer,r=g(i,n)[e],s=i.tileAt(r.level,t.xmin,t.ymin),o=s.extent,a=r.resolution*i.size[0],l=r.resolution*i.size[1],c=Math.ceil((t.xmax-o[0])/a),h=Math.ceil((t.ymax-o[1])/l);for(let e=0;e<h;e++)for(let t=0;t<c;t++){const n=new u.U(s.level,s.row-e,s.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function m(e){return null!=e?.tileInfo}function g(e,t){const i=e.lods;if(m(t)){const{effectiveMinLOD:e,effectiveMaxLOD:n}=t;return i.filter(t=>t.level>=e&&t.level<=n)}return i}function y(e,t){const i={},n=[];for(const r of e){const e=r.id;e&&!i[e]?(i[e]=r,n.push(r)):t?.(r)}const r=n.sort((e,t)=>e.level-t.level);return r.filter((e,i)=>{for(let n=0;n<i;n++){const i=r[n].extent;if(i&&(0,c.gR)(i,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const i=e.extent;this._samplerData=new v(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:r,dy:s,y1:o,x0:a}=this._samplerData,{width:l,values:c,noDataValue:h}=n,u=x(s*(o-t),0,i),p=x(r*(e-a),0,i),f=Math.floor(u),d=Math.floor(p),m=f*l+d,g=m+l,y=c[m],v=c[g],w=c[m+1],_=c[g+1];if(y!==h&&v!==h&&w!==h&&_!==h){const e=p-d,t=y+(w-y)*e;return t+(v+(_-v)*e-t)*(u-f)}}}function x(e,t,i){return e<t?t:e>i?i:e}var _=i(87378),C=i(48526),M=i(86738),b=i(82799);class A{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new A(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new C.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(i,e);if(!n)return null;const r=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),s=this.clone(r);return s.spatialReference=e,s}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new C.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(t,e);if(!i)return null;const n=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),r=this.clone(n);return r.spatialReference=e,r}static fromGeometry(e){const t=new A(e);if(e instanceof A)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new T(i.x,i.y,i.z,i.m)]:n?[new T(i.x,i.y,i.z)]:r?[new T(i.x,i.y,null,i.m)]:[new T(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new M.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?i.points.map(e=>new T(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new T(e[0],e[1],e[2])):r?i.points.map(e=>new T(e[0],e[1],null,e[2])):i.points.map(e=>new T(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new C.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new C.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{const i=e,n=[],r=[],{hasZ:s,hasM:o}=e;let a=0;for(const e of i.paths)if(r.push([a,a+e.length]),a+=e.length,s&&o)for(const t of e)n.push(new T(t[0],t[1],t[2],t[3]));else if(s)for(const t of e)n.push(new T(t[0],t[1],t[2]));else if(o)for(const t of e)n.push(new T(t[0],t[1],null,t[2]));else for(const t of e)n.push(new T(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=r.map(e=>n.slice(e[0],e[1]));return new b.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class T{constructor(e,t,i=null,n=null,r=null,s=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=r,this.elevationTile=s}clone(){return new T(this.x,this.y,this.z,this.m)}}var S=i(1555);async function R(e,t,i){if(!e)throw new r.A(V,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof A)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...L,...i},o=n.signal;if("integrated-mesh-3dtiles"===e.type){const r=A.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const s=12.9*(i?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:o,maxGeometricError:s}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,o);if(c){if(void 0!==n.noDataValue&&n.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=n.noDataValue);return{geometry:c.export(),noDataValue:n.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const s=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:s}}const c=new f(e,t.spatialReference,n);return await e.load({signal:o}),await async function(e,t,i){let n;const s=e.layer.tileInfo.spatialReference;if(t instanceof A?n=await t.project(s,i):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:i}),n=(0,l.project)(t,s)),!n)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=A.fromGeometry(n)}(c,t,o),await E(c,o),await j(c,o),function(e){e.geometry.coordinates.forEach(t=>{const i=t.elevationTile;let n=e.parameters.noDataValue;if(i){const e=i.sample(t.x,t.y);null==e?t.elevationTile=null:n=e}t.z=n})}(c),async function(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,s.Lw)(i);const n={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(n.sampleInfo=function(e){const t=e.layer.tileInfo,i=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(n=>{let r=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(n.elevationTile.key.level).resolution*i),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),n}(c,o)}async function z(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(V,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const n={...L,...i,returnSampleInfo:!0},s=O(e[e.length-1],t,n);return 1===e.length?s:P(e,t,await s,n)}async function O(e,t,i,n){const r=i.signal;await e.load({signal:r});const s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,l.initializeProjection)([{source:s,dest:o}],{signal:r}),t=(0,l.project)(t,o));const a=new d(e,t,i,n);await E(a,r),await j(a,r);const c=a.elevationTiles,h=a.layer.tileInfo,u=a.parameters.noDataValue;return new S.C({noDataValue:u,tiles:c,tileInfo:h})}async function P(e,t,i,n){if(e.pop(),!e.length)return i;const r=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),s=await O(e[e.length-1],t,n,r);if(0===s.samplers.length)return i;const o=i.samplers.concat(s.samplers),a=n.noDataValue;return P(e,t,new S.C({samplers:o,noDataValue:a}),n)}async function E(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new u.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const n=e.x,r=e.y;(n<i.xmin||n>i.xmax||r<i.ymin||r>i.ymax)&&(e.elevationTile=t)})}(e);const i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){const i=function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=t/(0,a.GA)(i.spatialReference),s=g(i,n);let o=s[0],l=0;for(let e=1;e<s.length;e++){const t=s[e];Math.abs(t.resolution-r)<Math.abs(o.resolution-r)&&(o=t,l=e)}return l}(e,t);e.selectTilesAtLOD(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=D(i,n,e.parameters.minDemResolution);await Z(e,r,t)}(e,t);else{if("auto"!==i)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:i}=e.layer,n=D(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(n,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let i=0;const n={},r=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},s=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(r,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(n=>{i<=e.parameters.maximumAutoTileRequests||(s(n),t.upsampleTile(n)&&(o=!0),r(n))},s),o););}(e);const i=e.layer.tilemapCache;if(!i||m(i))return I(e,t);const r=e.getTilesToFetch(),s={},a=r.map(async e=>{const r=new u.U(0,0,0),a=await(0,n.Ke)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(s[e.id]=r):(0,o.QP)(a.error)});await(0,o.qr)(Promise.all(a),t),e.remapTiles(s)}(e,t)}}async function Z(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const s=n.tilemapCache,a=e.getTilesToFetch();try{if(s&&!m(s))await(0,o.qr)(Promise.all(a.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:i}))),i);else if(await j(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(n){(0,o.QP)(n),await Z(e,t-1,i)}}async function I(e,t){const i=e.layer.tileInfo;await j(e,t);let n=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?n=!0:t()}),n&&await I(e,t)}function D(e,t,i=0){const n=g(e,t);let r=n.length-1;if(i>0){const t=i/(0,a.GA)(e.spatialReference),s=n.findIndex(e=>e.resolution<t);0===s?r=0:s>0&&(r=s-1)}return r}const L={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function j(e,t){const i=e.getTilesToFetch(),n={},r=e.parameters.cache,s=e.parameters.noDataValue,a={noDataValue:s,signal:t},l=i.map(async t=>{if(null==t.id)return;const i=`${e.layer.uid}:${t.id}:${s}`,o=r?.get(i),l=o??_.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(i,l),n[t.id]=new w(t,l)});await(0,o.qr)(Promise.allSettled(l),t),e.populateElevationTiles(n)}const V="elevation-query:invalid-layer"},87378(e,t,i){i.d(t,{A:()=>a});var n,r=i(34275),s=i(56507);const o=Symbol("ElevationTileDataClass");class a{static{n=o}constructor({values:e,width:t,height:i,noDataValue:s}){this[n]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=s}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,n=-1/0,r=!0;for(const s of t)s===e?this._hasNoDataValues=!0:(i=s<i?s:i,n=s>n?s:n,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=n>-3e38?n:0)}static{this.from=(0,s.qf)(a)}}},91806(e,t,i){i.d(t,{A:()=>l});var n,r=i(5482),s=i(25482),o=i(91429),a=i(56507);let l=class extends s.o{static{n=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new n({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,r.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.LOD")],l)},1555(e,t,i){i.d(t,{C:()=>d});var n=i(5482),r=i(53966),s=i(86211),o=i(91429),a=i(16930),l=i(19419),c=i(65529),h=i(86738),u=i(28735);let p=class extends c.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){f.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const s=e.paths[r],o=t.paths[r];for(let e=0;e<s.length;e++){const t=s[e],r=o[e];f.x=r[0],f.y=r[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(f.x,f.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){f.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const s=e.points[r],o=t.points[r];f.x=o[0],f.y=o[1],n&&(s[3]=s[2]),s[2]=i.elevationAt(f.x,f.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,u.Cv)(e,t);return n||r.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}};p=(0,n.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],p);const f=new h.A;let d=class extends p{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new m({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});const n=i[0];if(n){this.extent=n.extent.clone();const{min:e,max:t}=n.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){const t=i[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let i;for(const n of this.samplers)if(n.containsAt(e,t)&&(i=n.elevationAt(e,t),i!==n.noDataValue))return i;return null!=i?i:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,n.Cg)([(0,o.MZ)({constructOnly:!0})],d.prototype,"noDataValue",void 0),(0,n.Cg)([(0,o.MZ)({constructOnly:!0})],d.prototype,"samplers",void 0),d=(0,n.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler")],d);let m=class extends p{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const i=(0,s.GA)(e.tileInfo.spatialReference),n=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:n,max:n}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,n.Cg)([(0,o.MZ)({constructOnly:!0})],m.prototype,"tile",void 0),(0,n.Cg)([(0,o.MZ)({constructOnly:!0})],m.prototype,"noDataValue",void 0),(0,n.Cg)([(0,o.MZ)({constructOnly:!0})],m.prototype,"tileInfo",void 0),m=(0,n.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],m)},87045(e,t,i){i.d(t,{A:()=>w});var n,r=i(5482),s=i(66552),o=i(25482),a=i(86211),l=i(91429),c=i(56507),h=i(86738),u=i(16930),p=i(21325),f=i(28735),d=i(91806),m=i(72802),g=i(36005),y=i(43937);const v=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{n=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:s=u.A.WebMercator,numLODs:o=24}=e;if(!(0,p.fn)(s)){const e=[];if(i)for(let t=0;t<i.length;t++){const n=i[t];e.push(new d.A({level:t,scale:n,resolution:n}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new d.A({level:i,scale:t,resolution:t})),t*=2}return new n({dpi:96,lods:e,origin:new h.A(0,0,s),size:[r,r],spatialReference:s})}const l=(0,p.Vp)(s),c=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):new h.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),f=1/(39.37*(0,a.GA)(s)*96),m=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],n=t*f;m.push(new d.A({level:e,scale:t,resolution:n}))}else{let e=(0,p.EA)(s)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(o/t);m.push(new d.A({level:0,scale:e,resolution:e*f}));for(let n=1;n<i;n++){const i=e/2**t,r=i*f;m.push(new d.A({level:n,scale:i,resolution:r})),e=i}}return new n({dpi:96,lods:m,origin:c,size:[r,r],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,p.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const n=[],r=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{n.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,r[e.level]=e})),this._set("scales",n),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),n=i+1;return t[i]/(t[i]/t[n])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let n=0;for(;n<i;n++){const i=t[n],r=t[n+1];if(i<=e)return n;if(r===e)return n+1;if(i>e&&r<e)return n+Math.log(i/e)/Math.log(i/r)}return n}tileAt(e,t,i,n){const r=this.lodAt(e);if(!r)return null;let s,o;if("number"==typeof t)s=t,o=i;else if((0,p.aI)(t.spatialReference,this.spatialReference))s=t.x,o=t.y,n=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,o=e.y,n=i}const a=r.resolution*this.size[0],l=r.resolution*this.size[1];return n??=new m.U(0,0,0),n.level=e,n.row=Math.floor((this.origin.y-o)/l+.001),n.col=Math.floor((s-this.origin.x)/a+.001),this.updateTileInfo(n),n}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const n=e.level-i.level,r=i.resolution*this.size[0]/2**n,s=i.resolution*this.size[1]/2**n;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+s,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:n}=i,r=n*this.size[0],s=n*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+r,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return n.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],r=this.lods.length-t;for(let e=0;e<r;e++){const n=e+t,{scale:r,resolution:s}=n>=0?this.lods[n]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:e,scale:r,resolution:s}))}return new n({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const n=e[i];this._upsampleLevels[n.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/n.resolution:0},t=n}}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,r.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,r.Cg)([(0,l.MZ)({type:[d.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,r.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,r.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,r.Cg)([(0,y.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],w.prototype,"writeSize",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=n=(0,r.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},65509(e,t,i){i.d(t,{A:()=>s});var n=i(49186),r=i(17676);class s{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const n=this.tileInfo?.lodAt(e);return!n||e<this.minLOD||e>this.maxLOD?"unavailable":n.cols&&n.rows?i>=n.cols[0]&&i<=n.cols[1]&&t>=n.rows[0]&&t<=n.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,s){await(0,r.NO)(s);const o=this.getAvailability(e,t,i);if("unavailable"===o)throw new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,n,s){await(0,r.NO)(s),n.level=e,n.row=t,n.col=i;const o=this.tileInfo;return o.updateTileInfo(n),this.fetchAvailability(e,t,i,s).catch(e=>{if((0,r.zf)(e))throw e;if(o.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,s);throw e})}}},72802(e,t,i){i.d(t,{U:()=>r});var n=i(19419);class r{constructor(e,t,i,r=(0,n.vt)()){this._level=e,this._row=t,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>M});var n,r=i(5482),s=i(11254),o=i(69622),a=i(49186),l=i(36563),c=(i(44208),i(66344)),h=i(15142),u=i(17676),p=i(36708),f=i(76030),d=i(84952),m=i(91429),g=i(72802),y=i(4718),v=i(69397),w=i(34275);class x{constructor(e){!function(e){if(!e?.location)throw new a.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new a.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new a.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new a.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new a.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,y.o8)(t));const n=this.location.width,r=this.location.height;let s=!0,o=!0;const l=function(e,t=!1){return e<=w.y9?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(n*r/32));let c=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(o=!1,l[c]|=1<<t):s=!1,31===t&&++c}o?(this._availability="unavailable",this.byteSize=40):s?(this._availability="available",this.byteSize=40):(this._availability=l,this.byteSize=40+(0,v.Qf)(l))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),n=i%32,r=i>>5,s=this._availability;return r<0||r>s.length?"unknown":s[r]&1<<n?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||s.A,{row:n,col:r,width:o,height:l}=e,c={query:{f:"json"}};return t=t?{...c,...t}:c,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:n,left:r,width:o,height:l},valid:!0,data:new Array(o*l).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==n||e.location.left!==r||e.location.width!==o||e.location.height!==l))throw new a.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:n,left:r,width:o,height:l}});return x.fromJSON(e)})}static fromJSON(e){return Object.freeze(new x(e))}}function _(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function C(e,t,i){return new a.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let M=class extends o.A{static{n=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=s.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new c.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const n=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return n?n.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,n){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(C(e,t,i)):this._fetchTilemap(e,t,i,n).catch(e=>e).then(n=>{if(n instanceof x){const r=n.getAvailability(t,i);if("unavailable"===r)throw C(e,t,i);return r}if((0,u.zf)(n))throw n;return"unknown"})}fetchAvailabilityUpsample(e,t,i,n,r){n.level=e,n.row=t,n.col=i;const s=this.layer.tileInfo;s.updateTileInfo(n);const o=this.fetchAvailability(e,t,i,r).catch(e=>{if((0,u.zf)(e))throw e;if(s.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,r);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,r,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,r,s){if(!this._prefetchingEnabled)return;const o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;const a=new AbortController;s.then(()=>a.abort(),()=>a.abort());let c=!1;const h=(0,l.hA)(()=>{c||(c=!0,a.abort())});if(this.addHandles(h,o),await(0,f.md)(10,a.signal).catch(()=>{}),c||(c=!0,this.removeHandles(o)),(0,u.G4)(a))return;const p=new g.U(e,t,i),d={...r,signal:a.signal},m=this.layer.tileInfo;for(let e=0;n._prefetches.length<n._maxPrefetch&&m.upsampleTile(p);++e){const e=this.fetchAvailability(p.level,p.row,p.col,d);n._prefetches.push(e);const t=()=>{n._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:n._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,n){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new a.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const r=this._tmpTilemapDefinition,s=this._tilemapFromCache(e,t,i,r);if(s)return Promise.resolve(s);const o=n?.signal;return n={...n,signal:null},new Promise((e,t)=>{(0,u.u7)(o,()=>t((0,u.NK)()));const i=_(r);let s=this._pendingTilemapRequests[i];if(!s){s=x.fromDefinition(r,n).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=s,s.then(e,e)}s.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,d.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,n){n.level=e,n.row=t-t%this.size,n.col=i-i%this.size;const r=_(n);return this._tilemapCache.get(r)}get test(){}};(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],M.prototype,"layer",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],M.prototype,"minLOD",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],M.prototype,"maxLOD",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],M.prototype,"request",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],M.prototype,"size",void 0),M=n=(0,r.Cg)([(0,m.$K)("esri.layers.support.TilemapCache")],M)},77548(e,t,i){i.d(t,{Gh:()=>P,tk:()=>T,BR:()=>A,p2:()=>M,qd:()=>S,wI:()=>b,G$:()=>z,$x:()=>R,Ov:()=>w,cM:()=>p,UC:()=>f,W_:()=>x,Qz:()=>d,OP:()=>O,TU:()=>v,F2:()=>m,XX:()=>y,jy:()=>_});var n=i(70333),r=i(11254),s=i(7762),o=(i(84952),i(36563)),a=i(36708),l=i(4146);const c=new WeakMap;function h(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||h(t))},t=>c.set(e,t),a.pc),(0,o.hA)(()=>c.delete(e))]),c.get(e))}function u(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function p(e){return u(e,"knowledge-graph")&&"layers"in e}function f(e){return u(e,"knowledge-graph-sublayer")}function d(e){return u(e,"link-chart")&&"layers"in e}function m(e){return u(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function x(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function _(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return u(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!_(e))return;const i=t?.graphic,n=e.featureReduction;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function b(e,t){const i=n.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const o=`${e.slice(0,s)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function S(e){const t=new s.A;for(const i of e.allLayers.concat(e.allTables))h(i)||g(i)||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function R(e,t){return null}function z(e){return null}function O(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function P(e,t){if(!t||!O(e))return;const i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>r});var n=i(37955);function r(e,t){return new Promise((i,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,n.Oo)(e,"canplay",i)),t((0,n.Oo)(e,"error",r)))})}},73133(e,t,i){i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},7861(e,t,i){i.d(t,{L:()=>r});var n=i(11254);async function r(e,t){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>r,Y:()=>n});const n=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}},79677(e,t,i){i.d(t,{A:()=>p});var n,r=i(5482),s=i(25482),o=i(88930),a=i(91429),l=i(98623),c=i(10184),h=i(36005),u=i(43937);let p=class extends s.o{static{n=this}static get allTime(){return f}static get empty(){return d}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===n&&i===r}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,new c.A({value:1,unit:e}),t));let r=this.end;if(r){const i=(0,o.lL)(r,new c.A({value:1,unit:e}),t);r=r.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new n({start:i,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,a;return r>=t&&r<=i?o=r:t>=r&&t<=s&&(o=t),i>=r&&i<=s?a=i:s>=t&&s<=i&&(a=s),null==o||null==a||isNaN(o)||isNaN(a)?n.empty:new n({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,i=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new n,{start:s,end:a}=this;return null!=s&&(r.start=(0,o.S1)(s,e,t,i)),null!=a&&(r.end=(0,o.S1)(a,e,t,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,r.Cg)([(0,h.w)("end")],p.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],p.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,r.Cg)([(0,h.w)("start")],p.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],p.prototype,"writeStart",null),p=n=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],p);const f=new p,d=new p({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>h});var n=i(5482),r=i(69540),s=i(25482),o=i(88930),a=i(91429),l=i(73133),c=i(93223);let h=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],h.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),h=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],h)},32728(e,t,i){i.d(t,{YH:()=>a,hG:()=>s,nu:()=>l,wp:()=>o}),i(34727);var n=i(35522),r=i(51850);function s(e){const t=e[0]*e[0]+e[4]*e[4]+e[8]*e[8],i=e[1]*e[1]+e[5]*e[5]+e[9]*e[9],n=e[2]*e[2]+e[6]*e[6]+e[10]*e[10];return Math.sqrt(Math.max(t,i,n))}function o(e,t){const i=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),r=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),s=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,n.hZ)(e,i,r,s),e}function a(e,t,i){i=i||e;const r=(0,n.Om)(e,t);(0,n.hZ)(i,e[0]-r*t[0],e[1]-r*t[1],e[2]-r*t[2]),(0,n.S8)(i,i)}function l(e,t,i,s=(0,r.vt)()){const o=(0,n.Bw)(e),a=(0,n.Bw)(t),l=(0,n.Om)(e,t)/(o*a);if(l<.9999999999999999){const r=Math.acos(l),u=((1-i)*o+i*a)/Math.sin(r),p=u/o*Math.sin((1-i)*r),f=u/a*Math.sin(i*r);return(0,n.hs)(c,e,p),(0,n.hs)(h,t,f),(0,n.WQ)(s,c,h)}return(0,n.Cc)(s,e,t,i)}(0,r.vt)(),(0,r.vt)(),(0,r.vt)();const c=(0,r.vt)(),h=(0,r.vt)()},68747(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>b,generateCombinationsWorker:()=>M});var n=i(34727),r=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var s=i(49186);i(56507),i(86738),i(39829),i(82799),i(16930),i(34403),i(21325),i(91218),i(65708),i(49590),i(27749),i(39663),i(7817),i(10222),i(4576),i(63490),i(6800),i(87811);var o=i(53966),a=(i(44208),i(27921),i(5443));i(83276),i(19419),i(62369),i(87772),i(23281),i(90091),i(87378),i(22796),i(1555),i(87045),i(72802),i(7861);const l=[1920,1080],c={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=.001;new a.A({xmin:c.xmin+h,ymin:c.ymin+h,xmax:c.xmax-h,ymax:c.ymax-h,spatialReference:c.spatialReference}),(0,n.KJ)(Math.acos(.05));var u=i(5482),p=i(97768),f=i(61893),d=i(10107),m=i(64108);let g=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:n}=this;let s=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const a=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),s||(s=a.guessExtensionFromURI(t)),!s){try{s=await a.getDatasetFormat(t)}catch(e){o.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}s??="UNKNOWN FORMAT",this.datasetFormat=s;const l=(await Promise.all([i.e(7373),i.e(9235),i.e(3500),i.e(1003),i.e(233),i.e(561)]).then(i.bind(i,90561))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:s},customParameters:n??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,u.Cg)([(0,d.MZ)()],g.prototype,"_cache",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"autoLoad",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"customParameters",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"datasetFormat",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"url",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"layer",null),(0,u.Cg)([(0,d.MZ)()],g.prototype,"rotation",void 0),(0,u.Cg)([(0,d.MZ)()],g.prototype,"size",null),g=(0,u.Cg)([(0,m.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],g);var y=i(37955),v=i(38969);class w extends s.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const x=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let C=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,n.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,n.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,n.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let n=this.extension;if(n||(n=t(this.url)),!n||!x.has(n))throw new w("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:n??"UNKNOWN FORMAT"});return _.has(n)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:n,loadRaster:s}=await Promise.all([i.e(6860),i.e(7005),i.e(6754),i.e(2761),i.e(7634),i.e(8449)]).then(i.bind(i,21060)),o=await s(this.url,e);(0,r.Te)(e),this.imagePyramid=await n(o,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(7005),i.e(6754),i.e(2761),i.e(7634),i.e(8449)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media,this._size=[...l];const s=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:s,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(7005),i.e(6754),i.e(2761),i.e(7634),i.e(8449)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media;const s=n.mesh;return this._size=[n.media.width,n.media.height],{meshOrMeshes:s,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),n=(0,r.u7)(e?.signal,t.resolve),s="video"===this.type?document.createElement("video"):document.createElement("img");s.crossOrigin="anonymous",s.src=this.url;let o=null;const a="video"===this.type?(0,v.i)(s,this.addHandles):await new Promise((e,t)=>{o=[(0,y.on)(s,"error",e=>{t(e)}),(0,y.on)(s,"load",e)]}).finally(()=>{o?.forEach(e=>e.remove()),o=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{n?.remove()}(0,r.Te)(e);const c=s;if(!c)throw new w("unknown","Could not load media",{url:this.url});const{createImageSphere:h}=await Promise.all([i.e(6860),i.e(7005),i.e(6754),i.e(2761),i.e(7634),i.e(8449)]).then(i.bind(i,21060));(0,r.Te)(e);const u=await h({data:s,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:u}}};function M(e){return function(e,t){const{cameraPitch:i,cameraRoll:n,cameraLocation:r}=e,{x:s,y:o,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,h,,u,p]=t,f=[-u,0,u],d=[-p,0,p],m=[-c,0,c],g=[-h,0,h],y=[];for(const t of f)for(const r of d)for(const c of m)for(const h of m)for(const u of g){const p={...e};p.cameraPitch=i+t,p.cameraRoll=n+r,p.cameraLocation={x:s+c,y:o+h,z:a?a+u:0,spatialReference:{wkid:l.wkid}},y.push(p)}return y}(e.imageToWorldProps,e.accuracyParameters)}function b(e){return function(e,t){const{cameraHeading:i,cameraLocation:n}=e,{x:r,y:s,z:o,spatialReference:a}=n;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,h]=t,u=h>0?[-h,0,h]:[],p=l>0?[-l,0,l]:[],f=c>0?[-c,0,c]:[],d=[];for(const t of u)for(const n of p)for(const l of p)for(const c of f){const h={...e};h.cameraHeading=i+t,h.cameraLocation={x:r+n,y:s+l,z:o?o+c:0,spatialReference:{wkid:a.wkid}},d.push(h)}return d}(e.imageToWorldProps,e.accuracyParameters)}(0,u.Cg)([(0,d.MZ)()],C.prototype,"_size",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"autoLoad",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"cameraHeading",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"extension",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"horizonPitch",null),(0,u.Cg)([(0,d.MZ)()],C.prototype,"horizonRoll",null),(0,u.Cg)([(0,d.MZ)()],C.prototype,"horizonYaw",null),(0,u.Cg)([(0,d.MZ)()],C.prototype,"id",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"imagePyramid",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"matrix",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"size",null),(0,u.Cg)([(0,d.MZ)()],C.prototype,"type",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"uiStrings",void 0),(0,u.Cg)([(0,d.MZ)()],C.prototype,"url",void 0),C=(0,u.Cg)([(0,m.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],C),i(9093),i(91829),i(58083),i(79258),i(73354),i(28208),i(28735)},28208(e,t,i){i.d(t,{NU:()=>a,ZH:()=>s,vK:()=>o});var n=i(86738),r=i(16930);const s=new n.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator}),o=1e3,a=.3515625}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,2722,3931,5611,6061,6312,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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:()=>s,vt:()=>r,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:r,fromValues:function(t,e,n,r,s,a,i,o,u,h,c,l,f,m,g,x){return[t,e,n,r,s,a,i,o,u,h,c,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>b,Bw:()=>a,C:()=>i,Cc:()=>V,DI:()=>E,Il:()=>L,Io:()=>y,Ln:()=>d,Om:()=>I,Qr:()=>l,Re:()=>h,S8:()=>P,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>F,ei:()=>Z,fw:()=>w,g7:()=>O,gL:()=>_,hG:()=>M,hZ:()=>o,hs:()=>p,jb:()=>T,jk:()=>g,lo:()=>k,lw:()=>c,m3:()=>v,oW:()=>N,t2:()=>Y,tn:()=>f,uE:()=>B,xg:()=>z,ze:()=>C});var r=n(51850),s=n(34304);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function 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 f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(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 x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(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 y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function P(t,e){const n=e[0],r=e[1],s=e[2];let a=n*n+r*r+s*s;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,n){const r=e[0],s=e[1],a=e[2],i=n[0],o=n[1],u=n[2];return t[0]=s*u-a*o,t[1]=a*i-r*u,t[2]=r*o-s*i,t}function V(t,e,n,r){const s=e[0],a=e[1],i=e[2];return t[0]=s+r*(n[0]-s),t[1]=a+r*(n[1]-a),t[2]=i+r*(n[2]-i),t}function A(t,e,n){const r=e[0],s=e[1],a=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*a+n[12],t[1]=n[1]*r+n[5]*s+n[9]*a+n[13],t[2]=n[2]*r+n[6]*s+n[10]*a+n[14],t}function Z(t,e,n){const r=e[0],s=e[1],a=e[2];return t[0]=r*n[0]+s*n[3]+a*n[6],t[1]=r*n[1]+s*n[4]+a*n[7],t[2]=r*n[2]+s*n[5]+a*n[8],t}function _(t,e,n){return w(t,e,n[0],n[1],n[2],n[3])}function w(t,e,n,r,s,a){const i=e[0],o=e[1],u=e[2],h=r*u-s*o,c=s*i-n*u,l=n*o-r*i,f=r*l-s*c,m=s*h-n*l,g=n*c-r*h,x=2*a;return t[0]=i+h*x+2*f,t[1]=o+c*x+2*m,t[2]=u+l*x+2*g,t}function O(t,e){P(S,t),P(R,e);const n=I(S,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const S=(0,r.vt)(),R=(0,r.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function F(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-i)<=h*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-u)<=h*Math.max(1,Math.abs(a),Math.abs(u))}function N(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2];let i=r*r+s*s+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=s*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,X=c,G=l,z=y,k=M,L=a,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:O,bezier:function(t,e,n,r,s,a){const i=1-a,o=i*i,u=a*a,h=o*i,c=3*a*o,l=3*u*i,f=u*a;return t[0]=e[0]*h+n[0]*c+r[0]*l+s[0]*f,t[1]=e[1]*h+n[1]*c+r[1]*l+s[1]*f,t[2]=e[2]*h+n[2]*c+r[2]*l+s[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:i,cross:b,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],a=e[2],i=n[0],o=n[1],u=n[2],h=s*u-a*o,c=a*i-r*u,l=r*o-s*i,f=Math.sqrt(h*h+c*c+l*l);return t[0]=h/f,t[1]=c/f,t[2]=l/f,t},direction:N,dist:z,distance:y,div:G,divide:l,dot:I,equals:F,exactEquals:Y,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,s,a){const i=a*a,o=i*(2*a-3)+1,u=i*(a-2)+a,h=i*(a-1),c=i*(3-2*a);return t[0]=e[0]*o+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*o+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*o+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:L,length:a,lerp:V,max:x,min:g,mul:X,multiply:c,negate:C,normalize:P,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,a=2*n()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=a*e,t},rotateX:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[0],a[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),a[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),a[1]=s[1],a[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),a[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),a[2]=s[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:d,set:o,sign:m,sqrDist:k,sqrLen:B,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:Z,transformMat4:A,transformQuat:_,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>a,qK:()=>c});var r=n(34275);const s=16;function a(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=l;for(let r=0;r<e;r++)n+=o(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>b,ME:()=>E,MY:()=>V,NO:()=>C,Nh:()=>I,V2:()=>O,_s:()=>S,e6:()=>Y,gh:()=>P,tr:()=>N,uX:()=>p});var r=n(5482),s=n(69397),a=n(16930),i=(n(70328),n(19419)),o=n(60408),u=n(21325),h=n(513),c=n(50954),l=n(79567),f=n(52006),m=n(49663),g=n(46068),x=n(92722);class p{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:a,segmentCountBezier:i}=this,o=O(t,e,n,r,s,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,n+1)),o.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(n.subarray(0,e),0),o.segmentParams.set(r.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new d(this):[][Symbol.iterator]()}}class d{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=_(t),this._segments=new M(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class M{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=_(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],a=e[n++];return{b:[this.end,[t,r],[s,a]]}}const r=e[n++],s=e[n++],a=e[n++],i=e[n++],o=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===a)return{c:[this.end,[h,c]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[o,u],l,f,i,s,a]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(n,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:a,vertexM:o}=t,u=Z(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new A(t,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,l.e)(s,t,n),t=(0,f.yP)(n)}const[a,o,h,c]=s;e={xmin:a,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,a,i;t=r=1/0,a=i=-1/0;for(let e=0;e<n;++e){const n=s[2*e],o=s[2*e+1];t=Math.min(t,n),a=Math.max(a,n),r=Math.min(r,o),i=Math.max(i,o)}e={xmin:t,ymin:r,xmax:a,ymax:i,spatialReference:u}}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(o){let t=1/0,n=-1/0;for(const e of o)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,o.fT)(t)){r="point";const{x:s,y:a,z:i,m:o}=t,u=[s,a];null!=i&&u.push(i),null!=o&&u.push(o),n=[[u]],e=1}else(0,o.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=O(r,e,r.includes("point")?0:n.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:h,vertexM:c}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],a&&(h[g]=t[2]),i&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!a&&!i){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])l(t);return s}const x="polygon"===r,{partOffsets:p}=s;let d=0;if(!s.hasCurves()){for(const t of n){if(p[d++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,a||i)for(let n=0;n<e;++n)l(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return p[d]=g,s}function y(t){const e=M+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let M=0;for(const t of n){if(s.partOffsets[d++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];l(n);const a=g-1;(0,f.wY)(r)?(y(10),++s.segmentCountArc,M=S(n,r,s,a,M),n=r.a[0]):(0,f.DA)(r)?(y(10),++s.segmentCountArc,M=R(n,r,s,a,M),n=r.a[0]):(0,f.aO)(r)?(y(10),++s.segmentCountArc,M=Y(n,r,s,a,M),n=r.c[0]):(0,f.n1)(r)?(y(4),++s.segmentCountBezier,M=N(0,r,s,a,M),n=r.b[0]):n=r}x&&w(e,n)||l(n)}return s.partOffsets[d]=g,s}function P(t){const e=_(t),{vertexCount:n,partCount:r,hasZ:s,hasM:a}=t,i=Z(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:i}}let o=0;if("multipoint"===t.type){const t=[];for(;o<n;)t.push(e(o++));return{points:t,spatialReference:i,hasZ:s,hasM:a}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],a=new Array;for(;o<r;)a.push(e(o++));u&&a.length>0&&a.push(a[0]),n.push(a)}return u?{rings:n,hasZ:s,hasM:a,spatialReference:i}:{paths:n,hasZ:s,hasM:a,spatialReference:i}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:a,spatialReference:i}:{paths:[],curvePaths:h,hasZ:s,hasM:a,spatialReference:i}}function I(t,{lengths:e,coords:n,hasZ:r,hasM:s},a){const i=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?i:0);r??=!1,s??=!1;const h=O(t,u,i,r,s,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],a=e+t-Number(o);h.partOffsets[++f]=a;for(let t=e;t<a;++t)h.vertexXY[2*t]=n[l++],h.vertexXY[2*t+1]=n[l++],r&&(h.vertexZ[t]=n[l++]),s&&(h.vertexM[t]=n[l++]);o&&(l+=c)}return h}function b({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);a=Math.max(a,1);const c="polygon"===t;let l=0;for(let t=0;t<a;++t){const a=i?.[t+1]??e,f=h.coords.length;for(let t=l;t<a;++t)h.coords.push(n[2*t],n[2*t+1]),o&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=l;h.coords.push(n[2*t],n[2*t+1]),o&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-f)/h.stride),l=a}return"point"===t&&(h.lengths.length=0),h}function V(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const a=s.isCustomWkid()?0:s.getOldID();if(a<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:a,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function Z({spatialReference:t}){return t instanceof a.A?t.toJSON():t}function _({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,n)=>t===e[n])}function O(t,e,n,r,s,a,i,o){i??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),a&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function S(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){n[a]=4,r[a]=i;const[o,[u,h],c,l,f,m,x]=e.a;let p=4;l||(p|=1),c||(p|=2);const d=(0,g.SW)(t,e),[y,M]=(0,g.Uk)(d,.5);return s[i++]=p,s[i++]=m,s[i++]=x,s[i++]=f,s[i++]=u,s[i++]=h,s[i++]=d.u2-d.u1,s[i++]=d.u1,s[i++]=y,s[i++]=M,i}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){n[a]=4,r[a]=i;const o=(0,m.io)(t,e);return F(o,4,...(0,h.mq)(o,.5),s,i)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){return n[a]=4,r[a]=i,F((0,c.pM)(t,e),0,...e.c[1],s,i)}function F(t,e,n,r,s,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[a++]=e,s[a++]=c,s[a++]=1,s[a++]=0,s[a++]=i,s[a++]=o,s[a++]=h-u,s[a++]=u,s[a++]=n,s[a++]=r,a}function N(t,{b:[e,[n,r],[s,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},h,c){return i[h]=2,o[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=a,c}const T=1.61803,X=-1},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>d,fromPoint:()=>y,fromPolygon:()=>M,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>I,toGeometry:()=>P,toMultipoint:()=>b,toPoint:()=>V,toPolygon:()=>A,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),a=n(95213),i=n(88885),o=n(5443),u=n(48526),h=n(86738),c=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return d(t);case"polyline":return v(t);case"polygon":return M(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new a.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.M,n=new a.P,r=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,a=r.length;t<a;t++){const a=r[t];n.setXYCoords(a[0],a[1]),o&&n.setZ(a[2]??0),s&&n.setM(a[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,a=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,a=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,a=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return I(t,e);case s.G.enumMultiPoint:return b(t,e);case s.G.enumPolyline:return Z(t,e);case s.G.enumPolygon:return A(t,e)}return null}function I(t,e){if(t.isEmpty())return null;const n=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function b(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],o=new a.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,o);const n=[o.getX(),o.getY()];s&&n.push(o.getZ()),r&&n.push(o.getM()),i.push(n)}const h=new u.A({hasM:r,hasZ:s,points:i,spatialReference:e});return h.setCacheValue(m,t),h}function V(t,e){if(t instanceof r.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function A(t,e){if(t.isEmpty())return null;const n=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function Z(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>o,jh:()=>a,l5:()=>i});var r=n(34275),s=n(9093);function a(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function o(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>M,DC:()=>l,Ej:()=>m,Ie:()=>d,Jt:()=>y,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>P,vt:()=>a,w1:()=>h}),n(35522);var r=n(5443),s=(n(19419),n(4197));function a(t=P){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o[4]=s,o[5]=i,o}function o(t,e=a()){return function(t,e,n,r=a()){return p(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],a=t[1],i=t[2],o=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),a=Math.min(a,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),o=Math.max(o,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,a,i,o,u]=t;return e[0]=n,e[1]=r,e[2]=a,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=o,e[8]=a,e[9]=n,e[10]=o,e[11]=u,e[12]=i,e[13]=r,e[14]=a,e[15]=i,e[16]=r,e[17]=u,e[18]=i,e[19]=o,e[20]=a,e[21]=i,e[22]=o,e[23]=u,e}function h(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function d(t){return t?p(t,E):a(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function M(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];a()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const a=n-t,i=r-e;return new s([5],[t,e,a,0,0,i,-a,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],a=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),o=this.coords[n],u=this.coords[n+1];t+=-.5*(o-s)*(u+a),s=o,a=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,a=this.coords.slice(0,r*n);return t?(t.set(a),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1094,1550,1666,1948,2722,3931,5611,6061,6312,7992,8125,9169,9285],{15546(t,e,n){n.d(e,{a:()=>i,c:()=>o});var r=n(55537),s=n(83661);function o(t,e){if(!t.isEmpty())switch(t.getGeometryType()){case r.G.enumPolygon:return a(t);case r.G.enumPolyline:return h(t.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(t){const e=t.calculateLength2D();return 0===e?t.getStartXY():t.calculateWeightedCentroid2D().mul(1/e)}(t);case r.G.enumMultiPoint:return function(t){const e=new s.K(0),n=new s.K(0),r=t.getImpl(),o=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new s.P;for(let t=0;t<i;t++)o.queryPoint2D(2*t,a),e.add(a.x),n.add(a.y);const u=new s.P;return u.setCoords(e.getResult(),n.getResult()),u.divThis(i)}(t);case r.G.enumEnvelope:return t.getCenterXY();case r.G.enumPoint:return t.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(t,e){return a(t,e)}function a(t,e=-1){const n=new s.K(0),r=new s.K(0),o=t.getImpl();let i;const a=o.hasNonLinearSegments();let h;const f=o.getXY(0);if(-1===e){if(h=o.calculateArea2D(),0===h)return l(t);a&&(i=o.querySegmentIterator());for(let t=0,e=o.getPathCount();t<e;t++)u(f,o,t,n,r),a&&c(f,i,n,r)}else{if(h=o.calculateRingArea2D(e),0===h)return l(t,e);a&&(i=o.querySegmentIterator(),i.resetToPath(e)),u(f,o,e,n,r),a&&c(f,i,n,r)}const m=new s.P,g=new s.P;return m.setCoords(n.getResult(),r.getResult()),g.assign(m.mul(1/h).add(f)),g}function u(t,e,n,r,o){const i=e.getPathStart(n),a=e.getPathEnd(n);if(a-i<3)return;const u=e.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const h=new s.K(0),f=e.hasNonLinearSegments(),m=1/3,g=new s.P;for(let t=i+2;t<a;t++){u.queryPoint2D(2*t,g),g.subThis(c);const e=.5*g.crossProduct(l);f&&h.add(e);const n=m*e;r.add((l.x+g.x)*n),o.add((l.y+g.y)*n),l.setCoordsPoint2D(g)}const d=f?h.getResult():e.calculateRingArea2D(n),x=c.sub(t).mul(d);r.add(x.x),o.add(x.y)}function c(t,e,n,s){let o;for(e.nextPath()||(0,r.d)("centroid");null!==(o=e.nextCurve());){const e=o.calculateWeightedAreaCentroid2D(t);n.add(e.x),s.add(e.y)}}function l(t,e=-1){return h(t.getImpl(),e)}function h(t,e=-1){const n=-1===e?t.calculateLength2D():t.calculatePathLength2D(e);if(0===n)return function(t,e=-1){if(-1!==e)return t.getXY(t.getPathStart(e));const n=new s.K(0),r=new s.K(0);for(let e=0;e<t.getPathCount();++e){const s=t.getXY(t.getPathStart(e));n.add(s.x),r.add(s.y)}return s.P.construct(n.getResult(),r.getResult()).mul(1/t.getPathCount())}(t,e);const r=new s.K(0),o=new s.K(0),i=t.querySegmentIterator();for(-1!==e&&i.resetToPath(e);i.nextPath();){const n=i.getPathIndex(),s=t.getXY(t.getPathStart(n));for(;i.hasNextSegment();){const t=i.nextSegment(),e=t.calculateLength2D();if(0===e)continue;const n=t.calculateWeightedCentroid2D().sub(s.mul(e));r.add(n.x),o.add(n.y)}const a=s.mul(t.calculatePathLength2D(n));if(r.add(a.x),o.add(a.y),-1!==e)break}const a=new s.P;return a.setCoords(r.getResult(),o.getResult()),a.mul(1/n)}},61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},36633(t,e,n){n.d(e,{O:()=>f});var r=n(55537),s=n(79187),o=n(83661),i=n(15756);function a(){return u(new o.P,-1,Number.NaN)}function u(t,e,n){return{m_coordinate:t.clone(),m_vertexIndex:e,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(t,e,n=-1,a=-1){if(t.isEmpty())return 3;const u=t.getGeometryType();if((0,r.f)(u))return function(t,e,n,s){if(n>=0||s>=0)return(0,r.a)("");if(t.isDegenerate(0))return t.getStartXY().equals(e)?2:3;if(!t.isCurve()){const n=o.P.orientationRobust(e,t.getStartXY(),t.getEndXY());return n<0?1:n>0?0:2}const i=t.getClosestCoordinate(e,!1),a=t.getTangent(i),u=t.getCoord2D(i),c=o.P.orientationRobust(e,u,u.add(a));return c<0?1:c>0?0:2}(t,e,n,a);if(u===r.G.enumPolygon)return function(t,e,n,o){(n>=0||o>=0)&&(0,r.a)("");const a=new s.Envelope2D;t.queryEnvelope(a);const u=(0,i.l)(t,e,0);return 0===u?0:1===u?1:2}(t,e,n,a);if(u===r.G.enumPolyline)return function(t,e,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.a)("");const i=t.querySegmentIterator();if(n<0){let t=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(e,!1),c=a.getCoord2D(u),l=o.P.sqrDistance(c,e);l<t?(r=1,n=i.getStartPointIndex(),s=i.getPathIndex(),t=l):l===t&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,s),l(i.nextSegment(),e)}const a=function(t,e,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(t,e,n){for(t.resetToVertex(e,n);t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();for(t.resetToVertex(e,n);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,n,r),-1!==s.i1){e.resetToVertex(s.i1,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),i=n.getCoord2D(r),a=o.P.sqrDistance(i,t);{const e=i.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight1=e.crossProduct(r)<0}if(s.i2=function(t,e){for(t.resetToVertex(e,-1),t.nextSegment();t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,t)>a)s.i2=-1;else{const e=i.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(t,e){for(t.resetToVertex(e,-1);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2)){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,t)>a)s.i2=-1;else{const e=i.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0;const o=s.i1;s.i1=s.i2,s.i2=o;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(e,i,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const t=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const e=i.nextSegment().getTangent(0);return t.crossProduct(e)>=0?1:0}}return i.resetToVertex(n,s),l(i.nextSegment(),e)}(t,e,n,a);if(u===r.G.enumEnvelope){const n=new s.Envelope2D;return t.queryEnvelope(n),n.contains(e)?n.containsExclusive(e)?1:2:0}return 3}var h=n(95213);class f{getOperatorType(){return 10500}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}getNearestCoordinate(t,e,n,s){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(t,e);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(t,e,n,s);default:(0,r.t)("")}}getNearestVertex(t,e){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(t,e);default:(0,r.t)("")}}getNearestVertices(t,e,n,s){if(0===s&&(0,r.a)(""),e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return[];switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(t,e,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(t,e,n,s);default:(0,r.t)("")}}multiPathGetNearestCoordinate(t,e,n,a){if(t.getGeometryType()===r.G.enumPolygon&&n){const n=new s.Envelope2D;t.queryEnvelope(n);const r=(0,h.d)(null,n,!1);let o;if(o=(0,i.l)(t,e,a?0:r),0!==o){const t=u(e,-1,0);return a&&(t.m_bRightSide=!0),t}}const c=t.querySegmentIterator(),f=new o.P;let m=-1,g=-1,d=Number.MAX_VALUE,x=0;for(;c.nextPath();)for(;c.hasNextSegment();){const t=c.nextSegment(),n=t.getClosestCoordinate(e,!1),r=t.getCoord2D(n),s=o.P.sqrDistance(r,e);s<d?(x=1,f.assign(r),m=c.getStartPointIndex(),g=c.getPathIndex(),d=s):s===d&&x++}-1===m&&(0,r.a)("");const y=u(f,m,Math.sqrt(d));if(a)if(t.getGeometryType()!==r.G.enumPolygon){let n=!1;if(x>1){const r=l(t,e,m,g);n=0!==r&&3!==r}else c.resetToVertex(m,g),n=0!==l(c.nextSegment(),e);y.m_bRightSide=n}else n||0!==(0,i.l)(t,e,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(t,e){const n=t.getXY();return u(n,0,o.P.distance(n,e))}multiVertexGetNearestVertex(t,e){const n=t.getAttributeStreamRef(0),r=t.getPointCount();let s=-1;const i=new o.P;let a=Number.MAX_VALUE;const c=new o.P;for(let t=0;t<r;t++){n.queryPoint2D(2*t,c);const r=o.P.sqrDistance(c,e);r<a&&(i.assign(c),s=t,a=r)}return u(i,s,Math.sqrt(a))}pointGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const r=n*n,i=t.getXY(),a=o.P.sqrDistance(i,e);a<=r&&s.push(u(i,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const i=t.getAttributeStreamRef(0),a=t.getPointCount();s.length=r+1;const c=n*n;for(let t=0;t<a;t++){const n=i.read(2*t),r=i.read(2*t+1),a=e.x-n,l=e.y-r,h=a*a+l*l;h<=c&&s.push(u(o.P.construct(n,r),t,Math.sqrt(h)))}s.sort((t,e)=>t.m_distance-e.m_distance)}return s.slice(0,r)}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},5913(t,e,n){n.d(e,{e:()=>o,l:()=>a});var r=n(54945),s=n(78125);function o(t){return(0,s.toPoint)((0,r.g7)((0,s.fromGeometry)(t)),(0,s.getSpatialReference)(t))}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(t){const e=t.map(s.fromGeometry),n=(0,s.getSpatialReference)(t);return(0,r.zo)(e).map(t=>(0,s.toPoint)(t,n))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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:()=>s,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:s,create:r,fromValues:function(t,e,n,r,s,o,i,a,u,c,l,h,f,m,g,d){return[t,e,n,r,s,o,i,a,u,c,l,h,f,m,g,d]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(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 u(){return[0,0,0]}function c(){return o(1,1,1)}function l(){return o(1,0,0)}function h(){return o(0,1,0)}function f(){return o(0,0,1)}n.d(e,{CN:()=>i,Cb:()=>y,Cw:()=>d,JP:()=>x,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>o,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=c(),d=l(),x=h(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:d,UNIT_Y:x,UNIT_Z:y,ZEROS:m,clone:s,create:r,freeze:i,fromArray:a,fromValues:o,ones:c,unitX:l,unitY:h,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>o,C:()=>i,Cc:()=>w,DI:()=>C,Il:()=>L,Io:()=>p,Ln:()=>y,Om:()=>b,Qr:()=>h,Re:()=>c,S8:()=>N,T9:()=>d,WQ:()=>u,Z0:()=>E,_S:()=>m,aI:()=>D,ei:()=>_,fw:()=>V,g7:()=>G,gL:()=>A,hG:()=>P,hZ:()=>a,hs:()=>x,jb:()=>Y,jk:()=>g,lo:()=>F,lw:()=>l,m3:()=>M,oW:()=>O,t2:()=>T,tn:()=>f,uE:()=>z,xg:()=>q,ze:()=>v});var r=n(51850),s=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 i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function 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 l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(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 d(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 x(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 p(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function P(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function M(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function N(t,e){const n=e[0],r=e[1],s=e[2];let o=n*n+r*r+s*s;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 b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],s=e[1],o=e[2],i=n[0],a=n[1],u=n[2];return t[0]=s*u-o*a,t[1]=o*i-r*u,t[2]=r*a-s*i,t}function w(t,e,n,r){const s=e[0],o=e[1],i=e[2];return t[0]=s+r*(n[0]-s),t[1]=o+r*(n[1]-o),t[2]=i+r*(n[2]-i),t}function E(t,e,n){const r=e[0],s=e[1],o=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*o+n[12],t[1]=n[1]*r+n[5]*s+n[9]*o+n[13],t[2]=n[2]*r+n[6]*s+n[10]*o+n[14],t}function _(t,e,n){const r=e[0],s=e[1],o=e[2];return t[0]=r*n[0]+s*n[3]+o*n[6],t[1]=r*n[1]+s*n[4]+o*n[7],t[2]=r*n[2]+s*n[5]+o*n[8],t}function A(t,e,n){return V(t,e,n[0],n[1],n[2],n[3])}function V(t,e,n,r,s,o){const i=e[0],a=e[1],u=e[2],c=r*u-s*a,l=s*i-n*u,h=n*a-r*i,f=r*h-s*l,m=s*c-n*h,g=n*l-r*c,d=2*o;return t[0]=i+c*d+2*f,t[1]=a+l*d+2*m,t[2]=u+h*d+2*g,t}function G(t,e){N(I,t),N(R,e);const n=b(I,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const I=(0,r.vt)(),R=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function D(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],i=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=c*Math.max(1,Math.abs(o),Math.abs(u))}function O(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],o=n[2]-e[2];let i=r*r+s*s+o*o;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=s*i,t[2]=o*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=c,X=l,Z=h,q=p,F=P,L=o,z=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:G,bezier:function(t,e,n,r,s,o){const i=1-o,a=i*i,u=o*o,c=a*i,l=3*o*a,h=3*u*i,f=u*o;return t[0]=e[0]*c+n[0]*l+r[0]*h+s[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+s[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+s[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:i,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],o=e[2],i=n[0],a=n[1],u=n[2],c=s*u-o*a,l=o*i-r*u,h=r*a-s*i,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:O,dist:q,distance:p,div:Z,divide:h,dot:b,equals:D,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,o){const i=o*o,a=i*(2*o-3)+1,u=i*(o-2)+o,c=i*(o-1),l=i*(3-2*o);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*l,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*l,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*l,t},inverse:C,len:L,length:o,lerp:w,max:d,min:g,mul:X,multiply:l,negate:v,normalize:N,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,o=2*n()-1,i=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=o*e,t},rotateX:function(t,e,n,r){const s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[0],o[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),o[2]=s[1]*Math.sin(r)+s[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 s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),o[1]=s[1],o[2]=s[2]*Math.cos(r)-s[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 s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),o[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),o[2]=s[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:x,scaleAndAdd:y,set:a,sign:m,sqrDist:F,sqrLen:z,squaredDistance:P,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:c,transformMat3:_,transformMat4:E,transformQuat:A,transformQuatValues:V},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=h;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return h+t.length*e}const l=32,h=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>S,ME:()=>C,MY:()=>w,NO:()=>v,Nh:()=>b,V2:()=>G,_s:()=>I,e6:()=>T,gh:()=>N,tr:()=>O,uX:()=>x});var r=n(5482),s=n(69397),o=n(16930),i=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),l=n(50954),h=n(79567),f=n(52006),m=n(49663),g=n(46068),d=n(92722);class x{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:l,segmentParams:h,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=l,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=G(t,e,n,r,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:l}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new p(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(t){this.geometry=t,this.index=-1,this._readVertex=A(t),this._segments=new P(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class P{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],o=e[n++];return{b:[this.end,[t,r],[s,o]]}}const r=e[n++],s=e[n++],o=e[n++],i=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],l=e[n++];if(!Boolean(4&r)&&1===o)return{c:[this.end,[c,l]]};const h=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],h,f,i,s,o]}}}function v(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(n,new E(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=t,u=_(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new E(t,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,h.e)(s,t,n),t=(0,f.yP)(n)}const[o,a,c,l]=s;e={xmin:o,ymin:a,xmax:c,ymax:l,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,o,i;t=r=1/0,o=i=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),o=Math.max(o,n),r=Math.min(r,a),i=Math.max(i,a)}e={xmin:t,ymin:r,xmax:o,ymax:i,spatialReference:u}}if(o){let t=1/0,n=-1/0;for(const e of o)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function C(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:o,z:i,m:a}=t,u=[s,o];null!=i&&u.push(i),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,V(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=G(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:o,hasM:i,vertexXY:u,vertexZ:c,vertexM:l}=s;function h(t){u[2*g]=t[0],u[2*g+1]=t[1],o&&(c[g]=t[2]),i&&(l[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!o&&!i){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])h(t);return s}const d="polygon"===r,{partOffsets:x}=s;let y=0;if(!s.hasCurves()){for(const t of n){if(x[y++]=g,0===t.length)continue;let e=t.length;if(d&&V(t[0],t.at(-1))&&--e,o||i)for(let n=0;n<e;++n)h(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return x[y]=g,s}function p(t){const e=P+t;if(e<=(s.segmentParams?.length??0))return;let n=e*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let P=0;for(const t of n){if(s.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];h(n);const o=g-1;(0,f.wY)(r)?(p(10),++s.segmentCountArc,P=I(n,r,s,o,P),n=r.a[0]):(0,f.DA)(r)?(p(10),++s.segmentCountArc,P=R(n,r,s,o,P),n=r.a[0]):(0,f.aO)(r)?(p(10),++s.segmentCountArc,P=T(n,r,s,o,P),n=r.c[0]):(0,f.n1)(r)?(p(4),++s.segmentCountBezier,P=O(0,r,s,o,P),n=r.b[0]):n=r}d&&V(e,n)||h(n)}return s.partOffsets[y]=g,s}function N(t){const e=A(t),{vertexCount:n,partCount:r,hasZ:s,hasM:o}=t,i=_(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:i}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:i,hasZ:s,hasM:o}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],o=new Array;for(;a<r;)o.push(e(a++));u&&o.length>0&&o.push(o[0]),n.push(o)}return u?{rings:n,hasZ:s,hasM:o,spatialReference:i}:{paths:n,hasZ:s,hasM:o,spatialReference:i}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:o,spatialReference:i}}function b(t,{lengths:e,coords:n,hasZ:r,hasM:s},o){const i=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?i:0);r??=!1,s??=!1;const c=G(t,u,i,r,s,!1,0,0);if(c.spatialReference=o??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const l=2+Number(r)+Number(s);let h=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],o=e+t-Number(a);c.partOffsets[++f]=o;for(let t=e;t<o;++t)c.vertexXY[2*t]=n[h++],c.vertexXY[2*t+1]=n[h++],r&&(c.vertexZ[t]=n[h++]),s&&(c.vertexM[t]=n[h++]);a&&(h+=l)}return c}function S({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:u}){const c=new d.A([],[],a,u);o=Math.max(o,1);const l="polygon"===t;let h=0;for(let t=0;t<o;++t){const o=i?.[t+1]??e,f=c.coords.length;for(let t=h;t<o;++t)c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(l){const t=h;c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),h=o}return"point"===t&&(c.lengths.length=0),c}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:o,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class E{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function _({spatialReference:t}){return t instanceof o.A?t.toJSON():t}function A({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function V(t,e){return t.every((t,n)=>t===e[n])}function G(t,e,n,r,s,o,i,a){i??=0,a??=0;const u=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),o&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(c);let h=0;return u.vertexXY=new Float64Array(l,h,2*e),h+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(l,h,e),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(l,h,e),h+=u.vertexM.byteLength),o&&(u.segmentParams=new Float64Array(l,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,h,e),u.segmentIndices.fill(X),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,h,n+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,h,n+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),o&&(u.segmentFlags=new Int8Array(l,h,e),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function I(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const[a,[u,c],l,h,f,m,d]=e.a;let x=4;h||(x|=1),l||(x|=2);const y=(0,g.SW)(t,e),[p,P]=(0,g.Uk)(y,.5);return s[i++]=x,s[i++]=m,s[i++]=d,s[i++]=f,s[i++]=u,s[i++]=c,s[i++]=y.u2-y.u1,s[i++]=y.u1,s[i++]=p,s[i++]=P,i}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const a=(0,m.io)(t,e);return D(a,4,...(0,c.mq)(a,.5),s,i)}function T(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){return n[o]=4,r[o]=i,D((0,l.pM)(t,e),0,...e.c[1],s,i)}function D(t,e,n,r,s,o){const{cx:i,cy:a,thetaStart:u,thetaEnd:c,radius:l}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[o++]=e,s[o++]=l,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=c-u,s[o++]=u,s[o++]=n,s[o++]=r,o}function O(t,{b:[e,[n,r],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:u},c,l){return i[c]=2,a[c]=l,u[l++]=n,u[l++]=r,u[l++]=s,u[l++]=o,l}const Y=1.61803,X=-1},54945(t,e,n){n.d(e,{fz:()=>y,g7:()=>d,zo:()=>x});var r=n(76061),s=n(61691),o=n(55537),i=n(95213),a=n(88885),u=n(79187),c=n(83661),l=n(15756),h=n(15546),f=n(36633);class m extends s.G{progress_(){}tock(){return!0}getRank(){return 1}constructor(t,e){super(),this.m_index=-1,this.m_progressCounter=0,this.m_progressTracker=e,this.m_inputGeoms=t}next(){const t=this.m_inputGeoms.next();return t?((0,o.c)(t),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(t)):null}getGeometryID(){return this.m_index}labelPoint(t){if(null===t&&(0,o.a)("null pointer is not allowed"),t.getGeometryType()===o.G.enumPoint)return t;if(t.isEmpty())return new i.P({vd:t.getDescription()});switch(t.getGeometryType()){case o.G.enumPolygon:return this.labelPointPolygon(t);case o.G.enumPolyline:return this.labelPointPolyline(t);case o.G.enumMultiPoint:return this.labelPointMultiPoint(t);case o.G.enumEnvelope:return this.labelPointEnvelope(t);default:(0,o.a)("geometry is not supported")}}labelPointPolygon(t){const e=new u.Envelope2D;t.queryEnvelope(e);const n=(0,i.c)(null,e,!0).total();let r=null,s=t;if(t.hasNonLinearSegments()){const e=new a.P({copy:t}),i=(0,l.aw)(e,.25*n,n);(0,o.g)(i!==t),r=i,s=r}let m=0,g=0;for(let t=0,e=s.getPathCount();t<e;++t){const e=Math.abs(s.calculateRingArea2D(t));e>g&&(g=e,m=t)}const d=new c.P;if(Math.abs(g)<=2*n*n?d.setNAN():d.assign((0,h.a)(s,m)),Number.isNaN(d.x)){const t=new u.Envelope2D;return s.queryPathEnvelope(m,t),new i.P({pt:t.getCenter()})}if(s.getPointCount()<4)return new i.P({x:d.x,y:d.y});const x=c.P.getNAN(),y=[x.clone(),x.clone(),x.clone(),x.clone()],p=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],P=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let M=!1,v=(new f.O).getNearestCoordinate(s,d,!0,!1);if(0===v.m_distance&&(M=!0,y[0]=d,v=(new f.O).getNearestCoordinate(s,d,!1,!1),v.m_distance>.25*e.minDimension()*1.66666666))return new i.P({x:d.x,y:d.y});p[0]=v.m_distance,P[0]=0;const C=new c.P;let N=!1,b=.25,S=-1;const w=new u.Envelope2D;s.queryPathEnvelope(m,w);do{let t=Number.NaN;if(y[1]=this.calculateParacentroid_(s,(0,c.q)(w.xmin,w.xmax,b),n),y[1].isNAN()||(v=(new f.O).getNearestCoordinate(s,y[1],!1,!1),t=v.m_distance),t>n&&1===(0,l.l)(s,y[1],n))N=!0,p[1]=t,P[1]=c.P.sqrDistance(y[1],d);else if(t>S&&(S=t,C.setCoordsPoint2D(y[1])),b-=.01,b<.1){if(!(S>=0))break;N=!0,p[1]=S,y[1]=C,P[1]=c.P.sqrDistance(y[1],d)}}while(!N);N=!1,b=.5,S=-1;let E=.01,_=1;do{let t=Number.NaN;if(y[2]=this.calculateParacentroid_(s,(0,c.q)(w.xmin,w.xmax,b),n),y[2].isNAN()||(v=(new f.O).getNearestCoordinate(s,y[2],!1,!1),t=v.m_distance),t>n&&1===(0,l.l)(s,y[2],n))N=!0,p[2]=t,P[2]=c.P.sqrDistance(y[2],d);else if(t>S&&(S=t,C.setCoordsPoint2D(y[2])),b=.5+E*_,E+=.01,_*=-1,b<.3||b>.7){if(!(S>=0))break;N=!0,p[2]=S,y[2]=C,P[2]=c.P.sqrDistance(y[2],d)}}while(!N);N=!1,b=.75,S=-1;do{let t=Number.NaN;if(y[3]=this.calculateParacentroid_(s,(0,c.q)(w.xmin,w.xmax,b),n),y[3].isNAN()||(v=(new f.O).getNearestCoordinate(s,y[3],!1,!1),t=v.m_distance),t>n&&1===(0,l.l)(s,y[3],n))N=!0,p[3]=t,P[3]=c.P.sqrDistance(y[3],d);else if(t>S&&(S=t,C.setCoordsPoint2D(y[3])),b+=.01,b>.9){if(!(S>=0))break;N=!0,p[3]=S,y[3]=C,P[3]=c.P.sqrDistance(y[3],d)}}while(!N);const A=[0,1,2,3],V=M?0:1;for(let t=V;t<4;t++)for(let t=V;t<3;t++){const e=P[t],n=P[t+1];if((0,c.r)(e,n)>0){const r=A[t];A[t]=A[t+1],A[t+1]=r,P[t]=n,P[t+1]=e}}let G=V,I=0,R=0;for(let t=V;t<4;t++){switch(t){case 0:R=2*p[A[t]];break;case 1:R=1.66666666*p[A[t]];break;case 2:R=1.33333333*p[A[t]];break;case 3:R=p[A[t]]}R>I&&(I=R,G=A[t])}return(0,o.g)(!y[G].isNAN()),new i.P({x:y[G].x,y:y[G].y})}labelPointPolyline(t){const e=new c.P;if(t.getPointCount()>2*t.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let e=0,s=t.getPathCount();e<s;e++)if(t.getPathSize(e)>2){const s=t.calculatePathLength2D(e);s>r&&(r=s,n=e)}const s=t.getPathStart(n),o=t.getPathEnd(n),i=Math.trunc((s+o)/2);e.assign(t.getXY(i))}else{let n=-Number.MAX_VALUE;const r=t.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment(),s=t.calculateLength2D();s>n&&(n=s,e.assign(t.getCoord2D(t.lengthToT(.5*s))))}}return new i.P({x:e.x,y:e.y})}labelPointMultiPoint(t){const e=new u.Envelope2D;t.queryEnvelope(e);const n=e.getCenter(),r=(new f.O).getNearestCoordinate(t,n,!1,!1).m_coordinate;return new i.P({x:r.x,y:r.y})}labelPointEnvelope(t){const e=t.getCenterXY();return new i.P({x:e.x,y:e.y})}calculateParacentroid_(t,e,n){const r=new u.Envelope2D;t.queryEnvelope(r);const s=new c.P(e,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,h=!1,f=!1;const m=new a.L;m.setStartXYCoords(s.x,r.ymin-1),m.setEndXYCoords(s.x,r.ymax+1);const g=new u.Envelope2D,d=new c.P,x=new c.P,y=(0,c.m)(c.P,2),p=t.querySegmentIterator();for(;p.nextPath();)for(;p.hasNextSegment();){const t=p.nextSegment();if(t.queryEnvelope(g),(0,o.g)(t.isMonotoneQuickAndDirty()),d.setCoordsPoint2D(m.getStartXY()),x.setCoordsPoint2D(m.getEndXY()),0===g.clipLine(d,x))continue;if(1!==m.intersect(t,y,null,null,n))continue;const e=y[0].y;i>l?e<i&&(i=e,h=!0):e<l&&(l=e,f=!0)}return h&&f?s.y=(i+l)/2:s.setNAN(),s}}const g=new class{getOperatorType(){return 10203}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e){return new m(t,e)}execute(t,e){return new m(null,e).labelPoint(t)}};function d(t){return g.execute(t,null)}function x(t){const e=g.executeMany(new r.S(t),null);return Array.from(e)}function y(){return g.supportsCurves()}},91421(t,e,n){n.d(e,{execute:()=>r.e}),n(54945),n(78125);var r=n(5913)},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>x,fromGeometry:()=>d,fromMultipoint:()=>y,fromPoint:()=>p,fromPolygon:()=>P,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>v,fromSpatialReference:()=>C,getSpatialReference:()=>g,toExtent:()=>b,toGeometry:()=>N,toMultipoint:()=>S,toPoint:()=>w,toPolygon:()=>E,toPolyline:()=>_});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function d(t){switch(t.type){case"point":return p(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return P(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new o.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new i.M,n=new o.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,o=r.length;t<o;t++){const o=r[t];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function p(t){if(!t.getCacheValue(m)){const e=new o.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function P(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,o=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,o)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,o)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,o)}return t.getCacheValue(m)}function C(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function N(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return w(t,e);case s.G.enumEnvelope:return b(t,e);case s.G.enumMultiPoint:return S(t,e);case s.G.enumPolyline:return _(t,e);case s.G.enumPolygon:return E(t,e)}return null}function b(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function S(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:e});return c.setCacheValue(m,t),c}function w(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function E(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function _(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>o,l5:()=>i});var r=n(34275),s=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>P,DC:()=>h,Ej:()=>m,Ie:()=>y,Jt:()=>p,Ne:()=>g,RF:()=>l,aI:()=>v,fA:()=>i,gE:()=>u,hZ:()=>x,iT:()=>f,is:()=>M,qv:()=>C,vI:()=>d,vY:()=>a,v_:()=>N,vt:()=>o,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function o(t=N){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,a=o()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(t,e=o()){return function(t,e,n,r=o()){return x(r,C),function(t,e,n=0,r=e.length/3){let s=t[0],o=t[1],i=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,o,i,a,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=o,e[9]=n,e[10]=a,e[11]=u,e[12]=i,e[13]=r,e[14]=o,e[15]=i,e[16]=r,e[17]=u,e[18]=i,e[19]=a,e[20]=o,e[21]=i,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function d(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?x(t,C):o(C)}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function P(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function v(t,e,n){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];o()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const o=n-t,i=r-e;return new s([5],[t,e,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],o=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+o),s=a,o=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return t?(t.set(o),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6343],{66395(t,e,s){s.d(e,{A:()=>c});var r=s(66131),n=s(6800),o=s(85935),a=s(78878),i=s(91075),l=s(54218);function u(t,e,s=!1,r=!1){if(null==t)return null;if((0,l.Et)(t)||(0,l.Lm)(t)||(0,l.Kg)(t)||(0,a.e)(t)||(0,a.f)(t)||(0,a.g)(t))return t;if((0,l.cy)(t)){const n=[];for(const o of t)n.push(u(o,e,s,r));return n}if(r&&(0,a.h)(t))return t;const n=new c;n.immutable=!1;for(const[o,a]of Object.entries(t))void 0!==a&&n.setField(o,u(a,e,s,r));return n.immutable=s,n}class c{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof c?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static containerEntry(t,e){return new c({__proto__:null,key:t,value:e})}static textFormatting(){const t=new c({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});return t.immutable=!1,t}field(t){const e=t.toLowerCase(),s=this.attributes[t];if(void 0!==s)return s;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$(null,"FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$(null,"Immutable",null);if((0,a.i)(e))throw new o.D$(null,"NoFunctionInDictionary",null);const s=t.toLowerCase();if(e instanceof Date&&(e=r.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===s)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$(null,"Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}values(){return this.keys().map(t=>this.attributes[t])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,a.c)(this.attributes,{useNumbersForDates:t})}static convertObjectToArcadeDictionary(t,e,s=!0,r=!1){const n=new c;n.immutable=!1;for(const o in t){const a=t[o];void 0!==a&&n.setField(o.toString(),u(a,e,s,r))}return n.immutable=s,n}static convertJsonToArcade(t,e,s=!1,r=!1){return u(t,e,s,r)}castAsJson(t=null){const e=Object.create(null);for(let s in this.attributes){const r=this.attributes[s];void 0!==r&&(t?.keyTranslate&&(s=t.keyTranslate(s)),e[s]=(0,a.a)(r,t))}return e}async castDictionaryValueAsJsonAsync(t,e,s,r=null,n){const o=await(0,a.b)(s,r,n);return t[e]=o,o}async castAsJsonAsync(t=null,e=null){const s=Object.create(null),n=[];for(let o in this.attributes){const l=this.attributes[o];e?.keyTranslate&&(o=e.keyTranslate(o)),void 0!==l&&((0,a.d)(l)||l instanceof i.A||l instanceof r.lY?s[o]=(0,a.a)(l,e):n.push(this.castDictionaryValueAsJsonAsync(s,o,l,t,e)))}return n.length>0&&await Promise.all(n),s}deepClone(){const t=new c;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,n.G)(this.field(e)));return t}}},48938(t,e,s){s.d(e,{X:()=>n,_:()=>o});var r=s(85935);function n(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new r.D$(null,"InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1})},76343(t,e,s){s.r(e),s.d(e,{BatchTranslationServiceFactory:()=>r.B,PortalTranslationService:()=>r.P,getTranslateParametersKey:()=>r.g,registerFunctions:()=>r.r}),s(48938),s(66395),s(85935),s(78878),s(49186),s(53966),s(20655),s(45475),s(67090),s(62791),s(14942);var r=s(3367)},3367(t,e,s){s.d(e,{A:()=>C,B:()=>_,P:()=>f,g:()=>w,r:()=>v});var r=s(48938),n=s(66395),o=s(85935),a=s(78878),i=s(49186),l=s(53966),u=s(91869),c=s(20655),h=s(45475),d=s(67090),p=s(62791),g=s(14942),y=s(54218);class f{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const s=e.url+e.translateUtility;try{return t.requestSource??="arcade",{success:!0,results:(await(0,h.T)(s,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof i.A)&&this._debugLog(`TranslateText error: ${t.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class m{constructor(t,e,s){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=s,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let s=0;for(const t of e)s+=t.length;if((s+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:e,text:s}of t)(0,u.tE)(this._normalizedContents,s,()=>[]).push({batchIdx:r,key:e});return this._requests.push(t),this._contentsTotalSize+=s,r}async send(t){const e=[],s=[];let r=0;for(const[t,n]of this._normalizedContents)e.push(new d.A({key:String(r++),text:t})),s.push(n);const n=new p.A(this._parameters);n.contents=e;const o=await t.translate(n);if(!o.success)return Array.from(this._requests,()=>o);const a=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const r of s[e])a[r.batchIdx].results.push({...t,key:r.key})}return a}}function w(t){const e=[...new Set(t.to)].sort(),s=t.from??null,r=t.portalUrl,n=t.translator,o=t.apiKey??null;return JSON.stringify([e,s,r,n,o])}async function b(t,e,s){try{return(await t.yieldFor(s))[e]}catch{return{success:!1}}}class _{constructor(t,e,{maxTotalContentSize:s=5e4,maxContentsLength:r=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=s,this._maxContentsLength=r}create(t){return{translate:async e=>{const s=w(e),{contents:r,to:n,from:o,translator:a,portalUrl:i,apiKey:l}=e;if(null==n)return{success:!1};if(null==r||r.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(s);if(null!=u){const e=u.data.tryAdd(r);if(null!=e)return await b(t,e,u);u.send()}const c=new m({to:n,from:o,translator:a,portalUrl:i,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),h=c.tryAdd(r);if(null!=h){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(s,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(s)===t&&this._openBatches.delete(s)}});return await b(t,h,e)}return await this._service.translate(e)}}}}function v(t){"async"===t.mode&&(t.functions[(0,r.X)("TranslateText")]=function(e,s){return t.standardFunctionAsync(e,s,async(t,e,s)=>{if((0,a.B)(s,2,3,t,e),!(0,y.Kg)(s[0])&&!(0,y.cy)(s[0])&&!(0,a.j)(s[0]))throw new o.D$(t,"InvalidParameter",e);const r=(0,a.N)(s[0]);if(!(0,y.Kg)(s[1])&&!(0,y.cy)(s[1])&&!(0,a.j)(s[1]))throw new o.D$(t,"InvalidParameter",e);const i=(0,a.N)(s[1]);let l=null;if(s.length>=3){if(!(0,y.Kg)(s[2]))throw new o.D$(t,"InvalidParameter",e);l=s[2]}const u=r.map((t,e)=>new d.A({key:String(e),text:t})),h=t.services?.portal??c.A.getDefault(),m=new p.A({to:i,contents:u,from:l,portalUrl:h.restUrl.replace(/\/sharing\/rest$/,"")}),b=new Map;let _=null;if(null!=t.lrucache){const e=t.lrucache;_??=w(m),m.contents=m.contents?.filter(t=>{const s=e.getCachedTranslation(_,t.text);return null==s||(b.set(t.key,{...s,key:t.key,text:t.text}),!1)})}if(m.contents?.length){const e=t.services?.translation??new f(h,t.console),s=await e.translate(m);if(!s.success)return new n.A({__proto__:null,success:!1});for(const e of s.results){const s=m.contents?.find(t=>t.key===e.key)?.text;if(null==s)throw new o.D$(null,"NeverReach",null);b.set(e.key,e),null!=t.lrucache&&(_??=w(m),t.lrucache.setCachedTranslation(_,s,{detectedLanguage:e.detectedLanguage,translation:e.translation}))}}const v=Array.from(u,e=>{const s=g.A.fromJSON(b.get(e.key));if(null==s)throw new o.D$(null,"NeverReach",null);return s.text=e.text,n.A.convertJsonToArcade(s.toJSON(),t.timeZone??"system",!0)});return new n.A({__proto__:null,success:!0,results:v})})})}const C=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:_,PortalTranslationService:f,getTranslateParametersKey:w,registerFunctions:v},Symbol.toStringTag,{value:"Module"}))},67090(t,e,s){s.d(e,{A:()=>i});var r=s(5482),n=s(25482),o=s(10107),a=s(64108);let i=class extends n.o{constructor(t){super(t)}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"key",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"text",void 0),i=(0,r.Cg)([(0,a.$)("esri.rest.support.TranslateContent")],i)},62791(t,e,s){s.d(e,{A:()=>u});var r=s(5482),n=s(25482),o=s(10107),a=s(64108),i=s(24097),l=s(67090);let u=class extends n.o{constructor(t){super(t),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null,this.requestSource=null}};(0,r.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r.Cg)([(0,o.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r.Cg)([(0,o.MZ)(i.K)],u.prototype,"apiKey",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"x-esri-request-source"}})],u.prototype,"requestSource",void 0),u=(0,r.Cg)([(0,a.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,s){s.d(e,{A:()=>i});var r=s(5482),n=s(25482),o=s(10107),a=s(64108);let i=class extends n.o{constructor(t){super(t),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"key",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"text",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],i.prototype,"detectedLanguage",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],i.prototype,"detectedLanguageScore",void 0),(0,r.Cg)([(0,o.MZ)({type:Object,json:{write:!0}})],i.prototype,"translation",void 0),i=(0,r.Cg)([(0,a.$)("esri.rest.support.TranslateResult")],i)},24097(t,e,s){s.d(e,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},45475(t,e,s){s.d(e,{T:()=>a});var r=s(11254),n=s(2272),o=s(14942);async function a(t,e,s){const a=e.toJSON();a.contents=JSON.stringify(a.contents),a.token=await(0,n.gf)(e.portalUrl,e.apiKey,{signal:s?.signal,prompt:"no-prompt"!==s?.authMode});const i=(0,n.Dl)(t),l=(0,n.jV)(i.query,{...s,query:a,method:"post",authMode:"anonymous"});return(await(0,r.A)(i.path,l)).data.results.map(t=>o.A.fromJSON(t))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,6061,7316],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},29821(t,e,r){r.d(e,{O:()=>n});var s=r(15756);class n extends s.n{getOperatorType(){return 6}execute(t,e,r,n){return(0,s.r)(t,e,r,16,n)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>S,ME:()=>E,MY:()=>P,NO:()=>M,Nh:()=>_,V2:()=>Y,_s:()=>b,e6:()=>I,gh:()=>O,tr:()=>X,uX:()=>p});var s=r(5482),n=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),h=r(21325),u=r(513),l=r(50954),g=r(79567),c=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Y(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new F(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new F(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,g.e)(n,t,r),t=(0,c.yP)(r)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=Y(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function g(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])g(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!n.hasCurves()){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&A(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)g(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];g(r);const i=f-1;(0,c.wY)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,c.DA)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.a[0]):(0,c.aO)(s)?(d(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,c.n1)(s)?(d(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&A(e,r)||g(r)}return n.partOffsets[v]=f,n}function O(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function _(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=Y(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function S({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new x.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function P(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class F{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function Y(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(N),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,m,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=p,n[a++]=m,n[a++]=x,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return w(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,w((0,l.pM)(t,e),0,...e.c[1],n,a)}function w(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const k=1.61803,N=-1},85672(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(29821),n=r(83299);const i=new s.O;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
|