@arcgis/core 5.2.0-next.82 → 5.2.0-next.83

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 (126) hide show
  1. package/assets/components/assets/icon/deleteAndReplaceFeatures16.json +1 -0
  2. package/assets/components/assets/icon/deleteAndReplaceFeatures24.json +1 -0
  3. package/assets/components/assets/icon/deleteAndReplaceFeatures32.json +1 -0
  4. package/assets/components/assets/icon/moveAndRotate16.json +1 -0
  5. package/assets/components/assets/icon/moveAndRotate24.json +1 -0
  6. package/assets/components/assets/icon/moveAndRotate32.json +1 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/028bee58f7bc19e5e39e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a2fd945659ce052f99d2.js → 03895d49fbd34ccb3ead.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +1 -0
  11. package/assets/esri/core/workers/chunks/{95ff342e5c29bf91a765.js → 13a43c87d7952facbed4.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{e59101f1d060d0a30a65.js → 14def8f47ae7265dd71b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/1b00789511c9b27da4a7.js +1 -0
  14. package/assets/esri/core/workers/chunks/1b277311a4beb4243bf8.js +2 -0
  15. package/assets/esri/core/workers/chunks/1d03db4df18524cf391c.js +1 -0
  16. package/assets/esri/core/workers/chunks/24bfe759c8848143361e.js +1 -0
  17. package/assets/esri/core/workers/chunks/30dade7bf6032be32599.js +2 -0
  18. package/assets/esri/core/workers/chunks/{865f9adc591056458b6b.js → 33dc93d82407052fafe1.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{0d982abff7c9496f7890.js → 3a6990058f1003bd2812.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{0fd7590e545864f5fff4.js → 3ca0d503ce733088a6c2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/46b3d6814ba4c0a71111.js +1 -0
  22. package/assets/esri/core/workers/chunks/49784f8e8e5fac0cc5a9.js +1 -0
  23. package/assets/esri/core/workers/chunks/{563a4d6788ad66b676e4.js → 5156d94f01b4fbbf8cde.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{cdd4aeaa3f30bc4ea93a.js → 5568448e7f51508ffdf5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +1 -0
  26. package/assets/esri/core/workers/chunks/{218ddad849745d652a28.js → 5a3c1fe24814a345ab39.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5b292831127bf981c1c5.js +1 -0
  28. package/assets/esri/core/workers/chunks/{bd1c870694edd25bf8aa.js → 5f13ade03500b39c1720.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6154f4d39f9e53fe56cc.js +1 -0
  30. package/assets/esri/core/workers/chunks/62b116307483d5f0e37d.js +2 -0
  31. package/assets/esri/core/workers/chunks/6433a623af765b7e53ab.js +1 -0
  32. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +1 -0
  33. package/assets/esri/core/workers/chunks/6d11b922898a8039dbe7.js +1 -0
  34. package/assets/esri/core/workers/chunks/7188559a685e0ba30c4f.js +1 -0
  35. package/assets/esri/core/workers/chunks/{faf14281a74a06fa1f30.js → 724b2631c9ced80a1661.js} +1 -1
  36. package/assets/esri/core/workers/chunks/7493ce5d02224c07a6d5.js +1 -0
  37. package/assets/esri/core/workers/chunks/7ad70c8a56f2481adc82.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ca188f824956a5cac35.js +2 -0
  39. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +1 -0
  40. package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js → 8e1b913067b8e88ff365.js} +2 -2
  41. package/assets/esri/core/workers/chunks/{e3eab61815ef1c521a6c.js → 9568932bafe689c38f63.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{c8d83f71326222b98608.js → 996ac351e2322298a17d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{34f6093d2c00e3584037.js → 9be05d32528b395a7d34.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{552d6aecc7d88d16227b.js → 9d41c02601d0bb75b525.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{64a1ffc221e5b63b43fb.js → a4bb0951e1389e7b803c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b09e9ac5fd928e69b053.js → aabffe53508730e504ec.js} +1 -1
  47. package/assets/esri/core/workers/chunks/b61c30cdf698b4d1573a.js +1 -0
  48. package/assets/esri/core/workers/chunks/bbb97c38d8670329d07e.js +2 -0
  49. package/assets/esri/core/workers/chunks/bd8b483e70acf0fc601e.js +1 -0
  50. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +1 -0
  51. package/assets/esri/core/workers/chunks/c90dfdf2302b7db1f6f7.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8a36b999cbd65dd2f16c.js → d8c3bdc3c6be8ba7c5e6.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{40b842d055b87e442156.js → f20b88f5a6d3b988a055.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{f248131df4eaa5291623.js → f6ae0c483579e227a2f2.js} +1 -1
  55. package/config.js +1 -1
  56. package/geometry/support/spatialReferenceUtils.js +1 -1
  57. package/kernel.js +1 -1
  58. package/package.json +2 -2
  59. package/renderers/UniqueValueRenderer.js +1 -1
  60. package/support/revision.js +1 -1
  61. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  62. package/views/2d/engine/vectorTiles/style/GeoJSONLabelUtils.js +2 -0
  63. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  64. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  66. package/views/3d/GroundView3D.js +1 -1
  67. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  68. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  69. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  70. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +1 -1
  71. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  72. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  73. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  74. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  75. package/views/3d/input/SceneInputManager.js +1 -1
  76. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  77. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  78. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  79. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  80. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  81. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  82. package/views/3d/state/utils/navigationUtils.js +1 -1
  83. package/views/3d/support/GroundAndIMSurface.js +2 -0
  84. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  85. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  86. package/views/3d/support/pointsOfInterest/PointOfInterest.js +1 -1
  87. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  88. package/views/3d/terrain/OverlayManager.js +1 -1
  89. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  90. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  91. package/views/SceneView.js +1 -1
  92. package/views/draw/support/PluginContext.js +1 -1
  93. package/views/draw/support/types.d.ts +6 -0
  94. package/views/interactive/interactiveToolUtils.js +1 -1
  95. package/widgets/Widget.js +1 -1
  96. package/widgets/support/jsxWidgetSupport.js +1 -1
  97. package/assets/esri/core/workers/chunks/0dcfd82a2669df6eb5a0.js +0 -1
  98. package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +0 -1
  99. package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +0 -1
  100. package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +0 -1
  101. package/assets/esri/core/workers/chunks/21f763694a41968ac21a.js +0 -1
  102. package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +0 -1
  103. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +0 -1
  104. package/assets/esri/core/workers/chunks/469e72ab6cd44272f474.js +0 -1
  105. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +0 -1
  106. package/assets/esri/core/workers/chunks/53d80202b5f43542d45b.js +0 -1
  107. package/assets/esri/core/workers/chunks/6c389e9646a48c26da20.js +0 -2
  108. package/assets/esri/core/workers/chunks/6f08c8a1e8e3ffd0a96a.js +0 -1
  109. package/assets/esri/core/workers/chunks/71ee7c51d2c60a180f1e.js +0 -1
  110. package/assets/esri/core/workers/chunks/927582ec15bff2acbb49.js +0 -1
  111. package/assets/esri/core/workers/chunks/98739b6e7904045edbab.js +0 -1
  112. package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +0 -1
  113. package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +0 -2
  114. package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +0 -1
  115. package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +0 -2
  116. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +0 -1
  117. package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +0 -2
  118. package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +0 -1
  119. package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +0 -2
  120. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +0 -1
  121. /package/assets/esri/core/workers/chunks/{d0c8630177d3a4e316f1.js.LICENSE.txt → 1b277311a4beb4243bf8.js.LICENSE.txt} +0 -0
  122. /package/assets/esri/core/workers/chunks/{ead4143d811aab610e00.js.LICENSE.txt → 30dade7bf6032be32599.js.LICENSE.txt} +0 -0
  123. /package/assets/esri/core/workers/chunks/{ac9a3dfd02160e43fc8a.js.LICENSE.txt → 62b116307483d5f0e37d.js.LICENSE.txt} +0 -0
  124. /package/assets/esri/core/workers/chunks/{6c389e9646a48c26da20.js.LICENSE.txt → 7ca188f824956a5cac35.js.LICENSE.txt} +0 -0
  125. /package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js.LICENSE.txt → 8e1b913067b8e88ff365.js.LICENSE.txt} +0 -0
  126. /package/assets/esri/core/workers/chunks/{c61e94806b37ca3dd549.js.LICENSE.txt → bbb97c38d8670329d07e.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2587],{36745(t,i,s){s.d(i,{z:()=>o});var e=s(4718),h=s(51118),n=s(60408),r=s(92722);class o{static fromOptimized(t,i,s=1){return(new a).initialize(t,i,s)}static fromJSON(t){const[i,s]=l(t),e=(0,n.Pv)(t),h=(0,n.W0)(t);return(new u).initialize(i,s,e,h,1)}static fromOptimizedCIM(t,i,s=1){return(new x).initialize(t,i,s)}static fromJSONCIM(t,i=1){const[s,e]=l(t),h=(0,n.Pv)(t),r=(0,n.W0)(t);return(new y).initialize(s,e,h,r,i)}static fromFeatureSetReader(t){const i=t.readGeometryForDisplay(),s=t.geometryType;return i&&s?this.fromOptimized(i,s):null}static fromFeatureSetReaderCIM(t){const i=t.readGeometryForDisplay(),s=t.geometryType;return i&&s?this.fromOptimizedCIM(i,s):null}static createEmptyOptimized(t,i=!1,s=!1,e=1){return(new x).initialize(new r.A([],[],i,s),t,e)}static createEmptyJSON(t,i=!1,s=!1){return(new u).initialize([],t,i,s,1)}static createEmptyOptimizedCIM(t,i=!1,s=!1,e=1){return(new x).initialize(new r.A([],[],i,s),t,e)}static createEmptyJSONCIM(t,i=!1,s=!1,e=1){return(new y).initialize([],t,i,s,e)}asJSON(){const t=(0,h.x)(this),{hasZ:i,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:i,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:i?t[0][0][2]:void 0,m:s?t[0][0][i?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:i,hasM:s}:{paths:t,hasZ:i,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,i,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,i=this.y;const e=t,h=i;for(;this.nextPoint();)s+=(t-this.x)*(i+this.y),t=this.x,i=this.y;return s+=(t-e)*(i+h),-.5*s}invertY(){this.yFactor*=-1}}class a extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,i,s){return this.geometryType=i,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const i=this._pathOffset+t*this._stride;return i>=0&&i<this._end&&(this._pointOffset=i,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,i=this._geometry.coords,s=this._pathOffset;return(new a).initialize(new r.A([this.pathSize],i.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,i=this._stride,s=this._geometry.coords;let e=0;for(let h=this._pathOffset+i;h<t;h+=i){const t=s[h-i],n=s[h-i+1],r=s[h]-t,o=s[h+1]-n;e+=Math.sqrt(r*r+o*o)}return e}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let i=0;i<this._stride;++i)this._geometry.coords.push(t[i]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,i){this._geometry.coords.push(t,i),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const i of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(i[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const i=t.asOptimized();this._geometry.coords.push(...i.coords),this._geometry.lengths.push(...i.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let i=1;i<t.coords.length;i+=this._stride)t.coords[i]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,i=this._pathOffset,s=this._end-this._stride;for(let e=0;e<this._stride;e++)if(t[i+e]!==t[s+e])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,i)=>t+i)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function _(t){const i=[t.x,t.y];return t.z&&i.push(t.z),t.m&&i.push(t.m),i}function l(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[_(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends o{initialize(t,i,s,e,h){return this._paths=t,this.geometryType=i,this.hasZ=s,this.hasM=e,this._pathIndex=this._pointIndex=-1,this.yFactor=h,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,i=this._currentPath;let s=0;for(let e=1;e<t;e++){const t=i[e-1],h=i[e],n=t[0],r=t[1],o=h[0]-n,a=h[1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,i){this._paths[this.totalSize-1].push([t,i])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const i=(0,h.x)(t);for(const t of i)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:i}=this,s=new r.A([],[],t,i),{coords:e,lengths:h}=s;if("esriGeometryPoint"===this.geometryType)e.push(...this._paths[0][0]),h.length=0;else for(const s of this._paths){for(const h of s)e.push(h[0]),e.push(h[1]*this.yFactor),t&&e.push(h[2]),i&&e.push(h[this._mIndex]);h.push(s.length)}return s}isClosed(){const t=this._currentPath[0],i=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==i[s])return!1;return!0}clone(){return(new u).initialize((0,e.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,i)=>t+i)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class x extends a{initialize(t,i,s){return super.initialize(t,i,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new x).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class y extends u{initialize(t,i,s,e,h){return super.initialize(t,i,s,e,h)}clone(){return(new y).initialize((0,e.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},6774(t,i,s){s.d(i,{O3:()=>n,Ox:()=>r,bR:()=>e});class e{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new e(t[0],t[1])}clone(){return new e(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){const t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){const s=this.x,e=this.y;return this.x=s*t-e*i,this.y=s*i+e*t,this}rotateReverse(t,i){const s=this.x,e=this.y;return this.x=s*t+e*i,this.y=-s*i+e*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){const s=i.x-t.x,e=i.y-t.y;return Math.sqrt(s*s+e*e)}static add(t,i){return new e(t.x+i.x,t.y+i.y)}static sub(t,i){return new e(t.x-i.x,t.y-i.y)}}class h{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class n{constructor(t,i,s,e=8,h=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=e,this._pixelMargin=h,this._tileSize=512*e,this._dz=t,this._yPos=i,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;const s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new e(t,i),this._firstPt=new e(t,i),this._dist=0}lineTo(t,i){const s=this._isIn(t,i),n=new e(t,i),r=e.distance(this._prevPt,n);let o,a,_,l,u,x,y,c;if(s)this._prevIsIn?this._lineTo(t,i,!0):(o=this._prevPt,a=n,_=this._intersect(a,o),this._start=this._dist+r*(1-this._r),this._lineTo(_.x,_.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,_=this._intersect(a,o),this._lineTo(_.x,_.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,i=n;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{const s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(l=(this._xmin-t.x)/(i.x-t.x),c=t.y+l*(i.y-t.y),c<=this._ymin?x=!1:c>=this._ymax?x=!0:s.push(new h(l,this._xmin,c))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(l=(this._xmax-t.x)/(i.x-t.x),c=t.y+l*(i.y-t.y),c<=this._ymin?x=!1:c>=this._ymax?x=!0:s.push(new h(l,this._xmax,c))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(l=(this._ymin-t.y)/(i.y-t.y),y=t.x+l*(i.x-t.x),y<=this._xmin?u=!1:y>=this._xmax?u=!0:s.push(new h(l,y,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(l=(this._ymax-t.y)/(i.y-t.y),y=t.x+l*(i.x-t.x),y<=this._xmin?u=!1:y>=this._xmax?u=!0:s.push(new h(l,y,this._ymax))),0===s.length)u?x?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):x?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+r*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+r*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=r,this._prevIsIn=s,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,i=this._prevPt;t.x===i.x&&t.y===i.y||this.lineTo(t.x,t.y);const s=this._line;let e=s.length;for(;e>=4&&(s[0].x===s[1].x&&s[0].x===s[e-2].x||s[0].y===s[1].y&&s[0].y===s[e-2].y);)s.pop(),s[0].x=s[e-2].x,s[0].y=s[e-2].y,--e}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,i=t.length;if(0===i)return null;const s=[];for(let e=0;e<i;e++)s.push({line:t[e],start:this._starts[e]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,h,n;if(i.x>=this._xmin&&i.x<=this._xmax)h=i.y<=this._ymin?this._ymin:this._ymax,n=(h-t.y)/(i.y-t.y),s=t.x+n*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,n=(s-t.x)/(i.x-t.x),h=t.y+n*(i.y-t.y);else{h=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;const e=(s-t.x)/(i.x-t.x),r=(h-t.y)/(i.y-t.y);e<r?(n=e,h=t.y+e*(i.y-t.y)):(n=r,s=t.x+r*(i.x-t.x))}return this._r=n,new e(s,h)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,i,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)),this._isH=!1,this._isV=!1)}_lineTo(t,i,s){let h,n;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(h=this._line[this._line.length-1],h.equals(t,i)))return;this._line.push(new e(t,i))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){h=this._line[this._line.length-1];const s=h.x===t,r=h.y===i;if(s&&r)return;this._isH&&s||this._isV&&r?(h.x=t,h.y=i,n=this._line[this._line.length-2],n.x===t&&n.y===i?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===i)):(this._isH=n.x===t,this._isV=n.y===i)):(this._line.push(new e(t,i)),this._isH=s,this._isV=r)}else this._line.push(new e(t,i))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new e(t*s,i*s))}lineTo(t,i){const s=this._ratio;this._line.push(new e(t*s,i*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,i,s){if(!s)return;const e=-i,h=t+i,n=-i,r=t+i,a=[],_=[],l=s.length;for(let t=0;t<l;++t){const i=s[t];if(!i||i.length<2)continue;let o,l=i[0];const u=i.length;for(let s=1;s<u;++s)o=i[s],l.x===o.x&&(l.x<=e&&(l.y>o.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(_.push(t),_.push(s),_.push(0),_.push(-1))),l.x>=h&&(l.y<o.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(_.push(t),_.push(s),_.push(1),_.push(-1)))),l.y===o.y&&(l.y<=n&&(l.x<o.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(_.push(t),_.push(s),_.push(2),_.push(-1))),l.y>=r&&(l.x>o.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(_.push(t),_.push(s),_.push(3),_.push(-1)))),l=o}if(0===a.length||0===_.length)return;o.fillParent(s,_,a),o.fillParent(s,a,_);const u=[];o.calcDeltas(u,_,a),o.calcDeltas(u,a,_),o.addDeltas(u,s)}static fillParent(t,i,s){const e=s.length,h=i.length;for(let n=0;n<h;n+=4){const h=i[n],r=i[n+1],o=i[n+2],_=t[h][r-1],l=t[h][r];let u=8092,x=-1;for(let i=0;i<e;i+=4){if(s[i+2]!==o)continue;const e=s[i],h=s[i+1],n=t[e][h-1],r=t[e][h];switch(o){case 0:case 1:if(a(_.y,n.y,r.y)&&a(l.y,n.y,r.y)){const t=Math.abs(r.y-n.y);t<u&&(u=t,x=i)}break;case 2:case 3:if(a(_.x,n.x,r.x)&&a(l.x,n.x,r.x)){const t=Math.abs(r.x-n.x);t<u&&(u=t,x=i)}}}i[n+3]=x}}static calcDeltas(t,i,s){const e=i.length;for(let h=0;h<e;h+=4){const e=[],n=o.calcDelta(h,i,s,e);t.push(i[h]),t.push(i[h+1]),t.push(i[h+2]),t.push(n)}}static calcDelta(t,i,s,e){const h=i[t+3];if(-1===h)return 0;const n=e.length;return n>1&&e[n-2]===h?0:(e.push(h),o.calcDelta(h,s,i,e)+1)}static addDeltas(t,i){const s=t.length;let e=0;for(let i=0;i<s;i+=4){const s=t[i+3];s>e&&(e=s)}for(let h=0;h<s;h+=4){const s=i[t[h]],n=t[h+1],r=e-t[h+3];switch(t[h+2]){case 0:s[n-1].x-=r,s[n].x-=r,1===n&&(s[s.length-1].x-=r),n===s.length-1&&(s[0].x-=r);break;case 1:s[n-1].x+=r,s[n].x+=r,1===n&&(s[s.length-1].x+=r),n===s.length-1&&(s[0].x+=r);break;case 2:s[n-1].y-=r,s[n].y-=r,1===n&&(s[s.length-1].y-=r),n===s.length-1&&(s[0].y-=r);break;case 3:s[n-1].y+=r,s[n].y+=r,1===n&&(s[s.length-1].y+=r),n===s.length-1&&(s[0].y+=r)}}}}const a=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i},78957(t,i,s){s.d(i,{d:()=>l,R:()=>I});class e{constructor(t=h){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:i,_compare:s}=this;i.push(t);let e=i.length-1>>>0;const h=i[e];for(;e>0;){const t=e-1>>1,n=i[t];if(!(s(n,h)<=0))break;i[t]=h,i[e]=n,e=t}}dequeue(){const{_data:t,_compare:i}=this,s=t[0],e=t.pop();if(0===t.length)return s;t[0]=e;let h=0;const n=t.length,r=t[0];let o,a,_=null;for(;;){const s=2*h+1,e=2*h+2;if(_=null,s<n&&(o=t[s],i(o,r)>0&&(_=s)),e<n&&(a=t[e],(null===_&&i(a,r)<=0||null!==_&&i(a,o)<=0)&&(_=e)),null===_)break;t[h]=t[_],t[_]=r,h=_}return s}}const h=(t,i)=>t<i?-1:t>i?1:0;var n=s(19419),r=s(537),o=s(12359),a=s(95108),_=s(12176);function l(t){if(0===t.totalSize)return null;const i=(0,r.z8)(t);if(!i)return null;const s=4*(Math.abs(i[0])+Math.abs(i[2])+Math.abs(i[1])+Math.abs(i[3])+1)*222045e-19;let e=0,h=0;t.reset();for(let i=0;t.nextPath();i++){const s=t.getCurrentRingArea();s>h&&(h=s,e=i)}if(t.seekPath(e),0===t.pathSize)return null;t.seekPathStart();const a=(0,r.B$)(t);if(Math.abs(h)<=2*s*s)return[(a[0]+a[2])/2,(a[1]+a[3])/2];t.seekPathStart();const _=(0,o.w2)(t,(0,n.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const l=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],c=[NaN,NaN,NaN,NaN],p=[NaN,NaN,NaN,NaN];let m=!1,P=x(_,t,!0);0===P.distance&&(m=!0,l[0][0]=_[0],l[0][1]=_[1],P=x(_,t,!1)),c[0]=P.distance,p[0]=0;const I=[NaN,NaN];let N=!1,z=.25,w=-1,M=NaN;do{if(M=NaN,l[1]=y(t,f(a[0],a[2],z),0,i),isNaN(l[1][0])||isNaN(l[1][1])||(P=x(l[1],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[1],t))N=!0,c[1]=M,p[1]=d(l[1],_);else if(!isNaN(M)&&M>w&&(w=M,I[0]=l[1][0],I[1]=l[1][1]),z-=.01,z<.1){if(!(w>=0))break;N=!0,c[1]=w,l[1][0]=I[0],l[1][1]=I[1],p[1]=d(l[1],_)}}while(!N);N=!1,z=.5,w=-1;let S=.01,T=1;do{if(M=NaN,l[2]=y(t,f(a[0],a[2],z),0,i),isNaN(l[2][0])||isNaN(l[2][1])||(P=x(l[2],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[2],t))N=!0,c[2]=M,p[2]=d(l[2],_);else if(!isNaN(M)&&M>w)w=M,I[0]=l[2][0],I[1]=l[2][1];else if(M>w&&(w=M,I[0]=l[2][0],I[1]=l[2][1]),z=.5+S*T,S+=.01,T*=-1,z<.3||z>.7){if(!(w>=0))break;N=!0,c[2]=w,l[2][0]=I[0],l[2][1]=I[1],p[2]=d(l[2],_)}}while(!N);N=!1,z=.75,w=-1;do{if(M=NaN,l[3]=y(t,f(a[0],a[2],z),0,i),isNaN(l[3][0])||isNaN(l[3][1])||(P=x(l[3],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[3],t))N=!0,c[3]=M,p[3]=d(l[3],_);else if(M>w&&(w=M,I[0]=l[3][0],I[1]=l[3][1]),z+=.01,z>.9){if(!(w>=0))break;N=!0,c[3]=w,l[3][0]=I[0],l[3][1]=I[1],p[3]=d(l[3],_)}}while(!N);const O=[0,1,2,3],v=m?0:1;let C;for(let t=v;t<4;t++)for(let t=v;t<3;t++){const i=p[t],s=p[t+1];g(i,s)>0&&(C=O[t],O[t]=O[t+1],O[t+1]=C,p[t]=s,p[t+1]=i)}let b=v,R=0,k=0;for(let t=v;t<4;t++){switch(t){case 0:k=2*c[O[t]];break;case 1:k=1.66666666*c[O[t]];break;case 2:k=1.33333333*c[O[t]];break;case 3:k=c[O[t]]}k>R&&(R=k,b=O[t])}return l[b]}function u(t,i){let s,e,h,n,r=0;for(i.reset();i.nextPath()&&i.nextPoint();)for(s=i.x,e=i.y;i.nextPoint();s=h,e=n)h=i.x,n=i.y,e>t[1]!=n>t[1]&&((h-s)*(t[1]-e)-(n-e)*(t[0]-s)>0?r++:r--);return 0!==r}function x(t,i,s){if(s&&u(t,i))return{coord:t,distance:0};let e=1/0,h=0,n=0,r=[0,0],o=[0,0];const _=[0,0];for(i.reset();i.nextPath()&&i.nextPoint();)if(!(i.pathSize<2))for(r[0]=i.x,r[1]=i.y;i.nextPoint();r=o){o=[i.x,i.y],(0,a.gR)(_,t,r,o);const s=d(t,_);s<e&&(e=s,h=_[0],n=_[1])}return{coord:[h,n],distance:Math.sqrt(e)}}function y(t,i,s,e){const h=[i,0];let r=1/0,o=1/0,a=!1,l=!1;const u=[[i,e[1]-1],[i,e[3]+1]],x=[0,0],y=[0,0],m=[0,0],f=[[0,0],[0,0]],d=(0,n.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(f[0][0]=t.x,f[0][1]=t.y;t.nextPoint();f[0][0]=f[1][0],f[0][1]=f[1][1]){if(f[1][0]=t.x,f[1][1]=t.y,null===c(d,f))continue;if(y[0]=u[0][0],y[1]=u[0][1],m[0]=u[1][0],m[1]=u[1][1],0===p(d,y,m))continue;if(!(0,_.Ql)(u[0],u[1],f[0],f[1],x))continue;const i=x[1];r>o?i<r&&(r=i,a=!0):i<o&&(o=i,l=!0)}return a&&l?h[1]=(r+o)/2:h[0]=h[1]=NaN,h}function c(t,i){if(i.length<2)return null;t||(t=(0,n.vt)());const[s,e]=i[0],[h,r]=i[1];return t[0]=Math.min(s,h),t[1]=Math.min(e,r),t[2]=Math.max(s,h),t[3]=Math.max(e,r),t}function p(t,i,s){let e=m(i,t),h=m(s,t);const n=t[0],r=t[1],o=t[2],a=t[3];if(e&h)return 0;if(!(e|h))return 4;const _=(e?1:0)|(h?2:0);do{const _=s[0]-i[0],l=s[1]-i[1];if(_>l)3&e?(1&e?(i[1]+=l*(n-i[0])/_,i[0]=n):(i[1]+=l*(o-i[0])/_,i[0]=o),e=m(i,t)):3&h?(1&h?(s[1]+=l*(n-s[0])/_,s[0]=n):(s[1]+=l*(o-s[0])/_,s[0]=o),h=m(s,t)):e?(4&e?(i[0]+=_*(r-i[1])/l,i[1]=r):(i[0]+=_*(a-i[1])/l,i[1]=a),e=m(i,t)):(4&h?(s[0]+=_*(r-s[1])/l,s[1]=r):(s[0]+=_*(a-s[1])/l,s[1]=a),h=m(s,t));else if(12&e?(4&e?(i[0]+=_*(r-i[1])/l,i[1]=r):(i[0]+=_*(a-i[1])/l,i[1]=a),e=m(i,t)):12&h?(4&h?(s[0]+=_*(r-s[1])/l,s[1]=r):(s[0]+=_*(a-s[1])/l,s[1]=a),h=m(s,t)):e?(1&e?(i[1]+=l*(n-i[0])/_,i[0]=n):(i[1]+=l*(o-i[0])/_,i[0]=o),e=m(i,t)):(1&h?(s[1]+=l*(n-s[0])/_,s[0]=n):(s[1]+=l*(o-s[0])/_,s[0]=o),h=m(s,t)),e&h)return 0}while(e|h);return _}function m(t,i){return(t[0]<i[0]?1:0)|(t[0]>i[2]?1:0)<<1|(t[1]<i[1]?1:0)<<2|(t[1]>i[3]?1:0)<<3}function f(t,i,s){return t+(i-t)*s}function d(t,i){return(t[0]-i[0])*(t[0]-i[0])+(t[1]-i[1])*(t[1]-i[1])}function g(t,i){if(t<i)return-1;if(t>i)return 1;if(t===i)return 0;const s=isNaN(t),e=isNaN(i);return s<e?-1:s>e?1:0}class P{constructor(t,i,s,e){this.x=t,this.y=i,this.cellSize=s,this.distancefromCellCenter=(0,a.Xf)(t,i,e),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function I(t){if(!t.nextPath()||!t.pathSize)return null;const i=(0,r.B$)(t),s=i[2]-i[0],h=i[3]-i[1];if(0===s||0===h)return[i[0]+s/2,i[1]+h/2];const n=Math.max(Math.min(s,h)/100,1),a=new e((t,i)=>i.maxDistanceToPolygon-t.maxDistanceToPolygon),_=Math.min(s,h);let l=_/2,u=0,x=0;for(u=i[0];u<i[2];u+=_)for(x=i[1];x<i[3];x+=_)a.enqueue(new P(u+l,x+l,l,t));t.reset(),t.nextPath();const y=(0,o.IK)(t);if(null===y)return null;let c,p=new P(y[0],y[1],0,t);for(;a.size>0;)c=a.dequeue(),c.distancefromCellCenter>p.distancefromCellCenter&&(p=c),c.maxDistanceToPolygon-p.distancefromCellCenter<=n||(l=c.cellSize/2,a.enqueue(new P(c.x-l,c.y-l,l,t)),a.enqueue(new P(c.x+l,c.y-l,l,t)),a.enqueue(new P(c.x-l,c.y+l,l,t)),a.enqueue(new P(c.x+l,c.y+l,l,t)));return[p.x,p.y]}},13195(t,i,s){s.d(i,{GW:()=>m,IU:()=>f,Wh:()=>x,cP:()=>P,p6:()=>p,ru:()=>g,s3:()=>d,wV:()=>c,yM:()=>I,z0:()=>y});var e=s(95108),h=s(6774);const n=Number.POSITIVE_INFINITY,r=Math.PI,o=2*r,a=128/r,_=256/360,l=r/180,u=1/Math.LN2;function x(t,i){return(t%=i)>=0?t:t+i}function y(t){return x(t*a,256)}function c(t){return x(t*_,256)}function p(t){return Math.log(t)*u}function m(t,i,s){return t*(1-s)+i*s}function f(t){return 8+Math.max(16*(t-14),0)}function d(t,i,s){let e,h,n,r=0;for(const o of s){e=o.length;for(let s=1;s<e;++s)h=o[s-1],n=o[s],h.y>i!=n.y>i&&((n.x-h.x)*(i-h.y)-(n.y-h.y)*(t-h.x)>0?r++:r--)}return 0!==r}function g(t,i,s,h){let n,r,o,a;const _=h*h;for(const h of s){const s=h.length;if(!(s<2)){n=h[0].x,r=h[0].y;for(let l=1;l<s;++l){if(o=h[l].x,a=h[l].y,(0,e.Ng)(t,i,n,r,o,a)<_)return!0;n=o,r=a}}}return!1}function P(t,i){if(0===i||Number.isNaN(i))return t;const s=[],e=new h.bR(0,0),n=new h.bR(0,0),r=new h.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],_=[];for(let t=0;t<a.length;t++){const s=a[t-1],o=a[t],l=a[t+1];0===t?e.setCoords(0,0):e.assignSub(o,s).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(l,o).normalize().rightPerpendicular(),r.assignAdd(e,n).normalize();const u=r.x*n.x+r.y*n.y;0!==u&&r.scale(1/u),_.push(h.bR.add(o,r.scale(i)))}s.push(_)}return s}function I(t,i,s,e){const n=new h.bR(t[0],t[1]);if(n.scale(e),"viewport"===i){const t=-s*(Math.PI/180),i=Math.cos(t),e=Math.sin(t);n.rotate(i,e)}return n}s.d(i,["Jo",0,r,"MG",0,n,"aA",0,_,"os",0,l,"pJ",0,o])},18989(t,i,s){s.d(i,{A:()=>e});class e{constructor(t=0,i=0,s=0,e=0){this.x=t,this.y=i,this.width=s,this.height=e}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9362],{60408(e,a,t){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function o(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}t.d(a,{$B:()=>o,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>c})},22429(e,a,t){t.d(a,{v:()=>n});var r=t(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009(e,a,t){t.d(a,{L:()=>u});var r=t(70333),n=t(11254),s=t(49186),i=t(17676),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,L]=await Promise.all([f,c]),p=L?.layers,w=m.data&&m.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,w.length);e++)if(p[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{A6:()=>l,Aq:()=>L,Jo:()=>m,QM:()=>i});var r=t(77548),n=t(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:t,layersJSON:r,...n}=await l(e,a);u(t);const s={serviceJSON:t,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,a){const{loadContext:t,...s}=a||{},i=t?await t.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();f(i);const c={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return c;const o=`${(0,r.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(o,s):await(0,n.L)(o,s);return f(u),c.layersJSON={layers:u.layers,tables:u.tables},c}function c(e){return s.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(c),e.tables=e.tables?.filter(o)}function y(e){e.type||="Feature Layer"}function d(e){e.type||="Table"}function f(e){e.layers?.forEach(y),e.tables?.forEach(d)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,t){const r={AnnotationFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(737),t.e(9727)]).then(t.bind(t,20737))).default,BingMapsLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(6684)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(7120)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9084)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(9789),t.e(4674),t.e(893),t.e(2718),t.e(7013),t.e(8882),t.e(2108)]).then(t.bind(t,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(3936)]).then(t.bind(t,25077))).default,DimensionLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(3766)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(2880),t.e(1817)]).then(t.bind(t,38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(617)]).then(t.bind(t,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(5186),t.e(9224)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(1994)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3262)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6018)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(893),t.e(1683),t.e(7939),t.e(6924),t.e(7772),t.e(2585)]).then(t.bind(t,87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(2880),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(1003),t.e(2806),t.e(9036)]).then(t.bind(t,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(5186),t.e(8325),t.e(5399)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(993),t.e(5186),t.e(8325),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(9526)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(3309)]).then(t.bind(t,93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(8470),t.e(5331)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(2304),t.e(8471)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(3734),t.e(2491)]).then(t.bind(t,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(8698),t.e(5069)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(1974),t.e(4965)]).then(t.bind(t,16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(9953),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(3819),t.e(7320),t.e(3649)]).then(t.bind(t,99680))).default,PointCloudLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(7984),t.e(6533)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(217),t.e(7975)]).then(t.bind(t,39622))).default,SceneLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(1086)]).then(t.bind(t,2e4))).default,StreamLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(946)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(9789),t.e(4674),t.e(2718),t.e(1683),t.e(2987)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(2880),t.e(8470),t.e(1e3)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await Promise.all([t.e(9917),t.e(2325)]).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(9917),t.e(6958)]).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2880),t.e(5168),t.e(7499),t.e(9260)]).then(t.bind(t,50638))).default,VideoLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(3910),t.e(4674),t.e(1683),t.e(3734),t.e(763)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(117)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(2806),t.e(5957)]).then(t.bind(t,20521))).default,WFSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(2774),t.e(2549)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(1728)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624)]).then(t.bind(t,47314))).default};t.d(a,["U",0,r])},66964(e,a,t){t.d(a,{Ju:()=>w,K8:()=>g,XH:()=>h,Y5:()=>p,_r:()=>l,bO:()=>o,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=t(60694),n=t(92009),s=t(23154),i=t(77548);function l(e,a){const{id:t,name:r}=e,n={id:t,name:r};return c(n,e,a),n}function c(e,a,t){const r=(0,s.Aq)(a.type,t);r&&(e.layerType=r)}async function o(e,a,t){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&d(e))n=e;else{const s=await t.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=f(e,s),m(n,s)}return L(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.[0]??t?.[0]??null}function y(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function d(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function f(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>l(e))??[],tables:e?.tables??a.tables?.map(e=>l(e,!0))??[]}}function m(e,a){const t=e.layers??[],r=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(const e of[...t,...r]){const{id:a,layerType:t}=e;if(t)continue;const s=n.find(({id:e})=>e===a);s&&c(e,s,r.includes(e))}}function L(e){e.layers=e.layers?.filter(b),e.tables=e.tables?.filter(b)}async function p(e,a,t){if(e?.layers?.length||e?.tables?.length){if(!d(e)){const n=(0,r.qg)(a)?.url.path;if(!n)return;m(e,await t.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}L(e)}}function w(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function h(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function b(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function g(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{const n=await t.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>l(e,!0))}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}},10407(e,a,t){t.d(a,{It:()=>f,LG:()=>i,OM:()=>o,Sm:()=>u,Y:()=>l,bK:()=>c,sQ:()=>y});var r=t(99917),n=t(16930),s=t(28735);function i(e,a){if(!l(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function l(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return l(e,d.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?i(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,s.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!t&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}t.d(a,["mm",0,d])},45613(e,a,t){t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(2976),c=t(77548),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=l.U[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:c.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const t=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());const{id:i,type:l}=t,o=(0,s.Jo)(l);if(!o)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:o,sourceJSON:t}}return{}}if("Video Service"===i){const e=await a.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let o=await a.fetchItemData(e);if(l){const{data:t,preferredHost:s}=await(0,u.bO)(o,n,a);if(0===(0,u.XH)(t))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,s);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(o=await(0,u.nu)(e,o,a)),(0,u.XH)(o)>0)return L(o);const y=await a.fetchServiceMetadata(n);return t&&(y.tables=await t()),L(y)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,a,t){t.d(a,{L:()=>n});var r=t(11254);async function n(e,a){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9362],{60408(e,a,t){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function o(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}t.d(a,{$B:()=>o,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>c})},22429(e,a,t){t.d(a,{v:()=>n});var r=t(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009(e,a,t){t.d(a,{L:()=>u});var r=t(70333),n=t(11254),s=t(49186),i=t(17676),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,L]=await Promise.all([f,c]),p=L?.layers,w=m.data&&m.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,w.length);e++)if(p[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{A6:()=>l,Aq:()=>L,Jo:()=>m,QM:()=>i});var r=t(77548),n=t(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:t,layersJSON:r,...n}=await l(e,a);u(t);const s={serviceJSON:t,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,a){const{loadContext:t,...s}=a||{},i=t?await t.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();f(i);const c={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return c;const o=`${(0,r.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(o,s):await(0,n.L)(o,s);return f(u),c.layersJSON={layers:u.layers,tables:u.tables},c}function c(e){return s.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(c),e.tables=e.tables?.filter(o)}function y(e){e.type||="Feature Layer"}function d(e){e.type||="Table"}function f(e){e.layers?.forEach(y),e.tables?.forEach(d)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,t){const r={AnnotationFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(737),t.e(9727)]).then(t.bind(t,20737))).default,BingMapsLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(6684)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(7120)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9084)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(9789),t.e(4674),t.e(893),t.e(2718),t.e(7013),t.e(8882),t.e(2108)]).then(t.bind(t,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(3936)]).then(t.bind(t,25077))).default,DimensionLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(3766)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(2880),t.e(1817)]).then(t.bind(t,38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(617)]).then(t.bind(t,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(5186),t.e(9224)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(1994)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3262)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6018)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(893),t.e(1683),t.e(7939),t.e(6924),t.e(7772),t.e(2585)]).then(t.bind(t,87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(2880),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(1003),t.e(2806),t.e(9036)]).then(t.bind(t,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(5186),t.e(8325),t.e(5399)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(993),t.e(5186),t.e(8325),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(9526)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(3309)]).then(t.bind(t,93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(8470),t.e(5331)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(2304),t.e(8471)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(3734),t.e(2491)]).then(t.bind(t,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(8698),t.e(5069)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(1974),t.e(4965)]).then(t.bind(t,16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(9953),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(3819),t.e(7320),t.e(3649)]).then(t.bind(t,99680))).default,PointCloudLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(7984),t.e(6533)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(217),t.e(7975)]).then(t.bind(t,39622))).default,SceneLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(1086)]).then(t.bind(t,2e4))).default,StreamLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(946)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(9789),t.e(4674),t.e(2718),t.e(1683),t.e(2987)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(2880),t.e(8470),t.e(1e3)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await Promise.all([t.e(9917),t.e(2325)]).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(9917),t.e(6958)]).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2880),t.e(5168),t.e(9151),t.e(3996)]).then(t.bind(t,50638))).default,VideoLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(3910),t.e(4674),t.e(1683),t.e(3734),t.e(763)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(117)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(2806),t.e(5957)]).then(t.bind(t,20521))).default,WFSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(2774),t.e(2549)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(1728)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624)]).then(t.bind(t,47314))).default};t.d(a,["U",0,r])},66964(e,a,t){t.d(a,{Ju:()=>w,K8:()=>g,XH:()=>h,Y5:()=>p,_r:()=>l,bO:()=>o,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=t(60694),n=t(92009),s=t(23154),i=t(77548);function l(e,a){const{id:t,name:r}=e,n={id:t,name:r};return c(n,e,a),n}function c(e,a,t){const r=(0,s.Aq)(a.type,t);r&&(e.layerType=r)}async function o(e,a,t){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&d(e))n=e;else{const s=await t.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=f(e,s),m(n,s)}return L(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.[0]??t?.[0]??null}function y(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function d(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function f(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>l(e))??[],tables:e?.tables??a.tables?.map(e=>l(e,!0))??[]}}function m(e,a){const t=e.layers??[],r=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(const e of[...t,...r]){const{id:a,layerType:t}=e;if(t)continue;const s=n.find(({id:e})=>e===a);s&&c(e,s,r.includes(e))}}function L(e){e.layers=e.layers?.filter(b),e.tables=e.tables?.filter(b)}async function p(e,a,t){if(e?.layers?.length||e?.tables?.length){if(!d(e)){const n=(0,r.qg)(a)?.url.path;if(!n)return;m(e,await t.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}L(e)}}function w(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function h(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function b(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function g(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{const n=await t.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>l(e,!0))}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}},10407(e,a,t){t.d(a,{It:()=>f,LG:()=>i,OM:()=>o,Sm:()=>u,Y:()=>l,bK:()=>c,sQ:()=>y});var r=t(99917),n=t(16930),s=t(28735);function i(e,a){if(!l(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function l(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return l(e,d.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?i(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,s.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!t&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}t.d(a,["mm",0,d])},45613(e,a,t){t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(2976),c=t(77548),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=l.U[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:c.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const t=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());const{id:i,type:l}=t,o=(0,s.Jo)(l);if(!o)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:o,sourceJSON:t}}return{}}if("Video Service"===i){const e=await a.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let o=await a.fetchItemData(e);if(l){const{data:t,preferredHost:s}=await(0,u.bO)(o,n,a);if(0===(0,u.XH)(t))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,s);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(o=await(0,u.nu)(e,o,a)),(0,u.XH)(o)>0)return L(o);const y=await a.fetchServiceMetadata(n);return t&&(y.tables=await t()),L(y)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,a,t){t.d(a,{L:()=>n});var r=t(11254);async function n(e,a){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169],{94869(e,t,i){function a(e){return Boolean(e).toString()}i.d(t,{t:()=>a})},20497(e,t,i){function a(e){return"l"===e?"m":"s"}async function n(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>n,g:()=>a}),i(46913)},17425(e,t,i){i.d(t,["g",0,()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")])},62533(e,t,i){i.d(t,{c:()=>n,u:()=>r});var a=i(46913);function n(e,t,i){if(a.S$)return;const n=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new n(t,i)}function r(e,t,i,a){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,a):e.observe(i)))}},64903(e,t,i){var a=i(87713);i.d(t,["u",0,e=>(0,a.aK)(t=>{function i(i){const{form:a}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!a||"button"===t.type||("submit"!==t.type?a.reset():a.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})])},28525(e,t,i){var a=i(87713),n=i(26009),r=i(46913);const l=({children:e,disabled:t})=>r.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`,s=(0,a.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=c,(t=e.el).addEventListener("pointerdown",o,h),d.forEach(e=>t.addEventListener(e,v,h))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",o,h),d.forEach(e=>t.removeEventListener(e,v,h))})(e),e.el.removeAttribute("aria-disabled")}(e)),l));function c(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function o(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function v(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const h={capture:!0};i.d(t,["u",0,s])},80777(e,t,i){var a=i(87713),n=i(20497),r=i(81610);i.d(t,["u",0,()=>(0,a.aK)((e,t)=>{let i;function a(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",a,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",a)}),async(t,l)=>{if(e.disabled)return;const s=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!s)return;const{target:c,includeContainer:o,strategy:d}=s,v=(0,r.i)(e.el),h=v.activeElement;return await(0,n.c)(e),h!==v.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",a),(0,r.k)(c,o,d,e.el,l))}})])},13734(e,t,i){var a=i(87713),n=i(28030);const r=(0,a.yr)(n.g);i.d(t,["u",0,r])},31965(e,t,i){var a=i(28030),n=i(46913),r=i(26009),l=i(87713),s=i(94869),c=i(62533);const o="flip-rtl",d="svg",v={},h={},u={s:16,m:24,l:32};function p({icon:e,scale:t}){const i=u[t],a=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),n="F"===a.charAt(a.length-1);return`${n?a.substring(0,a.length-1):a}${i}${n?"F":""}`}function m(e){return v[e]}const f=n.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends r.WF{constructor(){super(...arguments),this.direction=(0,l.jH)(),this.visible=!1,this.flipRtl=!1,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||void 0!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(n.S$||!e||!i)return;const r={icon:e,scale:t},l=m(p(r))||await async function(e){const t=p(e),i=m(t);if(i)return i;h[t]||(h[t]=fetch((0,a.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(a.l.error(`${e.icon} (${e.scale}) icon failed to load`),"")));const n=await h[t];return v[t]=n,n}(r);e===this.icon&&(this.pathData=l)}waitUntilVisible(e){this.intersectionObserver=(0,c.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:a}=this,l=this.direction,c=u[i],v=!!a,h=Array.isArray(t)?t:[t??""];return this.el.ariaHidden=(0,s.t)(!v),this.el.ariaLabel=v?a:null,this.el.role=v?"img":null,n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:"rtl"===l&&e,[d]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map(e=>"string"==typeof e?n.JW`<path d=${e??n.s6} />`:n.JW`<path d=${e.d??n.s6} opacity=${("opacity"in e?e.opacity:1)??n.s6} />`)}</svg>`}}(0,a.c)("calcite-icon",g)},7879(e,t,i){var a=i(28030),n=i(46913),r=i(26009),l=i(17425),s=i(13734);const c="ring--progress",o="ring",d="ring--track",v=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:s,value:c}=this,o=e.id||(0,l.g)(),d="indeterminate"!==s,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":null,this.el.ariaValueMin=d?"0":null,this.el.ariaValueNow=d?v.toString():null,(0,r.Bq)(this.el,"id",o),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),s=.45*l;let v;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${s??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",h)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7013],{69052(t,e,r){r.d(e,{hr:()=>n});var s=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return i(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+a(this.range,t-e,r)}minimalMonotonic(t,e,r){return i(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(s)?r:s}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t,e,r,s,n=0,i=!1){return(s-=n)<e?s+=a(t,e-s):s>r&&(s-=a(t,s-r)),i&&s===r&&(s=e),s+n}function a(t,e,r=0){return Math.ceil((e-r)/t)*t+r}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360));r.d(e,["ie",0,u,"uC",0,o])},82534(t,e,r){function s(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>n,vt:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:s,fromValues:function(t,e,r,s){return[t,e,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>f,Xd:()=>c,Xr:()=>h,lw:()=>p,x8:()=>l});var s=r(29242),n=r(82534),i=r(51850),a=r(34304),o=r(35522),u=r(78955);function l(t,e,r){r*=.5;const s=Math.sin(r);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),s=Math.sin(r/2);return s>(0,a.FD)()?(t[0]=e[0]/s,t[1]=e[1]/s,t[2]=e[2]/s):(t[0]=1,t[1]=0,t[2]=0),r}function p(t,e,r){const s=e[0],n=e[1],i=e[2],a=e[3],o=r[0],u=r[1],l=r[2],c=r[3];return t[0]=s*c+a*o+n*l-i*u,t[1]=n*c+a*u+i*o-s*l,t[2]=i*c+a*l+s*u-n*o,t[3]=a*c-s*o-n*u-i*l,t}function d(t,e,r,s){const n=e[0],i=e[1],o=e[2],u=e[3];let l,c,p,d,h,y=r[0],f=r[1],m=r[2],g=r[3];return c=n*y+i*f+o*m+u*g,c<0&&(c=-c,y=-y,f=-f,m=-m,g=-g),1-c>(0,a.FD)()?(l=Math.acos(c),p=Math.sin(l),d=Math.sin((1-s)*l)/p,h=Math.sin(s*l)/p):(d=1-s,h=s),t[0]=d*n+h*y,t[1]=d*i+h*f,t[2]=d*o+h*m,t[3]=d*u+h*g,t}function h(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function y(t,e){const r=e[0]+e[4]+e[8];let s;if(r>0)s=Math.sqrt(r+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const n=(r+1)%3,i=(r+2)%3;s=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*i+i]+1),t[r]=.5*s,s=.5/s,t[3]=(e[3*n+i]-e[3*i+n])*s,t[n]=(e[3*n+r]+e[3*r+n])*s,t[i]=(e[3*i+r]+e[3*r+i])*s}return t}function f(t,e,r,s){const n=.5*Math.PI/180;e*=n,r*=n,s*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),c=Math.cos(s);return t[0]=i*u*c-a*o*l,t[1]=a*o*c+i*u*l,t[2]=a*u*l-i*o*c,t[3]=a*u*c+i*o*l,t}const m=u.C,g=u.hZ,b=u.WQ,S=p,A=u.hs,v=u.Om,_=u.Cc,x=u.Bw,w=x,M=u.m3,q=M,I=u.S8,F=u.t2,R=u.aI,O=(0,i.vt)(),C=(0,i.fA)(1,0,0),T=(0,i.fA)(0,1,0),P=(0,n.vt)(),E=(0,n.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],s=e[1],n=e[2];return t[0]=r,t[1]=s,t[2]=n,t[3]=Math.sqrt(Math.abs(1-r*r-s*s-n*n)),t},conjugate:h,copy:m,dot:v,equals:R,exactEquals:F,fromEuler:f,fromMat3:y,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],s=e[1],n=e[2],i=e[3],a=r*r+s*s+n*n+i*i,o=a?1/a:0;return t[0]=-r*o,t[1]=-s*o,t[2]=-n*o,t[3]=i*o,t},len:w,length:x,lerp:_,mul:S,multiply:p,normalize:I,random:function(t){const e=a.Ov,r=e(),s=e(),n=e(),i=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*s),t[1]=i*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-s*o,t},rotateY:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u-i*o,t[1]=n*u+a*o,t[2]=i*u+s*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+n*o,t[1]=n*u-s*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,r){const s=(0,o.Om)(e,r);return s<-.999999?((0,o.$A)(O,C,e),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,e),(0,o.S8)(O,O),l(t,O,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(O,e,r),t[0]=O[0],t[1]=O[1],t[2]=O[2],t[3]=1+s,I(t,t))},scale:A,set:g,setAxes:function(t,e,r,s){const n=N;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=s[0],n[4]=s[1],n[7]=s[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],I(t,y(t,n))},setAxisAngle:l,slerp:d,sqlerp:function(t,e,r,s,n,i){return d(P,e,n,i),d(E,r,s,i),d(t,P,E,2*i*(1-i)),t},sqrLen:q,squaredLength:M,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,g,"t2",0,F])},93146(t,e,r){r.d(e,{z:()=>n});class s{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function n(t){return new s(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},95696(t,e,r){r.d(e,{A:()=>l});var s,n=r(5482),i=r(69540),a=r(25482),o=r(91429),u=r(93223);let l=class extends((0,i.OU)(a.o)){static{s=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,r){r.d(e,{A:()=>l});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(51850),u=r(93223);let l=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(t,e,r){r.d(e,{A:()=>h});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(58083),u=r(9093),l=r(67026),c=r(82534),p=r(51850),d=r(24770);let h=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(d.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,l.x8)(y,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,o.o1)(t,y,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,s.Cg)([(0,a.MZ)()],h.prototype,"rotation",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrix",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,c.vt)()},24770(t,e,r){r.d(e,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>c,ui:()=>p,vt:()=>l,yo:()=>y});var s=r(34727),n=r(58083),i=r(67026),a=r(82534),o=r(35522),u=r(51850);function l(t=b){return[t[0],t[1],t[2],t[3]]}function c(t,e,r=l()){return(0,o.C)(r,t),r[3]=e,r}function p(t,e=l()){const r=(0,n.l)(S,t);return g(e,(0,s.KJ)((0,i.Xd)(e,r))),e}function d(t,e,r=l()){return(0,i.x8)(S,t,m(t)),(0,i.x8)(A,e,m(e)),(0,i.lw)(S,A,S),g(r,(0,s.KJ)((0,i.Xd)(r,S)))}function h(t,e,r,s=l()){return c(u.Cw,t,v),c(u.JP,e,_),c(u.Cb,r,x),d(v,_,v),d(v,x,s),s}function y(t){return t}function f(t){return t[3]}function m(t){return(0,s.kU)(t[3])}function g(t,e){return t[3]=e,t}const b=[0,0,1,0],S=(0,a.vt)(),A=(0,a.vt)(),v=(l(),l()),_=l(),x=l();r.d(e,["up",0,b])},63579(t,e,r){r.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>h,fH:()=>f,in:()=>y,yr:()=>l});var s=r(11254),n=r(4576),i=r(17676),a=r(20557);class o{constructor(t,e,r){this.assetName=t,this.assetMimeType=e,this.parts=r}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const r=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(r)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function l(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(d):d(t.files);case"service":return t.assets.some(d);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function d(t){if(t instanceof File){const{type:e,name:r}=t;return c.test(e)||p.test(r)}return c.test(t.assetMimeType)||p.test(t.assetName)}function h(t,e){if(!t)return!1;const{source:r}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(r,e)}function y(t,e){if(t===e)return!0;const{source:r}=t,{source:s}=e;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...r.assets].sort(t),n=[...s.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function f(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,r){r.d(e,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>c,yJ:()=>p});var s=r(35522),n=r(86738),i=r(95696),a=r(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function l(t,e){if(!o(t))return null;const[r,s,i]=t.origin;return new n.A({x:r,y:s,z:i,spatialReference:e})}function c(t,e){const{x:r,y:s,z:n,spatialReference:o}=t,u=[r,s,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.A({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,s.t2)(t.origin,e.origin))}},52039(t,e,r){r.d(e,{O7:()=>p,el:()=>u});var s=r(69052),n=(r(49186),r(17676)),i=(r(5443),r(39829),r(82799),r(16930)),a=r(93146),o=(r(80754),r(21325));async function u(t,e,r){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(r=e);let s=null;for(const e of t)s??=e?.spatialReference;if(!s)return t;const i=(0,o.Vp)(s);if(!i)return t;const[a,u]=i.valid;let p=!1;for(const e of t){if(!e)continue;if("point"===e.type){p||=e.x>=u,p||=e.x<=a;continue}const{extent:t}=e;if(null==t){p=!0;break}p||=t.xmin>=u,p||=t.xmin<=a,p||=t.xmax>=u,p||=t.xmax<=a}if(!p)return t;const[{foldInto360Range:d},h]=await(0,n.qr)(Promise.all([l.getImportPromise(),c.getImportPromise()]),r),y=h.fromSpatialReference(s);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=h.fromGeometry(t),r=h.toGeometry(d(e,y),s);return"extent"===t.type&&1===r?.rings.length?r.extent:r})}const l=(0,a.z)(()=>r.e(4144).then(r.bind(r,4144))),c=(0,a.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function p(t,e,r){const s=(0,o.Vp)(r);if(null==s)return t;const[n,i]=s.valid,a=2*i;let u=0,l=0;e>i?u=Math.ceil(Math.abs(e-i)/a):e<n&&(u=-Math.ceil(Math.abs(e-n)/a)),t>i?l=Math.ceil(Math.abs(t-i)/a):t<n&&(l=-Math.ceil(Math.abs(t-n)/a));let c=t+(u-l)*a;const p=c-e;return p>i?c-=a:p<n&&(c+=a),c}function d(t){const e=(0,o.Vp)(t);if(null==e)return null;const[r,n]=e.valid;return new s.hr(r,n)}const h=d(i.A.WGS84);d(i.A.WebMercator),r.d(e,["Y_",0,h])},80754(t,e,r){r.d(e,{kS:()=>l,kd:()=>u});var s=r(82799),n=r(16930),i=r(60408),a=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,a.Ed)(t))for(const r of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of r){if((0,a.aO)(t)){const[r,s]=t.c;r[0]+=e,s[0]+=e;continue}if((0,a.FG)(t)){const[r,s]=t.a;r[0]+=e,s[0]+=e;continue}if((0,a.n1)(t)){const[r,s,n]=t.b;r[0]+=e,s[0]+=e,n[0]+=e;continue}t[0]+=e}for(const r of function(t){return(0,i.Bi)(t)?t.rings:t.paths}(t))for(const t of r)t[0]+=e;return t}r.d(e,["j7",0,o])},99352(t,e,r){r.d(e,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},65515(t,e,r){r.r(e),r.d(e,{default:()=>Y});var s=r(5482),n=r(92602),i=r(11254),a=r(4576),o=r(49186),u=r(44208),l=r(66552),c=r(92474),p=r(53966),d=r(93637),h=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),b=r(5443),S=r(16930),A=r(95696),v=r(27615),_=r(63579),x=r(52106),w=r(86211);function M(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function q(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function I(t){return t.every(q)}var F=r(99917),R=r(65864),O=r(73836),C=r(21325);async function T(t,e,r){const{geometry:s}=e,n={...e.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:e}=r,{origin:i,spatialReference:a,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,c=t.spatialReference,p=c.isGeographic,d=(0,C.aI)(c,a),h=(0,F.isEqualBaseGCS)(a,c)&&(0,F.canProjectWithoutEngine)(a,c);if(!(l&&p&&h||!l&&!p&&d))return null;const y=(0,F.projectWithoutEngine)(i,a,c);if(null==y)return null;if(n[e.originX]=y.x,n[e.originY]=y.y,n[e.originZ]=y.z??0,null!=u){const{translation:t,scale:r,rotation:s}=u,i=l?1:(0,w.KX)(a)/(0,w.KX)(c);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=r[0],n[e.scaleY]=r[2],n[e.scaleZ]=r[1],n[e.rotationX]=s[0],n[e.rotationY]=s[2],n[e.rotationZ]=-s[1],n[e.rotationDeg]=s[3]}return{attributes:n}}return null==s?{attributes:n}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:n}}async function P(t,e){const r=await Promise.all((e.addAttachments??[]).map(e=>E(t,e))),s=await Promise.all((e.updateAttachments??[]).map(e=>E(t,e))),n=e.deleteAttachments??[];return r.length||s.length||n.length?{adds:r,updates:s,deletes:[...n]}:null}async function E(t,e){const{feature:r,attachment:s}=e,{globalId:n,name:i,contentType:a,data:o,keywords:u,uploadId:l}=s,c={globalId:n};if(r&&("attributes"in r?c.parentGlobalId=r.attributes?.[t.globalIdField]:r.globalId&&(c.parentGlobalId=r.globalId)),l)c.uploadId=l;else if(o){const t=await(0,f._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),u&&(c.keywords=u),c}function N(t,e,r){if(!e||0===e.length)return[];if(r&&I(e))return e.map(t=>t.globalId);if(function(t){return t.every(M)}(e))return e.map(t=>t.objectId);const s=r?t.globalIdField:t.objectIdField;return s?e.map(t=>t.getAttribute(s)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function Q(t,e){return new x.A({attributes:t.attributes,geometry:(0,R.rS)({...t.geometry,spatialReference:e})})}function V(t,e){return{adds:t?.adds?.map(t=>Q(t,e))||[],updates:t?.updates?.map(t=>({original:Q(t[0],e),current:Q(t[1],e)}))||[],deletes:t?.deletes?.map(t=>Q(t,e))||[],spatialReference:e}}var Z=r(64714),j=r(64314),J=r(60694),U=r(15426),G=r(20557),k=r(99199),B=r(96520),z=r(97552),X=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends c.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,h.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,r=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(r),Promise.resolve(this)}initialize(){this.addHandles([(0,y.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:r,spatialReference:s,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,c=l&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,d=t?.query?.relativeTimeBinWindow??0,h=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:r,infoFor3D:a,pbfSupported:l,pbfSupportedWithCurves:c,queryAttachmentsSupported:p,relativeTimeBinWindow:d,sourceSpatialReference:s,uniqueIdFields:i,url:h})}async addAttachment(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(e,o.query);try{return D((await(0,i.A)(a,{body:u})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async updateAttachment(t,e,r,s){await this.load();const{layer:n}=this;await(0,U.VA)(n,"editing");const a=t.attributes[n.objectIdField],o=n.parsedUrl.path+"/"+a+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:e,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,i.A)(o,{body:l})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(a,t)}}async applyEdits(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s="infoFor3D"in r?r.infoFor3D:null,n=null!=s,u=n||(e?.globalIdUsed??!1),l=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,c=t.addFeatures?.map(t=>T(this.layer,t,s))??[],p=(await Promise.all(c)).filter(a.Ru),d=t.updateFeatures?.map(t=>T(this.layer,t,s))??[],h=(await Promise.all(d)).filter(a.Ru),y=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,h,r.spatialReference);const f=await P(this.layer,t),m=r.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||r.gdbVersion,b={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const S=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:h.length?h:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),b.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=h.length?JSON.stringify(h):null,b.deletes=y.length?u?JSON.stringify(y):y.join(","):null,b.attachments=f&&JSON.stringify(f),b.assetMaps=null!=l?JSON.stringify(l):void 0);const A=this._getLayerRequestOptions({method:"post",query:b});S&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);const v=e?.returnServiceEditsOption?r.url:r.parsedUrl.path;let _;try{_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}catch(t){if(!function(t){const e=t.details.raw,r=+e.code,s=+e.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(t))throw t;A.authMode="immediate",_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/deleteAttachments";try{return(await(0,i.A)(a,this._getLayerRequestOptions({query:{attachmentIds:e.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(n,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,i.A)(`${s}/${r}`,e),{id:a,extent:o,fullExtent:u,timeExtent:l}=n,c=o||u;return{id:a,fullExtent:c&&b.A.fromJSON(c),timeExtent:l&&X.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(t,e={}){await this.load();const r=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,r)}async queryFeatures(t,e){await this.load();const r=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&r.features.length){const e=new Map;if(r.features.forEach(r=>{const s=r.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const r=t.toLowerCase();r&&r in s&&t!==r&&(s[t]=s[r],delete s[r],e.set(r,t))}})}),null!=r.fields)for(const t of r.fields){const r=e.get(t.name.toLowerCase());null!=r&&(t.name=r)}}return r}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,f.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:s}=await r.e(1384).then(r.bind(r,31384));return s(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;let r=e.url;null!=r&&("layerId"in e&&(r=(0,f.fj)(r,e.layerId.toString())),this._getOrCreateEditInterceptor(r).before=e=>{const r=e.requestOptions.method??"auto";if("auto"===r||"head"===r){const r=e.requestOptions.query??{};r._ts=t.getTime(),e.requestOptions.query=r}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const r=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),e?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:e?.signal}));t=s}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const r=t.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Z.F0)(t.geometryType).renderer;(0,d.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:r}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));r.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(t){(0,h.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const s=t.addFeatures.filter(t=>t.geometry);if(e.length!==s.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:s}=e;if((0,v.Hq)(s))n.push(e);else{const s=e.origin,{convertMeshVertexSpace:a}=await Promise.all([r.e(6860),r.e(4508)]).then(r.bind(r,28846)),o=await a(e,new A.A({origin:[s.x,s.y,s.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(s),o=n.getAttribute(r);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(_.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const r=t?.attachments,s={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return t?.editMoment&&(s.editMoment=t.editMoment),s}(n);if(s.length>0){i.editedFeatureResults=[];for(const t of s){const{editedFeatures:e}=t,r=e?.spatialReference?new S.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:V(e,r)})}}return i}_createAttachmentErrorResult(t,e){const r=e.details.messages?.[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...t,query:{gdbVersion:s,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:r,parsedUrl:s}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==r)return!1;const i=(0,G.JZ)(n);if(null==i)return!1;const o=(0,f.fj)(s.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(e)}const l=u.map(t=>t.getAttribute(r)).filter(a.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=n,d=new z.A({where:`${c} IN (${l.map(t=>`'${t}'`)})`,outFields:[p,c],returnGeometry:!1}),h=await(0,k.s)(o,d),{features:y}=h;return 0!==y.length&&!u.some(t=>{const e=t.getAttribute(r);if(!e)return!0;const{metadata:n}=t.geometry,i=y.filter(t=>t.getAttribute(c)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(s).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,r){r.d(e,{A:()=>M});var s=r(5482),n=r(69622),i=r(49186),a=r(44208),o=r(17676),u=r(84952),l=r(91429),c=r(21325),p=r(20557),d=r(2272),h=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),b=r(62815),S=r(63746);class A{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:r}of e)r&&(r.spatialReference=t)}feature(){this._attributesClass??=(0,S._)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=n?i?A._finishVertexPointXYZM:A._finishVertexPointXYZ:i?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:n,hasM:i},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:n,hasM:i},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:n,hasM:i},this._parts=s.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,r,s){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,r,s){this._part.push({b:[this._transform(e),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(t,e,r){this._part.push({c:[this._transform(e),this._transformXY(r)]})}ellipticArcSegment(t,e,r,s,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(r),s,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:r,_lengths:s,_vertex:n}=t;e.push([...n]),e.length<s[r.length]||(t._previousX=t._previousY=0,t._part=[],r.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:r,transform:s}=this.featureSet,n=r?(0,b.d)(t,e):1;this._transformInPlace??=(0,S.M)(this.featureSet,n),this._transformInPlaceXY??=(0,S.M)({transform:s})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var v=r(80893),_=r(22671),x=r(97552);async function w(t,e,r,s){const n=(0,d.Dl)(t),i={...r},a=x.A.from(e),o=!a.quantizationParameters;return await(0,v.IJ)(n,a,new A({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,s)}let M=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const r=await this.executeJSON(t,e);return this.featureSetFromJSON(t,r,e)}async executeJSON(t,e){const r=this._normalizeQuery(t),s=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!s||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await w(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,r,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return _.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([r.e(6860),r.e(118),r.e(8366)]).then(r.bind(r,40050)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,y.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,f.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:s},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:s},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:s,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(r.e(9239).then(r.bind(r,9239)),e),a=(0,d.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?s(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(r.bind(r,33103)),e);return s(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(r.bind(r,80566)),e);return s(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(r.bind(r,11273)),e);return s(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(r.bind(r,21277)),e);return s(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(r.bind(r,8018)),e);return s(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(r.bind(r,10980)),e);return s(this.parsedUrl,t,e)}_normalizeQuery(t){let e=x.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?h.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(t);if(null!=r&&s){if(e=e===t?e.clone():e,e.formatOf3DObjects=s,e.outSpatialReference&&!(0,c.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:s,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:l,scaleY:c,scaleZ:p,rotationX:d,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;e.outFields.push(s,n,i,a,o,u,l,c,p,d,h,y,f)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:r}){return!0!==t||"xyFootprint"===e||r?null:(0,p.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:h.A})],M.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],M.prototype,"url",void 0),M=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],M)},64714(t,e,r){r.d(e,{F0:()=>o,Vx:()=>c,e2:()=>d,f:()=>h});var s=r(44208),n=r(4718),i=r(99352),a=r(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>e?{[e]:null,...t}:{...t};try{let r="";e&&(r+=`this${p(e)} = null;`);for(const e in t)r+=`this${p(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>e?{[e]:null,...t}:{...t}}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function d(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function h(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(t,e,r){r.d(e,{I:()=>a});var s=r(2272),n=r(80893),i=r(97552);function a(t,e,r,a){return(0,n.gW)((0,s.Dl)(t),i.A.from(e),r,a)}},74910(t,e,r){r.d(e,{L:()=>o});var s=r(5443),n=r(2272),i=r(80893),a=r(97552);async function o(t,e,r){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(t,e,r){r.d(e,{V:()=>a});var s=r(2272),n=r(80893),i=r(97552);async function a(t,e,r,a){const o=(0,s.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),r,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,r){r.d(e,{e:()=>u,s:()=>o});var s=r(2272),n=r(80893),i=r(22671),a=r(97552);async function o(t,e,r,s){const n=await u(t,e,r,s);return i.A.fromJSON(n)}function u(t,e,r,i){const o=(0,s.Dl)(t),u={...r},l=a.A.from(e);return(0,n.eW)(o,l,l.sourceSpatialReference,u,i)}},63746(t,e,r){function s(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:r,hasZ:s,hasM:n}=t;if(null==r)return s&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,r,s){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*s:t),i=i.map((t,e)=>2===e?t*s:t)),!e&&r&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(r,s,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}r.d(e,{M:()=>n,_:()=>s})},2272(t,e,r){r.d(e,{Dl:()=>l,gf:()=>p,jV:()=>u,lF:()=>c});var s=r(92602),n=r(70333),i=r(4718),a=r(84952),o=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function l(t){return"string"==typeof t?(0,a.An)(t):(0,i.o8)(t)}function c(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const i=t[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))s[n]=i.map(t=>c(t));else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(r?.[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?i:JSON.stringify(i);else s[n]=i}return s}async function p(t,e,i){const a=function(t,e){return t?e&&(0,o.Qc)(t)?e:(0,o.getApiKey)(t)??n.id?.findCredential(t)?.token:null}(t,e);if(a)return a;!n.id&&s.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(2584),r.e(148)]).then(r.bind(r,50148));const u=await n.id.getCredential(t,i);return u?.token}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7013],{69052(t,e,r){r.d(e,{hr:()=>n});var s=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return i(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+a(this.range,t-e,r)}minimalMonotonic(t,e,r){return i(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(s)?r:s}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t,e,r,s,n=0,i=!1){return(s-=n)<e?s+=a(t,e-s):s>r&&(s-=a(t,s-r)),i&&s===r&&(s=e),s+n}function a(t,e,r=0){return Math.ceil((e-r)/t)*t+r}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360));r.d(e,["ie",0,u,"uC",0,o])},82534(t,e,r){function s(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>n,vt:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:s,fromValues:function(t,e,r,s){return[t,e,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>f,Xd:()=>c,Xr:()=>h,lw:()=>p,x8:()=>l});var s=r(29242),n=r(82534),i=r(51850),a=r(34304),o=r(35522),u=r(78955);function l(t,e,r){r*=.5;const s=Math.sin(r);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),s=Math.sin(r/2);return s>(0,a.FD)()?(t[0]=e[0]/s,t[1]=e[1]/s,t[2]=e[2]/s):(t[0]=1,t[1]=0,t[2]=0),r}function p(t,e,r){const s=e[0],n=e[1],i=e[2],a=e[3],o=r[0],u=r[1],l=r[2],c=r[3];return t[0]=s*c+a*o+n*l-i*u,t[1]=n*c+a*u+i*o-s*l,t[2]=i*c+a*l+s*u-n*o,t[3]=a*c-s*o-n*u-i*l,t}function d(t,e,r,s){const n=e[0],i=e[1],o=e[2],u=e[3];let l,c,p,d,h,y=r[0],f=r[1],m=r[2],g=r[3];return c=n*y+i*f+o*m+u*g,c<0&&(c=-c,y=-y,f=-f,m=-m,g=-g),1-c>(0,a.FD)()?(l=Math.acos(c),p=Math.sin(l),d=Math.sin((1-s)*l)/p,h=Math.sin(s*l)/p):(d=1-s,h=s),t[0]=d*n+h*y,t[1]=d*i+h*f,t[2]=d*o+h*m,t[3]=d*u+h*g,t}function h(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function y(t,e){const r=e[0]+e[4]+e[8];let s;if(r>0)s=Math.sqrt(r+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const n=(r+1)%3,i=(r+2)%3;s=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*i+i]+1),t[r]=.5*s,s=.5/s,t[3]=(e[3*n+i]-e[3*i+n])*s,t[n]=(e[3*n+r]+e[3*r+n])*s,t[i]=(e[3*i+r]+e[3*r+i])*s}return t}function f(t,e,r,s){const n=.5*Math.PI/180;e*=n,r*=n,s*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),c=Math.cos(s);return t[0]=i*u*c-a*o*l,t[1]=a*o*c+i*u*l,t[2]=a*u*l-i*o*c,t[3]=a*u*c+i*o*l,t}const m=u.C,g=u.hZ,b=u.WQ,S=p,A=u.hs,v=u.Om,_=u.Cc,x=u.Bw,w=x,M=u.m3,q=M,I=u.S8,F=u.t2,R=u.aI,O=(0,i.vt)(),C=(0,i.fA)(1,0,0),T=(0,i.fA)(0,1,0),P=(0,n.vt)(),E=(0,n.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],s=e[1],n=e[2];return t[0]=r,t[1]=s,t[2]=n,t[3]=Math.sqrt(Math.abs(1-r*r-s*s-n*n)),t},conjugate:h,copy:m,dot:v,equals:R,exactEquals:F,fromEuler:f,fromMat3:y,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],s=e[1],n=e[2],i=e[3],a=r*r+s*s+n*n+i*i,o=a?1/a:0;return t[0]=-r*o,t[1]=-s*o,t[2]=-n*o,t[3]=i*o,t},len:w,length:x,lerp:_,mul:S,multiply:p,normalize:I,random:function(t){const e=a.Ov,r=e(),s=e(),n=e(),i=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*s),t[1]=i*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-s*o,t},rotateY:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u-i*o,t[1]=n*u+a*o,t[2]=i*u+s*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+n*o,t[1]=n*u-s*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,r){const s=(0,o.Om)(e,r);return s<-.999999?((0,o.$A)(O,C,e),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,e),(0,o.S8)(O,O),l(t,O,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(O,e,r),t[0]=O[0],t[1]=O[1],t[2]=O[2],t[3]=1+s,I(t,t))},scale:A,set:g,setAxes:function(t,e,r,s){const n=N;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=s[0],n[4]=s[1],n[7]=s[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],I(t,y(t,n))},setAxisAngle:l,slerp:d,sqlerp:function(t,e,r,s,n,i){return d(P,e,n,i),d(E,r,s,i),d(t,P,E,2*i*(1-i)),t},sqrLen:q,squaredLength:M,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,g,"t2",0,F])},93146(t,e,r){r.d(e,{z:()=>n});class s{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function n(t){return new s(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},95696(t,e,r){r.d(e,{A:()=>l});var s,n=r(5482),i=r(69540),a=r(25482),o=r(91429),u=r(93223);let l=class extends((0,i.OU)(a.o)){static{s=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,r){r.d(e,{A:()=>l});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(51850),u=r(93223);let l=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(t,e,r){r.d(e,{A:()=>h});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(58083),u=r(9093),l=r(67026),c=r(82534),p=r(51850),d=r(24770);let h=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(d.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,l.x8)(y,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,o.o1)(t,y,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,s.Cg)([(0,a.MZ)()],h.prototype,"rotation",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrix",null),(0,s.Cg)([(0,a.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,c.vt)()},24770(t,e,r){r.d(e,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>c,ui:()=>p,vt:()=>l,yo:()=>y});var s=r(34727),n=r(58083),i=r(67026),a=r(82534),o=r(35522),u=r(51850);function l(t=b){return[t[0],t[1],t[2],t[3]]}function c(t,e,r=l()){return(0,o.C)(r,t),r[3]=e,r}function p(t,e=l()){const r=(0,n.l)(S,t);return g(e,(0,s.KJ)((0,i.Xd)(e,r))),e}function d(t,e,r=l()){return(0,i.x8)(S,t,m(t)),(0,i.x8)(A,e,m(e)),(0,i.lw)(S,A,S),g(r,(0,s.KJ)((0,i.Xd)(r,S)))}function h(t,e,r,s=l()){return c(u.Cw,t,v),c(u.JP,e,_),c(u.Cb,r,x),d(v,_,v),d(v,x,s),s}function y(t){return t}function f(t){return t[3]}function m(t){return(0,s.kU)(t[3])}function g(t,e){return t[3]=e,t}const b=[0,0,1,0],S=(0,a.vt)(),A=(0,a.vt)(),v=(l(),l()),_=l(),x=l();r.d(e,["up",0,b])},63579(t,e,r){r.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>h,fH:()=>f,in:()=>y,yr:()=>l});var s=r(11254),n=r(4576),i=r(17676),a=r(20557);class o{constructor(t,e,r){this.assetName=t,this.assetMimeType=e,this.parts=r}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const r=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(r)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function l(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(d):d(t.files);case"service":return t.assets.some(d);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function d(t){if(t instanceof File){const{type:e,name:r}=t;return c.test(e)||p.test(r)}return c.test(t.assetMimeType)||p.test(t.assetName)}function h(t,e){if(!t)return!1;const{source:r}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(r,e)}function y(t,e){if(t===e)return!0;const{source:r}=t,{source:s}=e;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...r.assets].sort(t),n=[...s.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function f(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,r){r.d(e,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>c,yJ:()=>p});var s=r(35522),n=r(86738),i=r(95696),a=r(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function l(t,e){if(!o(t))return null;const[r,s,i]=t.origin;return new n.A({x:r,y:s,z:i,spatialReference:e})}function c(t,e){const{x:r,y:s,z:n,spatialReference:o}=t,u=[r,s,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.A({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,s.t2)(t.origin,e.origin))}},52039(t,e,r){r.d(e,{O7:()=>p,el:()=>u});var s=r(69052),n=(r(49186),r(17676)),i=(r(5443),r(39829),r(82799),r(16930)),a=r(93146),o=(r(80754),r(21325));async function u(t,e,r){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(r=e);let s=null;for(const e of t)s??=e?.spatialReference;if(!s)return t;const i=(0,o.Vp)(s);if(!i)return t;const[a,u]=i.valid;let p=!1;for(const e of t){if(!e)continue;if("point"===e.type){p||=e.x>=u,p||=e.x<=a;continue}const{extent:t}=e;if(null==t){p=!0;break}p||=t.xmin>=u,p||=t.xmin<=a,p||=t.xmax>=u,p||=t.xmax<=a}if(!p)return t;const[{foldInto360Range:d},h]=await(0,n.qr)(Promise.all([l.getImportPromise(),c.getImportPromise()]),r),y=h.fromSpatialReference(s);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=h.fromGeometry(t),r=h.toGeometry(d(e,y),s);return"extent"===t.type&&1===r?.rings.length?r.extent:r})}const l=(0,a.z)(()=>r.e(4144).then(r.bind(r,4144))),c=(0,a.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function p(t,e,r){const s=(0,o.Vp)(r);if(null==s)return t;const[n,i]=s.valid,a=2*i;let u=0,l=0;e>i?u=Math.ceil(Math.abs(e-i)/a):e<n&&(u=-Math.ceil(Math.abs(e-n)/a)),t>i?l=Math.ceil(Math.abs(t-i)/a):t<n&&(l=-Math.ceil(Math.abs(t-n)/a));let c=t+(u-l)*a;const p=c-e;return p>i?c-=a:p<n&&(c+=a),c}function d(t){const e=(0,o.Vp)(t);if(null==e)return null;const[r,n]=e.valid;return new s.hr(r,n)}const h=d(i.A.WGS84);d(i.A.WebMercator),r.d(e,["Y_",0,h])},80754(t,e,r){r.d(e,{kS:()=>l,kd:()=>u});var s=r(82799),n=r(16930),i=r(60408),a=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,a.Ed)(t))for(const r of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of r){if((0,a.aO)(t)){const[r,s]=t.c;r[0]+=e,s[0]+=e;continue}if((0,a.FG)(t)){const[r,s]=t.a;r[0]+=e,s[0]+=e;continue}if((0,a.n1)(t)){const[r,s,n]=t.b;r[0]+=e,s[0]+=e,n[0]+=e;continue}t[0]+=e}for(const r of function(t){return(0,i.Bi)(t)?t.rings:t.paths}(t))for(const t of r)t[0]+=e;return t}r.d(e,["j7",0,o])},99352(t,e,r){r.d(e,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},65515(t,e,r){r.r(e),r.d(e,{default:()=>Y});var s=r(5482),n=r(92602),i=r(11254),a=r(4576),o=r(49186),u=r(44208),l=r(66552),c=r(92474),p=r(53966),d=r(93637),h=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),b=r(5443),S=r(16930),A=r(95696),v=r(27615),_=r(63579),x=r(52106),w=r(86211);function M(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function q(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function I(t){return t.every(q)}var F=r(99917),R=r(65864),O=r(73836),C=r(21325);async function T(t,e,r){const{geometry:s}=e,n={...e.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:e}=r,{origin:i,spatialReference:a,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,c=t.spatialReference,p=c.isGeographic,d=(0,C.aI)(c,a),h=(0,F.isEqualBaseGCS)(a,c)&&(0,F.canProjectWithoutEngine)(a,c);if(!(l&&p&&h||!l&&!p&&d))return null;const y=(0,F.projectWithoutEngine)(i,a,c);if(null==y)return null;if(n[e.originX]=y.x,n[e.originY]=y.y,n[e.originZ]=y.z??0,null!=u){const{translation:t,scale:r,rotation:s}=u,i=l?1:(0,w.KX)(a)/(0,w.KX)(c);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=r[0],n[e.scaleY]=r[2],n[e.scaleZ]=r[1],n[e.rotationX]=s[0],n[e.rotationY]=s[2],n[e.rotationZ]=-s[1],n[e.rotationDeg]=s[3]}return{attributes:n}}return null==s?{attributes:n}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:n}}async function P(t,e){const r=await Promise.all((e.addAttachments??[]).map(e=>E(t,e))),s=await Promise.all((e.updateAttachments??[]).map(e=>E(t,e))),n=e.deleteAttachments??[];return r.length||s.length||n.length?{adds:r,updates:s,deletes:[...n]}:null}async function E(t,e){const{feature:r,attachment:s}=e,{globalId:n,name:i,contentType:a,data:o,keywords:u,uploadId:l}=s,c={globalId:n};if(r&&("attributes"in r?c.parentGlobalId=r.attributes?.[t.globalIdField]:r.globalId&&(c.parentGlobalId=r.globalId)),l)c.uploadId=l;else if(o){const t=await(0,f._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),u&&(c.keywords=u),c}function N(t,e,r){if(!e||0===e.length)return[];if(r&&I(e))return e.map(t=>t.globalId);if(function(t){return t.every(M)}(e))return e.map(t=>t.objectId);const s=r?t.globalIdField:t.objectIdField;return s?e.map(t=>t.getAttribute(s)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function Q(t,e){return new x.A({attributes:t.attributes,geometry:(0,R.rS)({...t.geometry,spatialReference:e})})}function V(t,e){return{adds:t?.adds?.map(t=>Q(t,e))||[],updates:t?.updates?.map(t=>({original:Q(t[0],e),current:Q(t[1],e)}))||[],deletes:t?.deletes?.map(t=>Q(t,e))||[],spatialReference:e}}var Z=r(64714),j=r(64314),J=r(60694),U=r(15426),G=r(20557),k=r(99199),B=r(96520),z=r(97552),X=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends c.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,h.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,r=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(r),Promise.resolve(this)}initialize(){this.addHandles([(0,y.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:r,spatialReference:s,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,c=l&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,d=t?.query?.relativeTimeBinWindow??0,h=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:r,infoFor3D:a,pbfSupported:l,pbfSupportedWithCurves:c,queryAttachmentsSupported:p,relativeTimeBinWindow:d,sourceSpatialReference:s,uniqueIdFields:i,url:h})}async addAttachment(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(e,o.query);try{return D((await(0,i.A)(a,{body:u})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async updateAttachment(t,e,r,s){await this.load();const{layer:n}=this;await(0,U.VA)(n,"editing");const a=t.attributes[n.objectIdField],o=n.parsedUrl.path+"/"+a+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:e,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,i.A)(o,{body:l})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(a,t)}}async applyEdits(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s="infoFor3D"in r?r.infoFor3D:null,n=null!=s,u=n||(e?.globalIdUsed??!1),l=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,c=t.addFeatures?.map(t=>T(this.layer,t,s))??[],p=(await Promise.all(c)).filter(a.Ru),d=t.updateFeatures?.map(t=>T(this.layer,t,s))??[],h=(await Promise.all(d)).filter(a.Ru),y=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,h,r.spatialReference);const f=await P(this.layer,t),m=r.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||r.gdbVersion,b={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const S=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:h.length?h:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),b.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=h.length?JSON.stringify(h):null,b.deletes=y.length?u?JSON.stringify(y):y.join(","):null,b.attachments=f&&JSON.stringify(f),b.assetMaps=null!=l?JSON.stringify(l):void 0);const A=this._getLayerRequestOptions({method:"post",query:b});S&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);const v=e?.returnServiceEditsOption?r.url:r.parsedUrl.path;let _;try{_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}catch(t){if(!function(t){const e=t.details.raw,r=+e.code,s=+e.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(t))throw t;A.authMode="immediate",_=m?await this._asyncApplyEdits(v+"/applyEdits",A):await(0,i.A)(v+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/deleteAttachments";try{return(await(0,i.A)(a,this._getLayerRequestOptions({query:{attachmentIds:e.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(n,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,i.A)(`${s}/${r}`,e),{id:a,extent:o,fullExtent:u,timeExtent:l}=n,c=o||u;return{id:a,fullExtent:c&&b.A.fromJSON(c),timeExtent:l&&X.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(t,e={}){await this.load();const r=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,r)}async queryFeatures(t,e){await this.load();const r=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&r.features.length){const e=new Map;if(r.features.forEach(r=>{const s=r.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const r=t.toLowerCase();r&&r in s&&t!==r&&(s[t]=s[r],delete s[r],e.set(r,t))}})}),null!=r.fields)for(const t of r.fields){const r=e.get(t.name.toLowerCase());null!=r&&(t.name=r)}}return r}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,f.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:s}=await r.e(1384).then(r.bind(r,31384));return s(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;let r=e.url;null!=r&&("layerId"in e&&(r=(0,f.fj)(r,e.layerId.toString())),this._getOrCreateEditInterceptor(r).before=e=>{const r=e.requestOptions.method??"auto";if("auto"===r||"head"===r){const r=e.requestOptions.query??{};r._ts=t.getTime(),e.requestOptions.query=r}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const r=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),e?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:e?.signal}));t=s}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const r=t.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Z.F0)(t.geometryType).renderer;(0,d.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:r}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));r.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(t){(0,h.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const s=t.addFeatures.filter(t=>t.geometry);if(e.length!==s.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:s}=e;if((0,v.Hq)(s))n.push(e);else{const s=e.origin,{convertMeshVertexSpace:a}=await Promise.all([r.e(6860),r.e(4508)]).then(r.bind(r,28846)),o=await a(e,new A.A({origin:[s.x,s.y,s.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(s),o=n.getAttribute(r);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(_.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const r=t?.attachments,s={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return t?.editMoment&&(s.editMoment=t.editMoment),s}(n);if(s.length>0){i.editedFeatureResults=[];for(const t of s){const{editedFeatures:e}=t,r=e?.spatialReference?new S.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:V(e,r)})}}return i}_createAttachmentErrorResult(t,e){const r=e.details.messages?.[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...t,query:{gdbVersion:s,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:r,parsedUrl:s}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==r)return!1;const i=(0,G.JZ)(n);if(null==i)return!1;const o=(0,f.fj)(s.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(e)}const l=u.map(t=>t.getAttribute(r)).filter(a.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=n,d=new z.A({where:`${c} IN (${l.map(t=>`'${t}'`)})`,outFields:[p,c],returnGeometry:!1}),h=await(0,k.s)(o,d),{features:y}=h;return 0!==y.length&&!u.some(t=>{const e=t.getAttribute(r);if(!e)return!0;const{metadata:n}=t.geometry,i=y.filter(t=>t.getAttribute(c)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(s).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,r){r.d(e,{A:()=>M});var s=r(5482),n=r(69622),i=r(49186),a=r(44208),o=r(17676),u=r(84952),l=r(91429),c=r(21325),p=r(20557),d=r(2272),h=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),b=r(62815),S=r(63746);class A{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:r}of e)r&&(r.spatialReference=t)}feature(){this._attributesClass??=(0,S._)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=n?i?A._finishVertexPointXYZM:A._finishVertexPointXYZ:i?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:n,hasM:i},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:n,hasM:i},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:n,hasM:i},this._parts=s.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,r,s){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,r,s){this._part.push({b:[this._transform(e),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(t,e,r){this._part.push({c:[this._transform(e),this._transformXY(r)]})}ellipticArcSegment(t,e,r,s,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(r),s,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:r,_lengths:s,_vertex:n}=t;e.push([...n]),e.length<s[r.length]||(t._previousX=t._previousY=0,t._part=[],r.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:r,transform:s}=this.featureSet,n=r?(0,b.d)(t,e):1;this._transformInPlace??=(0,S.M)(this.featureSet,n),this._transformInPlaceXY??=(0,S.M)({transform:s})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var v=r(80893),_=r(22671),x=r(97552);async function w(t,e,r,s){const n=(0,d.Dl)(t),i={...r},a=x.A.from(e),o=!a.quantizationParameters;return await(0,v.IJ)(n,a,new A({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,s)}let M=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const r=await this.executeJSON(t,e);return this.featureSetFromJSON(t,r,e)}async executeJSON(t,e){const r=this._normalizeQuery(t),s=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!s||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await w(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,r,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return _.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([r.e(6860),r.e(118),r.e(8366)]).then(r.bind(r,40050)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,y.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,f.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:s},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:s},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:s,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(r.e(9239).then(r.bind(r,9239)),e),a=(0,d.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?s(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(r.bind(r,33103)),e);return s(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(r.bind(r,80566)),e);return s(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(r.bind(r,11273)),e);return s(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(r.bind(r,21277)),e);return s(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(r.bind(r,8018)),e);return s(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(r.bind(r,10980)),e);return s(this.parsedUrl,t,e)}_normalizeQuery(t){let e=x.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?h.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(t);if(null!=r&&s){if(e=e===t?e.clone():e,e.formatOf3DObjects=s,e.outSpatialReference&&!(0,c.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:s,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:l,scaleY:c,scaleZ:p,rotationX:d,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;e.outFields.push(s,n,i,a,o,u,l,c,p,d,h,y,f)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:r}){return!0!==t||"xyFootprint"===e||r?null:(0,p.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:h.A})],M.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],M.prototype,"url",void 0),M=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],M)},64714(t,e,r){r.d(e,{F0:()=>o,Vx:()=>c,e2:()=>d,f:()=>h});var s=r(44208),n=r(4718),i=r(99352),a=r(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>e?{[e]:null,...t}:{...t};try{let r="";e&&(r+=`this${p(e)} = null;`);for(const e in t)r+=`this${p(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>e?{[e]:null,...t}:{...t}}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function d(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function h(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(t,e,r){r.d(e,{I:()=>a});var s=r(2272),n=r(80893),i=r(97552);function a(t,e,r,a){return(0,n.gW)((0,s.Dl)(t),i.A.from(e),r,a)}},74910(t,e,r){r.d(e,{L:()=>o});var s=r(5443),n=r(2272),i=r(80893),a=r(97552);async function o(t,e,r){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(t,e,r){r.d(e,{V:()=>a});var s=r(2272),n=r(80893),i=r(97552);async function a(t,e,r,a){const o=(0,s.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),r,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,r){r.d(e,{e:()=>u,s:()=>o});var s=r(2272),n=r(80893),i=r(22671),a=r(97552);async function o(t,e,r,s){const n=await u(t,e,r,s);return i.A.fromJSON(n)}function u(t,e,r,i){const o=(0,s.Dl)(t),u={...r},l=a.A.from(e);return(0,n.eW)(o,l,l.sourceSpatialReference,u,i)}},63746(t,e,r){function s(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:r,hasZ:s,hasM:n}=t;if(null==r)return s&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,r,s){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*s:t),i=i.map((t,e)=>2===e?t*s:t)),!e&&r&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(r,s,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}r.d(e,{M:()=>n,_:()=>s})},2272(t,e,r){r.d(e,{Dl:()=>l,gf:()=>p,jV:()=>u,lF:()=>c});var s=r(92602),n=r(70333),i=r(4718),a=r(84952),o=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function l(t){return"string"==typeof t?(0,a.An)(t):(0,i.o8)(t)}function c(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const i=t[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))s[n]=i.map(t=>c(t));else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(r?.[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?i:JSON.stringify(i);else s[n]=i}return s}async function p(t,e,i){const a=function(t,e){return t?e&&(0,o.Qc)(t)?e:(0,o.getApiKey)(t)??n.id?.findCredential(t)?.token:null}(t,e);if(a)return a;!n.id&&s.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(7510),r.e(148)]).then(r.bind(r,50148));const u=await n.id.getCredential(t,i);return u?.token}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1123],{5482(e,t,n){function r(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function a(e){function t(t){e.error=e.hasError?new s(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,n){n.r(t),n.d(t,{invokeGeometryOp:()=>o});var r=n(65864);function i(e,t){let n;return{loaded:!1,load:()=>n??=t().then(t=>{a[e]={loaded:!0,execute:t}})}}function s(e){return null==e?null:e.toJSON()}const a={disjoint:i("disjoint",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4579)]).then(n.bind(n,7978)).then(e=>e.execute)),intersects:i("intersects",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6033)]).then(n.bind(n,55284)).then(e=>e.execute)),touches:i("touches",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(368)]).then(n.bind(n,83547)).then(e=>e.execute)),crosses:i("crosses",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4935)]).then(n.bind(n,85672)).then(e=>e.execute)),within:i("within",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4168)]).then(n.bind(n,85445)).then(e=>e.execute)),contains:i("contains",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(2990)]).then(n.bind(n,51508)).then(e=>e.execute)),overlaps:i("overlaps",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(923)]).then(n.bind(n,46178)).then(e=>e.execute)),equals:i("equals",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4795)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n))}),relate:i("relate",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(891)]).then(n.bind(n,43628));return(t,n,i)=>e.execute((0,r.rS)(t),(0,r.rS)(n),i)}),intersection:i("intersection",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(3902)]).then(n.bind(n,49263)).then(e=>e.execute)),union:i("union",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6708)]).then(n.bind(n,56339)).then(e=>e.executeMany)),difference:i("difference",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(7217)]).then(n.bind(n,93054));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),symmetricDifference:i("symmetricDifference",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1812)]).then(n.bind(n,89041));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),clip:i("clip",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(5391)]).then(n.bind(n,24815));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),cut:i("cut",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1512)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n)).map(e=>s(e))}),area:i("area",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(9835)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,s)=>{const a=e.execute((0,r.rS)(n));return t(n.spatialReference,i(s),a)}}),geodeticArea:i("geodeticArea",async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:i,toAreaUnit:s}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o)=>{const l=e.execute((0,r.rS)(n),{curveType:o});return t(i,s(a),l)}}),length:i("length",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(8679)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i)=>{const s=e.execute(n);return t(n.spatialReference,r(i),s)}}),geodeticLength:i("geodeticLength",async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:i,toLengthUnit:s}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o)=>{const l=e.execute((0,r.rS)(n),{curveType:o});return t(i,s(a),l)}}),distance:i("distance",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1965)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,s,a)=>{const o=e.execute((0,r.rS)(n),(0,r.rS)(s));return t(n.spatialReference,i(a),o)}}),geodeticDistance:i("geodeticDistance",async()=>{const e=await n.e(5360).then(n.bind(n,95360)),{convert:t,meters:i,toLengthUnit:s}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o,l)=>{const c=e.execute((0,r.rS)(n),(0,r.rS)(a),{curveType:l});return t(i,s(o),c)}}),densify:i("densify",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4642)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,o)=>(a=t(i(o),n.spatialReference,a),s(e.execute((0,r.rS)(n),a)))}),geodeticDensify:i("geodeticDensify",async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:i,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,l,c)=>(o=t(a(l),i,o),s(e.execute((0,r.rS)(n),o,{curveType:c})))}),generalize:i("generalize",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6276)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,o,l)=>(a=t(i(o),n.spatialReference,a),s(e.execute((0,r.rS)(n),a,l)))}),buffer:i("buffer",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(8089),n.e(9125)]).then(n.bind(n,46160)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i,s)=>(i=t(r(s),n.spatialReference,i),e.execute(n,i))}),geodesicBuffer:i("geodesicBuffer",async()=>{const e=await n.e(9159).then(n.bind(n,49159)),{convert:t,meters:r,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,s,a,o)=>(s=t(i(a),r,s),e.execute(n,s,{curveType:o}))}),offset:i("offset",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(8089),n.e(254)]).then(n.bind(n,15605)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i,s,a,o,l)=>(i=t(r(s),n.spatialReference,i),e.execute(n,i,{joins:a,miterLimit:o,flattenError:l}))}),rotate:i("rotate",async()=>{const{executeRotateJson:e}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(9330)]).then(n.bind(n,64791));return e}),centroid:i("centroid",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1054)]).then(n.bind(n,17077));return t=>s(e.execute((0,r.rS)(t)))}),labelPoint:i("labelPoint",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(5914),n.e(8626)]).then(n.bind(n,91421));return t=>s(e.execute((0,r.rS)(t)))}),simplify:i("simplify",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(3456)]).then(n.bind(n,3637)).then(e=>e.execute)),multiPartToSinglePart:i("multiPartToSinglePart",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(4280)]).then(n.bind(n,81653));return t=>e.executeMany([(0,r.rS)(t)]).map(e=>s(e))}),isSelfIntersecting:i("isSelfIntersecting",async()=>{const{NonSimpleResult:e}=await n.e(4383).then(n.bind(n,24383)),t=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(9358)]).then(n.bind(n,12499)),i=new Set([5,6,7,10,11,12]);return n=>{const s=new e;return!t.isSimple((0,r.rS)(n),s)&&i.has(s.m_reason)}}),isSimple:i("isSimple",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(3456)]).then(n.bind(n,3637)).then(e=>e.isSimple)),convexHull:i("convexHull",()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6491)]).then(n.bind(n,55666)).then(e=>e.execute)),getNearestCoordinate:i("getNearestCoordinate",async()=>{const e=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6765)]).then(n.bind(n,48032));return(t,n,i)=>{const a=e.getNearestCoordinate((0,r.rS)(t),(0,r.rS)(n),i);return{...a,coordinate:s(a.coordinate)}}}),getNearestVertex:i("getNearestVertex",async()=>{const{executeNearestVertex:e}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(2465)]).then(n.bind(n,64064));return(t,n)=>{const i=e((0,r.rS)(t),(0,r.rS)(n));return null==i?null:{...i,coordinate:s(i.coordinate)}}})};function o(e,t){const n=a[e];return n.loaded?n.execute.apply(void 0,t):n.load().then(()=>o(e,t))}},48526(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),s=n(4576),a=n(4718),o=n(91429),l=n(5443),c=n(91075),u=n(86738),h=n(16930),p=n(90634),m=n(47610),f=n(56993),y=n(43937);let d=r=class extends c.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,p.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new u.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],d.prototype,"writePoints",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],d),d.prototype.toJSON.isDefaultToJSON=!0},39829(e,t,n){n.d(t,{A:()=>R});var r,i=n(5482),s=n(4576),a=n(51447),o=n(4718),l=n(53966),c=n(91429),u=n(5443),h=n(91075),p=n(86738),m=n(16930),f=n(12359),y=n(94078),d=n(95108),g=n(90634),v=n(47610),x=n(28735),w=n(56993),P=n(43937);function b(e){return!Array.isArray(e[0])}let R=r=class extends h.A{static fromExtent(e){const t=e.clone().normalize(),{spatialReference:n}=e;let i=!1,s=!1;for(const e of t)e.hasZ&&(i=!0),e.hasM&&(s=!0);const a={rings:t.map(e=>{const t=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(i&&e.hasZ){const n=e.zmin+.5*(e.zmax-e.zmin);for(let e=0;e<t.length;e++)t[e].push(n)}if(s&&e.hasM){const n=e.mmin+.5*(e.mmax-e.mmin);for(let e=0;e<t.length;e++)t[e].push(n)}return t}),spatialReference:n};return i&&(a.hasZ=!0),s&&(a.hasM=!0),new r(a)}constructor(e){super(function(e){if(!e)return;let{rings:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=m.A.WGS84,{...e,hasM:n,hasZ:r,rings:t,spatialReference:i}}(e)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,a.Lx)(l.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const e=(0,f.Ve)(this);return e?p.A.fromJSON(e):null}writeCurveRings(e,t){t.curveRings=(0,o.o8)(e)}get extent(){const e=(0,g.v)(this),{spatialReference:t}=this;return e?new u.A({...e,spatialReference:t}):null}writeRings(e,t){t.rings=(0,o.o8)(this.rings)}addRing(e){if(!e)return;const t=this.rings,n=t.length;if(b(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("rings"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.rings=(0,o.o8)(this.rings),e.curveRings=(0,o.o8)(this.curveRings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;if(null!=t!=(null!=n))return!1;if(null!=t&&null!=n&&!t.equals(n))return!1;if(this.rings.length!==e.rings.length)return!1;for(let t=0;t<this.rings.length;t++){const n=this.rings[t],r=e.rings[t];if(!(0,s.aI)(n,r,v.v6))return!1}return!0}contains(e){if(!e)return!1;const t=(0,x.Cv)(e,this.spatialReference);return(0,y.m3)(this,null!=t?t:e)}isClockwise(e){const t=b(e)?e.map(e=>this.hasZ?this.hasM?[e.x,e.y,e.z,e.m]:[e.x,e.y,e.z]:[e.x,e.y]):e;return(0,d.$3)(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.rings[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new p.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new p.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new p.A(n[0],n[1],n[2],n[3],this.spatialReference):new p.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,w.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[e].splice(t,0,n),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new p.A(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),n}removeRing(e){if(!this._validateInputs(e,null))return null;const t=this.rings.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new p.A(e,n));return this.notifyChange("rings"),r}setPoint(e,t,n){return this._validateInputs(e,t)?((0,w.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[e][t]=n,this.notifyChange("rings"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.rings.length)return!1;if(null!=t){const r=this.rings[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"cache",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"centroid",null),(0,i.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],R.prototype,"curveRings",void 0),(0,i.Cg)([(0,P.K)("curveRings")],R.prototype,"writeCurveRings",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"extent",null),(0,i.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],R.prototype,"rings",void 0),(0,i.Cg)([(0,P.K)("rings")],R.prototype,"writeRings",null),R=r=(0,i.Cg)([(0,c.$K)("esri.geometry.Polygon")],R),R.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>f});var r,i=n(5482),s=n(4718),a=n(91429),o=n(5443),l=n(91075),c=n(86738),u=n(16930),h=n(90634),p=n(56993),m=n(43937);let f=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new c.A(n[0],n[1],n[2],n[3],this.spatialReference):new c.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new c.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new c.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},90634(e,t,n){n.d(t,{HA:()=>u,JM:()=>h,Z3:()=>f,ge:()=>p,v:()=>m});var r=n(537);const i=[];function s(e,t,n,r){return{xmin:e,ymin:t,xmax:n,ymax:r}}function a(e,t,n,r,i,s){return{xmin:e,ymin:t,zmin:n,xmax:r,ymax:i,zmax:s}}function o(e,t,n,r,i,s){return{xmin:e,ymin:t,mmin:n,xmax:r,ymax:i,mmax:s}}function l(e,t,n,r,i,s,a,o){return{xmin:e,ymin:t,zmin:n,mmin:r,xmax:i,ymax:s,zmax:a,mmax:o}}function c(e,t=!1,n=!1){return t?n?l(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):a(e[0],e[1],e[2],e[3],e[4],e[5]):n?o(e[0],e[1],e[2],e[3],e[4],e[5]):s(e[0],e[1],e[2],e[3])}function u(e){return e?function(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}(e)?e:function(e){return void 0!==e.x&&void 0!==e.y}(e)?function(e){const{x:t,y:n,z:r,m:i}=e,c=null!=i;return null!=r?c?l(t,n,r,i,t,n,r,i):a(t,n,r,t,n,r):c?o(t,n,i,t,n,i):s(t,n,t,n)}(e):function(e){return void 0!==e.rings}(e)?m(e):function(e){return void 0!==e.paths}(e)?f(e):function(e){return void 0!==e.points}(e)?p(e):null:null}function h(e,{xmin:t,ymin:n,zmin:r,mmin:i,xmax:s,ymax:a,zmax:o,mmax:l}){e.xmin=Math.min(e.xmin,t),e.xmax=Math.max(e.xmax,s),e.ymin=Math.min(e.ymin,n),e.ymax=Math.max(e.ymax,a),null!=e.zmin&&(e.zmin=Math.min(e.zmin,r),e.zmax=Math.max(e.zmax,o)),null!=e.mmin&&(e.mmin=Math.min(e.mmin,i),e.mmax=Math.max(e.mmax,l))}function p(e){const{hasZ:t,hasM:n,points:s}=e,a=(0,r.Pj)(i,s,t??!1,n??!1,t??!1,n??!1);return a?c(a,t,n):null}function m(e){const{hasZ:t,hasM:n,rings:s,curveRings:a}=e,o=(0,r.Yz)(i,a??s,t??!1,n??!1);return o?c(o,t,n):null}function f(e){const{hasZ:t,hasM:n,paths:s,curvePaths:a}=e,o=(0,r.Yz)(i,a??s,t??!1,n??!1);return o?c(o,t,n):null}},47610(e,t,n){function r([e,t,n,r],[i,s,a,o]){return e===i&&t===s&&(null==n&&null==a||n===a)&&(null==r&&null==o||r===o)}n.d(t,{v6:()=>r}),n(5443),n(83960)},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?s(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>c,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>i,W0:()=>h,ZC:()=>r,fT:()=>s,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>u,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),a=n(86738),o=n(39829),l=n(82799),c=n(60408);function u(e){return null==e?null:e instanceof i.A?e:(0,c.fT)(e)?a.A.fromJSON(e):(0,c.Rg)(e)?l.A.fromJSON(e):(0,c.Bi)(e)?o.A.fromJSON(e):(0,c.U9)(e)?s.A.fromJSON(e):(0,c.ZC)(e)?r.A.fromJSON(e):null}const h={esriGeometryPoint:a.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:o.A};function p(e){return e&&h[e]||null}},83960(e,t,n){n.d(t,{X_:()=>s,oW:()=>o,zx:()=>a});var r=n(34727),i=n(86211);function s(e,t){const n=t||e.extent,r=e.width,s=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*s*39.37*96:0}function a(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function o(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},56993(e,t,n){function r(e,t,n=!1){let{hasM:r,hasZ:i}=e;Array.isArray(t)?4!==t.length||r||i?3===t.length&&n&&!r?(i=!0,r=!1):3===t.length&&r&&i&&(r=!1,i=!1):(r=!0,i=!0):(i=!i&&t.hasZ&&(!r||t.hasM),r=!r&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=r}n.d(t,{h:()=>r})}}]);