@arcgis/core 4.30.0-next.20240313 → 4.30.0-next.20240315

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.
Files changed (198) hide show
  1. package/arcade/featureset/support/FeatureSet.js +1 -1
  2. package/arcade/functions/knowledgegraph.js +1 -1
  3. package/arcade/functions/maths.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{90c569353df5af9ed368.js → 0877c99e0338f8e7c0c8.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{c76e155332aa0491de3d.js → 0ef3fee7614596d591ba.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{2d60f3af5886b7dea9ee.js → 12b95408753cea053a40.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{b93e601da1592f153a3d.js → 13b6de78894ba1a70ace.js} +1 -1
  9. package/assets/esri/core/workers/chunks/14b9001a3233075dd1b7.js +1 -0
  10. package/assets/esri/core/workers/chunks/16397420fb6067b47b25.js +1 -0
  11. package/assets/esri/core/workers/chunks/{67abe8171d41cf21624f.js → 1696784da83588878989.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{a38ab7cb733426de9588.js → 25d68c7837631f497edb.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{39ff4d571abbd2df5d5b.js → 2707b8ef8ca636e184ba.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2d0a01d0957b3e4512f6.js +1 -0
  15. package/assets/esri/core/workers/chunks/4b25dc661bb958e651fd.js +1 -0
  16. package/assets/esri/core/workers/chunks/{f5a0f106d9edaddb83fa.js → 4e4c146796a47da2c5a1.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{f46bc8e507d75d218ac7.js → 5929931ff9ecde6cc084.js} +1 -1
  18. package/assets/esri/core/workers/chunks/5a747af5273646ab848c.js +1 -0
  19. package/assets/esri/core/workers/chunks/{da7189c3077f49858dc8.js → 5b6fe9c935e065d59ab7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/6867fe9937c49e99eb6f.js +2 -0
  21. package/assets/esri/core/workers/chunks/{fd4ec788953d9776126f.js → 7bc977db7b2dc3d238b5.js} +1 -1
  22. package/assets/esri/core/workers/chunks/7d7c0aee461571a7c1f8.js +1 -0
  23. package/assets/esri/core/workers/chunks/{03ae0196aafcb6146f61.js → 7f87af6ec7160e9fd713.js} +1 -1
  24. package/assets/esri/core/workers/chunks/8ca8ae3207b1025d0116.js +1 -0
  25. package/assets/esri/core/workers/chunks/8cdfd39b5f4d12c77f0b.js +1 -0
  26. package/assets/esri/core/workers/chunks/{893d96c21d929d38ab58.js → 8efb216c3250bd3a5bd8.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{c0217dde5ff4d6a4c14c.js → 8fc69ac4cce6d4dd5513.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{a1a557cbfb0aa915f81b.js → 95d7b168991ddb3a96ca.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{67ab6af927ea04c01a40.js → a658dd87b1b59e9cf2a3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{c67b99d2a8376a15a71b.js → bd6a9816d88d757f143e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{933f56e7299a5844e367.js → de33bb5df97c66623b68.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{9656002ff528a7eda746.js → e5cb8297d5824f139b3e.js} +1 -1
  33. package/assets/esri/core/workers/chunks/eb3e82ed1653ecf348da.js +1 -0
  34. package/assets/esri/core/workers/chunks/f969c134b1694c4c7cb4.js +1 -0
  35. package/assets/esri/core/workers/chunks/{85d573c58a6b80c38c1d.js → fe7dfb8546d0fc40843c.js} +1 -1
  36. package/assets/esri/themes/base/widgets/_Popup.scss +4 -0
  37. package/assets/esri/themes/dark/main.css +1 -1
  38. package/assets/esri/themes/light/main.css +1 -1
  39. package/assets/esri/themes/light/view.css +1 -1
  40. package/chunks/terrainUtilsPlanar.js +1 -1
  41. package/chunks/terrainUtilsSpherical.js +1 -1
  42. package/core/arrayUtils.js +1 -1
  43. package/interfaces.d.ts +93 -18
  44. package/layers/support/ControlPointsGeoreference.js +1 -1
  45. package/layers/support/CornersGeoreference.js +1 -1
  46. package/layers/support/ExtentAndRotationGeoreference.js +1 -1
  47. package/layers/support/LocalMediaElementSource.js +1 -1
  48. package/networks/Network.js +1 -1
  49. package/networks/UtilityNetwork.js +1 -1
  50. package/package.json +1 -1
  51. package/portal/PortalItemResource.js +1 -1
  52. package/renderers/support/DictionaryLoader.js +1 -1
  53. package/renderers/support/RasterSymbolizer.js +1 -1
  54. package/rest/featureService/FeatureService.js +1 -1
  55. package/rest/geoprocessor/utils.js +1 -1
  56. package/smartMapping/raster/support/adapters/ImageryTileLayerAdapter.js +1 -1
  57. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  58. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  59. package/support/revision.js +1 -1
  60. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  61. package/symbols/cim/Rasterizer.js +1 -1
  62. package/symbols/cim/TextRasterizer.js +1 -1
  63. package/symbols/cim/cimAnalyzer.js +1 -1
  64. package/undoredo/support/ApplySet.js +5 -0
  65. package/undoredo/support/ApplySetItem.js +5 -0
  66. package/versionManagement/VersionManagementService.js +1 -1
  67. package/views/2d/engine/DisplayObject.js +1 -1
  68. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugContainer.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugLayer.js +1 -1
  72. package/views/2d/engine/webgl/shaderGraph/techniques/TestDisplayObject.js +1 -1
  73. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  74. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  75. package/views/2d/layers/MediaLayerView2D.js +1 -1
  76. package/views/2d/layers/TileLayerView2D.js +1 -1
  77. package/views/2d/layers/features/FeatureContainer.js +1 -1
  78. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  79. package/views/2d/layers/features/Processor.js +1 -1
  80. package/views/2d/magnifier/MagnifierView2D.js +1 -1
  81. package/views/2d/support/hitTestUtils.js +1 -1
  82. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  83. package/views/3d/analysis/Dimension/LengthDimensionVisualization.js +1 -1
  84. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  85. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  86. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  87. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  88. package/views/3d/environment/LocalAtmosphere.js +1 -1
  89. package/views/3d/environment/Precipitation.js +1 -1
  90. package/views/3d/environment/Stars.js +1 -1
  91. package/views/3d/glTF/internal/Resource.js +1 -1
  92. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  93. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +5 -0
  94. package/views/3d/interactive/editingTools/ManipulatedObject3DMediaElement.js +5 -0
  95. package/views/3d/interactive/editingTools/lineObjectVisualElementUtils.js +1 -1
  96. package/views/3d/interactive/editingTools/manipulations/MoveXYObjectManipulation.js +1 -1
  97. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  98. package/views/3d/interactive/editingTools/media/MediaElementControllerControlPoints.js +5 -0
  99. package/views/3d/interactive/editingTools/media/MediaElementControllerShape.js +5 -0
  100. package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +5 -0
  101. package/views/3d/interactive/editingTools/media/mediaElementUtils.js +5 -0
  102. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  103. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  104. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  105. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  106. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  107. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  108. package/views/3d/interactive/editingTools/transform/extentTransform/PreserveAspectRatio.js +1 -1
  109. package/views/3d/interactive/editingTools/transform/extentTransform/SnapRotation.js +5 -0
  110. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  111. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  112. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  113. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  114. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  115. package/views/3d/layers/I3SMeshView3D.js +1 -1
  116. package/views/3d/layers/MediaLayerView3D.js +1 -1
  117. package/views/3d/layers/PointCloudWorker.js +1 -1
  118. package/views/3d/layers/PointCloudWorkerHandle.js +1 -1
  119. package/views/3d/layers/TiledLayerView3D.js +1 -1
  120. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  121. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  122. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  123. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  124. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  125. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  126. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  127. package/views/3d/layers/graphics/Graphics3DObjectStates.js +1 -1
  128. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  129. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  130. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  131. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  132. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  133. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  134. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  135. package/views/3d/layers/support/MediaLayerInteraction.js +5 -0
  136. package/views/3d/layers/support/MediaLayerInteractionOptions.js +5 -0
  137. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  138. package/views/3d/support/hitTest.js +1 -1
  139. package/views/3d/terrain/ExtentHelper.js +1 -1
  140. package/views/3d/terrain/TilingScheme.js +1 -1
  141. package/views/3d/terrain/terrainUtils.js +1 -1
  142. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  143. package/views/MapView.js +1 -1
  144. package/views/draw/DrawAction.js +1 -1
  145. package/views/draw/support/Box.js +1 -1
  146. package/views/draw/support/GraphicMover.js +1 -1
  147. package/views/draw/support/Reshape.js +1 -1
  148. package/views/input/ViewEvents.js +1 -1
  149. package/views/input/gamepad/GamepadSource.js +1 -1
  150. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  151. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  152. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  153. package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
  154. package/views/interactive/keybindings.js +1 -1
  155. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  156. package/views/interactive/snapping/LineSnapper.js +1 -1
  157. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  158. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  159. package/views/interactive/snapping/SnappingManager.js +1 -1
  160. package/views/interactive/snapping/SnappingVisualizer.js +1 -1
  161. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  162. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  163. package/views/interactive/snapping/featureSources/featureServiceSource/PendingFeatureTile.js +1 -1
  164. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  165. package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
  166. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  167. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  168. package/views/layers/MediaLayerView.d.ts +4 -0
  169. package/views/layers/MediaLayerView.js +5 -0
  170. package/views/support/waitForResources.js +1 -1
  171. package/views/webgl/ContextState.js +1 -1
  172. package/views/webgl/RenderingContext.js +1 -1
  173. package/widgets/BasemapLayerList.js +1 -1
  174. package/widgets/Bookmarks.js +1 -1
  175. package/widgets/Home.js +1 -1
  176. package/widgets/LayerList/support/layerListUtils.js +1 -1
  177. package/widgets/LayerList.js +1 -1
  178. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  179. package/widgets/OrientedImageryViewer/utils.js +1 -1
  180. package/widgets/Popup/css.js +1 -1
  181. package/widgets/Popup.js +1 -1
  182. package/widgets/Sketch/SketchViewModel.js +1 -1
  183. package/widgets/TableList.js +1 -1
  184. package/widgets/UtilityNetworkAssociations.js +1 -1
  185. package/widgets/Zoom.js +1 -1
  186. package/assets/esri/core/workers/chunks/0feee6447793bc42df9d.js +0 -1
  187. package/assets/esri/core/workers/chunks/1805a6e63a1bfe6950be.js +0 -1
  188. package/assets/esri/core/workers/chunks/2ceebeac397374a126ba.js +0 -2
  189. package/assets/esri/core/workers/chunks/678ffc061fe5dec51930.js +0 -1
  190. package/assets/esri/core/workers/chunks/6c5ea910265d4f6a368d.js +0 -1
  191. package/assets/esri/core/workers/chunks/6fa0abf415859f40ea6c.js +0 -1
  192. package/assets/esri/core/workers/chunks/a1978ae86e466020dd28.js +0 -1
  193. package/assets/esri/core/workers/chunks/bf041907bac8fae05c2b.js +0 -1
  194. package/assets/esri/core/workers/chunks/c018ce3935d5f1e60e3c.js +0 -1
  195. package/assets/esri/core/workers/chunks/cccf63c65070c6a47b16.js +0 -1
  196. package/assets/esri/core/workers/chunks/d2e4c01e33691801f9ef.js +0 -1
  197. package/views/3d/interactive/editingTools/ManipulatedObjectGraphic3D.js +0 -5
  198. /package/assets/esri/core/workers/chunks/{2ceebeac397374a126ba.js.LICENSE.txt → 6867fe9937c49e99eb6f.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4784],{54784:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(85978),a=n(87449),s=n(11221),i=n(89169),l=n(33325),u=n(14469);class o extends s.A{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new i.A(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===l.J6.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?l.J6.Unknown:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":return(0,u.HY)((0,l.Yc)(this._relationGeom),(0,l.Yc)(e.geometry));case"esriSpatialRelIntersects":return(0,u.HY)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,u.gR)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,u.$f)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,u.ux)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,u.yI)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,u.NN)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,u.c7)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,n){const r=new i.A([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=l.J6.InFeatureSet:this._idstates[e[n]]=l.J6.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let l;return this._checkCancelled(a),l=null!==t?new i.A(s._candidates.slice(0).concat(s._known.slice(0)),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new i.A(s._candidates.slice(0),s._known.slice(0),s._ordered,this._clonePageDefinition(s.pagesDefinition)),l}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,s,i,l)}static registerAction(){s.A._featuresetFunctions.intersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},s.A._featuresetFunctions.envelopeIntersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},s.A._featuresetFunctions.contains=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},s.A._featuresetFunctions.overlaps=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},s.A._featuresetFunctions.within=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},s.A._featuresetFunctions.touches=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},s.A._featuresetFunctions.crosses=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},s.A._featuresetFunctions.relate=function(e,t){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}getFieldsIndex(){return this._parent.getFieldsIndex()}}},85978:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(87449),a=n(11221),s=n(89169),i=n(33325);class l extends a.A{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.A([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=i.zl.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return i.J6.NotInFeatureSet}async _getFeature(){throw new r.dr(r.D_.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.dr(r.D_.NeverReach)}async _getFilteredSet(){return new s.A([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},11221:(e,t,n)=>{n.d(t,{A:()=>_});var r=n(23732),a=n(87449),s=n(93833);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}async nextBatchAsArcadeFeatures(e,t){const n=await this.nextBatch(e);return null===n?n:n.map((e=>s.A.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t)))}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise(((r,a)=>{this._parent._getSet(this._progress).then((s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then((n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}));const u=s._candidates;if(l>=this._lastId+e||0===u.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,n)=>{this._parent._getSet(this._progress).then((r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then((n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(89169),u=n(33325),o=n(50145),c=n(74887),h=n(50835),d=n(14469),f=n(16930),p=n(95466);class _{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=u.zl.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new f.A({wkid:4326}),this.geometryType=u.ik.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=p.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new a.dr(a.D_.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(this._databaseType===u.zl.NotEvaluated){if(null!==r.A.applicationCache){const e=r.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.A.applicationCache&&r.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.A.applicationCache&&r.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:u.zl.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:u.zl.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:u.zl.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return u.zl.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr(a.D_.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return u.J6.Unknown}_getSet(e){throw new a.dr(a.D_.NotImplemented)}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new a.dr(a.D_.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.A([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,s){throw new a.dr(a.D_.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const o=this._isInFeatureSet(l);if(o===u.J6.InFeatureSet)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(o===u.J6.NotInFeatureSet)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(o===u.J6.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.A([],[],e._ordered,null);return r._candidates=e._candidates.slice(0),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,s){if(null===this._parent)throw new a.dr(a.D_.NotImplemented);return this._parent._expandPagedSet(e,t,n,r,s)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,o.U9)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,o.dM)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,o.i2)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,o.b$)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,o.GV)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,o.cz)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,o.jk)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,o.T9)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,r)=>{this._unionShapeInBatches(n,t,e,r)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)}))}_unionShapeInBatches(e,t,n,r){t.next().then((a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,d.KC)(e).then((s=>{try{null===a?n(s):(e=[s],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}}),r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}}),r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return _._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return _._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return _._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return _._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return _._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return _._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return _._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return _._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return _._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return _._featuresetFunctions.relate.bind(this)(e,t)}within(e){return _._featuresetFunctions.within.bind(this)(e)}touches(e){return _._featuresetFunctions.touches.bind(this)(e)}top(e){return _._featuresetFunctions.top.bind(this)(e)}crosses(e){return _._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return _._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return _._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return _._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return _._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return _._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)}))}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)}));e.next().then((l=>{try{if(null===l)a(n);else{const u=t(n,l,r,this);(0,c.$X)(u)?u.then((n=>{this._reduceImpl(e,t,n,r+1,a,s,i)}),s):this._reduceImpl(e,t,u,r+1,a,s,i)}}catch(e){s(e)}}),s)}catch(e){s(e)}}removeField(e){return _._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return _._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const r=(0,u.uf)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.PW)(n.geometry,r).then((t=>e+t)):(0,d._2)(n.geometry,r).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const r=(0,u.SQ)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.mh)(n.geometry,r).then((t=>e+t)):(0,d.Zu)(n.geometry,r).then((t=>e+t))),0,n)}_substituteVars(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}async distinct(e,t=1e3,n=null,r){await this.load();const a=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return this._substituteVars(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)}))}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._forEachImpl(e,t,n,r,a,s)}),0);e.next().then((i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,c.$X)(l)?l.then((()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}}),a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}}),a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,u.nE)(this.fields[e]));return this.reduce(((e,n)=>{const r={geometry:n.geometry?.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,u.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===u.yT[this.geometryType]?"esriGeometryNull":u.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1}),0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}_._featuresetFunctions={}},89169:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}},23732:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}r.applicationCache=null},80609:(e,t,n)=>{n.d(t,{C6:()=>S,DA:()=>A,F1:()=>m,F6:()=>p,IY:()=>w,Ju:()=>b,Mi:()=>c,Nf:()=>g,R8:()=>_,YY:()=>o,bD:()=>h,bm:()=>y,kg:()=>d,oj:()=>v});var r=n(66131),a=n(87449),s=n(33325),i=n(15032),l=n(50835),u=n(96285);function o(e,t){return f(e?.parseTree,t,e?.parameters)}function c(e,t,n){return f(e,t,n)}function h(e,t,n,r){return l.WhereClause.create(f(e.parseTree,s.zl.Standardised,e.parameters,t,n),r,e.timeZone)}function d(e,t,n="AND"){return l.WhereClause.create("(("+o(e,s.zl.Standardised)+")"+n+"("+o(t,s.zl.Standardised)+"))",e.fieldsIndex,e.timeZone)}function f(e,t,n,r=null,i=null){let l,u,o,c;switch(e.type){case"interval":return v(f(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=f(e.operand,t,n,r,i));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+f(e.clauses[s].operand,t,n,r,i)+" THEN "+f(e.clauses[s].value,t,n,r,i);return null!==e.else&&(a+=" ELSE "+f(e.else,t,n,r,i)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,s.$P)(r))return y(r,t);if((0,s.Lk)(r))return y(r,t);if((0,s.eg)(r))return m(r,t);if((0,s.rX)(r))return _(r,t);if((0,s.f0)(r))return g(r,t);if(r instanceof Array){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,s.$P)(r[n])||(0,s.Lk)(r[n])?e.push(y(r[n],t)):(0,s.eg)(r[n])?e.push(m(r[n],t)):(0,s.rX)(r[n])?e.push(_(r[n],t)):(0,s.f0)(r[n])?e.push(g(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":u=[];for(const a of e.value)u.push(f(a,t,n,r,i));return u;case"unary-expression":return" ( NOT "+f(e.expr,t,n,r,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+f(e.left,t,n,r,i)+" AND "+f(e.right,t,n,r,i)+") ";case"OR":return" ("+f(e.left,t,n,r,i)+" OR "+f(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),c instanceof Array?" ("+f(e.left,t,n,r,i)+" IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" IN ("+c+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),c instanceof Array?" ("+f(e.left,t,n,r,i)+" NOT IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" NOT IN ("+c+")) ");case"BETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"NOTBETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+f(e.left,t,n,r,i)+" "+e.operator+" "+f(e.right,t,n,r,i)+") ";case"||":return" ("+f(e.left,t,n,r,i)+" "+(t===s.zl.SqlServer?"+":e.operator)+" "+f(e.right,t,n,r,i)+") "}throw new a.L8(a.Z7.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return S("date"===e.mode,t);case"column-reference":return r?r.toLowerCase()===e.column.toLowerCase()?"("+i+")":!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column:e.column;case"data-type":return e.value;case"function":{const a=f(e.args,t,n,r,i);return p(e.name,a,t)}}throw new a.L8(a.Z7.UnsupportedSyntax,{node:e.type})}function p(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"ceiling"});switch(n){case s.zl.Standardised:case s.zl.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"truncate"});return n===s.zl.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"char_length"});switch(n){case s.zl.SqlServer:return"LEN("+t[0]+")";case s.zl.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case s.zl.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case s.zl.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case s.zl.Oracle:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.Postgres:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.SqlServer:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e})}function _(e,t){const n=e.toDateTime(),r=0===n.hour&&0===n.minute&&0===n.second&&0===n.millisecond;switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return r?`date '${n.toFormat("yyyy-LL-dd")}'`:`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.zl.Oracle:return r?`TO_DATE('${n.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.zl.SqlServer:return`'${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.zl.PGDB:return`#${n.toFormat(r?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.zl.Postgres:return`TIMESTAMP '${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function g(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return e.toSQLWithKeyword();case s.zl.Oracle:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case s.zl.SqlServer:return`'${e.toFormat("Y-MM-DD")}'`;case s.zl.PGDB:return`#${e.toFormat("Y-MM-DD")}#`;case s.zl.Postgres:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`;default:return e.toSQLWithKeyword()}}function m(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case s.zl.Oracle:return`TO_DATE('${e}', 'HH24:MI:SS')`;case s.zl.SqlServer:return`'${e}'`;case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Postgres:default:return`time '${e}'`}}function y(e,t){return _(r.lY.dateTimeToArcadeDate((0,s.Lk)(e)?e:u.c9.fromJSDate(e)),t)}function S(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case s.zl.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case s.zl.PGDB:case s.zl.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function w(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(T(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function T(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.clauses[s].value,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.else,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}return F(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,s.$P)(e))return"date";if((0,s.rX)(e))return"date";if((0,s.f0)(e))return"date-only";if((0,s.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(T(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return F([T(e,t.left,n,r),T(e,t.right,n,r)]);case"||":return"string";default:throw new a.L8(a.Z7.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"date";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=T(e,t.args,n,r),i instanceof Array){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=T(e,t.args,n,r),i instanceof Array&&(i=F(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=T(e,t.args,n,r),i instanceof Array?i.length>0?i[0]:"":i}return""}throw new a.L8(a.Z7.UnsupportedSyntax,{node:t.type})}const I={boolean:1,string:2,integer:3,double:4,date:5};function F(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||I[t]<I[n]?n:t);return t}return""}function b(e,t){return D(e.parseTree,t)}function A(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function v(e,t,n){let r="";return r="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+n+" "+e+" "+r}},50145:(e,t,n)=>{n.d(t,{Dp:()=>f,GV:()=>y,T9:()=>g,U9:()=>T,b$:()=>S,cz:()=>w,dM:()=>F,i2:()=>m,jk:()=>_,tQ:()=>p});var r=n(87449),a=n(33325),s=n(80609),i=n(44729),l=n(55612),u=n(15032);function o(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function c(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function h(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function d(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function f(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function p(e,t,n=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const n=[],r={},s=[];for(let i=0;i<e.length;i++){if(void 0!==e[i]&&null!==e[i]){const t=e[i];if((0,a.Et)(t)||(0,a.Kg)(t))void 0===r[t]&&(n.push(t),r[t]=1);else{let e=!1;for(let n=0;n<s.length;n++)!0===(0,a.Tf)(s[n],t)&&(e=!0);!1===e&&(s.push(t),n.push(t))}}if(n.length>=t&&-1!==t)return n}return n}(t,n);case"avg":case"mean":return o(t);case"min":return Math.min.apply(Math,t);case"sum":return d(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(c(t));case"var":case"variance":return c(t);case"count":return t.length}return 0}async function _(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.min.apply(Math,r)}async function g(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.max.apply(Math,r)}async function m(e,t,n){let r="";t&&!(0,s.DA)(t)&&(r=(0,s.IY)(t,e.fields));const a=await I(e,t,n,!0);if(0===a.length)return null;const i=o(a);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function y(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:h(r)}async function S(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.sqrt(h(r))}async function w(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:d(r)}async function T(e,t){return e.iterator(t).count()}async function I(e,t,n,a=!1){const s=e.iterator(n),o=[],c={ticker:0};let h=await s.next();for(;null!==h;){if(c.ticker++,n.aborted)throw new r.dr(r.D_.Cancelled);c.ticker%100==0&&(c.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(h);null===e?!1===a&&(o[o.length]=e):o[o.length]=e instanceof i.n||e instanceof u.k?e.toNumber():e instanceof l.g?e.toMilliseconds():e,h=await s.next()}return o}async function F(e,t,n=1e3,a=null){const s=e.iterator(a),o=[],c={},h={ticker:0};let d=await s.next();for(;null!==d;){if(h.ticker++,a&&a.aborted)throw new r.dr(r.D_.Cancelled);h.ticker%100==0&&(h.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(d);let f=e;if(e instanceof i.n?f="!!DATEONLY!!-"+e.toString():e instanceof l.g?f="!!TSOFFSETONLY!!-"+e.toString():e instanceof u.k?f="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(f="!!DATE!!-"+e.toString()),null!=e&&void 0===c[f]&&(o.push(e),c[f]=1),o.length>=n&&-1!==n)return o;d=await s.next()}return o}},14469:(e,t,n)=>{n.d(t,{$Q:()=>h,$f:()=>T,BT:()=>E,CR:()=>b,HF:()=>A,HY:()=>m,Io:()=>_,JT:()=>N,Jj:()=>d,KC:()=>C,NN:()=>p,Ow:()=>M,PW:()=>B,SE:()=>k,Zu:()=>z,_2:()=>G,aI:()=>g,c7:()=>I,cY:()=>R,e$:()=>P,fC:()=>x,gR:()=>f,iv:()=>D,jL:()=>U,mh:()=>$,nf:()=>w,pn:()=>F,px:()=>O,r:()=>L,ux:()=>S,y$:()=>v,yI:()=>y}),n(59456);var r=n(29953),a=n(86738),s=n(65864);function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function l(e){return e?Array.isArray(e)?e.map(l):e.toJSON?e.toJSON():e:e}function u(e){return Array.isArray(e)?e.map((e=>(0,s.rS)(e))):(0,s.rS)(e)}let o;async function c(e,t){return(await async function(){return o||(o=(0,r.ho)("geometryEngineWorker",{strategy:"distributed"})),o}()).invoke("executeGEOperation",{operation:e,parameters:l(t)})}async function h(e,t){return u(await c("clip",[i(e),e,t]))}async function d(e,t){return u(await c("cut",[i(e),e,t]))}function f(e,t){return c("contains",[i(e),e,t])}function p(e,t){return c("crosses",[i(e),e,t])}function _(e,t,n){return c("distance",[i(e),e,t,n])}function g(e,t){return c("equals",[i(e),e,t])}function m(e,t){return c("intersects",[i(e),e,t])}function y(e,t){return c("touches",[i(e),e,t])}function S(e,t){return c("within",[i(e),e,t])}function w(e,t){return c("disjoint",[i(e),e,t])}function T(e,t){return c("overlaps",[i(e),e,t])}function I(e,t,n){return c("relate",[i(e),e,t,n])}function F(e){return c("isSimple",[i(e),e])}async function b(e){return u(await c("simplify",[i(e),e]))}async function A(e,t=!1){return u(await c("convexHull",[i(e),e,t]))}async function D(e,t){return u(await c("difference",[i(e),e,t]))}async function E(e,t){return u(await c("symmetricDifference",[i(e),e,t]))}async function v(e,t){return u(await c("intersect",[i(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return u(await c("union",[i(n),n]))}async function R(e,t,n,r,a,s){return u(await c("offset",[i(e),e,t,n,r,a,s]))}async function L(e,t,n,r=!1){const a=[i(e),e,t,n,r];return u(await c("buffer",a))}async function k(e,t,n,r,a,s){const l=[i(e),e,t,n,r,a,s];return u(await c("geodesicBuffer",l))}async function x(e,t,n=!0){const r=await c("nearestCoordinate",[i(e),e,t,n]);return{...r,coordinate:a.A.fromJSON(r.coordinate)}}async function N(e,t){const n=await c("nearestVertex",[i(e),e,t]);return{...n,coordinate:a.A.fromJSON(n.coordinate)}}async function P(e,t,n){if(null==e)throw new Z;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new Z;const a=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return a.spatialReference=r,a}async function O(e,t,n,r){return u(await c("generalize",[i(e),e,t,n,r]))}async function U(e,t,n){return u(await c("densify",[i(e),e,t,n]))}async function M(e,t,n,r=0){return u(await c("geodesicDensify",[i(e),e,t,n,r]))}function G(e,t){return c("planarArea",[i(e),e,t])}function z(e,t){return c("planarLength",[i(e),e,t])}function B(e,t,n){return c("geodesicArea",[i(e),e,t,n])}function $(e,t,n){return c("geodesicLength",[i(e),e,t,n])}class Z extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4665],{69208:(e,t,r)=>{r.d(t,{d:()=>l});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const l=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>S});var i=r(90237),s=r(92602),n=r(70333),l=r(78888),o=r(60999),a=r(49186),p=r(53966),u=r(97768),c=r(74887),d=r(84952),h=r(10107),m=(r(44208),r(87811),r(36005)),y=r(40608),f=r(43937),b=r(83531),w=r(20655),v=r(80812),g=r(41318),P=r(10407);const S=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,u.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,r){if(t.itemId)return new v.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.zf)(e)||p.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,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,P.It)(r);let s,l;if(i)s=r.portal.url;else try{s=await(0,b.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!l)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return(0,P.It)(r)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=w.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,p=null!=e?e.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return u.ok?g.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||w.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.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,i._)([(0,h.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,y.$)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},81457:(e,t,r)=>{r.d(t,{A:()=>_});var i,s=r(90237),n=r(61147),l=r(66552),o=r(25482),a=r(4718),p=r(90629),u=r(10107),c=(r(44208),r(53966),r(36005)),d=r(40608),h=r(43937),m=(r(87811),r(32730));let y=i=class extends o.oY{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,m.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,m.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,s._)([(0,u.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],y.prototype,"expression",void 0),(0,s._)([(0,c.w)("expression",["expression","value"])],y.prototype,"readExpression",null),(0,s._)([(0,h.K)("expression")],y.prototype,"writeExpression",null),(0,s._)([(0,u.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],y.prototype,"title",void 0),(0,s._)([(0,u.MZ)({json:{read:!1,write:!1}})],y.prototype,"value",void 0),y=i=(0,s._)([(0,d.$)("esri.layers.support.LabelExpressionInfo")],y);const f=y;var b,w=r(83531),v=r(59868),g=r(54031);const P=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,w.TU)(r?.layer)}}function x(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let E=b=class extends o.oY{static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),s=i[3],n=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&n;case"OR":return e||n}}return!1}catch(t){console.log("Error.: can't parse = "+e)}}constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=v.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,m.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,m.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&x(i))e=new f({expression:this.getLabelExpressionArcade()});else if(!e)return;const s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,m.XJ)(this)}getLabelExpressionArcade(){return(0,m.BI)(this)}getLabelExpressionSingleField(){return(0,m.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new b({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],E.prototype,"name",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],E.prototype,"allowOverrun",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],E.prototype,"deconflictionStrategy",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],E.prototype,"labelExpression",void 0),(0,s._)([(0,c.w)("labelExpression")],E.prototype,"readLabelExpression",null),(0,s._)([(0,h.K)("labelExpression")],E.prototype,"writeLabelExpression",null),(0,s._)([(0,u.MZ)({type:f,json:{write:{overridePolicy:(e,t,r)=>function(e){return x(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],E.prototype,"labelExpressionInfo",void 0),(0,s._)([(0,h.K)("labelExpressionInfo")],E.prototype,"writeLabelExpressionInfo",null),(0,s._)([(0,u.MZ)({type:P.apiValues,json:{type:P.jsonValues,read:P.read,write:P.write}})],E.prototype,"labelPlacement",void 0),(0,s._)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],E.prototype,"labelPosition",void 0),(0,s._)([(0,u.MZ)({type:Number})],E.prototype,"maxScale",void 0),(0,s._)([(0,h.K)("maxScale")],E.prototype,"writeMaxScale",null),(0,s._)([(0,u.MZ)({type:Number})],E.prototype,"minScale",void 0),(0,s._)([(0,h.K)("minScale")],E.prototype,"writeMinScale",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],E.prototype,"repeatLabel",void 0),(0,s._)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],E.prototype,"repeatLabelDistance",void 0),(0,s._)([(0,u.MZ)({types:n.em,json:{origins:{"web-scene":{types:n.Rv,write:g.oO,default:null}},write:g.oO,default:null}})],E.prototype,"symbol",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"useCodedValues",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],E.prototype,"where",void 0),E=b=(0,s._)([(0,d.$)("esri.layers.support.LabelClass")],E);const _=E},39383:(e,t,r)=>{r.d(t,{w:()=>p,z:()=>c});var i=r(49186),s=r(4718),n=r(53966),l=r(81457);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^\[\]]+)\]/gi;function p(e,t,r){return e?e.map((e=>{const i=new l.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`))}return i})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null,esriGeometryEnvelope:null};function c(e,t){const r=(0,s.o8)(e);return r.some((e=>function(e,t){const r=e.labelPlacement,s=u[t];if(!e.symbol)return o().warn("No ILabelClass symbol specified."),!0;if(!s)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!s.includes(r)){const i=s[0];r&&o().warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${i}`),e.labelPlacement=i}return!1}(e,t)))?[]:r}},54546:(e,t,r)=>{r.d(t,{A:()=>d});var i,s=r(90237),n=r(25482),l=r(4718),o=r(10107),a=r(56507),p=r(40608),u=r(43937);let c=i=class extends n.oY{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new i((0,l.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,s._)([(0,o.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,s._)([(0,o.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,s._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,s._)([(0,o.MZ)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,s._)([(0,o.MZ)({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,s._)([(0,o.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,o.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,s._)([(0,o.MZ)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,s._)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,s._)([(0,o.MZ)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,s._)([(0,o.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,s._)([(0,u.K)("start"),(0,u.K)("num")],c.prototype,"writeStart",null),(0,s._)([(0,o.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=i=(0,s._)([(0,p.$)("esri.rest.support.AttachmentQuery")],c),c.from=(0,a.dp)(c);const d=c},30291:(e,t,r)=>{r.d(t,{tn:()=>p});var i=r(13874),s=r(30524),n=r(28122),l=(r(84424),r(80737),r(96808),r(66159)),o=(r(67336),r(92094),r(23721),r(41227)),a=r(68780);function p({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:p},h){if(!r)return null;const y=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(c),e}(e.fields??[],t?.ignoreFieldTypes||m).map((t=>new o.A({fieldName:t.name,isEditable:(0,s.R$)(t,e),label:t.alias,format:d(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!y.length)return null;const f=function(e){const t=(0,s.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:p,fields:r,displayField:e}),b=[new l.A,new n.A];return new i.A({title:f,content:b,fieldInfos:y})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,s.Bz)(e,t);function c(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,s.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const m=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>F});var n=r(92602),o=(r(59456),r(47609)),i=r(66395),a=r(85935),s=r(78878),l=r(80672),u=r(91075),p=r(57251),c=r(28735),f=r(20655),d=r(80812),h=r(78888),y=r(56507),m=r(65864),g=r(2272),w=r(92300),v=r(90237),S=r(25482),A=r(10107),R=(r(44208),r(53966),r(87811),r(40608)),_=r(21325);let G=class extends S.oY{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,_.YX)(this.outSpatialReference),r.inSR=(0,_.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,m.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,v._)([(0,A.MZ)()],G.prototype,"geometries",void 0),(0,v._)([(0,A.MZ)({json:{read:{source:"outSR"}}})],G.prototype,"outSpatialReference",void 0),(0,v._)([(0,A.MZ)()],G.prototype,"transformation",void 0),(0,v._)([(0,A.MZ)()],G.prototype,"transformForward",void 0),G=(0,v._)([(0,R.$)("esri.rest.support.ProjectParameters")],G);const j=G,b=(0,y.dp)(j);var x=r(25927),k=r(42538),M=r(40662),N=r(42095),$=r(23150),Z=r(16930);let T=null;async function D(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,p.isLoaded)()||await(0,p.load)();for(const t of e)t.container[t.indexer]=(0,p.project)(t.container[t.indexer],Z.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new j({geometries:r,outSpatialReference:Z.A.WGS84}),i=await async function(e,t,r){t=b(t);const n=(0,g.Dl)(e),o={...n.query,f:"json",...t.toJSON()},i=t.outSpatialReference,a=(0,m.$B)(t.geometries[0]),s=(0,g.jV)(o,void 0);return(0,h.A)(n.path+"/project",s).then((({data:{geometries:e}})=>(0,w.V)(e,a,i)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function P(e,t){const n=new d.default({portal:e,id:t});return await n.load(),null===T&&(T=await r.e(3709).then(r.bind(r,43709))),await T.fetchKnowledgeGraph(n.url)}function J(e,t,r,n,o){if(null===e)return null;if((0,s.c)(e)||(0,s.b)(e))return e;if((0,s.k)(e))return e.toJSDate();if((0,s.k)(e))return e.toJSDate();if((0,s.m)(e))return e.toStorageFormat();if((0,s.n)(e))return e.toStorageString();if((0,s.v)(e)){const i={};for(const a of e.keys())i[a]=J(e.field(a),t,r,n,o),i[a]instanceof u.A&&o.push({container:i,indexer:a});return i}if((0,s.o)(e)){const i=e.map((e=>J(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof u.A&&o.push({container:i,indexer:e});return i}if((0,s.p)(e)){if(e.spatialReference.isWGS84)return e;if(e.spatialReference.isWebMercator&&t)return(0,c.ci)(e);if(!t||!r)return e;throw new a.D$(n,a.TX.WrongSpatialReference,null)}}function O(e,t){if(!e)return null;const r={};for(const n in e)r[n]=I(e[n],t);return r}function I(e,t){return null===e?null:(0,s.o)(e)?e.map((e=>I(e,t))):e instanceof x.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:O(e.properties,t)}:e instanceof M.A?{graphType:"object",properties:O(e.properties,t)}:e instanceof $.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:O(e.properties,t)}:e instanceof N.A?{graphType:"path",path:e.path?e.path.map((e=>I(e,t))):null}:(0,s.p)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,c.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new a.D$(t,a.TX.WrongSpatialReference,null)}(e,t):(0,s.c)(e)||(0,s.b)(e)||(0,s.a6)(e)?e:null}function F(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,s.H)(i,2,2,t,r),null===i[0])throw new a.D$(t,a.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,s.j)(i[1]);let r=null;return r=t.services?.portal?t.services.portal:f.A.getDefault(),P((0,l.R)(i[0],r),e)}if(!1===(0,s.c)(i[0]))throw new a.D$(t,a.TX.InvalidParameter,r);const u=(0,s.j)(i[0]);return P(t.services?.portal??f.A.getDefault(),u)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,l)=>{(0,s.H)(l,2,4,t,n);const u=l[0];if(!(0,s.w)(u))throw new a.D$(t,a.TX.InvalidParameter,n);const p=l[1];if(!(0,s.c)(p))throw new a.D$(t,a.TX.InvalidParameter,n);null===T&&(T=await r.e(3709).then(r.bind(r,43709)));let c=null;const f=(0,s.K)(l[2],null);if(!(f instanceof i.A||null===f))throw new a.D$(t,a.TX.InvalidParameter,n);if(f){let e=[];c=J(f,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await D(e)}const d=new k.A({openCypherQuery:p,bindParameters:c});(u?.serviceDefinition?.currentVersion??11.3)>11.2&&(d.outputSpatialReference=t.spatialReference);const h=(await T.executeQueryStreaming(u,d)).resultRowsStream.getReader(),y=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,s.o)(r))for(const e of r)y.push(I(e,t));else{const e=[];for(const n of r)e.push(I(r[n],t));y.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(y,(0,s.N)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}},25927:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),a=r(54238),s=r(86738);let l=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:s.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const u=l},54238:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],s);const l=s},77901:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let s=class extends o.oY{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],s);const l=s},42538:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(69622);let s=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],s);const l=s;let u=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null}};(0,n._)([(0,o.MZ)()],u.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"outputSpatialReference",void 0),u=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u);const p=u},40662:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a);const s=a},42095:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let l=class extends o.oY{constructor(e){super(e),this.path=null}};(0,n._)([(0,i.MZ)({type:[s.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.Path")],l);const u=l},23150:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),a=r(54238),s=r(82799);let l=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:s.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const u=l},2272:(e,t,r)=>{r.d(t,{Dl:()=>a,jV:()=>i,lF:()=>s}),r(92602),r(70333);var n=r(4718),o=r(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function s(e,t,r){const n={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map((e=>s({item:e},t,r).item));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}r(926)}}]);