@arcgis/core 5.2.0-next.154 → 5.2.0-next.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
- package/assets/esri/core/workers/chunks/0590857215c547e63b51.js +1 -0
- package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
- package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +1 -0
- package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +1 -0
- package/assets/esri/core/workers/chunks/129e04d24ced77c9bb6d.js +1 -0
- package/assets/esri/core/workers/chunks/15e1117a706a98b17ad5.js +1 -0
- package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
- package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +1 -0
- package/assets/esri/core/workers/chunks/{6f4e6022a52de0c54aab.js → 172cfeb5f415e4662432.js} +1 -1
- package/assets/esri/core/workers/chunks/1aa4f5394a596e544aeb.js +1 -0
- package/assets/esri/core/workers/chunks/22b01fe31bbf0bdc48db.js +1 -0
- package/assets/esri/core/workers/chunks/27c2da2e779def2ee08b.js +1 -0
- package/assets/esri/core/workers/chunks/28b74bc77f7c13080074.js +1 -0
- package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
- package/assets/esri/core/workers/chunks/3914d96147642a9d4b01.js +1 -0
- package/assets/esri/core/workers/chunks/{731018c0deffc41ffc97.js → 3e3e076fa5e8d5d5f33f.js} +1 -1
- package/assets/esri/core/workers/chunks/43cf862577bf37344ff4.js +1 -0
- package/assets/esri/core/workers/chunks/4932773663469919d10a.js +1 -0
- package/assets/esri/core/workers/chunks/4996869b9cbd8c8ddcfa.js +1 -0
- package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
- package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
- package/assets/esri/core/workers/chunks/{eb815148ae65388dd733.js → 544070198d2ca556103a.js} +1 -1
- package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
- package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
- package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +1 -0
- package/assets/esri/core/workers/chunks/{407f1e8176f3b0af73b4.js → 66867e523cc82f8fe35b.js} +1 -1
- package/assets/esri/core/workers/chunks/6f73e41e14817acfaead.js +1 -0
- package/assets/esri/core/workers/chunks/{320e5942a098dd104366.js → 74137ffec5265628c33b.js} +1 -1
- package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
- package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
- package/assets/esri/core/workers/chunks/7711ae5612f685078fc8.js +1 -0
- package/assets/esri/core/workers/chunks/{5116b569a8dbda4910c8.js → 784a2fba3e18286958d1.js} +1 -1
- package/assets/esri/core/workers/chunks/{693873b3eb99fba58fa9.js → 78c4e43cfa1eda06b4d9.js} +1 -1
- package/assets/esri/core/workers/chunks/{f6e62d2d279a328cbed7.js → 7bcedf479b07a4b4a234.js} +1 -1
- package/assets/esri/core/workers/chunks/81cad8d2f62a5f671c55.js +1 -0
- package/assets/esri/core/workers/chunks/{588e677f33df86a595bf.js → 820c8aaf3632edb0150c.js} +1 -1
- package/assets/esri/core/workers/chunks/842893e75696428d536f.js +1 -0
- package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
- package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
- package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
- package/assets/esri/core/workers/chunks/{a4162a8660bf763d542d.js → 967b4992b400517ee712.js} +1 -1
- package/assets/esri/core/workers/chunks/{adf25e5ed99615b83c68.js → a62c12925303ff802c3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
- package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
- package/assets/esri/core/workers/chunks/acdfd275dbf8533a67f3.js +1 -0
- package/assets/esri/core/workers/chunks/ace2e0a9d9013edd8624.js +1 -0
- package/assets/esri/core/workers/chunks/b1d5d236d5268fcbc74b.js +1 -0
- package/assets/esri/core/workers/chunks/b3007aedbf731dacaff1.js +1 -0
- package/assets/esri/core/workers/chunks/{53e2f2b922116a45fe8f.js → b573df59391ca41ee5a7.js} +1 -1
- package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +1 -0
- package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
- package/assets/esri/core/workers/chunks/c19f238b55ff2893f7c2.js +1 -0
- package/assets/esri/core/workers/chunks/c5ed67fdf261cbb1624b.js +1 -0
- package/assets/esri/core/workers/chunks/c72a904e01dc8c17d992.js +1 -0
- package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +1 -0
- package/assets/esri/core/workers/chunks/de6081df29183bf80787.js +1 -0
- package/assets/esri/core/workers/chunks/{c598b22f78ccc57f9d6d.js → dfd2dc5cdc97ffba8926.js} +1 -1
- package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +1 -0
- package/assets/esri/core/workers/chunks/e653c81ffb3d818645dd.js +1 -0
- package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
- package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
- package/assets/esri/core/workers/chunks/{c62738f84c914671b143.js → f4a7aa3cdbc0c429c359.js} +1 -1
- package/assets/esri/core/workers/chunks/fda83bcb8e40e8044c24.js +1 -0
- package/assets/esri/libs/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -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/support/uriUtils/t9n/messages.fr.json +1 -1
- package/config.d.ts +2 -0
- package/config.js +1 -1
- package/core/ObjectPool.js +1 -1
- package/core/PooledArray.js +1 -1
- package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
- package/geometry/support/buffer/BufferPool.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/curves/mathUtils.js +1 -1
- package/interfaces.d.ts +18 -9
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +2 -2
- package/layers/AnnotationFeatureLayer.js +1 -1
- package/layers/CatalogLayer.d.ts +2 -2
- package/layers/CatalogLayer.js +1 -1
- package/layers/DimensionFeatureLayer.d.ts +2 -2
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/FeatureLayer.js +1 -1
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
- package/layers/mixins/ReloadableLayer.js +2 -0
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/raster/datasets/BaseRaster.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +1 -1
- package/layers/raster/datasets/ImageServerRaster.js +1 -1
- package/layers/raster/datasets/MRFRaster.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/WCSRaster.js +1 -1
- package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/Zlib.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/package.json +2 -2
- package/popup/FeatureModel.js +1 -1
- package/popup/FeaturesModel.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/request/process.js +1 -1
- package/request/types.d.ts +7 -0
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
- package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSource.js +1 -1
- package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
- package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
- package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/PluginContext.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/draw/support/types.d.ts +5 -2
- package/webdoc/applicationProperties/SearchLayerField.d.ts +7 -1
- package/webdoc/applicationProperties/SearchLayerField.js +1 -1
- package/webdoc/applicationProperties/SearchTableField.d.ts +7 -1
- package/webdoc/applicationProperties/SearchTableField.js +1 -1
- package/webdoc/applicationProperties/searchMode.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +10 -1
- package/widgets/Editor.d.ts +10 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/HistogramRangeSlider.d.ts +2 -2
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/Legend.d.ts +1 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/LayerSearchSource.d.ts +23 -1
- package/widgets/Search/LayerSearchSource.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Search/types.d.ts +7 -0
- package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
- package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
- package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
- package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
- package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
- package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
- package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
- package/widgets/ValuePicker/types.d.ts +2 -0
- package/widgets/support/forms/formUtils.js +1 -1
- package/widgets/support/forms/types.d.ts +1 -1
- package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
- package/assets/esri/core/workers/chunks/03afeefb9d16b6f1d844.js +0 -1
- package/assets/esri/core/workers/chunks/09b9a886363bc1197785.js +0 -1
- package/assets/esri/core/workers/chunks/0ad0484ffcbe4ad21bd3.js +0 -1
- package/assets/esri/core/workers/chunks/19743dedaa40446259ec.js +0 -1
- package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
- package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
- package/assets/esri/core/workers/chunks/251921cd10ecfbc89451.js +0 -1
- package/assets/esri/core/workers/chunks/3252b1fae363bb0129a0.js +0 -1
- package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
- package/assets/esri/core/workers/chunks/4fc337240e7cddd0e988.js +0 -1
- package/assets/esri/core/workers/chunks/50036a323c2e7f155311.js +0 -1
- package/assets/esri/core/workers/chunks/55dcbf296d8d0092e473.js +0 -1
- package/assets/esri/core/workers/chunks/5732fdf6d8b87739aeea.js +0 -1
- package/assets/esri/core/workers/chunks/5924ec3167a2941ebb1f.js +0 -1
- package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
- package/assets/esri/core/workers/chunks/5bfea0c55aca826de536.js +0 -1
- package/assets/esri/core/workers/chunks/5fa1ec357c3ad1f91bc7.js +0 -1
- package/assets/esri/core/workers/chunks/60d3056a31d982c9cad0.js +0 -1
- package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
- package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
- package/assets/esri/core/workers/chunks/6b43bb78f9839ed43135.js +0 -1
- package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +0 -1
- package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
- package/assets/esri/core/workers/chunks/7d1fd2df579a4b535e0e.js +0 -1
- package/assets/esri/core/workers/chunks/7e0cf70c0eb5a2ddfcec.js +0 -1
- package/assets/esri/core/workers/chunks/879b2de825c1dfc8849d.js +0 -1
- package/assets/esri/core/workers/chunks/912080c90b5cc2e817cf.js +0 -1
- package/assets/esri/core/workers/chunks/917f53833b853898facc.js +0 -1
- package/assets/esri/core/workers/chunks/937824bc7948f7bc7845.js +0 -1
- package/assets/esri/core/workers/chunks/a97d85774f9a417202df.js +0 -1
- package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
- package/assets/esri/core/workers/chunks/b132ffa7e8bb461b6786.js +0 -1
- package/assets/esri/core/workers/chunks/b1b4066e8d1c0c9656e5.js +0 -1
- package/assets/esri/core/workers/chunks/b6ba66a05030d3815dfd.js +0 -1
- package/assets/esri/core/workers/chunks/bbec9d2e3b75a5c59681.js +0 -1
- package/assets/esri/core/workers/chunks/bf69024804ac51c8f733.js +0 -1
- package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
- package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +0 -1
- package/assets/esri/core/workers/chunks/e01aeac34474540f61ee.js +0 -1
- package/assets/esri/core/workers/chunks/e15ba90af0faf873b42d.js +0 -1
- package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
- package/layers/mixins/FeatureLayerReload.js +0 -2
- /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[574],{66131(e,t,n){n.d(t,{lY:()=>d,mT:()=>m});var r=n(59534),i=n(799),s=n(3330),o=n(84741),a=n(34747);const l={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(e,t){super((0,i.HC)(l[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function h(e,t,n){return e<t?e-t:e>n?e-n:0}function c(e,t,n){return e<t?t:e>n?n:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,r=0,i=0,s=0,o=0,l){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||isNaN(o))return null;let u=a.c9.local(e,t).daysInMonth,f=a.c9.fromObject({day:c(n,1,u),year:e,month:c(t,1,12),hour:c(r,0,23),minute:c(i,0,59),second:c(s,0,59),millisecond:c(o,0,999)},{zone:m(l)});return f=f.plus({months:h(t,1,12),days:h(n,1,u),hours:h(r,0,23),minutes:h(i,0,59),seconds:h(s,0,59),milliseconds:h(o,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){let n=m(t);return e.isUnknownTimeZone||n===s.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e._date.setZone(n))}static dateJSToArcadeDate(e){return new d(a.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){let n=m(t);return new d(a.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new d(a.c9.fromMillis(e,{zone:s.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(a.c9.fromMillis(e.getTime(),{zone:s.GB.instance}))}static epochToArcadeDate(e,t="system"){let n=m(t);return new d(a.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){let t=m(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){let n=m(t);return e.zone===s.GB.instance||n===s.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e.setZone(n))}static nowToArcadeDate(e){let t=m(e);return new d(a.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(a.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";let e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let t=a.c9.fromISO(e,{setZone:!0});return new d(t)}}function m(e,t=!0){if(e instanceof a.bo)return e;switch((0,r.B)(e)){case"system":return"system";case"utc":return"UTC";case"unknown":return s.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(e)){let t=a.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}let n=(0,o.p)(e);if(!n.isValid){if(t)throw new u("TimeZoneNotRecognized");return null}return n}},59534(e,t,n){n.d(t,{B:()=>i,b:()=>s});var r=n(85935);function i(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class s{constructor(e,t){let n=new Map;for(let t of e){let e=i(t);if(n.has(e))throw Error(`${t} already added as ${n.get(e)}`);n.set(e,t)}if(null!=t)for(let[e,r]of t){let t=i(e);if(n.has(t))throw Error(`${e} already associated with ${n.get(t)}`);n.set(t,r)}this._enumMap=n}lookup(e){return this._enumMap.get(i(e))}get(e){let t=this.lookup(e);if(null==t)throw new r.D$("InvalidParameter",null);return t}}},85935(e,t,n){n.d(t,{D$:()=>a,O$:()=>h,i2:()=>c,mT:()=>u,ps:()=>m});var r=n(799);const i={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function s(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class o extends Error{constructor(e,t){super(l(t)+("object"==typeof e&&e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class a extends Error{constructor(e,t,n){super("Execution error - "+l(t)+(0,r.HC)(i[e],n)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function l(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,n){super("Compilation error - "+l(t)+(0,r.HC)(i[e],n)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class h extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function c(e,t){return!function(e){if(e instanceof Error&&"loc"in e){let t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&s(t.start)&&(!("end"in t)||null==t.end||s(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new o(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(e,t){super((0,r.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},69540(e,t,n){var r=n(32198),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let n=e,i=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let n=t.metadata,r=t.store,i={},l=new Map;for(let t in n){let o=n[t],a=r?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):i[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,n]of l)e.set(t,n,0)}return u}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},c=h(i.A);n.d(t,["OU",0,h,"Pw",0,c])},66344(e,t,n){n.d(t,{q:()=>a});const r=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class i{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,n,i,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),i>this._maxSize)return void this._notifyRemove(t,n,i,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return r||console.warn(`Refusing to cache entry with size ${i} for key ${t}`),void this._notifyRemove(t,n,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,i,l)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,t){t=e.id+t;let n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let r=n.entry.usedMemory;for(;r>this._maxSize;){let e=this._notifyRemove(t,n.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}n.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;let n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;let n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){let n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=[];this._db.forEach((e,r)=>{let i=e.lifetime;n[i]=(n[i]||0)+e.size,this._clients.forEach(n=>{let{id:i,name:s}=n;if(r.startsWith(i)){let n=t[s]||0;t[s]=n+e.size}})});let r={};this._clients.forEach(e=>{let n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let i=t[n]||0;t[n]=i,r[n]=Math.round(100*e.hitRate)+"%"}else r[n]="0%"});let i=Object.keys(t);i.sort((e,n)=>t[n]-t[e]),i.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+r[n]);for(let t=n.length-1;t>=0;--t){let r=n[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,r){let i=this._clients.get(e.split(o)[0])?.removeFunc,s=i?.(t,r,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let n=t??this;if(n.size<=e)return;let r=t?.id,i=!0;for(;i;){i=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!r||s.startsWith(r))){let r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,r),n.size<=.9*e)return;i||=this._db.has(s)}}for(let[i,s]of this._db)if(!r||i.startsWith(r)){let r=t??this._clients.get(i.split(o)[0]);if(this._purgeItem(i,s,r),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);let r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,n&&(n.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new i(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new i(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,n){n.d(t,{DZ:()=>f,Ke:()=>m,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var r=n(32198),i=n(69622),s=n(97768),o=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function h(e,t,n){return(await(0,o.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function f(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},67482(e,t,n){function r(e){return null!==i(e)}function i(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let n=t.groups,r=+n.year,i=n.month-1,o=+n.day,a=+(n.hours??"0"),l=+(n.minutes??"0"),u=+(n.seconds??"0");if(a>23||l>59||u>59)return null;let h,c=n.ms??"0",d=c?+c.padEnd(3,"0").slice(0,3):0;if(n.isUTC||!n.offsetSign)h=Date.UTC(r,i,o,a,l,u,d);else{let e=+n.offsetHours,t=+n.offsetMinutes;h=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,i,o,a,l,u,d)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>r,_:()=>i});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,l,u,h,c,d,m,f,p){return[e,t,n,r,i,s,o,a,l,u,h,c,d,m,f,p]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,s])},35522(e,t,n){n.d(t,{$A:()=>C,Bw:()=>s,C:()=>o,Cc:()=>v,DI:()=>S,Io:()=>_,Ln:()=>g,Om:()=>M,Qr:()=>c,Re:()=>u,S8:()=>x,T9:()=>p,WQ:()=>l,Z0:()=>F,_S:()=>m,aI:()=>z,ei:()=>A,fw:()=>R,gL:()=>D,hG:()=>w,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>h,m3:()=>b,oW:()=>O,t2:()=>N,tn:()=>d,ze:()=>T});var r=n(51850),i=n(34304);function s(e){let t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function h(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function p(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function g(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function _(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function w(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function b(e){let t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function T(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t=e){let n=t[0],r=t[1],i=t[2],s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function M(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,n){let r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2];return e[0]=i*l-s*a,e[1]=s*o-r*l,e[2]=r*a-i*o,e}function v(e,t,n,r){let i=t[0],s=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e}function F(e,t,n){let r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function A(e,t,n){let r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function D(e,t,n){return R(e,t,n[0],n[1],n[2],n[3])}function R(e,t,n,r,i,s){let o=t[0],a=t[1],l=t[2],u=r*l-i*a,h=i*o-n*l,c=n*a-r*o,d=r*c-i*h,m=i*u-n*c,f=n*h-r*u,p=2*s;return e[0]=o+u*p+2*d,e[1]=a+h*p+2*m,e[2]=l+c*p+2*f,e}const I=(0,r.vt)(),P=(0,r.vt)();function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function z(e,t){if(e===t)return!0;let n=e[0],r=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(e,t,n){let r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2],o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,E=h,B=c,L=_,Z=w,U=s,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(I,e),x(P,t);let n=M(I,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,c=3*l*o,d=l*s;return e[0]=t[0]*u+n[0]*h+r[0]*c+i[0]*d,e[1]=t[1]*u+n[1]*h+r[1]*c+i[1]*d,e[2]=t[2]*u+n[2]*h+r[2]*c+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:C,crossAndNormalize:function(e,t,n){let r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],u=i*l-s*a,h=s*o-r*l,c=r*a-i*o,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:O,dist:L,distance:_,div:B,divide:c,dot:M,equals:z,exactEquals:N,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*h,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*h,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*h,e},inverse:S,len:U,length:s,lerp:v,max:p,min:f,mul:E,multiply:h,negate:T,normalize:x,random:function(e,t=1){let n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,n,r){let i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){let i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){let i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/U(e))},set:a,sign:m,sqrDist:Z,sqrLen:j,squaredDistance:w,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:A,transformMat4:F,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:D,transformQuatValues:R},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,U,"jb",0,k,"lo",0,Z,"uE",0,j])},75503(e,t,n){n.d(t,{wq:()=>a});var r=n(4576),i=n(21818),s=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),T.prune(),S.prune(),x.prune(),M.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data,r=this._toBBox;if(w(e,n))for(T.clear();n;){for(let i=0,s=n.children.length;i<s;i++){let s=n.children[i],o=n.leaf?r(s):s;w(e,o)&&(n.leaf?t(s):_(e,o)?l(s,t):T.push(s))}n=T.pop()}}collides(e){let t=this._data,n=this._toBBox;if(!w(e,t))return!1;for(T.clear();t;){for(let r=0,i=t.children.length;r<i;r++){let i=t.children[r],s=t.leaf?n(i):i;if(w(e,s)){if(t.leaf||_(e,s))return!0;T.push(i)}}t=T.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(x.clear(),M.clear();n||x.length>0;){if(n||(n=x.pop(),s=x.data[x.length-1],o=M.pop()??0,a=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),x.push(n),this._condense(x),this;a||n.leaf||!_(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(x.push(n),M.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){let i=n-t+1,s=this._maxEntries;if(i<=s){let r=new F(e.slice(t,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/s**(r-1)));let o=new A([]);o.height=r;let a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,n,l,this._compareMinX);for(let i=t;i<=n;i+=l){let t=Math.min(i+l-1,n);b(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){let i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,r-1))}}return u(o,this._toBBox),o}_insert(e,t,n){let r=this._toBBox,i=n?e:r(e);x.clear();let s=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=f(o),l=y(e,o)-a;l<i?(i=l,r=a<r?a:r,n=o):l===i&&a<r&&(r=a,n=o)}t=n||t.children[0]}return t}(i,this._data,t,x);for(s.children.push(e),c(s,i);t>=0&&x.data[t].children.length>this._maxEntries;)this._split(x,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)c(t.data[r],e)}(i,x,t)}_split(e,t){let n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);let s=this._chooseSplitIndex(n,i,r);if(!s)return;let o=n.children.splice(s,n.children.length-s),a=n.leaf?new F(o):new A(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,s;r=i=1/0;for(let o=t;o<=n-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,n,this._toBBox),l=g(t,a),u=f(t)+f(a);l<r?(r=l,s=o,i=u<i?u:i):l===r&&u<i&&(i=u,s=o)}return s}_chooseSplitAxis(e,t,n){let r=e.leaf?this._compareMinX:d,i=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);let i=this._toBBox,s=h(e,0,t,i),o=h(e,n-t,n,i),a=p(s)+p(o);for(let r=t;r<n-t;r++){let t=e.children[r];c(s,e.leaf?i(t):t),a+=p(s)}for(let r=n-t-1;r>=t;r--){let t=e.children[r];c(o,e.leaf?i(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let n=e.data[t];if(0===n.children.length)if(t>0){let i=e.data[t-1],s=i.children;s.splice((0,r.qh)(s,n,s.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(let e of n.children)t((0,i.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,r,i){i||=new F([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],c(i,e.leaf?r(s):s);return i}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,s-r)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,n,r,i){let s=[t,n];for(;s.length;){let t=s.pop(),n=s.pop();if(t-n<=r)continue;let a=n+Math.ceil((t-n)/r/2)*r;(0,o.q)(e,a,n,t,i),s.push(n,a,a,t)}}const T=new s.A,S=new s.A,x=new s.A,M=new s.A({deallocator:void 0});class C{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class v extends C{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class F extends v{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends v{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>i});var r=n(34275);function i(e){if(!e)return 0;let t=u;for(let n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=h;for(let r=0;r<t;r++)n+=o(e[r]);return n}(e);let t=u;for(let n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?s(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+c:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return h+e.length*t}const u=32,h=16,c=145},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var r=n(37955),i=n(36563),s=n(97768),o=n(17676),a=n(14012);function l(e,t,n={}){return h(e,t,n,m)}function u(e,t,n={}){return h(e,t,n,f)}function h(e,t,n={},r){let i=null,o=n.once?(e,n)=>{r(e)&&((0,s.xt)(i),t(e,n))}:(e,n)=>{r(e)&&t(e,n)};if(i=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){let t=e();o(t,t)}return i}function c(e,t,n,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),n(e)}let m=l(e,(e,n)=>{c(),(0,r.wb)(e)&&(a=e,u=(0,r.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,i.hA)(()=>{m.remove(),c()}),h}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());let r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((r,s)=>{a=(0,i.vE)([(0,o.u7)(n,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),r(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,n){n.d(t,{v:()=>a});var r=n(4718),i=n(62788),s=n(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,i.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=r.gh){return new o(e,t)}},44729(e,t,n){n.d(t,{n:()=>l});var r=n(66131),i=n(73444),s=n(34747);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";for(let n of e.match(/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&!!e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}compare(e){return this.year===e.year?this.month===e.month?this.day-e.day:this.month-e.month:this.year-e.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";let n=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return s.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let t=s.c9.fromMillis(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){let t=s.c9.fromSeconds(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;let t=e.indexOf("-");if(t<0)return null;let n=e.indexOf("-",t+1);return n<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10))}static fromParts(e,t,n){let r=new l(e,t,n);return!1===r.isValid?null:r}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e||null===e)return null;let n=[];if(t)(t=o(t))&&n.push(t);else if(null===t||""===t){let t=s.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(let r of n){let n=s.c9.fromFormat(e,t??r);if(n.isValid)return new l(n.year,n.month,n.day)}return null}static fromNow(e="system"){let t=s.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new l(t.year,t.month,t.day)}}},15032(e,t,n){n.d(t,{k:()=>l});var r=n(73444),i=n(54218),s=n(34747);function o(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,n="";for(let r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=r;break;case"A":case"a":n+="a";break;default:n+=`'${r}'`}return n}const a="esri.core.sql.timeonly";class l{constructor(e,t,n,r){this._hour=e,this._minute=t,this._second=n,this._millisecond=r,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&!!e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,i.Fq)(this.hour)&&(0,i.Fq)(this.minute)&&(0,i.Fq)(this.second)&&(0,i.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?s.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,r.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,r){let i=new l(e,t,n,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;let t=e.indexOf(":");if(t<0)return null;let n=e.indexOf(":",t+1);return n<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;let t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new l(r,n,t,i)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e||null===e)return null;let n=[];t?(t=o(t))&&n.push(t):(null===t||""===t)&&(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(let t of n){let n=s.c9.fromFormat(e,t);if(n.isValid)return new l(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return s.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},88930(e,t,n){n.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var r=n(97770),i=(n(98623),n(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,s="system"){if("unknown"===n)return e;let o=new i.oh((0,r.wj)(s)),a=i.c9.fromJSDate(e,{zone:o}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){let r=e.getTime(),i=c(t,n,"milliseconds");return new Date(r+i)}function u(e,t,n="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new i.oh((0,r.wj)(n)),l=i.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:n,mm:r,ss:i,ms:a}=t.groups;return Number(n)*o.hours+Number(r)*o.minutes+Number(i||0)*o.seconds+Number(a||0)}function c(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>y});var r,i=n(32198),s=n(4576),o=n(4718),a=n(91429),l=n(5443),u=n(91075),h=n(86738),c=n(16930),d=n(90634),m=n(47610),f=n(56993),p=n(43937);let y=r=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,n=e.spatialReference;return!(null!=t!=(null!=n)||null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>f});var r,i=n(32198),s=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),h=n(16930),c=n(90634),d=n(56993),m=n(43937);let f=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;let n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let r=this.paths[e];if(n&&(t<0||t>r.length)||!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,n){n.d(t,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var r=n(34275),i=n(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);let n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let r=0;r<t.length;++r)n[e.length+r]=t[r];return n}function u(e){return[...e]}function h(e){let t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>F,C:()=>o,DC:()=>d,Ej:()=>w,Ie:()=>C,Jt:()=>v,Lu:()=>T,Ne:()=>S,RF:()=>c,TF:()=>g,VL:()=>f,aI:()=>D,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>M,iT:()=>m,is:()=>A,pg:()=>b,uJ:()=>y,vI:()=>x,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let n=0;n<6;n++)e[n]=t[n];return e}function a(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function l(e,t=s()){return function(e,t,n,r=s()){return M(r,R),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[n,r,s,o,a,l]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=l,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new r.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new r.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,n=e){n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n[3]=Math.max(e[3],t[3]),n[4]=Math.max(e[4],t[4]),n[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,n,r]){!function(e,t,n,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.min(e[2],r),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],n),e[5]=Math.max(e[5],r)}(e,t,n,r)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=f(e),n=y(e),r=p(e);return t*t+n*n+r*r}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function w(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function T(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function S(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function x(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function C(e){return e?M(e,R):s(R)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function F(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=-1/0,e[3]=r,e[4]=i,e[5]=1/0,e}function A(e){return 6===e.length}function D(e,t,n){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const R=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];s(),n.d(t,["qv",0,R,"v_",0,I])},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>c,ZC:()=>r,fT:()=>s,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>h,xD:()=>d});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function h(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},50498(e,t,n){var r=n(66552),i=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},m=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});n.d(t,["Ye",0,c,"gy",0,h,"iI",0,m,"yR",0,d])},97770(e,t,n){n.d(t,{Ey:()=>R,F8:()=>D,J2:()=>C,Yq:()=>F,_m:()=>v,iS:()=>A,wj:()=>I});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},w={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...p},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...p},"day-short-month-year-long-time-24":{...d,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function S(){let e=(0,i.lR)();return(e&&T[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(T.bs="sr-Latn-CS");let x=new WeakMap;const M=w["short-date-short-time"];function C(e){return w[e]}function v(e){let{dateStyle:t,timeStyle:n,hour12:r,year:i,month:s}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function F(e,t=M){return function(e){let t=x.get(e);if(!t){let n=S(),r=I(e.timeZone??"system"),i={...e,timeZone:r};t=new Intl.DateTimeFormat(n,i),x.set(e,t)}return t}(t).format(e)}function A(e,t=M){return F(new Date(e),{...t,...u,...l})}function D(e,t=M){return F(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function R(e,t=M){let n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return F(n.toJSDate(),t);let r=0===n.offset?"UTC":t.timeZone,i={...t,timeZone:r};return n.toLocaleString(i,{locale:S()})}function I(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,i.Ml)(()=>{x=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>y,QC:()=>c,lR:()=>h,oQ:()=>f});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,r.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,r.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();i!==e&&([...p].forEach(t=>t(e)),i=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var r=n(44208),i=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>f});var r=n(4576),i=n(49186),s=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),h=n(6518),c=n(51441),d=n(37730);const m=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,n,r,i]=this.fullBounds;return{xmin:t,ymin:n,xmax:r,ymax:i,spatialReference:(0,c.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(r.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let n of e){let e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let n,r=this._featuresById.get(t);if(r?(e.displayId=r.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,u.jQ)(n??(0,l.vt)(),e.geometry),null!=n&&this._boundsStore.set(t,n),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;let{geometry:r,attributes:s}=e;for(let e in s)n.attributes[e]=s[e];return r&&(n.geometry=r,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),r)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var r=n(43334);const i={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new r.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,i])},33771(e,t,n){n.r(t),n.d(t,{default:()=>b});var r=n(60999),i=n(49186),s=n(53966),o=n(34727),a=n(17676),l=n(67076),u=n(21325),h=n(90708),c=n(83221),d=n(31464),m=n(75752),f=n(85113),p=n(82832),y=n(34322),g=n(95466),_=n(54218);n(98623);const w="esri.layers.WFSLayer";class b{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){let{getFeatureUrl:n,getFeatureOutputFormat:r,fields:s,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:h,maxPageCount:f,objectIdField:p,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:b}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(b,w)}catch{throw new i.A("unsupported-projection","Projection not supported",{inSpatialReference:b,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:"UTC"}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=r,this._getFeatureSpatialReference=b,this._maxRecordCount=u,this._maxTotalRecordCount=h,this._maxPageCount=f,this._objectIdField=p,this._spatialReference=w;let S=await this._snapshotFeatures(t);if(S.errors.length>0&&(this._supportsPagination=!1,S=await this._snapshotFeatures(t),S.errors.length>0))throw S.errors[0];let x={type:"object-id",fieldName:p};return this._queryEngine=new m.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:x,spatialReference:w,timeInfo:null,featureStore:new c.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(S.features),{warnings:T(S),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new i.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(let t of T(e))s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){let t=e?.signal,n=this._maxTotalRecordCount,r=this._maxPageCount,i=this._supportsPagination&&r>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0,s=[],l=[];if(null==i)try{s=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{let e=function*(e,t,n){for(let r=0;r<t;r++)yield e._pageQuery(r,n)}(this,(0,o.qE)(Math.ceil(Math.min(i,n)/this._maxRecordCount),1,r),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let r=e.next();for(;!r.done;){try{let e=await r.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}r=e.next()}}(e,s,l)))}return(0,a.Te)(t),{features:s,totalRecordCount:i,maxTotalRecordCount:n,maxPageCount:r,errors:l}}async _singleQuery(e){let t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){let n=e*this._maxRecordCount,r=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(r,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,f.sO)(e,this._getFeatureSpatialReference.wkid);let{startIndex:n,signal:r}=t;(0,a.Te)(r);let i=(0,f.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(let e of i)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,d.Cv)((0,h.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let s=n??1;for(let e of i){let t={};(0,p.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,t[this._objectIdField]??(e.objectId=t[this._objectIdField]=s++)}return i}}function T(e){let t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},85113(e,t,n){n.d(t,{BM:()=>C,bd:()=>v,sO:()=>M,xD:()=>c});var r=n(67482),i=n(49186),s=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return h[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function f(e){for(let t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];t+=r[0]*i[1]-i[0]*r[1]}return t<=0}function y(e){let t=e[0],n=e[e.length-1];(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2])&&e.push(t)}function g(e,t){let{coordinates:n,type:r}=e,i=t.hasZ??!1;switch(r){case"Point":return new l.A([],[...n],i,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:!0},i,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:!0},i,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:!0},i,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],i,!1);for(let t of"Polygon"===r?[n]:n){_(e,t[0],i);for(let n=1;n<t.length;n++)w(e,t[n],i)}return e}}}function _(e,t,n){y(t),function(e){return!p(e)}(t)?T(e,t,n):b(e,t,n)}function w(e,t,n){y(t),function(e){return p(e)}(t)?T(e,t,n):b(e,t,n)}function b(e,t,n){for(let r of t)S(e,r,n);e.lengths.push(t.length)}function T(e,t,n){for(let r=t.length-1;r>=0;r--)S(e,t[r],n);e.lengths.push(t.length)}function S(e,[t,n,r],i){e.coords.push(t,n),i&&e.coords.push(r||0)}function x(e){switch(typeof e){case"string":return(0,r.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function M(e,t=4326){if(!e)throw new i.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:n}=e;if(!n)return;let r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!r||!o.test(r))throw new i.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function C(e,t={}){let n,r=[],i=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of d(e)){let{geometry:e,properties:d,id:p}=t;if((!e||(h||=c(e.type),c(e.type)===h))&&(o||=f(m(e)),l||(l=null!=p,l&&(n=typeof p,d&&(a=Object.keys(d).filter(e=>d[e]===p)))),d&&a&&l&&null!=p&&(a.length>1?a=a.filter(e=>d[e]===p):1===a.length&&(a=d[a[0]]===p?a:[])),d))for(let e in d){if(i.has(e))continue;let t=x(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),i.add(e);let n=(0,u.rS)(e);n&&r.push({name:n,alias:e,type:t})}}let p=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(p)for(let e of r)if(e.name===p&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:h,hasZ:o,objectIdFieldName:p,objectIdFieldType:n,unknownFields:Array.from(s)}}function v(e,t){return Array.from(function*(e,t={}){let{geometryType:n,objectIdField:r}=t;for(let i of e){let{geometry:e,properties:s,id:o}=i;if(e&&c(e.type)!==n)continue;let l,u=s||{};r&&(l=u[r],null!=o&&!l&&(u[r]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(d(e),t))}},82832(e,t,n){n.d(t,{$1:()=>_,CR:()=>g,MB:()=>f,Yx:()=>h,bP:()=>d});var r=n(67482),i=n(18370),s=n(60408),o=n(21325),a=n(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class c{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new c(e)}const m=new Set;function f(e,t,n,r=!1){m.clear();for(let i in n){let s=e.get(i);if(!s)continue;let o=p(s,n[i]);if(m.add(s.name),s&&(r||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,a.WA)(e)&&"string"==typeof t?n=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,a.vE)(e)&&"string"==typeof t&&(n=(0,r._)(t)),(0,a.WX)(n)}const y=(0,i.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(3456)]).then(()=>n(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let n=y.module;if(null==n)throw TypeError("simplify operator not loaded");return n.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}n.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},34322(e,t,n){n.d(t,{E:()=>O,Fu:()=>S,O8:()=>A,UH:()=>L,YW:()=>D,mG:()=>F,x$:()=>N});var r=n(56507),i=n(49186),s=n(5479),o=n(84952),a=n(5443),l=n(99917),u=n(16930),h=n(21325),c=n(50498),d=n(85113),m=n(13043),f=n(60694),p=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",w="__esri_wfs_id__",b="wfs-layer:feature-type-not-found",T="wfs-layer:unknown-geometry-type";async function S(e,t){let n=function(e){let t=k(e);(function(e){let t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new i.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),B(t);let n=t.firstElementChild,r=(0,s.PP)(function(e){return(0,m.i)(e,{FeatureTypeList:{FeatureType:e=>{let t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,m.p)(e,{Name:e=>{let{name:n,prefix:r}=E(e.textContent);t.typeName=`${r}:${n}`,t.name=n,t.namespacePrefix=r,t.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,r,i;for(let s of e.children)switch(s.localName){case"LowerCorner":[t,n]=s.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[r,i]=s.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:r,ymax:i,spatialReference:h.KK}}(e))},DefaultCRS:e=>{let r=v(e);r&&(t.defaultSpatialReference=r,n.add(r))},OtherCRS:e=>{let t=v(e);t&&n.add(t)}}),t.title||=t.name,n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:C(n),get featureTypes(){return Array.from(r())},readFeatureTypes:r}}((await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const x=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function M(e){for(let t of x){let n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function C(e){let t=!0,n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},r=[],s=[];if((0,m.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=M(s)??M(r),!t)throw new i.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new i.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return n}function v(e){let t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function F(e,t,n){return(0,s.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function A(e,t,n,r={}){let{featureType:s,extent:o}=await async function(e,t,n,r={}){let s=e.readFeatureTypes(),o=t?F(s,t,n):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=r;if(null==o)throw t?new i.A(b,`The type '${t}' could not be found in the service`):new i.A("wfs-layer:empty-service","The service is empty");let c=o.extent;if(c&&!(0,h.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,r),c=(0,l.project)(c,a)}catch{throw new i.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:o}}(e,t,n,r),{spatialReference:a}=L(e.operations.GetFeature.url,s,r.spatialReference),{fields:c,geometryType:d,swapXY:m,objectIdField:f,geometryField:p}=await async function(e,t,n,r={}){let{typeName:s}=t,[o,a]=await Promise.allSettled([I(e.operations.DescribeFeatureType.url,s,r),R(e,s,n,r)]),l=e=>{let t=`An error occurred while getting info about the feature type '${s}'`;return new i.A("wfs-layer:getWFSLayerTypeInfo-error",t,{error:e})};if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);let{fields:u,errors:h}=o.value??{},c=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new i.A(T,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:c,fields:u,errors:h});return{...D(u??[]),geometryType:c,swapXY:d}}(e,s,a,r);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:c,geometryField:p,geometryType:d,objectIdField:f,spatialReference:r.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:m,wfsCapabilities:e,customParameters:r.customParameters}}function D(e){let t=e.find(e=>"geometry"===e.type),n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new p.A({name:w,type:"oid",alias:w}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function R(e,t,n,i={}){let s,o=!1,[a,l]=await Promise.all([N(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...i,count:1}),(0,r.A)(e.operations.GetFeature.url,{responseType:"text",query:z(t,n,void 0,{...i,count:1}),signal:i?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}let t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){let n=e[0].toFixed(3),r=e[1].toFixed(3),i=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===i&&(o=!0)}}return{geometryType:s,swapXY:o}}async function I(e,t,n){return function(e,t){let{name:n}=E(e),r=k(t);B(r);let o=(0,s.I6)((0,m.i)(r.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){let e=o.getAttribute("type"),t=e?(0,s.I6)((0,m.i)(r.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===E(e).name):(0,s.I6)((0,m.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){let t,n=[],r=[],s=(0,m.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(let o of s){let s,a,l=o.getAttribute("name");if(!l)continue;if(o.hasAttribute("type")?s=E(o.getAttribute("type")).name:(0,m.p)(o,{simpleType:{restriction:e=>(s=E(e.getAttribute("base")).name,{maxLength:e=>{a=+e.getAttribute("value")}})}}),!s)continue;let u="true"===o.getAttribute("nillable"),h=!1;switch(s.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new p.A({name:l,alias:l,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":r.push(new p.A({name:l,alias:l,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new p.A({name:l,alias:l,type:"string",nullable:u,length:a??(0,y._b)("string")}));break;case"datetime":case"date":r.push(new p.A({name:l,alias:l,type:"date",nullable:u,length:a??(0,y._b)("date")}));break;case"pointpropertytype":t="point",h=!0;break;case"multipointpropertytype":t="multipoint",h=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":t="polyline",h=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":t="polygon",h=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":h=!0,n.push(new i.A(T,`geometry type '${s}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:n.push(new i.A("wfs-layer:unknown-field-type",`Unknown field type '${s}'`,{type:(new XMLSerializer).serializeToString(e)}))}h&&r.push(new p.A({name:l,alias:l,type:"geometry",nullable:u}))}for(let e of r)if("integer"===e.type&&!e.nullable&&P.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:t,fields:r,errors:n}}(t)}throw new i.A(b,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(r)})}(t,(await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const P=new Set(["objectid","fid"]);async function N(e,t,n,s,o){let{data:a}=await(0,r.A)(e,{responseType:"text",query:z(t,n,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new i.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function z(e,t,n,r){let i="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+i,STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}async function O(e,t,n){let i=await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(i.data);if(s?.groups)return+s.groups.numberMatched}function k(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function E(e){let[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function B(e){let t="",n="";if((0,m.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new i.A(`wfs-layer:${t}`,n)}function L(e,t,n){let r={wkid:t.defaultSpatialReference},i=null==n?.wkid?r:{wkid:n.wkid};return{spatialReference:i,getFeatureSpatialReference:(0,f.Fi)(e)||i.wkid&&t.supportedSpatialReferences.includes(i.wkid)?{wkid:i.wkid}:{wkid:t.defaultSpatialReference}}}n.d(t,["i5",0,w])},13043(e,t,n){function r(e,t){if(e&&t)for(let n of e.children)if(n.localName in t){let e=t[n.localName];if("function"==typeof e){let t=e(n);t&&r(n,t)}else r(n,e)}}function*i(e,t){for(let n of e.children)if(n.localName in t){let e=t[n.localName];"function"==typeof e?yield e(n):yield*i(n,e)}}n.d(t,{i:()=>i,p:()=>r})},39357(e,t,n){n.d(t,{A:()=>a});var r,i=n(32198),s=n(25482),o=n(91429);let a=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>h});var r,i=n(32198),s=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let h=class extends l.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,n){n.d(t,{A:()=>u});var r=n(32198),i=n(66552),s=n(25482),o=n(91429),a=n(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,n){n.d(t,{A:()=>f});var r,i=n(32198),s=n(66552),o=n(25482),a=n(91429),l=n(78888),u=n(8631),h=n(98453),c=n(36005),d=n(93223);const m=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends o.o{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch{}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch{}return n?m.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,i.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],f.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,i.Cg)([(0,d.e)(h.m)],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,i.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},95466(e,t,n){n.d(t,{A:()=>u});var r=n(49186),i=n(53966),s=n(12195),o=n(30524),a=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let n=[];for(let e of this.fields){let t=e?.name,r=(0,o.GZ)(t);if(t&&r){let i=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,o.te)(e)&&!(0,o.Xz)(e)&&!e.nullable&&void 0===(0,o.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",u=(r?"endField"in r?r.endField:r.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):c??"UTC":null,m=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.timeReference?(0,l.ZS)(r.timeReference):c:null,f=new Map([[(0,o.NF)(i?.creationDateField??""),d],[(0,o.NF)(i?.editDateField??""),d],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:r,type:i}of e.fields)if(h.has(i))t.set(r,a.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(n)t.set(r,a.L);else{let e=f.get((0,o.NF)(r??""))??c;t.set(r,e)}return t}},41628(e,t,n){n.d(t,{A:()=>l});var r,i=n(32198),s=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,n){n.d(t,{r:()=>d,g:()=>c});var r,i=n(53177),s=n(76357),o=n(32198),a=n(91429),l=n(93223);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=n(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":i.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,n){const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,r])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1150,1948,2994,5223,5360,6525,6742,7992,9447,9716],{32198(e,t,r){function n(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>a,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function a(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},57694(e,t,r){r.d(t,{a:()=>a,c:()=>i});var n=r(55537),s=r(83661);function i(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case n.G.enumPolygon:return o(e);case n.G.enumPolyline:return h(e.getImpl());case n.G.enumLine:case n.G.enumBezier:case n.G.enumEllipticArc:return function(e){let t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case n.G.enumMultiPoint:return function(e){let t=new s.K(0),r=new s.K(0),n=e.getImpl(),i=n.getAttributeStreamRef(0),a=n.getPointCount(),o=new s.P;for(let e=0;e<a;e++)i.queryPoint2D(2*e,o),t.add(o.x),r.add(o.y);let u=new s.P;return u.setCoords(t.getResult(),r.getResult()),u.divThis(a)}(e);case n.G.enumEnvelope:return e.getCenterXY();case n.G.enumPoint:return e.getXY();default:return s.P.construct(NaN,NaN)}return s.P.construct(NaN,NaN)}function a(e,t){return o(e,t)}function o(e,t=-1){let r,n,i=new s.K(0),a=new s.K(0),o=e.getImpl(),h=o.hasNonLinearSegments(),m=o.getXY(0);if(-1===t){if(n=o.calculateArea2D(),0===n)return c(e);h&&(r=o.querySegmentIterator());for(let e=0,t=o.getPathCount();e<t;e++)u(m,o,e,i,a),h&&l(m,r,i,a)}else{if(n=o.calculateRingArea2D(t),0===n)return c(e,t);h&&(r=o.querySegmentIterator(),r.resetToPath(t)),u(m,o,t,i,a),h&&l(m,r,i,a)}let f=new s.P,g=new s.P;return f.setCoords(i.getResult(),a.getResult()),g.assign(f.mul(1/n).add(m)),g}function u(e,t,r,n,i){let a=t.getPathStart(r),o=t.getPathEnd(r);if(o-a<3)return;let u=t.getAttributeStreamRef(0),l=u.readPoint2D(2*a),c=u.readPoint2D(2*(a+1));c.subThis(l);let h=new s.K(0),m=t.hasNonLinearSegments(),f=new s.P;for(let e=a+2;e<o;e++){u.queryPoint2D(2*e,f),f.subThis(l);let t=.5*f.crossProduct(c);m&&h.add(t);let r=.3333333333333333*t;n.add((c.x+f.x)*r),i.add((c.y+f.y)*r),c.setCoordsPoint2D(f)}let g=m?h.getResult():t.calculateRingArea2D(r),p=l.sub(e).mul(g);n.add(p.x),i.add(p.y)}function l(e,t,r,s){let i;for(t.nextPath()||(0,n.d)("centroid");null!==(i=t.nextCurve());){let t=i.calculateWeightedAreaCentroid2D(e);r.add(t.x),s.add(t.y)}}function c(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){let r=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===r)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));let r=new s.K(0),n=new s.K(0);for(let t=0;t<e.getPathCount();++t){let s=e.getXY(e.getPathStart(t));r.add(s.x),n.add(s.y)}return s.P.construct(r.getResult(),n.getResult()).mul(1/e.getPathCount())}(e,t);let n=new s.K(0),i=new s.K(0),a=e.querySegmentIterator();for(-1!==t&&a.resetToPath(t);a.nextPath();){let r=a.getPathIndex(),s=e.getXY(e.getPathStart(r));for(;a.hasNextSegment();){let e=a.nextSegment(),t=e.calculateLength2D();if(0===t)continue;let r=e.calculateWeightedCentroid2D().sub(s.mul(t));n.add(r.x),i.add(r.y)}let o=s.mul(e.calculatePathLength2D(r));if(n.add(o.x),i.add(o.y),-1!==t)break}let o=new s.P;return o.setCoords(n.getResult(),i.getResult()),o.mul(1/r)}},30921(e,t,r){r.d(t,{D:()=>P,m:()=>c,s:()=>d,w:()=>y});var n=r(32198),s=r(55537),i=r(88885),a=r(39117),o=r(83661),u=r(79187),l=r(95213);function c(){return{outPoint:new o.P,index:-1,t:NaN}}function h(e,t,r){return{outPoint:e.clone(),index:t,t:r}}function m(e,t,r,n){e.outPoint.assign(t),e.index=r,e.t=n}function f(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,r,n){e.index=r,e.t=n,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){let r=c();f(r,e),f(e,t),f(t,r)}function y(e,t,r,n,i,o){if(e.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){let t=n.nextSegment();if(0!==(0,a.K)(e,t.getEndXY(),0))return m(i,t.getEndXY(),-1,NaN),m(o,t.getEndXY(),-1,NaN),!0}n.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){let e=r.nextSegment();if(0!==(0,a.K)(t,e.getEndXY(),0))return m(i,e.getEndXY(),-1,NaN),m(o,e.getEndXY(),-1,NaN),!0}r.resetToFirstPath()}return!1}function d(e){let t=e.getPathCount(),r=(0,o.c)(e.getSegmentCount(),0),n=0;for(let s=0;s<t;++s){let t=n+e.getSegmentCountPath(s);for(let i=n,a=e.getPathStart(s);i<t;++i,++a)r[i]=a;n=t}return(0,i.s)(e.getPointCount(),r),r}function v(e,t){return!!Number.isNaN(t)||e<=t}function x(e){let t=new i.P;return t.addEnvelope(e,!1),t}class P{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,this.m_maxDistance=Number.isNaN(this.m_maxDistance)?1/0:e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+2**-52,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,r,n){if((e.getGeometryType()!==l.P.type||t.getGeometryType()!==l.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return 1/0;let s=h(new o.P,(0,o.b)(),NaN),i=h(new o.P,(0,o.b)(),NaN),a=this._ExecuteBruteForce(e,t,s,i);return v(a,this.m_maxDistance)?(null!==r&&f(r,s),null!==n&&f(n,i),a):1/0}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let r=!0;if((e.getGeometryType()===l.P.type||e.getGeometryType()===l.E.type)&&(t.getGeometryType()===l.P.type||t.getGeometryType()===l.E.type)&&(r=!1),r){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}let n=h(new o.P,(0,o.b)(),NaN),s=h(new o.P,(0,o.b)(),NaN);return this._ExecuteBruteForce(e,t,n,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,r,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,r,n);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,r,n);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,r,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,r,n);default:return NaN}}distancePointGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,r,n);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,r,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,r,n);default:return NaN}}distancePointPoint(e,t,r,n){let s=e.getXY(),i=t.getXY();return m(r,s,0,0),m(n,i,0,0),Math.sqrt(o.P.sqrDistance(s,i))}distancePointMultipoint(e,t,r,n){let s=e.getXY(),i=this.m_maxSqrDistance,a=i,u=!1,l=t.getPointCount(),c=new o.P;for(let e=0;e<l;++e)if(t.queryXY(e,c),a=o.P.sqrDistance(s,c),this.m_bIsNearCalc){if(a<=i)return 0}else if(!(a>i)&&(!u&&a===i||a<i)&&(i=a,m(r,s,0,0),m(n,c,e,0),u=!0,0===i))return 0;return u?Math.sqrt(i):1/0}distancePointMultipath(e,t,r,n){let i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),l=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,a.K)(t,l,0))return m(r,l,0,0),m(n,l,-1,NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,h=c,f=-1,g=new u.Envelope2D,p=t.querySegmentIterator(),y=!1;for(;p.nextPath();)for(;p.hasNextSegment();){let e=p.nextSegment();e.queryEnvelope(g);let t=g.sqrDistance(l);if(t>c||!this.m_bIsNearCalc&&y&&t===c)continue;f=e.getClosestCoordinate(l,!1);let s=e.getCoord2D(f);if(h=o.P.sqrDistance(l,s),this.m_bIsNearCalc){if(h<=c)return 0}else if(!(h>c)&&(!y||h<c)&&(c=h,m(r,l,0,0),m(n,s,p.getStartPointIndex(),f),y=!0,0===c))return 0}return y?Math.sqrt(c):1/0}distancePointEnvelope(e,t,r,n){let s=e.getXY();m(r,s,0,0),m(n,s,-1,NaN);let i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,n.outPoint))}distanceMultipointGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipoint(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,r,n,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,x(t),r,n);default:return NaN}}distanceMultipointMultipoint(e,t,r,s,i,a){let u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===a){let n=Math.trunc((0,o.a)(Math.sqrt(e.getPointCount())+1,1,(0,o.i)())),i=Math.trunc((0,o.a)(Math.sqrt(t.getPointCount())+1,1,(0,o.i)()));if((n>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,r,s,n,i)<=this.m_maxSqrDistance)return 0}let l=this.m_maxSqrDistance,c=[e],h=[t],f=this.swapGeometriesIfBGtA(c,h);f&&(this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),a=(0,o.s)(i,i=a),p(r,s)),(0,n.mS)(u,(0,o.m)(()=>{p(r,s),this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);let g=c[0].getImpl(),y=h[0].getImpl(),d=g.getPointCount(),v=y.getPointCount(),x=v>1,P=!1,M=new o.P,_=new o.P;for(let e=0;e<d;e+=i){if(g.queryXY(e,M),x){let e=this.m_env2DgeometryB.sqrDistance(M);if(this.m_bIsNearCalc){if(e>l)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(M)<=l)return 0}else if(e>=l)continue}for(let t=0;t<v;t+=a){y.queryXY(t,_);let n=o.P.sqrDistance(M,_);if(this.m_bIsNearCalc){if(n<=l)return 0}else if(!(n>l||P&&n===l)&&(!P||n<l)&&(m(r,M,e,0),m(s,_,t,0),P=!0,l=n,0===l))return P?Math.sqrt(l):1/0}}return P?Math.sqrt(l):1/0}catch(e){u.error=e,u.hasError=!0}finally{(0,n.hk)(u)}}distanceMultipointMultipath(e,t,r,n){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon,l=t.querySegmentIterator();l.stripAttributes();let c=new u.Envelope2D,h=new o.P,f=this.m_maxSqrDistance,g=e.getImpl(),p=g.getPointCount(),y=p>1,d=!1;for(;l.nextPath();)for(;l.hasNextSegment();){let e=l.nextSegment();if(e.queryLooseEnvelope(c),y){let e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f||d&&e===f)continue}for(let s=0;s<p;s++){if(g.queryXY(s,h),i&&0!==(0,a.K)(t,h,0))return m(r,h,-1,NaN),m(n,h,s,0),0;{let e=c.sqrDistance(h);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f)continue}let o=e.getClosestCoordinate(h,!1),u=e.getCoord2D(o);h.subThis(u);let p=h.sqrLength();if(this.m_bIsNearCalc){if(p<=f)return 0}else if(!(p>f)&&(!d||p<f)&&(f=p,m(r,g.getXY(s),s,0),m(n,u,l.getStartPointIndex(),o),d=!0,0===f))return 0}i=!1}return d?Math.sqrt(f):1/0}distanceEnvelopeGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,n,r);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,x(e),n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(x(e),t,r,n);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,r,n);default:return NaN}}distanceEnvelopeEnvelope(e,t,r,n){r.t=NaN,r.index=-1,n.t=NaN,n.index=-1;let s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,r.outPoint,n.outPoint))}distanceMultipathGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipath(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,x(t),r,n);default:return NaN}}distanceMultipathMultipath(e,t,r,s){let a={stack:[],error:void 0,hasError:!1};try{let l=[e],h=[t],m=this.swapGeometriesIfAGtB(l,h);m&&(this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(r,s)),(0,n.mS)(a,(0,o.m)(()=>{p(r,s),this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);let v=l[0],x=h[0],P=v.querySegmentIterator();P.stripAttributes();let M=x.querySegmentIterator();if(M.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){let e=Math.trunc((0,o.a)(Math.sqrt(v.getPointCount())+1,1,(0,o.i)())),t=Math.trunc((0,o.a)(Math.sqrt(v.getPointCount())+1,1,(0,o.i)()));if(this.distanceMultipointMultipoint(v,x,r,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){let e=c(),t=c();if(y(v,x,P,M,e,t))return f(r,e),f(s,t),0}let _=d(v),D=[],w=new i.S,C=new u.Envelope2D,S=new u.Envelope2D,E=new u.Envelope2D,A=this.m_maxSqrDistance,N=!0,b=!1;for(let e=0,t=_.length;e<t;++e){v.querySegment(_[e],w,!0);let t=w.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>A)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=A)return 0;for(;M.nextPath();){if(this.progress_(),N)x.queryPathEnvelope(M.getPathIndex(),E),D[M.getPathIndex()]=E.clone();else if(C.sqrDistanceEnvelope(D[M.getPathIndex()],null,null)>A)continue;for(;M.hasNextSegment();){let n=M.nextSegment();if(n.queryEnvelope(S),C.sqrDistanceEnvelope(S,null,null)<=A){let i=!C.isIntersecting(S),a=[0],o=[0],u=t.distance(n,i,a,o);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<A||u===A&&_[e]<r.index){if(b=!0,g(r,t,_[e],a[0]),g(s,n,M.getStartPointIndex(),o[0]),0===u)return 0;A=u}}}}M.resetToFirstPath(),N=!1}}return b?Math.sqrt(A):1/0}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,o.s)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},9447(e,t,r){r.d(t,{OperatorCentroid2D:()=>s});var n=r(57694);class s{getOperatorType(){return 10205}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,n.c)(e)}}},22994(e,t,r){r.d(t,{OperatorDistance:()=>i});var n=r(55537),s=r(30921);class i{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}execute(e,t,r){return this.executeEx(e,t,r,null,null,NaN)}executeEx(e,t,r,i,a,o){if(e.isEmpty()||t.isEmpty())return NaN;(0,n.t)(e),(0,n.t)(t);let u=e,l=t;Number.isNaN(o)&&(o=1/0);let c=new s.D(o,r).calculate(u,l,i,a);return Number.isFinite(c)?c:NaN}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69540(e,t,r){var n=r(32198),s=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),u=r(64108);const l=Symbol("ClonableMixin"),c=e=>{var t;let r=e,s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,n=t.store,s={},u=new Map;for(let t in r){let a=r[t],o=n?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||7!==o&&0!==o&&5!==o&&4!==o)continue;let c=this[t],h=null;if("function"==typeof l)h=l(c,e);else if("reference"===l)h=c;else if(h=(0,i.TU)(c,e),null!=c&&null==h)continue;0===o?u.set(t,h):s[t]=h}let l=new(0,Object.getPrototypeOf(this).constructor)(s);if(u.size){let e=(0,o.oY)(l)?.store;if(e)for(let[t,r]of u)e.set(t,r,0)}return l}};return s=(0,n.Cg)([(0,u.$)("esri.core.Clonable")],s),s},h=c(s.A);r.d(t,["OU",0,c,"Pw",0,h])},95488(e,t,r){r.d(t,{I:()=>s});var n=r(11406);class s extends n.T{notify(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onInvalidated(),e.onCommitted()}}}},51850(e,t,r){function n(){return[0,0,0]}function s(e){return[e[0],e[1],e[2]]}function i(e,t,r){return[e,t,r]}function a(e,t,r){return[e,t,r]}function o(e,t=[0,0,0]){let r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function u(){return i(1,1,1)}function l(){return i(1,0,0)}function c(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(t,{CN:()=>a,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const m=[0,0,0],f=u(),g=l(),p=c(),y=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:m,clone:s,create:n,freeze:a,fromArray:o,fromValues:i,ones:u,unitX:l,unitY:c,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Cb",0,y,"Cw",0,g,"JP",0,p,"Un",0,f,"uY",0,m])},34304(e,t,r){r.d(t,{DF:()=>u,FD:()=>s,ct:()=>l});let n=1e-6;function s(){return n}const i=Math.random,a=Math.PI/180,o=180/Math.PI;function u(e){return e*a}function l(e){return e*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){n=e},toDegree:l,toRadian:u},Symbol.toStringTag,{value:"Module"})),r.d(t,["Ov",0,i])},35522(e,t,r){r.d(t,{$A:()=>C,Bw:()=>i,C:()=>a,Cc:()=>S,DI:()=>_,Io:()=>v,Ln:()=>d,Om:()=>w,Qr:()=>h,Re:()=>l,S8:()=>D,T9:()=>p,WQ:()=>u,Z0:()=>E,_S:()=>f,aI:()=>I,ei:()=>A,fw:()=>b,gL:()=>N,hG:()=>x,hZ:()=>o,hs:()=>y,jk:()=>g,lw:()=>c,m3:()=>P,oW:()=>q,t2:()=>O,tn:()=>m,ze:()=>M});var n=r(51850),s=r(34304);function i(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function l(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function m(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function p(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function d(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function v(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(r*r+n*n+s*s)}function x(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return r*r+n*n+s*s}function P(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function D(e,t=e){let r=t[0],n=t[1],s=t[2],i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],u=r[2];return e[0]=s*u-i*o,e[1]=i*a-n*u,e[2]=n*o-s*a,e}function S(e,t,r,n){let s=t[0],i=t[1],a=t[2];return e[0]=s+n*(r[0]-s),e[1]=i+n*(r[1]-i),e[2]=a+n*(r[2]-a),e}function E(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=r[0]*n+r[4]*s+r[8]*i+r[12],e[1]=r[1]*n+r[5]*s+r[9]*i+r[13],e[2]=r[2]*n+r[6]*s+r[10]*i+r[14],e}function A(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=n*r[0]+s*r[3]+i*r[6],e[1]=n*r[1]+s*r[4]+i*r[7],e[2]=n*r[2]+s*r[5]+i*r[8],e}function N(e,t,r){return b(e,t,r[0],r[1],r[2],r[3])}function b(e,t,r,n,s,i){let a=t[0],o=t[1],u=t[2],l=n*u-s*o,c=s*a-r*u,h=r*o-n*a,m=n*h-s*c,f=s*l-r*h,g=r*c-n*l,p=2*i;return e[0]=a+l*p+2*m,e[1]=o+c*p+2*f,e[2]=u+h*p+2*g,e}const R=(0,n.vt)(),G=(0,n.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function I(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],u=t[2],l=(0,s.FD)();return Math.abs(r-a)<=l*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))}function q(e,t,r){let n=r[0]-t[0],s=r[1]-t[1],i=r[2]-t[2],a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=s*a,e[2]=i*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const B=l,Z=c,T=h,F=v,Y=x,X=i,L=P;Object.freeze(Object.defineProperty({__proto__:null,abs:m,add:u,angle:function(e,t){D(R,e),D(G,t);let r=w(R,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,s,i){let a=1-i,o=a*a,u=i*i,l=o*a,c=3*i*o,h=3*u*a,m=u*i;return e[0]=t[0]*l+r[0]*c+n[0]*h+s[0]*m,e[1]=t[1]*l+r[1]*c+n[1]*h+s[1]*m,e[2]=t[2]*l+r[2]*c+n[2]*h+s[2]*m,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:C,crossAndNormalize:function(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],u=r[2],l=s*u-i*o,c=i*a-n*u,h=n*o-s*a,m=Math.sqrt(l*l+c*c+h*h);return e[0]=l/m,e[1]=c/m,e[2]=h/m,e},direction:q,dist:F,distance:v,div:T,divide:h,dot:w,equals:I,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,s,i){let a=i*i,o=a*(2*i-3)+1,u=a*(i-2)+i,l=a*(i-1),c=a*(3-2*i);return e[0]=t[0]*o+r[0]*u+n[0]*l+s[0]*c,e[1]=t[1]*o+r[1]*u+n[1]*l+s[1]*c,e[2]=t[2]*o+r[2]*u+n[2]*l+s[2]*c,e},inverse:_,len:X,length:i,lerp:S,max:p,min:g,mul:Z,multiply:c,negate:M,normalize:D,random:function(e,t=1){let r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=i*t,e},rotateX:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:d,scaleTo:function(e,t){return y(e,e,t/X(e))},set:o,sign:f,sqrDist:Y,sqrLen:L,squaredDistance:x,squaredLength:P,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:B,subtract:l,transformMat3:A,transformMat4:E,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:N,transformQuatValues:b},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,X,"jb",0,B,"lo",0,Y,"uE",0,L])},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>i,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=l;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=c;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+h:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return c+e.length*t}const l=32,c=16,h=145},17799(e,t,r){r.d(t,{T9:()=>o,d_:()=>s,gT:()=>i});var n=r(86211);function s(e,t){return{type:(0,n.t$)(t),value:e,unit:t}}function i(e,t){return{type:(0,n.t$)(t),value:e,unit:t}}function a(e,t,r="arithmetic"){return{type:(0,n.t$)(t),value:e,unit:t,rotationType:r}}function o(e,t){return null==e?t:null==t||e.value>(0,n.oU)(t.value,t.unit,e.unit)?e:t}s(0,"meters"),i(0,"square-meters"),a(0,"radians"),a(0,"degrees"),a(0,"degrees","geographic")},87992(e,t,r){r.d(t,{JR:()=>w,ME:()=>M,MY:()=>S,NO:()=>P,Nh:()=>D,V2:()=>R,_s:()=>G,e6:()=>I,gh:()=>_,jm:()=>C,tr:()=>B,uX:()=>p});var n=r(32198),s=r(16930),i=r(19419),a=r(60408),o=r(21325),u=r(513),l=r(50954),c=r(79567),h=r(52006),m=r(49663),f=r(46068),g=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:l,segmentIndices:c,segmentParams:h,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=l,this.segmentIndices=c,this.segmentParams=h,this.segmentCountArc=m,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=R(e,t,r,n,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;let{vertexXY:u,vertexZ:l,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*t),0),o.vertexZ?.set(l.subarray(0,t),0),o.vertexM?.set(c.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=N(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new x(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=N(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}let n=t[r++],s=t[r++],i=t[r++],a=t[r++],o=t[r++],u=t[r++];r++,r++;let l=t[r++],c=t[r++];if(!(4&n)&&1===i)return{c:[this.end,[l,c]]};let h=2&n?0:1,m=1&n?0:1;return{a:[this.end,[o,u],h,m,a,s,i]}}}function P(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,n.mS)(r,new E(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:a,vertexM:o}=e,u=A(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new E(e,["vertexZ","vertexM"]),!1);let s=(0,i.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,c.e)(s,e,r),e=(0,h.yP)(r)}let[a,o,l,m]=s;t={xmin:a,ymin:o,xmax:l,ymax:m,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,a;e=n=1/0,i=a=-1/0;for(let t=0;t<r;++t){let r=s[2*t],o=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,o),a=Math.max(a,o)}t={xmin:e,ymin:n,xmax:i,ymax:a,spatialReference:u}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function M(e){let t,r,n;if((0,a.fT)(e)){n="point";let{x:s,y:i,z:a,m:o}=e,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],t=1}else(0,a.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=R(n,t,n.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,h.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:l,vertexM:c}=s;function m(e){u[2*g]=e[0],u[2*g+1]=e[1],i&&(l[g]=e[2]),o&&(c[g]=e[f]),++g}s.spatialReference=e.spatialReference??void 0;let f=s.hasZ?3:2,g=0;if(!s.isMultipart()){if(!i&&!o){for(let[e,t]of r[0])u[2*g]=e,u[2*g+1]=t,++g;return s}for(let e of r[0])m(e);return s}let p="polygon"===n,{partOffsets:y}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(y[d++]=g,0===e.length)continue;let t=e.length;if(p&&b(e[0],e.at(-1))&&--t,i||o)for(let r=0;r<t;++r)m(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];u[2*g]=t,u[2*g+1]=n,++g}}return y[d]=g,s}function v(e){let t=x+e;if(t<=(s.segmentParams?.length??0))return;let r=t*Z;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let x=0;for(let e of r){if(s.partOffsets[d++]=g,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];m(r);let i=g-1;(0,h.wY)(n)?(v(10),++s.segmentCountArc,x=G(r,n,s,i,x),r=n.a[0]):(0,h.DA)(n)?(v(10),++s.segmentCountArc,x=O(r,n,s,i,x),r=n.a[0]):(0,h.aO)(n)?(v(10),++s.segmentCountArc,x=I(r,n,s,i,x),r=n.c[0]):(0,h.n1)(n)?(v(4),++s.segmentCountBezier,x=B(0,n,s,i,x),r=n.b[0]):r=n}p&&b(t,r)||m(r)}return s.partOffsets[d]=g,s}function _(e){let t=N(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,a=A(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let n=[];for(;o<r;)n.push(t(o++));return{points:n,spatialReference:a,hasZ:s,hasM:i}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),i=e.partOffsets[s+1],a=[];for(;o<i;)a.push(t(o++));n&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:i,spatialReference:a}:{paths:r,hasZ:s,hasM:i,spatialReference:a}}let u=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);u.push(e)}return"polygon"===e.type?{rings:[],curveRings:u,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:s,hasM:i,spatialReference:a}}function D(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){let a=e.includes("point")?0:t.length,o="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);n??=!1,s??=!1;let l=R(e,u,a,n,s,!1,0,0);if(l.spatialReference=i??void 0,!l.isMultipart()){for(let e=0,t=0;e<u;++e)l.vertexXY[2*e]=r[t++],l.vertexXY[2*e+1]=r[t++],n&&(l.vertexZ[e]=r[t++]),s&&(l.vertexM[e]=r[t++]);return l}let c=2+Number(n)+Number(s),h=0,m=0;l.partOffsets[0]=0;for(let e of t){let t=l.partOffsets[m],i=t+e-Number(o);l.partOffsets[++m]=i;for(let e=t;e<i;++e)l.vertexXY[2*e]=r[h++],l.vertexXY[2*e+1]=r[h++],n&&(l.vertexZ[e]=r[h++]),s&&(l.vertexM[e]=r[h++]);o&&(h+=c)}return l}function w({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:a,partFlags:o,hasZ:u,hasM:l}){let c=new g.A([],[],u,l);i=Math.max(i,1);let h=0;for(let e=0;e<i;++e){let i=a?.[e+1]??t,m=c.coords.length;for(let e=h;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),u&&c.coords.push(n[e]),l&&c.coords.push(s[e]);if(o&&1&o[e]){let e=h;c.coords.push(r[2*e],r[2*e+1]),u&&c.coords.push(n[e]),l&&c.coords.push(s[e])}c.lengths.push((c.coords.length-m)/c.stride),h=i}return"point"===e&&(c.lengths.length=0),c}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function S(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class E{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function A({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function N({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,r)=>e===t[r])}function R(e,t,r,n,s,i,a,o){a??=0,o??=0;let u=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),l=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(l+=Float64Array.BYTES_PER_ELEMENT*t),s&&(l+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(l+=t*Int8Array.BYTES_PER_ELEMENT,l+=t*Int32Array.BYTES_PER_ELEMENT,l+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let c=new ArrayBuffer(l),h=0;return u.vertexXY=new Float64Array(c,h,2*t),h+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,h,t),h+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,h,t),u.segmentIndices.fill(T),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,h,r+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,h,r+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function G(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;let[o,[u,l],c,h,m,g,p]=t.a,y=4;h||(y|=1),c||(y|=2);let d=(0,f.SW)(e,t),[v,x]=(0,f.Uk)(d,.5);return s[a++]=y,s[a++]=g,s[a++]=p,s[a++]=m,s[a++]=u,s[a++]=l,s[a++]=d.u2-d.u1,s[a++]=d.u1,s[a++]=v,s[a++]=x,a}function O(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;let o=(0,m.io)(e,t);return q(o,4,...(0,u.mq)(o,.5),s,a)}function I(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){return r[i]=4,n[i]=a,q((0,l.pM)(e,t),0,...t.c[1],s,a)}function q(e,t,r,n,s,i){let{cx:a,cy:o,thetaStart:u,thetaEnd:l,radius:c}=e;return u>l||(t|=1),Math.abs(l-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=l-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function B(e,{b:[t,[r,n],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},l,c){return a[l]=2,o[l]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const Z=1.61803,T=-1},48526(e,t,r){r.d(t,{A:()=>y});var n,s=r(32198),i=r(4576),a=r(4718),o=r(91429),u=r(5443),l=r(91075),c=r(86738),h=r(16930),m=r(90634),f=r(47610),g=r(56993),p=r(43937);let y=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=h.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,m.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new n({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,i.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,g.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new c.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,g.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>g});var n,s=r(32198),i=r(4718),a=r(91429),o=r(5443),u=r(91075),l=r(86738),c=r(16930),h=r(90634),m=r(56993),f=r(43937);let g=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=c.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){let e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,s=this.hasM;return n&&!s?new l.A(r[0],r[1],r[2],void 0,this.spatialReference):s&&!n?new l.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&s?new l.A(r[0],r[1],r[2],r[3],this.spatialReference):new l.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,m.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new l.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,m.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],g.prototype,"writePaths",null),g=n=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},89506(e,t,r){r.d(t,{WP:()=>l}),r(86211);var n=r(86742);let s,i,a,o,u;async function l(){if(!s||!(0,n.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,n.load)()]);s=e.fromGeometry,i=e.fromSpatialReference,a=e.getSpatialReference,o=(0,n.f)(),u=o}}r(85036)},95360(e,t,r){r.r(t),r.d(t,{execute:()=>d,geodeticDistanceExecute:()=>y,geodeticDistanceIsLoaded:()=>m,geodeticDistanceLoad:()=>g,geodeticDistanceSupportsCurves:()=>c,isLoaded:()=>f,load:()=>p,supportsCurves:()=>h});var n=r(86211),s=r(29716),i=r(85036),a=r(5808);let o,u,l,c,h;function m(){return!!o&&(0,s.s)()}function f(){return(0,i.Q)("geodeticDistanceOperator","isLoaded","geodeticDistanceIsLoaded"),m()}async function g(){if(!m()){let[e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)),(0,s.load)()]);o=e.fromGeometry,u=e.fromSpatialReference,l=e.getSpatialReference,c=(0,s.f)(),h=c}}function p(){return(0,i.Q)("geodeticDistanceOperator","load","geodeticDistanceLoad"),g()}function y(e,t,r={}){let{curveType:i="geodesic",unit:c}=r,h=l(e),m=(0,s.execute)(o(e),o(t),u(h),a.O[i]);return m&&c&&(m=(0,n.oU)(m,"meters",c)),m}function d(e,t,r={}){return(0,i.Q)("geodeticDistanceOperator","execute","geodeticDistanceExecute"),y(e,t,r)}},40427(e,t,r){r.d(t,{nG:()=>l}),r(86211);var n=r(35223);let s,i,a,o,u;async function l(){if(!s||!(0,n.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,n.load)()]);s=e.fromGeometry,i=e.fromSpatialReference,a=e.getSpatialReference,o=(0,n.f)(),u=o}}r(85036)},86742(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([Promise.all([r.e(2024),r.e(6558)]).then(()=>r(6558)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticArea,t(n.p)}}function o(e,t,r){return s.execute(e,t,r,null)}function u(){return s.supportsCurves()}},29716(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(2024),r.e(3394)]).then(()=>r(12764)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticDistance,t(n.p)}}function o(e,t,r,n){return s.execute(e,t,r,n,null)}function u(){return s.supportsCurves()}},35223(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([r.e(8879).then(()=>r(28879)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticLength,t(n.p)}}function o(e,t,r){return s.execute(e,t,r,null)}function u(){return s.supportsCurves()}},81150(e,t,r){r.d(t,{execute:()=>a,f:()=>l,isSimpleAsFeature:()=>u,z:()=>o});var n=r(76061),s=(r(55537),r(88885),r(39117));r(95213);const i=new s.J;function a(e,t,r){return i.execute(e,t,r,null)}function o(e,t,r){let s=i.executeMany(new n.S(e),t,r,null);return Array.from(s)}function u(e,t,r){return i.isSimpleAsFeature(e,t,r,null,null)}function l(){return i.supportsCurves()}},85036(e,t,r){r.d(t,{Q:()=>i});var n=r(51447),s=r(53966);function i(e,t,r){(0,n.io)(s.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},5808(e,t,r){r.d(t,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},65806(e,t,r){r.d(t,{g:()=>a});var n=r(51850),s=r(99917),i=r(9762);function a(e,t,r,n){if((0,s.canProjectWithoutEngine)(e.spatialReference,r))return o[0]=e.x,o[1]=e.y,o[2]=e.z??0,(0,i.projectBuffer)(o,e.spatialReference,0,t,r,0);let a=(0,s.tryProject)(e,r,n);return!!a&&(t[0]=a.x,t[1]=a.y,t[2]=a.z??0,!0)}const o=(0,n.vt)()},27993(e,t,r){r.d(t,{F:()=>o});var n=r(99917),s=r(16930),i=r(9762),a=r(65806);function o(e,t,r,s){return!(null==t||null==s||e.length<2)&&((0,n.canProjectWithoutEngine)(t,s)?(0,i.projectBuffer)(e,t,0,r,s,0,1):(u.x=e[0],u.y=e[1],u.z=e[2],u.spatialReference=t,(0,a.g)(u,r,s)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},52006(e,t,r){function n(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function s(e){return"curveRings"in e?e.curveRings:e.curvePaths}function i(e){return"b"in e}function a(e){return"c"in e}function o(e){return Array.isArray(e)}function u(e){return"a"in e}function l(e){return"a"in e&&4===e.a.length}function c(e){return"a"in e&&7===e.a.length}function h(e,t){return s(e).flat().some(e=>function(e,t){return!(o(e)||(i(e)?t.has("cubic-bezier"):a(e)?t.has("circular-arc"):!l(e)&&!c(e)||t.has("elliptic-arc")))}(e,t))}function m(e){return o(e)?e:i(e)?e.b[0]:a(e)?e.c[0]:e.a[0]}function f(e){if(i(e)){let[t,r,n]=e.b;return{b:[[...t],[...r],[...n]]}}if(a(e)){let[t,r]=e.c;return{c:[[...t],[...r]]}}if(o(e))return[...e];if(l(e)){let[t,r,n,s]=e.a;return{a:[[...t],[...r],n,s]}}if(c(e)){let[t,r,n,s,i,a,o]=e.a;return{a:[[...t],[...r],n,s,i,a,o]}}return e}r.d(t,{DA:()=>l,Ed:()=>n,FD:()=>s,FG:()=>u,V8:()=>h,Xq:()=>o,aO:()=>a,n1:()=>i,tk:()=>f,wY:()=>c,yP:()=>m}),r(4576)},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?i(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>l,Bi:()=>o,Pv:()=>c,Rg:()=>a,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>i,uW:()=>u})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let i=r-e,a=n-t;return new s([5],[e,t,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],i=this.coords[n*t+1];for(let a=1;a<r;a+=1){let r=n*(t+a),o=this.coords[r],u=this.coords[r+1];e+=-.5*(o-s)*(u+i),s=o,i=u}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return e?(e.set(i),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(i),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}},32728(e,t,r){r.d(t,{YH:()=>a,nu:()=>o,wp:()=>i}),r(34727);var n=r(35522),s=r(51850);function i(e,t){let r=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),s=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),i=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,n.hZ)(e,r,s,i),e}function a(e,t,r){r||=e;let s=(0,n.Om)(e,t);(0,n.hZ)(r,e[0]-s*t[0],e[1]-s*t[1],e[2]-s*t[2]),(0,n.S8)(r,r)}function o(e,t,r,i=(0,s.vt)()){let a=(0,n.Bw)(e),o=(0,n.Bw)(t),c=(0,n.Om)(e,t)/(a*o);if(c<.9999999999999999){let s=Math.acos(c),h=((1-r)*a+r*o)/Math.sin(s),m=h/a*Math.sin((1-r)*s),f=h/o*Math.sin(r*s);return(0,n.hs)(u,e,m),(0,n.hs)(l,t,f),(0,n.WQ)(i,u,l)}return(0,n.Cc)(i,e,t,r)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const u=(0,s.vt)(),l=(0,s.vt)()},80188(e,t,r){r.r(t),r.d(t,{area2D:()=>Y,areaHorizontal:()=>W,autoArea2D:()=>k,autoDistance2DBetweenPoints:()=>V,autoLength2D:()=>z,autoSize2D:()=>j,distance2DBetweenPoints:()=>L,geodeticArea:()=>q,geodeticDistanceBetweenPoints:()=>T,geodeticDistanceBetweenPointsMany:()=>F,geodeticLength:()=>Z,length2D:()=>X,preloadGeodetic:()=>B,simplify:()=>K});var n=r(14690),s=r(95213),i=r(17799),a=r(86211),o=r(35522),u=r(51850),l=r(73941),c=r(87992),h=r(39829),m=r(99917),f=r(16930),g=r(98764),p=r(89506),y=r(95360),d=r(40427),v=r(21325);function x(e,t,r){let n=e.calculateArea2D();if(n&&r&&t){if((0,v.EA)(t))throw Error("Unable to convert from an angular area unit to a linear area unit.");let e=(0,a.B5)(t);e!==r&&(e?n=(0,a.oU)(n,e,r):(n*=(0,a.GA)(t)**2,n=(0,a.oU)(n,"square-meters",r)))}return n}const P=new(r(9447).OperatorCentroid2D);function M(e){return P.execute(e,null)}const _=new(r(22994).OperatorDistance);function D(e,t,r,n){let s=_.execute(e,t,null);return s&&n&&r&&(s=(0,a.PQ)(s,r,n)),s}var w=r(86742),C=r(29716),S=r(35223),E=r(81150),A=r(5808),N=r(83299),b=r(27993);function R(e,t,r,n,s){(0,o.C)(G,e),(0,o.WQ)(O,e,t),(0,b.F)(G,r,G,s),(0,b.F)(O,r,O,s),(0,o.Re)(n,O,G),(0,o.S8)(n,n)}const G=(0,u.vt)(),O=(0,u.vt)();var I=r(32728);async function q({flatGeometry:e,options:t}){return e=new c.uX({...e}),he(await U(e,t))}function B(){(0,p.WP)(),(0,d.nG)(),(0,y.geodeticDistanceLoad)()}async function Z({flatGeometry:e,options:t}){return e=new c.uX({...e}),he(await Q(e,t))}async function T({geometry1JSON:e,geometry2JSON:t,options:r}){return he(await H({geometry1JSON:e,geometry2JSON:t,options:r}))}async function F({flatGeometry1:e,flatGeometry2:t,options:r}){return e=new c.uX({...e}),t=new c.uX({...t}),he(await async function(e,t,r){await(0,C.load)();let a=(0,n.constructFromFlatGeometry)(e),o=(0,n.constructFromFlatGeometry)(t);if(a.getPointCount()!==o.getPointCount())throw Error("Input multipoints must have the same number of points.");let u=r?.unit??"meters",l=oe(e),c=A.O[r?.curveType??"geodesic"],h=new s.P,m=new s.P,f=[];for(let e=0;e<a.getPointCount();e++){a.getPointByVal(e,h),o.getPointByVal(e,m);let t=(0,C.execute)(h,m,l,c);f.push((0,i.d_)(ue(t,u),u))}return f}(e,t,r))}async function Y({flatGeometry:e,options:t}){return he(ee(e=new c.uX({...e}),t))}async function X({flatGeometry:e,options:t}){return he(te(e=new c.uX({...e}),t))}async function L({geometry1JSON:e,geometry2JSON:t,options:r}){return he(re({geometry1JSON:e,geometry2JSON:t,options:r}))}async function k(e){return e.flatGeometry=new c.uX({...e.flatGeometry}),he(await J(e.flatGeometry.spatialReference,U,ee)(e.flatGeometry,e.options))}async function z(e){return e.flatGeometry=new c.uX({...e.flatGeometry}),he(await J(e.flatGeometry.spatialReference,Q,te)(e.flatGeometry,e.options))}async function V(e){return he(await J(e.geometry1JSON.spatialReference,H,re)(e))}async function j(e){let t=J(e.topLeftJSON.spatialReference,H,re),{topLeftJSON:r,topRightJSON:n,bottomRightJSON:s,bottomLeftJSON:a,options:o}=e,[u,l,c,h]=await Promise.all([t({geometry1JSON:a,geometry2JSON:s,options:o}),t({geometry1JSON:r,geometry2JSON:n,options:o}),t({geometry1JSON:s,geometry2JSON:n,options:o}),t({geometry1JSON:a,geometry2JSON:r,options:o})]);return he({width:(0,i.T9)(u,l),height:(0,i.T9)(h,c)})}function J(e,t,r){switch(function(e){return(0,v.EA)(e)||(0,v.K8)(e)?0:1}(e)){case 0:return t;case 1:return r}}async function W(e){return e.flatGeometry=new c.uX({...e.flatGeometry}),he(function({flatGeometry:e,options:t}){let r=function(e){return e?(0,l.B3)(e)?(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e)||(0,l.jA)(e)||(0,v.aI)(e,g.Y0)?{mode:1,spatialReference:g.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,g.lO)(e)}:null}(e.spatialReference);if(!r)throw Error("Cannot compute horizontal area without a valid spatial reference.");switch(r.mode){case 0:return ee(e,t);case 1:return function(e,t,r){let n;if((0,v.aI)(t.spatialReference,e.spatialReference))n=t.clone();else{let r=h.A.fromJSON((0,c.gh)(t)),s=(0,m.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!s)throw Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);n=(0,c.ME)(s)}let s=ge,i=me,a=fe;!function(e,t,r,n){let{vertexCount:s,vertexXY:i,vertexZ:a,spatialReference:u}=e;(0,o.hZ)(t,0,0,0);for(let e=0,r=0;e<s;++e)t[0]+=i[r++],t[1]+=i[r++],t[2]+=a[e];(0,o.hs)(t,t,1/s);let l=ye;(0,o.S8)(l,t);let c=de,h=Math.atan2(l[1],l[0]);(0,o.hZ)(c,-Math.sin(h),Math.cos(h),0),(0,v.aI)(u,g.Y0)&&(R(t,l,g.GD,l,u),R(t,c,g.GD,c,u)),(0,I.YH)(c,l,r),(0,o.$A)(n,r,l);let m=pe;for(let e=0,u=0;e<s;++e)(0,o.hZ)(m,i[u],i[u+1],a[e]),(0,o.Re)(m,m,t),i[u++]=(0,o.Om)(r,m),i[u++]=(0,o.Om)(n,m);e.vertexZ=void 0,e.spatialReference=f.A.WebMercator}(n,s,i,a);let{area:u,centroid:l,length:p}=ee(n,r);return{area:u,centroid:ae(l,s,i,a,e.spatialReference,t.spatialReference??f.A.WGS84),length:p}}(r,e,t)}}(e))}async function K({flatGeometry:e}){return he(se(new c.uX({...e})))}async function U(e,t){await Promise.allSettled([(0,w.load)(),t?.returnLength?(0,S.load)():void 0]);let r=t?.unit??"square-meters",s=t?.lengthUnit??(0,a.Bd)(r),o=A.O[t?.curveType??"geodesic"],{geometry:u,spatialReference:l}=function(e){let t=oe(e),r=(0,n.constructFromFlatGeometry)(e);return{geometry:ie((0,E.execute)(r,t,!1))??r,spatialReference:t}}(e),c=(0,w.execute)(u,l,o);return{area:(0,i.gT)((0,a.oU)(c,"square-meters",r),r),centroid:t?.returnCentroid?ne(u,e.spatialReference):void 0,length:t?.returnLength?$(u,l,{...t,unit:s}):void 0}}async function Q(e,t){return await(0,S.load)(),$((0,n.constructFromFlatGeometry)(e),oe(e),t)}function $(e,t,r){let n=r?.unit??"meters",s=A.O[r?.curveType??"geodesic"],a=(0,S.execute)(e,t,s);return(0,i.d_)(ue(a,n),n)}async function H({geometry1JSON:e,geometry2JSON:t,options:r}){await(0,C.load)();let n=r?.unit??"meters",s=(0,C.execute)(ce(e),ce(t),oe(e),A.O[r?.curveType??"geodesic"]);return(0,i.d_)(ue(s,n),n)}function ee(e,t){let r=t?.unit??"square-meters",s=t?.lengthUnit??(0,a.Bd)(r),o=se(e)??e,u=(0,n.constructFromFlatGeometry)(o);return{area:(0,i.gT)(x(u,o.spatialReference,r),r),centroid:t?.returnCentroid?le(M(u),o.spatialReference):void 0,length:t?.returnLength?te(o,{unit:s}):void 0}}function te(e,t){let r=t?.unit??"meters";return(0,i.d_)(function(e,t,r){let n=e.calculateLength2D();return n&&r&&t&&(n=(0,a.PQ)(n,t,r)),n}((0,n.constructFromFlatGeometry)(e),e.spatialReference,r),r)}function re({geometry1JSON:e,geometry2JSON:t,options:r}){let n=r?.unit??"meters";return(0,i.d_)(D(ce(e),ce(t),e.spatialReference,n),n)}function ne(e,t){return le(M(e),t)}function se(e){let t=ie((0,E.execute)((0,n.constructFromFlatGeometry)(e),(0,N.fromSpatialReference)(e.spatialReference),!1));return t?function(e,t,r){switch(r){case"point":case"multipoint":case"polyline":case"polygon":return(0,c.MY)(e,t)}}(t,e.spatialReference,e.type):null}function ie(e){return null==e||e.isEmpty()?null:e}function ae(e,t,r,n,s,i){if(!e)return e;(0,o.hs)(r,r,e.x),(0,o.hs)(n,n,e.y);let a=pe;return(0,o.WQ)(a,r,n),(0,o.WQ)(a,a,t),e.x=a[0],e.y=a[1],e.z=a[2],e.spatialReference=s,(0,m.projectWithoutEngine)(e,e.spatialReference,i)?.toJSON()??void 0}function oe(e){let t=(0,N.fromSpatialReference)(e.spatialReference);if(!t)throw Error("Cannot compute measurements without a valid spatial reference.");return t}function ue(e,t){return"meters"===t?e:(0,a.oU)(e,"meters",t)}function le(e,t){return{x:e.x,y:e.y,spatialReference:t}}function ce(e){let t=new s.P;return t.setXYCoords(e.x,e.y),null!=e.z&&t.setZ(e.z),null!=e.m&&t.setM(e.m),t}function he(e,...t){let r=(0,c.jm)(...t);return r.length?{result:e,transferList:r}:{result:e}}const me=(0,u.vt)(),fe=(0,u.vt)(),ge=(0,u.vt)(),pe=(0,u.vt)(),ye=(0,u.vt)(),de=(0,u.vt)()}}]);
|