@arcgis/core 4.33.0-next.20250512 → 4.33.0-next.20250514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/functions/centroid.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/geometry/operators.js +1 -1
- package/arcade/geometry/operatorsWorker.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
- package/assets/components/assets/combobox/t9n/messages.json +1 -1
- package/assets/components/assets/icon/calendarHeatChart16.json +1 -0
- package/assets/components/assets/icon/calendarHeatChart24.json +1 -0
- package/assets/components/assets/icon/calendarHeatChart32.json +1 -0
- package/assets/components/assets/icon/matrixHeatChart16.json +1 -0
- package/assets/components/assets/icon/matrixHeatChart24.json +1 -0
- package/assets/components/assets/icon/matrixHeatChart32.json +1 -0
- package/assets/components/assets/icon/progressBarChart16.json +1 -0
- package/assets/components/assets/icon/progressBarChart24.json +1 -0
- package/assets/components/assets/icon/progressBarChart32.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualization16.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualization24.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualization32.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOpen16.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOpen24.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOpen32.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlined16F.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlined24F.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlined32F.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked16.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked24.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedColorLocked32.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen16.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen24.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpen32.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked16.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked24.json +1 -0
- package/assets/components/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0766ecb677d667e5fb83.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{4deeeceb784e4390441d.js → 0a4cece5e96fb7e8a57b.js} +1 -1
- package/assets/esri/core/workers/chunks/12e99071f6582f6caeaf.js +1 -0
- package/assets/esri/core/workers/chunks/191a45a594ecaf7f1abb.js +1 -0
- package/assets/esri/core/workers/chunks/1991f0d0f0a12175f849.js +1 -0
- package/assets/esri/core/workers/chunks/218a66d53f7cf4f285aa.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{07695960aa0344dbfbf3.js → 28d9e2ffc3059a55311e.js} +1 -1
- package/assets/esri/core/workers/chunks/{a5e746e10239a3bfe237.js → 30f3014c0ac6e2bc14bf.js} +1 -1
- package/assets/esri/core/workers/chunks/3596540ef49e5330ceb2.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/4899cdc8bb5085c356f9.js +1 -0
- package/assets/esri/core/workers/chunks/498886c321a2501658bc.js +1 -0
- package/assets/esri/core/workers/chunks/56569d0c2cf5c5167651.js +1 -0
- package/assets/esri/core/workers/chunks/{ba3193ea145960a50e87.js → 5c8d52b72a3bea4202ac.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbcd94f60f92257a7303.js → 6394ab6f629aa90292e6.js} +2 -2
- package/assets/esri/core/workers/chunks/{fbcd94f60f92257a7303.js.LICENSE.txt → 6394ab6f629aa90292e6.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{8b74b609de4f70e1a75c.js → 64af433e88d4dd21a2ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b01e3bce78541620a86.js → 6cbe8205a4e0f62da519.js} +1 -1
- package/assets/esri/core/workers/chunks/6e64ce0958c3432004b6.js +346 -0
- package/assets/esri/core/workers/chunks/6e8c6c9112ecb867b7be.js +1 -0
- package/assets/esri/core/workers/chunks/{a8430e1e2142f1ce9b92.js → 82c395d8649096609a8a.js} +1 -1
- package/assets/esri/core/workers/chunks/{a73c6b4bc5baf440f85a.js → 88b7265270feede80e1d.js} +1 -1
- package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/8c21cc9af4ce9652cc5c.js +1 -0
- package/assets/esri/core/workers/chunks/{243dc74ec62891ba1ef7.js → 8e82acd1f730571680f4.js} +1 -1
- package/assets/esri/core/workers/chunks/90ae15ce22a49bd84876.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/a09b5700c92bb76c3234.js +1 -0
- package/assets/esri/core/workers/chunks/b06cb23048c32940f5de.js +1 -0
- package/assets/esri/core/workers/chunks/{079434fe765c53d304f2.js → b1e275607d9754079f60.js} +1 -1
- package/assets/esri/core/workers/chunks/b4f38fe9cc948a39ad87.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{3c45603af279ad7fed8c.js → b8b5dfd2d73a8410fba2.js} +1 -1
- package/assets/esri/core/workers/chunks/c604fefedccfd4db9953.js +1 -0
- package/assets/esri/core/workers/chunks/{0aca29f7156b2b412f2e.js → d1f7bfb8daf11ecada9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{b816b608f31954128246.js → d21d9e8b8c8a2e0485d5.js} +1 -1
- package/assets/esri/core/workers/chunks/da3c62a851a4332f6dda.js +1 -0
- package/assets/esri/core/workers/chunks/{a8b42d8c0b76c234c09f.js → e0247252c6a0f3340e33.js} +81 -82
- package/assets/esri/core/workers/chunks/e0dc8794343c2a949ffb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/e5608e5232e983531f72.js +1 -0
- package/assets/esri/core/workers/chunks/f8fb0c7eaf73709bd855.js +1 -0
- package/assets/esri/core/workers/chunks/fd24dd602a3fed88d90e.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BuildingPhasePicker.scss +17 -10
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +4 -0
- package/assets/esri/themes/base/widgets/_SelectionList.scss +7 -3
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorDefinitions.js +5 -0
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +5 -5
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/chunks/arcade.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/core/Accessor.js +1 -1
- package/core/accessorSupport/Lifecycle.js +5 -0
- package/core/accessorSupport/Properties.js +1 -1
- package/core/accessorSupport/decorators/subclass.js +1 -1
- package/core/accessorSupport/tracking/Flags.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/urlUtils.js +1 -1
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorSimplifyOGC.js +1 -1
- package/geometry/operators/simplifyOGCOperator.js +1 -1
- package/interfaces.d.ts +368 -2450
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/KnowledgeGraphLayer.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/knowledgeGraph/supportUtils.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +3 -4
- package/smartMapping/statistics/uniqueValues.js +1 -1
- package/smartMapping/support/adapters/support/layerUtils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectRadial.js +1 -1
- package/versionManagement/versionAdapters/FeatureLayerVersionAdapter.js +1 -1
- package/versionManagement/versionAdapters/NetworkVersionAdapter.js +1 -1
- package/versionManagement/versionAdapters/SubTypeGroupLayerVersionAdapter.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VideoLayerView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/FocusAreasView.js +5 -0
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/SliceAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWasm.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/FeatureProcessingContext.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/layers/graphics/pipeline/TileLocks.js +5 -0
- package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureData/FeatureDataSubset.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/i3s/I3SQueryResultGeometry.js +1 -1
- package/views/3d/layers/i3s/meshUtils.js +5 -0
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/terrain/TileTexture.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -27
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js +29 -0
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/analysisViewUtils.js +1 -1
- package/views/layers/BuildingComponentSublayerView.js +1 -1
- package/views/layers/BuildingSceneLayerView.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureTable/AttachmentsColumn.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Slice.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/VideoPlayer/components/SettingsButton.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/009dbddfc6499e2cee4f.js +0 -1
- package/assets/esri/core/workers/chunks/1b8cc83aa1179245b2dc.js +0 -1
- package/assets/esri/core/workers/chunks/26ebb7816dd8c8cd4f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2abce00d812c7f6b542d.js +0 -1
- package/assets/esri/core/workers/chunks/47cd99ab3ed11a931084.js +0 -1
- package/assets/esri/core/workers/chunks/51d9eaeeb781fd1d1162.js +0 -1
- package/assets/esri/core/workers/chunks/5228fc7fcdf57f44781e.js +0 -1
- package/assets/esri/core/workers/chunks/83d6a1b3db7d364d156b.js +0 -1
- package/assets/esri/core/workers/chunks/83e13baab4b90a88d967.js +0 -1
- package/assets/esri/core/workers/chunks/92cbe9af8a6c061bfb57.js +0 -346
- package/assets/esri/core/workers/chunks/93cc26e5636040fdc0b8.js +0 -1
- package/assets/esri/core/workers/chunks/c17c269cc30e7e1d0bfb.js +0 -1
- package/assets/esri/core/workers/chunks/c3f144ca69995dca34a9.js +0 -1
- package/assets/esri/core/workers/chunks/d551f70560a2b1ef5696.js +0 -1
- package/core/accessorSupport/interfaces.js +0 -5
- package/views/3d/layers/graphics/pipeline/TileActionSynchronizer.js +0 -5
- package/views/FocusAreasView.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5122],{3694:(t,e,r)=>{r.d(e,{A:()=>a});var n,o=r(4576),i=r(21818);!function(t){const e=(t,e,r,n)=>{let o=e,i=e;const s=r>>>1,a=t[o-1];for(;i<=s;){i=o<<1,i<r&&n(t[i-1],t[i])<0&&++i;const e=t[i-1];if(n(e,a)<=0)break;t[o-1]=e,o=i}t[o-1]=a},r=(t,e)=>t<e?-1:t>e?1:0;t.sort=function(t,n,o,i){void 0===n&&(n=0),void 0===o&&(o=t.length),void 0===i&&(i=r);for(let r=o>>>1;r>n;r--)e(t,r,o,i);const s=n+1;for(let r=o-1;r>n;r--){const o=t[n];t[n]=t[r],t[r]=o,e(t,s,r,i)}},t.iterableSort=function*(t,n,o,i){void 0===n&&(n=0),void 0===o&&(o=t.length),void 0===i&&(i=r);for(let r=o>>>1;r>n;r--)e(t,r,o,i),yield;const s=n+1;for(let r=o-1;r>n;r--){const o=t[n];t[n]=t[r],t[r]=o,e(t,s,r,i),yield}}}(n||(n={}));const s=n;class a{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new o.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];t(n)&&e.push(n)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,o.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){s.sort(this.data,0,this.length,t)}iterableSort(t){return s.iterableSort(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:n}=this;for(let o=0;o<n;++o)if(t.call(e,r[o]))return r[o]}filterInPlace(t,e){let r=0;for(let n=0;n<this._length;++n){const o=this.data[n];t.call(e,o,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=o,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:n}=this;for(let o=0;o<n;++o)t.call(e,r[o],o,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=t.call(e,this.data[n],n,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let n=0;n<e;++n)if(r[n]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},15903:(t,e,r)=>{function n(t){return!!t&&t.prototype?.declaredClass&&0===t.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(e,{P:()=>n})},26390:(t,e,r)=>{r.d(e,{d:()=>o});const n=[];function o(t){n.push(t),1===n.length&&queueMicrotask((()=>{const t=n.slice();n.length=0;for(const e of t)e()}))}},40608:(t,e,r)=>{r.d(e,{$:()=>f}),r(44208);var n=r(53966),o=r(56454),i=r(85537),s=r(96156),a=r(62788),c=r(51822);const l=new Set,u=new Set;function f(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,p(e);const r=[],n=[];let a=e.prototype;for(;a;)a.hasOwnProperty("initialize")&&!l.has(a.initialize)&&(l.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!u.has(a.destroy)&&(u.add(a.destroy),n.push(a.destroy)),a=Object.getPrototypeOf(a);l.clear(),u.clear();const c=class extends e{constructor(...t){if(super(...t),this.constructor===c&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let t=r.length-1;t>=0;t--)r[t].call(this)}}),n.length){let t=!1;const e=this[o.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!t){this.__accessor__.lifecycle=i.v.DESTROYING,t=!0,e.call(this);for(let t=0;t<n.length;t++)n[t].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};c.__accessorMetadata__=(0,s.tD)(e.prototype),c.prototype.declaredClass=t;const f=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(c,"name",{value:f,configurable:!0}),c}}function h(t,e){return null==e.get?function(){const e=this.__accessor__,r=e.propertiesByName.get(t);if(void 0===r)return;e.mutable&&(0,a.gc)(r);const n=e.store;return n.has(t)?n.get(t):r.metadata.value}:function(){const e=this.__accessor__,r=e.propertiesByName.get(t);if(void 0!==r)return r.getComputed(e)}}function p(t){const e=t.prototype,r=(0,s.tD)(e),n={};for(const t of Object.getOwnPropertyNames(r)){const e=r[t];(0,c.qk)(e),n[t]={enumerable:!0,configurable:!0,get:h(t,e),set(r){const n=this.__accessor__;if(void 0!==n){if(n.mutable)return n.initialized&&e.readOnly?d("read-only",t):n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?d("construct-only",t):void n.set(t,r)}else Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(t.prototype,n)}const d=(t,e)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}},47328:(t,e,r)=>{r.d(e,{i:()=>n});const n={Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}},51822:(t,e,r)=>{r.d(e,{xF:()=>u,N5:()=>f,k4:()=>h,qk:()=>v});var n=r(56507),o=r(90360);function i(t){if(t.json||(t.json={}),a(t.json),c(t.json),s(t.json),t.json.origins)for(const e in t.json.origins)a(t.json.origins[e]),c(t.json.origins[e]),s(t.json.origins[e]);return!0}function s(t){t.name&&(t.read&&"object"==typeof t.read?void 0===t.read.source&&(t.read.source=t.name):t.read={source:t.name},t.write&&"object"==typeof t.write?void 0===t.write.target&&(t.write.target=t.name):t.write={target:t.name})}function a(t){"boolean"==typeof t.read?t.read={enabled:t.read}:"function"==typeof t.read?t.read={enabled:!0,reader:t.read}:t.read&&"object"==typeof t.read&&void 0===t.read.enabled&&(t.read.enabled=!0)}function c(t){"boolean"==typeof t.write?t.write={enabled:t.write}:"function"==typeof t.write?t.write={enabled:!0,writer:t.write}:t.write&&"object"==typeof t.write&&void 0===t.write.enabled&&(t.write.enabled=!0)}var l=r(67124);function u(t,e){return p(t,"any",e?.origin)}function f(t,e){return p(t,"read",e?.origin)}function h(t,e){return p(t,"write",e?.origin)}function p(t,e,r){let n=t?.json;if(n?.origins&&r){let t;t="link-chart"===r?n.origins[r]&&("any"===e||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],t&&("any"===e||e in t)&&(n=t)}return n}function d(t){return t.type?y(t):g(t)}function y(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!(0,n.EK)(r);)r=r[0],e++;return{type:r,ndimArray:e}}function g(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function v(t){i(t)&&(function(t){if(t.json&&t.json.origins){const e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(const t in r)if(e[t]){const n=e[t];r[t].forEach((t=>{e[t]=n})),delete e[t]}}}(t),function(t){const e=function(t){return t.json.types?g(t.json):t.type?y(t):g(t)}(t);if(t.json.origins)for(const r in t.json.origins){const n=t.json.origins[r],i=n.types?d(n):e;(0,o.v)(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),(0,l.v)(i,n)}(0,o.v)(e,t.json,!0),(0,l.v)(e,t.json)}(t))}},56454:(t,e,r)=>{r.d(e,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},56507:(t,e,r)=>{r.d(e,{EK:()=>T,GB:()=>l,GX:()=>c,MB:()=>E,Nd:()=>x,PZ:()=>_,Qp:()=>h,Uv:()=>P,Vr:()=>u,Zu:()=>C,_e:()=>S,aq:()=>N,dp:()=>w,e6:()=>O,eC:()=>j,gK:()=>$,jz:()=>M,wB:()=>A}),r(44208);var n=r(53966),o=r(91869);const i=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function s(t){return null==t?t:new Date(t)}function a(t){return null==t?t:!!t}function c(t){return null==t?t:t.toString()}function l(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function f(t){return null}function h(t,e){return r=>{let n=t(r);return null!=e.step&&(n=Math.round(n/e.step)*e.step),null!=e.min&&(n=Math.max(e.min,n)),null!=e.max&&(n=Math.min(e.max,n)),n}}function p(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function d(t,e){return null!=e&&t&&!(e instanceof t)}function y(t){return t&&"isCollection"in t}function g(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function v(t,e){return!!p(e)&&(i().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+b(t)+"'"),!0)}function _(t,e){return null==e?e:y(t)?function(t,e){if(!e?.constructor||!y(e.constructor))return v(t,e)?e:new t(e);const r=g(t.prototype.itemType),n=g(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(v(t,e),e):new t(e):e}(t,e):d(t,e)?v(t,e)?e:new t(e):e}function b(t){return t?.prototype?.declaredClass||"unknown"}const m=new WeakMap;function w(t,e){const r=function(t){switch(t){case Number:return t=>l(t);case M:return u;case Boolean:return a;case String:return c;case Date:return s;case P:return f;default:return(0,o.tE)(m,t,(()=>_.bind(null,t)))}}(t);return 1===arguments.length?r:r(e)}function A(t,e,r){return 1===arguments.length?A.bind(null,t):e?Array.isArray(e)?e.map((e=>t(e,r))):[t(e,r)]:e}function j(t,e){return 1===arguments.length?A((e=>w(t,e))):A((e=>w(t,e)),e)}function k(t,e,r){return 0!==e&&Array.isArray(r)?r.map((r=>k(t,e-1,r))):t(r)}function S(t,e,r){if(2===arguments.length)return r=>S(t,e,r);if(!r)return r;r=k(t,e,r);let n=e,o=r;for(;n>0&&Array.isArray(o);)n--,o=o[0];if(void 0!==o)for(let t=0;t<n;t++)r=[r];return r}function O(t,e,r){return 2===arguments.length?S((e=>w(t,e)),e):S((e=>w(t,e)),e,r)}function T(t){return!!Array.isArray(t)&&!t.some((e=>{const r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)}))}function E(t,e){if(2===arguments.length)return E(t).call(null,e);const r=new Set,n=t.filter((t=>"function"!=typeof t)),o=t.filter((t=>"function"==typeof t));for(const e of t)"string"!=typeof e&&"number"!=typeof e||r.add(e);let s=null,a=null;return(t,e)=>{if(null==t)return t;const c=typeof t,l="string"===c||"number"===c;return l&&(r.has(t)||o.some((t=>"string"===c&&t===String||"number"===c&&t===Number)))||"object"===c&&o.some((e=>!d(t,e)))?t:(l&&n.length?(s||(s=n.map((t=>"string"==typeof t?`'${t}'`:`${t}`)).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${s}`)):"object"==typeof t&&o.length?(a||(a=o.map((t=>b(t))).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${a}`)):i().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function N(t,e){if(2===arguments.length)return N(t).call(null,e);const r={},n=[],o=[];for(const e in t.typeMap){const i=t.typeMap[e];r[e]=w(i),n.push(b(i)),o.push(e)}const s=()=>`'${n.join("', '")}'`,a=()=>`'${o.join("', '")}'`,c="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!d(t.base,e))return e;if(null==e)return e;const n=c(e)||t.defaultKeyValue,o=r[n];if(!o)return i().error("Accessor#set",`Invalid property value, value needs to be one of ${s()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!d(t.typeMap[n],e))return e;if("string"==typeof t.key&&!p(e)){const r={};for(const n in e)n!==t.key&&(r[n]=e[n]);return o(r)}return o(e)}}class M{}class P{}const $={native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})};function C(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function x(t){switch(t.type){case"native":return w(t.value);case"array":return A(x(t.value));case"one-of":return function(t){let e=null;return(r,n)=>D(r,t)?r:(null==e&&(e=z(t)),i().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}(t);default:return null}}function z(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case M:return"integer";case Date:return"date";case P:return"null";default:return b(t.value)}case"array":return`array of ${z(t.value)}`;case"one-of":{const e=t.values.map((t=>z(t)));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function D(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case M:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case P:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some((t=>!D(t,e.value)));case"one-of":return e.values.some((e=>D(t,e)))}}},62788:(t,e,r)=>{r.d(e,{F_:()=>p,Xr:()=>b,a:()=>h,fE:()=>v,gc:()=>l}),r(44208);var n=r(53966),o=r(88620),i=r(47328);const s=new(r(67867).R),a=[];let c=s;function l(t){c.onAccessed(t)}let u=!1,f=!1;function h(t,e,r){if(u)return d(t,e,r);let n=null;return y(t),n=e.call(r),g(),n}function p(t,e){return h(s,t,e)}function d(t,e,r){const o=u;u=!0,y(t);let i=null;try{i=e.call(r)}catch(t){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),u=o,i}function y(t){c=t,a.push(t)}function g(){const t=a.length;if(t>1){const e=a.pop();c=a[t-2],e.onTrackingEnd()}else if(1===t){const t=a.pop();c=s,t.onTrackingEnd()}else c=s}function v(t,e){if(e.flags&i.i.DepTrackingInitialized)return;e.flags|=i.i.DepTrackingInitialized;const r=f;f=!1,e.flags&i.i.AutoTracked?d(e.trackingTarget,e.metadata.get,t):b(t,e),f=r}const _=[];function b(t,e){e.flags&i.i.ExplicitlyTracking||(e.flags|=i.i.ExplicitlyTracking,d(e.trackingTarget,(()=>{const r=e.metadata.dependsOn||_;for(const e of r)if("string"!=typeof e||e.includes(".")){const r=(0,o.AH)(e);for(let e=0,n=t;e<r.length&&null!=n&&"object"==typeof n;++e)n=m(n,r[e],e!==r.length-1)}else m(t,e,!1)})),e.flags&=~i.i.ExplicitlyTracking)}function m(t,e,r){const n="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const i=(0,o.oY)(t);if(i){const e=i.propertiesByName.get(n);e&&(l(e),v(t,e))}return r?t[n]:void 0}},67076:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(79907);class o extends n.A{constructor(t,e,r){super(t,e,r)}}o.prototype.type="warning"},67124:(t,e,r)=>{r.d(e,{B:()=>f,v:()=>a});var n=r(49186),o=r(53966),i=r(93637),s=r(15903);function a(t,e){if(!e.write||e.write.writer||!1===e.write.enabled&&!e.write.overridePolicy)return;const r=t?.ndimArray??0;t&&(1===r||"type"in t&&(0,s.P)(t.type))?e.write.writer=h:r>1?e.write.writer=function(t){return(e,r,n,o)=>{let s;if(null===e)s=null;else{s=p(e,o,t);let r=t,n=s;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let t=0;t<r;t++)s=[s]}(0,i.sM)(n,s,r)}}(r):e.types?Array.isArray(e.types)?e.write.writer=function(t){return(e,r,n,o)=>e&&Array.isArray(e)?l(e.filter((e=>c(e,t,o))),r,n,o):l(e,r,n,o)}(e.types[0]):e.write.writer=function(t){return(e,r,n,o)=>e?c(e,t,o)?l(e,r,n,o):void 0:l(e,r,n,o)}(e.types):e.write.writer=l}function c(t,e,r){for(const r in e.typeMap)if(t instanceof e.typeMap[r])return!0;if(r?.messages){const i=e.errorContext??"type",s=`Values of type '${("function"!=typeof e.key?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new n.A(`${i}:unsupported`,s,{definition:t,context:r})),o.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function l(t,e,r,n){(0,i.sM)(r,u(t,n),e)}function u(t,e){return t&&"function"==typeof t.write?t.write({},e):t&&"function"==typeof t.toJSON?t.toJSON():"number"==typeof t?f(t):t}function f(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function h(t,e,r,n){let o;null===t?o=null:t&&"function"==typeof t.map?(o=t.map((t=>u(t,n))),"function"==typeof o.toArray&&(o=o.toArray())):o=[u(t,n)],(0,i.sM)(r,o,e)}function p(t,e,r){return 0!==r&&Array.isArray(t)?t.map((t=>p(t,e,r-1))):u(t,e)}},67867:(t,e,r)=>{r.d(e,{R:()=>n});class n{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){null!=this._observer&&t!==this._observer&&(null==this.accessed&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(null==this._handles&&(this._handles=[]),this.accessed.forEach((t=>{this._handles.push(t.observe(this._observer))})),this.accessed.clear()))}clear(){if(null!=this._handles){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}},85537:(t,e,r)=>{r.d(e,{v:()=>n});const n={INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}},88620:(t,e,r)=>{r.d(e,{AH:()=>l,h1:()=>a,oY:()=>i,qg:()=>f,yh:()=>s});var n=r(36563),o=r(4718);function i(t){return t.__accessor__??null}function s(t,e){return null!=t?.metadata?.[e]}function a(t,e,r){return c(t,e,r?{policy:r,path:""}:null)}function c(t,e,r){return e?Object.keys(e).reduce(((t,n)=>{const i=n;let s=null,a="merge";if(r&&(s=r.path?`${r.path}.${n}`:n,a=r.policy(s)),"replace"===a)return t[i]=e[i],t;if("replace-arrays"===a&&Array.isArray(t[i]))return t[i]=e[i],t;if(void 0===t[i])return t[i]=(0,o.o8)(e[i]),t;let l=t[i],u=e[i];if(l===u)return t;if(Array.isArray(u)||Array.isArray(t))l=l?Array.isArray(l)?t[i]=l.slice():t[i]=[l]:t[i]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((t=>{l.includes(t)||l.push(t)})));else if(u&&"object"==typeof u)if(r){const e=r.path;r.path=s,t[i]=c(l,u,r),r.path=e}else t[i]=c(l,u,null);else t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||(t[i]=u);return t}),t||{}):t}function l(t){return Array.isArray(t)?t:t.split(".")}function u(t){return t.includes(",")?t.split(",").map((t=>t.trim())):[t.trim()]}function f(t,e,r,o){const i=function(t){if(Array.isArray(t)){const e=[];for(const r of t)e.push(...u(r));return e}return u(t)}(e);if(1!==i.length){const e=i.map((e=>o(t,e,r)));return(0,n.vE)(e)}return o(t,i[0],r)}},90237:(t,e,r)=>{function n(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function o(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}r.d(e,{_:()=>n,b:()=>o,c:()=>s});var i="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function s(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function o(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(t){return e(t),o()}))}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},90360:(t,e,r)=>{r.d(e,{C:()=>u,v:()=>l});var n=r(53966),o=r(93637),i=r(67076),s=r(96156),a=r(15903);const c=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function l(t,e,r){t&&(!r&&!e.read||e.read?.reader||!1===e.read?.enabled||function(t){return"types"in t?g(t.types):y(t.type)}(t)&&(0,o.sM)("read.reader",u(t),e))}function u(t){const e=t.ndimArray??0;if(e>1)return function(t){const e=f(t),r=h.bind(null,e),n=t.ndimArray??0;return(t,e,o)=>{if(null==t)return t;t=r(t,o,n);let i=n,s=t;for(;i>0&&Array.isArray(s);)i--,s=s[0];if(void 0!==s)for(let e=0;e<i;e++)t=[t];return t}}(t);if(1===e)return p(t);if("type"in t&&d(t.type)){const e=t.type.prototype?.itemType?.Type,r=p("function"==typeof e?{type:e}:{types:e});return(e,n,o)=>{const i=r(e,n,o);return i?new t.type(i):i}}return f(t)}function f(t){return"type"in t?function(t){return t.prototype.read?(e,r,n)=>{if(null==e)return e;const o=typeof e;if("object"!==o)return void c().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${o}'`);const i=new t;return i.read(e,n),i}:t.fromJSON}(t.type):function(t){let e=null;const r=t.errorContext??"type",n=t.validate;return(o,a,l)=>{if(null==o)return o;const u=typeof o;if("object"!==u)return void c().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);e||(e=function(t){const e={};for(const r in t.typeMap){const n=t.typeMap[r],o=(0,s.tD)(n.prototype);if("function"==typeof t.key)continue;const i=o[t.key];if(!i)continue;if(i.json?.type&&Array.isArray(i.json.type)&&1===i.json.type.length&&"string"==typeof i.json.type[0]){e[i.json.type[0]]=n;continue}const a=i.json?.write;if(!a?.writer){e[r]=n;continue}const c=a.target,l="string"==typeof c?c:t.key,u={};a.writer(r,u,l),u[l]&&(e[u[l]]=n)}return e}(t));const f=t.key;if("string"!=typeof f)return;const h=o[f],p=h?e[h]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!p){const t=`Type '${h||"unknown"}' is not supported`;return l?.messages&&o&&l.messages.push(new i.A(`${r}:unsupported`,t,{definition:o,context:l})),void c().error(t)}const d=new p;return d.read(o,l),n?n(d):d}}(t.types)}function h(t,e,r,n){return 0!==n&&Array.isArray(e)?e.map((e=>h(t,e,r,n-1))):t(e,void 0,r)}function p(t){const e=f(t);return(t,r,n)=>{if(null==t)return t;if(Array.isArray(t)){const r=[];for(const o of t){const t=e(o,void 0,n);void 0!==t&&r.push(t)}return r}const o=e(t,void 0,n);return void 0!==o?[o]:void 0}}function d(t){if(!(0,a.P)(t))return!1;const e=t.prototype.itemType;return!(!e||!e.Type)&&("function"==typeof e.Type?y(e.Type):g(e.Type))}function y(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||d(t))}function g(t){for(const e in t.typeMap)if(!y(t.typeMap[e]))return!1;return!0}},93687:(t,e,r)=>{r.d(e,{A:()=>n});class n{constructor(t,e,r,n=1,o=0){this._ctor=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(o),this._initialSize=o;for(let t=0;t<o;t++)this._pool[t]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){let e;if(n.test.disabled)e=new this._ctor;else{if(0===this._pool.length){const t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=new this._ctor}e=this._pool.pop()}return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){var e;t&&!n.test.disabled&&(this._releaseFunction?this._releaseFunction(t):(e=t,e?.release&&"function"==typeof e.release&&t.release()),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){const t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}static{this.test={disabled:!1}}}},96156:(t,e,r)=>{r.d(e,{CX:()=>a,tD:()=>i,z4:()=>s});var n=r(4718),o=r(88620);function i(t){let e=t.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(const t in e)e[t]=(0,n.o8)(e[t]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function s(t,e){const r=i(t);let n=r[e];return n||(n=r[e]={}),n}function a(t,e){return(0,o.h1)(t,e,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(t){return c.test(t)?"replace":"merge"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>c,executeMany:()=>u});var r=n(4576),o=n(83047),i=n(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>c,executeMany:()=>u});var r=n(4576),o=n(83047),i=n(96718),a=n(83299);function c(e,t,n={}){const{unit:r}=n,c=(0,a.getSpatialReference)(e);r&&c&&(t=(0,o.UW)(t,r,c));const u=(0,a.fromGeometry)(e),m=u.getSpatialReference();return(0,a.toGeometry)((0,i.g7)(u.getGeometry(),m,t),m)}function u(e,t,n={}){let{maxDeviation:c=NaN,maxVerticesInFullCircle:u=96,union:m=!1,unit:l}=n;const s=(0,a.getSpatialReference)(e);l&&s&&(t=t.map((e=>(0,o.UW)(e,l,s))),c&&(c=(0,o.UW)(c,l,s)));const[f,p]=(0,a.fromGeometries)(e);return(0,i.yv)(f,p,t,c,u,m).map((e=>(0,a.toGeometry)(e,p))).filter(r.Ru)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1123],{1123:(e,t,n)=>{n.r(t),n.d(t,{invokeGeometryOp:()=>c});var i=n(65864);function r(e,t){let n;return{loaded:!1,load:()=>n??=t().then((t=>{o[e]={loaded:!0,execute:t}}))}}function a(e){return null==e?null:e.toJSON()}const o={disjoint:r("disjoint",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1598)]).then(n.bind(n,7978)).then((e=>e.execute)))),intersects:r("intersects",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7360)]).then(n.bind(n,55284)).then((e=>e.execute)))),touches:r("touches",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(2503)]).then(n.bind(n,83547)).then((e=>e.execute)))),crosses:r("crosses",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9700)]).then(n.bind(n,85672)).then((e=>e.execute)))),within:r("within",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9265)]).then(n.bind(n,85445)).then((e=>e.execute)))),contains:r("contains",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1867)]).then(n.bind(n,29127)).then((e=>e.execute)))),overlaps:r("overlaps",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1414)]).then(n.bind(n,46178)).then((e=>e.execute)))),equals:r("equals",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5180)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n))})),relate:r("relate",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5552)]).then(n.bind(n,43628));return(t,n,r)=>e.execute((0,i.rS)(t),(0,i.rS)(n),r)})),intersection:r("intersection",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9263)]).then(n.bind(n,49263)).then((e=>e.execute)))),union:r("union",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(6339)]).then(n.bind(n,56339)).then((e=>e.executeMany)))),difference:r("difference",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3054)]).then(n.bind(n,93054));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),symmetricDifference:r("symmetricDifference",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9041)]).then(n.bind(n,89041));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),clip:r("clip",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(4815)]).then(n.bind(n,24815));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),cut:r("cut",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7817)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n)).map((e=>a(e)))})),area:r("area",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3236)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a)=>{const o=e.execute((0,i.rS)(n));return t(n.spatialReference,r(a),o)}})),geodeticArea:r("geodeticArea",(async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:r,toAreaUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,c)=>{const s=e.execute((0,i.rS)(n),{curveType:c});return t(r,a(o),s)}})),length:r("length",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7074)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r)=>{const a=e.execute(n);return t(n.spatialReference,i(r),a)}})),geodeticLength:r("geodeticLength",(async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:r,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,c)=>{const s=e.execute((0,i.rS)(n),{curveType:c});return t(r,a(o),s)}})),distance:r("distance",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3173)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a,o)=>{const c=e.execute((0,i.rS)(n),(0,i.rS)(a));return t(n.spatialReference,r(o),c)}})),densify:r("densify",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(8411)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o)))})),geodeticDensify:r("geodeticDensify",(async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:r,toLengthUnit:o}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,c,s,l)=>(c=t(o(s),r,c),a(e.execute((0,i.rS)(n),c,{curveType:l})))})),generalize:r("generalize",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(591)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c,s)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o,s)))})),buffer:r("buffer",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1123],{1123:(e,t,n)=>{n.r(t),n.d(t,{invokeGeometryOp:()=>c});var i=n(65864);function r(e,t){let n;return{loaded:!1,load:()=>n??=t().then((t=>{o[e]={loaded:!0,execute:t}}))}}function a(e){return null==e?null:e.toJSON()}const o={disjoint:r("disjoint",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1598)]).then(n.bind(n,7978)).then((e=>e.execute)))),intersects:r("intersects",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7360)]).then(n.bind(n,55284)).then((e=>e.execute)))),touches:r("touches",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(2503)]).then(n.bind(n,83547)).then((e=>e.execute)))),crosses:r("crosses",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9700)]).then(n.bind(n,85672)).then((e=>e.execute)))),within:r("within",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9265)]).then(n.bind(n,85445)).then((e=>e.execute)))),contains:r("contains",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1867)]).then(n.bind(n,29127)).then((e=>e.execute)))),overlaps:r("overlaps",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(1414)]).then(n.bind(n,46178)).then((e=>e.execute)))),equals:r("equals",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5180)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n))})),relate:r("relate",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5552)]).then(n.bind(n,43628));return(t,n,r)=>e.execute((0,i.rS)(t),(0,i.rS)(n),r)})),intersection:r("intersection",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9263)]).then(n.bind(n,49263)).then((e=>e.execute)))),union:r("union",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(6339)]).then(n.bind(n,56339)).then((e=>e.executeMany)))),difference:r("difference",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3054)]).then(n.bind(n,93054));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),symmetricDifference:r("symmetricDifference",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(9041)]).then(n.bind(n,89041));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),clip:r("clip",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(4815)]).then(n.bind(n,24815));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),cut:r("cut",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7817)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n)).map((e=>a(e)))})),area:r("area",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3236)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a)=>{const o=e.execute((0,i.rS)(n));return t(n.spatialReference,r(a),o)}})),geodeticArea:r("geodeticArea",(async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:r,toAreaUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,c)=>{const s=e.execute((0,i.rS)(n),{curveType:c});return t(r,a(o),s)}})),length:r("length",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(7074)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r)=>{const a=e.execute(n);return t(n.spatialReference,i(r),a)}})),geodeticLength:r("geodeticLength",(async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:r,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,c)=>{const s=e.execute((0,i.rS)(n),{curveType:c});return t(r,a(o),s)}})),distance:r("distance",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3173)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a,o)=>{const c=e.execute((0,i.rS)(n),(0,i.rS)(a));return t(n.spatialReference,r(o),c)}})),densify:r("densify",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(8411)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o)))})),geodeticDensify:r("geodeticDensify",(async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:r,toLengthUnit:o}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,c,s,l)=>(c=t(o(s),r,c),a(e.execute((0,i.rS)(n),c,{curveType:l})))})),generalize:r("generalize",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(591)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c,s)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o,s)))})),buffer:r("buffer",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(6718),n.e(6160)]).then(n.bind(n,46160)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r,a)=>(r=t(i(a),n.spatialReference,r),e.execute(n,r))})),geodesicBuffer:r("geodesicBuffer",(async()=>{const e=await n.e(9159).then(n.bind(n,49159)),{convert:t,meters:i,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o,c)=>(a=t(r(o),i,a),e.execute(n,a,{curveType:c}))})),offset:r("offset",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5605)]).then(n.bind(n,15605)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r,a,o)=>(r=t(i(a),n.spatialReference,r),e.execute(n,r,o))})),rotate:r("rotate",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(647)]).then(n.bind(n,50647)),{default:t}=await Promise.all([n.e(3661),n.e(1878),n.e(8812)]).then(n.bind(n,78812));return(n,r,o,c)=>{const s=(new t).rotate(r,o,c);return a(e.execute((0,i.rS)(n),s))}})),centroid:r("centroid",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(2657)]).then(n.bind(n,17077));return t=>a(e.execute((0,i.rS)(t)))})),labelPoint:r("labelPoint",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5913),n.e(5137)]).then(n.bind(n,91421));return t=>a(e.execute((0,i.rS)(t)))})),simplify:r("simplify",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then((e=>e.execute)))),isSelfIntersecting:r("isSelfIntersecting",(async()=>{const{NonSimpleResult:e}=await n.e(4383).then(n.bind(n,24383)),t=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5874)]).then(n.bind(n,5874)),r=new Set([5,6,7,10,11,12]);return n=>{const a=new e;return!t.isSimple((0,i.rS)(n),a)&&r.has(a.m_reason)}})),isSimple:r("isSimple",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then((e=>e.isSimple)))),convexHull:r("convexHull",(()=>Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(5666)]).then(n.bind(n,55666)).then((e=>e.execute)))),getNearestCoordinate:r("getNearestCoordinate",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(6468)]).then(n.bind(n,48032));return(t,n,r)=>{const o=e.getNearestCoordinate((0,i.rS)(t),(0,i.rS)(n),r);return{...o,coordinate:a(o.coordinate)}}})),getNearestVertex:r("getNearestVertex",(async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(2189),n.e(3299),n.e(6468)]).then(n.bind(n,48032));return(t,n)=>{const r=e.getNearestVertex((0,i.rS)(t),(0,i.rS)(n));return{...r,coordinate:a(r.coordinate)}}}))};function c(e,t){const n=o[e];return n.loaded?n.execute.apply(void 0,t):n.load().then((()=>c(e,t)))}},65864:(e,t,n)=>{n.d(t,{$B:()=>y,Bi:()=>m,Rg:()=>h,U9:()=>u,ZC:()=>l,fT:()=>d,rS:()=>f,xD:()=>S});var i=n(5443),r=n(91075),a=n(48526),o=n(86738),c=n(39829),s=n(82799);function l(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths||void 0!==e.curvePaths}function m(e){return void 0!==e.rings||void 0!==e.curveRings}function f(e){return null==e?null:e instanceof r.A?e:d(e)?o.A.fromJSON(e):h(e)?s.A.fromJSON(e):m(e)?c.A.fromJSON(e):u(e)?a.A.fromJSON(e):l(e)?i.A.fromJSON(e):null}function y(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":l(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const b={esriGeometryPoint:o.A,esriGeometryPolyline:s.A,esriGeometryPolygon:c.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:a.A,esriGeometryMultiPatch:c.A};function S(e){return e&&b[e]||null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3543,7367],{71163:(e,n,t)=>{t.d(n,{C:()=>c});var r=t(29953);let a,o,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then((e=>{o=e,i=!0,a=void 0}))}async function c(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await l(),c(e,n))}},80672:(e,n,t)=>{t.d(n,{R:()=>a});var r=t(20655);function a(e,n){return null===e?n:new r.A({url:e.field("url")})}},87367:(e,n,t)=>{t.r(n),t.d(n,{registerFunctions:()=>T});var r=t(47609),a=t(66395),o=t(85935),i=t(78502),l=t(78878),c=t(80672),s=t(81844),u=t(71163),f=t(4576),d=t(5443),w=t(91075),p=t(48526),h=t(86738),g=t(39829),y=t(82799),m=t(65864),v=t(20655),S=t(70333),D=t(78888);async function b(e,n,t){const r=S.id?.findCredential(e.restUrl);if(!r)return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===n){const n=await(0,D.A)(e.restUrl+"/community/self",a);if(n.data){const e=n.data;if(e?.username)return e}return null}const o=await(0,D.A)(e.restUrl+"/community/users/"+n,a);if(o.data){const e=o.data;return e.error?null:e}return null}var A=t(54218);function X(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new o.D$(null,o.TX.InvalidParameter,null)}}function T(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null===a[0]||null===a[1]||(0,u.C)("disjoint",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("intersects",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("touches",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("crosses",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("within",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("contains",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("overlaps",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>((0,l.D)(a,2,2,n,t),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,u.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,l.g)(a[0])&&(0,l.g)(a[1])||!!((0,l.k)(a[0])&&(0,l.k)(a[1])||(0,l.j)(a[0])&&(0,l.j)(a[1])))&&a[0].equals(a[1])))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,3,3,n,t),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,u.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,l.f)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,u.C)("intersection",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(0===(a=(0,l.E)(a)).length)throw new o.D$(n,o.TX.WrongNumberOfParameters,t);const c=[];if(1===a.length)if((0,A.cy)(a[0])){for(const e of(0,l.E)(a[0]))if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}}else{if(!(0,l.m)(a[0])){if(a[0]instanceof w.A)return(0,l.F)((0,i.Yq)(a[0]),n.spatialReference);if(null===a[0])return null;throw new o.D$(n,o.TX.InvalidParameter,t)}for(const e of(0,l.E)(a[0].toArray()))if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}}else for(const e of a)if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,u.C)("union",[c]))}))},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null===a[0]?null:null===a[1]?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("difference",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.E)(a),(0,s.ZL)(a,n,t),null===a[0]&&null===a[1]?null:null===a[0]?(0,i.Yq)(a[1]):null===a[1]?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,2,n,t),!(a[1]instanceof d.A)&&null!==a[1])throw new o.D$(n,o.TX.InvalidParameter,t);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return null===a[1]?null:(0,m.rS)(await(0,u.C)("clip",[a[0].toJSON(),a[1].toJSON()]))}))},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,2,n,t),!(a[1]instanceof y.A)&&null!==a[1])throw new o.D$(n,o.TX.InvalidParameter,t);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return null===a[1]?[(0,i.Yq)(a[0])]:(await(0,u.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map((e=>(0,m.rS)(e)))}))},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if((0,l.D)(a,1,2,n,t),a=(0,l.E)(a),(0,l.p)(a[0])){const e=await a[0].sumArea(X(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}let i=a[0];if(((0,A.cy)(i)||(0,l.m)(i))&&(i=(0,l.G)(a[0],n.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("area",[i.toJSON(),X(a[1])])}))},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{(0,l.D)(a,1,3,n,t);let i=(a=(0,l.E)(a))[0];((0,A.cy)(i)||(0,l.m)(i))&&(i=(0,l.G)(i,n.spatialReference));const c=X(a[1]),f=(0,s.rE)(a[2])??"geodesic";if((0,l.p)(i)){const e=await i.sumArea(c,f,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}if(null==i)return 0;if(!(0,l.l)(i))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("geodeticArea",[i.toJSON(),c,f])}))},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if((0,l.D)(a,1,2,n,t),a=(0,l.E)(a),(0,l.p)(a[0])){const e=await a[0].sumLength(X(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}let i=a[0];if(((0,A.cy)(a[0])||(0,l.m)(a[0]))&&(i=(0,l.H)(a[0],n.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("length",[i.toJSON(),X(a[1])])}))},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,(async(e,a,i)=>{if((0,l.D)(i,1,2,n,r),null===(i=(0,l.E)(i))[0])return 0;let c=i[0];if(((0,A.cy)(i[0])||(0,l.m)(i[0]))&&(c=(0,l.H)(i[0],n.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(t.bind(t,40547)),r=(0,s.UI)(c);return e(c.spatialReference,n(i[1]),r)}return(0,u.C)("length",[c.toJSON(),X(i[1])])}))},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{(0,l.D)(a,1,3,n,t);let i=(a=(0,l.E)(a))[0];((0,A.cy)(a[0])||(0,l.m)(a[0]))&&(i=(0,l.H)(a[0],n.spatialReference));const c=X(a[1]),f=(0,s.rE)(a[2])??"geodesic";if((0,l.p)(i)){const e=await i.sumLength(c,f,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}if(null===i)return 0;if(!(0,l.l)(i))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("geodeticLength",[i.toJSON(),c,f])}))},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.E)(a),(0,l.D)(a,2,3,n,t);let i=a[0];if(((0,A.cy)(a[0])||(0,l.m)(a[0]))&&(i=(0,l.J)(a[0],n.spatialReference)),!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);let c=a[1];if(((0,A.cy)(a[1])||(0,l.m)(a[1]))&&(c=(0,l.J)(a[1],n.spatialReference)),!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("distance",[i.toJSON(),c.toJSON(),X(a[2])])}))},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.E)(a),(0,l.D)(a,2,4,n,t);const i=a[0];if(!(i instanceof h.A))throw new o.D$(n,o.TX.InvalidParameter,t);const c=a[1];if(!(c instanceof h.A))throw new o.D$(n,o.TX.InvalidParameter,t);const f=new y.A({paths:[],spatialReference:i.spatialReference});return f.addPath([i,c]),(0,u.C)("geodeticLength",[f.toJSON(),X(a[2]),(0,s.rE)(a[3])??"geodesic"])}))},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.t)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);if(i<=0)throw new o.D$(n,o.TX.InvalidParameter,t);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,u.C)("densify",[a[0].toJSON(),i,X(a[2])]));default:return a[0]}}))},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.E)(a),(0,l.D)(a,2,4,n,t);const i=a[0];if(null==i)return null;if(!(0,l.l)(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.t)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);if(c<=0)throw new o.D$(n,o.TX.InvalidParameter,t);const f=X(a[2]),d=(0,s.rE)(a[3])??"geodesic";switch(i.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,u.C)("geodeticDensify",[i.toJSON(),c,f,d]));default:return i}}))},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,4,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.t)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.e)((0,l.K)(a[2],!0));return(0,m.rS)(await(0,u.C)("generalize",[a[0].toJSON(),i,X(a[3]),{removeDegenerateParts:c}]))}))},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.t)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);return 0===c?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("buffer",[a[0].toJSON(),c,X(a[2])]))}))},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.E)(a),(0,l.D)(a,2,4,n,t);const c=a[0];if(null==c)return null;if(!(0,l.l)(c))throw new o.D$(n,o.TX.InvalidParameter,t);const f=(0,l.t)(a[1]);if(isNaN(f))throw new o.D$(n,o.TX.InvalidParameter,t);if(0===f)return(0,i.Yq)(c);const d=X(a[2]),w=(0,s.rE)(a[3])??"geodesic";return(0,m.rS)(await(0,u.C)("geodesicBuffer",[c.toJSON(),f,d,w]))}))},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,6,n,t),null===a[0])return null;if(!(a[0]instanceof g.A||a[0]instanceof y.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.t)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.f)(a[3]??"round").toLowerCase();let s;switch(c){case"round":case"bevel":case"miter":case"square":s=c;break;default:s="round"}const f=(0,l.t)((0,l.K)(a[4],10));if(isNaN(f))throw new o.D$(n,o.TX.InvalidParameter,t);const d=(0,l.t)((0,l.K)(a[5],0));if(isNaN(d))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("offset",[a[0].toJSON(),i,X(a[2]),{joins:s,miterLimit:f,flattenError:d}]))}))},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=a[0]instanceof d.A?g.A.fromExtent(a[0]):a[0],c=(0,l.t)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);const s=(0,l.K)(a[2],null);if(null===s){const e="point"===i.type?i:i.extent?.center;return(0,m.rS)(await(0,u.C)("rotate",[i.toJSON(),c,e?.x,e?.y]))}if(s instanceof h.A)return(0,m.rS)(await(0,u.C)("rotate",[i.toJSON(),c,s.x,s.y]));throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,1,2,n,t),null===a[0])return null;const i=(0,l.f)(a[1]??"geometric").toLowerCase();if("geometric"!==i&&"labelpoint"!==i)throw new o.D$(n,o.TX.InvalidParameter,t);let c=a[0];if(((0,A.cy)(a[0])||(0,l.m)(a[0]))&&(c="geometric"===i?(0,l.J)(a[0],n.spatialReference):(0,l.G)(a[0],n.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)("geometric"===i?await(0,u.C)("centroid",[c.toJSON()]):await(0,u.C)("labelPoint",[c.toJSON()]))}))},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);if(a[0]instanceof h.A)return[(0,l.F)((0,i.Yq)(a[0]),n.spatialReference)];if(a[0]instanceof d.A)return[(0,l.F)((0,i.Yq)(a[0]),n.spatialReference)];const c=(0,m.rS)(await(0,u.C)("simplify",[a[0].toJSON()]));if(c instanceof g.A){const e=[],n=[];for(let t=0;t<c.rings.length;t++)if(c.isClockwise(c.rings[t])){const n=(0,m.rS)({rings:[c.rings[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});e.push(n)}else n.push({ring:c.rings[t],pt:c.getPoint(t,0)});for(let t=0;t<n.length;t++)for(let r=0;r<e.length;r++)if(e[r].contains(n[t].pt)){e[r].addRing(n[t].ring);break}return e}if(c instanceof y.A){const e=[];for(let n=0;n<c.paths.length;n++){const t=(0,m.rS)({paths:[c.paths[n]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});e.push(t)}return e}if(a[0]instanceof p.A){const e=[],t=(0,l.F)((0,i.Yq)(a[0]),n.spatialReference);for(let n=0;n<t.points.length;n++)e.push(t.getPoint(n));return e}return null}))},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,(async(e,n,t)=>{(0,l.D)(t,1,1,e,n);let r=(t=(0,l.E)(t))[0];if(((0,A.cy)(t[0])||(0,l.m)(t[0]))&&(r=(0,l.H)(t[0],e.spatialReference)),r instanceof p.A){const e=r.points;for(let n=0;n<e.length;n++)for(let t=n+1;t<e.length;t++)if((0,f.aI)(e[n],e[t]))return!0;return!1}return(r instanceof y.A||r instanceof g.A)&&await(0,u.C)("isSelfIntersecting",[r.toJSON()])}))},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,1,1,n,t),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("isSimple",[a[0].toJSON()])}))},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("simplify",[a[0].toJSON()]))}))},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.E)(a),(0,l.D)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("convexHull",[a[0].toJSON()]))}))},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,(async(e,i,s)=>{(0,l.D)(s,0,2,n,t);let u=(0,l.K)(s[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,l.f)(u),0===s.length||s[0]instanceof r.A){let e;e=n.services?.portal?n.services.portal:v.A.getDefault(),s.length>0&&(e=(0,c.R)(s[0],e));const t=await b(e,u,f);if(t){const e=JSON.parse(JSON.stringify(t));for(const n of["lastLogin","created","modified"])void 0!==e[n]&&null!==e[n]&&(e[n]=new Date(e[n]));return a.A.convertObjectToArcadeDictionary(e,(0,l.L)(n))}return null}let d=null;if((0,l.p)(s[0])&&(d=s[0]),d){if(f=!1,u)return null;await d.load();const e=await d.getOwningSystemUrl();if(!e){if(!u){const e=await d.getIdentityUser();return e?a.A.convertObjectToArcadeDictionary({username:e},(0,l.L)(n)):null}return null}let t;t=n.services?.portal?n.services.portal:v.A.getDefault(),t=(0,c.R)(new r.A(e),t);const o=await b(t,u,f);if(o){const e=JSON.parse(JSON.stringify(o));for(const n of["lastLogin","created","modified"])void 0!==e[n]&&null!==e[n]&&(e[n]=new Date(e[n]));return a.A.convertObjectToArcadeDictionary(e,(0,l.L)(n))}return null}throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,i)=>{if(i=(0,l.E)(i),(0,l.D)(i,2,2,n,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(n,o.TX.InvalidParameter,t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(n,o.TX.InvalidParameter,t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?g.A.fromExtent(i[0]):i[0],s=await(0,u.C)("getNearestCoordinate",[c.toJSON(),i[1].toJSON(),{calculateLeftRightSide:!0}]);return null===s?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.rightSide?"right":"left"},(0,l.L)(n),!1,!0)}))},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,i)=>{if(i=(0,l.E)(i),(0,l.D)(i,2,2,n,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(n,o.TX.InvalidParameter,t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(n,o.TX.InvalidParameter,t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?g.A.fromExtent(i[0]):i[0],s=await(0,u.C)("getNearestVertex",[c.toJSON(),i[1].toJSON()]);return null===s?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.rightSide?"right":"left"},(0,l.L)(n),!1,!0)}))})}},93543:(e,n,t)=>{t.r(n),t.d(n,{executeScript:()=>_,extend:()=>Y});var r=t(48938),a=t(99719),o=t(72888),i=t(15695),l=t(66395),c=t(85935),s=t(93833),u=t(92400),f=t(78878),d=t(19157),w=t(3367),p=t(63680),h=t(81113),g=t(32091),y=t(87367),m=t(41217),v=t(36770),S=t(47346),D=t(29304),b=(t(44208),t(91075)),A=t(16930),X=t(54218);async function T(e,n){const t=[];for(let r=0;r<n.arguments.length;r++)t.push(await x(e,n.arguments[r]));return t}async function $(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await T(e,n))}class N extends u.fF{constructor(e,n){super(),this.definition=null,this.context=null,this.definition=e,this.context=n}createFunction(e){return(...n)=>{const t={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,timeZone:this.context.timeZone??null,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,services:this.context.services,abortSignal:this.context.abortSignal,localScope:{},depthCounter:{depth:e.depthCounter+1},globalScope:this.context.globalScope};if(t.depthCounter.depth>64)throw new c.D$(e,c.TX.MaximumCallDepth,null);return O(this.definition,t,n,null)}}call(e,n){return F(e,n,((t,r,a)=>{const o={spatialReference:e.spatialReference,services:e.services,console:e.console,libraryResolver:e.libraryResolver,exports:e.exports,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:{},abortSignal:e.abortSignal,globalScope:e.globalScope,depthCounter:{depth:e.depthCounter.depth+1}};if(o.depthCounter.depth>64)throw new c.D$(e,c.TX.MaximumCallDepth,n);return O(this.definition,o,a,n)}))}marshalledCall(e,n,t,r){return r(e,n,(async(a,o,i)=>{const l={spatialReference:e.spatialReference,services:e.services,globalScope:t.globalScope,depthCounter:{depth:e.depthCounter.depth+1},libraryResolver:e.libraryResolver,exports:e.exports,console:e.console,abortSignal:e.abortSignal,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:{}};return i=i.map((n=>!(0,f.i)(n)||n instanceof u.CU?n:(0,u.o6)(n,e,r))),(0,u.o6)(await O(this.definition,l,i,n),t,r)}))}}async function O(e,n,t,a){const o=e.body;if(t.length!==e.params.length)throw new c.D$(n,c.TX.WrongNumberOfParameters,null);for(let a=0;a<t.length;a++){const o=e.params[a];"Identifier"===o.type&&null!=n.localScope&&(n.localScope[(0,r.X)(o)]={value:t[a]})}const i=await C(n,o);if(i instanceof f.R)return i.value;if(i===f.w)throw new c.D$(n,c.TX.UnexpectedToken,a);if(i===f.x)throw new c.D$(n,c.TX.UnexpectedToken,a);return i instanceof f.I?i.value:i}class I extends a.x{constructor(e){super(),this.source=e}global(e){const n=this.executingContext.globalScope[(0,r.X)(e)];if((0,f.i)(n.value)&&!(n.value instanceof u.CU)){const t=new u.CU;return t.fn=n.value,t.parameterEvaluator=F,t.context=this.executingContext,this.executingContext.globalScope[(0,r.X)(e)]={value:t},t}return n.value}setGlobal(e,n){if((0,f.i)(n))throw new c.D$(null,c.TX.AssignModuleFunction,null);this.executingContext.globalScope[(0,r.X)(e)]={value:n}}hasGlobal(e){return void 0===this.executingContext.exports[e]&&(e=(0,r.X)(e)),void 0!==this.executingContext.exports[e]}async loadModule(e){const n=e.spatialReference??A.A.WebMercator;this.moduleScope=z(null,null,e.timeZone),this.executingContext={spatialReference:n,services:e.services,libraryResolver:new o.a(e.libraryResolver._moduleSingletons,this.source.syntax.loadedModules),exports:{},abortSignal:e.abortSignal??r._,globalScope:this.moduleScope,console:e.console??V,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:null,depthCounter:{depth:1}},await k(this.executingContext,this.source.syntax)}}async function F(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await T(e,n))}async function x(e,n){n.breakpoint&&await n.breakpoint();try{switch(n.type){case"UpdateExpression":return await async function(e,n){const t=n.argument;if("CallExpression"===t.type)throw new c.D$(e,c.TX.NeverReach,n);if("MemberExpression"===t.type){const r=await x(e,t.object);let a,o;if(!0===t.computed)a=await x(e,t.property);else{if("Identifier"!==t.property.type)throw new c.D$(e,c.TX.Unrecognized,n);a=t.property.name}if((0,X.cy)(r)){if(!(0,X.Et)(a))throw new c.D$(e,c.TX.ArrayAccessorMustBeNumber,n);if(a<0&&(a=r.length+a),a<0||a>=r.length)throw new c.D$(e,c.TX.OutOfBounds,n);o=(0,f.t)(r[a]),r[a]="++"===n.operator?o+1:o-1}else if(r instanceof l.A){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasField(a))throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});o=(0,f.t)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}else if(r instanceof I){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.ModuleAccessorMustBeString,n);if(!0!==r.hasGlobal(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n);o=(0,f.t)(r.global(a)),r.setGlobal(a,"++"===n.operator?o+1:o-1)}else{if(!(0,f.n)(r))throw(0,f.m)(r)?new c.D$(e,c.TX.Immutable,n):new c.D$(e,c.TX.InvalidParameter,n);if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasField(a))throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});o=(0,f.t)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}return!1===n.prefix?o:"++"===n.operator?o+1:o-1}const a=(0,r.X)(t);let o;if(null!=e.localScope&&void 0!==e.localScope[a])return o=(0,f.t)(e.localScope[a].value),e.localScope[a]={value:"++"===n.operator?o+1:o-1},!1===n.prefix?o:"++"===n.operator?o+1:o-1;if(void 0!==e.globalScope[a])return o=(0,f.t)(e.globalScope[a].value),e.globalScope[a]={value:"++"===n.operator?o+1:o-1},!1===n.prefix?o:"++"===n.operator?o+1:o-1;throw new c.D$(e,c.TX.InvalidIdentifier,n)}(e,n);case"AssignmentExpression":return await async function(e,n){const t=n.left;if("MemberExpression"===t.type){const r=await x(e,t.object);let a;if(!0===t.computed)a=await x(e,t.property);else{if("Identifier"!==t.property.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);a=t.property.name}const o=await x(e,n.right);if((0,X.cy)(r)){if(!(0,X.Et)(a))throw new c.D$(e,c.TX.ArrayAccessorMustBeNumber,n);if(a<0&&(a=r.length+a),a<0||a>r.length)throw new c.D$(e,c.TX.OutOfBounds,n);if(a===r.length){if("="!==n.operator)throw new c.D$(e,c.TX.OutOfBounds,n);r[a]=P(o,n.operator,r[a],n,e)}else r[a]=P(o,n.operator,r[a],n,e)}else if(r instanceof l.A){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0===r.hasField(a))r.setField(a,P(o,n.operator,r.field(a),n,e));else{if("="!==n.operator)throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});r.setField(a,P(o,n.operator,null,n,e))}}else if(r instanceof I){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasGlobal(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n);r.setGlobal(a,P(o,n.operator,r.global(a),n,e))}else{if(!(0,f.n)(r))throw(0,f.m)(r)?new c.D$(e,c.TX.Immutable,n):new c.D$(e,c.TX.InvalidParameter,n);if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0===r.hasField(a))r.setField(a,P(o,n.operator,r.field(a),n,e));else{if("="!==n.operator)throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});r.setField(a,P(o,n.operator,null,n,e))}}return f.v}const a=(0,r.X)(t);if(null!=e.localScope&&void 0!==e.localScope[a]){const t=await x(e,n.right);return e.localScope[a]={value:P(t,n.operator,e.localScope[a].value,n,e)},f.v}if(void 0!==e.globalScope[a]){const t=await x(e,n.right);return e.globalScope[a]={value:P(t,n.operator,e.globalScope[a].value,n,e)},f.v}throw new c.D$(e,c.TX.InvalidIdentifier,n)}(e,n);case"TemplateLiteral":return await async function(e,n){let t="",r=0;for(const a of n.quasis)if(t+=a.value?a.value.cooked:"",!1===a.tail){if(n.expressions[r]){const a=await x(e,n.expressions[r]);if((0,f.i)(a))throw new c.D$(e,c.TX.NoFunctionInTemplateLiteral,n);t+=(0,f.f)(a)}r++}return t}(e,n);case"Identifier":return K(e,n);case"MemberExpression":return await async function(e,n){const t=await x(e,n.object);if(null===t)throw new c.D$(e,c.TX.MemberOfNull,n);if(!1===n.computed){if("Identifier"===n.property.type){if(t instanceof l.A||(0,f.y)(t))return t.field(n.property.name);if(t instanceof b.A)return(0,i.Bl)(t,n.property.name,e,n);if(t instanceof I){if(!t.hasGlobal(n.property.name))throw new c.D$(e,c.TX.InvalidIdentifier,n);return t.global(n.property.name)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}let r=await x(e,n.property);if(t instanceof l.A||(0,f.y)(t)){if((0,X.Kg)(r))return t.field(r);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if(t instanceof I){if((0,X.Kg)(r))return t.global(r);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if(t instanceof b.A){if((0,X.Kg)(r))return(0,i.Bl)(t,r,e,n);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,X.cy)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length+r),r>=t.length||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t[r]}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,f.m)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length()+r),r>=t.length()||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t.get(r)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,X.Kg)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length+r),r>=t.length||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t[r]}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}(e,n);case"Literal":return n.value;case"CallExpression":return await async function(e,n){if("MemberExpression"===n.callee.type){const t=await x(e,n.callee.object);if(!(t instanceof I))throw new c.D$(e,c.TX.FunctionNotFound,n);const r=!1===n.callee.computed?n.callee.property.name:await x(e,n.callee.property);if(!t.hasGlobal(r))throw new c.D$(e,c.TX.FunctionNotFound,n);const a=t.global(r);if(!(0,f.i)(a))throw new c.D$(e,c.TX.CallNonFunction,n);return a.call(e,n)}if("Identifier"!==n.callee.type)throw new c.D$(e,c.TX.FunctionNotFound,n);const t=(0,r.X)(n.callee);if(null!=e.localScope&&void 0!==e.localScope[t]){const r=e.localScope[t];if((0,f.i)(r.value))return r.value.call(e,n);throw new c.D$(e,c.TX.CallNonFunction,n)}if(void 0!==e.globalScope[t]){const r=e.globalScope[t];if((0,f.i)(r.value))return r.value.call(e,n);throw new c.D$(e,c.TX.CallNonFunction,n)}throw new c.D$(e,c.TX.FunctionNotFound,n)}(e,n);case"UnaryExpression":return await async function(e,n){const t=await x(e,n.argument);if((0,X.Lm)(t)){if("!"===n.operator)return!t;if("-"===n.operator)return-1*(0,f.t)(t);if("+"===n.operator)return 1*(0,f.t)(t);if("~"===n.operator)return~(0,f.t)(t);throw new c.D$(e,c.TX.UnsupportedUnaryOperator,n)}if("-"===n.operator)return-1*(0,f.t)(t);if("+"===n.operator)return 1*(0,f.t)(t);if("~"===n.operator)return~(0,f.t)(t);throw new c.D$(e,c.TX.UnsupportedUnaryOperator,n)}(e,n);case"BinaryExpression":return await async function(e,n){const t=await x(e,n.left),r=await x(e,n.right);switch(n.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,f.B)((0,f.t)(t),(0,f.t)(r),n.operator);case"==":return(0,f.A)(t,r);case"!=":return!(0,f.A)(t,r);case"<":case">":case"<=":case">=":return(0,f.z)(t,r,n.operator);case"+":return(0,X.Kg)(t)||(0,X.Kg)(r)?(0,f.f)(t)+(0,f.f)(r):(0,f.t)(t)+(0,f.t)(r);case"-":return(0,f.t)(t)-(0,f.t)(r);case"*":return(0,f.t)(t)*(0,f.t)(r);case"/":return(0,f.t)(t)/(0,f.t)(r);case"%":return(0,f.t)(t)%(0,f.t)(r);default:throw new c.D$(e,c.TX.UnsupportedOperator,n)}}(e,n);case"LogicalExpression":return await async function(e,n){const t=await x(e,n.left);if(!(0,X.Lm)(t))throw new c.D$(e,c.TX.LogicalExpressionOnlyBoolean,n);switch(n.operator){case"||":{if(!0===t)return t;const r=await x(e,n.right);if((0,X.Lm)(r))return r;throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}case"&&":{if(!1===t)return t;const r=await x(e,n.right);if((0,X.Lm)(r))return r;throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}default:throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}}(e,n);case"ArrayExpression":return await async function(e,n){const t=[];for(let r=0;r<n.elements.length;r++)t.push(await x(e,n.elements[r]));for(let r=0;r<t.length;r++){if((0,f.i)(t[r]))throw new c.D$(e,c.TX.NoFunctionInArray,n);t[r]===f.v&&(t[r]=null)}return t}(e,n);case"ObjectExpression":return await async function(e,n){const t=[];for(let r=0;r<n.properties.length;r++){const a=n.properties[r],o=await x(e,a.value),i="Identifier"===a.key.type?a.key.name:await x(e,a.key);t[r]={key:i,value:o}}const r={},a=new Map;for(let o=0;o<t.length;o++){const i=t[o];if((0,f.i)(i.value))throw new c.D$(e,c.TX.NoFunctionInDictionary,n);if(!1===(0,X.Kg)(i.key))throw new c.D$(e,c.TX.KeyMustBeString,n);let l=i.key.toString();const s=l.toLowerCase();a.has(s)?l=a.get(s):a.set(s,l),i.value===f.v?r[l]=null:r[l]=i.value}const o=new l.A(r);return o.immutable=!1,o}(e,n);default:throw new c.D$(e,c.TX.Unrecognized,n)}}catch(t){throw(0,c.Nh)(e,n,t)}}async function C(e,n){n.breakpoint&&await n.breakpoint();try{switch(n.type){case"ImportDeclaration":return await async function(e,n){const t=(0,r.X)(n.specifiers[0].local),a=e.libraryResolver.loadLibrary(t);let o;return e.libraryResolver._moduleSingletons?.has(a.uri)?o=e.libraryResolver._moduleSingletons.get(a.uri):(o=new I(a),await o.loadModule(e),e.libraryResolver._moduleSingletons?.set(a.uri,o)),e.globalScope[t]={value:o},f.v}(e,n);case"ExportNamedDeclaration":return await async function(e,n){if(await C(e,n.declaration),"FunctionDeclaration"===n.declaration.type)e.exports[(0,r.X)(n.declaration.id)]="function";else if("VariableDeclaration"===n.declaration.type)for(const t of n.declaration.declarations)e.exports[(0,r.X)(t.id)]="variable";return f.v}(e,n);case"VariableDeclaration":return await M(e,n,0);case"BlockStatement":return await k(e,n);case"FunctionDeclaration":return await async function(e,n){const t=(0,r.X)(n.id);return e.globalScope[t]={value:new N(n,e)},f.v}(e,n);case"ReturnStatement":return await async function(e,n){if(null===n.argument)return new f.R(f.v);const t=await x(e,n.argument);return new f.R(t)}(e,n);case"IfStatement":return await async function(e,n){const t=await x(e,n.test);if(!0===t)return C(e,n.consequent);if(!1===t)return null!==n.alternate?C(e,n.alternate):f.v;throw new c.D$(e,c.TX.BooleanConditionRequired,n)}(e,n);case"ExpressionStatement":return await async function(e,n){const t=await x(e,n.expression);return t===f.v?f.v:new f.I(t)}(e,n);case"ForStatement":return await async function(e,n){try{for(null!==n.init&&("VariableDeclaration"===n.init.type?await C(e,n.init):await x(e,n.init));;){if(null!==n.test){const t=await x(e,n.test);if(!0===e.abortSignal?.aborted)throw new c.D$(e,c.TX.Cancelled,n);if(!1===t)break;if(!0!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n)}const t=await C(e,n.body);if(t===f.w)break;if(t instanceof f.R)return t;null!==n.update&&await x(e,n.update)}return f.v}catch(e){throw e}}(e,n);case"WhileStatement":return await async function(e,n){let t=await x(e,n.test);if(!1===t)return f.v;if(!0!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n);for(;!0===t;){const r=await C(e,n.body);if(r===f.w)break;if(r instanceof f.R)return r;if(t=await x(e,n.test),!0!==t&&!1!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n)}return f.v}(e,n);case"ForInStatement":return await async function(e,n){const t=await x(e,n.right);"VariableDeclaration"===n.left.type&&await C(e,n.left);const a=(0,r.X)("VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);let o=null;if(null!=e.localScope&&void 0!==e.localScope[a]&&(o=e.localScope[a]),null===o&&void 0!==e.globalScope[a]){const n=e.globalScope[a].value;o=e.globalScope[a]={value:n}}if(null===o)throw new c.D$(e,c.TX.InvalidIdentifier,n);return(0,X.cy)(t)||(0,X.Kg)(t)?await E(e,n,t,o):(0,f.m)(t)?await R(e,n,t,o):t instanceof l.A||(0,f.y)(t)?await E(e,n,t.keys(),o,"k"):(0,f.p)(t)?await J(e,n,t,o):(0,f.l)(t)?await E(e,n,(0,i.T)(t),o,"k"):f.v}(e,n);case"ForOfStatement":return await async function(e,n){const t=await x(e,n.right);"VariableDeclaration"===n.left.type&&await C(e,n.left);const a=(0,r.X)("VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);let o=null;if(null!=e.localScope&&void 0!==e.localScope[a]&&(o=e.localScope[a]),null===o&&void 0!==e.globalScope[a]){const n=e.globalScope[a].value;o=e.globalScope[a]={value:n}}if(null===o)throw new c.D$(e,c.TX.InvalidIdentifier,n);return(0,X.cy)(t)||(0,X.Kg)(t)?await E(e,n,t,o,"k"):(0,f.m)(t)?await R(e,n,t,o,"k"):t instanceof l.A||(0,f.y)(t)?await async function(e,n,t,r){for(const a of t.keys()){const o=t.field(a);r.value=new l.A({key:a,value:o});const i=await C(e,n.body);if(i===f.w)break;if(i instanceof f.R)return i}return f.v}(e,n,t,o):(0,f.p)(t)?await J(e,n,t,o):(0,f.l)(t)?await async function(e,n,t,r){for(const a of(0,i.T)(t)){const o=(0,i.Bl)(t,a,e,n,1);r.value=new l.A({key:a,value:o});const c=await C(e,n.body);if(c===f.w)break;if(c instanceof f.R)return c}return f.v}(e,n,t,o):f.v}(e,n);case"BreakStatement":return f.w;case"EmptyStatement":return f.v;case"ContinueStatement":return f.x;default:throw new c.D$(e,c.TX.Unrecognized,n)}}catch(t){throw(0,c.Nh)(e,n,t)}}async function E(e,n,t,r,a="i"){const o=t.length;for(let i=0;i<o;i++){if("k"===a){if(i>=t.length)throw new c.D$(e,c.TX.OutOfBounds,n);r.value=t[i]}else r.value=i;const o=await C(e,n.body);if(o===f.w)break;if(o instanceof f.R)return o}return f.v}async function R(e,n,t,r,a="i"){const o=t.length();for(let i=0;i<o;i++){r.value="k"===a?t.get(i):i;const o=await C(e,n.body);if(o===f.w)break;if(o instanceof f.R)return o}return f.v}async function J(e,n,t,r){const a=t.iterator(e.abortSignal);let o;for(;null!=(o=await a.next());){const a=s.A.createFromGraphicLikeObject(o.geometry,o.attributes,t,e.timeZone);a._underlyingGraphic=o,r.value=a;const i=await C(e,n.body);if(i===f.w)break;if(i instanceof f.R)return i}return f.v}function P(e,n,t,r,a){switch(n){case"=":return e===f.v?null:e;case"/=":return(0,f.t)(t)/(0,f.t)(e);case"*=":return(0,f.t)(t)*(0,f.t)(e);case"-=":return(0,f.t)(t)-(0,f.t)(e);case"+=":return(0,X.Kg)(t)||(0,X.Kg)(e)?(0,f.f)(t)+(0,f.f)(e):(0,f.t)(t)+(0,f.t)(e);case"%=":return(0,f.t)(t)%(0,f.t)(e);default:throw new c.D$(a,c.TX.UnsupportedOperator,r)}}async function k(e,n){return L(e,n,0)}async function L(e,n,t){if(t>=n.body.length)return f.v;const r=await C(e,n.body[t]);return r instanceof f.R||r===f.w||r===f.x||t===n.body.length-1?r:L(e,n,t+1)}async function M(e,n,t){return t>=n.declarations.length||(await async function(e,n){let t=null;if(t=null===n.init?null:await x(e,n.init),null!==e.localScope){if(t===f.v&&(t=null),"Identifier"!==n.id.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);const a=(0,r.X)(n.id);return void(null!=e.localScope&&(e.localScope[a]={value:t}))}if("Identifier"!==n.id.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);const a=(0,r.X)(n.id);t===f.v&&(t=null),e.globalScope[a]={value:t}}(e,n.declarations[t]),t===n.declarations.length-1||await M(e,n,t+1)),f.v}function K(e,n){const t=(0,r.X)(n);if(null!=e.localScope&&void 0!==e.localScope[t])return e.localScope[t].value;if(void 0!==e.globalScope[t])return e.globalScope[t].value;throw new c.D$(e,c.TX.InvalidIdentifier,n)}async function B(e,n){(0,f.D)(null===n.arguments?[]:n.arguments,3,3,e,n);const t=await x(e,n.arguments[0]);if(!1===(0,X.Lm)(t))throw new c.D$(e,c.TX.BooleanConditionRequired,n);return x(e,t?n.arguments[1]:n.arguments[2])}async function U(e,n){(0,f.D)(null===n.arguments?[]:n.arguments,2,3,e,n);const t=await x(e,n.arguments[0]);if(3===n.arguments.length){const r=await x(e,n.arguments[1]),a=(0,i.jd)(t,r);return null!=a&&""!==a?a:x(e,n.arguments[2])}return null==t||""===t?x(e,n.arguments[1]):t}async function j(e,n){if(n.arguments.length<2)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);if(2===n.arguments.length)return x(e,n.arguments[1]);if((n.arguments.length-1)%2==0)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);return Z(e,n,1,await x(e,n.arguments[0]))}async function Z(e,n,t,r){const a=await x(e,n.arguments[t]);if((0,f.A)(a,r))return x(e,n.arguments[t+1]);const o=n.arguments.length-t;return 1===o?x(e,n.arguments[t]):2===o?null:3===o?x(e,n.arguments[t+2]):Z(e,n,t+2,r)}async function q(e,n){if(n.arguments.length<3)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);if(n.arguments.length%2==0)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);const t=await x(e,n.arguments[0]);if(!1===(0,X.Lm)(t))throw new c.D$(e,c.TX.BooleanConditionRequired,n.arguments[0]);return G(e,n,0,t)}async function G(e,n,t,r){if(!0===r)return x(e,n.arguments[t+1]);if(3==n.arguments.length-t)return x(e,n.arguments[t+2]);const a=await x(e,n.arguments[t+2]);if(!1===(0,X.Lm)(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n.arguments[t+2]);return G(e,n,t+2,a)}const W=function(){const e=Object.create(null);(0,h.d)(e,$),(0,D.d)(e,$),(0,g.d)(e,$,K),(0,v.d)(e,$),(0,m.d)(e,$),(0,S.d)(e,$),(0,y.registerFunctions)({functions:e,compiled:!1,signatures:null,evaluateIdentifier:null,mode:"async",standardFunction:$,standardFunctionAsync:F}),e.iif=B,e.defaultvalue=U,e.decode=j,e.when=q;const n=function(){const e=new l.A({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});e.immutable=!1,this.textformatting={value:e}};(n.prototype=Object.create(null)).infinity=Object.freeze({value:Number.POSITIVE_INFINITY}),n.prototype.pi=Object.freeze({value:Math.PI});for(const[t,r]of Object.entries(e))n.prototype[t]=Object.freeze({value:new u.UQ(r)});return n}();function Y(e){const n={mode:"async",compiled:!1,functions:Object.create(null),signatures:[],standardFunction:$,standardFunctionAsync:F,evaluateIdentifier:K};for(let t=0;t<e.length;t++)e[t].registerFunctions(n);for(const[e,t]of Object.entries(n.functions))W.prototype[e]=Object.freeze({value:new u.UQ(t)});for(let e=0;e<n.signatures.length;e++)(0,d.WC)(n.signatures[e],"async")}function z(e,n,t){const r=new W;null==e&&(e={}),null==n&&(n={});for(const e in n)r[e]={value:new u.UQ(n[e])};for(const n in e)r[n]={value:(0,X.DU)(e[n])?s.A.createFromGraphic(e[n],t):e[n]};return r}function V(e){console.log(e)}async function _(e,n){const t=n.spatialReference??A.A.WebMercator;let a=null;e.usesModules&&(a=new o.a(new Map,e.loadedModules));const i=z(n.vars,n.customfunctions,n.timeZone),l={spatialReference:t,services:n.services,exports:{},libraryResolver:a,abortSignal:n.abortSignal??r._,globalScope:i,console:n.console??V,timeZone:n.timeZone??null,lrucache:n.lrucache,interceptor:n.interceptor,localScope:null,depthCounter:{depth:1}},s=await k(l,e);if(s instanceof f.R||s instanceof f.I){const e=s.value;if((0,f.C)(e))return null;if((0,f.i)(e))throw new c.D$(l,c.TX.IllegalResult,null);return e}if((0,f.C)(s))return null;if(s===f.w)throw new c.D$(l,c.TX.IllegalResult,null);if(s===f.x)throw new c.D$(l,c.TX.IllegalResult,null);throw new c.D$(l,c.TX.NeverReach,null)}Y([p.A]),Y([w.A])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(60864),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(42837),l(89390),l(98619),l(22393),l(59469),l(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(60864),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(42837),l(89390),l(98619),l(22393),l(59469),l(28056),l(96598),l(42398),l(58614),l(27950),l(20693),l(33079),l(71988),l(20304),l(31821),l(63761),l(46540),l(60517),l(14113);var s=l(57323)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{8303:(e,t,i)=>{i.d(t,{A:()=>T});var a=i(90237),s=i(92602),r=i(70333),n=i(78888),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(74887),u=i(84952),y=i(10107),c=(i(44208),i(87811),i(36005)),f=i(40608),g=i(43937),m=i(77548),w=i(20655),M=i(80812),b=i(41318),_=i(10407);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new M.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new M.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,_.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=w.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?b.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||w.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a._)([(0,y.MZ)({type:M.default})],t.prototype,"portalItem",null),(0,a._)([(0,c.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,a._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,a._)([(0,y.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,a._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},v={credential:null,user:null}},18768:(e,t,i)=>{i.d(t,{b:()=>l});var a=i(90237),s=i(53966),r=i(10107),n=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,a._)([(0,r.MZ)()],t.prototype,"title",null),(0,a._)([(0,r.MZ)({type:String})],t.prototype,"url",null),t=(0,a._)([(0,n.$)("esri.layers.mixins.ArcGISService")],t),t}},28692:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G});var a=i(90237),s=i(67996),r=i(5503),n=i(49186),o=i(53966),l=i(91869),d=i(92071),h=i(74887),p=i(36708),u=i(84952),y=i(13069),c=i(10107),f=(i(44208),i(87811),i(36005)),g=i(40608),m=i(43937),w=i(35666),M=i(4146),b=i(80340),_=i(70643),T=i(85342),v=i(18768),D=i(63074),A=i(69208),I=i(16131),S=i(8303),L=i(54310),P=i(25036),E=i(10873),k=i(51806),C=i(97159);let N=class extends((0,D.dM)((0,P.j)((0,L.J)((0,v.b)((0,I.q)((0,S.A)((0,d.P)((0,A.d)(M.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(_.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(_.A)),this.type="knowledge-graph",this.url=null,this.addHandles((0,p.wB)((()=>this.layers.concat(this.tables)),((e,t)=>this._handleSublayersChange(e,t)),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(),await this._initializeLayerProperties(),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,T.qN)(this)}async _fetchMetadata(){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const e=await(0,k.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=e,this._forEachGraphType((e=>{e.name&&this._graphTypeLookup.set(e.name,e)}))}async _initializeLayerProperties(){this.originIdOf("inclusionModeDefinition")===w.Gr.USER?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(),this._setMemberTypes(),this.dataManager=new b.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(){const e=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach((t=>{const i=this._graphTypeLookup.get(t.graphTypeName);i&&!e.namedTypeDefinitions.has(i.name)&&e.namedTypeDefinitions.set(i.name,{useAllData:!0})})),this.setAtOrigin("inclusionModeDefinition",e,(0,w.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach(((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))}));else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach(((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}})),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach((t=>{e(t)}))}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=[],i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(this.dataManager.sublayerCaches.has(a.typeName)||(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.push(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,(()=>new Set)).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,T.qN)(this,t),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach((e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)}))}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new _.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach((t=>{t.parentCompositeLayer=this;const i=e.find((e=>e.type===t.graphType&&e.name===t.graphTypeName));i&&(t.objectType=i,this._updateSublayerCaches(i))}))}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then((s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})})))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.removeHandles("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this})),e.on("after-remove",(({item:e})=>{e.parent=null}))],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=w.Gr.PORTAL_ITEM&&e<w.Gr.USER}readDefinitionSetMap(e,t,i){return(0,C.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,w.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,C.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(l===w.Gr.USER||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,C.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.originIdOf("layers")===w.Gr.DEFAULTS?this._createSublayers(e,this.layers,(e=>!!e.geometryType)):this._updateSublayers(e,this.layers),this.originIdOf("tables")===w.Gr.DEFAULTS?this._createSublayers(e,this.tables,(e=>!e.geometryType)):this._updateSublayers(e,this.tables),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((e=>{i.add(e.id)}))}))}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,(()=>new Set));const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,T.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,(()=>new Set)),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a._)([(0,c.MZ)()],N.prototype,"dataManager",void 0),(0,a._)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],N.prototype,"definitionSetMap",void 0),(0,a._)([(0,f.w)("definitionSetMap")],N.prototype,"readDefinitionSetMap",null),(0,a._)([(0,m.K)("definitionSetMap")],N.prototype,"writeDefinitionSetMap",null),(0,a._)([(0,c.MZ)()],N.prototype,"inclusionModeDefinition",null),(0,a._)([(0,c.MZ)()],N.prototype,"knowledgeGraph",void 0),(0,a._)([(0,c.MZ)({type:r.A.ofType(_.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"layers",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"memberEntityTypes",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"memberRelationshipTypes",void 0),(0,a._)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],N.prototype,"operationalLayerType",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"sublayerIdsCache",void 0),(0,a._)([(0,c.MZ)({type:r.A.ofType(_.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"tables",void 0),(0,a._)([(0,c.MZ)({json:{read:!1}})],N.prototype,"type",void 0),(0,a._)([(0,c.MZ)(E.OZ)],N.prototype,"url",void 0),N=(0,a._)([(0,g.$)("esri.layers.KnowledgeGraphLayer")],N);const G=N},69208:(e,t,i)=>{i.d(t,{d:()=>n});var a=i(90237),s=i(10107),r=(i(44208),i(53966),i(87811),i(40608));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,a._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,a._)([(0,r.$)("esri.layers.mixins.CustomParametersMixin")],t),t}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{8303:(e,t,i)=>{i.d(t,{A:()=>T});var a=i(90237),s=i(92602),r=i(70333),n=i(78888),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(74887),u=i(84952),y=i(10107),c=(i(44208),i(87811),i(36005)),f=i(40608),g=i(43937),m=i(77548),w=i(20655),M=i(80812),b=i(41318),_=i(10407);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new M.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new M.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,_.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=w.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?b.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||w.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a._)([(0,y.MZ)({type:M.default})],t.prototype,"portalItem",null),(0,a._)([(0,c.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,a._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,a._)([(0,y.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,a._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},v={credential:null,user:null}},18768:(e,t,i)=>{i.d(t,{b:()=>l});var a=i(90237),s=i(53966),r=i(10107),n=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,a._)([(0,r.MZ)()],t.prototype,"title",null),(0,a._)([(0,r.MZ)({type:String})],t.prototype,"url",null),t=(0,a._)([(0,n.$)("esri.layers.mixins.ArcGISService")],t),t}},28692:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G});var a=i(90237),s=i(67996),r=i(5503),n=i(49186),o=i(53966),l=i(91869),d=i(92071),h=i(74887),p=i(36708),u=i(84952),y=i(13069),c=i(10107),f=(i(44208),i(87811),i(36005)),g=i(40608),m=i(43937),w=i(35666),M=i(4146),b=i(80340),_=i(70643),T=i(85342),v=i(18768),D=i(63074),A=i(69208),I=i(16131),S=i(8303),L=i(54310),P=i(25036),E=i(10873),k=i(51806),C=i(97159);let N=class extends((0,D.dM)((0,P.j)((0,L.J)((0,v.b)((0,I.q)((0,S.A)((0,d.P)((0,A.d)(M.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(_.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(_.A)),this.type="knowledge-graph",this.url=null,this.addHandles((0,p.wB)((()=>this.layers.concat(this.tables)),((e,t)=>this._handleSublayersChange(e,t)),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(),await this._initializeLayerProperties(),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,T.qN)(this)}async _fetchMetadata(){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const e=await(0,k.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=e,this._forEachGraphType((e=>{e.name&&this._graphTypeLookup.set(e.name,e)}))}async _initializeLayerProperties(){this.originIdOf("inclusionModeDefinition")===w.Gr.USER?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(),this._setMemberTypes(),this.dataManager=new b.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(){const e=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach((t=>{const i=this._graphTypeLookup.get(t.graphTypeName);i&&!e.namedTypeDefinitions.has(i.name)&&e.namedTypeDefinitions.set(i.name,{useAllData:!0})})),this.setAtOrigin("inclusionModeDefinition",e,(0,w.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach(((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))}));else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach(((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}})),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach((t=>{e(t)}))}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some((e=>e.objectType.name===a.typeName))&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,(()=>new Set)).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,T.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach((e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)}))}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new _.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach((t=>{t.parentCompositeLayer=this;const i=e.find((e=>e.type===t.graphType&&e.name===t.graphTypeName));i&&(t.objectType=i,this._updateSublayerCaches(i))}))}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then((s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})})))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.removeHandles("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this})),e.on("after-remove",(({item:e})=>{e.parent=null}))],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=w.Gr.PORTAL_ITEM&&e<w.Gr.USER}readDefinitionSetMap(e,t,i){return(0,C.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,w.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,C.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(l===w.Gr.USER||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,C.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.originIdOf("layers")===w.Gr.DEFAULTS?this._createSublayers(e,this.layers,(e=>!!e.geometryType)):this._updateSublayers(e,this.layers),this.originIdOf("tables")===w.Gr.DEFAULTS?this._createSublayers(e,this.tables,(e=>!e.geometryType)):this._updateSublayers(e,this.tables),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((e=>{i.add(e.id)}))}))}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,(()=>new Set));const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,T.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,(()=>new Set)),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a._)([(0,c.MZ)()],N.prototype,"dataManager",void 0),(0,a._)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],N.prototype,"definitionSetMap",void 0),(0,a._)([(0,f.w)("definitionSetMap")],N.prototype,"readDefinitionSetMap",null),(0,a._)([(0,m.K)("definitionSetMap")],N.prototype,"writeDefinitionSetMap",null),(0,a._)([(0,c.MZ)()],N.prototype,"inclusionModeDefinition",null),(0,a._)([(0,c.MZ)()],N.prototype,"knowledgeGraph",void 0),(0,a._)([(0,c.MZ)({type:r.A.ofType(_.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"layers",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"memberEntityTypes",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"memberRelationshipTypes",void 0),(0,a._)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],N.prototype,"operationalLayerType",void 0),(0,a._)([(0,c.MZ)()],N.prototype,"sublayerIdsCache",void 0),(0,a._)([(0,c.MZ)({type:r.A.ofType(_.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"tables",void 0),(0,a._)([(0,c.MZ)({json:{read:!1}})],N.prototype,"type",void 0),(0,a._)([(0,c.MZ)(E.OZ)],N.prototype,"url",void 0),N=(0,a._)([(0,g.$)("esri.layers.KnowledgeGraphLayer")],N);const G=N},69208:(e,t,i)=>{i.d(t,{d:()=>n});var a=i(90237),s=i(10107),r=(i(44208),i(53966),i(87811),i(40608));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,a._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,a._)([(0,r.$)("esri.layers.mixins.CustomParametersMixin")],t),t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{71163:(n,t,e)=>{e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then((n=>{i=n,o=!0,a=void 0}))}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}},80672:(n,t,e)=>{e.d(t,{R:()=>a});var r=e(20655);function a(n,t){return null===n?t:new r.A({url:n.field("url")})}},87367:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>J});var r=e(47609),a=e(66395),i=e(85935),o=e(78502),s=e(78878),c=e(80672),u=e(81844),l=e(71163),f=e(4576),d=e(5443),w=e(91075),y=e(48526),h=e(86738),A=e(39829),m=e(82799),S=e(65864),D=e(20655),g=e(70333),N=e(78888);async function p(n,t,e){const r=g.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,N.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,N.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var O=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$(null,i.TX.InvalidParameter,null)}}function J(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]||(0,l.C)("disjoint",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("intersects",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("touches",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("crosses",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("within",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("contains",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("overlaps",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>((0,s.D)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,l.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.g)(a[0])&&(0,s.g)(a[1])||!!((0,s.k)(a[0])&&(0,s.k)(a[1])||(0,s.j)(a[0])&&(0,s.j)(a[1])))&&a[0].equals(a[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,3,3,t,e),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,l.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.f)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.D$(t,i.TX.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]?null:(0,S.rS)(await(0,l.C)("intersection",[a[0].toJSON(),a[1].toJSON()])))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(0===(a=(0,s.E)(a)).length)throw new i.D$(t,i.TX.WrongNumberOfParameters,e);const c=[];if(1===a.length)if((0,O.cy)(a[0])){for(const n of(0,s.E)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);c.push(n.toJSON())}}else{if(!(0,s.m)(a[0])){if(a[0]instanceof w.A)return(0,s.F)((0,o.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.D$(t,i.TX.InvalidParameter,e)}for(const n of(0,s.E)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);c.push(n.toJSON())}return 0===c.length?null:(0,S.rS)(await(0,l.C)("union",[c]))}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null===a[0]?null:null===a[1]?(0,o.Yq)(a[0]):(0,S.rS)(await(0,l.C)("difference",[a[0].toJSON(),a[1].toJSON()])))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>(a=(0,s.E)(a),(0,u.ZL)(a,t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.Yq)(a[1]):null===a[1]?(0,o.Yq)(a[0]):(0,S.rS)(await(0,l.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()])))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,2,t,e),!(a[1]instanceof d.A)&&null!==a[1])throw new i.D$(t,i.TX.InvalidParameter,e);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return null===a[1]?null:(0,S.rS)(await(0,l.C)("clip",[a[0].toJSON(),a[1].toJSON()]))}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,2,t,e),!(a[1]instanceof m.A)&&null!==a[1])throw new i.D$(t,i.TX.InvalidParameter,e);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return null===a[1]?[(0,o.Yq)(a[0])]:(await(0,l.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map((n=>(0,S.rS)(n)))}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,s.D)(a,1,2,t,e),a=(0,s.E)(a),(0,s.p)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,i.TX.Cancelled,e);return n}let o=a[0];if(((0,O.cy)(o)||(0,s.m)(o))&&(o=(0,s.G)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("area",[o.toJSON(),v(a[1])])}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{(0,s.D)(a,1,3,t,e);let o=(a=(0,s.E)(a))[0];((0,O.cy)(o)||(0,s.m)(o))&&(o=(0,s.G)(o,t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2])??"geodesic";if((0,s.p)(o)){const n=await o.sumArea(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,i.TX.Cancelled,e);return n}if(null==o)return 0;if(!(0,s.l)(o))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("geodeticArea",[o.toJSON(),c,f])}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,s.D)(a,1,2,t,e),a=(0,s.E)(a),(0,s.p)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,i.TX.Cancelled,e);return n}let o=a[0];if(((0,O.cy)(a[0])||(0,s.m)(a[0]))&&(o=(0,s.H)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("length",[o.toJSON(),v(a[1])])}))},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,(async(n,a,o)=>{if((0,s.D)(o,1,2,t,r),null===(o=(0,s.E)(o))[0])return 0;let c=o[0];if(((0,O.cy)(o[0])||(0,s.m)(o[0]))&&(c=(0,s.H)(o[0],t.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,u.UI)(c);return n(c.spatialReference,t(o[1]),r)}return(0,l.C)("length",[c.toJSON(),v(o[1])])}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{(0,s.D)(a,1,3,t,e);let o=(a=(0,s.E)(a))[0];((0,O.cy)(a[0])||(0,s.m)(a[0]))&&(o=(0,s.H)(a[0],t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2])??"geodesic";if((0,s.p)(o)){const n=await o.sumLength(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,i.TX.Cancelled,e);return n}if(null===o)return 0;if(!(0,s.l)(o))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("geodeticLength",[o.toJSON(),c,f])}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,s.E)(a),(0,s.D)(a,2,3,t,e);let o=a[0];if(((0,O.cy)(a[0])||(0,s.m)(a[0]))&&(o=(0,s.J)(a[0],t.spatialReference)),!(o instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);let c=a[1];if(((0,O.cy)(a[1])||(0,s.m)(a[1]))&&(c=(0,s.J)(a[1],t.spatialReference)),!(c instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("distance",[o.toJSON(),c.toJSON(),v(a[2])])}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,s.E)(a),(0,s.D)(a,2,4,t,e);const o=a[0];if(!(o instanceof h.A))throw new i.D$(t,i.TX.InvalidParameter,e);const c=a[1];if(!(c instanceof h.A))throw new i.D$(t,i.TX.InvalidParameter,e);const f=new m.A({paths:[],spatialReference:o.spatialReference});return f.addPath([o,c]),(0,l.C)("geodeticLength",[f.toJSON(),v(a[2]),(0,u.rE)(a[3])??"geodesic"])}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);const o=(0,s.t)(a[1]);if(isNaN(o))throw new i.D$(t,i.TX.InvalidParameter,e);if(o<=0)throw new i.D$(t,i.TX.InvalidParameter,e);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,S.rS)(await(0,l.C)("densify",[a[0].toJSON(),o,v(a[2])]));default:return a[0]}}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,s.E)(a),(0,s.D)(a,2,4,t,e);const o=a[0];if(null==o)return null;if(!(0,s.l)(o))throw new i.D$(t,i.TX.InvalidParameter,e);const c=(0,s.t)(a[1]);if(isNaN(c))throw new i.D$(t,i.TX.InvalidParameter,e);if(c<=0)throw new i.D$(t,i.TX.InvalidParameter,e);const f=v(a[2]),d=(0,u.rE)(a[3])??"geodesic";switch(o.type){case"polygon":case"polyline":case"extent":return(0,S.rS)(await(0,l.C)("geodeticDensify",[o.toJSON(),c,f,d]));default:return o}}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);const o=(0,s.t)(a[1]);if(isNaN(o))throw new i.D$(t,i.TX.InvalidParameter,e);const c=(0,s.e)((0,s.K)(a[2],!0));return(0,S.rS)(await(0,l.C)("generalize",[a[0].toJSON(),o,v(a[3]),{removeDegenerateParts:c}]))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);const c=(0,s.t)(a[1]);if(isNaN(c))throw new i.D$(t,i.TX.InvalidParameter,e);return 0===c?(0,o.Yq)(a[0]):(0,S.rS)(await(0,l.C)("buffer",[a[0].toJSON(),c,v(a[2])]))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,s.E)(a),(0,s.D)(a,2,4,t,e);const c=a[0];if(null==c)return null;if(!(0,s.l)(c))throw new i.D$(t,i.TX.InvalidParameter,e);const f=(0,s.t)(a[1]);if(isNaN(f))throw new i.D$(t,i.TX.InvalidParameter,e);if(0===f)return(0,o.Yq)(c);const d=v(a[2]),w=(0,u.rE)(a[3])??"geodesic";return(0,S.rS)(await(0,l.C)("geodesicBuffer",[c.toJSON(),f,d,w]))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof A.A||a[0]instanceof m.A))throw new i.D$(t,i.TX.InvalidParameter,e);const o=(0,s.t)(a[1]);if(isNaN(o))throw new i.D$(t,i.TX.InvalidParameter,e);const c=(0,s.f)(a[3]??"round").toLowerCase();let u;switch(c){case"round":case"bevel":case"miter":case"square":u=c;break;default:u="round"}const f=(0,s.t)((0,s.K)(a[4],10));if(isNaN(f))throw new i.D$(t,i.TX.InvalidParameter,e);const d=(0,s.t)((0,s.K)(a[5],0));if(isNaN(d))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,S.rS)(await(0,l.C)("offset",[a[0].toJSON(),o,v(a[2]),{joins:u,miterLimit:f,flattenError:d}]))}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);const o=a[0]instanceof d.A?A.A.fromExtent(a[0]):a[0],c=(0,s.t)(a[1]);if(isNaN(c))throw new i.D$(t,i.TX.InvalidParameter,e);const u=(0,s.K)(a[2],null);if(null===u){const n="point"===o.type?o:o.extent?.center;return(0,S.rS)(await(0,l.C)("rotate",[o.toJSON(),c,n?.x,n?.y]))}if(u instanceof h.A)return(0,S.rS)(await(0,l.C)("rotate",[o.toJSON(),c,u.x,u.y]));throw new i.D$(t,i.TX.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,1,2,t,e),null===a[0])return null;const o=(0,s.f)(a[1]??"geometric").toLowerCase();if("geometric"!==o&&"labelpoint"!==o)throw new i.D$(t,i.TX.InvalidParameter,e);let c=a[0];if(((0,O.cy)(a[0])||(0,s.m)(a[0]))&&(c="geometric"===o?(0,s.J)(a[0],t.spatialReference):(0,s.G)(a[0],t.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,S.rS)("geometric"===o?await(0,l.C)("centroid",[c.toJSON()]):await(0,l.C)("labelPoint",[c.toJSON()]))}))},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);if(a[0]instanceof h.A)return[(0,s.F)((0,o.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof d.A)return[(0,s.F)((0,o.Yq)(a[0]),t.spatialReference)];const c=(0,S.rS)(await(0,l.C)("simplify",[a[0].toJSON()]));if(c instanceof A.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,S.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof m.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,S.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.A){const n=[],e=(0,s.F)((0,o.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null}))},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,(async(n,t,e)=>{(0,s.D)(e,1,1,n,t);let r=(e=(0,s.E)(e))[0];if(((0,O.cy)(e[0])||(0,s.m)(e[0]))&&(r=(0,s.H)(e[0],n.spatialReference)),r instanceof y.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,f.aI)(n[t],n[e]))return!0;return!1}return(r instanceof m.A||r instanceof A.A)&&await(0,l.C)("isSelfIntersecting",[r.toJSON()])}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,l.C)("isSimple",[a[0].toJSON()])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,S.rS)(await(0,l.C)("simplify",[a[0].toJSON()]))}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,s.E)(a),(0,s.D)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,i.TX.InvalidParameter,e);return(0,S.rS)(await(0,l.C)("convexHull",[a[0].toJSON()]))}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,o,u)=>{(0,s.D)(u,0,2,t,e);let l=(0,s.K)(u[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,s.f)(l),0===u.length||u[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:D.A.getDefault(),u.length>0&&(n=(0,c.R)(u[0],n));const e=await p(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.L)(t))}return null}let d=null;if((0,s.p)(u[0])&&(d=u[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.L)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:D.A.getDefault(),e=(0,c.R)(new r.A(n),e);const i=await p(e,l,f);if(i){const n=JSON.parse(JSON.stringify(i));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.L)(t))}return null}throw new i.D$(t,i.TX.InvalidParameter,e)}))},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,o)=>{if(o=(0,s.E)(o),(0,s.D)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,i.TX.InvalidParameter,e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,i.TX.InvalidParameter,e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestCoordinate",[c.toJSON(),o[1].toJSON(),{calculateLeftRightSide:!0}]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,S.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.rightSide?"right":"left"},(0,s.L)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,o)=>{if(o=(0,s.E)(o),(0,s.D)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,i.TX.InvalidParameter,e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,i.TX.InvalidParameter,e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestVertex",[c.toJSON(),o[1].toJSON()]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,S.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.rightSide?"right":"left"},(0,s.L)(t),!1,!0)}))})}}}]);
|