@arcgis/core 4.31.0-next.20240919 → 4.31.0-next.20240921
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/WebDocument2D.js +1 -1
- package/WebLinkChart.js +1 -1
- package/WebMap.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/support/StatsField.js +1 -1
- package/arcade/featureset/support/errorsupport.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d9d8606f0a7c82b42755.js → 093a1ee161cb6a840283.js} +1 -1
- package/assets/esri/core/workers/chunks/2020b99675caabf5ac87.js +1 -0
- package/assets/esri/core/workers/chunks/24d45530fe47b3114daf.js +1 -0
- package/assets/esri/core/workers/chunks/35f92652df2561845d47.js +1 -0
- package/assets/esri/core/workers/chunks/42b92b4c2c9fd2b15f60.js +2 -0
- package/assets/esri/core/workers/chunks/{ba561e03df67894e437f.js.LICENSE.txt → 42b92b4c2c9fd2b15f60.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/65b1d7fa57d4c764efe8.js +1 -0
- package/assets/esri/core/workers/chunks/{b99d380cce485e65c990.js → 6cda92678ffeeaea0330.js} +1 -1
- package/assets/esri/core/workers/chunks/736e0c5cb9010ca818d8.js +1 -0
- package/assets/esri/core/workers/chunks/757b83799555958e059c.js +1 -0
- package/assets/esri/core/workers/chunks/76d8192015ce46dbf92a.js +1 -0
- package/assets/esri/core/workers/chunks/7b4880b2dc6b01d70ccc.js +1 -0
- package/assets/esri/core/workers/chunks/884cd0bd036c65567929.js +1 -0
- package/assets/esri/core/workers/chunks/95ea77a7d63c9d7ed78b.js +1 -0
- package/assets/esri/core/workers/chunks/{da3a4eb3fbb9dd509b4b.js → 98e872da08203455a5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/ad4fa125e09cc0047f5b.js +1 -0
- package/assets/esri/core/workers/chunks/bb5a18dd1e6a71905668.js +2 -0
- package/assets/esri/core/workers/chunks/bf406a46515d5dfebe06.js +1 -0
- package/assets/esri/core/workers/chunks/d9c34e07627d93d4670b.js +1 -0
- package/assets/esri/core/workers/chunks/e1e9a7695e48e34a69bd.js +1 -0
- package/assets/esri/core/workers/chunks/e4f1464ed269c301b4ee.js +1 -0
- package/assets/esri/core/workers/chunks/{072029d05ccb56979523.js → e611141692355a1ba2b2.js} +1 -1
- package/assets/esri/core/workers/chunks/f41e8d0d6f5e81289179.js +1 -0
- package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +1 -0
- package/assets/esri/core/workers/chunks/{5ca8e767cc03e1425338.js → f9e90a2fda559ca68848.js} +1 -1
- package/assets/esri/themes/base/_functions.scss +6 -2
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +4 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +6 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nb.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/chunks/Bufferer-93RDFIRm.js +5 -0
- package/chunks/Centroid-DZi-eb9F.js +1 -1
- package/chunks/ComponentShader.glsl.js +10 -13
- package/chunks/Distance2DCalculator-De7WFGFq.js +5 -0
- package/chunks/GeodeticDistanceCalculator-CN7xMqrJ.js +5 -0
- package/chunks/LineSeries.js +1 -1
- package/chunks/{OITCompositing.glsl.js → OITBlend.glsl.js} +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +5 -0
- package/chunks/Polyline.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/chunks/tslib.es6.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/sql/AggregateFunctions.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/errorSupport.js +5 -0
- package/core/sql/sqlArithmeticUtils.js +1 -1
- package/core/sql/sqlCompareUtils.js +1 -1
- package/core/sql/sqlDateParsingUtils.js +1 -1
- package/geometry/operators/areaOperator.js +5 -0
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +5 -0
- package/geometry/operators/graphicBufferOperator.js +5 -0
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorClip.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorCut.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
- package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
- package/geometry/operators/gx/{operatorGeodeticDensifyByLength.js → operatorGeodeticDensify.js} +1 -1
- package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
- package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
- package/geometry/operators/gx/operatorGraphicBuffer.js +5 -0
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +5 -0
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/proximityOperator.d.ts +4 -0
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/interfaces.d.ts +310 -28
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/MediaElementBase.js +1 -1
- package/layers/support/mediaUtils.js +1 -1
- package/linkChart/LinkChartProperties.js +1 -1
- package/linkChart/utils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/support/highlightGroupUtils.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +5 -0
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +5 -0
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/LinkChartView.js +1 -1
- package/views/MapView.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/Tooltip.d.ts +4 -0
- package/views/interactive/Tooltip.js +5 -0
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/webdoc/widgets/TimeSlider.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/BasemapLayerList/css.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchAttributeFormElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchAttributeFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchFieldElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/batchAttributeFormTemplateUtils.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
- package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter2D.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter3D.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/assets/esri/core/workers/chunks/0cfa9665dab31e5235a8.js +0 -1
- package/assets/esri/core/workers/chunks/22fb5687932019304225.js +0 -1
- package/assets/esri/core/workers/chunks/3b3c8362359a82c66793.js +0 -1
- package/assets/esri/core/workers/chunks/3cb1de0b9bf9a25112e0.js +0 -1
- package/assets/esri/core/workers/chunks/59833b27d8413b6d9312.js +0 -1
- package/assets/esri/core/workers/chunks/5e43cb91bbe20f2d32e3.js +0 -1
- package/assets/esri/core/workers/chunks/67df47efb9a9dfeafee2.js +0 -1
- package/assets/esri/core/workers/chunks/6be62448e33baabe028c.js +0 -1
- package/assets/esri/core/workers/chunks/6d668f7696f280ec9588.js +0 -1
- package/assets/esri/core/workers/chunks/74edde71352e1f578a3b.js +0 -1
- package/assets/esri/core/workers/chunks/907e74abb4a85a76e3b5.js +0 -1
- package/assets/esri/core/workers/chunks/941fe04f47059074c05b.js +0 -2
- package/assets/esri/core/workers/chunks/a0005bc65f79e83f26ee.js +0 -1
- package/assets/esri/core/workers/chunks/a6560ff77be29344bc50.js +0 -1
- package/assets/esri/core/workers/chunks/a6c3c1827d2e8bbfcd9e.js +0 -1
- package/assets/esri/core/workers/chunks/ba561e03df67894e437f.js +0 -2
- package/assets/esri/core/workers/chunks/df9daac7ea581e9e5ca4.js +0 -1
- package/assets/esri/core/workers/chunks/ea51a7c32f716f4f1a34.js +0 -1
- package/assets/esri/core/workers/chunks/ef7dcb8758e7f21d30bc.js +0 -1
- package/chunks/Distance2DCalculator-BzAEa8Xe.js +0 -5
- package/chunks/GeodeticDistanceCalculator-BS_KY66f.js +0 -5
- package/chunks/OperatorShapePreservingDensify.js +0 -5
- package/geometry/operators/geodeticDensifyByLengthOperator.js +0 -5
- package/geometry/operators/gx/operatorShapePreservingDensify.js +0 -5
- package/geometry/operators/shapePreservingDensifyOperator.js +0 -5
- package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +0 -5
- package/views/3d/webgl-engine/shaders/OITCompositingTechnique.js +0 -5
- package/views/interactive/tooltip/Tooltip.js +0 -5
- /package/assets/esri/core/workers/chunks/{941fe04f47059074c05b.js.LICENSE.txt → bb5a18dd1e6a71905668.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{2741:(e,r,t)=>{t.d(r,{s:()=>a});var o=t(92602),n=(t(78888),t(49186)),i=t(53966),s=t(84952);function a(e){if(!o.A.assetsPath)throw i.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,s.fj)(o.A.assetsPath,e)}},83290:(e,r,t)=>{t.d(r,{P:()=>d,a:()=>c,g:()=>u,h:()=>E,i:()=>a,j:()=>M,l:()=>f,p:()=>k});var o=t(2741),n=t(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=t.e(6187).then(t.bind(t,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)}))).then((e=>{A(e)})),i)}var u,c,l;!function(e){function r(e,r,t){s.ensureCache.prepare();const o=N(t),n=t===o,i=s.ensureFloat64(o),a=s._pe_geog_to_proj(s.getPointer(e),r,i);return a&&G(t,r,i,n),a}function t(e,r,t){return o(e,r,t,0)}function o(e,r,t,o){s.ensureCache.prepare();const n=N(t),i=t===n,a=s.ensureFloat64(n),f=s._pe_proj_to_geog_center(s.getPointer(e),r,a,o);return f&&G(t,r,a,i),f}e.geogToProj=r,e.projGeog=function(e,o,n,i){switch(i){case c.PE_TRANSFORM_P_TO_G:return t(e,o,n);case c.PE_TRANSFORM_G_TO_P:return r(e,o,n)}return 0},e.projToGeog=t,e.projToGeogCenter=o}(u||(u={})),(l=c||(c={})).init=function(){l.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,l.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,l.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,l.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,l.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,l.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,l.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,l.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,l.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,l.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,l.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,l.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,l.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,l.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,l.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,l.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,l.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,l.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,l.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,l.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,l.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,l.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,l.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,l.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,l.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,l.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,l.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,l.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,l.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,l.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,l.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,l.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let _=null;var d;!function(e){const r={},t={},o=e=>{const r=e.getType();switch(r){case c.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:r&c.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function n(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(String(t))&&(n=i[t],s.compare(n,s.NULL)&&(n=null)),!n){const r=s.PeFactory.prototype.factoryByType(e,t);s.compare(r,s.NULL)||(n=o(r),i[t]=n)}return n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(r)&&(n=i[r],s.compare(n,s.NULL)&&(n=null)),!n){const t=s.PeFactory.prototype.fromString(e,r);s.compare(t,s.NULL)||(n=o(t),i[r]=n)}return n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(d||(d={}));let p=null;var P,h,E,g,S,m,T,y,O,M,w;function A(e){function r(e,r,t){e[r]=t(e[r])}s=e,c.init(),P.init(),T.init(),O.init(),M.init(),_=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},p=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const t=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of t)r(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])r(e.prototype,"getParameters",(e=>function(){const r=new Array(c.PE_PARM_MAX);let t=e.call(this);for(let e=0;e<r.length;e++){const o=s.getValue(t,"*");r[e]=o?s.wrapPointer(o,s.PeParameter):null,t+=Int32Array.BYTES_PER_ELEMENT}return r}));r(s.PeHorizon.prototype,"getCoord",(e=>function(r=!1){const t=this.getSize();if(!t)return null;const o=[];return G(o,t,e.call(this),r),o})),r(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const r=s._pe_getPeGTlistExtendedGTsSize();return function(){let t=null;const o=e.call(this);if(!s.compare(o,s.NULL)){t=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)t.push(s.wrapPointer(n+r*o,s.PeGTlistExtendedGTs))}}return t}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let r=this._cache;if(r||(r=new Map,this._cache=r),r.has(e))return r.get(e);let t=null;const n=e.call(this);if(!s.compare(n,s.NULL)){t=[n];const e=n.getNump();if(e>1){const r=s.getPointer(n);for(let n=1;n<e;n++)t.push(s.wrapPointer(r+o*n,s.PeHorizon))}}return r.set(e,t),t};r(s.PeProjcs.prototype,"horizonGcsGenerate",n),r(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){s.ensureCache.prepare();const r=s.getPointer(this),t=s.ensureInt8(new Array(c.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(r,e,t))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function C(e){if(!e)return;const r=s.getClass(e);if(!r)return;const t=s.getCache(r);if(!t)return;const o=s.getPointer(e);o&&delete t[o]}function R(e,r){const t=[],o=new Array(r);for(let r=0;r<e;r++)t.push(s.ensureInt8(o));return t}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function G(e,r,t,o=!1){if(o)for(let o=0;o<2*r;o++)e[o]=s.getValue(t+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<r;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(t,"double"),e[n][1]=s.getValue(t+Float64Array.BYTES_PER_ELEMENT,"double"),t+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let r;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,r=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,t,o,n,i,a){let f=null;const u=new s.PeInteger(a);try{const c=s.PeGTlistExtended.prototype.getGTlist(e,t,o,n,i,u);if((a=u.val)&&(f=[c],a>1)){const e=s.getPointer(c);for(let t=1;t<a;t++)f.push(s.wrapPointer(e+r*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(P||(P={})),function(e){e.destroy=function(e){if(e?.length){for(const r of e)C(r),r.getEntries().forEach((e=>{C(e);const r=e.getGeogtran();C(r),r.getParameters().forEach(C),[r.getGeogcs1(),r.getGeogcs2()].forEach((e=>{C(e);const r=e.getDatum();C(r),C(r.getSpheroid()),C(e.getPrimem()),C(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(h||(h={})),function(e){e.geogToGeog=function(e,r,t,o,n){s.ensureCache.prepare();const i=N(t),a=t===i,f=s.ensureFloat64(i);let u=0;o&&(u=s.ensureFloat64(o));const c=s._pe_geog_to_geog(s.getPointer(e),r,f,u,n);return c&&G(t,r,f,a),c}}(E||(E={})),function(e){e.geodesicCoordinate=function(e,r,t,o,n,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,r,t,o,n,i,a,f)},e.geodeticCoordinate=function(e,r,t,o,n,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,r,t,o,n,i,a,f,u)},e.geodeticDistance=function(e,r,t,o,n,i,a,f,u,c){s.PeLineType.prototype.geodetic_distance(e,r,t,o,n,i,a,f,u,c)},e.greatEllipticDistance=function(e,r,t,o,n,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,r,t,o,n,i,a,f,u)}}(g||(g={})),function(e){e.phiToEta=function(e,r){return s.PeMath.prototype.phi_to_eta(e,r)},e.etaToPhi=function(e,r){return s.PeMath.prototype.eta_to_phi(e,r)},e.phiToPhig=function(e,r){return s.PeMath.prototype.phi_to_phig(e,r)},e.q=function(e,r,t){return s.PeMath.prototype.q(e,r,t)},e.q90=function(e,r){return s.PeMath.prototype.q90(e,r)}}(S||(S={})),function(e){const r=(e,r,t,o,n,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;r&&(u=s.getPointer(r));const l=N(o),_=s.ensureFloat64(l),d=R(t,f),p=a(u,t,_,n,s.ensureInt32(d));if(p)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(d[e]);return p},t=(e,r,t,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;r&&(a=s.getPointer(r));const f=o.map((e=>s.ensureString(e))),u=s.ensureInt32(f),c=s.ensureFloat64(new Array(2*t)),l=i(a,t,u,c);return l&&G(n,t,c),l};e.geogToDms=function(e,t,o,n,i){return r("dms",e,t,o,n,i)},e.dmsToGeog=function(e,r,o,n){return t("dms",e,r,o,n)},e.geogToDdm=function(e,t,o,n,i){return r("ddm",e,t,o,n,i)},e.ddmToGeog=function(e,r,o,n){return t("ddm",e,r,o,n)},e.geogToDd=function(e,t,o,n,i){return r("dd",e,t,o,n,i)},e.ddToGeog=function(e,r,o,n){return t("dd",e,r,o,n)}}(m||(m={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,r,t,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(t),l=s.ensureFloat64(u),_=R(r,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_mgrs_extended(f,r,l,o,n,i,d);if(p)for(let e=0;e<r;e++)a[e]=s.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=t.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*r)),c=s._pe_mgrs_to_geog_extended(i,r,f,o,u);return c&&G(n,r,u),c}}(T||(T={})),function(e){e.geogToUsng=function(e,r,t,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(t),l=s.ensureFloat64(u),_=R(r,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_usng(f,r,l,o,n,i,d);if(p)for(let e=0;e<r;e++)a[e]=s.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,r,t,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=t.map((e=>s.ensureString(e))),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*r)),u=s._pe_usng_to_geog(n,r,a,f);return u&&G(o,r,f),u}}(y||(y={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(t),f=s.ensureFloat64(a),u=R(r,c.PE_UTM_MAX),l=s.ensureInt32(u),_=s._pe_geog_to_utm(i,r,f,o,l);if(_)for(let e=0;e<r;e++)n[e]=s.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=t.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*r)),c=s._pe_utm_to_geog(i,r,f,o,u);return c&&G(n,r,u),c}}(O||(O={})),function(e){const r=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(t,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return r.has(t)&&(i=r.get(t),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(t,o),i||(i=[],r.set(t,i)),i[o]=n),n}}(M||(M={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(w||(w={}));const k=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeDouble(){return _},get PeFactory(){return d},get PeGCSExtent(){return p},get PeGTTransformations(){return E},get PeGTlistExtended(){return P},get PeGTlistExtendedEntry(){return h},get PeLineType(){return g},get PeMath(){return S},get PeNotationDms(){return m},get PeNotationMgrs(){return T},get PeNotationUsng(){return y},get PeNotationUtm(){return O},get PePCSInfo(){return M},get PeVersion(){return w},_init:A,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},43937:(e,r,t)=>{t.d(r,{K:()=>n});var o=t(10107);function n(e,r,t){let n,i;return void 0===r?(i=e,n=[void 0]):"string"!=typeof r?(i=e,n=[void 0],t=r):(i=r,n=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const a of n){const n=(0,o.r)(e,a,i);n.write&&"object"==typeof n.write||(n.write={}),t&&(n.write.target=t),n.write.writer=s[r]}}}},66552:(e,r,t)=>{t.d(r,{J:()=>n,O:()=>s});var o=t(93637);class n{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const r={};for(const t in e)r[e[t]]=t;return r}(e),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,r,t)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(t,n,r)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function i(e){const r=[];for(const t in e)r.push(t);return r.sort(),r}function s(){return function(e,r){return new n(e,{ignoreUnknown:!0,...r})}}},34727:(e,r,t)=>{t.d(r,{$8:()=>S,Cc:()=>s,Io:()=>g,KJ:()=>u,Sp:()=>_,XM:()=>c,YN:()=>l,cU:()=>n,hs:()=>a,kU:()=>f,or:()=>T,pF:()=>O,pq:()=>y,qE:()=>i});const o=new Float32Array(1);function n(e){--e;for(let r=1;r<32;r<<=1)e|=e>>r;return e+1}function i(e,r,t){return Math.min(Math.max(e,r),t)}function s(e,r,t){return e+(r-e)*t}function a(e,r,t,o,n){return s(o,n,(e-r)/(t-r))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function c(e){return Math.acos(i(e,-1,1))}function l(e){return Math.asin(i(e,-1,1))}function _(e,r,t=1e-6){return e===r||!(!Number.isFinite(e)||!Number.isFinite(r))&&(e>r?e-r:r-e)<=t}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(e){return d.setFloat64(0,e),d.getBigInt64(0)}const P=BigInt("1000000"),h=E(1);function E(e){const r=p(e=Math.abs(e)),t=function(e){return d.setBigInt64(0,e),d.getFloat64(0)}(r<=P?P:r-P);return Math.abs(e-t)}function g(e,r,t=h){if(e===r)return!0;if(!Number.isFinite(e)||!Number.isFinite(r))return!1;if(null!=t&&E(Math.min(Math.abs(e),Math.abs(r)))<t)return Math.abs(e-r)<=t;const o=p(e),n=p(r);return o<0==n<0&&!((o<n?n-o:o-n)>P)}function S(e){return m(Math.max(-y,Math.min(e,y)))}function m(e){return o[0]=e,o[0]}function T(e){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],t=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(_(r,1)&&_(t,1)&&_(o,1))}const y=m(34028234663852886e22);function O(e,r,t){if(void 0===t||0==+t)return Math[e](r);if(r=+r,t=+t,isNaN(r)||"number"!=typeof t||t%1!=0)return NaN;let o=r.toString().split("e");return o=(r=Math[e](+(o[0]+"e"+(o[1]?+o[1]-t:-t)))).toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+t:t))}},83047:(e,r,t)=>{t.d(r,{G9:()=>M,GA:()=>A,Ij:()=>G,KX:()=>C,LA:()=>O,Sk:()=>b,b$:()=>q,dk:()=>I,dy:()=>f,k1:()=>w,oU:()=>T,vl:()=>y}),t(44208);var o=t(66552),n=t(73941),i=t(79258),s=t(21325),a=t(22530);const f=39.37,u=i.$O.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.A,_=/UNIT\[([^\]]+)]/i,d=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),p=(0,o.O)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const r in E)for(const t in E[r].units)e[t]=r;return e})();function S(e){const r=g[e];if(!r)throw new Error("unknown type");return r}function m(e,r=null){return r=r||S(e),E[r].baseUnit===e}function T(e,r,t){if(r===t)return e;const o=S(r);if(o!==S(t))throw new Error("incompatible units");const n=m(r,o)?e:function(e,r,t){return e*E[t].units[r].inBaseUnits}(e,r,o);return m(t,o)?n:function(e,r,t){return e/E[t].units[r].inBaseUnits}(n,t,o)}function y(e,r,t){return T(e,r,"meters")/(t*Math.PI/180)}function O(e){return p.fromJSON(e.toLowerCase())||null}function M(e){if(null!=e&&!(0,s.B3)(e))return 1;const r=A(e);return r>1e5?1:r}function w(e){return A(e)>=(0,n.tO)(e).metersPerDegree?"meters":G(e)}function A(e,r=i.$O.metersPerDegree){return function(e,r=!1){const t=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(t){if((0,s.tl)(t))return i.sH.metersPerDegree;if((0,s.ZL)(t))return i.Sw.metersPerDegree;n=l.values[l[t]],!n&&r&&d.has(t)&&(n=u)}else o&&(U(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??r}function C(e){return(0,s.EA)(e)?1:A(e)}function R(e,r){return e?.[1]?N(e[1]):r}function N(e){return parseFloat(e.split(",")[1])}function G(e){const r=e?.wkid??null,t=e?.wkt2??e?.wkt??null;let o=null;if(r)o=l.units[l[r]];else if(t){const e=U(t)?c:k(t)?_:null;if(e){const r=e.exec(t);r?.[1]&&(o=function(e){const r=/[\\"']{1}([^\\"']+)/.exec(e);let t=r?.[1];if(!t||!l.units.includes(t)){const r=N(e);t=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(r-o[e])<D){t=l.units[e];break}}return t}(r[1]))}}return null!=o?O(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,I=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),b=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),q=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},16930:(e,r,t)=>{t.d(r,{A:()=>P});var o,n=t(90237),i=t(69622),s=t(25482),a=t(4718),f=t(83047),u=t(56507),c=t(10107),l=t(40608),_=t(43937),d=t(21325);let p=o=class extends s.oY{static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return o.WebMercator;if(4326===e?.wkid)return o.WGS84;const r=new o;return r.read(e),r}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const r="string"==typeof e?"wkt":"wkid";return{[r]:e}}get isWGS84(){return(0,d.oT)(this)}get isWebMercator(){return(0,d.K8)(this)}get isGeographic(){return(0,d.EA)(this)}get isWrappable(){return(0,d.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===o.WGS84)return new o(d.KK);if(this===o.WebMercator)return new o(d.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==r||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):t?n.id===r&&n.referenceServiceName===t:n.id===r}return(0,d.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};p.GCS_NAD_1927=null,p.WGS84=null,p.WebMercator=null,p.PlateCarree=null,(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"isWGS84",null),(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"isWebMercator",null),(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"isGeographic",null),(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"isWrappable",null),(0,n._)([(0,c.M)({type:u.jz,json:{write:!0}})],p.prototype,"latestWkid",void 0),(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"metersPerUnit",null),(0,n._)([(0,c.M)({readOnly:!0})],p.prototype,"unit",null),(0,n._)([(0,c.M)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],p.prototype,"wkid",void 0),(0,n._)([(0,c.M)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],p.prototype,"wkt",void 0),(0,n._)([(0,_.K)("wkt"),(0,_.K)("web-scene","wkt")],p.prototype,"writeWkt",null),(0,n._)([(0,c.M)({type:String,json:{write:!1}})],p.prototype,"wkt2",void 0),(0,n._)([(0,c.M)({type:u.jz,json:{write:!0}})],p.prototype,"vcsWkid",void 0),(0,n._)([(0,c.M)({type:u.jz,json:{write:!0}})],p.prototype,"latestVcsWkid",void 0),(0,n._)([(0,c.M)()],p.prototype,"imageCoordinateSystem",void 0),p=o=(0,n._)([(0,l.$)("esri.geometry.SpatialReference")],p),p.prototype.toJSON.isDefaultToJSON=!0,p.GCS_NAD_1927=i.A.freeze(new p({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),p.WGS84=i.A.freeze(new p(d.KK)),p.WebMercator=i.A.freeze(new p(d.ch)),p.PlateCarree=i.A.freeze(new p(d.tQ));const P=p},73941:(e,r,t)=>{t.d(r,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>p,tO:()=>_,xP:()=>P,y7:()=>d});var o=t(79258),n=t(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.$O),a=i(o.sH),f=i(o.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.fn)(e)){const r=e.wkid,t=e.wkt2??e.wkt;if((0,n.tl)(r))return o.sH;const i=t?.toUpperCase();if(t&&i===c)return o.sH;if((0,n.ZL)(r)||i&&i===l)return o.Sw}return o.$O}function d(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,s)}function P(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}},79258:(e,r,t)=>{t.d(r,{$O:()=>n,Sw:()=>s,sH:()=>i});class o{constructor(e,r,t,o){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},19936:(e,r,t)=>{var o;t.d(r,{Y:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},22530:(e,r,t)=>{let o;t.d(r,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=10731;o<=10733;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=27700;o<=27707;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},21325:(e,r,t)=>{t.d(r,{B3:()=>h,EA:()=>P,K8:()=>m,KK:()=>R,KQ:()=>w,Mc:()=>f,Vp:()=>d,YX:()=>p,ZL:()=>M,aI:()=>_,ch:()=>N,d9:()=>A,fn:()=>C,jp:()=>g,oT:()=>E,q8:()=>O,r1:()=>T,tQ:()=>G,tl:()=>y,x1:()=>S});var o=t(799),n=(t(83290),t(19936)),i=t(22530);const s=[102100,102113,3857,3785,900913],a=[4326,...s,104905,104971],f=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],c={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},102100:c,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},3857:c,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:c};function _(e,r){if(e===r)return!0;if(null==e||null==r)return!1;const t=e.wkid,o=r.wkid;if(null!=t||null!=o){if(t===o)return!0;if(m(e)&&m(r))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const i=r.latestWkid;return null!=i&&t===i}let n,i;return e.wkt2&&r.wkt2?(n=e.wkt2,i=r.wkt2):e.wkt&&r.wkt&&(n=e.wkt,i=r.wkt),!(!n||!i)&&n.toUpperCase()===i.toUpperCase()}function d(e){const r=e?.wkid;return null!=r&&r>=2e3&&l[r]||null}function p(e){if(!e)return;const{wkid:r,vcsWkid:t}=e;if(r)return t?JSON.stringify({wkid:r,vcsWkid:t}):String(r);const o=e.wkt||e.wkt2;return JSON.stringify(o?t?{wkt:o,vcsWkid:t}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:r}=e;if(r)return null==i.A[r];const t=e.wkt2||e.wkt;return!!t&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(t)}function h(e){return!(O(e)||w(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return e?.wkid===n.Y.CGCS2000}function m(e){const r=e?.wkid;return null!=r&&r>=2e3&&s.includes(r)}function T(e){return 32662===e?.wkid}function y(e){return e===n.Y.GCSMARS2000||e===n.Y.GCSMARS2000_SPHERE}function O(e){return y(e?.wkid)}function M(e){return e===n.Y.GCSMOON2000}function w(e){return M(e?.wkid)}function A(e){const r=e?.wkid;return null!=r&&r>=2e3&&a.includes(r)}function C(e){if(null==e)return!1;const r=e.wkid;return null!=r&&r>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},78888:(e,r,t)=>{t.d(r,{A:()=>d});var o=t(92602),n=t(70333),i=t(49186),s=t(44208),a=t(4718),f=t(74887),u=t(84952),c=t(39131),l=t(926),_=t(56058);async function d(e,r){e instanceof URL&&(e=e.toString()),r?.query instanceof URLSearchParams&&(r.query=(0,u.zf)(r.query.toString().replaceAll("+"," ")));const i=(0,u.DB)(e),a=(0,u.w8)(e);a||i||(e=(0,u.S8)(e));const c={url:e,requestOptions:{...r}},d=e=>({data:e,getAllHeaders:m,getHeader:m,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),E=(0,u.sC)(e,P.internalInterceptors);if(E){const e=await C(E,c);if(null!=e)return d(e)}let g=(0,u.sC)(e);if(g){const e=await C(g,c);if(null!=e)return d(e);g.after||g.error||(g=null)}if(e=c.url,"image"===(r=c.requestOptions).responseType&&((0,s.A)("host-webworker")||(0,s.A)("host-node")))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===r.method){if(r.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(i||a)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,s.A)("host-webworker")&&!p&&(p=await t.e(369).then(t.bind(t,40369)))}(),p)return p.execute(e,r);const S=new AbortController,T=(0,f.u7)(r,(()=>S.abort())),y={controller:S,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:g,params:c,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},R=await async function(e){let r,t;await async function(e){const r=e.params.url,t=e.params.requestOptions,i=e.controller.signal,s=t.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(s instanceof FormData?a=s:s instanceof HTMLFormElement&&(a=new FormData(s))),"string"==typeof s&&(u=s),e.fetchOptions={cache:t.cacheBust?"no-cache":"default",credentials:"same-origin",headers:t.headers||{},method:"head"===t.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:i},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===t.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||t.query?.token||a?.get("token")),!e.hasToken&&o.A.apiKey&&(0,l.Q)(r)&&(t.query||(t.query={}),t.query.token=o.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(r)&&!(0,f.G4)(i)){let o;"immediate"===t.authMode?(await M(),o=await n.id.getCredential(r,{signal:i}),e.credential=o):"no-prompt"===t.authMode?(await M(),o=await n.id.getCredential(r,{prompt:!1,signal:i}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(r)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[r,t]=await A(e)}while(!await N(e,r,t))}catch(t){const o=O("request:server",t,e.params,r);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const i=e.params.url;if(t&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&t.user?.username&&!(0,u.FL)(i)){const e=(0,u.$z)(i,!0);e&&P.trustedServers.push(e)}Array.isArray(t.authorizedCrossOriginNoCorsDomains)&&(0,_.tz)(t.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&n.id){const e=n.id.findServerInfo(s.server);let r=e?.owningSystemUrl;if(r){r=r.replace(/\/?$/,"/sharing");const e=n.id.findCredential(r,s.userId);e&&-1===n.id._getIdenticalSvcIdx(r,e)&&e.resources.unshift(r)}}return{data:t,getAllHeaders:r?()=>Array.from(r.headers):m,getHeader:r?e=>r.headers.get(e):m,httpStatus:r?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(y).finally((()=>T?.remove()));return g?.after?.(R),R}let p;const P=o.A.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),S=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],m=()=>null,T=Symbol();function y(e){const r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d._corsServers.includes(r)||(0,u.FL)(r)}function O(e,r,t,o){let n="Error";const s={url:t.url,requestOptions:t.requestOptions,getAllHeaders:m,getHeader:m,ssl:!1};if(r instanceof i.A)return r.details?(r.details=(0,a.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=s,r;if(r){const e=o&&(()=>Array.from(o.headers)),t=o&&(e=>o.headers.get(e)),i=o?.status,a=r.message;a&&(n=a),e&&t&&(s.getAllHeaders=e,s.getHeader=t),s.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||i||0,s.subCode=r.subcode,s.messageCode=r.messageCode,"string"==typeof r.details?s.messages=[r.details]:s.messages=r.details,s.raw=T in r?r[T]:r}return(0,f.zf)(r)?(0,f.NK)():new i.A(e,n,s)}async function M(){n.id||await Promise.all([t.e(6285),t.e(6845),t.e(8438),t.e(3552)]).then(t.bind(t,67112))}function w(e){return S.some((r=>r.test(e)))}async function A(e){let r=e.params.url;const t=e.params.requestOptions,o=e.fetchOptions??{},i=(0,u.w8)(r)||(0,u.DB)(r),a=t.responseType||"json",l=i?0:null!=t.timeout?t.timeout:P.timeout;let p=!1;if(!i){e.useSSL&&(r=(0,u.lM)(r));let i={...t.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,u.x0)(i);(0,s.A)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=r.length+1+a.length;let l;p="delete"===t.method||"post"===t.method||"put"===t.method||!!t.body||f>P.maxUrlLength;const d=t.useProxy||!!(0,u.zs)(r);if(d){const e=(0,u.s_)(r);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(i={...e.query,...i})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===t.method?"DELETE":"put"===t.method?"PUT":"POST",t.body?r=(0,u.a6)(r,i):(o.body=(0,u.x0)(i),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,i),d&&(e.useProxy=!0,r=`${l}?${r}`),i.token&&h&&o.body instanceof FormData&&!(0,c.$E)(r)&&o.body.set("token",i.token),t.hasOwnProperty("withCredentials"))e.withCredentials=t.withCredentials;else if(!(0,u.FX)(r,(0,u.Xq)()))if((0,u.FL)(r))e.withCredentials=!0;else if(n.id){const t=n.id.findServerInfo(r);t?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.xW)(r)&&await(0,_.m3)(p?(0,u.a6)(r,i):r))}let E,g,S=0,m=!1;l>0&&(S=setTimeout((()=>{m=!0,e.controller.abort()}),l));try{if("native-request-init"===t.responseType)g=o,g.url=r,t.signal?g.signal=t.signal:delete g.signal;else if("image"!==t.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(t.headers)||!i&&!e.useProxy&&P.proxyUrl&&!y(r)){if(d._beforeFetch&&await d._beforeFetch(r,o),E=await fetch(r,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const r=(0,u.$z)(e);r&&!d._corsServers.includes(r)&&d._corsServers.push(r)}(r),"native"===t.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(S&&(clearTimeout(S),S=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=R(g,"application/xml");break;case"document":g=R(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await G(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await G(r,e)}catch(o){if("AbortError"===o.name){if(m)throw(0,_.ql)();throw(0,f.NK)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||t.body||"delete"===t.method||"head"===t.method||"post"===t.method||"put"===t.method||e.useProxy||y(r))throw o;e.redoRequest=!0,(0,u.oy)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{S&&clearTimeout(S)}return[E,g]}async function C(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,o;try{o=await e.before(r)}catch(e){t=O("request:interceptor",e,r)}if((o instanceof Error||o instanceof i.A)&&(t=O("request:interceptor",o,r)),t)throw e.error&&e.error(t),t;return o}}function R(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}async function N(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!r||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let i,s;if(t&&(t.error&&"object"==typeof t.error?i=t.error:"error"===t.status&&Array.isArray(t.messages)&&(i={...t},i[T]=t,i.details=t.messages)),!i&&!r.ok)throw i=new Error(`Unable to load ${r.url} status: ${r.status}`),i[T]=t,i;let a,f=null;i&&(s=Number(i.code),f=i.hasOwnProperty("subcode")?Number(i.subcode):null,a=i.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===s&&(4===f||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===s)&&void 0!==s&&E.has(s)&&!w(e.params.url)&&(403!==s||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await M();try{const r=await n.id.getCredential(e.params.url,{error:O("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;i=r}}if(i)throw i;return!0}function G(e,r,t=!1){const o=r.controller.signal,n=new Image;return r.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.Sx)(n,e,t,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},926:(e,r,t)=>{t.d(r,{Q:()=>i});var o=t(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function i(e){const r=(0,o.$z)(e,!0);return!!r&&r.endsWith(".arcgis.com")&&!n.has(r)&&!e.endsWith("/sharing/rest/generateToken")}},56058:(e,r,t)=>{t.d(r,{Sx:()=>a,c8:()=>l,m3:()=>p,ql:()=>c,tz:()=>_,xW:()=>d});var o=t(92602),n=t(44208),i=t(74887),s=t(84952);function a(e,r,t=!1,o){return new Promise(((s,a)=>{if((0,i.G4)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${r}`))},c=()=>{const r=e;_(),s(r)},l=()=>{if(!e)return;const r=e;_(),r.src="",a(f())};const _=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,t&&URL.revokeObjectURL(r)};null!=o&&o.addEventListener("abort",l),(0,n.A)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===u}function _(e){o.A.request.crossOriginNoCorsDomains||(o.A.request.crossOriginNoCorsDomains={});const r=o.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,s.$z)(t)??""]=0:(r[(0,s.$z)("http://"+t)??""]=0,r[(0,s.$z)("https://"+t)??""]=0)}function d(e){const r=o.A.request.crossOriginNoCorsDomains;if(r){let t=(0,s.$z)(e);if(t)return t=t.toLowerCase(),!(0,s.FX)(t,(0,s.Xq)())&&r[t]<Date.now()-36e5}return!1}async function p(e){const r=o.A.request.crossOriginNoCorsDomains,t=(0,s.$z)(e);r&&t&&(r[t.toLowerCase()]=Date.now());const n=(0,s.An)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6064],{97937:(t,e,n)=>{n.d(e,{c:()=>g,d:()=>A,f:()=>R,g:()=>N,h:()=>E,k:()=>v,o:()=>x,s:()=>j,w:()=>p}),n(44208),n(53966);var o=n(34727),r=n(58083),i=n(38954),s=n(51850),c=n(87317),a=n(91829),u=n(34304),l=n(88582),h=n(71351);function d(t,e){const n=(0,i.m)(t),r=(0,o.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,i.a)(e,n,r,s),e}var f=n(44280),T=n(32114);const _=g();function g(){return(0,a.vt)()}const m=c.e,O=c.e;function A(t,e){return(0,c.c)(e,t)}function p(t){return t}function E(t){return t[3]}function N(t){return t}function R(t,e,n,o){return(0,a.fA)(t,e,n,o)}function I(t,e,n){if(null==e)return!1;if(!M(t,e,S))return!1;let{t0:o,t1:r}=S;if((o<0||r<o&&r>0)&&(o=r),o<0)return!1;if(n){const{origin:t,direction:r}=e;n[0]=t[0]+r[0]*o,n[1]=t[1]+r[1]*o,n[2]=t[2]+r[2]*o}return!0}const S={t0:0,t1:0};function M(t,e,n){const{origin:o,direction:r}=e,i=b;i[0]=o[0]-t[0],i[1]=o[1]-t[1],i[2]=o[2]-t[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const c=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),a=c*c-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(a<0)return!1;const u=Math.sqrt(a);return n.t0=(-c-u)/(2*s),n.t1=(-c+u)/(2*s),!0}const b=(0,s.vt)();function v(t,e){return I(t,e,null)}function F(t,e,n){const o=T.rq.get(),s=T.Rc.get();(0,i.b)(o,e.origin,e.direction);const c=E(t);(0,i.b)(n,o,e.origin),(0,i.j)(n,n,1/(0,i.m)(n)*c);const a=L(t,e.origin),u=(0,f.g7)(e.origin,n);return(0,r.$0)(s,u+a,o),(0,i.h)(n,n,s),n}function P(t,e,n){const o=(0,i.f)(T.rq.get(),e,t),r=(0,i.j)(T.rq.get(),o,t[3]/(0,i.m)(o));return(0,i.g)(n,r,t)}function L(t,e){const n=(0,i.f)(T.rq.get(),e,t),r=(0,i.m)(n),s=E(t),c=s+Math.abs(s-r);return(0,o.XM)(s/c)}const C=(0,s.vt)();function B(t,e,n,o){const r=(0,i.f)(C,e,t);switch(n){case l._.X:{const t=d(r,C)[2];return(0,i.a)(o,-Math.sin(t),Math.cos(t),0)}case l._.Y:{const t=d(r,C),e=t[1],n=t[2],s=Math.sin(e);return(0,i.a)(o,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case l._.Z:return(0,i.n)(o,r);default:return}}function w(t,e){const n=(0,i.f)(y,e,t);return(0,i.m)(n)-t[3]}function x(t,e){const n=(0,i.s)(t,e),o=E(t);return n<=o*o}const y=(0,s.vt)(),D=g(),j=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:w,angleToSilhouette:L,axisAt:B,cameraFrustumCoverage:function(t,e,n,o){const r=E(t),i=r*r,s=e+.5*Math.PI,c=n*n+i-2*Math.cos(s)*n*r,a=Math.sqrt(c),u=c-i;if(u<=0)return.5;const l=Math.sqrt(u),h=Math.acos(l/a)-Math.asin(r/(a/Math.sin(s)));return Math.min(1,(h+.5*o)/o)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return I(t,e,n)?n:((0,h.oC)(e,t,n),P(t,n,n))},closestPointOnSilhouette:F,containsPoint:x,copy:A,create:g,distanceToSilhouette:function(t,e){const n=(0,i.f)(T.rq.get(),e,t),o=(0,i.q)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(o-r))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:O,exactEquals:m,fromCenterAndRadius:function(t,e){return(0,a.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:R,getCenter:N,getExtent:function(t,e){return e},getRadius:E,intersectLine:function(t,e,n){const o=(0,h.Cr)(e,n);if(!M(t,o,S))return[];const{origin:r,direction:c}=o,{t0:a,t1:l}=S,d=e=>{const n=(0,s.vt)();return(0,i.r)(n,r,c,e),P(t,n,n)};return Math.abs(a-l)<(0,u.FD)()?[d(a)]:[d(a),d(l)]},intersectRay:I,intersectRayClosestSilhouette:function(t,e,n){if(I(t,e,n))return n;const o=F(t,e,T.rq.get());return(0,i.g)(n,e.origin,(0,i.j)(T.rq.get(),e.direction,(0,i.p)(e.origin,o)/(0,i.m)(e.direction))),n},intersectsRay:v,projectPoint:P,setAltitudeAt:function(t,e,n,o){const r=w(t,e),s=B(t,e,l._.Z,y),c=(0,i.j)(y,s,n-r);return(0,i.g)(o,e,c)},setExtent:function(t,e,n){return t!==n&&A(t,n),n},tmpSphere:D,union:function(t,e,n=(0,a.vt)()){const o=(0,i.p)(t,e),r=t[3],s=e[3];return o+s<r?((0,c.c)(n,t),n):o+r<s?((0,c.c)(n,e),n):((0,i.o)(n,t,e,(o+s-r)/(2*o)),n[3]=(o+r+s)/2,n)},wrap:p},Symbol.toStringTag,{value:"Module"}))},4341:(t,e,n)=>{n.d(e,{I:()=>r});var o=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,o.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},91829:(t,e,n)=>{function o(){return[0,0,0,0]}function r(t,e,n,o){return[t,e,n,o]}function i(t,e,n,o){return[t,e,n,o]}function s(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let o=0;o<n;++o)e[o]=t[o];return e}function c(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function u(){return r(0,1,0,0)}function l(){return r(0,0,1,0)}function h(){return r(0,0,0,1)}n.d(e,{CN:()=>i,Un:()=>f,ci:()=>s,fA:()=>r,uY:()=>d,vt:()=>o});const d=[0,0,0,0],f=c(),T=a(),_=u(),g=l(),m=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:m,UNIT_X:T,UNIT_Y:_,UNIT_Z:g,ZEROS:d,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:o,createView:function(t,e){return new Float64Array(t,e,4)},freeze:i,fromArray:s,fromValues:r,ones:c,unitW:h,unitX:a,unitY:u,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,n)=>{n.d(e,{$8:()=>A,Cc:()=>s,Io:()=>O,KJ:()=>u,Sp:()=>d,XM:()=>l,YN:()=>h,cU:()=>r,hs:()=>c,kU:()=>a,or:()=>E,pF:()=>R,pq:()=>N,qE:()=>i});const o=new Float32Array(1);function r(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,n){return Math.min(Math.max(t,e),n)}function s(t,e,n){return t+(e-t)*n}function c(t,e,n,o,r){return s(o,r,(t-e)/(n-e))}function a(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}const f=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function T(t){return f.setFloat64(0,t),f.getBigInt64(0)}const _=BigInt("1000000"),g=m(1);function m(t){const e=T(t=Math.abs(t)),n=function(t){return f.setBigInt64(0,t),f.getFloat64(0)}(e<=_?_:e-_);return Math.abs(t-n)}function O(t,e,n=g){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&m(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;const o=T(t),r=T(e);return o<0==r<0&&!((o<r?r-o:o-r)>_)}function A(t){return p(Math.max(-N,Math.min(t,N)))}function p(t){return o[0]=t,o[0]}function E(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],o=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(o,1))}const N=p(34028234663852886e22);function R(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let o=e.toString().split("e");return o=(e=Math[t](+(o[0]+"e"+(o[1]?+o[1]-n:-n)))).toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+n:n))}},88582:(t,e,n)=>{var o;n.d(e,{_:()=>o}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(o||(o={}))},82919:(t,e,n)=>{n.d(e,{C:()=>m,vt:()=>g,ui:()=>O,m7:()=>A});var o=n(4341),r=n(58083),i=n(38954),s=n(51850),c=n(87317),a=n(91829),u=n(71351);function l(t){return t?{ray:(0,u.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,u.vt)(),c0:0,c1:Number.MAX_VALUE}}new o.I((()=>l()));var h,d,f,T=n(27921),_=n(32114);function g(t){return t?[(0,T.vt)(t[0]),(0,T.vt)(t[1]),(0,T.vt)(t[2]),(0,T.vt)(t[3]),(0,T.vt)(t[4]),(0,T.vt)(t[5])]:[(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)(),(0,T.vt)()]}function m(t,e){for(let n=0;n<p;n++)(0,T.C)(t[n],e[n]);return t}function O(t,e,n,o=R){const s=(0,r.lw)(_.Rc.get(),e,t);(0,r.B8)(s,s);for(let t=0;t<E;++t){const e=(0,c.t)(_.Km.get(),N[t],s);(0,i.a)(o[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,T.Cr)(e[d.FAR_BOTTOM_LEFT],e[d.NEAR_BOTTOM_LEFT],e[d.NEAR_TOP_LEFT],t[h.LEFT]),(0,T.Cr)(e[d.NEAR_BOTTOM_RIGHT],e[d.FAR_BOTTOM_RIGHT],e[d.FAR_TOP_RIGHT],t[h.RIGHT]),(0,T.Cr)(e[d.FAR_BOTTOM_LEFT],e[d.FAR_BOTTOM_RIGHT],e[d.NEAR_BOTTOM_RIGHT],t[h.BOTTOM]),(0,T.Cr)(e[d.NEAR_TOP_LEFT],e[d.NEAR_TOP_RIGHT],e[d.FAR_TOP_RIGHT],t[h.TOP]),(0,T.Cr)(e[d.NEAR_BOTTOM_LEFT],e[d.NEAR_BOTTOM_RIGHT],e[d.NEAR_TOP_RIGHT],t[h.NEAR]),(0,T.Cr)(e[d.FAR_BOTTOM_RIGHT],e[d.FAR_BOTTOM_LEFT],e[d.FAR_TOP_LEFT],t[h.FAR])}(n,o)}function A(t,e){for(let n=0;n<p;n++){const o=t[n];if(o[0]*e[0]+o[1]*e[1]+o[2]*e[2]+o[3]>=e[3])return!1}return!0}(f=h||(h={}))[f.LEFT=0]="LEFT",f[f.RIGHT=1]="RIGHT",f[f.BOTTOM=2]="BOTTOM",f[f.TOP=3]="TOP",f[f.NEAR=4]="NEAR",f[f.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(d||(d={})),d.FAR_BOTTOM_RIGHT,d.NEAR_BOTTOM_RIGHT,d.NEAR_BOTTOM_LEFT,d.FAR_BOTTOM_LEFT,d.NEAR_BOTTOM_LEFT,d.NEAR_BOTTOM_RIGHT,d.NEAR_TOP_RIGHT,d.NEAR_TOP_LEFT,d.FAR_BOTTOM_RIGHT,d.FAR_BOTTOM_LEFT,d.FAR_TOP_LEFT,d.FAR_TOP_RIGHT,d.NEAR_BOTTOM_RIGHT,d.FAR_BOTTOM_RIGHT,d.FAR_TOP_RIGHT,d.NEAR_TOP_RIGHT,d.FAR_BOTTOM_LEFT,d.NEAR_BOTTOM_LEFT,d.NEAR_TOP_LEFT,d.FAR_TOP_LEFT,d.FAR_TOP_LEFT,d.NEAR_TOP_LEFT,d.NEAR_TOP_RIGHT,d.FAR_TOP_RIGHT;const p=6,E=8,N=[(0,a.fA)(-1,-1,-1,1),(0,a.fA)(1,-1,-1,1),(0,a.fA)(1,1,-1,1),(0,a.fA)(-1,1,-1,1),(0,a.fA)(-1,-1,1,1),(0,a.fA)(1,-1,1,1),(0,a.fA)(1,1,1,1),(0,a.fA)(-1,1,1,1)],R=(new o.I(l),[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()])},11964:(t,e,n)=>{n.d(e,{Cr:()=>u,H6:()=>d,_I:()=>h,kb:()=>l,vt:()=>a});var o=n(34727),r=n(4341),i=n(38954),s=n(51850),c=n(32114);function a(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.f)(n.vector,e,t),n}function l(t,e){const n=(0,i.f)(c.rq.get(),e,t.origin),r=(0,i.l)(t.vector,n),s=(0,i.l)(t.vector,t.vector),a=(0,o.qE)(r/s,0,1),u=(0,i.f)(c.rq.get(),(0,i.j)(c.rq.get(),t.vector,a),n);return(0,i.l)(u,u)}function h(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,r,s){const{vector:a,origin:u}=t,l=(0,i.f)(c.rq.get(),e,u),h=(0,i.l)(a,l)/(0,i.q)(a);return(0,i.j)(s,a,(0,o.qE)(h,n,r)),(0,i.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new r.I((()=>a()))},9318:(t,e,n)=>{n.d(e,{b:()=>i});var o=n(34727),r=n(97146);function i(t,e,n){const i=Array.isArray(t),l=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,l*e),d=n?.minReduction??0,f=n?.originalIndices||null,T=f?f.length:0,_=n?.componentOffsets||null;let g=0;if(_)for(let t=0;t<_.length-1;t++){const e=_[t+1]-_[t];e>g&&(g=e)}else g=l;const m=Math.floor(1.1*g)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,o.cU)(2*m)));for(let t=0;t<2*m;t++)u[t]=0;let O=0;const A=!!_&&!!f,p=A?T:l;let E=(0,r.my)(l);const N=new Uint32Array(T),R=1.96;let I=0!==d?Math.ceil(4*R*R/(d*d)*d*(1-d)):p,S=1,M=_?_[1]:p;for(let t=0;t<p;t++){if(t===I){const e=1-O/t;if(e+R*Math.sqrt(e*(1-e)/t)<d)return null;I*=2}if(t===M){for(let t=0;t<2*m;t++)u[t]=0;if(f)for(let t=_[S-1];t<_[S];t++)N[t]=E[f[t]];M=_[++S]}const n=A?f[t]:t,o=n*e,r=a(h,o,e);let i=r%m,c=O;for(;0!==u[2*i+1];){if(u[2*i]===r){const t=u[2*i+1]-1;if(s(h,o,t*e,e)){c=E[t];break}}i++,i>=m&&(i-=m)}c===O&&(u[2*i]=r,u[2*i+1]=n+1,O++),E[n]=c}if(0!==d&&1-O/l<d)return null;if(A){for(let t=_[S-1];t<N.length;t++)N[t]=E[f[t]];E=(0,r.Dg)(N)}const b=i?new Array(O):new Uint32Array(O*e);O=0;for(let t=0;t<p;t++)E[t]===O&&(c(h,(A?f[t]:t)*e,b,O*e,e),O++);if(f&&!A){const t=new Uint32Array(T);for(let e=0;e<t.length;e++)t[e]=E[f[e]];E=(0,r.Dg)(t)}return{buffer:Array.isArray(b)?b:b.buffer,indices:E,uniqueCount:O}}function s(t,e,n,o){for(let r=0;r<o;r++)if(t[e+r]!==t[n+r])return!1;return!0}function c(t,e,n,o,r){for(let i=0;i<r;i++)n[o+i]=t[e+i]}function a(t,e,n){let o=0;for(let r=0;r<n;r++)o=t[e+r]+o|0,o=o+(o<<11)+(o>>>2)|0;return o>>>0}let u=null},71351:(t,e,n)=>{n.d(e,{C:()=>h,Cr:()=>d,LV:()=>l,kb:()=>f,oC:()=>T,vt:()=>a}),n(4576);var o=n(4341),r=(n(77690),n(29242)),i=n(38954),s=n(51850),c=n(32114);function a(t){return t?u((0,s.o8)(t.origin),(0,s.o8)(t.direction)):u((0,s.vt)(),(0,s.vt)())}function u(t,e){return{origin:t,direction:e}}function l(t,e){const n=_.get();return n.origin=t,n.direction=e,n}function h(t,e=a()){return function(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.c)(n.direction,e),n}(t.origin,t.direction,e)}function d(t,e,n=a()){return(0,i.c)(n.origin,t),(0,i.f)(n.direction,e,t),n}function f(t,e){const n=(0,i.b)(c.rq.get(),(0,i.n)(c.rq.get(),t.direction),(0,i.f)(c.rq.get(),e,t.origin));return(0,i.l)(n,n)}function T(t,e,n){const o=(0,i.l)(t.direction,(0,i.f)(n,e,t.origin));return(0,i.g)(n,t.origin,(0,i.j)(n,t.direction,o)),n}const _=new o.I((()=>a()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,r.vt)()},4431:(t,e,n)=>{n.d(e,{U:()=>i});var o=n(63907),r=n(74038);function i(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).map((o=>{const i=t.fields.get(o),c=i.constructor.ElementCount,a=s(i.constructor.ElementType),u=i.offset,l=i.optional?.glNormalized??!1;return new r._(o,c,a,u,n,l,e)}))}function s(t){const e=c[t];if(e)return e;throw new Error("BufferType not supported in WebGL")}const c={u8:o.pe.UNSIGNED_BYTE,u16:o.pe.UNSIGNED_SHORT,u32:o.pe.UNSIGNED_INT,i8:o.pe.BYTE,i16:o.pe.SHORT,i32:o.pe.INT,f32:o.pe.FLOAT}},78230:(t,e,n)=>{n.d(e,{A:()=>G});var o,r,i=n(93687),s=n(3694),c=n(38954),a=n(51850),u=n(82919),l=n(71351),h=n(97937),d=n(620);class f{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new T,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),T.clearPool(),P[0]=null,x.prune(),H.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=T.acquire();for(let o=0;o<e;o++){const e=t[o];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}T.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=T.acquire();for(const o of t){const t=e??(0,h.d)(this.objectToBoundingSphere(o),y);M(t[3])?(n.init(this._root),m(o,t,n)):this._degenerateObjects.delete(o)}T.release(n),this._shrink()}update(t,e){if(!M(e[3])&&this._isDegenerate(t))return;const n=function(t){return P[0]=t,P}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const o=(0,l.LV)(t,e);_(this._root,(t=>{if(!function(t,e){return N((0,h.g)(e.bounds),2*-e.halfSize,B),N((0,h.g)(e.bounds),2*e.halfSize,w),(0,d.O_)(t.origin,t.direction,B,w)}(o,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(o,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(o,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,o){const r=(0,l.LV)(t,e);_(this._root,(t=>{if(!function(t,e,n){return N((0,h.g)(e.bounds),2*-e.halfSize,B),N((0,h.g)(e.bounds),2*e.halfSize,w),n.applyToMinMax(B,w),(0,d.O_)(t.origin,t.direction,B,w)}(r,t,o))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)})),!0}))}forEach(t){_(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,o=()=>!0,r=1/0){let i=1/0,s=1/0,a=null;const l=I(t,e),d=c=>{if(--r,!o(c))return;const l=this.objectToBoundingSphere(c);if(!(0,u.m7)(n,l))return;const d=S(t,e,(0,h.g)(l)),f=d-l[3],T=d+l[3];f<i&&(i=f,s=T,a=c)};return g(this._root,(o=>{if(r<=0||!(0,u.m7)(n,o.bounds))return!1;if((0,c.j)(C,l,o.halfSize),(0,c.g)(C,C,(0,h.g)(o.bounds)),S(t,e,C)>s)return!1;const i=o.node;return i.terminals.forAll((t=>d(t))),null!==i.residents&&i.residents.forAll((t=>d(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,o,r,i,s){let a=-1/0,l=1/0;const d={setRange:t=>{n===f.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),l=Math.min(l,t.far)):(a=Math.max(a,-t.far),l=Math.min(l,-t.near))}};d.setRange(o);const T=S(e,n,t),_=I(e,n),m=I(e,-n),O=t=>{if(!s(t))return;const o=this.objectToBoundingSphere(t),c=(0,h.g)(o),f=S(e,n,c)-T,_=f-o[3],g=f+o[3];_>l||g<a||!(0,u.m7)(i,o)||r(t,d)};g(this._root,(t=>{if(!(0,u.m7)(i,t.bounds))return!1;if((0,c.j)(C,_,t.halfSize),(0,c.g)(C,C,(0,h.g)(t.bounds)),S(e,n,C)-T>l)return!1;if((0,c.j)(C,m,t.halfSize),(0,c.g)(C,C,(0,h.g)(t.bounds)),S(e,n,C)-T<a)return!1;const o=t.node;return o.terminals.forAll((t=>O(t))),null!==o.residents&&o.residents.forAll((t=>O(t))),!0}),e,n)}forEachNode(t){_(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,h.h)(e),o=(0,h.g)(e),r=e=>{const r=this.objectToBoundingSphere(e),i=(0,h.h)(r),s=n+i;return!((0,c.s)((0,h.g)(r),o)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=r(t))};_(this._root,(t=>{const e=(0,h.h)(t.bounds),r=n+e;if((0,c.s)((0,h.g)(t.bounds),o)-r*r>0)return!1;const a=t.node;return a.terminals.forAll(s),i&&null!==a.residents&&a.residents.forAll(s),i})),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,h.k)(n,t)}_intersectsObjectWithOffset(t,e,n){const o=this.objectToBoundingSphere(e);return!(o[3]>0)||(0,h.k)(n.applyToBoundingSphere(o),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const o=T.acquire().init(t);this._add(e.at(n),o),T.release(o)}}_grow(t,e){if(0!==e&&(R(t,e,(t=>this.objectToBoundingSphere(t)),D),M(D[3])&&!this._fitsInsideTree(D)))if(A(this._root.node))(0,h.d)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),T.release(t)}}_rebuildTree(t,e){(0,c.c)((0,h.g)(j),(0,h.g)(e.bounds)),j[3]=e.halfSize,R([t,j],2,(t=>t),U);const n=T.acquire().init(this._root);this._root.initFrom(null,U,U[3]),this._root.increaseHalfSize(1.25),_(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),T.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return _(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let o=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=r[t]-i-(n[t]-e),c=n[t]+e-(r[t]+i),a=Math.max(0,Math.ceil(s/(2*i))),u=Math.max(0,Math.ceil(c/(2*i)))+1,l=2**Math.ceil(Math.log(a+u)*Math.LOG2E);o=Math.max(o,l),z[t].min=a,z[t].max=u}for(let t=0;t<3;t++){let e=z[t].min,n=z[t].max;const s=(o-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=r[t]-i-e*i*2;L[t]=c+(n+e)*i}const s=o*i;return L[3]=s*F,T.acquire().initFrom(null,L,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.c)((0,h.g)(D),(0,h.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,o=0;for(;o<e.length&&null==t;)n=o++,t=e[n];for(;o<e.length;)if(e[o++])return-1;return n}_isDegenerate(t){return!M(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,o=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:o}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),o=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:o}}static fromJSON(t){const e=new f((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class T{constructor(){this.bounds=(0,h.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,o=this.depth){return this.node=null!=t?t:T.createEmptyNode(),e&&(0,h.d)(e,this.bounds),this.halfSize=n,this.depth=o,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*F}advance(t){let e=this.node.children[t];e||(e=T.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=b[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const o=this._childIndex(t);e&&e(this,o),this.advance(o)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new s.A({shrink:!0}),residents:new s.A({shrink:!0})}}static acquire(){return T._pool.acquire()}static release(t){T._pool.release(t)}static clearPool(){T._pool.prune()}}function _(t,e){let n=T.acquire().init(t);const o=[n];for(;0!==o.length;){if(n=o.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&o.push(T.acquire().init(n).advance(t));T.release(n)}}function g(t,e,n,o=f.DepthOrder.FRONT_TO_BACK){let r=T.acquire().init(t);const i=[r];for(function(t,e,n){if(!H.length)for(let t=0;t<8;++t)H.push({index:0,distance:0});for(let n=0;n<8;++n){const o=b[n];H.data[n].index=n,H.data[n].distance=S(t,e,o)}H.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=H.data[t].index}(n,o,V);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=V[t];r.node.children[e]&&i.push(T.acquire().init(r).advance(e))}T.release(r)}}function m(t,e,n){x.clear();const o=n.advanceTo(e,((t,e)=>{x.push(t.node),x.push(e)}))?n.node.terminals:n.node.residents;if(o.removeUnordered(t),0===o.length)for(let t=x.length-2;t>=0&&O(x.data[t],x.data[t+1]);t-=2);}function O(t,e){return e>=0&&(t.children[e]=null),!!A(t)&&(null===t.residents&&(t.residents=new s.A({shrink:!0})),!0)}function A(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function p(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function E(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function N(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function R(t,e,n,o){if(1===e){const e=n(t[0]);(0,h.d)(e,o)}else{B[0]=1/0,B[1]=1/0,B[2]=1/0,w[0]=-1/0,w[1]=-1/0,w[2]=-1/0;for(let o=0;o<e;o++){const e=n(t[o]);M(e[3])&&(p(B,e),E(w,e))}(0,c.o)((0,h.g)(o),B,w,.5),o[3]=Math.max(w[0]-B[0],w[1]-B[1],w[2]-B[2])/2}}function I(t,e){let n,o=1/0;for(let r=0;r<8;++r){const i=S(t,e,v[r]);i<o&&(o=i,n=v[r])}return n}function S(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function M(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}T._pool=new i.A(T),o=f||(f={}),(r=o.DepthOrder||(o.DepthOrder={}))[r.FRONT_TO_BACK=1]="FRONT_TO_BACK",r[r.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const b=[(0,a.fA)(-1,-1,-1),(0,a.fA)(1,-1,-1),(0,a.fA)(-1,1,-1),(0,a.fA)(1,1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(1,-1,1),(0,a.fA)(-1,1,1),(0,a.fA)(1,1,1)],v=[(0,a.fA)(-1,-1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(-1,1,-1),(0,a.fA)(-1,1,1),(0,a.fA)(1,-1,-1),(0,a.fA)(1,-1,1),(0,a.fA)(1,1,-1),(0,a.fA)(1,1,1)],F=Math.sqrt(3),P=[null],L=(0,h.c)(),C=(0,a.vt)(),B=(0,a.vt)(),w=(0,a.vt)(),x=new s.A,y=(0,h.c)(),D=(0,h.c)(),j=(0,h.c)(),U=(0,h.c)(),z=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],H=new s.A,V=[0,0,0,0,0,0,0,0],G=f},46540:(t,e,n)=>{var o;n.d(e,{r:()=>o}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(o||(o={}))},3055:(t,e,n)=>{n.d(e,{I$:()=>s,In:()=>u,gr:()=>a});var o=n(4431),r=n(1843),i=n(46540);const s=(0,r.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),c=(0,r.BP)().vec2u8(i.r.SIDENESS).freeze(),a=((0,o.U)(c),(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),u=(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},93406:(t,e,n)=>{n.d(e,{K:()=>a});var o=n(34727),r=n(3694),i=n(38954),s=n(51850);const c=-1;function a(t,e,n){const o=t.vertices.position,r=t.vertices.componentIndex,s=_.position0,a=_.position1,h=_.faceNormal0,f=_.faceNormal1,{edges:T,normals:g}=l(t),m=T.length/4,O=e.allocate(m);let A=0;const p=m,R=n?.allocate(p);let S=0,M=0,b=0;d.length=0;for(let t=0;t<m;++t){const e=4*t;o.getVec(T.data[e],s),o.getVec(T.data[e+1],a);const n=d.pushNew();n.index=4*t,n.length=(0,i.p)(s,a)}d.sort(((t,e)=>e.length-t.length));const v=new Array,F=new Array;d.forAll((({length:t,index:l})=>{const d=T.data[l],m=T.data[l+1],p=T.data[l+2],P=T.data[l+3],L=P===c;if(o.getVec(d,s),o.getVec(m,a),L){const t=3*p;(0,i.a)(h,g.data[t],g.data[t+1],g.data[t+2]),(0,i.c)(f,h),_.componentIndex=r.get(d),_.cosAngle=(0,i.l)(h,f)}else{let t=3*p;if((0,i.a)(h,g.data[t],g.data[t+1],g.data[t+2]),t=3*P,(0,i.a)(f,g.data[t],g.data[t+1],g.data[t+2]),_.componentIndex=r.get(d),_.cosAngle=(0,i.l)(h,f),function(t,e){return t.cosAngle>e}(_,N))return;_.cosAngle<-.9999&&(0,i.c)(f,h)}M+=t,b++,L||function(t,e){return t.cosAngle<e}(_,I)?(e.write(O,A++,_),v.push(t)):u(_,E)&&(R&&n&&n.write(R,S++,_),F.push(t))}));const P=new Float32Array(v.reverse()),L=new Float32Array(F.reverse()),C=R&&n?{instancesData:R.slice(0,S),lodInfo:{lengths:L}}:void 0;return{regular:{instancesData:O.slice(0,A),lodInfo:{lengths:P}},silhouette:C,averageEdgeLength:M/b}}function u(t,e){const n=(0,o.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),n*((0,i.l)((0,i.b)(g,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function l(t){const e=t.faces.length/3,n=t.faces,o=t.neighbors,r=t.vertices.position;f.length=T.length=0;for(let t=0;t<e;t++){const e=3*t,s=o[e],a=o[e+1],u=o[e+2],l=n[e],h=n[e+1],d=n[e+2];r.getVec(l,O),r.getVec(h,A),r.getVec(d,p),(0,i.f)(A,A,O),(0,i.f)(p,p,O),(0,i.b)(O,A,p),(0,i.n)(O,O),T.pushArray(O),(s===c||l<h)&&(f.push(l),f.push(h),f.push(t),f.push(s)),(a===c||h<d)&&(f.push(h),f.push(d),f.push(t),f.push(a)),(u===c||d<l)&&(f.push(d),f.push(l),f.push(t),f.push(u))}return{edges:f,normals:T}}class h{constructor(){this.index=0,this.length=0}}const d=new r.A({allocator:t=>t||new h,deallocator:null}),f=new r.A({deallocator:null}),T=new r.A({deallocator:null}),_=new class{constructor(){this.position0=(0,s.vt)(),this.position1=(0,s.vt)(),this.faceNormal0=(0,s.vt)(),this.faceNormal1=(0,s.vt)(),this.componentIndex=0,this.cosAngle=0}},g=(0,s.vt)(),m=(0,s.vt)(),O=(0,s.vt)(),A=(0,s.vt)(),p=(0,s.vt)(),E=(0,o.kU)(4),N=Math.cos(E),R=(0,o.kU)(35),I=Math.cos(R)},53099:(t,e,n)=>{n.d(e,{o6:()=>v,HY:()=>w,hx:()=>F,Jb:()=>B});var o=n(9318);function r(t,e,n){const o=e/3,r=new Uint32Array(n+1),i=new Uint32Array(n+1),s=(t,e)=>{t<e?r[t+1]++:i[e+1]++};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];s(n,o),s(o,r),s(r,n)}let c=0,a=0;for(let t=0;t<n;t++){const e=r[t+1],n=i[t+1];r[t+1]=c,i[t+1]=a,c+=e,a+=n}const u=new Uint32Array(6*o),l=r[n],h=(t,e,n)=>{if(t<e){const o=r[t+1]++;u[2*o]=e,u[2*o+1]=n}else{const o=i[e+1]++;u[2*l+2*o]=t,u[2*l+2*o+1]=n}};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];h(n,o,e),h(o,r,e),h(r,n,e)}const d=(t,e)=>{const n=2*t,o=e-t;for(let t=1;t<o;t++){const e=u[n+2*t],o=u[n+2*t+1];let r=t-1;for(;r>=0&&u[n+2*r]>e;r--)u[n+2*r+2]=u[n+2*r],u[n+2*r+3]=u[n+2*r+1];u[n+2*r+2]=e,u[n+2*r+3]=o}};for(let t=0;t<n;t++)d(r[t],r[t+1]),d(l+i[t],l+i[t+1]);const f=new Int32Array(3*o),T=(e,n)=>e===t[3*n]?0:e===t[3*n+1]?1:e===t[3*n+2]?2:-1,_=(t,e)=>{const n=T(t,e);f[3*e+n]=-1},g=(t,e,n,o)=>{const r=T(t,e);f[3*e+r]=o;const i=T(n,o);f[3*o+i]=e};for(let t=0;t<n;t++){let e=r[t];const n=r[t+1];let o=i[t];const s=i[t+1];for(;e<n&&o<s;){const n=u[2*e],r=u[2*l+2*o];n===r?(g(t,u[2*e+1],r,u[2*l+2*o+1]),e++,o++):n<r?(_(t,u[2*e+1]),e++):(_(r,u[2*l+2*o+1]),o++)}for(;e<n;)_(t,u[2*e+1]),e++;for(;o<s;)_(u[2*l+2*o],u[2*l+2*o+1]),o++}return f}var i=n(1843),s=n(46540),c=n(3055),a=n(87811),u=n(38954),l=n(51850),h=n(4431),d=n(34727);function f(t,e,n,o,r,i=2){const s=1/(Math.abs(n)+Math.abs(o)+Math.abs(r)),c=n*s,a=o*s,u=r<=0?(c>=0?1:-1)*(1-Math.abs(a)):c,l=r<=0?(a>=0?1:-1)*(1-Math.abs(c)):a,h=e*i;t[h]=T(u),t[h+1]=T(l)}function T(t){return(0,d.qE)(Math.round(32767*t),-32767,32767)}n(11868);class _{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?p:A}write(t,e,n){M.seed=this._edgeHashFunction(n);const o=M.getIntRange(0,255),r=M.getIntRange(0,this.settings.variants-1),i=M.getFloat(),s=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex),t.variantOffset.set(e,o),t.variantStroke.set(e,r),t.variantExtension.set(e,s)}}const g=new Float32Array(6),m=new Uint32Array(g.buffer),O=new Uint32Array(1);function A(t){return g[0]=t.position0[0],g[1]=t.position0[1],g[2]=t.position0[2],g[3]=t.position1[0],g[4]=t.position1[1],g[5]=t.position1[2],O[0]=31*(31*(31*(31*(31*(166811+m[0])+m[1])+m[2])+m[3])+m[4])+m[5],O[0]}function p(t){const e=g;e[0]=N(t.position0[0]),e[1]=N(t.position0[1]),e[2]=N(t.position0[2]),e[3]=N(t.position1[0]),e[4]=N(t.position1[1]),e[5]=N(t.position1[2]),O[0]=5381;for(let t=0;t<m.length;t++)O[0]=31*O[0]+m[t];return O[0]}const E=1e4;function N(t){return Math.round(t*E)/E}class R{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.gr.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),(0,u.g)(S,n.faceNormal0,n.faceNormal1),(0,u.n)(S,S);const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,S[0],S[1],S[2],r)}}R.Layout=c.gr,R.glLayout=(0,h.U)(c.gr,1);class I{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return c.In.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n);{const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,n.faceNormal0[0],n.faceNormal0[1],n.faceNormal0[2],r)}{const{typedBuffer:o,typedBufferStride:r}=t.normal2Compressed;f(o,e,n.faceNormal1[0],n.faceNormal1[1],n.faceNormal1[2],r)}}}I.Layout=c.In,I.glLayout=(0,h.U)(c.In,1);const S=(0,l.vt)(),M=new a.A;var b=n(93406);function v(t){const e=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return L.updateSettings(t.writerSettings),C.updateSettings(t.writerSettings),(0,b.K)(e,L,C)}function F(t,e,n,i){if(e){const e=r(n,i,t.count);return new P(n,i,e,t)}const s=(0,o.b)(t.buffer,t.stride/4,{originalIndices:n,originalIndicesLength:i}),a=r(s.indices,i,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:a,vertices:c.I$.createView(s.buffer)}}class P{constructor(t,e,n,o){this.faces=t,this.facesLength=e,this.neighbors=n,this.vertices=o}}const L=new R,C=new I,B=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1),w=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1).u16(s.r.COMPONENTINDEX)},46064:(t,e,n)=>{n.r(e),n.d(e,{default:()=>T});var o=n(90237),r=n(74887),i=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(38954),c=n(51850),a=n(11964),u=n(97937),l=n(78230),h=n(53099);function d(t,e,n){const o=(0,u.c)(),r=(0,u.g)(o);return(0,s.r)(r,r,t,.5),(0,s.r)(r,r,e,.5),o[3]=(0,s.p)(r,t),(0,s.g)(r,r,n),o}let f=class{constructor(){this._idToComponent=new Map,this._components=new l.A((t=>t.bounds)),this._edges=new l.A((t=>t.bounds)),this._tmpLineSegment=(0,a.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,r.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:o}=t;n.push({id:e,uid:o})}return!0}),t.bounds),!n.length)return;const o={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",o,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new g(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=h.HY.createView(t.locations),o=new Array(n.count),r=(0,c.vt)(),i=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,r),n.position1.getVec(s,i);const c=d(r,i,t.origin),a=new m(e,s,c);o[s]=a}this._edges.add(o);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:o}=e.component,{origin:r,objectIds:i}=o,c=o.locations,a=c.position0.getVec(e.index,this._tmpP1),u=c.position1.getVec(e.index,this._tmpP2);(0,s.g)(a,a,r),(0,s.g)(u,u,r);const l=i[c.componentIndex.get(e.index)];this._addEdgeCandidate(t,l,a,u,n),_(t,l,a,n),_(t,l,u,n)}_addEdgeCandidate(t,e,n,o,r){if(!t.returnEdge)return;const i=(0,u.g)(t.bounds),l=(0,a.Cr)(n,o,this._tmpLineSegment),h=(0,a._I)(l,i,this._tmpP3);(0,u.o)(t.bounds,h)&&r.push({type:"edge",objectId:e,target:(0,c.o8)(h),distance:(0,s.p)(i,h),start:(0,c.o8)(n),end:(0,c.o8)(o)})}};f=(0,o._)([(0,i.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],f);const T=f;function _(t,e,n,o){if(!t.returnVertex||!(0,u.o)(t.bounds,n))return;const r=(0,u.g)(t.bounds);o.push({type:"vertex",objectId:e,target:(0,c.o8)(n),distance:(0,s.p)(r,n)})}class g{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++g.uid}}g.uid=0;class m{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},74038:(t,e,n)=>{n.d(e,{_:()=>o});class o{constructor(t,e,n,o,r,i=!1,s=0){this.name=t,this.count=e,this.type=n,this.offset=o,this.stride=r,this.normalized=i,this.divisor=s}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7346],{38954:(t,n,e)=>{e.d(n,{A:()=>d,B:()=>f,C:()=>N,D:()=>l,E:()=>U,F:()=>x,G:()=>B,a:()=>s,b:()=>b,c:()=>a,e:()=>P,f:()=>c,g:()=>u,h:()=>v,i:()=>A,j:()=>g,k:()=>O,l:()=>S,m:()=>i,n:()=>T,o:()=>R,p:()=>I,q:()=>E,r:()=>p,s:()=>m,t:()=>y,u:()=>D,v:()=>h,w:()=>V,x:()=>q,y:()=>M,z:()=>C});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,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 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 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,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function N(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 g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function p(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 I(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function E(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function O(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function T(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function b(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function R(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function y(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function D(t,n,e){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],u=n[1],c=n[2],f=o*c-i*u,l=i*s-r*c,h=r*u-o*s,d=o*h-i*l,M=i*f-r*h,N=r*l-o*f,g=2*a;return t[0]=s+f*g+2*d,t[1]=u+l*g+2*M,t[2]=c+h*g+2*N,t}const L=(0,r.vt)(),w=(0,r.vt)();function P(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const C=c,F=f,_=l,x=I,V=m,B=i,q=E;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){T(L,t),T(w,n);const e=S(L,w);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,f=3*i*s,l=3*u*a,h=u*i;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:b,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=o*u-i*s,f=i*a-r*u,l=r*s-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:U,dist:x,distance:I,div:_,divide:l,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],u=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))},exactEquals:P,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=n[0]*s+e[0]*u+r[0]*c+o[0]*f,t[1]=n[1]*s+e[1]*u+r[1]*c+o[1]*f,t[2]=n[2]*s+e[2]*u+r[2]*c+o[2]*f,t},inverse:A,len:B,length:i,lerp:R,max:N,min:M,mul:F,multiply:f,negate:O,normalize:T,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[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:g,scaleAndAdd:p,set:s,sign:d,sqrDist:V,sqrLen:q,squaredDistance:m,squaredLength:E,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:C,subtract:c,transformMat3:y,transformMat4:v,transformQuat:D},Symbol.toStringTag,{value:"Module"}))},87317:(t,n,e)=>{e.d(n,{a:()=>m,b:()=>M,c:()=>o,d:()=>f,e:()=>E,f:()=>h,g:()=>a,h:()=>g,j:()=>d,l:()=>p,n:()=>N,s:()=>i,t:()=>I});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function d(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function M(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function N(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function p(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function I(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function m(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function E(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-s)<=l*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=l*Math.max(1,Math.abs(a),Math.abs(f))}const O=s,A=u,T=c,S=l,b=h,R=d,v=M;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:S,distance:l,div:T,divide:c,dot:g,equals:E,exactEquals:m,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:R,length:d,lerp:p,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:A,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:N,random:function(t,n=1){const e=r.Ov;let o,i,a,s,u,c;do{o=2*e()-1,i=2*e()-1,u=o*o+i*i}while(u>=1);do{a=2*e()-1,s=2*e()-1,c=a*a+s*s}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*f,t[3]=n*s*f,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[3]=Math.round(n[3]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:i,sqrDist:b,sqrLen:v,squaredDistance:h,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:O,subtract:s,transformMat4:I,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=e[3],f=c*r+s*i-u*o,l=c*o+u*r-a*i,h=c*i+a*o-s*r,d=-a*r-s*o-u*i;return t[0]=f*c+d*-a+l*-u-h*-s,t[1]=l*c+d*-s+h*-a-f*-u,t[2]=h*c+d*-u+f*-s-l*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Un:()=>u,fA:()=>o,vt:()=>r});const u=i(),c=a(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},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:o,ones:i,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function u(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>g,Cw:()=>M,JP:()=>N,Un:()=>d,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],d=u(),M=c(),N=f(),g=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:N,UNIT_Z:g,ZEROS:h,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,3)},freeze:a,fromArray:s,fromValues:i,ones:u,unitX:c,unitY:f,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91829:(t,n,e)=>{function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(t,n,e,r){return[t,n,e,r]}function a(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function c(){return o(0,1,0,0)}function f(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}e.d(n,{CN:()=>i,Un:()=>d,ci:()=>a,fA:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0,0],d=s(),M=u(),N=c(),g=f(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:p,UNIT_X:M,UNIT_Y:N,UNIT_Z:g,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:function(t,n){return new Float64Array(t,n,4)},freeze:i,fromArray:a,fromValues:o,ones:s,unitW:l,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(t,n,e)=>{e.d(n,{DF:()=>u,FD:()=>o,Ov:()=>i,ct:()=>c});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,s=180/Math.PI;function u(t){return t*a}function c(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},34727:(t,n,e)=>{e.d(n,{$8:()=>m,Cc:()=>a,Io:()=>I,KJ:()=>c,Sp:()=>h,XM:()=>f,YN:()=>l,cU:()=>o,hs:()=>s,kU:()=>u,or:()=>O,pF:()=>T,pq:()=>A,qE:()=>i});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function a(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return a(r,o,(t-n)/(e-n))}function u(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function f(t){return Math.acos(i(t,-1,1))}function l(t){return Math.asin(i(t,-1,1))}function h(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function M(t){return d.setFloat64(0,t),d.getBigInt64(0)}const N=BigInt("1000000"),g=p(1);function p(t){const n=M(t=Math.abs(t)),e=function(t){return d.setBigInt64(0,t),d.getFloat64(0)}(n<=N?N:n-N);return Math.abs(t-e)}function I(t,n,e=g){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&p(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=M(t),o=M(n);return r<0==o<0&&!((r<o?o-r:r-o)>N)}function m(t){return E(Math.max(-A,Math.min(t,A)))}function E(t){return r[0]=t,r[0]}function O(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(h(n,1)&&h(e,1)&&h(r,1))}const A=E(34028234663852886e22);function T(t,n,e){if(void 0===e||0==+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},9318:(t,n,e)=>{e.d(n,{b:()=>i});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),f=i?t.length/n:t.byteLength/(4*n),l=i?t:new Uint32Array(t,0,f*n),h=e?.minReduction??0,d=e?.originalIndices||null,M=d?d.length:0,N=e?.componentOffsets||null;let g=0;if(N)for(let t=0;t<N.length-1;t++){const n=N[t+1]-N[t];n>g&&(g=n)}else g=f;const p=Math.floor(1.1*g)+1;(null==c||c.length<2*p)&&(c=new Uint32Array((0,r.cU)(2*p)));for(let t=0;t<2*p;t++)c[t]=0;let I=0;const m=!!N&&!!d,E=m?M:f;let O=(0,o.my)(f);const A=new Uint32Array(M),T=1.96;let S=0!==h?Math.ceil(4*T*T/(h*h)*h*(1-h)):E,b=1,R=N?N[1]:E;for(let t=0;t<E;t++){if(t===S){const n=1-I/t;if(n+T*Math.sqrt(n*(1-n)/t)<h)return null;S*=2}if(t===R){for(let t=0;t<2*p;t++)c[t]=0;if(d)for(let t=N[b-1];t<N[b];t++)A[t]=O[d[t]];R=N[++b]}const e=m?d[t]:t,r=e*n,o=u(l,r,n);let i=o%p,s=I;for(;0!==c[2*i+1];){if(c[2*i]===o){const t=c[2*i+1]-1;if(a(l,r,t*n,n)){s=O[t];break}}i++,i>=p&&(i-=p)}s===I&&(c[2*i]=o,c[2*i+1]=e+1,I++),O[e]=s}if(0!==h&&1-I/f<h)return null;if(m){for(let t=N[b-1];t<A.length;t++)A[t]=O[d[t]];O=(0,o.Dg)(A)}const v=i?new Array(I):new Uint32Array(I*n);I=0;for(let t=0;t<E;t++)O[t]===I&&(s(l,(m?d[t]:t)*n,v,I*n,n),I++);if(d&&!m){const t=new Uint32Array(M);for(let n=0;n<t.length;n++)t[n]=O[d[n]];O=(0,o.Dg)(t)}return{buffer:Array.isArray(v)?v:v.buffer,indices:O,uniqueCount:I}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function s(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function u(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null},4431:(t,n,e)=>{e.d(n,{U:()=>i});var r=e(63907),o=e(74038);function i(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const i=t.fields.get(r),s=i.constructor.ElementCount,u=a(i.constructor.ElementType),c=i.offset,f=i.optional?.glNormalized??!1;return new o._(r,s,u,c,e,f,n)}))}function a(t){const n=s[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const s={u8:r.pe.UNSIGNED_BYTE,u16:r.pe.UNSIGNED_SHORT,u32:r.pe.UNSIGNED_INT,i8:r.pe.BYTE,i16:r.pe.SHORT,i32:r.pe.INT,f32:r.pe.FLOAT}},46540:(t,n,e)=>{var r;e.d(n,{r:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},71936:(t,n,e)=>{e.r(n),e.d(n,{default:()=>u});var r=e(1843);function o(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var i=e(3055),a=e(93406),s=e(53099);class u{async extract(t){const n=c(t),e=(0,s.o6)(n),r=[n.data.buffer];return{result:f(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=c(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,h).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=c(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,l).regular.instancesData,r),transferList:r}}}function c(t){return{data:i.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function f(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:o(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:o(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const l=new class{allocate(t){return s.Jb.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},h=new class{allocate(t){return s.HY.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}}},3055:(t,n,e)=>{e.d(n,{I$:()=>a,In:()=>c,gr:()=>u});var r=e(4431),o=e(1843),i=e(46540);const a=(0,o.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),s=(0,o.BP)().vec2u8(i.r.SIDENESS).freeze(),u=((0,r.U)(s),(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),c=(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},93406:(t,n,e)=>{e.d(n,{K:()=>u});var r=e(34727),o=e(3694),i=e(38954),a=e(51850);const s=-1;function u(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=N.position0,u=N.position1,l=N.faceNormal0,d=N.faceNormal1,{edges:M,normals:g}=f(t),p=M.length/4,I=n.allocate(p);let m=0;const E=p,T=e?.allocate(E);let b=0,R=0,v=0;h.length=0;for(let t=0;t<p;++t){const n=4*t;r.getVec(M.data[n],a),r.getVec(M.data[n+1],u);const e=h.pushNew();e.index=4*t,e.length=(0,i.p)(a,u)}h.sort(((t,n)=>n.length-t.length));const y=new Array,D=new Array;h.forAll((({length:t,index:f})=>{const h=M.data[f],p=M.data[f+1],E=M.data[f+2],L=M.data[f+3],w=L===s;if(r.getVec(h,a),r.getVec(p,u),w){const t=3*E;(0,i.a)(l,g.data[t],g.data[t+1],g.data[t+2]),(0,i.c)(d,l),N.componentIndex=o.get(h),N.cosAngle=(0,i.l)(l,d)}else{let t=3*E;if((0,i.a)(l,g.data[t],g.data[t+1],g.data[t+2]),t=3*L,(0,i.a)(d,g.data[t],g.data[t+1],g.data[t+2]),N.componentIndex=o.get(h),N.cosAngle=(0,i.l)(l,d),function(t,n){return t.cosAngle>n}(N,A))return;N.cosAngle<-.9999&&(0,i.c)(d,l)}R+=t,v++,w||function(t,n){return t.cosAngle<n}(N,S)?(n.write(I,m++,N),y.push(t)):c(N,O)&&(T&&e&&e.write(T,b++,N),D.push(t))}));const L=new Float32Array(y.reverse()),w=new Float32Array(D.reverse()),P=T&&e?{instancesData:T.slice(0,b),lodInfo:{lengths:w}}:void 0;return{regular:{instancesData:I.slice(0,m),lodInfo:{lengths:L}},silhouette:P,averageEdgeLength:R/v}}function c(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.E)(p,t.position1,t.position0),e*((0,i.l)((0,i.b)(g,t.faceNormal0,t.faceNormal1),p)>0?-1:1)>n}function f(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;d.length=M.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],u=r[n+1],c=r[n+2],f=e[n],l=e[n+1],h=e[n+2];o.getVec(f,I),o.getVec(l,m),o.getVec(h,E),(0,i.f)(m,m,I),(0,i.f)(E,E,I),(0,i.b)(I,m,E),(0,i.n)(I,I),M.pushArray(I),(a===s||f<l)&&(d.push(f),d.push(l),d.push(t),d.push(a)),(u===s||l<h)&&(d.push(l),d.push(h),d.push(t),d.push(u)),(c===s||h<f)&&(d.push(h),d.push(f),d.push(t),d.push(c))}return{edges:d,normals:M}}class l{constructor(){this.index=0,this.length=0}}const h=new o.A({allocator:t=>t||new l,deallocator:null}),d=new o.A({deallocator:null}),M=new o.A({deallocator:null}),N=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},g=(0,a.vt)(),p=(0,a.vt)(),I=(0,a.vt)(),m=(0,a.vt)(),E=(0,a.vt)(),O=(0,r.kU)(4),A=Math.cos(O),T=(0,r.kU)(35),S=Math.cos(T)},53099:(t,n,e)=>{e.d(n,{o6:()=>y,HY:()=>C,hx:()=>D,Jb:()=>U});var r=e(9318);function o(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let s=0,u=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=s,i[t+1]=u,s+=n,u+=e}const c=new Uint32Array(6*r),f=o[e],l=(t,n,e)=>{if(t<n){const r=o[t+1]++;c[2*r]=n,c[2*r+1]=e}else{const r=i[n+1]++;c[2*f+2*r]=t,c[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];l(e,r,n),l(r,o,n),l(o,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=c[e+2*t],r=c[e+2*t+1];let o=t-1;for(;o>=0&&c[e+2*o]>n;o--)c[e+2*o+2]=c[e+2*o],c[e+2*o+3]=c[e+2*o+1];c[e+2*o+2]=n,c[e+2*o+3]=r}};for(let t=0;t<e;t++)h(o[t],o[t+1]),h(f+i[t],f+i[t+1]);const d=new Int32Array(3*r),M=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,N=(t,n)=>{const e=M(t,n);d[3*n+e]=-1},g=(t,n,e,r)=>{const o=M(t,n);d[3*n+o]=r;const i=M(e,r);d[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=c[2*n],o=c[2*f+2*r];e===o?(g(t,c[2*n+1],o,c[2*f+2*r+1]),n++,r++):e<o?(N(t,c[2*n+1]),n++):(N(o,c[2*f+2*r+1]),r++)}for(;n<e;)N(t,c[2*n+1]),n++;for(;r<a;)N(c[2*f+2*r],c[2*f+2*r+1]),r++}return d}var i=e(1843),a=e(46540),s=e(3055),u=e(87811),c=e(38954),f=e(51850),l=e(4431),h=e(34727);function d(t,n,e,r,o,i=2){const a=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),s=e*a,u=r*a,c=o<=0?(s>=0?1:-1)*(1-Math.abs(u)):s,f=o<=0?(u>=0?1:-1)*(1-Math.abs(s)):u,l=n*i;t[l]=M(c),t[l+1]=M(f)}function M(t){return(0,h.qE)(Math.round(32767*t),-32767,32767)}e(11868);class N{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?E:m}write(t,n,e){R.seed=this._edgeHashFunction(e);const r=R.getIntRange(0,255),o=R.getIntRange(0,this.settings.variants-1),i=R.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const g=new Float32Array(6),p=new Uint32Array(g.buffer),I=new Uint32Array(1);function m(t){return g[0]=t.position0[0],g[1]=t.position0[1],g[2]=t.position0[2],g[3]=t.position1[0],g[4]=t.position1[1],g[5]=t.position1[2],I[0]=31*(31*(31*(31*(31*(166811+p[0])+p[1])+p[2])+p[3])+p[4])+p[5],I[0]}function E(t){const n=g;n[0]=A(t.position0[0]),n[1]=A(t.position0[1]),n[2]=A(t.position0[2]),n[3]=A(t.position1[0]),n[4]=A(t.position1[1]),n[5]=A(t.position1[2]),I[0]=5381;for(let t=0;t<p.length;t++)I[0]=31*I[0]+p[t];return I[0]}const O=1e4;function A(t){return Math.round(t*O)/O}class T{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,c.g)(b,e.faceNormal0,e.faceNormal1),(0,c.n)(b,b);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,b[0],b[1],b[2],o)}}T.Layout=s.gr,T.glLayout=(0,l.U)(s.gr,1);class S{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;d(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}}S.Layout=s.In,S.glLayout=(0,l.U)(s.In,1);const b=(0,f.vt)(),R=new u.A;var v=e(93406);function y(t){const n=D(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return w.updateSettings(t.writerSettings),P.updateSettings(t.writerSettings),(0,v.K)(n,w,P)}function D(t,n,e,i){if(n){const n=o(e,i,t.count);return new L(e,i,n,t)}const a=(0,r.b)(t.buffer,t.stride/4,{originalIndices:e,originalIndicesLength:i}),u=o(a.indices,i,a.uniqueCount);return{faces:a.indices,facesLength:a.indices.length,neighbors:u,vertices:s.I$.createView(a.buffer)}}class L{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const w=new T,P=new S,U=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1),C=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1).u16(a.r.COMPONENTINDEX)},74038:(t,n,e)=>{e.d(n,{_:()=>r});class r{constructor(t,n,e,r,o,i=!1,a=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=o,this.normalized=i,this.divisor=a}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9423],{83349:(t,e,r)=>{function n(t,e,r){r=r||2;var n,o,s,a,u,l,f,c=e&&e.length,y=c?e[0]*r:t.length,v=i(t,0,y,r,!0),_=[];if(!v||v.next===v.prev)return _;if(c&&(v=h(t,e,v,r)),t.length>80*r){n=s=t[0],o=a=t[1];for(var d=r;d<y;d+=r)(u=t[d])<n&&(n=u),(l=t[d+1])<o&&(o=l),u>s&&(s=u),l>a&&(a=l);f=0!==(f=Math.max(s-n,a-o))?1/f:0}return x(v,_,r,n,o,f),_}function i(t,e,r,n,i){var o,x;if(i===V(t,e,r,n)>0)for(o=e;o<r;o+=n)x=B(o,t[o],t[o+1],x);else for(o=r-n;o>=e;o-=n)x=B(o,t[o],t[o+1],x);if(x&&A(x,x.next)){var s=x.next;F(x),x=s}return x}function o(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!A(n,n.next)&&0!==w(n.prev,n,n.next))n=n.next;else{var i=n.prev;if(F(n),(n=e=i)===n.next)break;r=!0}}while(r||n!==e);return e}function x(t,e,r,n,i,h,f){if(t){!f&&h&&_(t,n,i,h);for(var c,y,v=t;t.prev!==t.next;)if(c=t.prev,y=t.next,h?a(t,n,i,h):s(t))e.push(c.i/r),e.push(t.i/r),e.push(y.i/r),F(t),t=y.next,v=y.next;else if((t=y)===v){f?1===f?x(t=u(o(t),e,r),e,r,n,i,h,2):2===f&&l(t,e,r,n,i,h):x(o(t),e,r,n,i,h,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(w(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(p(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&w(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function a(t,e,r,n){var i=t.prev,o=t,x=t.next;if(w(i,o,x)>=0)return!1;for(var s=i.x<o.x?i.x<x.x?i.x:x.x:o.x<x.x?o.x:x.x,a=i.y<o.y?i.y<x.y?i.y:x.y:o.y<x.y?o.y:x.y,u=i.x>o.x?i.x>x.x?i.x:x.x:o.x>x.x?o.x:x.x,l=i.y>o.y?i.y>x.y?i.y:x.y:o.y>x.y?o.y:x.y,h=d(s,a,e,r,n),f=d(u,l,e,r,n),c=t.prevZ,y=t.nextZ;c&&c.z>=h&&y&&y.z<=f;){if(c!==t.prev&&c!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,c.x,c.y)&&w(c.prev,c,c.next)>=0)return!1;if(c=c.prevZ,y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;c&&c.z>=h;){if(c!==t.prev&&c!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,c.x,c.y)&&w(c.prev,c,c.next)>=0)return!1;c=c.prevZ}for(;y&&y.z<=f;){if(y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function u(t,e,r){var n=t;do{var i=n.prev,x=n.next.next;!A(i,x)&&m(i,n,n.next,x)&&U(i,x)&&U(x,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(x.i/r),F(n),F(n.next),n=t=x),n=n.next}while(n!==t);return o(n)}function l(t,e,r,n,i,s){var a=t;do{for(var u=a.next.next;u!==a.prev;){if(a.i!==u.i&&g(a,u)){var l=b(a,u);return a=o(a,a.next),l=o(l,l.next),x(a,e,r,n,i,s),void x(l,e,r,n,i,s)}u=u.next}a=a.next}while(a!==t)}function h(t,e,r,n){var x,s,a,u=[];for(x=0,s=e.length;x<s;x++)(a=i(t,e[x]*n,x<s-1?e[x+1]*n:t.length,n,!1))===a.next&&(a.steiner=!0),u.push(T(a));for(u.sort(f),x=0;x<u.length;x++)r=o(r=y(u[x],r),r.next);return r}function f(t,e){return t.x-e.x}function c(t){if(t.next.prev===t)return t;let e=t;for(;;){const r=e.next;if(r.prev===e||r===e||r===t)break;e=r}return e}function y(t,e){var r=function(t,e){var r,n=e,i=t.x,o=t.y,x=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var s=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>x){if(x=s,s===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===x)return r;var a,u=r,l=r.x,h=r.y,f=1/0;n=r;do{i>=n.x&&n.x>=l&&i!==n.x&&p(o<h?i:x,o,l,h,o<h?x:i,o,n.x,n.y)&&(a=Math.abs(o-n.y)/(i-n.x),U(n,t)&&(a<f||a===f&&(n.x>r.x||n.x===r.x&&v(r,n)))&&(r=n,f=a)),n=n.next}while(n!==u);return r}(t,e);if(!r)return e;var n=b(r,t),i=o(r,r.next);let x=c(n);return o(x,x.next),i=c(i),c(e===r?i:e)}function v(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function _(t,e,r,n){var i=t;do{null===i.z&&(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,o,x,s,a,u=1;do{for(r=t,t=null,o=null,x=0;r;){for(x++,n=r,s=0,e=0;e<u&&(s++,n=n.nextZ);e++);for(a=u;s>0||a>0&&n;)0!==s&&(0===a||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,a--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=n}o.nextZ=null,u*=2}while(x>1)}(i)}function d(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function T(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function p(t,e,r,n,i,o,x,s){return(i-x)*(e-s)-(t-x)*(o-s)>=0&&(t-x)*(n-s)-(r-x)*(e-s)>=0&&(r-x)*(o-s)-(i-x)*(n-s)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&m(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(U(t,e)&&U(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||A(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function A(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,r,n){var i=R(w(t,e,r)),o=R(w(t,e,n)),x=R(w(r,n,t)),s=R(w(r,n,e));return i!==o&&x!==s||!(0!==i||!L(t,r,e))||!(0!==o||!L(t,n,e))||!(0!==x||!L(r,t,n))||!(0!==s||!L(r,e,n))}function L(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R(t){return t>0?1:t<0?-1:0}function U(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function b(t,e){var r=new N(t.i,t.x,t.y),n=new N(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function B(t,e,r,n){var i=new N(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function F(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function N(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function V(t,e,r,n){for(var i=0,o=e,x=r-n;o<r;o+=n)i+=(t[x]-t[o])*(t[o+1]+t[x+1]),x=o;return i}r.d(e,{e:()=>n}),n.deviation=function(t,e,r,n){var i=e&&e.length,o=i?e[0]*r:t.length,x=Math.abs(V(t,0,o,r));if(i)for(var s=0,a=e.length;s<a;s++){var u=e[s]*r,l=s<a-1?e[s+1]*r:t.length;x-=Math.abs(V(t,u,l,r))}var h=0;for(s=0;s<n.length;s+=3){var f=n[s]*r,c=n[s+1]*r,y=n[s+2]*r;h+=Math.abs((t[f]-t[y])*(t[c+1]-t[f+1])-(t[f]-t[c])*(t[y+1]-t[f+1]))}return 0===x&&0===h?0:Math.abs((h-x)/x)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var x=0;x<e;x++)r.vertices.push(t[i][o][x]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},32488:(t,e,r)=>{r.d(e,{A:()=>R});const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],o=["ﻵ","ﻷ","ﻹ","ﻻ"],x=["ﻶ","ﻸ","ﻺ","ﻼ"],s=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],a=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],u=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],l=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],h=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],c=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],y=["ء","ف"],v=["غ","ي"],_=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],T=10,p=11,g=12,w=18,A=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],m=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],L=[[w,w,w,w,w,w,w,w,w,6,5,6,8,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,5,5,5,6,8,4,4,p,p,p,4,4,4,4,4,T,9,T,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,w,w,w,w,w,w,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,9,4,p,p,p,p,4,4,4,4,0,4,4,w,4,4,p,p,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,1,g,1,g,g,1,g,g,1,g,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,p,p,7,9,7,4,4,g,g,g,g,g,g,g,g,g,g,g,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,3,3,3,3,3,3,3,3,3,3,p,3,3,7,7,7,g,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,g,g,g,g,g,g,g,3,4,g,g,g,g,g,g,7,7,g,g,4,g,g,g,g,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,g,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,g,g,g,g,g,g,g,g,g,g,g,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,g,g,g,g,g,g,g,g,g,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,w,w,w,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,p,p,p,p,p,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,w,w,w,w,w,4,4,4,4,4,w,w,w,w,w,w,2,0,4,4,2,2,2,2,2,2,T,T,4,4,4,0,2,2,2,2,2,2,2,2,2,2,T,T,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,g,1,1,1,1,1,1,1,1,1,1,T,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,g,g,g,g,g,g,g,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,p,4,4,T,T,4,4,4,4,4,p,p,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,w],[4,4,4,p,p,p,4,4,4,4,4,T,9,T,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,p,p,4,4,4,p,p,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class R{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){q=[],X=[];for(let n=0;n<r;n++)t[n]=n,e[n]=n,q[n]=n}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let n=t;const s=$,l=j(e.charAt(1)),f=j(r.charAt(1)),y=("I"===e.charAt(0)?"L":e.charAt(0))+l,v=("I"===r.charAt(0)?"L":r.charAt(0))+f,_=e.charAt(2)+r.charAt(2);s.defInFormat=y,s.defOutFormat=v,s.defSwap=_;const d=U(t,y,v,_,s);let T=!1;return"R"===r.charAt(1)?T=!0:"C"!==r.charAt(1)&&"D"!==r.charAt(1)||(T="rtl"===this.checkContextual(d)),this.sourceToTarget=q,this.targetToSource=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),Q=this.targetToSource,n=e.charAt(3)===r.charAt(3)?d:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const r=(e=String(e)).split("");let n=0,i=1,s=r.length;t||(n=r.length-1,i=-1,s=1);const l=function(t,e,r,n){let i=0;const s=[];let l=0;for(let f=e;f*r<n;f+=r)if(E(t[f])||J(t[f])){if("ل"===t[f]&&Z(t,f+r,r,n)){t[f]=W(t[f+r],0===i?o:x),f+=r,P(t,f,r,n),s[l]=f,l++,i=0;continue}const e=t[f];1===i?t[f]=M(t,f+r,r,n)?I(t[f]):z(t[f],u):!0===M(t,f+r,r,n)?t[f]=z(t[f],h):t[f]=z(t[f],a),J(e)||(i=1),!0===D(e)&&(i=0)}else i=0;return s}(r,n,i,s);let f="";for(let e=0;e<r.length;e++)S(l,l.length,e)>-1?(Y(Q,e,!t,-1),q.splice(e,1)):f+=r[e];return f}(T,d):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let r="";const n=(t=String(t)).split("");for(let o=0;o<t.length;o++){let x=!1;if(n[o]>="ﹰ"&&n[o]<"\ufeff"){const s=t.charCodeAt(o);n[o]>="ﻵ"&&n[o]<="ﻼ"?(e?(o>0&&" "===n[o-1]?r=r.slice(0,-1)+"ل":(r+="ل",x=!0),r+=i[(s-65269)/2]):(r+=i[(s-65269)/2],r+="ل",o+1<t.length&&" "===n[o+1]?o++:x=!0),x&&(Y(Q,o,!0,1),q.splice(o,0,q[o]))):r+=c[s-65136]}else r+=n[o]}return r}(d,T),this.sourceToTarget=q,this.targetToSource=Q,this.levels=X,n}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=b(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return rt.test(t)}}function U(t,e,r,n,i){const o=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let o,x=e.inFormat.slice(1,4),s=e.outFormat.slice(1,4);return"C"===x.charAt(0)&&(o=b(t),x="ltr"===o||"rtl"===o?o.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+x),"C"===s.charAt(0)&&(o=b(t),"rtl"===o?s="RTL":"ltr"===o?(o=function(t){const e=t.split("");return e.reverse(),b(e.join(""))}(t),s=o.toUpperCase()):s="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+s),e}(t,{inFormat:e,outFormat:r,swap:n},i);if(o.inFormat===o.outFormat)return t;e=o.inFormat,r=o.outFormat,n=o.swap;const x=e.slice(0,1),s=e.slice(1,4),a=r.slice(0,1),u=r.slice(1,4);if(i.inFormat=e,i.outFormat=r,i.swap=n,"L"===x&&"VLTR"===r){if("LTR"===s)return i.dir=K,B(t,i);if("RTL"===s)return i.dir=tt,B(t,i)}if("V"===x&&"V"===a)return i.dir="RTL"===s?tt:K,V(t,i);if("L"===x&&"VRTL"===r)return"LTR"===s?(i.dir=K,t=B(t,i)):(i.dir=tt,t=B(t,i)),V(t);if("VLTR"===e&&"LLTR"===r)return i.dir=K,B(t,i);if("V"===x&&"L"===a&&s!==u)return t=V(t),"RTL"===s?U(t,"LLTR","VLTR",n,i):U(t,"LRTL","VRTL",n,i);if("VRTL"===e&&"LRTL"===r)return U(t,"LRTL","VRTL",n,i);if("L"===x&&"L"===a){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===s?(i.dir=tt,t=B(t,i),i.swap="N"+e.slice(1,3),i.dir=K,t=B(t,i)):(i.dir=K,t=B(t,i),i.swap="N"+e.slice(1,3),t=U(t,"VLTR","LRTL",i.swap,i)),t}return t}function b(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function B(t,e){const r=t.split(""),n=[];return F(r,n,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=C(t[r]))}(r,n,e),k(2,r,n,e),k(1,r,n,e),X=n,r.join("")}function F(t,e,r){const n=t.length,i=r.dir?d:_;let o=0,x=-1;const s=[],a=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<n;e++)s[e]=N(t[e]);for(let u=0;u<n;u++){const n=o,l=O(t,s,a,u,r);a[u]=l,o=i[n][l];const h=240&o;o&=15;const f=i[o][G];if(e[u]=f,h>0)if(16===h){for(let t=x;t<u;t++)e[t]=1;x=-1}else x=-1;if(i[o][H])-1===x&&(x=u);else if(x>-1){for(let t=x;t<u;t++)e[t]=f;x=-1}5===s[u]&&(e[u]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,n){for(let i=0;i<r;i++)if(6===t[i]){e[i]=n.dir;for(let r=i-1;r>=0&&8===t[r];r--)e[r]=n.dir}}(s,e,n,r)}function N(t){const e=t.charCodeAt(0),r=m[e>>8];return r<100?r:L[r-100][255&e]}function V(t,e){const r=t.split("");if(e){const t=[];F(r,t,e),X=t}return r.reverse(),q.reverse(),r.join("")}function S(t,e,r){for(let n=0;n<e;n++)if(t[n]===r)return n;return-1}function E(t){for(let e=0;e<y.length;e++)if(t>=y[e]&&t<=v[e])return!0;return!1}function M(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;return!!(e*r<n&&E(t[e]))}function Z(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;let o=" ";if(!(e*r<n))return!1;o=t[e];for(let t=0;t<i.length;t++)if(i[t]===o)return!0;return!1}function k(t,e,r,n){if(n.hiLevel<t)return;if(1===t&&n.dir===tt&&!n.hasUbatB)return e.reverse(),void q.reverse();const i=e.length;let o,x,s,a,u,l=0;for(;l<i;){if(r[l]>=t){for(o=l+1;o<i&&r[o]>=t;)o++;for(x=l,s=o-1;x<s;x++,s--)a=e[x],e[x]=e[s],e[s]=a,u=q[x],q[x]=q[s],q[s]=u;l=o}l++}}function O(t,e,r,n,i){const o=e[n];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,o;return n<1||n+1>=e.length||2!==(t=r[n-1])&&3!==t||2!==(o=e[n+1])&&3!==o?4:(i.lastArabic&&(o=3),o===t?o:4)},UBAT_ES:()=>2===(n>0?r[n-1]:5)&&n+1<e.length&&2===e[n+1]?2:4,UBAT_ET:()=>{if(n>0&&2===r[n-1])return 2;if(i.lastArabic)return 4;let t=n+1;const o=e.length;for(;t<o&&e[t]===p;)t++;return t<o&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const r=e.length;let i=n+1;for(;i<r&&e[i]===g;)i++;if(i<r){const r=t[n].charCodeAt(0),o=r>=1425&&r<=2303||64286===r,x=e[i];if(o&&(1===x||7===x))return 1}}return n<1||5===e[n-1]?4:r[n-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[A[o]]()}function C(t){let e,r=0,i=n.length-1;for(;r<=i;)if(e=Math.floor((r+i)/2),t<n[e][0])i=e-1;else{if(!(t>n[e][0]))return n[e][1];r=e+1}return t}function D(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function I(t){for(let e=0;e<s.length;e++)if(t===s[e])return l[e];return t}function z(t,e){for(let r=0;r<s.length;r++)if(t===s[r])return e[r];return t}function J(t){return t>="ً"&&t<="ٕ"}function j(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function P(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;return e*r<n&&(t[e]=" ",!0)}function W(t,e){for(let r=0;r<i.length;r++)if(t===i[r])return e[r];return t}function Y(t,e,r,n){for(let i=0;i<t.length;i++)(t[i]>e||!r&&t[i]===e)&&(t[i]+=n)}let q=[],Q=[],X=[];const $={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},G=5,H=6,K=0,tt=1,et=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,rt=/[\u0591-\u06ff\ufb1d-\ufefc]/},15585:(t,e,r)=>{r.d(e,{F:()=>a,l:()=>u});var n=r(2741),i=r(44208);const o=128e3;let x=null,s=null;async function a(){return x||(x=async function(){const t=(0,i.A)("esri-csp-restrictions")?await r.e(177).then(r.bind(r,50177)).then((t=>t.l)):await r.e(3091).then(r.bind(r,13091)).then((t=>t.l));s=await t.default({locateFile:t=>(0,n.s)(`esri/core/libs/libtess/${t}`)})}()),x}function u(t,e){const r=Math.max(t.length,o);return s.triangulate(t,e,r)}},18989:(t,e,r)=>{r.d(e,{A:()=>n});class n{constructor(t=0,e=0,r=0,n=0){this.x=t,this.y=e,this.width=r,this.height=n}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},83773:(t,e,r)=>{r.d(e,{i:()=>y});var n=r(15294),i=r(76213);function o(t,e){return t.x===e.x&&t.y===e.y}function x(t){if(!t)return;const e=t.length;if(e<=1)return;let r=0;for(let n=1;n<e;n++)o(t[n],t[r])||++r===n||(t[r]=t[n]);t.length=r+1}function s(t,e){return t.x=e.y,t.y=-e.x,t}function a(t,e){return t.x=-e.y,t.y=e.x,t}function u(t,e){return t.x=e.x,t.y=e.y,t}function l(t,e){return t.x=-e.x,t.y=-e.y,t}function h(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function f(t,e){return t.x*e.x+t.y*e.y}function c(t,e,r,n){return t.x=e.x*r+e.y*n,t.y=e.x*n-e.y*r,t}class y{constructor(t,e,r){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=r,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,r=this._canUseThinTessellation){x(t),r&&e.halfWidth<i.Gh&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const r=e.wrapDistance||65535;let n=e.initialDistance||0,i=!1,o=t[0].x,x=t[0].y;const s=t.length;for(let e=1;e<s;++e){i&&(i=!1,n=0);let s=t[e].x,a=t[e].y,u=s-o,l=a-x,h=Math.sqrt(u*u+l*l);if(u/=h,l/=h,n+h>r){i=!0;const t=(r-n)/h;h=r-n,s=(1-t)*o+t*s,a=(1-t)*x+t*a,--e}const f=this._writeVertex(o,x,0,0,u,l,l,-u,0,-1,n),c=this._writeVertex(o,x,0,0,u,l,-l,u,0,1,n);n+=h;const y=this._writeVertex(s,a,0,0,u,l,l,-u,0,-1,n),v=this._writeVertex(s,a,0,0,u,l,-l,u,0,1,n);this._writeTriangle(f,c,y),this._writeTriangle(c,y,v),o=s,x=a}}_tessellate(t,e){const r=t[0],i=t[t.length-1],x=o(r,i),y=x?3:2;if(t.length<y)return;const v=e.pixelCoordRatio,_=null!=e.capType?e.capType:n.xR.BUTT,d=null!=e.joinType?e.joinType:n.JO.MITER,T=null!=e.miterLimit?Math.min(e.miterLimit,4):2,p=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,g=null!=e.halfWidth?e.halfWidth:2,w=!!e.textured;let A,m,L,R=null;const U=this._prevNormal,b=this._nextNormal;let B=-1,F=-1;const N=this._joinNormal;let V,S;const E=this._textureNormalLeft,M=this._textureNormalRight,Z=this._textureNormal;let k=-1,O=-1;const C=e.wrapDistance||65535;let D=e.initialDistance||0;const I=this._writeVertex,z=this._writeTriangle,J=(t,e,r,n,i,o)=>{const x=I(m,L,V,S,r,n,t,e,i,o,D);return k>=0&&O>=0&&x>=0&&z(k,O,x),k=O,O=x,x};x&&(A=t[t.length-2],b.x=i.x-A.x,b.y=i.y-A.y,F=h(b),b.x/=F,b.y/=F);let j=!1;for(let e=0;e<t.length;++e){if(j&&(j=!1,D=0),A&&(U.x=-b.x,U.y=-b.y,B=F,D+B>C&&(j=!0)),j){const r=(C-D)/B;B=C-D,A={x:(1-r)*A.x+r*t[e].x,y:(1-r)*A.y+r*t[e].y},--e}else A=t[e];m=A.x,L=A.y;const r=e<=0&&!j,i=e===t.length-1;if(r||(D+=B),R=i?x?t[1]:null:t[e+1],R?(b.x=R.x-m,b.y=R.y-L,F=h(b),b.x/=F,b.y/=F):(b.x=void 0,b.y=void 0),!x){if(r){a(N,b),V=N.x,S=N.y,_===n.xR.SQUARE&&(J(-b.y-b.x,b.x-b.y,b.x,b.y,0,-1),J(b.y-b.x,-b.x-b.y,b.x,b.y,0,1)),_===n.xR.ROUND&&(J(-b.y-b.x,b.x-b.y,b.x,b.y,-1,-1),J(b.y-b.x,-b.x-b.y,b.x,b.y,-1,1)),_!==n.xR.ROUND&&_!==n.xR.BUTT||(J(-b.y,b.x,b.x,b.y,0,-1),J(b.y,-b.x,b.x,b.y,0,1));continue}if(i){s(N,U),V=N.x,S=N.y,_!==n.xR.ROUND&&_!==n.xR.BUTT||(J(U.y,-U.x,-U.x,-U.y,0,-1),J(-U.y,U.x,-U.x,-U.y,0,1)),_===n.xR.SQUARE&&(J(U.y-U.x,-U.x-U.y,-U.x,-U.y,0,-1),J(-U.y-U.x,U.x-U.y,-U.x,-U.y,0,1)),_===n.xR.ROUND&&(J(U.y-U.x,-U.x-U.y,-U.x,-U.y,1,-1),J(-U.y-U.x,U.x-U.y,-U.x,-U.y,1,1));continue}}let o,y,I=(W=b,-((P=U).x*W.y-P.y*W.x));if(Math.abs(I)<.01)f(U,b)>0?(N.x=U.x,N.y=U.y,I=1,o=Number.MAX_VALUE,y=!0):(a(N,b),I=1,o=1,y=!1);else{N.x=(U.x+b.x)/I,N.y=(U.y+b.y)/I,o=h(N);const t=(o-1)*g*v;y=o>4||t>B&&t>F}V=N.x,S=N.y;let z=d;switch(d){case n.JO.BEVEL:o<1.05&&(z=n.JO.MITER);break;case n.JO.ROUND:o<p&&(z=n.JO.MITER);break;case n.JO.MITER:o>T&&(z=n.JO.BEVEL)}switch(z){case n.JO.MITER:if(J(N.x,N.y,-U.x,-U.y,0,-1),J(-N.x,-N.y,-U.x,-U.y,0,1),i)break;if(w){const t=j?0:D;k=this._writeVertex(m,L,V,S,b.x,b.y,N.x,N.y,0,-1,t),O=this._writeVertex(m,L,V,S,b.x,b.y,-N.x,-N.y,0,1,t)}break;case n.JO.BEVEL:{const t=I<0;let e,r,n,o;if(t){const t=k;k=O,O=t,e=E,r=M}else e=M,r=E;if(y)n=t?a(this._innerPrev,U):s(this._innerPrev,U),o=t?s(this._innerNext,b):a(this._innerNext,b);else{const e=t?l(this._inner,N):u(this._inner,N);n=e,o=e}const x=t?s(this._bevelStart,U):a(this._bevelStart,U);J(n.x,n.y,-U.x,-U.y,e.x,e.y);const h=J(x.x,x.y,-U.x,-U.y,r.x,r.y);if(i)break;const f=t?a(this._bevelEnd,b):s(this._bevelEnd,b);if(y){const t=this._writeVertex(m,L,V,S,-U.x,-U.y,0,0,0,0,D);k=this._writeVertex(m,L,V,S,b.x,b.y,o.x,o.y,e.x,e.y,D),O=this._writeVertex(m,L,V,S,b.x,b.y,f.x,f.y,r.x,r.y,D),this._writeTriangle(h,t,O)}else{if(w){const t=this._bevelMiddle;t.x=(x.x+f.x)/2,t.y=(x.y+f.y)/2,c(Z,t,-U.x,-U.y),J(t.x,t.y,-U.x,-U.y,Z.x,Z.y),c(Z,t,b.x,b.y),k=this._writeVertex(m,L,V,S,b.x,b.y,t.x,t.y,Z.x,Z.y,D),O=this._writeVertex(m,L,V,S,b.x,b.y,o.x,o.y,e.x,e.y,D)}else{const t=k;k=O,O=t}J(f.x,f.y,b.x,b.y,r.x,r.y)}if(t){const t=k;k=O,O=t}break}case n.JO.ROUND:{const t=I<0;let e,r;if(t){const t=k;k=O,O=t,e=E,r=M}else e=M,r=E;const n=t?l(this._inner,N):u(this._inner,N);let x,h;y?(x=t?a(this._innerPrev,U):s(this._innerPrev,U),h=t?s(this._innerNext,b):a(this._innerNext,b)):(x=n,h=n);const v=t?s(this._roundStart,U):a(this._roundStart,U),_=t?a(this._roundEnd,b):s(this._roundEnd,b),d=J(x.x,x.y,-U.x,-U.y,e.x,e.y),T=J(v.x,v.y,-U.x,-U.y,r.x,r.y);if(i)break;const p=this._writeVertex(m,L,V,S,-U.x,-U.y,0,0,0,0,D);y||this._writeTriangle(k,O,p);const g=l(this._outer,n),A=this._writeVertex(m,L,V,S,b.x,b.y,_.x,_.y,r.x,r.y,D);let R,B;const F=o>2;if(F){let e;o!==Number.MAX_VALUE?(g.x/=o,g.y/=o,e=f(U,g),e=(o*(e*e-1)+1)/e):e=-1,R=t?s(this._startBreak,U):a(this._startBreak,U),R.x+=U.x*e,R.y+=U.y*e,B=t?a(this._endBreak,b):s(this._endBreak,b),B.x+=b.x*e,B.y+=b.y*e}c(Z,g,-U.x,-U.y);const C=this._writeVertex(m,L,V,S,-U.x,-U.y,g.x,g.y,Z.x,Z.y,D);c(Z,g,b.x,b.y);const z=w?this._writeVertex(m,L,V,S,b.x,b.y,g.x,g.y,Z.x,Z.y,D):C,j=p,P=w?this._writeVertex(m,L,V,S,b.x,b.y,0,0,0,0,D):p;let W=-1,Y=-1;if(F&&(c(Z,R,-U.x,-U.y),W=this._writeVertex(m,L,V,S,-U.x,-U.y,R.x,R.y,Z.x,Z.y,D),c(Z,B,b.x,b.y),Y=this._writeVertex(m,L,V,S,b.x,b.y,B.x,B.y,Z.x,Z.y,D)),w?F?(this._writeTriangle(j,T,W),this._writeTriangle(j,W,C),this._writeTriangle(P,z,Y),this._writeTriangle(P,Y,A)):(this._writeTriangle(j,T,C),this._writeTriangle(P,z,A)):F?(this._writeTriangle(p,T,W),this._writeTriangle(p,W,Y),this._writeTriangle(p,Y,A)):(this._writeTriangle(p,T,C),this._writeTriangle(p,z,A)),y?(k=this._writeVertex(m,L,V,S,b.x,b.y,h.x,h.y,e.x,e.y,D),O=A):(k=w?this._writeVertex(m,L,V,S,b.x,b.y,h.x,h.y,e.x,e.y,D):d,this._writeTriangle(k,P,A),O=A),t){const t=k;k=O,O=t}break}}}var P,W}}}}]);
|