@arcgis/core 5.0.0-next.45 → 5.0.0-next.46
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/063045ac5553e91c0c4c.js +1 -0
- package/assets/esri/core/workers/chunks/{20ad34f9d45c64392022.js → 08c1ea29678da27136f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dc2f2e28c30386efadf.js → 10094eb2b94e98dd4a8a.js} +1 -1
- package/assets/esri/core/workers/chunks/169be08394c5e7703628.js +1 -0
- package/assets/esri/core/workers/chunks/1a6f3531ef3d671e0289.js +1 -0
- package/assets/esri/core/workers/chunks/{b809d499ff050976d9ed.js → 1c58064ea80e6a4a4a3b.js} +1 -1
- package/assets/esri/core/workers/chunks/1c816aff8613d1e4bf38.js +1 -0
- package/assets/esri/core/workers/chunks/{ee67c8a7c1f8b482cd99.js → 1ced78750c61600b2d4e.js} +1 -1
- package/assets/esri/core/workers/chunks/{98175b454e807b1a3c5f.js → 1e152a34e368bd810a0f.js} +1 -1
- package/assets/esri/core/workers/chunks/1e17ad6cdffa5016a3db.js +1 -0
- package/assets/esri/core/workers/chunks/1e2d42e9984ed3437ba2.js +1 -0
- package/assets/esri/core/workers/chunks/2008b22f76071a2dde4e.js +1 -0
- package/assets/esri/core/workers/chunks/2107c93d1fe87f3b8dfa.js +1 -0
- package/assets/esri/core/workers/chunks/2209550b6510e25da375.js +1 -0
- package/assets/esri/core/workers/chunks/229e1ed4282005aa0b83.js +1 -0
- package/assets/esri/core/workers/chunks/22b8eaa6afab0e5ffc47.js +1 -0
- package/assets/esri/core/workers/chunks/{1c0fb4795a52204882a8.js → 2550d2ba935cfdf30236.js} +1 -1
- package/assets/esri/core/workers/chunks/{49e6219dd08cb6c27023.js → 273ac1066095d63d6a6f.js} +1 -1
- package/assets/esri/core/workers/chunks/2e2867bc66c94aba7dc7.js +1 -0
- package/assets/esri/core/workers/chunks/{cda5c95fd49b8901f7d4.js → 3298e96d3f2e49e338d2.js} +1 -1
- package/assets/esri/core/workers/chunks/34613b288cf174983f8b.js +1 -0
- package/assets/esri/core/workers/chunks/{e5baa30944061418cb13.js → 35f086a2ae0585348ae6.js} +1 -1
- package/assets/esri/core/workers/chunks/{f441fc74451330384fb0.js → 37ea150dec5e491f691e.js} +1 -1
- package/assets/esri/core/workers/chunks/3c94db7ecdcd38eeb1b1.js +1 -0
- package/assets/esri/core/workers/chunks/3f7749f06ae54a4437d9.js +1 -0
- package/assets/esri/core/workers/chunks/40a722933af28823953b.js +1 -0
- package/assets/esri/core/workers/chunks/{7aa730e5ac7b268e3c98.js → 424daef7b5dec1b99aba.js} +1 -1
- package/assets/esri/core/workers/chunks/456684b1c1417ed0e611.js +1 -0
- package/assets/esri/core/workers/chunks/{d14e75b160aa432233c6.js → 461093ce28ceadd7853d.js} +1 -1
- package/assets/esri/core/workers/chunks/4a48b8ec5f3f2fd139b5.js +1 -0
- package/assets/esri/core/workers/chunks/4b084f985bc4100e7aec.js +1 -0
- package/assets/esri/core/workers/chunks/4b1de1fcd13677b615a8.js +1 -0
- package/assets/esri/core/workers/chunks/{31186e83fe009aa0fd36.js → 4d933de84afb2e3b7d18.js} +1 -1
- package/assets/esri/core/workers/chunks/{83aa39fbb1fad3b9d143.js → 4ff771942531fb2755c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0017c6739d2532793e6.js → 513a4ef960e27500f986.js} +1 -1
- package/assets/esri/core/workers/chunks/56b693baa376bb990925.js +1 -0
- package/assets/esri/core/workers/chunks/{1d4ea8db272655c0608c.js → 57fd5e1260269002d18a.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe40bb0e9ab333f6854.js +1 -0
- package/assets/esri/core/workers/chunks/{b56c07c0b43cb1999070.js → 60362c5651ef41fa7e5f.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8a9971c8354569cb81d.js → 609919428305d8c8c243.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab88577987cf2fe1cb32.js → 61373d2fa7e7638d3395.js} +1 -1
- package/assets/esri/core/workers/chunks/6202922b1c2637e9aaa5.js +1 -0
- package/assets/esri/core/workers/chunks/633368ae6fbb46373328.js +1 -0
- package/assets/esri/core/workers/chunks/6d702cb26cef46a76963.js +1 -0
- package/assets/esri/core/workers/chunks/{35272810c2ed04eb403d.js → 6f3943bebe2d5f4994f7.js} +1 -1
- package/assets/esri/core/workers/chunks/708aba69a1870ea41a61.js +1 -0
- package/assets/esri/core/workers/chunks/{7ba13b52fce1060fbb2a.js → 7147fc7502b385b302b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ba8a2e1c0fb4e1efc7c.js → 7364fb5e99933533890d.js} +1 -1
- package/assets/esri/core/workers/chunks/74b1028e95f7cfff387b.js +1 -0
- package/assets/esri/core/workers/chunks/78fccea3445fb2f9120a.js +1 -0
- package/assets/esri/core/workers/chunks/7ba31425caa404f86424.js +1 -0
- package/assets/esri/core/workers/chunks/{040f3d8e1099c4843390.js → 81a60dfa600b690098f9.js} +1 -1
- package/assets/esri/core/workers/chunks/833fd2bc42c5cb459084.js +1 -0
- package/assets/esri/core/workers/chunks/{75643711d9585ee26a15.js → 83c8e5a92d8d6193cb32.js} +1 -1
- package/assets/esri/core/workers/chunks/{e537e1d37f3fcb14fce2.js → 870022661376442411e4.js} +1 -1
- package/assets/esri/core/workers/chunks/898ab7db220e81e921c6.js +1 -0
- package/assets/esri/core/workers/chunks/{31b074ae2162a3508d2a.js → 8b578ffc3a83089aa782.js} +1 -1
- package/assets/esri/core/workers/chunks/{48c8ef4170e803a564d6.js → 8b75861196d1ce5cba63.js} +1 -1
- package/assets/esri/core/workers/chunks/8be61e13530fd0dc2fd1.js +1 -0
- package/assets/esri/core/workers/chunks/90b8ccee883738917a6d.js +1 -0
- package/assets/esri/core/workers/chunks/90bc9c299ae0e8b8b5e5.js +1 -0
- package/assets/esri/core/workers/chunks/91d9ade78854f40a962d.js +1 -0
- package/assets/esri/core/workers/chunks/{74881340e040bfd0580f.js → 934bc1028b287f8df4aa.js} +1 -1
- package/assets/esri/core/workers/chunks/96055de47831e59a28bf.js +1 -0
- package/assets/esri/core/workers/chunks/963ba863e0f87abfca25.js +1 -0
- package/assets/esri/core/workers/chunks/9aa8d60483ad905fe13b.js +1 -0
- package/assets/esri/core/workers/chunks/9fed9946241bb2a5cfa4.js +1 -0
- package/assets/esri/core/workers/chunks/a2662e98857f0abf8e82.js +1 -0
- package/assets/esri/core/workers/chunks/a5a9b0a35849b9f2e86d.js +1 -0
- package/assets/esri/core/workers/chunks/a60006c9ccf6817fc0d2.js +1 -0
- package/assets/esri/core/workers/chunks/a627b7eb94b7fca33210.js +1 -0
- package/assets/esri/core/workers/chunks/a651dc3b8f1fc1ab34cc.js +1 -0
- package/assets/esri/core/workers/chunks/{bf5f9da0837ed09729c6.js → aab93e885b6c7c6aa76e.js} +1 -1
- package/assets/esri/core/workers/chunks/adfe28c1c1619cdd3ca1.js +1019 -0
- package/assets/esri/core/workers/chunks/b88dc7d8ae105747e6a4.js +1 -0
- package/assets/esri/core/workers/chunks/b90c786dd474ea1a409c.js +1 -0
- package/assets/esri/core/workers/chunks/b92e9e5df8154a128982.js +1 -0
- package/assets/esri/core/workers/chunks/{9a855a10798348a21bab.js → bff814d34b38ec80c44d.js} +1 -1
- package/assets/esri/core/workers/chunks/c36d699a75b6e8fb93eb.js +1 -0
- package/assets/esri/core/workers/chunks/c50fdf723f2d4316862e.js +1 -0
- package/assets/esri/core/workers/chunks/{9461cc37ab3397265270.js → c5e8ff4721b15ac3c6eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4cda42b94e9cb58dd372.js → ca61077e0a598654f33f.js} +1 -1
- package/assets/esri/core/workers/chunks/{61a9ffd4cf07d8bb7a9b.js → ca81be5bdb88ef557bf3.js} +1 -1
- package/assets/esri/core/workers/chunks/{ca1c65eb7f5900c60170.js → cd8fec3500e6503ae020.js} +1 -1
- package/assets/esri/core/workers/chunks/ce90e8489143228262e7.js +1 -0
- package/assets/esri/core/workers/chunks/d0320ca67abca4f8b0d2.js +1 -0
- package/assets/esri/core/workers/chunks/{4b6a44c6265c8959abd8.js → d3db7244fac7398cc700.js} +1 -1
- package/assets/esri/core/workers/chunks/{19820cddba13a3585c0b.js → d561624ddb9388732b25.js} +1 -1
- package/assets/esri/core/workers/chunks/d65ca3b8fccae8c3c3fa.js +1 -0
- package/assets/esri/core/workers/chunks/{630eba99f48ea79a9560.js → d705410c369bd03b1875.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c7682b300b877f60095.js → d76513a6260d9ec4ea25.js} +1 -1
- package/assets/esri/core/workers/chunks/d82e17522ed946c2d809.js +1 -0
- package/assets/esri/core/workers/chunks/d8dc130ea559be1f68c6.js +1 -0
- package/assets/esri/core/workers/chunks/{768ae52b4e5c3e571ef5.js → dc29cb16704e2e4d0a46.js} +1 -1
- package/assets/esri/core/workers/chunks/e8c2e2fbe9cef4c8a8c6.js +1 -0
- package/assets/esri/core/workers/chunks/{3f33708eb39c7169a226.js → f2ba50eb29f93df885d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e5d41f51572e3e7cf92.js → f7163048146ddaedfc36.js} +1 -1
- package/assets/esri/core/workers/chunks/fdaa10a588db394e2f65.js +1 -0
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/vec32.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +122 -14
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectSuppress.js +1 -1
- package/views/2d/interactive/SegmentLabels2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/interactive/SegmentLabels3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/FovController.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +5 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/FeatureForm/TextElementInput.d.ts +2 -2
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMedia.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaError.js +5 -0
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/assets/esri/core/workers/chunks/04a0685ee53ef74883aa.js +0 -1
- package/assets/esri/core/workers/chunks/1e0e7cef7ef947894bbe.js +0 -1019
- package/assets/esri/core/workers/chunks/20988e116f3723228f36.js +0 -1
- package/assets/esri/core/workers/chunks/2613e482450b57f2d4f5.js +0 -1
- package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +0 -1
- package/assets/esri/core/workers/chunks/27dfbe3d903b95d4c67a.js +0 -1
- package/assets/esri/core/workers/chunks/28a5a7c6b3d6902146f6.js +0 -1
- package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +0 -1
- package/assets/esri/core/workers/chunks/2db7a7607657f1d669f7.js +0 -1
- package/assets/esri/core/workers/chunks/3767617c0dfc7d801441.js +0 -1
- package/assets/esri/core/workers/chunks/44b6b7418cbf7f778bef.js +0 -1
- package/assets/esri/core/workers/chunks/4675ed3ca3e0104d00bf.js +0 -1
- package/assets/esri/core/workers/chunks/4df7cc3477bc46fc39af.js +0 -1
- package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +0 -1
- package/assets/esri/core/workers/chunks/555a0ea44ba77819d493.js +0 -1
- package/assets/esri/core/workers/chunks/55818fe7a7aa1e5c8bbd.js +0 -1
- package/assets/esri/core/workers/chunks/5f781ef46ce7c4048c2f.js +0 -1
- package/assets/esri/core/workers/chunks/60f2de8dd8876bfd715a.js +0 -1
- package/assets/esri/core/workers/chunks/679088064420a906aa7f.js +0 -1
- package/assets/esri/core/workers/chunks/706423d801fa9cbf2e90.js +0 -1
- package/assets/esri/core/workers/chunks/71dd80231ea656a6380c.js +0 -1
- package/assets/esri/core/workers/chunks/725819839434c59102f3.js +0 -1
- package/assets/esri/core/workers/chunks/72cebf18da5ec5eeb666.js +0 -1
- package/assets/esri/core/workers/chunks/768d9b6eaba7bfa18dde.js +0 -1
- package/assets/esri/core/workers/chunks/77b45957cfe42523c1c8.js +0 -1
- package/assets/esri/core/workers/chunks/852de585a72d902344a6.js +0 -1
- package/assets/esri/core/workers/chunks/871dd5e1f016a04b8d98.js +0 -1
- package/assets/esri/core/workers/chunks/892c417f5130b003889d.js +0 -1
- package/assets/esri/core/workers/chunks/907083c427d7fb4354e9.js +0 -1
- package/assets/esri/core/workers/chunks/93c5f097bb7b380bb175.js +0 -1
- package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +0 -1
- package/assets/esri/core/workers/chunks/ae793d814cf32db9fbde.js +0 -1
- package/assets/esri/core/workers/chunks/b21cf62652ca772108c8.js +0 -1
- package/assets/esri/core/workers/chunks/c5c02ace54fe4ab9214b.js +0 -1
- package/assets/esri/core/workers/chunks/c82a974c8448407885e6.js +0 -1
- package/assets/esri/core/workers/chunks/d08ee45c501102deea20.js +0 -1
- package/assets/esri/core/workers/chunks/d239a4ef60e348cfb05a.js +0 -1
- package/assets/esri/core/workers/chunks/da2ba40bc017bff0fe49.js +0 -1
- package/assets/esri/core/workers/chunks/dc3a4ad62bc041a4f899.js +0 -1
- package/assets/esri/core/workers/chunks/e093e745708f722bc1b9.js +0 -1
- package/assets/esri/core/workers/chunks/e501d68a1464805c4b4e.js +0 -1
- package/assets/esri/core/workers/chunks/f3c232fc56a29d51196a.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,3169,5549,8125],{40547:(t,e,s)=>{s.d(e,{convert:()=>C,convertFromSpatialReferenceUnit:()=>x,convertToSpatialReferenceUnit:()=>b,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>_,toLengthUnit:()=>P});var n=s(59534),r=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=l(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:n}),a.length>10&&a.shift(),n}catch(t){return null}}function l(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=l(t);if(null!=e)return e}return null}s(44208);var m=s(86211),h=s(22530);const f=-1;function d(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function y(t){const e=t.wkid;if(null!=e){const t=h.A.units[h.A[e]];if(null!=t)switch(t){case"Meter":return d("linear",9001);case"Foot":return d("linear",9002);case"Foot_US":return d("linear",9003);case"Foot_Clarke":return d("linear",9005);case"Yard_Clarke":return d("linear",9037);case"Link_Clarke":return d("linear",9039);case"Yard_Sears":return d("linear",9040);case"Foot_Sears":return d("linear",9041);case"Chain_Sears":return d("linear",9042);case"Chain_Benoit_1895_B":return d("linear",9062);case"Yard_Indian":return d("linear",9084);case"Yard_Indian_1937":return d("linear",9085);case"Foot_Gold_Coast":return d("linear",9094);case"Chain":return d("linear",9097);case"Chain_Sears_1922_Truncated":return d("linear",9301);case"50_Kilometers":return d("linear",109030);case"150_Kilometers":return d("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return m.yD.has(e)?d("angular",9105):d("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=d(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:f,factor:t.factor}}}return null}function p(t){if("linear"!==t.type)return null;if(t.wkid===f)return{type:"area",wkid:f,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:d("area",e)}function _(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function P(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function g(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function x(t,e,s){if(null==t||null==e)return s;const n=y(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return g(r,e,s)}function b(t,e,s){if(null==t||null==e)return s;const n=y(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return g(t,r,s)}function C(t,e,s){return null==t||null==e?s:g(t,e,s)}},59534:(t,e,s)=>{s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},66070:(t,e,s)=>{s.d(e,{g7:()=>p,zo:()=>_});var n=s(76061),r=s(95213),i=s(55537),a=s(88885),o=s(83661);const c=1.4142135623730951,u=.017453292519943295,l=256,m=1024;class h{static construct(t,e,s){const n=new h;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new h;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new o.P(this.x,this.y)}}class f{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===i.G.enumLine)return this.offsetLine();if(t===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.f)(t)){const t=new a.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===i.G.enumPolyline){const t=new a.P;return this.offsetMultiPath(t),t}if(t===i.G.enumPolygon){const t=new a.a;return this.offsetMultiPath(t),t}(0,i.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new o.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new a.a;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=f.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(f.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new h;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],c=Math.atan2(n.y-a.y,n.x-a.x);if(f.buildPoint(n,this.m_distance,c-o.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),f.buildPoint(n,this.m_distance,this.m_a1+o.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else f.buildPoint(n,this.m_distance,this.m_a1+o.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new h;if(f.buildPoint(r,this.m_distance,this.m_a1+o.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),f.buildPoint(r,this.m_distance,this.m_a2-o.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else f.buildPoint(r,this.m_distance,this.m_a2-o.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new h,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],h=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],d=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let y,p,_=0;{const t=h.x-a.x,e=h.y-a.y,s=d.x-a.x,c=d.y-a.y;y=Math.atan2(e,t),p=Math.atan2(c,s),this.m_a1=y,this.m_a2=p,0===i&&(n=y,r=p),_=o.P.orientationRobust(a.asPoint2D(),h.asPoint2D(),d.asPoint2D())}const P=p;if(p<y&&(p+=o.p),!(Math.abs(Math.abs(y-p)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){f.buildPoint(a,this.m_distance,y+o.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),f.buildPoint(a,this.m_distance,p-o.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-y),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let c=y+o.o;f.buildPoint(a,this.m_distance,c,t),0===i&&(t.type|=m),this.addPointEx(t,i);const l=this.m_distance/Math.cos(r/2);for(c+=r/2,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);--n>0;)c+=r,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);f.buildPoint(a,this.m_distance,p-o.o,t),t.type|=m,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-o.o-(y+o.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const c=this.m_distance/Math.cos(.5*r);let l=y+o.o+.5*r;for(f.buildPoint(a,c,l,t),this.addPointEx(t,i);--n>0;)l+=r,f.buildPoint(a,c,l,t),this.addPoint(t);continue}if(2===this.m_joins){const e=h.x-a.x,s=h.y-a.y,n=d.x-a.x,r=d.y-a.y;let u=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(u=Math.max(u,-1),u>1-1e-8){f.buildPoint(a,c*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),f.buildPoint(a,c*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),m=Math.abs(this.m_miterLimit*this.m_distance);if(l>m){const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t);const n=o.P.construct(t.x,t.y),r=o.P.construct(a.x,a.y),c=new o.P;c.setSub(n,r);const u=new o.P;u.setScaleAdd(m/c.length(),c,r);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),d=(l-m)*Math.abs(this.m_distance)/h;this.m_distance>0?c.rightPerpendicularThis():c.leftPerpendicularThis(),c.scale(d/c.length());const _=new o.P;_.setAdd(u,c);const P=new o.P;P.setSub(u,c),t.x=_.x,t.y=_.y,this.addPointEx(t,i),t.x=P.x,t.y=P.y,this.addPoint(t);continue}const _=.5*(p-y),P=this.m_distance/Math.abs(Math.sin(_));f.buildPoint(a,P,.5*(y+p),t),this.addPointEx(t,i);continue}{let e;if(p=P,this.m_distance>0?(p>y&&(p-=o.p),e=y-p<o.o):(p<y&&(p+=o.p),e=p-y<o.o),e){const e=this.m_distance*c;let s;s=e<0?y+.25*Math.PI:y+3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));p<y&&(p+=o.p),f.buildPoint(a,s,(y+p)/2,t),this.addPointEx(t,i)}}}else f.buildPoint(a,this.m_distance,y+o.o,t),this.addPointEx(t,i),f.buildPoint(a,this.m_distance,p-o.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const a={pt:new h,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,l=(n.y-s.y)/c,m=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),h=(i.x-r.x)/m,f=(i.y-r.y)/m;let d=!1;const y=a.pt.clone();y.x+=(u+h)*o,y.y+=(l+f)*o;let p=r,_=a.pt,P=this.m_offsetPts[t].m_prev;for(;_.y>y.y!=p.y>y.y&&y.x<(p.x-_.x)*(y.y-_.y)/(p.y-_.y)+_.x&&(d=!d),p=_,P=this.m_offsetPts[P].m_next,P!==e;)_=this.m_offsetPts[P];if(d)return-1;const g=this.m_offsetPts[t].m_prev;return a.pt.type=n.type,a.pt.m_next=e,a.pt.m_prev=g,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,a,o,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(r.pt.x=t.x+o*(e.x-t.x),r.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(r.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,a.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=h.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,a--)this.progress(),s=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=m,this.m_srcPts[a]=s.clone();if(s=h.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&m);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&m);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,a=n.x-s.x,c=n.y-s.y,u=(0,o.t)(r,i,a,c);return(0,o.e)(u)}}class d extends n.G{constructor(t,e,s,n,r,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,i.c)(t),e=this.m_flattenError<=0?(0,r.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,a){if(null===t&&(0,i.a)(""),t.getDimension()<1&&(0,i.a)(""),r>0||(0,i.a)(""),(0,i.c)(t),0===e||t.isEmpty())return t;const o=new f(a);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=r,o.m_joins=s,o.m_miterLimit=n>1?n:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,a){return new d(t,e,s,n,r,i,a)}execute(t,e,s,n,r,i,a){return new d(null,e,s,n,r,i,a).offset(t)}};function p(t,e,s,n,r,i){return y.execute(t,e,s,n,r,i,null)}function _(t,e,s,r,i,a){const o=y.executeMany(new n.S(t),e,s,r,i,a,null);return Array.from(o)}},71409:(t,e,s)=>{s.d(e,{A7:()=>h,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>m,zD:()=>a});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=r("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),l=r("area"),m=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),h=m.get(109404)},76061:(t,e,s)=>{s.d(e,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class r extends n{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}}},78125:(t,e,s)=>{s.r(e),s.d(e,{fromExtent:()=>P,fromGeometry:()=>_,fromMultipoint:()=>g,fromPoint:()=>x,fromPolygon:()=>b,fromPolyline:()=>C,fromSpatialReference:()=>M,getSpatialReference:()=>p,toExtent:()=>E,toGeometry:()=>w,toMultipoint:()=>v,toPoint:()=>G,toPolygon:()=>S,toPolyline:()=>k});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(5443),c=s(48526),u=s(86738),l=s(39829),m=s(82799),h=(s(90293),s(83299));const f="_gxVersion",d=2,y=1;function p(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function _(t){switch(t.type){case"point":return x(t);case"multipoint":return g(t);case"polyline":return C(t);case"polygon":return b(t);case"extent":return P(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function P(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(d,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(y,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function g(t){if(!t.getCacheValue(f)){const e=new a.M,s=new i.P,n=t.points,r=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function b(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,h.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(f,i)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,h.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(f,i)}return t.getCacheValue(f)}function M(t){return(0,h.fromSpatialReference)(t)}function w(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return G(t,e);case r.G.enumEnvelope:return E(t,e);case r.G.enumMultiPoint:return v(t,e);case r.G.enumPolyline:return k(t,e);case r.G.enumPolygon:return S(t,e)}return null}function E(t,e){if(t.isEmpty())return null;const s=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(d,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(y,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(f,t),s}function v(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const u=new c.A({hasM:n,hasZ:r,points:a,spatialReference:e});return u.setCacheValue(f,t),u}function G(t,e){if(t instanceof n.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(f,t),s}function S(t,e){if(t.isEmpty())return null;const s=l.A.fromJSON({spatialReference:e,...(0,h.toGeometry)(t,null)});return s.setCacheValue(f,t),s}function k(t,e){if(t.isEmpty())return null;const s=m.A.fromJSON({spatialReference:e,...(0,h.toGeometry)(t,null)});return s.setCacheValue(f,t),s}},85549:(t,e,s)=>{s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,a,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),m=l(c,(0,i.fromSpatialReference)(u),e,r,a,o);return(0,i.toGeometry)(m,u)}function u(t,e,s,r,i,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),m=c.getSpatialReference(),h=l(u,m,e,r,i,o);return(0,a.toGeometry)(h,m)}function l(t,e,s,n,i,a){const c=(0,r.g7)(t,e,s,o[n],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,o[n],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,l=u/10;let m=a;if("round"===n&&(m+=l),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,o[n="miter"],i,a);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,o[n="round"],i,a);if(!c.isEmpty())return c}if("round"===n)for(;m<=u;m+=l){const a=(0,r.g7)(t,e,s,o[n],i,m);if(!a.isEmpty())return a}return null}},85935:(t,e,s)=>{s.d(e,{D$:()=>o,Nh:()=>m,O$:()=>l,mT:()=>u,ps:()=>f});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function m(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6357],{1123:(e,t,n)=>{n.r(t),n.d(t,{invokeGeometryOp:()=>s});var r=n(65864);function i(e,t){let n;return{loaded:!1,load:()=>n??=t().then(t=>{a[e]={loaded:!0,execute:t}})}}function o(e){return null==e?null:e.toJSON()}const a={disjoint:i("disjoint",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(1598)]).then(n.bind(n,7978)).then(e=>e.execute)),intersects:i("intersects",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(7360)]).then(n.bind(n,55284)).then(e=>e.execute)),touches:i("touches",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(2503)]).then(n.bind(n,83547)).then(e=>e.execute)),crosses:i("crosses",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(9700)]).then(n.bind(n,85672)).then(e=>e.execute)),within:i("within",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(9265)]).then(n.bind(n,85445)).then(e=>e.execute)),contains:i("contains",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(1867)]).then(n.bind(n,29127)).then(e=>e.execute)),overlaps:i("overlaps",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(1414)]).then(n.bind(n,46178)).then(e=>e.execute)),equals:i("equals",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5180)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n))}),relate:i("relate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5552)]).then(n.bind(n,43628));return(t,n,i)=>e.execute((0,r.rS)(t),(0,r.rS)(n),i)}),intersection:i("intersection",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(9263)]).then(n.bind(n,49263)).then(e=>e.execute)),union:i("union",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(6339)]).then(n.bind(n,56339)).then(e=>e.executeMany)),difference:i("difference",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3054)]).then(n.bind(n,93054));return(t,n)=>o(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),symmetricDifference:i("symmetricDifference",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(9041)]).then(n.bind(n,89041));return(t,n)=>o(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),clip:i("clip",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(4815)]).then(n.bind(n,24815));return(t,n)=>o(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),cut:i("cut",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(7817)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n)).map(e=>o(e))}),area:i("area",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3236)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,o)=>{const a=e.execute((0,r.rS)(n));return t(n.spatialReference,i(o),a)}}),geodeticArea:i("geodeticArea",async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:i,toAreaUnit:o}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,s)=>{const c=e.execute((0,r.rS)(n),{curveType:s});return t(i,o(a),c)}}),length:i("length",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(7074)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i)=>{const o=e.execute(n);return t(n.spatialReference,r(i),o)}}),geodeticLength:i("geodeticLength",async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:i,toLengthUnit:o}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,s)=>{const c=e.execute((0,r.rS)(n),{curveType:s});return t(i,o(a),c)}}),distance:i("distance",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(9202)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,o,a)=>{const s=e.execute((0,r.rS)(n),(0,r.rS)(o));return t(n.spatialReference,i(a),s)}}),densify:i("densify",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(8411)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,s)=>(a=t(i(s),n.spatialReference,a),o(e.execute((0,r.rS)(n),a)))}),geodeticDensify:i("geodeticDensify",async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:i,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,s,c,l)=>(s=t(a(c),i,s),o(e.execute((0,r.rS)(n),s,{curveType:l})))}),generalize:i("generalize",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(591)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,s,c)=>(a=t(i(s),n.spatialReference,a),o(e.execute((0,r.rS)(n),a,c)))}),buffer:i("buffer",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(1352),n.e(3779)]).then(n.bind(n,46160)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i,o)=>(i=t(r(o),n.spatialReference,i),e.execute(n,i))}),geodesicBuffer:i("geodesicBuffer",async()=>{const e=await n.e(9159).then(n.bind(n,49159)),{convert:t,meters:r,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,a,s)=>(o=t(i(a),r,o),e.execute(n,o,{curveType:s}))}),offset:i("offset",async()=>{const{executeOffsetJson:e}=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5549)]).then(n.bind(n,85549));return e}),rotate:i("rotate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(647)]).then(n.bind(n,50647)),{default:t}=await Promise.all([n.e(3661),n.e(1878),n.e(8812)]).then(n.bind(n,78812));return(n,i,a,s)=>{const c=(new t).rotate(i,a,s);return o(e.execute((0,r.rS)(n),c))}}),centroid:i("centroid",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(2657)]).then(n.bind(n,17077));return t=>o(e.execute((0,r.rS)(t)))}),labelPoint:i("labelPoint",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5913),n.e(1421)]).then(n.bind(n,91421));return t=>o(e.execute((0,r.rS)(t)))}),simplify:i("simplify",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then(e=>e.execute)),isSelfIntersecting:i("isSelfIntersecting",async()=>{const{NonSimpleResult:e}=await n.e(4383).then(n.bind(n,24383)),t=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5874)]).then(n.bind(n,5874)),i=new Set([5,6,7,10,11,12]);return n=>{const o=new e;return!t.isSimple((0,r.rS)(n),o)&&i.has(o.m_reason)}}),isSimple:i("isSimple",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then(e=>e.isSimple)),convexHull:i("convexHull",()=>Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(5666)]).then(n.bind(n,55666)).then(e=>e.execute)),getNearestCoordinate:i("getNearestCoordinate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(6468)]).then(n.bind(n,48032));return(t,n,i)=>{const a=e.getNearestCoordinate((0,r.rS)(t),(0,r.rS)(n),i);return{...a,coordinate:o(a.coordinate)}}}),getNearestVertex:i("getNearestVertex",async()=>{const{executeNearestVertex:e}=await Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(2510)]).then(n.bind(n,64064));return(t,n)=>{const i=e((0,r.rS)(t),(0,r.rS)(n));return null==i?null:{...i,coordinate:o(i.coordinate)}}})};function s(e,t){const n=a[e];return n.loaded?n.execute.apply(void 0,t):n.load().then(()=>s(e,t))}},31635:(e,t,n)=>{function r(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function a(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},65864:(e,t,n)=>{n.d(t,{$B:()=>y,Bi:()=>f,Pv:()=>w,Rg:()=>h,U9:()=>u,W0:()=>S,ZC:()=>l,fT:()=>d,rS:()=>m,xD:()=>b});var r=n(5443),i=n(91075),o=n(48526),a=n(86738),s=n(39829),c=n(82799);function l(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths||void 0!==e.curvePaths}function f(e){return void 0!==e.rings||void 0!==e.curveRings}function m(e){return null==e?null:e instanceof i.A?e:d(e)?a.A.fromJSON(e):h(e)?c.A.fromJSON(e):f(e)?s.A.fromJSON(e):u(e)?o.A.fromJSON(e):l(e)?r.A.fromJSON(e):null}function y(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":l(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const p={esriGeometryPoint:a.A,esriGeometryPolyline:c.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:o.A,esriGeometryMultiPatch:s.A};function b(e){return e&&p[e]||null}function w(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function S(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[647,3169,8125],{50647:(e,t,n)=>{n.d(t,{execute:()=>i}),n(4576);var r=n(76061),s=n(55537);class o extends r.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const a=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new o(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};var u=n(78125);function i(e,t){const n=(0,u.getSpatialReference)(e);return(0,u.toGeometry)(function(e,t){return a.execute(e,t,null)}((0,u.fromGeometry)(e),t.transform),n)}a.supportsCurves()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>G,fromGeometry:()=>x,fromMultipoint:()=>C,fromPoint:()=>M,fromPolygon:()=>V,fromPolyline:()=>v,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>_,toGeometry:()=>R,toMultipoint:()=>w,toPoint:()=>d,toPolygon:()=>Z,toPolyline:()=>E});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),a=n(88885),u=n(5443),i=n(48526),c=n(86738),m=n(39829),l=n(82799),h=(n(90293),n(83299));const f="_gxVersion",p=2,y=1;function g(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return M(e);case"multipoint":return C(e);case"polyline":return v(e);case"polygon":return V(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 o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const t=new a.M,n=new o.P,r=e.points,s=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),u&&n.setZ(o[2]??0),s&&n.setM(o[i]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function M(e){if(!e.getCacheValue(f)){const t=new o.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 V(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(f,o)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(f,o)}return e.getCacheValue(f)}function P(e){return(0,h.fromSpatialReference)(e)}function R(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return d(e,t);case s.G.enumEnvelope:return _(e,t);case s.G.enumMultiPoint:return w(e,t);case s.G.enumPolyline:return E(e,t);case s.G.enumPolygon:return Z(e,t)}return null}function _(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function w(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),a=[],u=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),a.push(n)}const c=new i.A({hasM:r,hasZ:s,points:a,spatialReference:t});return c.setCacheValue(f,e),c}function d(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function Z(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}function E(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3299],{83299:(e,t,n)=>{n.r(t),n.d(t,{fromGeometries:()=>me,fromGeometry:()=>le,fromGeometryToGXGeometry:()=>ce,fromSpatialReference:()=>de,getSpatialReference:()=>oe,toGeometry:()=>he});var r=n(55537),i=n(83661),a=n(39117),s=n(95213),o=n(88885),u=n(16930);function m(){if(-1===this.m_i)return this.m_i=0,{value:{m_token:1,m_value:null},done:!1};if(this.m_i<this.m_keys.length){const e=this.m_bReturnKey,t=Math.trunc(this.m_i);return this.m_bReturnKey=!this.m_bReturnKey,this.m_i+=.5,e?{value:{m_token:5,m_value:this.m_keys[t]},done:!1}:{value:{m_token:6,m_value:this.m_o[this.m_keys[t]]},done:!1}}return{value:{m_token:3,m_value:null},done:!0}}function l(){if(-1===this.m_i)return this.m_i=0,{value:{m_token:2,m_value:null},done:!1};if(this.m_i<this.m_a.length){const e={value:{m_token:6,m_value:this.m_a[this.m_i++]},done:!1};return this.m_strict||void 0===e.value.m_value&&(e.value.m_value=Number.NaN),e}return{value:{m_token:4,m_value:null},done:!0}}n(90293);class c{createJSONObjectIterator(e){return{m_iteratorType:"object",m_o:e,m_keys:this.m_options.strict?Object.keys(e):Object.keys(e).filter(t=>void 0!==e[t]),m_i:-1,m_bReturnKey:!0,next:m}}createJSONArrayIterator(e){return{m_iteratorType:"array",m_strict:this.m_options.strict,m_i:-1,m_a:e,next:l}}constructor(e,t){this.m_currentToken=0,this.m_options=t?{...t}:{strict:!0};const n=e;this.m_iteratorStack=[n instanceof Array?this.createJSONArrayIterator(n):this.createJSONObjectIterator(n)],this.m_nextFlatToken={m_value:null,m_token:0}}nextToken(){if(0===this.m_iteratorStack.length)return this.m_currentToken=0;switch(this.m_nextFlatToken=this.m_iteratorStack.at(-1).next().value,this.m_currentValue=void 0,this.m_nextFlatToken.m_token){case 1:return this.m_currentToken=1;case 3:return this.m_iteratorStack.pop(),this.m_currentToken=3;case 2:return this.m_currentToken=2;case 4:return this.m_iteratorStack.pop(),this.m_currentToken=4;case 5:return this.m_currentValue=this.m_nextFlatToken.m_value,this.m_currentToken=5;case 6:if(this.m_nextFlatToken.m_value instanceof Array)return this.m_iteratorStack.push(this.createJSONArrayIterator(this.m_nextFlatToken.m_value)),this.nextToken();if(this.m_nextFlatToken.m_value instanceof Object)return this.m_iteratorStack.push(this.createJSONObjectIterator(this.m_nextFlatToken.m_value)),this.nextToken();if("number"==typeof this.m_nextFlatToken.m_value)return this.m_currentValue=this.m_nextFlatToken.m_value,Number.isSafeInteger(this.m_currentValue)&&this.m_currentValue>=(0,i.aJ)()&&this.m_currentValue<=(0,i.i)()?this.m_currentToken=8:this.m_currentToken=7;if("string"==typeof this.m_nextFlatToken.m_value)return this.m_currentValue=this.m_nextFlatToken.m_value,this.m_currentToken=6;if("boolean"==typeof this.m_nextFlatToken.m_value)return this.m_currentValue=this.m_nextFlatToken.m_value,this.m_currentToken=this.m_nextFlatToken.m_value?11:12;if("object"==typeof this.m_nextFlatToken.m_value)return this.m_currentValue=null,this.m_currentToken=10;(0,r.d)("unrecognized json element type")}return(0,r.d)("unrecognized json element type"),0}currentToken(){return this.m_currentToken}skipChildren(){if(0!==this.m_iteratorStack.length)switch(this.m_currentValue=void 0,this.m_nextFlatToken.m_token){case 1:return this.m_iteratorStack.pop(),this.m_nextFlatToken.m_token=3,void(this.m_currentToken=3);case 2:return this.m_iteratorStack.pop(),this.m_nextFlatToken.m_token=4,void(this.m_currentToken=4)}}currentString(){return 6!==this.m_currentToken&&5!==this.m_currentToken&&(0,r.a)("invalid token"),this.m_currentValue}currentDoubleValue(){return 7!==this.m_currentToken&&8!==this.m_currentToken&&(0,r.a)("invalid token"),this.m_currentValue}currentInt32Value(){return 8!==this.m_currentToken&&(0,r.a)("invalid token"),this.m_currentValue}currentInt64Value(){return(0,r.g)(0),0n}currentBoolValue(){return 12!==this.m_currentToken&&11!==this.m_currentToken&&(0,r.a)("invalid token"),this.m_currentValue}isError(){return 0}}class d{constructor(e){return this.m_buffer=null,this.m_view=null,this.m_sz=0,this.m_offset=0,this.m_bOwnsBuffer=!0,this.m_bLittleEndian=!0,this.m_element=new ArrayBuffer(8),this.m_elementBytes=new Uint8Array(this.m_element),this.m_elementView=new DataView(this.m_element),this.m_elementDouble=new Float64Array(this.m_element),this.m_elementFloat=new Float32Array(this.m_element),this.m_elementInt64=new BigInt64Array(this.m_element),this.m_elementInt32=new Int32Array(this.m_element),this.m_elementInt16=new Int16Array(this.m_element),void 0!==e.sz?(this.m_sz=e.sz,e.buffer?(this.m_sz<0&&(0,r.q)("size out of range"),this.m_buffer=e.buffer,this.m_offset=void 0!==e.offset?e.offset:0,this.m_view=void 0!==e.offset?new DataView(e.buffer,e.offset,e.sz):new DataView(this.m_buffer),this.m_bOwnsBuffer=!1,void(this.m_bLittleEndian=!0)):(this.m_sz<0&&(0,r.q)("size out of range"),void(this.m_sz>0&&(this.m_buffer=new ArrayBuffer(this.m_sz),this.m_view=new DataView(this.m_buffer))))):e.move?(this.m_sz=e.move.m_sz,this.m_buffer=e.move.m_buffer,this.m_view=e.move.m_view,this.m_bOwnsBuffer=e.move.m_bOwnsBuffer,this.m_bLittleEndian=e.move.m_bLittleEndian,e.move.m_buffer=null,e.move.m_view=null,e.move.m_sz=0,void(e.move.m_bOwnsBuffer=!0)):void(0,r.d)("unrecognized constructor options")}swapBytesDouble(){this.doSwap()&&(this.m_elementDouble[0]=this.m_elementBytes[0]<<56|this.m_elementBytes[1]<<48|this.m_elementBytes[2]<<40|this.m_elementBytes[3]<<32|this.m_elementBytes[4]<<24|this.m_elementBytes[5]<<16|this.m_elementBytes[6]<<8|this.m_elementBytes[7])}swapBytesInt32(){this.doSwap()&&(this.m_elementInt32[0]=this.m_elementBytes[0]<<24|this.m_elementBytes[1]<<16|this.m_elementBytes[2]<<8|this.m_elementBytes[3])}getOffset(){return this.m_offset}assignMove(e){return this===e||(this.clear(),this.m_sz=e.m_sz,this.m_buffer=e.m_buffer,this.m_view=e.m_view,this.m_bOwnsBuffer=e.m_bOwnsBuffer,this.m_bLittleEndian=e.m_bLittleEndian,e.m_buffer=null,e.m_sz=0,e.m_bOwnsBuffer=!0),this}doSwap(){return this.m_bLittleEndian!==(1===d.getNativeByteOrder())}setNativeByteOrder(){this.m_bLittleEndian=1===d.getNativeByteOrder()}setOrder(e){this.m_bLittleEndian=1===e}getOrder(){return this.m_bLittleEndian?1:0}getView(){return this.m_view||(0,r.p)("buffer not defined"),this.m_view}static getNativeByteOrder(){return 1}clear(){this.m_buffer=null,this.m_sz=0,this.m_bOwnsBuffer=!0}size(){return this.m_sz}readDouble(e){return this.doSwap()?(this.m_elementDouble[0]=this.m_view.getFloat64(e,this.m_bLittleEndian),this.swapBytesDouble(),this.m_elementDouble[0]):this.m_view.getFloat64(e,this.m_bLittleEndian)}writeDouble(e,t){this.m_elementDouble[0]=t,this.swapBytesDouble(),this.m_view.setFloat64(e,this.m_elementDouble[0],this.m_bLittleEndian)}readInt32(e){return this.doSwap()?(this.m_elementInt32[0]=this.m_view.getInt32(e,this.m_bLittleEndian),this.swapBytesInt32(),this.m_elementInt32[0]):this.m_view.getInt32(e,this.m_bLittleEndian)}writeInt32(e,t){this.m_elementInt32[0]=t,this.swapBytesInt32(),this.m_view.setInt32(e,this.m_elementInt32[0],this.m_bLittleEndian)}getPtr(){return this.m_buffer}setSizeNoRealloc(e){(0,r.g)(e>=0&&e<=this.m_sz),this.m_sz=e}}function h(e){let t=!1;for(;3!==e.nextToken();){const n=e.currentString();e.nextToken(),"uwkid"===n?t||(t=!0,8===e.currentToken()&&e.currentInt32Value()):e.skipChildren()}return null}function _(e){let t=!1,n=!1,r=!1,i=!1,s=!1,o=!1,u=!1,m=!1,l=!1,c=!1,d=!1,_=!1,f=!1,p=!1,k=!1,b=!1,y=!1,g=-1,N=-1,T=-1,v=-1,x=0,A=0,S=0,w=0,C=0,D=0,F=0,j=0,O=0,I=0,z="",E="",G=null;for(;3!==e.nextToken();){const a=e.currentString();e.nextToken(),"wkid"===a?t||(t=!0,8===e.currentToken()&&(g=e.currentInt32Value())):"latestWkid"===a?n||(n=!0,8===e.currentToken()&&(N=e.currentInt32Value())):"wkt"===a?s||(s=!0,6===e.currentToken()&&(z=e.currentString())):"wkt2"===a?s||6===e.currentToken()&&(E=e.currentString()):"vcsWkid"===a?r||(r=!0,8===e.currentToken()&&(T=e.currentInt32Value())):"latestVcsWkid"===a?i||(i=!0,8===e.currentToken()&&(v=e.currentInt32Value())):"xyTolerance"===a?u||(u=!0,o=!0,x=e.currentDoubleValue()):"zTolerance"===a?m||(m=!0,o=!0,A=e.currentDoubleValue()):"mTolerance"===a?l||(l=!0,o=!0,S=e.currentDoubleValue()):"falseX"===a?c||(c=!0,o=!0,F=e.currentDoubleValue()):"falseY"===a?d||(d=!0,o=!0,j=e.currentDoubleValue()):"falseZ"===a?_||(_=!0,o=!0,O=e.currentDoubleValue()):"falseM"===a?f||(f=!0,o=!0,I=e.currentDoubleValue()):"xyUnits"===a?p||(p=!0,o=!0,w=e.currentDoubleValue()):"zUnits"===a?k||(k=!0,o=!0,C=e.currentDoubleValue()):"mUnits"===a?b||(b=!0,o=!0,D=e.currentDoubleValue()):"unit"===a?y||(y=!0,G=h(e)):e.skipChildren()}v<=0&&T>0&&(v=T),T<=0&&v>0&&(T=v);let P=null,B=!0;if(0!==z.length&&(B=!1,(0,a.q)(z)&&(P=(0,a.b)(z))),P||0===E.length||(B=!1,(0,a.q)(E)&&(P=(0,a.b)(E))),!P&&N>0&&(B=!1,(0,a.p)(N)&&(v<=0||(0,a.aX)())&&(P=(0,a.c)(N,v))),!P&&g>0&&(B=!1,(0,a.p)(g)&&(T<=0||(0,a.aX)())&&(P=(0,a.c)(g,T))),B&&(P=(0,a.e)(G)),o&&P){const e=new a.a;P.queryPrecisionDescriptorWithoutFalseXY(e),u&&e.setTolerance(0,x),m&&e.setTolerance(1,A),l&&e.setTolerance(2,S),p&&c&&d&&e.setGridParams(F,j,w),k&&_&&e.setZParams(O,C),b&&f&&e.setMParams(I,D),P=(0,a.f)(P,e)}return P}function f(e,t,n,a){2!==a.currentToken()&&(0,r.a)("failed to parse multipath: array of array of vertices is expected");const u=e?new o.a:new o.P,m=u,l=(0,s.a0)(0),c=(0,s.a2)(2,0),d=(0,s.a1)(0);let h=null,_=null,f=null,p=null,k=null,y=0,v=0,x=0;const A=new o.S,S=i.P.getNAN();let w=0,C=0;const D=e?1:0;for(;4!==a.nextToken();){2!==a.currentToken()&&(0,r.a)("failed to parse multipath: ring/path array is expected");let n=2,u=0,F=!0;const j=4;let O=0,I=0;const z=i.P.getNAN(),E=(0,i.d)(j,Number.NaN),G=(0,i.d)(j,Number.NaN);let P=!1;for(a.nextToken();4!==a.currentToken();){if(t&&1===a.currentToken())F&&(0,r.a)("failed to parse multipath: starting vertex array is expected"),f||(f=(0,s.a1)(w-1,1),p=(0,s.a0)(w-1,-1),k=(0,s.a2)(0)),P=!0,n=1,({segFlag:x,toPointSz:O}=T(A,E,S,a));else{for(P=!1,2!==a.currentToken()&&(0,r.a)("failed to parse multipath: array is expected, rings/paths vertices consist of arrays of coordinates"),O=0;4!==a.nextToken();)O===j&&(0,r.a)("failed to parse multipath: each vertex array has to have at most 4 elements"),E[O++]=b(a);O<2&&(0,r.a)("failed to parse multipath: each vertex array has to have at least 2 elements"),(0,s.a6)(E[0],E[1])||(0,r.a)("failed to parse multipath: x and y must be finite")}a.nextToken();do{if(c.size()===2*w&&c.resize(g(w)),c.writePoint2D(2*w,z.setCoords(E[0],E[1])),h&&h.size()===w&&h.resize(N(w)),O>2?(h||(h=(0,s.a2)(w+1,Number.NaN)),h.write(w,E[2])):h&&h.write(w,Number.NaN),_&&_.size()===w&&_.resize(N(w)),O>3?(_||(_=(0,s.a2)(w+1,Number.NaN)),_.write(w,E[3])):_&&_.write(w,Number.NaN),F)C++,l.add(w),d.add(D),F=!1,I=O,(0,i.b)(G,E,0,0,I);else if(null!==f)if(P){const e=(0,o.a9)(x),t=k.size();k.resize(t+e),f.add(x),p.add(y),A.get().writeInBufferStream(k,y),y+=e,m.incCurveType(x,1),v++}else f.add(1),p.add(-1);w++,u++,S.setCoords(E[0],E[1])}while(u<n&&4===a.currentToken())}0!==u&&(e&&u>n&&O===I&&0===(0,i.aK)(E,G,O)?(w--,u--):null!==f&&(f.add(1),p.add(-1)))}return w&&(l.resize(C),d.resize(C),w>0&&(l.add(w),d.add(0)),m.setAttributeStreamRef(0,c),m.setPathFlagsStreamRef(d),m.setPathStreamRef(l),null!==f&&(m.updateCurveCounter(v),m.setSegmentData(p,k,f,y)),m.notifyModifiedFlags(65535)),{geometry:u,as:h,bs:_}}function p(e,t){2!==t.currentToken()&&(0,r.a)("failed to parse multipoint: array of vertices is expected");let n=0;const a=new o.M,u=(0,s.a2)(2,0);let m=0;const l=(0,i.d)(4,Number.NaN),c=new i.P;let d=null,h=null;for(;4!==t.nextToken();){for(2!==t.currentToken()&&(0,r.a)("failed to parse multipoint: array is expected, multipoint vertices consist of arrays of cooridinates"),m=0;4!==t.nextToken();)4===m&&(0,r.a)("failed to parse multipoint: each vertex array has to have at most 4 elements"),l[m++]=b(t);m<2&&(0,r.a)("failed to parse multipoint: each vertex array has to have at least 2 elements"),(0,s.a6)(l[0],l[1])||(0,r.a)("failed to parse multipoint: x and y must be finite"),u.size()===2*n&&u.resize(g(n)),u.writePoint2D(2*n,c.setCoords(l[0],l[1])),d&&d.size()===n&&d.resize(N(n)),m>2?(d||(d=(0,s.a2)(n+1,Number.NaN)),d.write(n,l[2])):d&&d.write(n,Number.NaN),h&&h.size()===n&&h.resize(N(n)),m>3?(h||(h=(0,s.a2)(n+1,Number.NaN)),h.write(n,l[3])):h&&h.write(n,Number.NaN),n++}if(n){const e=a.getImpl();e.setAttributeStreamRef(0,u),e.resizeNoInit(n),e.notifyModifiedFlags(65535)}return{geometry:a,as:d,bs:h}}function k(e,t){2!==t.currentToken()&&(0,r.a)("failed to parse array of IDs: array of array of integers is expected");const n=(0,s.a7)(2,0);let i=0,a=-1;for(;4!==t.nextToken();){const e=i;n.size()===i&&n.resize(N(i)),i++;let s=0;for(-1===a?a=2===t.currentToken()?1:0:1===a&&2!==t.currentToken()&&(0,r.a)("failed to parse array of IDs: array of array of integers is expected"),0===a&&(n.size()===i&&n.resize(N(i)),n.write(i,y(t)),s++,i++);4!==t.nextToken();)n.size()===i&&n.resize(N(i)),n.write(i,y(t)),s++,i++;if(n.write(e,s),0===a)break}return n.resize(i),n}function b(e){const t=e.currentToken();if(10===t||6===t&&"NaN"===e.currentString())return Number.NaN;{const t=e.currentDoubleValue();return Number.isNaN(t)?Number.NaN:t}}function y(e){return e.currentInt32Value()}function g(e){let t=2*Math.trunc(3*(e+1)/2);return t<8?t=8:t<32&&(t=32),t}function N(e){let t=Math.trunc(3*(e+1)/2);return t<4?t=4:t<16&&(t=16),t}function T(e,t,n,a,s){const u={segFlag:0,toPointSz:0};let m=a.currentToken();m=a.nextToken();const l=a.currentString(),c=l[0];for((1!==l.length||"a"!==c&&"b"!==c&&"c"!==c&&"n"!==c&&"q"!==c)&&(0,r.a)('failed to parse curve: expecting "a", "b", "n", "q", or "c"'),m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for curve parameters"),m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for to point"),u.toPointSz=0;4!==a.nextToken();)4===u.toPointSz&&(0,r.a)("failed to parse curve: vertex array cannot have more than 4 elements"),t[u.toPointSz++]=b(a);u.toPointSz<2&&(0,r.a)("failed to parse curve: vertex array must have at least 2 elements");const h=i.P.construct(t[0],t[1]),_=i.P.getNAN();let f=-1,p=-1,k=!1,y=Number.NaN,g=Number.NaN,N=Number.NaN;const T=[i.P.getNAN(),i.P.getNAN(),i.P.getNAN()],x=i.P.getNAN();if("a"===c){m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for center point"),m=a.nextToken();const e=b(a);m=a.nextToken();const t=b(a);m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for center point"),_.setCoords(e,t),m=a.nextToken(),f=a.currentInt32Value(),m=a.nextToken(),p=a.currentInt32Value(),m=a.nextToken(),4!==m?(k=!1,y=b(a),m=a.nextToken(),g=b(a),m=a.nextToken(),N=b(a),m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for curve parameters")):k=!0,u.segFlag=4}else if("b"===c){for(let e=0;e<2;e++){m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for control point"),m=a.nextToken();const t=b(a);m=a.nextToken();const n=b(a);m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for control point"),T[e].setCoords(t,n)}m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for curve parameters"),u.segFlag=2}else if("n"===c){{m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for control point"),m=a.nextToken();const e=b(a);m=a.nextToken();const t=b(a);m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for control point"),T[0].setCoords(e,t)}m=a.nextToken();const e=b(a);m=a.nextToken();const t=b(a);m=a.nextToken();const n=b(a);T[1].setCoords(e,t),T[2].setCoords(n,n),m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for curve parameters"),u.segFlag=8}else if("q"===c){for(let e=0;e<1;e++){m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for control point"),m=a.nextToken();const t=b(a);m=a.nextToken();const n=b(a);m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for control point"),T[e].setCoords(t,n)}m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for curve parameters"),u.segFlag=16}else{m=a.nextToken(),2!==m&&(0,r.a)("failed to parse curve: start array is expected for interior point"),m=a.nextToken();const e=b(a);m=a.nextToken();const t=b(a);m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for interior point"),x.setCoords(e,t),m=a.nextToken(),4!==m&&(0,r.a)("failed to parse curve: end array is expected for curve parameters"),u.segFlag=4}if(m=a.nextToken(),3!==m&&(0,r.a)("failed to parse curve: end object is expected for curve"),"a"===c)if(e.createEllipticArc(),k){const t=!0;v(e.get(),n,h,_,t,f,p)}else!function(e,t,n,r,i,a,s,u,m){e.dropAllAttributes();const l=new ArrayBuffer(44),c=new d({sz:44,buffer:l});let h=0;c.writeDouble(h,r.x),h+=8,c.writeDouble(h,r.y),h+=8,c.writeDouble(h,s),h+=8,c.writeDouble(h,u),h+=8,c.writeDouble(h,m),h+=8;let _=0;a||(_|=2048),i&&(_|=4096),c.writeInt32(h,_),h+=4,function(e,t,n,r){e.m_bits=0,e.m_center.x=r.readDouble(0),e.m_center.y=r.readDouble(8),e.m_rotation=r.readDouble(16),e.m_semiMajorAxis=r.readDouble(24),e.m_minorMajorRatio=r.readDouble(32),e.m_XStart=t.x,e.m_YStart=t.y,e.m_XEnd=n.x,e.m_YEnd=n.y;const i=r.readInt32(40);if(1&i)return!1;let a=!!(64&i),s=!!(128&i);const u=!!(2048&i),m=!!(4096&i);!(512&i)&&!(1024&i)||s||(a=!0),s&&!t.equals(n)?(s=!1,a=!0):a&&t.equals(n)&&(s=!0,a=!1),s?(e.m_center.assign(t),e.m_startAngle=e.m_center.x,e.m_sweepAngle=e.m_center.y,(0,o.a8)(e,Number.NaN,u,m),e.m_semiMajorAxis=0,e.m_interior.setCoordsPoint2D(t)):a?(e.m_center.setNAN(),e.m_semiMajorAxis=1,e.m_minorMajorRatio=0,e.m_center.setNAN(),e.m_sweepAngle=0,e.m_startAngle=0,(0,o.a6)(e),e.queryCoord2D(.5,e.m_interior)):e.constructEllipticArcEndPointsCenter(t,n,e.m_semiMajorAxis,e.m_minorMajorRatio,e.m_rotation,!m,u,e.m_center),e.setProjectionBehavior(1),(0,o.a6)(e)}(e,t,n,c)}(e.get(),n,h,_,f,p,y,g,N);else if("b"===c)e.createCubicBezier(),function(e,t,n,a){e.dropAllAttributes();const s=new ArrayBuffer(32),o=new d({sz:32,buffer:s});let u=0;o.writeDouble(u,a[0].x),u+=8,o.writeDouble(u,a[0].y),u+=8,o.writeDouble(u,a[1].x),u+=8,o.writeDouble(u,a[1].y),u+=8,function(e,t,n,a){(0,r.g)(32<=a.size()),e.m_cp=(0,i.m)(i.P,2),e.m_cp[0].x=a.readDouble(0),e.m_cp[0].y=a.readDouble(8),e.m_cp[1].x=a.readDouble(16),e.m_cp[1].y=a.readDouble(24),e.m_XStart=t.x,e.m_YStart=t.y,e.m_XEnd=n.x,e.m_YEnd=n.y}(e,t,n,o)}(e.get(),n,h,T);else if("n"===c)e.createQuadraticRationalBezier(),function(e,t,n,r,i,a,s){e.dropAllAttributes();const o=new ArrayBuffer(40),u=new d({sz:40,buffer:o});let m=0;u.writeDouble(m,r.x),m+=8,u.writeDouble(m,r.y),m+=8,u.writeDouble(m,i),m+=8,u.writeDouble(m,a),m+=8,u.writeDouble(m,s),m+=8,function(e,t,n,r){e.m_cp.x=r.readDouble(0),e.m_cp.y=r.readDouble(8),e.m_weights[0]=r.readDouble(16),e.m_weights[1]=r.readDouble(24),e.m_weights[2]=r.readDouble(32),e.m_XStart=t.x,e.m_YStart=t.y,e.m_XEnd=n.x,e.m_YEnd=n.y}(e,t,n,u)}(e.get(),n,h,T[0],T[1].x,T[1].y,T[2].x);else if("q"===c)e.createQuadraticBezier(),e.get().construct(n,T[0],h);else{e.createEllipticArc();const t=!1;v(e.get(),n,h,x,t,-1,-1)}return u}function v(e,t,n,a,s,u,m){e.dropAllAttributes();const l=new ArrayBuffer(20),c=new d({sz:20,buffer:l});let h=0;c.writeDouble(h,a.x),h+=8,c.writeDouble(h,a.y),h+=8;let _=0;s?(m||(_|=8),u&&(_|=16)):_|=128,c.writeInt32(h,_),h+=4,function(e,t,n,a){0>=a.size()&&(0,r.q)("Byte_buffer out of range access"),e.m_bits=0,e.m_rotation=0,e.m_cosr=1,e.m_sinr=0,e.setStartXY(t),e.setEndXY(n);const s=i.P.getNAN();s.x=a.readDouble(0),s.y=a.readDouble(8);const u=a.readInt32(16);if(1&u)return e.m_semiMajorAxis=0,e.m_minorMajorRatio=1,e.m_interior.assign(s),e.m_center.setNAN(),e.m_sweepAngle=0,e.m_startAngle=0,(0,o.a6)(e),!1;let m=!!(64&u);const l=!!(128&u);let c=!!(32&u);const d=!!(8&u),h=!!(16&u),_=t.equals(n);m&&!_&&(m=!1,c=!0),c&&_&&(m=!0,c=!1,s.setCoords(0,0)),m||(l?c?(e.m_semiMajorAxis=1,e.m_minorMajorRatio=0,e.m_interior.assign(s),e.m_center.setNAN(),e.m_sweepAngle=0,e.m_startAngle=0):(e.constructCircularArcThreePoint(t,n,s),_&&d===e.isClockwise()&&e.reverse()):c?(e.m_semiMajorAxis=1,e.m_minorMajorRatio=0,e.m_center.setNAN(),e.m_sweepAngle=0,e.m_startAngle=0,(0,o.a6)(e),e.queryCoord2D(.5,e.m_interior)):(0,o.a7)(e,t,n,s,d,h)),m&&(e.m_center.assign(t),e.m_startAngle=s.x,e.m_sweepAngle=s.y,(0,o.a8)(e,Number.NaN,d,h),e.m_semiMajorAxis=0,e.m_minorMajorRatio=1,e.m_interior.setCoordsPoint2D(t)),e.setProjectionBehavior(0),(0,o.a6)(e)}(e,t,n,c)}function x(e,t,n,i,a){const s=e.getGeometryType();if(s===r.G.enumEllipticArc)return function(e,t,n,i,a){(0,r.g)(!(0,o.a5)(e));const s=e.getEndXY(),u=e.hasAttribute(1)&&!t,m=e.hasAttribute(2)&&!n;let l=Number.NaN,c=Number.NaN;if(u&&(l=e.getEndAttributeAsDbl(1,0)),m&&(c=e.getEndAttributeAsDbl(2,0)),e.isDegenerateToLine()||e.isDegenerate(0))return S(u,m,s.x,s.y,l,c,i,a),!0;const d=0===e.projectionBehavior(),h=!!d&&e.isClosed();if(d&&!h)a.startObject(),a.addFieldName("c"),a.startArray(),S(u,m,s.x,s.y,l,c,i,a),w(e.m_interior.x,e.m_interior.y,17,a),a.endArray(),a.endObject();else if(d){a.startObject(),a.addFieldName("a"),a.startArray(),S(u,m,s.x,s.y,l,c,i,a);const t=0,n=0;w(e.m_center.x+t,e.m_center.y+n,17,a);const r=!e.isMajor();a.addInt32(r?1:0);const o=e.isClockwise();a.addInt32(o?1:0),a.endArray(),a.endObject()}else{a.startObject(),a.addFieldName("a"),a.startArray(),S(u,m,s.x,s.y,l,c,i,a);const t=e;w(t.m_center.x,t.m_center.y,17,a);const n=!t.isMajor();a.addInt32(n?1:0);const r=t.isClockwise();a.addInt32(r?1:0),a.addDouble(t.m_rotation,17),a.addDouble(t.m_semiMajorAxis,17),a.addDouble(t.m_minorMajorRatio,17),a.endArray(),a.endObject()}return!1}(e,t,n,i,a);if(s===r.G.enumBezier)return A(e,t,n,i,a);if(s===r.G.enumRationalBezier2)return function(e,t,n,r,i){const a=e.getEndXY(),s=e.hasAttribute(1)&&!t,o=e.hasAttribute(2)&&!n;let u=Number.NaN,m=Number.NaN;s&&(u=e.getEndAttributeAsDbl(1,0)),o&&(m=e.getEndAttributeAsDbl(2,0)),i.startObject(),i.addFieldName("n"),i.startArray(),S(s,o,a.x,a.y,u,m,r,i),w(e.m_cp.x,e.m_cp.y,r,i);const l=r;return i.addDouble(e.m_weights[0],l),i.addDouble(e.m_weights[1],l),i.addDouble(e.m_weights[2],l),i.endArray(),i.endObject(),!1}(e,t,n,i,a);if(s===r.G.enumBezier2){const r=new o.J;return r.constructFromQuadraticSegment(e),A(r,t,n,i,a)}(0,r.t)("")}function A(e,t,n,r,i){const a=e.getEndXY(),s=e.hasAttribute(1)&&!t,o=e.hasAttribute(2)&&!n;let u=Number.NaN,m=Number.NaN;return s&&(u=e.getEndAttributeAsDbl(1,0)),o&&(m=e.getEndAttributeAsDbl(2,0)),i.startObject(),i.addFieldName("b"),i.startArray(),S(s,o,a.x,a.y,u,m,r,i),w(e.m_cp[0].x,e.m_cp[0].y,r,i),w(e.m_cp[1].x,e.m_cp[1].y,r,i),i.endArray(),i.endObject(),!1}function S(e,t,n,r,i,a,s,o){o.startArray(),o.addDouble(n,s),o.addDouble(r,s),e&&o.addDouble(i,s),t&&o.addDouble(a,s),o.endArray()}function w(e,t,n,r){r.startArray(),r.addDouble(e,n),r.addDouble(t,n),r.endArray()}function C(e,t,n,i){const a=n.getImpl(),u=!!(2&t),m=!!(4&t),l=!!(8&t),c=a.hasAttribute(1)&&!u,d=a.hasAttribute(2)&&!m,h=a.hasAttribute(3)&&!l,_=a.hasNonLinearSegments();c&&(i.addFieldName("hasZ"),i.addBool(!0)),d&&(i.addFieldName("hasM"),i.addBool(!0)),e?_?i.addFieldName("curveRings"):i.addFieldName("rings"):_?i.addFieldName("curvePaths"):i.addFieldName("paths");let f=null;const p=[];if(n.isEmpty())i.startArray(),i.endArray();else{const e=17-(31&t>>13);i.startArray();const l=n.getPathCount();let k=0;const b=a.getAttributeStreamRef(0);let y=null,g=null,N=null;const T=new o.S;let v=null,A=null,S=null;_&&(v=a.getSegmentFlagsStreamRef(),A=a.getSegmentIndexStreamRef(),S=a.getSegmentDataStreamRef()),c&&(y=a.getAttributeStreamRef(1)),d&&(g=a.getAttributeStreamRef(2)),h&&(N=a.getAttributeStreamRef(3),f=(0,s.Y)(3,0));for(let t=0;t<l;t++){i.startArray(),h&&p.push(0);const a=n.getPathEnd(t);if(k===a){i.endArray();continue}const s=n.isClosedPath(t);let o=b.read(2*k),l=b.read(2*k+1),_=c?y.read(k):Number.NaN,w=d?g.read(k):Number.NaN,C=h?N.read(k):0;D(c,d,o,l,_,w,e,i);let F=1;h&&(f.add(C),p[p.length-1]++);const j=o,O=l,I=_,z=w,E=C;let G=!1,P=0,B=Number.NaN,R=Number.NaN,V=0;for(let t=k+1,n=k,M=s?a+1:a;t<M;t++,n++){const s=null!==v?31&v.read(n):1;let k,M;if(t<a?(k=b.read(2*t),M=b.read(2*t+1),c&&(B=y.read(t)),d&&(R=g.read(t)),h&&(V=N.read(t))):(k=j,M=O,B=I,R=z,V=E),1!==s){G=!0,4===s?T.createEllipticArc():2===s?T.createCubicBezier():16===s?T.createQuadraticBezier():8===s?T.createQuadraticRationalBezier():(0,r.t)("JSON export.unsupported curve");const t=T.get(),a=A.read(n);t.setStartXYCoords(o,l),t.setEndXYCoords(k,M),c&&(t.setStartAttribute(1,0,_),t.setEndAttribute(1,0,B)),d&&(t.setStartAttribute(2,0,w),t.setEndAttribute(2,0,R)),t.readFromBufferStream(S,a),x(T.get(),u,m,e,i)&&P++}else D(c,d,k,M,B,R,e,i);h&&(f.add(V),p[p.length-1]++),F++,o=k,l=M,_=B,w=R,C=V}G&&0===P||(F<2&&P<1&&(D(c,d,o,l,_,w,e,i),F++,h&&(f.add(C),p[p.length-1]++)),s&&F<3&&P<2&&(D(c,d,j,O,I,z,e,i),F++,o=j,l=O,_=I,w=z,C=E,h&&(f.add(E),p[p.length-1]++))),i.endArray(),k=a}i.endArray()}if(h){i.addFieldName("ids"),i.startArray();let e=0;for(let t=0,n=p.length;t<n;++t){const n=p[t];(0,r.g)(0===n||null!==f&&e+n<=f.size()),i.startArray();for(let t=0;t<n;++t)i.addInt32(f.read(e)),e++;i.endArray()}i.endArray()}}function D(e,t,n,r,i,a,s,o){o.startArray(),o.addDouble(n,s),o.addDouble(r,s),e&&o.addDouble(i,s),t&&o.addDouble(a,s),o.endArray()}const F="a".charCodeAt(0),j="A".charCodeAt(0),O="*".charCodeAt(0),I="b".charCodeAt(0),z="\\".charCodeAt(0),E="[".charCodeAt(0),G="{".charCodeAt(0),P=":".charCodeAt(0),B=".".charCodeAt(0),R=",".charCodeAt(0),V='"'.charCodeAt(0),M="]".charCodeAt(0),U="}".charCodeAt(0),W="e".charCodeAt(0),X="E".charCodeAt(0),Y="f".charCodeAt(0),L="F".charCodeAt(0),q="/".charCodeAt(0),K="-".charCodeAt(0),J="+".charCodeAt(0),Z="n".charCodeAt(0),H="N".charCodeAt(0),Q="r".charCodeAt(0),$="t".charCodeAt(0),ee="u".charCodeAt(0),te="0".charCodeAt(0),ne="9".charCodeAt(0);class re{constructor(e){this.m_functionStack=[],this.m_pushPositions=[],this.m_utf8Decoder=new TextDecoder("utf-8",{fatal:!0}),void 0===e?(this.m_startToken=Number.MAX_SAFE_INTEGER,this.m_endToken=0,this.m_currentTokenType=0,this.m_functionStack.push(()=>this.accept_()),this.m_jsonString=null,this.m_bHasEscapes=!1):e.jsonString?this.resetParserFromString(e.jsonString):e.jsonStream?(0,r.t)("streaming json parsing not yet impl"):(0,r.d)("invalid constructor parameter")}prepSubstrString_(){}getCurrentSubstrString_(){return this.m_jsonString.slice(this.m_startToken,this.m_endToken)}stepOverCharString_(){this.m_endToken++}peekCharString_(){return this.m_jsonString.charCodeAt(this.m_endToken)}getString_(e){const t=this.m_jsonString?.slice(this.m_startToken,this.m_startToken+e-1);return this.m_endToken+=e-1,{s:t,bDone:this.m_endToken>=this.m_jsonString.length}}incrementString_(){this.m_endToken++}eofString_(){return this.m_endToken>=this.m_jsonString.length}setStringFunctions_(){this.m_prepSubstr=this.prepSubstrString_,this.m_getCurrentSubstr=this.getCurrentSubstrString_,this.m_stepOverChar=this.stepOverCharString_,this.m_peekChar=this.peekCharString_,this.m_get=this.getString_,this.m_increment=this.incrementString_,this.m_eof=this.eofString_}setStreamFunctions_(){(0,r.t)("streaming json parsing not yet impl")}reset_(){this.m_jsonString=null,this.m_endToken=0,this.m_startToken=Number.MAX_SAFE_INTEGER,this.m_currentTokenType=0,this.m_bHasEscapes=!1,this.m_functionStack.length=0,this.m_functionStack.push(()=>this.start_()),this.m_pushPositions.length=0}resetParserFromString(e){this.reset_(),this.setStringFunctions_(),this.m_jsonString=e}resetParserFromStream(e){(0,r.t)("streaming json parsing not yet impl")}resetToPosition(e){return!!this.m_jsonString&&(this.m_endToken=e,this.m_startToken=Number.MAX_VALUE,this.m_currentTokenType=0,this.m_functionStack.length=0,e>=this.m_jsonString.length?(this.m_functionStack.push(()=>this.accept_()),!1):(this.m_functionStack.push(()=>this.start_()),!0))}nextToken(){return this.m_functionStack.at(-1)(),this.m_currentTokenType}currentToken(){return this.m_currentTokenType}currentTokenStartIndex(){return this.m_startToken}currentTokenEndIndex(){return this.m_endToken}currentText(){return(0,r.g)(0),""}childrenAsString(){return(0,r.g)(0),""}skipChildren(){this.skipChildren_()}skipChildren_(){if(1===this.m_currentTokenType){let e=1;do{this.m_currentTokenType=this.nextToken(),1===this.m_currentTokenType?e++:3===this.m_currentTokenType&&e--}while(3!==this.m_currentTokenType||0!==e);return}if(2===this.m_currentTokenType){let e=1;do{this.m_currentTokenType=this.nextToken(),2===this.m_currentTokenType?e++:4===this.m_currentTokenType&&e--}while(4!==this.m_currentTokenType||0!==e);return}}currentTerminalAsString_(){switch(this.m_currentTokenType){case 7:case 8:case 9:return this.m_getCurrentSubstr().slice(0,this.m_endToken-this.m_startToken);case 10:return"null";case 11:return"true";case 12:return"false"}(0,r.a)("invalid token")}toUTF8_(e,t){let n=0,r=e;for(;t.charCodeAt(r)===z&&t.charCodeAt(r+1)===ee;)n++,r+=6;r=e;const i=new Uint8Array(n);let a=0;for(;t.charCodeAt(r)===z&&t.charCodeAt(r+1)===ee;)i[a++]=Number.parseInt(t.slice(r+2,r+6),16),r+=6;return{u8s:this.m_utf8Decoder.decode(i),end:r}}unquoteCurrentString_(){let e="",t=1;const n=this.m_endToken-this.m_startToken-1;let r=0;const i=this.m_getCurrentSubstr();for(let a=t;a<n;a++)if(i.charCodeAt(a)!==z)r++;else{switch(r>0&&(e+=i.slice(t,t+r)),i.charCodeAt(++a)){case V:e+='"';break;case ee:{const{u8s:t,end:n}=this.toUTF8_(a-1,i);a=n-1,e+=t;break}case z:e+="\\";break;case q:e+="/";break;case I:e+="\b";break;case Y:e+="\f";break;case Z:e+="\n";break;case Q:e+="\r";break;case $:e+="\t"}t=a+1,r=0}return r>0&&(e+=i.slice(t,t+r)),e}currentString(){return 5!==this.m_currentTokenType&&6!==this.m_currentTokenType?this.currentTerminalAsString_():this.m_bHasEscapes?this.unquoteCurrentString_():this.m_getCurrentSubstr().slice(1,this.m_endToken-this.m_startToken-2+1)}currentDoubleValue(){if(7!==this.m_currentTokenType&&8!==this.m_currentTokenType&&9!==this.m_currentTokenType&&6!==this.m_currentTokenType&&10!==this.m_currentTokenType&&(0,r.a)("invalid token"),10===this.m_currentTokenType)return Number.NaN;let e=this.m_getCurrentSubstr(),t=this.m_endToken-this.m_startToken;if(6===this.m_currentTokenType){if("NaN"===this.currentString())return Number.NaN;e=e.slice(1),t-=2,0===t&&(0,r.a)("invalid token")}const n=Number.parseFloat(e);if(6===this.m_currentTokenType)Number.isNaN(n)&&(0,r.a)("invalid token");else if(Number.isNaN(n))return Number.NaN;return n}currentInt32Value(){8!==this.m_currentTokenType&&6!==this.m_currentTokenType&&(0,r.a)("invalid token");let e=this.m_getCurrentSubstr(),t=this.m_endToken-this.m_startToken;6===this.m_currentTokenType&&(e=e.slice(1),t-=2,0===t&&(0,r.a)("invalid token"));const n=parseInt(e);return Number.isNaN(n)&&(0,r.a)("invalid token"),n}currentInt64Value(){return(0,r.g)(0),0n}currentBoolValue(){return(0,r.g)(0),!1}isError(){return 0}JSONString(){return(0,r.g)(0),""}pushPosition(){return(0,r.g)(0),!1}popPosition(){return(0,r.g)(0),!1}skipCStyleComments_(){(0,r.g)(0)}skipCppStyleComments_(){(0,r.g)(0)}skipComments_(){this.m_prepSubstr();let e=this.m_peekChar();this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar(),e===O?this.skipCStyleComments_():e===q?this.skipCppStyleComments_():(0,r.a)("invalid token")}skipWhiteSpace_(){let e;do{this.m_eof()&&(0,r.a)("invalid token");let t=this.m_peekChar();for(;t>=9&&t<=13||32===t;)this.m_increment(),this.m_eof()&&(0,r.a)("invalid token"),t=this.m_peekChar();t===q?(this.m_startToken=this.m_endToken,e=!0,this.skipComments_()):e=!1}while(e)}rightBracket_(){return this.m_peekChar()===M&&(this.m_startToken=this.m_endToken,this.m_increment(),this.m_currentTokenType=4,!0)}rightBrace_(){return this.m_peekChar()===U&&(this.m_startToken=this.m_endToken,this.m_increment(),this.m_currentTokenType=3,!0)}string_(){this.m_prepSubstr(),this.m_bHasEscapes=!1,this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token");let e=this.m_peekChar();for(;e!==V;){const t=e===z;if(this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar(),t)if(this.m_bHasEscapes=!0,e===V||e===z||e===q||e===I||e===Y||e===Z||e===Q||e===$)this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar();else if(e===ee)for(let t=0;t<4;t++)this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar(),e>=te&&e<=ne||e>=F&&e<=Y||e>=j&&e<=L||(0,r.a)("invalid token");else(0,r.a)("invalid token")}this.m_stepOverChar()}comma_(){return this.m_peekChar()===R&&(this.m_increment(),!0)}colon_(){return this.m_peekChar()===P&&(this.m_increment(),!0)}fieldNameEnd_(){this.skipWhiteSpace_(),this.m_functionStack.pop(),this.colon_()?(this.skipWhiteSpace_(),this.value_()):(0,r.a)("invalid token")}fieldNameStart_(){this.m_startToken=this.m_endToken,this.m_peekChar()!==V&&(0,r.a)("invalid token"),this.string_(),this.m_currentTokenType=5,this.m_functionStack.push(()=>this.fieldNameEnd_())}pairEnd_(){this.skipWhiteSpace_(),this.comma_()?(this.skipWhiteSpace_(),this.fieldNameStart_()):this.rightBrace_()?this.m_functionStack.pop():(0,r.a)("invalid token")}arrayStart_(){this.skipWhiteSpace_(),this.m_functionStack.pop(),this.rightBracket_()||(this.m_functionStack.push(()=>this.elementEnd_()),this.value_())}elementEnd_(){this.skipWhiteSpace_(),this.comma_()?(this.skipWhiteSpace_(),this.value_()):this.rightBracket_()?this.m_functionStack.pop():(0,r.a)("invalid token")}objectStart_(){this.skipWhiteSpace_(),this.m_functionStack.pop(),this.rightBrace_()||(this.m_functionStack.push(()=>this.pairEnd_()),this.fieldNameStart_())}valueStartObject_(){this.m_increment(),this.m_currentTokenType=1,this.m_functionStack.push(()=>this.objectStart_())}valueStartArray_(){this.m_increment(),this.m_currentTokenType=2,this.m_functionStack.push(()=>this.arrayStart_())}valueString_(){this.string_(),this.m_currentTokenType=6}int_(){this.m_peekChar()!==te?this.digits_():this.m_stepOverChar()}digits_(){let e=this.m_peekChar();do{this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar()}while(e>=te&&e<=ne)}frac_(){let e=this.m_peekChar();this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar(),e>=te&&e<=ne||(0,r.a)("invalid token"),this.digits_()}exp_(){let e=this.m_peekChar();this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar(),e!==J&&e!==K||(this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),e=this.m_peekChar()),e>=te&&e<=ne||(0,r.a)("invalid token"),this.digits_()}valueNumber_(){this.m_prepSubstr();let e=!1,t=this.m_peekChar();if(t===K?(this.m_stepOverChar(),this.m_eof()&&(0,r.a)("invalid token"),t=this.m_peekChar(),e=!0,t>=te&&t<=ne||(0,r.a)("invalid token"),this.int_()):this.int_(),t=this.m_peekChar(),t===B)this.m_currentTokenType=7,this.frac_(),t=this.m_peekChar(),t!==W&&t!==X||this.exp_();else if(t===W||t===X)this.m_currentTokenType=7,this.exp_();else{let t=0;e&&t++;const n=this.m_endToken-this.m_startToken-t;if(n<10)this.m_currentTokenType=8;else if(10===n){const n=this.m_getCurrentSubstr();e?n.slice(t)<="2147483648"?this.m_currentTokenType=8:this.m_currentTokenType=9:n.slice(t)<="2147483647"?this.m_currentTokenType=8:this.m_currentTokenType=9}else if(n<19)this.m_currentTokenType=9;else if(19===n){const n=this.m_getCurrentSubstr();e?n.slice(t)<="9223372036854775808"?this.m_currentTokenType=9:this.m_currentTokenType=7:n.slice(t)<="9223372036854775807"?this.m_currentTokenType=9:this.m_currentTokenType=7}else this.m_currentTokenType=7}}valueNull_(){const{s:e,bDone:t}=this.m_get(5);t&&(0,r.a)("invalid token"),"null"!==e&&(0,r.a)("invalid token"),this.m_currentTokenType=10}valueTrue_(){const{s:e,bDone:t}=this.m_get(5);t&&(0,r.a)("invalid token"),"true"!==e&&(0,r.a)("invalid token"),this.m_currentTokenType=11}valueFalse_(){const{s:e,bDone:t}=this.m_get(6);t&&(0,r.a)("invalid token"),"false"!==e&&(0,r.a)("invalid token"),this.m_currentTokenType=12}valueNan_(){const{s:e,bDone:t}=this.m_get(4);t&&(0,r.a)("invalid token"),"NaN"!==e&&(0,r.a)("invalid token"),this.m_currentTokenType=7}value_(){this.m_startToken=this.m_endToken;const e=this.m_peekChar();e===G?this.valueStartObject_():e===E?this.valueStartArray_():e===V?this.valueString_():e===K||e>=te&&e<=te+9?this.valueNumber_():e===Z?this.valueNull_():e===$?this.valueTrue_():e===Y?this.valueFalse_():e===H?this.valueNan_():(0,r.a)("invalid token")}start_(){this.skipWhiteSpace_(),this.m_functionStack.pop(),this.m_functionStack.push(()=>this.accept_());const e=this.m_peekChar();e!==G&&e!==E&&(0,r.a)("invalid token"),this.value_()}accept_(){this.m_startToken=this.m_endToken,this.m_currentTokenType=0}}const ie=new class{constructor(){this.m_pendingKey=null,this.m_acceptedObject=null,this.m_currentObject=[]}reset(){this.m_pendingKey=null,this.m_acceptedObject=null,this.m_currentObject.length=0}startObject(){const e={};this.m_pendingKey?(this.m_currentObject.at(-1)[this.m_pendingKey]=e,this.m_pendingKey=null):Array.isArray(this.m_currentObject.at(-1))&&this.m_currentObject.at(-1).push(e),this.m_currentObject.push(e)}startArray(){const e=[];this.m_pendingKey?(this.m_currentObject.at(-1)[this.m_pendingKey]=e,this.m_pendingKey=null):Array.isArray(this.m_currentObject.at(-1))&&this.m_currentObject.at(-1).push(e),this.m_currentObject.push(e)}endObject(){this.m_acceptedObject=this.m_currentObject.at(-1),this.m_currentObject.pop()}endArray(){this.m_currentObject.pop()}addFieldName(e){this.m_pendingKey=e}addValue_(e){this.m_pendingKey?(this.m_currentObject.at(-1)[this.m_pendingKey]=e,this.m_pendingKey=null):this.m_currentObject.at(-1).push(e)}addString(e){this.addValue_(e)}addDouble(e,t){this.addValue_(e)}addInt64(e){(0,r.g)(0)}addInt32(e){this.addValue_(e)}addBool(e){this.addValue_(e)}addNull(){this.addValue_(null)}getObject(){return this.m_acceptedObject}},ae=new class{getOperatorType(){return 10405}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,i,s,o){!function(e,t,n,i){if(t||n){if(i.startObject(),null!==t)switch(t.getGeometryType()){case r.G.enumPolygon:C(!0,e,t,i);break;case r.G.enumPolyline:C(!1,e,t,i);break;case r.G.enumMultiPoint:!function(e,t,n){const i=t.getImpl(),a=i.hasAttribute(1)&&!(2&e),s=i.hasAttribute(2)&&!(4&e),o=i.hasAttribute(3)&&!(8&e);a&&(n.addFieldName("hasZ"),n.addBool(!0)),s&&(n.addFieldName("hasM"),n.addBool(!0)),n.addFieldName("points");const u=t.getPointCount();if(t.isEmpty())n.startArray(),n.endArray();else{const t=17-(31&e>>13);n.startArray();const r=i.getAttributeStreamRef(0);let o=null,m=null;a&&(o=i.getAttributeStreamRef(1)),s&&(m=i.getAttributeStreamRef(2));for(let e=0;e<u;e++){const i=r.read(2*e),u=r.read(2*e+1);let l=Number.NaN,c=Number.NaN;a&&(l=o.read(e)),s&&(c=m.read(e)),D(a,s,i,u,l,c,t,n)}n.endArray()}if(o){let e=null;i.isEmpty()||(e=i.getAttributeStreamRef(3)),(0,r.g)(0===u||null!==e&&e.size()>=u),n.addFieldName("ids"),n.startArray();for(let t=0;t<u;t++)n.addInt32(e.read(t));n.endArray()}}(e,t,i);break;case r.G.enumPoint:!function(e,t,n){const r=t.hasAttribute(1)&&!(2&e),i=t.hasAttribute(2)&&!(4&e),a=t.hasAttribute(3)&&!(8&e);if(t.isEmpty())return n.addFieldName("x"),n.addNull(),n.addFieldName("y"),n.addNull(),r&&(n.addFieldName("z"),n.addNull()),i&&(n.addFieldName("m"),n.addNull()),void(a&&(n.addFieldName("id"),n.addInt32(0)));const s=17-(31&e>>13);n.addFieldName("x"),n.addDouble(t.getX(),s),n.addFieldName("y"),n.addDouble(t.getY(),s),r&&(n.addFieldName("z"),n.addDouble(t.getZ(),s)),i&&(n.addFieldName("m"),n.addDouble(t.getM(),s)),a&&(n.addFieldName("id"),n.addInt32(t.getID()))}(e,t,i);break;case r.G.enumEnvelope:!function(e,t,n){const r=t.hasAttribute(1)&&!(2&e),i=t.hasAttribute(2)&&!(4&e),a=t.hasAttribute(3)&&!(8&e);if(t.isEmpty())return n.addFieldName("xmin"),n.addNull(),n.addFieldName("ymin"),n.addNull(),n.addFieldName("xmax"),n.addNull(),n.addFieldName("ymax"),n.addNull(),r&&(n.addFieldName("zmin"),n.addNull(),n.addFieldName("zmax"),n.addNull()),i&&(n.addFieldName("mmin"),n.addNull(),n.addFieldName("mmax"),n.addNull()),void(a&&(n.addFieldName("idmin"),n.addInt32(0),n.addFieldName("idmax"),n.addInt32(0)));const s=17-(31&e>>13);if(n.addFieldName("xmin"),n.addDouble(t.getXMin(),s),n.addFieldName("ymin"),n.addDouble(t.getYMin(),s),n.addFieldName("xmax"),n.addDouble(t.getXMax(),s),n.addFieldName("ymax"),n.addDouble(t.getYMax(),s),r){const e=t.queryInterval(1,0);n.addFieldName("zmin"),n.addDouble(e.vmin,s),n.addFieldName("zmax"),n.addDouble(e.vmax,s)}if(i){const e=t.queryInterval(2,0);n.addFieldName("mmin"),n.addDouble(e.vmin,s),n.addFieldName("mmax"),n.addDouble(e.vmax,s)}if(a){const e=t.queryInterval(3,0);n.addFieldName("idmin"),n.addInt32(e.vmin),n.addFieldName("idmax"),n.addInt32(e.vmax)}}(e,t,i);break;case r.G.enumMultipatch:(0,r.g)(0);break;default:(0,r.d)("exportToJSON")}null!==n&&(i.addFieldName("spatialReference"),function(e,t,n){n.startObject();let i=0;t.isCustomWkid()||(i=t.getOldID());let s=0;const o=t.getVCS();if(null!==o&&(o.isCustomWkid()||(s=o.getOldID()),s<=0&&(i=0)),i>0){n.addFieldName("wkid"),n.addInt32(i);const e=t.getLatestID();if(e>0&&e!==i&&(n.addFieldName("latestWkid"),n.addInt32(e)),s>0){n.addFieldName("vcsWkid"),n.addInt32(s);const e=t.getLatestVerticalID();e!==s&&(n.addFieldName("latestVcsWkid"),n.addInt32(e))}}if(0===t.getCoordinateSystemType())n.addFieldName("wkid"),n.addNull(),null!==t.getUnit()&&(n.addFieldName("unit"),function(e,t,n){n.startObject();const i=t.getID();i<=0&&(0,r.a)("cannot export unit that has no valid WKID"),n.addFieldName("uwkid"),n.addInt32(i),n.endObject()}(0,t.getUnit(),n));else if(i<=0||1&e){let r="";64&e&&(r=t.getText2(),n.addFieldName("wkt2"),n.addString(r));const i=t.getText();i!==r&&(n.addFieldName("wkt"),n.addString(i))}if(16&e){const e=new a.a;t.queryPrecisionDescriptor(e),n.addFieldName("xyTolerance"),n.addDouble(e.getTolerance(0)),n.addFieldName("zTolerance"),n.addDouble(e.getTolerance(1)),n.addFieldName("mTolerance"),n.addDouble(e.getTolerance(2)),n.addFieldName("falseX"),n.addDouble(e.getFalseX()),n.addFieldName("falseY"),n.addDouble(e.getFalseY()),n.addFieldName("xyUnits"),n.addDouble(e.getGridUnitsXY()),n.addFieldName("falseZ"),n.addDouble(e.getFalseZ()),n.addFieldName("zUnits"),n.addDouble(e.getGridUnitsZ()),n.addFieldName("falseM"),n.addDouble(e.getFalseM()),n.addFieldName("mUnits"),n.addDouble(e.getGridUnitsM())}n.endObject()}(e,n,i)),i.endObject()}}(e,t,n,i)}exportSpatialReference(e,t,n,i){(0,r.g)(0)}exportProjectionTransformation(e,t,n,i){(0,r.g)(0)}exportDatumTransformation(e,t,n,i){(0,r.g)(0)}static geometryTypeToString(e){return(0,r.g)(0),""}},se=new class{getOperatorType(){return 10404}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,i,u,m,l){let c;"string"==typeof n?(c=new re({jsonString:n}),c.nextToken()):c=n,1!==c.currentToken()&&(0,r.a)("failed to import map geometry: start of object is expected");const d=function(e,t,n,i,a){let u=!1,m=!1,l=!1,c=!1,d=!1,h=!1,g=!1,N=!1,T=!1,v=!1,x=!1,A=!1,S=!1,w=!1,C=!1,D=!1,F=!1,j=!1,O=!1,I=!1,z=!1,E=!1,G=!1,P=!1,B=Number.NaN,R=Number.NaN,V=Number.NaN,M=Number.NaN,U=0,W=Number.NaN,X=Number.NaN,Y=Number.NaN,L=Number.NaN,q=Number.NaN,K=Number.NaN,J=Number.NaN,Z=Number.NaN,H=0,Q=0,$=!1,ee=!1,te=null,ne=null,re=null,ie=null,ae=null;for(;3!==n.nextToken();){const t=n.currentString();if(n.nextToken(),"spatialReference"===t){if(a&&!u){u=!0,1===n.currentToken()?ie=_(n):10!==n.currentToken()&&(0,r.a)("failed to parse spatial reference: object or null is expected");continue}}else if(i)if("hasZ"===t){if(!m){m=!0,$=11===n.currentToken();continue}}else if("hasM"===t){if(!l){l=!0,ee=11===n.currentToken();continue}}else if("rings"===t){if(!(d||h||e!==r.G.enumUnknown&&e!==r.G.enumPolygon)){d=!0,({geometry:ae,as:te,bs:ne}=f(!0,!1,0,n));continue}}else if("curveRings"===t){if(!h&&(e===r.G.enumUnknown||e===r.G.enumPolygon)){h=!0,({geometry:ae,as:te,bs:ne}=f(!0,!0,0,n));continue}}else if("paths"===t){if(!(g||N||e!==r.G.enumUnknown&&e!==r.G.enumPolyline)){g=!0,({geometry:ae,as:te,bs:ne}=f(!1,!1,0,n));continue}}else if("curvePaths"===t){if(!N&&(e===r.G.enumUnknown||e===r.G.enumPolyline)){N=!0,({geometry:ae,as:te,bs:ne}=f(!1,!0,0,n));continue}}else if("points"===t){if(!T&&(e===r.G.enumUnknown||e===r.G.enumMultiPoint)){T=!0,({geometry:ae,as:te,bs:ne}=p(0,n));continue}}else if("ids"===t){if(!c){c=!0,re=k(0,n);continue}}else if("x"===t){if(!v&&(e===r.G.enumUnknown||e===r.G.enumPoint)){v=!0,B=b(n);continue}}else if("y"===t){if(!x&&(e===r.G.enumUnknown||e===r.G.enumPoint)){x=!0,R=b(n);continue}}else if("z"===t){if(!A&&(e===r.G.enumUnknown||e===r.G.enumPoint)){A=!0,V=b(n);continue}}else if("m"===t){if(!S&&(e===r.G.enumUnknown||e===r.G.enumPoint)){S=!0,M=b(n);continue}}else if("id"===t){if(!w&&(e===r.G.enumUnknown||e===r.G.enumPoint)){w=!0,U=y(n);continue}}else if("xmin"===t){if(!C&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){C=!0,W=b(n);continue}}else if("ymin"===t){if(!D&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){D=!0,X=b(n);continue}}else if("mmin"===t){if(!z&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){z=!0,J=b(n);continue}}else if("zmin"===t){if(!O&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){O=!0,q=b(n);continue}}else if("idmin"===t){if(!G&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){G=!0,H=y(n);continue}}else if("xmax"===t){if(!F&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){F=!0,Y=b(n);continue}}else if("ymax"===t){if(!j&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){j=!0,L=b(n);continue}}else if("mmax"===t){if(!E&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){E=!0,Z=b(n);continue}}else if("zmax"===t){if(!I&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){I=!0,K=b(n);continue}}else if("idmax"===t){if(!P&&(e===r.G.enumUnknown||e===r.G.enumEnvelope)){P=!0,Q=y(n);continue}}else"materials"===t&&(0,r.g)(0);n.skipChildren()}if(d||h||g||N||T){let e=null,t=null;const n=ae;$&&(ae.addAttribute(1),e=te,e||(e=(0,s.a2)(n.getPointCount(),Number.NaN))),ee&&(ae.addAttribute(2),t=$?ne:te),null!=re&&ae.addAttribute(3),$&&null!=e&&n.setAttributeStreamRef(1,e),ee&&null!=t&&n.setAttributeStreamRef(2,t),null!=re&&function(e,t){if(e.isEmpty())return;const n=(0,s.a7)(2,0),i=e.getGeometryType();let a=0;i===o.M.type?a=1:i===o.P.type||i===o.a.type?a=e.getPathCount():(0,r.d)("not implemented"),n.resize(e.getPointCount(),0);let u=0;for(let s=0;s<a;++s){const a=t.read(u);u++;const m=u+a;let l=0,c=0;i===o.M.type?l=e.getPointCount():i===o.P.type||i===o.a.type?(l=e.getPathSize(s),c=e.getPathStart(s)):(0,r.d)("not implemented");for(let e=0,r=Math.min(a,l);e<r;++e)n.write(c,t.read(u)),u++,c++;u=m}e.getImpl().setAttributeStreamRef(3,n)}(n,re)}else if(v||x||S||A||w){(0,s.a5)(B,R)||(0,r.a)("failed to parse point: x and y must be finite or nan"),(Number.isNaN(R)||Number.isNaN(B))&&(B=Number.NaN,R=Number.NaN);const e=new s.P({x:B,y:R});A&&e.setZ(V),S&&e.setM(M),w&&e.setID(U),ae=e}else if(C||D||F||j||O||I||z||E||G||P){(Number.isNaN(X)||Number.isNaN(Y)||Number.isNaN(L))&&(W=Number.NaN);const e=new s.E({xmin:W,ymin:X,xmax:Y,ymax:L});O&&I&&e.setInterval(1,0,q,K),z&&E&&e.setInterval(2,0,J,Z),G&&P&&e.setInterval(3,0,H,Q),ae=e}return{...ae?{geom:ae}:{},...ie?{sr:ie}:{}}}(t,0,c,i,u);return new a.aY(d)}importSpatialReference(e){const t=_(e);return null===t&&(0,r.d)("failed to import spatial reference"),t}importProjectionTransformation(e,t){return(0,r.g)(0),{}}importDatumTransformation(e,t){return(0,r.g)(0),{}}static stringToGeometryType(e){return(e=e.toLowerCase()).startsWith("esrigeometry")||(0,r.a)("string_to_geometry_type"),e.endsWith("point")?r.G.enumPoint:e.endsWith("envelope")?r.G.enumEnvelope:e.endsWith("multipoint")?r.G.enumMultiPoint:e.endsWith("polyline")?r.G.enumPolyline:e.endsWith("polygon")?r.G.enumPolygon:void(0,r.a)("string_to_geometry_type")}};function oe(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function ue(e,t){const{includeGeometry:n=!0,includeSpatialReference:i=!0}=t??{};i&&(e.spatialReference?.latestVcsWkid||e.spatialReference?.vcsWkid)&&(e={...e,spatialReference:{...e.spatialReference}},delete e.spatialReference?.latestVcsWkid,delete e.spatialReference?.vcsWkid);const a=new c(e,{strict:!1});return a.nextToken(),se.execute(0,r.G.enumUnknown,a,n,i)}function me(e){let t=null;return[e.map(e=>{if(null==t){const n=le(e);return t=n.getSpatialReference(),n.getGeometry()}return ce(e)}),t]}function le(e){if(e.spatialReference instanceof u.A){const{wkt2:t}=e.spatialReference;e={...e,spatialReference:e.spatialReference.toJSON()},e.spatialReference.wkt2??=t}return ue(e)}function ce(e){return ue(e,{includeSpatialReference:!1}).getGeometry()}function de(e){if(e instanceof u.A){const{wkt2:t}=e;e=e.toJSON(),e.wkt2??=t}const t=ue({x:0,y:0,spatialReference:e},{includeGeometry:!1}).getSpatialReference();return 0!==t?.getCoordinateSystemType()?t:null}function he(e,t){return e instanceof a.aY&&(t=e.getSpatialReference(),e=e.getGeometry()),e?.isEmpty()?null:(ie.reset(),ae.execute(0,e,t,ie),ie.getObject())}},90293:(e,t,n)=>{n(79187),n(55537),n(88885),n(95213),n(83661);var r=n(39117),i=n(86211),a=n(21325);(0,r.k)()||(0,r.l)(e=>{let t,n;"number"==typeof e?t=e:n=e;const r={wkid:t,wkt:n};let s,o;if(n){s=(0,i.x1)(n);const e=(0,a.EA)(r);if(!s&&!e)throw new Error(`Unsupported WKT type: ${n}`)}else s=!(0,a.EA)(r);return o=t&&i.yD.has(t)?Math.PI/200:s?(0,i.Ao)(r):Math.PI/180,{isPCS:s,metersOrRadiansPerUnit:o,semiMajor:0,wkidOrWkt:e}})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[807,3169,8125],{10767:(e,t,n)=>{n.d(t,{a:()=>o,e:()=>u,i:()=>c,s:()=>i});var r=n(70031),a=n(78125);const s=new r.O;function o(e){const t=(0,a.getSpatialReference)(e);return s.accelerateGeometry((0,a.fromGeometry)(e),(0,a.fromSpatialReference)(t),1)}function u(e,t){return s.execute((0,a.fromGeometry)(e),(0,a.fromGeometry)(t),(0,a.fromSpatialReference)(e.spatialReference),null)}const i=s.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:o,execute:u,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},25275:(e,t,n)=>{n.r(t),n.d(t,{accelerateGeometry:()=>r.a,execute:()=>r.e,supportsCurves:()=>r.s}),n(70031),n(78125);var r=n(10767)},70031:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(39117);class a extends r.I{getOperatorType(){return 4}execute(e,t,n,a){return!(0,r.J)(e,t,n,4,a)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>a});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class a extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>G,fromGeometry:()=>x,fromMultipoint:()=>C,fromPoint:()=>M,fromPolygon:()=>V,fromPolyline:()=>v,fromSpatialReference:()=>R,getSpatialReference:()=>g,toExtent:()=>d,toGeometry:()=>P,toMultipoint:()=>w,toPoint:()=>Z,toPolygon:()=>_,toPolyline:()=>S});var r=n(83661),a=(n(79187),n(55537)),s=n(95213),o=n(88885),u=n(5443),i=n(48526),c=n(86738),l=n(39829),m=n(82799),f=(n(90293),n(83299));const h="_gxVersion",p=2,y=1;function g(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return M(e);case"multipoint":return C(e);case"polyline":return v(e);case"polygon":return V(e);case"extent":return G(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function G(e){if(!e.getCacheValue(h)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(h,t)}return e.getCacheValue(h)}function C(e){if(!e.getCacheValue(h)){const t=new o.M,n=new s.P,r=e.points,a=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),u&&n.setZ(s[2]??0),a&&n.setM(s[i]??NaN),t.add(n)}e.setCacheValue(h,t)}return e.getCacheValue(h)}function M(e){if(!e.getCacheValue(h)){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(h,t)}return e.getCacheValue(h)}function V(e){if(!e.getCacheValue(h)){const{curveRings:t,hasM:n,hasZ:r,rings:a}=e,s=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:a});e.setCacheValue(h,s)}return e.getCacheValue(h)}function v(e){if(!e.getCacheValue(h)){const{curvePaths:t,hasM:n,hasZ:r,paths:a}=e,s=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:a});e.setCacheValue(h,s)}return e.getCacheValue(h)}function R(e){return(0,f.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case a.G.enumPoint:return Z(e,t);case a.G.enumEnvelope:return d(e,t);case a.G.enumMultiPoint:return w(e,t);case a.G.enumPolyline:return S(e,t);case a.G.enumPolygon:return _(e,t)}return null}function d(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(h,e),n}function w(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),a=n.hasZ(),o=[],u=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];a&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const c=new i.A({hasM:r,hasZ:a,points:o,spatialReference:t});return c.setCacheValue(h,e),c}function Z(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),a=e.getDescription();return a.hasM()&&(n.m=e.getM()),a.hasZ()&&(n.z=e.getZ()),n.setCacheValue(h,e),n}function _(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}function S(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2593],{18251:(t,e,r)=>{r.d(e,{A:()=>l});var s=r(31635),n=r(69540),a=r(25482),i=r(91429),o=r(51850),u=r(93223);let l=class extends((0,n.OU)(a.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},20615:(t,e,r)=>{r.d(e,{I:()=>i});var s=r(2272),n=r(80893),a=r(61956);function i(t,e,r,i){return(0,n.gW)((0,s.Dl)(t),a.A.from(e),r,i)}},24770:(t,e,r)=>{r.d(e,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>c,ui:()=>p,up:()=>b,vt:()=>l,yo:()=>y});var s=r(34727),n=r(58083),a=r(67026),i=r(82534),o=r(38954),u=r(51850);function l(t=b){return[t[0],t[1],t[2],t[3]]}function c(t,e,r=l()){return(0,o.d)(r,t),r[3]=e,r}function p(t,e=l()){const r=(0,n.l)(M,t);return g(e,(0,s.KJ)((0,a.Xd)(e,r))),e}function d(t,e,r=l()){return(0,a.x8)(M,t,m(t)),(0,a.x8)(A,e,m(e)),(0,a.lw)(M,A,M),g(r,(0,s.KJ)((0,a.Xd)(r,M)))}function h(t,e,r,s=l()){return c(u.Cw,t,S),c(u.JP,e,_),c(u.Cb,r,v),d(S,_,S),d(S,v,s),s}function y(t){return t}function f(t){return t[3]}function m(t){return(0,s.kU)(t[3])}function g(t,e){return t[3]=e,t}const b=[0,0,1,0],M=(0,i.vt)(),A=(0,i.vt)(),S=(l(),l()),_=l(),v=l()},27615:(t,e,r)=>{r.d(e,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>c,yJ:()=>p});var s=r(38954),n=r(86738),a=r(95696),i=r(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function l(t,e){if(!o(t))return null;const[r,s,a]=t.origin;return new n.A({x:r,y:s,z:a,spatialReference:e})}function c(t,e){const{x:r,y:s,z:n,spatialReference:o}=t,u=[r,s,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new i.A({origin:u}):new a.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,s.m)(t.origin,e.origin))}},38954:(t,e,r)=>{r.d(e,{A:()=>c,B:()=>p,C:()=>b,D:()=>E,E:()=>A,F:()=>P,G:()=>G,H:()=>J,a:()=>D,b:()=>a,c:()=>g,d:()=>i,e:()=>l,f:()=>x,g:()=>q,h:()=>o,i:()=>u,j:()=>m,l:()=>w,m:()=>T,n:()=>v,o:()=>_,p:()=>F,q:()=>S,r:()=>I,s:()=>M,t:()=>R,u:()=>d,v:()=>j,w:()=>U,x:()=>f,y:()=>y,z:()=>h});var s=r(51850),n=r(34304);function a(t){const e=t[0],r=t[1],s=t[2];return Math.sqrt(e*e+r*r+s*s)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,s){return t[0]=e,t[1]=r,t[2]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function l(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function p(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function y(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function f(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function g(t,e,r,s){return t[0]=e[0]+r[0]*s,t[1]=e[1]+r[1]*s,t[2]=e[2]+r[2]*s,t}function b(t,e){const r=e[0]-t[0],s=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+s*s+n*n)}function M(t,e){const r=e[0]-t[0],s=e[1]-t[1],n=e[2]-t[2];return r*r+s*s+n*n}function A(t){const e=t[0],r=t[1],s=t[2];return e*e+r*r+s*s}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const r=e[0],s=e[1],n=e[2];let a=r*r+s*s+n*n;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 q(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function x(t,e,r){const s=e[0],n=e[1],a=e[2],i=r[0],o=r[1],u=r[2];return t[0]=n*u-a*o,t[1]=a*i-s*u,t[2]=s*o-n*i,t}function w(t,e,r,s){const n=e[0],a=e[1],i=e[2];return t[0]=n+s*(r[0]-n),t[1]=a+s*(r[1]-a),t[2]=i+s*(r[2]-i),t}function F(t,e,r){const s=e[0],n=e[1],a=e[2];return t[0]=r[0]*s+r[4]*n+r[8]*a+r[12],t[1]=r[1]*s+r[5]*n+r[9]*a+r[13],t[2]=r[2]*s+r[6]*n+r[10]*a+r[14],t}function R(t,e,r){const s=e[0],n=e[1],a=e[2];return t[0]=s*r[0]+n*r[3]+a*r[6],t[1]=s*r[1]+n*r[4]+a*r[7],t[2]=s*r[2]+n*r[5]+a*r[8],t}function I(t,e,r){const s=r[0],n=r[1],a=r[2],i=r[3],o=e[0],u=e[1],l=e[2],c=n*l-a*u,p=a*o-s*l,d=s*u-n*o,h=n*d-a*p,y=a*c-s*d,f=s*p-n*c,m=2*i;return t[0]=o+c*m+2*h,t[1]=u+p*m+2*y,t[2]=l+d*m+2*f,t}const C=(0,s.vt)(),O=(0,s.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function P(t,e){if(t===e)return!0;const r=t[0],s=t[1],a=t[2],i=e[0],o=e[1],u=e[2],l=(0,n.FD)();return Math.abs(r-i)<=l*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=l*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))}function E(t,e,r){const s=r[0]-e[0],n=r[1]-e[1],a=r[2]-e[2];let i=s*s+n*n+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=s*i,t[1]=n*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=l,N=c,Q=p,G=b,j=M,J=a,U=A;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:u,angle:function(t,e){v(C,t),v(O,e);const r=q(C,O);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,s,n,a){const i=1-a,o=i*i,u=a*a,l=o*i,c=3*a*o,p=3*u*i,d=u*a;return t[0]=e[0]*l+r[0]*c+s[0]*p+n[0]*d,t[1]=e[1]*l+r[1]*c+s[1]*p+n[1]*d,t[2]=e[2]*l+r[2]*c+s[2]*p+n[2]*d,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,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:i,cross:x,crossAndNormalize:function(t,e,r){const s=e[0],n=e[1],a=e[2],i=r[0],o=r[1],u=r[2],l=n*u-a*o,c=a*i-s*u,p=s*o-n*i,d=Math.sqrt(l*l+c*c+p*p);return t[0]=l/d,t[1]=c/d,t[2]=p/d,t},direction:E,dist:G,distance:b,div:Q,divide:p,dot:q,equals:P,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,r,s,n,a){const i=a*a,o=i*(2*a-3)+1,u=i*(a-2)+a,l=i*(a-1),c=i*(3-2*a);return t[0]=e[0]*o+r[0]*u+s[0]*l+n[0]*c,t[1]=e[1]*o+r[1]*u+s[1]*l+n[1]*c,t[2]=e[2]*o+r[2]*u+s[2]*l+n[2]*c,t},inverse:_,len:J,length:a,lerp:w,max:f,min:y,mul:N,multiply:c,negate:S,normalize:v,random:function(t,e=1){const r=n.Ov,s=2*r()*Math.PI,a=2*r()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(s)*i,t[1]=Math.sin(s)*i,t[2]=a*e,t},rotateX:function(t,e,r,s){const n=[],a=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(s)-n[2]*Math.sin(s),a[2]=n[1]*Math.sin(s)+n[2]*Math.cos(s),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateY:function(t,e,r,s){const n=[],a=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],a[0]=n[2]*Math.sin(s)+n[0]*Math.cos(s),a[1]=n[1],a[2]=n[2]*Math.cos(s)-n[0]*Math.sin(s),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateZ:function(t,e,r,s){const n=[],a=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],a[0]=n[0]*Math.cos(s)-n[1]*Math.sin(s),a[1]=n[0]*Math.sin(s)+n[1]*Math.cos(s),a[2]=n[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[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:m,scaleAndAdd:g,set:o,sign:h,sqrDist:j,sqrLen:U,squaredDistance:M,squaredLength:A,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:l,transformMat3:R,transformMat4:F,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},63579:(t,e,r)=>{r.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>h,fH:()=>f,in:()=>y,yr:()=>l});var s=r(11254),n=r(4576),a=(r(44208),r(74887)),i=r(20557);class o{constructor(t,e,r){this.assetName=t,this.assetMimeType=e,this.parts=r}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const r=await Promise.all(e.map(e=>e.toBlob(t)));return(0,a.Te)(t),new Blob(r)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,a.Te)(t),e}}function l(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(d):d(t.files);case"service":return t.assets.some(d);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function d(t){if(t instanceof File){const{type:e,name:r}=t;return c.test(e)||p.test(r)}return c.test(t.assetMimeType)||p.test(t.assetName)}function h(t,e){if(!t)return!1;const{source:r}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(r,e)}function y(t,e){if(t===e)return!0;const{source:r}=t,{source:s}=e;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...r.assets].sort(t),n=[...s.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function f(t,e){return t instanceof File?(0,i.rq)(t,e):(0,i.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},64314:(t,e,r)=>{r.d(e,{A:()=>O});var s=r(31635),n=r(69622),a=r(49186),i=r(44208),o=r(74887),u=r(84952),l=r(91429),c=r(21325),p=r(20557),d=r(27733),h=r(2272),y=r(20615),f=r(74910),m=r(78286),g=r(99199),b=r(97768),M=r(62815),A=r(90708);function S(t,e){return e}function _(t,e,r,s){switch(r){case 0:return w(t,e+s,0);case 1:return"lowerLeft"===t.originPosition?w(t,e+s,1):function({translate:t,scale:e},r,s){return t[s]-r*e[s]}(t,e+s,1)}}function v(t,e,r,s){return 2===r?w(t,e,2):_(t,e,r,s)}function q(t,e,r,s){return 2===r?0===e?0:w(t,e,3):_(t,e,r,s)}function x(t,e,r,s){return 3===r?0===e?0:w(t,e,3):v(t,e,r,s)}function w({translate:t,scale:e},r,s){return t[s]+r*e[s]}class F{constructor(t){this._options=t,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=S,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(t){if(this._options.applyTransform&&(t.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!t.hasZ)return;const e=(0,M.N)(t.geometryType,this._options.sourceSpatialReference,t.spatialReference);if(null!=e)for(const r of t.features)e(r.geometry)}createSpatialReference(){return{}}addField(t,e){const r=t.fields;(0,b.Lw)(r),r.push(e);const s=r.map(t=>t.name);this._attributesConstructor=function(){for(const t of s)this[t]=null}}addFeature(t,e){t.features.push(e)}prepareFeatures(t){switch(this._transform=t.transform,this._options.applyTransform&&t.transform&&(this._applyTransform=this._deriveApplyTransform(t)),this._mValueOffset=null,this._vertexDimension=2,t.hasZ&&this._vertexDimension++,t.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),t.geometryType){case"esriGeometryPoint":this.addCoordinate=(t,e,r)=>this.addCoordinatePoint(t,e,r),this.createGeometry=t=>this.createPointGeometry(t);break;case"esriGeometryPolygon":this.addCoordinate=(t,e,r)=>this._addCoordinatePolygon(t,e,r),this.createGeometry=t=>this._createPolygonGeometry(t);break;case"esriGeometryPolyline":this.addCoordinate=(t,e,r)=>this._addCoordinatePolyline(t,e,r),this.createGeometry=t=>this._createPolylineGeometry(t);break;case"esriGeometryMultipoint":this.addCoordinate=(t,e,r)=>this._addCoordinateMultipoint(t,e,r),this.createGeometry=t=>this._createMultipointGeometry(t)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(t,e,r){0===this._lengths.length&&(this._toAddInCurrentPath=e),this._lengths.push(e)}addQueryGeometry(t,e){const{queryGeometry:r,queryGeometryType:s}=e,n=r.justXY();this._transform&&(0,A.aQ)(n,this._transform);const a=(0,A.zv)(n,s,!1,!1);t.queryGeometryType=s,t.queryGeometry={...a}}createPointGeometry(t){const e={x:0,y:0,spatialReference:t.spatialReference};return t.hasZ&&(e.z=0),t.hasM&&(e.m=0),e}addCoordinatePoint(t,e,r){const s=this._transform;switch(e=this._applyTransform(s,e,r,0),r){case 0:t.x=e;break;case 1:t.y=e;break;case 2:"z"in t?t.z=e:t.m=e;break;case 3:t.m=e}}_transformPathLikeValue(t,e){let r=0;e<=1&&(r=this._previousCoordinate[e],this._previousCoordinate[e]+=t);const s=this._transform;return null!==this._mValueOffset&&0===t&&e>0&&!(e%this._mValueOffset)?0:this._applyTransform(s,t,e,r)}_addCoordinatePolyline(t,e,r){this._dehydratedAddPointsCoordinate(t.paths,e,r)}_addCoordinatePolygon(t,e,r){this._dehydratedAddPointsCoordinate(t.rings,e,r)}_addCoordinateMultipoint(t,e,r){0===r&&t.points.push([]);const s=this._transformPathLikeValue(e,r);t.points[t.points.length-1].push(s)}_createPolygonGeometry(t){return{rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createPolylineGeometry(t){return{paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createMultipointGeometry(t){return{points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_dehydratedAddPointsCoordinate(t,e,r){0===r&&0===this._toAddInCurrentPath--&&(t.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(e,r),n=t[t.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),n.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(t){const{hasZ:e,hasM:r}=t;return e&&r?x:e?v:r?q:_}}var R=r(80893),I=r(22671),C=r(61956);let O=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const r=await this.executeJSON(t,e);return this.featureSetFromJSON(t,r,e)}async executeJSON(t,e){const r=this._normalizeQuery(t),s=null!=t.outStatistics?.[0],n=(0,i.A)("featurelayer-pbf-statistics"),a=(!s||n)&&!0!==t.returnTrueCurves;let o;if(this.pbfSupported&&a)try{o=await async function(t,e,r,s){const n=(0,h.Dl)(t),a={...r},i=C.A.from(e),o=!i.quantizationParameters;return await(0,R.IJ)(n,i,new F({sourceSpatialReference:i.sourceSpatialReference,applyTransform:o}),a,s)}(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return this.pbfSupported&&a||(o=await(0,g.e)(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})),this._normalizeFields(o.fields),o}async featureSetFromJSON(t,e,s){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return I.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([r.e(8487),r.e(36),r.e(5066)]).then(r.bind(r,40050)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,y.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,f.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:s},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let a=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),n(this.url,a,e)}async executeRelationshipQueryForCount(t,e){const[{default:s},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let a=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),n(this.url,a,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:s,fetchAttachments:n,processAttachmentQueryResult:a}=await(0,o.qr)(r.e(9239).then(r.bind(r,9239)),e),i=(0,h.Dl)(this.url);return a(i,await(this.queryAttachmentsSupported?s(i,t,e):n(i,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(r.bind(r,33103)),e);return s(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(r.bind(r,80566)),e);return s(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(r.bind(r,11273)),e);return s(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(r.bind(r,21277)),e);return s(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(r.bind(r,8018)),e);return s(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(r.bind(r,10980)),e);return s(this.parsedUrl,t,e)}_normalizeQuery(t){let e=C.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.L.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(t);if(null!=r&&s){if(e=e===t?e.clone():e,e.formatOf3DObjects=s,e.outSpatialReference&&!(0,c.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new a.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:s,originY:n,originZ:a,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:c,scaleZ:p,rotationX:d,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;e.outFields.push(s,n,a,i,o,u,l,c,p,d,h,y,f)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:r}){return!0!==t||"xyFootprint"===e||r?null:(0,p.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:d.L})],O.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],O.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],O.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],O.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],O.prototype,"url",void 0),O=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],O)},64714:(t,e,r)=>{r.d(e,{F0:()=>o,Vx:()=>c,e2:()=>d,f:()=>h});var s=r(44208),n=r(4718),a=r(99352),i=r(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?i.Cb:"esriGeometryPolyline"===t?i.yM:i.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this${p(e)} = null;`;for(const e in t)r+=`this${p(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function d(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function h(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:a.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67026:(t,e,r)=>{r.d(e,{A6:()=>f,Xd:()=>c,Xr:()=>h,hZ:()=>g,lw:()=>p,t2:()=>R,x8:()=>l});var s=r(29242),n=r(82534),a=r(51850),i=r(34304),o=r(38954),u=r(87317);function l(t,e,r){r*=.5;const s=Math.sin(r);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),s=Math.sin(r/2);return s>(0,i.FD)()?(t[0]=e[0]/s,t[1]=e[1]/s,t[2]=e[2]/s):(t[0]=1,t[1]=0,t[2]=0),r}function p(t,e,r){const s=e[0],n=e[1],a=e[2],i=e[3],o=r[0],u=r[1],l=r[2],c=r[3];return t[0]=s*c+i*o+n*l-a*u,t[1]=n*c+i*u+a*o-s*l,t[2]=a*c+i*l+s*u-n*o,t[3]=i*c-s*o-n*u-a*l,t}function d(t,e,r,s){const n=e[0],a=e[1],o=e[2],u=e[3];let l,c,p,d,h,y=r[0],f=r[1],m=r[2],g=r[3];return c=n*y+a*f+o*m+u*g,c<0&&(c=-c,y=-y,f=-f,m=-m,g=-g),1-c>(0,i.FD)()?(l=Math.acos(c),p=Math.sin(l),d=Math.sin((1-s)*l)/p,h=Math.sin(s*l)/p):(d=1-s,h=s),t[0]=d*n+h*y,t[1]=d*a+h*f,t[2]=d*o+h*m,t[3]=d*u+h*g,t}function h(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function y(t,e){const r=e[0]+e[4]+e[8];let s;if(r>0)s=Math.sqrt(r+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const n=(r+1)%3,a=(r+2)%3;s=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*a+a]+1),t[r]=.5*s,s=.5/s,t[3]=(e[3*n+a]-e[3*a+n])*s,t[n]=(e[3*n+r]+e[3*r+n])*s,t[a]=(e[3*a+r]+e[3*r+a])*s}return t}function f(t,e,r,s){const n=.5*Math.PI/180;e*=n,r*=n,s*=n;const a=Math.sin(e),i=Math.cos(e),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),c=Math.cos(s);return t[0]=a*u*c-i*o*l,t[1]=i*o*c+a*u*l,t[2]=i*u*l-a*o*c,t[3]=i*u*c+a*o*l,t}const m=u.f,g=u.c,b=u.i,M=p,A=u.s,S=u.h,_=u.l,v=u.j,q=v,x=u.d,w=x,F=u.n,R=u.a,I=u.e,C=(0,a.vt)(),O=(0,a.fA)(1,0,0),T=(0,a.fA)(0,1,0),P=(0,n.vt)(),E=(0,n.vt)(),D=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],s=e[1],n=e[2];return t[0]=r,t[1]=s,t[2]=n,t[3]=Math.sqrt(Math.abs(1-r*r-s*s-n*n)),t},conjugate:h,copy:m,dot:S,equals:I,exactEquals:R,fromEuler:f,fromMat3:y,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],s=e[1],n=e[2],a=e[3],i=r*r+s*s+n*n+a*a,o=i?1/i:0;return t[0]=-r*o,t[1]=-s*o,t[2]=-n*o,t[3]=a*o,t},len:q,length:v,lerp:_,mul:M,multiply:p,normalize:F,random:function(t){const e=i.Ov,r=e(),s=e(),n=e(),a=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*s),t[1]=a*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,r){r*=.5;const s=e[0],n=e[1],a=e[2],i=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+i*o,t[1]=n*u+a*o,t[2]=a*u-n*o,t[3]=i*u-s*o,t},rotateY:function(t,e,r){r*=.5;const s=e[0],n=e[1],a=e[2],i=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u-a*o,t[1]=n*u+i*o,t[2]=a*u+s*o,t[3]=i*u-n*o,t},rotateZ:function(t,e,r){r*=.5;const s=e[0],n=e[1],a=e[2],i=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+n*o,t[1]=n*u-s*o,t[2]=a*u+i*o,t[3]=i*u-a*o,t},rotationTo:function(t,e,r){const s=(0,o.g)(e,r);return s<-.999999?((0,o.f)(C,O,e),(0,o.H)(C)<1e-6&&(0,o.f)(C,T,e),(0,o.n)(C,C),l(t,C,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(C,e,r),t[0]=C[0],t[1]=C[1],t[2]=C[2],t[3]=1+s,F(t,t))},scale:A,set:g,setAxes:function(t,e,r,s){const n=D;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=s[0],n[4]=s[1],n[7]=s[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],F(t,y(t,n))},setAxisAngle:l,slerp:d,sqlerp:function(t,e,r,s,n,a){return d(P,e,n,a),d(E,r,s,a),d(t,P,E,2*a*(1-a)),t},sqrLen:w,squaredLength:x,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},72593:(t,e,r)=>{r.r(e),r.d(e,{default:()=>$});var s=r(31635),n=r(92602),a=r(11254),i=r(4576),o=r(49186),u=r(44208),l=r(66552),c=r(92474),p=r(53966),d=r(93637),h=r(74887),y=r(36708),f=r(84952),m=r(13069),g=r(91429),b=r(5443),M=r(16930),A=r(95696),S=r(27615),_=r(63579),v=r(52106),q=r(86211),x=r(91218),w=r(65864),F=r(73836),R=r(21325),I=r(78628);async function C(t,e,r){const{geometry:s}=e,n={...e.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:e}=r,{origin:a,spatialReference:i,vertexSpace:o}=s,u=s.transform??new F.A,l="local"===o.type,c=t.spatialReference,p=c.isGeographic,d=(0,R.aI)(c,i),h=(0,x.isEqualBaseGCS)(i,c)&&(0,x.canProjectWithoutEngine)(i,c);if(!(l&&p&&h||!l&&!p&&d))return null;const y=(0,x.projectWithoutEngine)(a,i,c);if(null==y)return null;if(n[e.originX]=y.x,n[e.originY]=y.y,n[e.originZ]=y.z??0,null!=u){const{translation:t,scale:r,rotation:s}=u,a=l?1:(0,q.KX)(i)/(0,q.KX)(c);n[e.translationX]=t[0]*a,n[e.translationY]=t[2]*a,n[e.translationZ]=-t[1]*a,n[e.scaleX]=r[0],n[e.scaleY]=r[2],n[e.scaleZ]=r[1],n[e.rotationX]=s[0],n[e.rotationY]=s[2],n[e.rotationZ]=-s[1],n[e.rotationDeg]=s[3]}return{attributes:n}}return null==s?{attributes:n}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:n}}async function O(t,e){const r=await Promise.all((e.addAttachments??[]).map(e=>T(t,e))),s=await Promise.all((e.updateAttachments??[]).map(e=>T(t,e))),n=e.deleteAttachments??[];return r.length||s.length||n.length?{adds:r,updates:s,deletes:[...n]}:null}async function T(t,e){const{feature:r,attachment:s}=e,{globalId:n,name:a,contentType:i,data:o,uploadId:u}=s,l={globalId:n};if(r&&("attributes"in r?l.parentGlobalId=r.attributes?.[t.globalIdField]:r.globalId&&(l.parentGlobalId=r.globalId)),u)l.uploadId=u;else if(o){const t=await(0,f._0)(o);t&&(l.contentType=t.mediaType,l.data=t.data),o instanceof File&&(l.name=o.name)}return a&&(l.name=a),i&&(l.contentType=i),l}function P(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function E(t,e){return new v.A({attributes:t.attributes,geometry:(0,w.rS)({...t.geometry,spatialReference:e})})}function D(t,e){return{adds:t?.adds?.map(t=>E(t,e))||[],updates:t?.updates?.map(t=>({original:E(t[0],e),current:E(t[1],e)}))||[],deletes:t?.deletes?.map(t=>E(t,e))||[],spatialReference:e}}var N=r(64714),Q=r(64314),G=r(60694),j=r(15426),J=r(20557),U=r(99199),Z=r(96520),k=r(61956),B=r(79677),L=r(20816);const V=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),z=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let $=class extends c.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,h.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,r=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(r),Promise.resolve(this)}initialize(){this.addHandles([(0,y.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:r,spatialReference:s,fieldsIndex:n,uniqueIdFields:a}=this.layer,i="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==i;return new Q.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:r,infoFor3D:i,pbfSupported:l,queryAttachmentsSupported:t?.operations?.supportsQueryAttachments??!1,sourceSpatialReference:s,uniqueIdFields:a,url:e.path})}async addAttachment(t,e){await this.load();const{layer:r}=this;await(0,j.VA)(r,"editing");const s=t.attributes[r.objectIdField],n=r.parsedUrl.path+"/"+s+"/addAttachment",i=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,i.query);try{return P((await(0,a.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(s,t)}}async updateAttachment(t,e,r){await this.load();const{layer:s}=this;await(0,j.VA)(s,"editing");const n=t.attributes[s.objectIdField],i=s.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(r,o.query);try{return P((await(0,a.A)(i,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:r}=this;await(0,j.VA)(r,"editing");const s="infoFor3D"in r?r.infoFor3D:null,n=null!=s,u=n||(e?.globalIdUsed??!1),l=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,c=t.addFeatures?.map(t=>C(this.layer,t,s))??[],p=(await Promise.all(c)).filter(i.Ru),d=t.updateFeatures?.map(t=>C(this.layer,t,s))??[],h=(await Promise.all(d)).filter(i.Ru),y=function(t,e,r){if(!e||0===e.length)return[];if(r&&(0,I.zp)(e))return e.map(t=>t.globalId);if((0,I.r3)(e))return e.map(t=>t.objectId);const s=r?t.globalIdField:t.objectIdField;return s?e.map(t=>t.getAttribute(s)):[]}(this.layer,t.deleteFeatures,u);(0,Z.u)(p,h,r.spatialReference);const f=await O(this.layer,t),m=r.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||r.gdbVersion,b={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const M=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:h.length?h:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),b.returnServiceEditsOption=V.toJSON(e?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=h.length?JSON.stringify(h):null,b.deletes=y.length?u?JSON.stringify(y):y.join(","):null,b.attachments=f&&JSON.stringify(f),b.assetMaps=null!=l?JSON.stringify(l):void 0);const A=this._getLayerRequestOptions({method:"post",query:b});M&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);const S=e?.returnServiceEditsOption?r.url:r.parsedUrl.path;let _;try{_=m?await this._asyncApplyEdits(S+"/applyEdits",A):await(0,a.A)(S+"/applyEdits",A)}catch(t){if(!function(t){const e=t.details.raw,r=+e.code,s=+e.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(t))throw t;A.authMode="immediate",_=m?await this._asyncApplyEdits(S+"/applyEdits",A):await(0,a.A)(S+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(t,e){await this.load();const{layer:r}=this;await(0,j.VA)(r,"editing");const s=t.attributes[r.objectIdField],n=r.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(await(0,a.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(P)}catch(t){throw this._createAttachmentErrorResult(s,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,a.A)(`${s}/${r}`,e),{id:i,extent:o,fullExtent:u,timeExtent:l}=n,c=o||u;return{id:i,fullExtent:c&&b.A.fromJSON(c),timeExtent:l&&B.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(t,e={}){await this.load();const r=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,r)}async queryFeatures(t,e){await this.load();const r=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&r.features.length){const e=new Map;if(r.features.forEach(r=>{const s=r.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const r=t.toLowerCase();r&&r in s&&t!==r&&(s[t]=s[r],delete s[r],e.set(r,t))}})}),null!=r.fields)for(const t of r.fields){const r=e.get(t.name.toLowerCase());null!=r&&(t.name=r)}}return r}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,G.Wo)(this.layer.url))return"unavailable";const t=(0,f.fj)(this.layer.url,"status"),e=await(0,a.A)(t,{query:{f:"json"}});return z.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:s}=await r.e(1384).then(r.bind(r,31384));return s(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const r=e.url;null!=r&&("layerId"in e&&(0,f.fj)(r,e.layerId.toString()),this._getOrCreateEditInterceptor(r).before=e=>{const r=e.requestOptions.method??"auto";if("auto"===r||"head"===r){const r=e.requestOptions.query??{};r._ts=t.getTime(),e.requestOptions.query=r}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,i.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const r=(await(0,a.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,a.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,a.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),e?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,a.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:e?.signal}));t=s}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const r=t.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,N.F0)(t.geometryType).renderer;(0,d.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:r}=await(0,a.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));r.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(t){(0,h.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const s=t.addFeatures.filter(t=>t.geometry);if(e.length!==s.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,a=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:s}=e;if((0,S.Hq)(s))n.push(e);else{const s=e.origin,{convertMeshVertexSpace:i}=await Promise.all([r.e(8487),r.e(4496)]).then(r.bind(r,28846)),o=await i(e,new A.A({origin:[s.x,s.y,s.z??0]}));a.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of a)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:a}=t,i=a.getExternalSourcesOnService(s),o=n.getAttribute(r);if(0===i.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i.find(_.dK)??i[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const a=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const r=t?.attachments,s={addFeatureResults:t?.addResults?.map(P)??[],updateFeatureResults:t?.updateResults?.map(P)??[],deleteFeatureResults:t?.deleteResults?.map(P)??[],addAttachmentResults:r?.addResults?r.addResults.map(P):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(P):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(P):[]};return t?.editMoment&&(s.editMoment=t.editMoment),s}(n);if(s.length>0){a.editedFeatureResults=[];for(const t of s){const{editedFeatures:e}=t,r=e?.spatialReference?new M.A(e.spatialReference):null;a.editedFeatureResults.push({layerId:t.id,editedFeatures:D(e,r)})}}return a}_createAttachmentErrorResult(t,e){const r=e.details.messages?.[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...t,query:{gdbVersion:s,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:r,parsedUrl:s}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==r)return!1;const a=(0,J.JZ)(n);if(null==a)return!1;const o=(0,f.fj)(s.path,`../${a.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(e)}const l=u.map(t=>t.getAttribute(r)).filter(i.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=n,d=new k.A({where:`${c} IN (${l.map(t=>`'${t}'`)})`,outFields:[p,c],returnGeometry:!1}),h=await(0,U.s)(o,d),{features:y}=h;return 0!==y.length&&!u.some(t=>{const e=t.getAttribute(r);if(!e)return!0;const{metadata:n}=t.geometry,a=y.filter(t=>t.getAttribute(c)===e);if(0===a.length)return!0;const i=a.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(s).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>i.every(e=>t!==e))})}};(0,s.Cg)([(0,g.MZ)()],$.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],$.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],$.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],$.prototype,"queryTask",null),$=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],$);const H=1e3},73836:(t,e,r)=>{r.d(e,{A:()=>h});var s=r(31635),n=r(69540),a=r(25482),i=r(91429),o=r(58083),u=r(9093),l=r(67026),c=r(82534),p=r(51850),d=r(24770);let h=class extends((0,n.OU)(a.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(d.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,l.x8)(y,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,o.o1)(t,y,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,s.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,s.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,s.Cg)([(0,i.MZ)()],h.prototype,"rotation",null),(0,s.Cg)([(0,i.MZ)()],h.prototype,"localMatrix",null),(0,s.Cg)([(0,i.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,s.Cg)([(0,i.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,c.vt)()},74910:(t,e,r)=>{r.d(e,{L:()=>o});var s=r(5443),n=r(2272),a=r(80893),i=r(61956);async function o(t,e,r){const o=(0,n.Dl)(t),u=await(0,a.Jf)(o,i.A.from(e),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286:(t,e,r)=>{r.d(e,{V:()=>i});var s=r(2272),n=r(80893),a=r(61956);async function i(t,e,r,i){const o=(0,s.Dl)(t),u=await(0,n.Pk)(o,a.A.from(e),r,i);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},82534:(t,e,r)=>{function s(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>n,vt:()=>s,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:n,create:s,fromValues:function(t,e,r,s){return[t,e,r,s]}},Symbol.toStringTag,{value:"Module"}))},95696:(t,e,r)=>{r.d(e,{A:()=>l});var s,n=r(31635),a=r(69540),i=r(25482),o=r(91429),u=r(93223);let l=class extends((0,a.OU)(i.o)){static{s=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},99199:(t,e,r)=>{r.d(e,{e:()=>u,s:()=>o});var s=r(2272),n=r(80893),a=r(22671),i=r(61956);async function o(t,e,r,s){const n=await u(t,e,r,s);return a.A.fromJSON(n)}function u(t,e,r,a){const o=(0,s.Dl)(t),u={...r},l=i.A.from(e);return(0,n.eW)(o,l,l.sourceSpatialReference,u,a)}},99352:(t,e,r)=>{r.d(e,{F:()=>s,P:()=>n});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,7817,8125],{37817:(e,t,n)=>{n.d(t,{execute:()=>s.e}),n(4576),n(90756),n(78125);var s=n(68925)},68925:(e,t,n)=>{n.d(t,{c:()=>c,e:()=>i});var s=n(4576),r=n(90756),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,r.g)((0,o.fromGeometry)(e),(0,o.fromPolyline)(t),(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n)).filter(s.Ru)}const u=(0,r.f)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>s,S:()=>r});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class r extends s{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>_,fromGeometry:()=>d,fromMultipoint:()=>C,fromPoint:()=>G,fromPolygon:()=>x,fromPolyline:()=>E,fromSpatialReference:()=>v,getSpatialReference:()=>f,toExtent:()=>P,toGeometry:()=>w,toMultipoint:()=>V,toPoint:()=>M,toPolygon:()=>R,toPolyline:()=>k});var s=n(83661),r=(n(79187),n(55537)),o=n(95213),i=n(88885),u=n(5443),c=n(48526),a=n(86738),m=n(39829),l=n(82799),h=(n(90293),n(83299));const y="_gxVersion",p=2,g=1;function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return G(e);case"multipoint":return C(e);case"polyline":return E(e);case"polygon":return x(e);case"extent":return _(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function _(e){if(!e.getCacheValue(y)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(y,t)}return e.getCacheValue(y)}function C(e){if(!e.getCacheValue(y)){const t=new i.M,n=new o.P,s=e.points,r=e.hasM,u=e.hasZ,c=u?3:2;for(let e=0,o=s.length;e<o;e++){const o=s[e];n.setXYCoords(o[0],o[1]),u&&n.setZ(o[2]??0),r&&n.setM(o[c]??NaN),t.add(n)}e.setCacheValue(y,t)}return e.getCacheValue(y)}function G(e){if(!e.getCacheValue(y)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(y,t)}return e.getCacheValue(y)}function x(e){if(!e.getCacheValue(y)){const{curveRings:t,hasM:n,hasZ:s,rings:r}=e,o=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:s,rings:r});e.setCacheValue(y,o)}return e.getCacheValue(y)}function E(e){if(!e.getCacheValue(y)){const{curvePaths:t,hasM:n,hasZ:s,paths:r}=e,o=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:s,paths:r});e.setCacheValue(y,o)}return e.getCacheValue(y)}function v(e){return(0,h.fromSpatialReference)(e)}function w(e,t){if(e)switch(e.getGeometryType()){case r.G.enumPoint:return M(e,t);case r.G.enumEnvelope:return P(e,t);case r.G.enumMultiPoint:return V(e,t);case r.G.enumPolyline:return k(e,t);case r.G.enumPolygon:return R(e,t)}return null}function P(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(s.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(y,e),n}function V(e,t){if(e.isEmpty())return null;const n=e.getDescription(),s=n.hasM(),r=n.hasZ(),i=[],u=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];r&&n.push(u.getZ()),s&&n.push(u.getM()),i.push(n)}const a=new c.A({hasM:s,hasZ:r,points:i,spatialReference:t});return a.setCacheValue(y,e),a}function M(e,t){if(e instanceof s.P)return new a.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new a.A({x:e.getX(),y:e.getY(),spatialReference:t}),r=e.getDescription();return r.hasM()&&(n.m=e.getM()),r.hasZ()&&(n.z=e.getZ()),n.setCacheValue(y,e),n}function R(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(y,e),n}function k(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(y,e),n}},90756:(e,t,n)=>{n.d(t,{g:()=>h,f:()=>y});var s=n(76061),r=n(55537),o=n(88885),i=n(95213),u=n(39117),c=u.W;function a(e,t){return{m_geometry:e,m_side:t}}class m extends s.G{constructor(e,t,n,s,r){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=r,this.m_cuttee=t.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=e;const u=(0,i.g)(t,n);this.m_tolerance=(0,i.c)(s,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case r.G.enumPolyline:this.generatePolylineCuts();break;case r.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new o.P,t=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const s=[];!function(e,t,n,s,r,i){if(t.isEmpty()){const e=a(t,0);return void r.push(e)}if(n.isEmpty()){const e=a(t,0);return void r.push(e)}const m=[],l=new o.E;{const o=l.createGeometryUserIndex(),h=l.addGeometry(t),y=l.addGeometry(n),p=new u.U(i);let g=0,f=null;if(l.hasCurves()){f=new c;const e=l.getEnvelope2D(i);g=(0,u.Q)(s.total());const t=(0,u.R)(s.total(),e);(0,u.T)(l,t,s.total(),12e3,f,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,s),p.cut(e,o,h,y,m);for(const e of m){null!==f&&f.stitchCurves(l,e,g,!1);const t=a(l.getGeometry(e),(0,u.V)(l.getGeometryUserIndex(e,o)));r.push(t)}null!==f&&f.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,s,this.m_progressTracker);for(let o=0;o<s.length;o++){const i=s[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,r.d)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new o.a,t=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const s=[];!function(e,t,n,s,r,i){if(t.isEmpty()){const e=a(t,0);return void r.push(e)}if(n.isEmpty()){const e=a(t,0);return void r.push(e)}const m=[],l=new o.E;{const e=l.createGeometryUserIndex(),h=l.addGeometry(t),y=l.addGeometry(n),p=new u.U(i);let g=0,f=null;if(l.hasCurves()){f=new c;const e=l.getEnvelope2D(i);g=(0,u.Q)(s.total());const t=(0,u.R)(s.total(),e);(0,u.T)(l,t,s.total(),12e3,f,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,s),p.cut(!1,e,h,y,m),null!==f&&f.stitchCurves(l,o.n,g,!0);let d=l.getGeometry(h);const _=new o.a,C=new o.a,G=[];for(let t=0;t<m.length;t++){let n=null;{const r=new o.E,c=r.addGeometry(d),a=r.addGeometry(l.getGeometry(m[t]));if(r.hasCurves()){const e=r.getEnvelope2D(i);g=(0,u.Q)(s.total());const t=(0,u.R)(s.total(),e);(0,u.T)(r,t,s.total(),12e3,f,null,i)}p.setEditShapeCrackAndCluster(r,s);const h=p.intersection(c,a);if(null!==f&&f.stitchCurves(r,o.n,g,!0),n=r.getGeometry(h),n.isEmpty())continue;const y=l.getGeometryUserIndex(m[t],e);2===y?_.add(n,!1):1===y?C.add(n,!1):G.push(n)}{const e=new o.E,n=e.addGeometry(d),r=e.addGeometry(l.getGeometry(m[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);g=(0,u.Q)(s.total());const n=(0,u.R)(s.total(),t);(0,u.T)(e,n,s.total(),12e3,f,null,i)}p.setEditShapeCrackAndCluster(e,s);const c=p.difference(n,r);null!==f&&f.stitchCurves(e,o.n,g,!0),d=e.getGeometry(c)}}if(!d.isEmpty()&&m.length>0&&G.push(d),_.isEmpty()&&C.isEmpty())return;if(!_.isEmpty()){const e=a(_,1);r.push(e)}if(!C.isEmpty()){const e=a(C,2);r.push(e)}for(let e=0,t=G.length;e<t;++e){const t=a(G[e],3);r.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,s,this.m_progressTracker);for(let o=0;o<s.length;o++){const i=s[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,r.d)("")}(0,r.g)(n.isEmpty()||1===s.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,s,r){return new m(e,t,n,s,r)}};function h(e,t,n){const s=l.execute(!0,e,t,n,null);return Array.from(s)}function y(){return l.supportsCurves()}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,8125,9202],{16346:(e,t,n)=>{n.d(t,{d:()=>c,e:()=>m});var r=n(55537),i=n(26640),s=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,s,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const m=e,u=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const c=new i.D(a,n).calculate(m,u,s,o);return Number.isFinite(c)?c:Number.NaN}};function m(e,t,n={}){const{unit:r}=n;let i=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(i&&r){const t=(0,o.getSpatialReference)(e);i=(0,s.PQ)(i,t,r)}return i}const u=a.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:m,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},26640:(e,t,n)=>{n.d(t,{D:()=>N,m:()=>c,s:()=>_,w:()=>f});var r=n(31635),i=n(55537),s=n(88885),o=n(39117),a=n(83661),m=n(79187),u=n(95213);function c(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function h(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function g(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function y(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=c();g(n,e),g(e,t),g(t,n)}function f(e,t,n,r,s,a){if(e.getGeometryType()===i.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.H)(e,t.getEndXY(),0))return h(s,t.getEndXY(),-1,Number.NaN),h(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===i.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.H)(t,e.getEndXY(),0))return h(s,e.getEndXY(),-1,Number.NaN),h(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function _(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let i=0;i<t;++i){const t=r+e.getSegmentCountPath(i);for(let s=r,o=e.getPathStart(i);s<t;++s,++o)n[s]=o;r=t}return(0,s.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function D(e){const t=new s.a;return t.addEnvelope(e,!1),t}class N{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==u.P.type||t.getGeometryType()!==u.P.type)&&(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const i=l(new a.P,(0,a.j)(),Number.NaN),s=l(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,i,s);return v(o,this.m_maxDistance)?(null!==n&&g(n,i),null!==r&&g(r,s),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==u.P.type&&e.getGeometryType()!==u.E.type||t.getGeometryType()!==u.P.type&&t.getGeometryType()!==u.E.type||(n=!1),n){if(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new a.P,(0,a.j)(),Number.NaN),i=l(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,i)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case i.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case i.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case i.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointPoint(e,t,n,r);case i.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case i.G.enumPolyline:case i.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const i=e.getXY(),s=t.getXY();return h(n,i,0,0),h(r,s,0,0),Math.sqrt(a.P.sqrDistance(i,s))}distancePointMultipoint(e,t,n,r){const i=e.getXY();let s=this.m_maxSqrDistance,o=s,m=!1;const u=t.getPointCount(),c=new a.P;for(let e=0;e<u;++e)if(t.queryXY(e,c),o=a.P.sqrDistance(i,c),this.m_bIsNearCalc){if(o<=s)return 0}else if(!(o>s)&&(!m&&o===s||o<s)&&(s=o,h(n,i,0,0),h(r,c,e,0),m=!0,0===s))return 0;return m?Math.sqrt(s):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const s=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!s&&t.getGeometryType()===i.G.enumPolygon&&0!==(0,o.H)(t,u,0))return h(n,u,0,0),h(r,u,-1,Number.NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,l=c,g=-1;const y=new m.Envelope2D,p=t.querySegmentIterator();let f=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(y);const t=y.sqrDistance(u);if(t>c)continue;if(!this.m_bIsNearCalc&&f&&t===c)continue;g=e.getClosestCoordinate(u,!1);const i=e.getCoord2D(g);if(l=a.P.sqrDistance(u,i),this.m_bIsNearCalc){if(l<=c)return 0}else if(!(l>c)&&(!f||l<c)&&(c=l,h(n,u,0,0),h(r,i,p.getStartPointIndex(),g),f=!0,0===c))return 0}return f?Math.sqrt(c):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const i=e.getXY();h(n,i,0,0),h(r,i,-1,Number.NaN);const s=t.asEnvelope2D();return s.contains(i)?0:Math.sqrt(s.sqrDistance(i,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distanceMultipointMultipath(e,D(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,i,s,o){const m={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===s&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),s=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||s>=4)&&this.distanceMultipointMultipoint(e,t,n,i,r,s)<=this.m_maxSqrDistance)return 0}let u=this.m_maxSqrDistance;const c=[e],l=[t],g=this.swapGeometriesIfBGtA(c,l);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(s,s=o),p(n,i)),(0,r.mS)(m,(0,a.h)(()=>{p(n,i),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const y=c[0].getImpl(),f=l[0].getImpl(),_=y.getPointCount(),v=f.getPointCount(),D=v>1;let N=!1;const P=new a.P,x=new a.P;for(let e=0;e<_;e+=s){if(y.queryXY(e,P),D){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=u)return 0}else if(e>=u)continue}for(let t=0;t<v;t+=o){f.queryXY(t,x);const r=a.P.sqrDistance(P,x);if(this.m_bIsNearCalc){if(r<=u)return 0}else if(!(r>u||N&&r===u)&&(!N||r<u)&&(h(n,P,e,0),h(i,x,t,0),N=!0,u=r,0===u))return N?Math.sqrt(u):Number.POSITIVE_INFINITY}}return N?Math.sqrt(u):Number.POSITIVE_INFINITY}catch(e){m.error=e,m.hasError=!0}finally{(0,r.hk)(m)}}distanceMultipointMultipath(e,t,n,r){let s=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===i.G.enumPolygon;const u=t.querySegmentIterator();u.stripAttributes();const c=new m.Envelope2D,l=new a.P;let g=this.m_maxSqrDistance;const y=e.getImpl(),p=y.getPointCount(),f=p>1;let _=!1;for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();if(e.queryLooseEnvelope(c),f){const e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||_&&e===g)continue}for(let i=0;i<p;i++){if(y.queryXY(i,l),s&&0!==(0,o.H)(t,l,0))return h(n,l,-1,Number.NaN),h(r,l,i,0),0;{const e=c.sqrDistance(l);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(l,!1),m=e.getCoord2D(a);l.subThis(m);const p=l.sqrLength();if(this.m_bIsNearCalc){if(p<=g)return 0}else if(!(p>g)&&(!_||p<g)&&(g=p,h(n,y.getXY(i),i,0),h(r,m,u.getStartPointIndex(),a),_=!0,0===g))return 0}s=!1}return _?Math.sqrt(g):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,D(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(D(e),t,n,r);case i.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const i=e.asEnvelope2D(),s=t.asEnvelope2D();return Math.sqrt(i.sqrDistanceEnvelope(s,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distanceMultipathMultipath(e,D(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const o={stack:[],error:void 0,hasError:!1};try{const u=[e],l=[t],h=this.swapGeometriesIfAGtB(u,l);h&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,i)),(0,r.mS)(o,(0,a.h)(()=>{p(n,i),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const v=u[0],D=l[0],N=v.querySegmentIterator();N.stripAttributes();const P=D.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,D,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=c(),t=c();if(f(v,D,N,P,e,t))return g(n,e),g(i,t),0}const x=_(v),I=[],G=new s.S,M=new m.Envelope2D,d=new m.Envelope2D,E=new m.Envelope2D;let q=this.m_maxSqrDistance,C=!0,b=!1;for(let e=0,t=x.length;e<t;++e){v.querySegment(x[e],G,!0);const t=G.get();if(t.queryEnvelope(M),!(M.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>q)){if(this.m_bIsNearCalc&&M.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=q)return 0;for(;P.nextPath();){if(this.progress_(),C)D.queryPathEnvelope(P.getPathIndex(),E),I[P.getPathIndex()]=E.clone();else if(M.sqrDistanceEnvelope(I[P.getPathIndex()],null,null)>q)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(d),M.sqrDistanceEnvelope(d,null,null)<=q){const s=!M.isIntersecting(d),o=[0],a=[0];let m=t.distance(r,s,o,a);if(m*=m,this.m_bIsNearCalc&&m<=this.m_maxSqrDistance)return 0;if(m<q||m===q&&x[e]<n.index){if(b=!0,y(n,t,x[e],o[0]),y(i,r,P.getStartPointIndex(),a[0]),0===m)return 0;q=m}}}}P.resetToFirstPath(),C=!1}}return b?Math.sqrt(q):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,i.v)(e[0])>(0,i.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class i extends r{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}}},77038:(e,t,n)=>{n.d(t,{execute:()=>r.e});var r=n(16346);n(86211),n(78125)},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>v,fromGeometry:()=>_,fromMultipoint:()=>D,fromPoint:()=>N,fromPolygon:()=>P,fromPolyline:()=>x,fromSpatialReference:()=>I,getSpatialReference:()=>f,toExtent:()=>M,toGeometry:()=>G,toMultipoint:()=>d,toPoint:()=>E,toPolygon:()=>q,toPolyline:()=>C});var r=n(83661),i=(n(79187),n(55537)),s=n(95213),o=n(88885),a=n(5443),m=n(48526),u=n(86738),c=n(39829),l=n(82799),h=(n(90293),n(83299));const g="_gxVersion",y=2,p=1;function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function _(e){switch(e.type){case"point":return N(e);case"multipoint":return D(e);case"polyline":return x(e);case"polygon":return P(e);case"extent":return v(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function v(e){if(!e.getCacheValue(g)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(p,0,e.zmin,e.zmax),e.setCacheValue(g,t)}return e.getCacheValue(g)}function D(e){if(!e.getCacheValue(g)){const t=new o.M,n=new s.P,r=e.points,i=e.hasM,a=e.hasZ,m=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),i&&n.setM(s[m]??NaN),t.add(n)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function N(e){if(!e.getCacheValue(g)){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(g,t)}return e.getCacheValue(g)}function P(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:n,hasZ:r,rings:i}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:i});e.setCacheValue(g,s)}return e.getCacheValue(g)}function x(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:i}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:i});e.setCacheValue(g,s)}return e.getCacheValue(g)}function I(e){return(0,h.fromSpatialReference)(e)}function G(e,t){if(e)switch(e.getGeometryType()){case i.G.enumPoint:return E(e,t);case i.G.enumEnvelope:return M(e,t);case i.G.enumMultiPoint:return d(e,t);case i.G.enumPolyline:return C(e,t);case i.G.enumPolygon:return q(e,t)}return null}function M(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(p,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(g,e),n}function d(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),i=n.hasZ(),o=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];i&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const u=new m.A({hasM:r,hasZ:i,points:o,spatialReference:t});return u.setCacheValue(g,e),u}function E(e,t){if(e instanceof r.P)return new u.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new u.A({x:e.getX(),y:e.getY(),spatialReference:t}),i=e.getDescription();return i.hasM()&&(n.m=e.getM()),i.hasZ()&&(n.z=e.getZ()),n.setCacheValue(g,e),n}function q(e,t){if(e.isEmpty())return null;const n=c.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(g,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(g,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921:(t,n,e)=>{e.d(n,{$Q:()=>A,C:()=>u,Cr:()=>d,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>p,Tj:()=>I,Ui:()=>x,_I:()=>y,fA:()=>f,gv:()=>w,lU:()=>M,mN:()=>z,mP:()=>P,mR:()=>q,vE:()=>C,vt:()=>o});var r=e(34727),a=e(38954),s=e(51850),i=(e(87317),e(44280),e(32114));function o(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],n=N[1],e=N[2],r=N[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function d(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,d=a*u-s*c,M=f*f+l*l+d*d,m=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=f*m,r[1]=l*m,r[2]=d*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(_,r);let o=s,c=!1;for(;o<e-1&&!c;)n(v,o),o++,c=!(0,a.m)(_,v);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.e)(b,_,v),(0,a.n)(b,b),(0,a.e)(j,v,g),(0,a.n)(j,j),c=!(0,a.m)(_,g)&&!(0,a.m)(v,g)&&Math.abs((0,a.g)(b,j))<m;return c?(d(_,v,g,t),!0):(0!==r||1!==s||2!==i)&&M(t,n,e,0,1,2)}e(32728);const m=.99619469809,_=(0,s.vt)(),v=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.g)(t,e),t}function q(t,n,e,r){return(0,a.f)(g,n,t),l(e,g,r)}function x(t,n,e){return null!=n&&S(C(t,n.origin,n.direction,V,e))}function p(t,n,e){return S(C(t,n.origin,n.vector,0,e))}function w(t,n,e){return S(C(t,n.origin,n.vector,1,e))}function I(t,n){return z(t,n)>=0}function A(t,n){const e=(0,a.g)(t,n.ray.direction),r=-z(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function y(t,n,e){const r=(0,a.j)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.j)(i.rq.get(),t,(0,a.g)(t,n));return(0,a.e)(e,n,r),e}(t,(0,a.e)(i.rq.get(),n,r),i.rq.get());return(0,a.i)(e,s,r),e}function z(t,n){return(0,a.g)(t,n)+t[3]}function S(t){return 0===t||1===t}function C(t,n,e,s,i){const o=(0,a.g)(t,e),c=z(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.i)(i,n,(0,a.j)(i,e,u)),c>=0?0:1)}const N=[0,0,1,0],V=8},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>M,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64()),M=h.createQuatf64()},32728:(t,n,e)=>{e.d(n,{nu:()=>i,wp:()=>s}),e(34727);var r=e(38954),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.h)(t,e,a,s),t}function i(t,n,e,s=(0,a.vt)()){const i=(0,r.b)(t),u=(0,r.b)(n),h=(0,r.g)(t,n)/(i*u);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*u)/Math.sin(a),l=f/i*Math.sin((1-e)*a),d=f/u*Math.sin(e*a);return(0,r.j)(o,t,l),(0,r.j)(c,n,d),(0,r.i)(s,o,c)}return(0,r.l)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),c=(0,a.vt)()},38954:(t,n,e)=>{e.d(n,{A:()=>h,B:()=>f,C:()=>g,D:()=>O,E:()=>j,F:()=>V,G:()=>E,H:()=>D,a:()=>T,b:()=>s,c:()=>v,d:()=>i,e:()=>u,f:()=>w,g:()=>p,h:()=>o,i:()=>c,j:()=>_,l:()=>I,m:()=>N,n:()=>x,o:()=>q,p:()=>A,q:()=>P,r:()=>z,s:()=>b,t:()=>y,u:()=>l,v:()=>X,w:()=>Y,x:()=>m,y:()=>M,z:()=>d});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function _(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function v(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function q(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function I(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function A(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function y(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function z(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,d=a*l-s*f,M=s*h-r*l,m=r*f-a*h,_=2*i;return t[0]=o+h*_+2*d,t[1]=c+f*_+2*M,t[2]=u+l*_+2*m,t}const S=(0,r.vt)(),C=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function V(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function O(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,F=h,Q=f,E=g,X=b,D=s,Y=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){x(S,t),x(C,n);const e=p(S,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:O,dist:E,distance:g,div:Q,divide:f,dot:p,equals:V,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:q,len:D,length:s,lerp:I,max:m,min:M,mul:F,multiply:h,negate:P,normalize:x,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:_,scaleAndAdd:v,set:o,sign:d,sqrDist:X,sqrLen:Y,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:y,transformMat4:A,transformQuat:z},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,e)=>{e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(38954),s=e(51850);function i(t,n){return(0,a.g)(t,n)/(0,a.b)(t)}function o(t,n){const e=(0,a.g)(t,n)/((0,a.b)(t)*(0,a.b)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.n)(u,t),(0,a.n)(h,n);const s=(0,a.g)(u,h),i=(0,r.XM)(s),o=(0,a.f)(u,u,h);return(0,a.g)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610:(t,n,e)=>{e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,M=s.dest.spatialReferenceId;if(u===M&&!h(M)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(M)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=h(u);if((3===M||11===M||2===M||5===M)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),d=(0,s.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>bt,gm:()=>zt});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(38954),u=e(51850),h=e(87317),f=e(91829),l=e(73941),d=e(98764),M=e(48353),m=e(9762),_=e(37539),v=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const q=1e-6,x=(0,u.vt)(),p=(0,u.vt)();function w(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=vt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=vt(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}dt(n,t.minVert[a]),dt(e,t.maxVert[a])}(t,r,a),vt(r,a)<q?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){T[0]=a[t]-n[0],T[1]=a[t+1]-n[1],T[2]=a[t+2]-n[2];const r=e[0]*T[0]+e[1]*T[1]+e[2]*T[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=T[0]*T[0]+T[1]*T[1]+T[2]*T[2]-r*r/s;c>i&&(i=c,o=t)}return dt(r,a,o),i}(n,r,i,s)<q?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),Mt(e,o,i),mt(e,e),k(n,e,i,o,c,u),0))}const I=(0,u.vt)(),A=(0,u.vt)(),y=(0,u.vt)(),z=(0,u.vt)(),S=(0,u.vt)(),C=(0,u.vt)(),N=(0,u.vt)(),V=(0,u.vt)();function O(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;dt(r,s),dt(a,r),e[0]=gt(Z,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,dt(r,s,t)),i>e[1]&&(e[1]=i,dt(a,s,t))}}(t,n,F,a,r);const s=gt(e,n);F[1]-q<=s&&(r[0]=void 0),F[0]+q>=s&&(a[0]=void 0)})(t,n,e,I,A),void 0!==I[0]&&(ft(y,I,e),mt(y,y),ft(z,I,r),mt(z,z),ft(S,I,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c)),void 0!==A[0]&&(ft(y,A,e),mt(y,y),ft(z,A,r),mt(z,z),ft(S,A,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c))}const T=[0,0,0],F=(0,j.vt)(),Q=(0,u.vt)(),E=(0,u.vt)(),X=(0,u.vt)(),D=(0,u.vt)(),Y=(0,u.vt)(),R=(0,u.vt)();function k(t,n,e,r,a,s){if(_t(n)<q)return;Mt(Q,e,n),Mt(E,r,n),Mt(X,a,n),B(t,n,F),Y[1]=F[0],D[1]=F[1],R[1]=D[1]-Y[1];const i=[e,r,a],o=[Q,E,X];for(let e=0;e<3;++e){B(t,i[e],F),Y[0]=F[0],D[0]=F[1],B(t,o[e],F),Y[2]=F[0],D[2]=F[1],R[0]=D[0]-Y[0],R[2]=D[2]-Y[2];const r=ut(R);r<s.quality&&(dt(s.b0,i[e]),dt(s.b1,n),dt(s.b2,o[e]),s.quality=r)}}const Z=(0,u.vt)();function B(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function H(t,n,e){e.center=t,e.halfSize=(0,c.j)(n,n,.5),e.quaternion=o.zK}const U=(0,u.vt)(),K=(0,u.vt)(),L=(0,u.vt)(),G=(0,u.vt)(),W=(0,u.vt)(),J=(0,u.vt)();function $(t,n,e){dt(U,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?U[0]=0:Math.abs(n[1])>Math.abs(n[2])?U[1]=0:U[2]=0,_t(U)<q&&(U[0]=U[1]=U[2]=1),Mt(K,n,U),mt(K,K),Mt(L,n,K),mt(L,L),tt(t,n,K,L,G,W),ft(J,W,G),it(n,K,L,G,W,J,e)}function tt(t,n,e,r,a,s){B(t,n,F),a[0]=F[0],s[0]=F[1],B(t,e,F),a[1]=F[0],s[1]=F[1],B(t,r,F),a[2]=F[0],s[2]=F[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.i)(et,et,rt),i.halfSize=(0,c.j)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];dt(this.minVert[t],a,n),n=r[t],dt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function dt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Mt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=kt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.h)(b.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.h)(b.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.r)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectSphere(t){xt[0]=this._data[0]-t.center[0],xt[1]=this._data[1]-t.center[1],xt[2]=this._data[2]-t.center[2];const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],this._data[3]),pt[1]=Math.min(xt[1],this._data[4]),pt[2]=Math.min(xt[2],this._data[5]),(0,c.v)(pt,xt)<t.radius*t.radius}intersectSphereWithMBS(t,n=this.radius){const e=this._data;xt[0]=e[0]-t.center[0],xt[1]=e[1]-t.center[1],xt[2]=e[2]-t.center[2];const r=t.radius,a=r+n;return!((0,c.w)(xt)>a*a)&&(jt[0]=-e[6],jt[1]=-e[7],jt[2]=-e[8],jt[3]=e[9],(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],e[3]),pt[1]=Math.min(xt[1],e[4]),pt[2]=Math.min(xt[2],e[5]),(0,c.v)(pt,xt)<r*r)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],xt[0]=t[0]-r[0],xt[1]=t[1]-r[1],xt[2]=t[2]-r[2];const s=(0,c.r)(xt,xt,jt),i=(0,c.r)(pt,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Ft);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),xt[0]=t[0]-this._data[0],xt[1]=t[1]-this._data[1],xt[2]=t[2]-this._data[2],(0,c.r)(xt,xt,jt);const o=this.getHalfSize(Ft),u=xt[0]<-o[0]?-1:xt[0]>o[0]?1:0,f=xt[1]<-o[1]?-1:xt[1]>o[1]?1:0,l=xt[2]<-o[2]?-1:xt[2]>o[2]?1:0,d=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const M=1===d?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Qt,s),(0,r.hs)(Qt,Qt,o);const _=this.getCenter(Ot);for(let t=0;t<M;t++){const e=yt[m+t];(0,c.h)(xt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.t)(xt,xt,Qt),(0,c.i)(wt,_,xt),wt[3]=1,(0,h.t)(wt,wt,n);const r=1/Math.max(1e-6,wt[3]);At[2*t]=wt[0]*r,At[2*t+1]=wt[1]*r}const v=2*M-2;let g=At[0]*(At[3]-At[v+1])+At[v]*(At[1]-At[v-1]);for(let t=2;t<v;t+=2)g+=At[t]*(At[t+3]-At[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,t,jt),Math.abs(xt[0]*this._data[3])+Math.abs(xt[1]*this._data[4])+Math.abs(xt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,v.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,v.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Qt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,d.lO)(e),s=(0,d.lO)(n),o=(0,_.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,d.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=r,(0,m.projectBuffer)(Vt,e,0,Vt,a,0),n.center=Vt;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.h)(Dt,0,0,1),(0,c.r)(Dt,Dt,jt);const h=t.getHalfSize(Ft);(0,c.h)(Dt,h[0]*Math.abs(Dt[0]),h[1]*Math.abs(Dt[1]),h[2]*Math.abs(Dt[2])),(0,c.j)(Dt,Dt,s.inverseFlattening),(0,c.i)(Dt,h,Dt),n.halfSize=(0,c.j)(Dt,Dt,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,d.lO)(e),s=(0,_.jd)(e,a)){t.getCorners(Xt),t.getCenter(Vt),Vt[2]+=r,(0,M.l)(e,Vt,Et,a),n.setCenter(Et[12],Et[13],Et[14]);const o=2*Math.sqrt(1+Et[0]+Et[5]+Et[10]);jt[0]=(Et[6]-Et[9])/o,jt[1]=(Et[8]-Et[2])/o,jt[2]=(Et[1]-Et[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.h)(Yt,0,0,0);const h=n.getCenter(Tt);for(const t of Xt)t[2]+=r,s(t,0,t,0),(0,c.a)(Dt,t,h),(0,c.r)(Dt,Dt,jt),(0,c.u)(Dt,Dt),(0,c.x)(Yt,Yt,Dt);n.halfSize=Yt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a;const s=(0,d.lO)(e);(0,m.projectBuffer)(Ot,t,0,Ot,s,0),St(s,n,Ot,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a,St(t,n,Ot,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Ot);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Ft))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),qt=(0,o.vt)(),xt=(0,u.vt)(),pt=(0,u.vt)(),wt=(0,f.vt)();function It(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(x,s.minProj,s.maxProj),lt(x,x,.5),ft(p,s.maxProj,s.minProj);const i=ut(p),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),d=(0,u.vt)(),M=(0,u.vt)(),m=(0,u.vt)();switch(w(s,t,m,c,h,f,l,d,M,o)){case 1:return void H(x,p,n);case 2:return void $(t,l,n)}O(t,m,c,h,f,l,d,M,o),tt(t,o.b0,o.b1,o.b2,G,W);const _=(0,u.vt)();ft(_,W,G),o.quality=ut(_),o.quality<i?it(o.b0,o.b1,o.b2,G,W,_,n):H(x,p,n)}(t,n),n}const At=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],yt=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function zt(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Ot),h=t.getHalfSize(Ft);if(1===r){(0,c.r)(Dt,o,jt),(0,c.u)(Yt,Dt),(0,c.y)(Rt,Yt,h),(0,c.a)(Rt,Yt,Rt);const r=(0,c.b)(Rt);(0,c.i)(Rt,Yt,h);const s=(0,c.b)(Rt);if(r<e)a.center=o,(0,c.h)(Dt,e,e,e),a.halfSize=(0,c.i)(Dt,h,Dt);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.j)(Rt,Yt,f),a.halfSize=(0,c.c)(Rt,Rt,h,u),(0,c.j)(Rt,Yt,u),(0,c.c)(Rt,Rt,h,f),(0,c.z)(Dt,Dt),(0,c.A)(Dt,Rt,Dt);const l=t.getQuaternion(qt);a.center=(0,c.r)(Dt,Dt,l)}}else{a.center=(0,c.c)(Dt,o,u.Cb,(e+n)/2);const t=(0,c.r)(Dt,u.Cb,jt);(0,c.u)(t,t),a.halfSize=(0,c.c)(Yt,h,t,(e-n)/2)}return a}function St(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Qt,i),c=n.getHalfSize(Ft);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Vt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Vt[t]*o[3*t+n];Ct[3*t+n]=r}}(0,m.projectBuffer)(Ct,t,0,Ct,a,0,8),It(Nt,s)}const Ct=new Array(24),Nt=new P.K(Ct,3),Vt=(0,u.vt)(),Ot=(0,u.vt)(),Tt=(0,u.vt)(),Ft=(0,u.vt)(),Qt=(0,a.vt)(),Et=(0,s.vt)(),Xt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Dt=(0,u.vt)(),Yt=(0,u.vt)(),Rt=(0,u.vt)(),kt=(0,u.CN)(-1,-1,-1)},67026:(t,n,e)=>{e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>d,hZ:()=>v,lw:()=>f,t2:()=>y,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(38954),c=e(87317);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,d,M=e[0],m=e[1],_=e[2],v=e[3];return h=a*M+s*m+o*_+c*v,h<0&&(h=-h,M=-M,m=-m,_=-_,v=-v),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,d=Math.sin(r*u)/f):(l=1-r,d=r),t[0]=l*a+d*M,t[1]=l*s+d*m,t[2]=l*o+d*_,t[3]=l*c+d*v,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const _=c.f,v=c.c,g=c.i,b=f,j=c.s,P=c.h,q=c.l,x=c.j,p=x,w=c.d,I=w,A=c.n,y=c.a,z=c.e,S=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),V=(0,a.vt)(),O=(0,a.vt)(),T=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:d,copy:_,dot:P,equals:z,exactEquals:y,fromEuler:m,fromMat3:M,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:p,length:x,lerp:q,mul:b,multiply:f,normalize:A,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.g)(n,e);return r<-.999999?((0,o.f)(S,C,n),(0,o.H)(S)<1e-6&&(0,o.f)(S,N,n),(0,o.n)(S,S),u(t,S,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(S,n,e),t[0]=S[0],t[1]=S[1],t[2]=S[2],t[3]=1+r,A(t,t))},scale:j,set:v,setAxes:function(t,n,e,r){const a=T;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],A(t,M(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(V,n,a,s),l(O,e,r,s),l(t,V,O,2*s*(1-s)),t},sqrLen:I,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>h});var r=e(73941),a=e(16930),s=e(21325);const i=new a.A(r.fv),o=new a.A(r.FY),c=new a.A(r.LJ),u=new a.A(r.Ro);function h(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,s.tl)(n)||(0,s.tl)(r)?e=o:((0,s.ZL)(n)||(0,s.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===l?e=o:t===d&&(e=c)}}}return f.set(t,e),e}const f=new Map,l=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,8125,9041],{68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),o=n(55537),s=n(83661),i=n(88885),a=n(79187),u=n(95213),c=n(39117);function m(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,u.e)(n),f=new a.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const a=(0,s.d)(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),s=o.read(2*e+1),i=t-c.x,u=s-c.y;i*i+u*u<=n&&(r=!0,a[e]=!0)}if(r)for(let t=0;t<i;t++)a[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,o.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new a.Envelope2D,p=new a.Envelope2D,y=new a.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const g=(0,u.c)(n,y,!0),G=e.getGeometryType(),x=t.getGeometryType();return G===o.G.enumPoint&&x===o.G.enumPoint?function(e,t,n){const r=(0,u.e)(n),o=r*r,a=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return s.P.sqrDistance(a,c)>o&&(m.add(e),m.add(t)),m}(e,t,g):G===o.G.enumPoint&&x===o.G.enumMultiPoint?m(t,e,g):G===o.G.enumMultiPoint&&x===o.G.enumPoint?m(e,t,g):(0,c.aK)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,s){const i=new r.S([e]),a=new r.S([t]),u=this.executeMany(i,a,n,s).next();return u||(0,o.d)("null output"),u}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const o=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function y(){return f.supportsCurves()}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>G,fromMultipoint:()=>d,fromPoint:()=>C,fromPolygon:()=>v,fromPolyline:()=>M,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>w,toGeometry:()=>_,toMultipoint:()=>R,toPoint:()=>E,toPolygon:()=>V,toPolyline:()=>S});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),m=n(39829),l=n(82799),f=(n(90293),n(83299));const h="_gxVersion",p=2,y=1;function g(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return C(e);case"multipoint":return d(e);case"polyline":return M(e);case"polygon":return v(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(h)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(h,t)}return e.getCacheValue(h)}function d(e){if(!e.getCacheValue(h)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(h,t)}return e.getCacheValue(h)}function C(e){if(!e.getCacheValue(h)){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(h,t)}return e.getCacheValue(h)}function v(e){if(!e.getCacheValue(h)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(h,s)}return e.getCacheValue(h)}function M(e){if(!e.getCacheValue(h)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(h,s)}return e.getCacheValue(h)}function P(e){return(0,f.fromSpatialReference)(e)}function _(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return E(e,t);case o.G.enumEnvelope:return w(e,t);case o.G.enumMultiPoint:return R(e,t);case o.G.enumPolyline:return S(e,t);case o.G.enumPolygon:return V(e,t)}return null}function w(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(h,e),n}function R(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:o,points:i,spatialReference:t});return c.setCacheValue(h,e),c}function E(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(h,e),n}function V(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}function S(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}},89041:(e,t,n)=>{n.d(t,{execute:()=>r.e}),n(4576),n(68613),n(78125);var r=n(96957)},96957:(e,t,n)=>{n.d(t,{e:()=>i,s:()=>u});var r=n(4576),o=n(68613),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,o.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}const a=(0,o.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(e,t){const n=e.map(s.fromGeometry),i=(0,s.getSpatialReference)(e);return(0,o.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(i)).map(e=>(0,s.toGeometry)(e,i)).filter(r.Ru)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))}}]);
|