@arcgis/core 5.2.0-next.74 → 5.2.0-next.75

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 (196) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
  3. package/assets/esri/core/workers/chunks/0d3b2d9a19383bb63f0a.js +1 -0
  4. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
  5. package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +1 -0
  6. package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 0eb35e09765fd74eb698.js} +1 -1
  7. package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +1 -0
  8. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
  9. package/assets/esri/core/workers/chunks/{859dd86c921053bf03a1.js → 1c49c9472167a2e0c923.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{cf360767310fb45660a8.js → 1cf8fb704c48ac3d3b15.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{2e44978ee677aa23163d.js → 2435ef7d11f8dbb920b7.js} +1 -1
  12. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
  13. package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
  14. package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +1 -0
  15. package/assets/esri/core/workers/chunks/2b93888e61ca638490cf.js +1 -0
  16. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
  17. package/assets/esri/core/workers/chunks/{31d19bb72a9e79b30070.js → 30818b5ff0ce51b25d6f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +1 -0
  19. package/assets/esri/core/workers/chunks/36ec5b84e551ab08b24a.js +1 -0
  20. package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
  21. package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +1 -0
  22. package/assets/esri/core/workers/chunks/4046bd65d7d0677f4600.js +1 -0
  23. package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +1 -0
  24. package/assets/esri/core/workers/chunks/{35fd2f765d2cb3f59a22.js → 42d5ed44111bea77ec71.js} +115 -115
  25. package/assets/esri/core/workers/chunks/43713bc6f7eea07259d0.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a0a1f0bd3648738354a6.js → 43a65cab888d43954564.js} +1 -1
  27. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
  28. package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +1 -0
  29. package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
  30. package/assets/esri/core/workers/chunks/{509aecafbc629bee1c15.js → 4fe2cca405180af23364.js} +1 -1
  31. package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
  32. package/assets/esri/core/workers/chunks/519af918050b47f93516.js +1 -0
  33. package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → 53d165b4f30fd64e5d8a.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{1a3afee3ecd806b4aa81.js → 552d6aecc7d88d16227b.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{bff75cc7413bf0d319db.js → 5627f562dea8bae2f346.js} +1 -1
  36. package/assets/esri/core/workers/chunks/5ba3a30b7cbfa9e3aa62.js +1 -0
  37. package/assets/esri/core/workers/chunks/{0e81c6d4f1c81f9b0a1b.js → 5e1d84e97de0e662aaa9.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{2baa16ec8559e77c226f.js → 64a1ffc221e5b63b43fb.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{9ca59077712e45ef4d56.js → 6743d726e45e7b660505.js} +1 -1
  40. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
  41. package/assets/esri/core/workers/chunks/6b783f440c4a5d36e879.js +1 -0
  42. package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
  43. package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +1 -0
  44. package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
  45. package/assets/esri/core/workers/chunks/{9e25f715cda59c686a4c.js → 792303e4090c0c70c4ff.js} +1 -1
  46. package/assets/esri/core/workers/chunks/7a24cc0f3b4eff2bdb8e.js +1 -0
  47. package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +1 -0
  48. package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
  49. package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
  50. package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
  51. package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +1 -0
  52. package/assets/esri/core/workers/chunks/{b6d26d9738c0787acc38.js → a6a2a4a2bae0d327d7ed.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{c1a4d499a30f3d80567b.js → a7a7d3289d4ca95f545f.js} +1 -1
  54. package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +1 -0
  55. package/assets/esri/core/workers/chunks/b14961a9f1f40028f141.js +1 -0
  56. package/assets/esri/core/workers/chunks/b6cd165d0e58598f28a5.js +1 -0
  57. package/assets/esri/core/workers/chunks/{f1727b4a32cb6f36a5e6.js → b78f509fd8e95f728178.js} +1 -1
  58. package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
  59. package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{94368a097e6190ce3c7a.js → c37b28f200b704ae6002.js} +1 -1
  61. package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
  62. package/assets/esri/core/workers/chunks/d1c7c877edc6948f3801.js +1 -0
  63. package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
  64. package/assets/esri/core/workers/chunks/{193aed69de2dec4f36b6.js → d633e98b0dfa0490e4de.js} +1 -1
  65. package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +1 -0
  66. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
  67. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
  68. package/assets/esri/core/workers/chunks/{fdca9873914b9dbd9244.js → e59101f1d060d0a30a65.js} +1 -1
  69. package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +1 -0
  70. package/assets/esri/core/workers/chunks/{b3b53cf0a3a30164d337.js → ee9eb381e675d2d01260.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{264fd750691d517ab1f3.js → f43a0edf58941e2ac78e.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{4abd54518e35050feb90.js → f78acff510ca615d42e4.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{01c92e68fb17cf2d0e08.js → f7a5c4d22a24e1ac433c.js} +1 -1
  74. package/chunks/GaussianSplat.glsl.js +8 -8
  75. package/chunks/GaussianSplatShadow.glsl.js +4 -5
  76. package/chunks/OccludedGeometryDepth.glsl.js +5 -0
  77. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  78. package/config.js +1 -1
  79. package/core/importUtils.js +2 -0
  80. package/geometry/operators/importUtils.js +2 -0
  81. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  82. package/geometry/support/normalizeUtils.d.ts +17 -15
  83. package/geometry/support/normalizeUtils.js +1 -1
  84. package/kernel.js +1 -1
  85. package/layers/FeatureLayer.d.ts +1 -1
  86. package/layers/graphics/data/QueryEngine.js +1 -1
  87. package/layers/graphics/data/queryUtils.js +1 -1
  88. package/layers/graphics/hydratedFeatures.js +1 -1
  89. package/package.json +1 -1
  90. package/portal/schemas/definitions.js +1 -1
  91. package/rest/geoprocessor/utils.js +1 -1
  92. package/rest/identify.js +1 -1
  93. package/rest/imageService.js +1 -1
  94. package/rest/query/operations/query.js +1 -1
  95. package/rest/query/operations/queryAttributeBins.js +1 -1
  96. package/rest/query/operations/queryPivot.js +1 -1
  97. package/rest/query/operations/queryTopFeatures.js +1 -1
  98. package/support/revision.js +1 -1
  99. package/symbols/cim/CIMEffects.js +1 -1
  100. package/symbols/cim/utils.js +1 -1
  101. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  102. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  103. package/views/2d/viewpointUtils.js +1 -1
  104. package/views/3d/environment/EnvironmentManager.js +1 -1
  105. package/views/3d/interactive/Manipulator3D.js +1 -1
  106. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  107. package/views/3d/interactive/manipulatorUtils.js +1 -1
  108. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  109. package/views/3d/support/hitTest.js +1 -1
  110. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
  111. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
  112. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
  113. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
  114. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
  115. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
  116. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
  117. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
  118. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
  119. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
  120. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
  121. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
  122. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
  123. package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
  124. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  125. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  126. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  127. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  128. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
  129. package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
  130. package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
  131. package/views/selection/SelectionOperation.js +1 -1
  132. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  133. package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
  134. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  135. package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
  136. package/widgets/support/SelectionList/LayerItem.js +1 -1
  137. package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
  138. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  139. package/widgets/support/SelectionList.js +1 -1
  140. package/widgets/support/SelectionToolbar.js +1 -1
  141. package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
  142. package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
  143. package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
  144. package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
  145. package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
  146. package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
  147. package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
  148. package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
  149. package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
  150. package/assets/esri/core/workers/chunks/45ccca01db0027b9dc16.js +0 -1
  151. package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
  152. package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
  153. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
  154. package/assets/esri/core/workers/chunks/553be2bd69bd311477ea.js +0 -1
  155. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
  156. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
  157. package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
  158. package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
  159. package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
  160. package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
  161. package/assets/esri/core/workers/chunks/76b573143d1a65fdbcb6.js +0 -1
  162. package/assets/esri/core/workers/chunks/7b5b66ae79e0287e3ade.js +0 -1
  163. package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
  164. package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
  165. package/assets/esri/core/workers/chunks/877594b6db08da98acd7.js +0 -1
  166. package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
  167. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
  168. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
  169. package/assets/esri/core/workers/chunks/a9053ad0f4e8c4705665.js +0 -1
  170. package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
  171. package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
  172. package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
  173. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
  174. package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
  175. package/assets/esri/core/workers/chunks/c46f79d5b7712adbbd1c.js +0 -1
  176. package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
  177. package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
  178. package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
  179. package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
  180. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
  181. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
  182. package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
  183. package/assets/esri/core/workers/chunks/ebfb3cdc0df15eb05d75.js +0 -1
  184. package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
  185. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
  186. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
  187. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
  188. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
  189. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
  190. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
  191. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
  192. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
  193. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
  194. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
  195. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
  196. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6247],{69052(t,e,a){a.d(e,{hr:()=>r});var n=a(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,a=!1){return s(this.range,this.min,this.max,t,e,a)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,a){return t<e?e:e+i(this.range,t-e,a)}minimalMonotonic(t,e,a){return s(this.range,t,t+this.range,e,a)}center(t,e,a){return e=this.monotonic(t,e,a),this.normalize((t+e)/2,a)}diff(t,e,a){return this.monotonic(t,e,a)-t}shortestSignedDiff(t,e){t=this.normalize(t);const a=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(a)<Math.abs(n)?a:n}contains(t,e,a){return e=this.minimalMonotonic(t,e),(a=this.minimalMonotonic(t,a))>t&&a<e}}function s(t,e,a,n,r=0,s=!1){return(n-=r)<e?n+=i(t,e-n):n>a&&(n-=i(t,n-a)),s&&n===a&&(n=e),n+r}function i(t,e,a=0){return Math.ceil((e-a)/t)*t+a}const o=new r(0,2*Math.PI),l=(new r(-Math.PI,Math.PI),new r(0,360));a.d(e,["ie",0,l,"uC",0,o])},93146(t,e,a){a.d(e,{z:()=>r});class n{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 r(t){return new n(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},31411(t,e,a){a.d(e,{GS:()=>F,gh:()=>k});var n=a(49186),r=a(56512),s=a(65864),i=a(4305),o=a(50954),l=a(52006),u=a(49663),d=a(46068),c=a(15507);const h=1e-6,p=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:a,maxSegmentsPerCurve:n,minSegmentsPerCurve:r}){const s=a*a,i=e*e,o=1/n,l=this.interpolate(0),u=this.interpolate(1);(0,c.kb)(this.curveStart,l)>h&&t.push(l),this.initialize(l,u);const d=1/r;for(let t=r-1;t>0;t--){const e=t*d;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===s||!isFinite(s)||(0,c.kb)(this.arcStart,this.arcEnd)<s)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,c.kb)(this.curveEnd,u)>h&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[a,n,r]=e.b;super(t,a),this._controlPointsStack=[],this._curveControlPoints=[n,r],this._arcControlPoints=[n,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:a,tStart:n,tEnd:r}=this,[s,i]=this._arcControlPoints,o=(t-n)/(r-n),l=(0,c.RS)([],e,s,o),u=(0,c.RS)(p,s,i,o),d=(0,c.RS)([],i,a,o),h=(0,c.RS)([],l,u,o),f=(0,c.RS)([],u,d,o),m=(0,c.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,d]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:a}=this,[n,r]=this._curveControlPoints;return(0,i.B4)(e,n,r,a,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[a,n]=this._arcControlPoints;return Math.max((0,c.yE)(a,t,e),(0,c.yE)(n,t,e))}}class g extends m{constructor(t,e){const[a]=e.a;super(t,a),this._derivedEllipse=(0,d.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,d.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,c.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,a,{cx:n,cy:r,radius:s,thetaStart:i,thetaEnd:o,isInvalid:l},{maxDeviation:u,maxSegmentLength:d,maxSegmentsPerCurve:p,minSegmentsPerCurve:f}){if(l)return t.push([...a]),t;const m=2*s,y=[n+s*Math.cos(i),r+s*Math.sin(i)],g=[n+s*Math.cos(o),r+s*Math.sin(o)];(0,c.kb)(e,y)>h&&t.push(y);const b=Math.abs(o-i),w=d>0&&d<m?2*Math.asin(d/m):b,S=u>0&&u<=s?2*Math.acos(1-u/s):b,A=Math.min(w,S),v=Math.min(p,Math.max(f,Math.ceil(Math.abs(b/A)))),E=1/v;for(let e=1;e<v;e++){const a=e*E,l=i*(1-a)+o*a;t.push([n+s*Math.cos(l),r+s*Math.sin(l)])}return t.push(g),(0,c.kb)(a,g)>h&&t.push([...a]),t}function w(t,e,a,n){return new y(e,a).densify(t,n)}function S(t,e,a,n){const r=(0,o.pM)(e,a),[s]=a.c;return b(t,e,s,r,n)}function A(t,e,a,n){const r=(0,u.io)(e,a),[s]=a.a;return b(t,e,s,r,n)}function v(t,e,a,n){const[r,s,i,o,l,u,d]=a.a;return 0===u||0===d?(t.push([...r]),t):new g(e,a).densify(t,n)}function E(t,e,a,n){return(0,l.Xq)(a)?(t.push([...a]),t):(0,l.n1)(a)?w(t,e,a,n):(0,l.aO)(a)?S(t,e,a,n):(0,l.DA)(a)?A(t,e,a,n):v(t,e,a,n)}function F(t,e={}){if(!(0,l.Ed)(t))return t;const a=f(e),n=(0,l.FD)(t),r=[];for(const t of n){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,s=[...(0,l.yP)(t[n])];0===n&&e.push(s),E(e,s,t[r],a)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const M=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function k(t,e,r){const i=new Set(e);return await async function(t,e,r){let s=null;for(const i of t)if(i&&(0,l.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,l.V8)(i,e)){const t=i.spatialReference;if(!t)throw new n.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=R(t);if(r.has(e))i.spatialReference=r.get(e);else{s||(s=await Promise.all([a.e(9187),a.e(8885),a.e(5756),a.e(3299),a.e(1550)]).then(a.bind(a,78125)));const o=s.fromSpatialReference(t),l=o?.getTolerance();if(null==l)throw new n.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=i.spatialReference.clone();u.read({xyTolerance:l}),i.spatialReference=u,r.set(e,u)}}}(t,i,r),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const a=t.spatialReference.xyTolerance;if(null==a)return t;const n=M(a);return(0,s.rS)(function(t,e,a){if(!(0,l.Ed)(t))return t;const n=new Set(e),r=f(a),s=(0,l.FD)(t),i=[];let o=!1;for(const t of s){const e=[];for(let a=0;a<t.length-1;a++){const s=a+1,i=[...(0,l.yP)(t[a])];0===a&&e.push(i);const u=t[s];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!n.has("cubic-bezier")?w(e,i,u,r):(0,l.aO)(u)&&!n.has("circular-arc")?S(e,i,u,r):(0,l.DA)(u)&&!n.has("elliptic-arc")?A(e,i,u,r):(0,l.wY)(u)&&!n.has("elliptic-arc")?v(e,i,u,r):(e.push((0,l.tk)(u)),o=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:i}:{rings:i}}}(t,e,n))})}function R(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},52039(t,e,a){a.d(e,{O7:()=>c,el:()=>l});var n=a(69052),r=(a(49186),a(17676)),s=(a(5443),a(39829),a(82799),a(16930)),i=a(93146),o=(a(80754),a(21325));async function l(t,e,a){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(a=e);let n=null;for(const e of t)n??=e?.spatialReference;if(!n)return t;const s=(0,o.Vp)(n);if(!s)return t;const[i,l]=s.valid;let c=!1;for(const e of t){if(!e)continue;if("point"===e.type){c||=e.x>=l,c||=e.x<=i;continue}const{extent:t}=e;if(null==t){c=!0;break}c||=t.xmin>=l,c||=t.xmin<=i,c||=t.xmax>=l,c||=t.xmax<=i}if(!c)return t;const[{foldInto360Range:h},p]=await(0,r.qr)(Promise.all([u.getImportPromise(),d.getImportPromise()]),a),f=p.fromSpatialReference(n);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=p.fromGeometry(t),a=p.toGeometry(h(e,f),n);return"extent"===t.type&&1===a?.rings.length?a.extent:a})}const u=(0,i.z)(()=>a.e(4144).then(a.bind(a,4144))),d=(0,i.z)(()=>Promise.all([a.e(9187),a.e(8885),a.e(5756),a.e(3299),a.e(1550)]).then(a.bind(a,78125)));function c(t,e,a){const n=(0,o.Vp)(a);if(null==n)return t;const[r,s]=n.valid,i=2*s;let l=0,u=0;e>s?l=Math.ceil(Math.abs(e-s)/i):e<r&&(l=-Math.ceil(Math.abs(e-r)/i)),t>s?u=Math.ceil(Math.abs(t-s)/i):t<r&&(u=-Math.ceil(Math.abs(t-r)/i));let d=t+(l-u)*i;const c=d-e;return c>s?d-=i:c<r&&(d+=i),d}function h(t){const e=(0,o.Vp)(t);if(null==e)return null;const[a,r]=e.valid;return new n.hr(a,r)}const p=h(s.A.WGS84);h(s.A.WebMercator),a.d(e,["Y_",0,p])},80754(t,e,a){a.d(e,{kS:()=>u,kd:()=>l});var n=a(82799),r=a(16930),s=a(60408),i=a(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,i.Ed)(t))for(const a of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of a){if((0,i.aO)(t)){const[a,n]=t.c;a[0]+=e,n[0]+=e;continue}if((0,i.FG)(t)){const[a,n]=t.a;a[0]+=e,n[0]+=e;continue}if((0,i.n1)(t)){const[a,n,r]=t.b;a[0]+=e,n[0]+=e,r[0]+=e;continue}t[0]+=e}for(const a of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of a)t[0]+=e;return t}a.d(e,["j7",0,o])},78628(t,e,a){a.d(e,{applyEdits:()=>S,uploadAssets:()=>R});var n=a(52106),r=a(7762),s=a(49186),i=a(4718),o=a(53966),l=a(91869),u=a(84952),d=a(13069),c=a(52039),h=a(21325),p=a(31411),f=a(47685),m=a(30524),y=a(20557),g=a(77548);function b(t){return null!=t?.applyEdits}const w=new WeakMap;async function S(t,e,a,n={}){let u;const c="gdbVersion"in t?t.gdbVersion:null,h=n.gdbVersion??c;if((0,f.Mk)(t)&&t.url)u=(0,f.Zk)(t.url,t.layerId,h,"original-and-current-features"===n.returnServiceEditsOption);else{u=Promise.withResolvers(),u.promise.then(e=>{(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length)&&t.emit("edits",e)},()=>{});const e={result:u.promise};t.emit("apply-edits",e)}try{const{results:c,edits:h}=await async function(t,e,a,n){if(await t.load(),!b(e))throw new s.A(`${t.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:t});if(!(0,g.tk)(t))throw new s.A(`${t.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:t});const{edits:i,options:u}=await async function(t,e,a){const n=(0,g.BR)(t),i=e&&(e.addFeatures||e.updateFeatures||e.deleteFeatures),u=e&&(e.addAttachments||e.updateAttachments||e.deleteAttachments),c=null!=t.infoFor3D;if(function(t,e,a,n,r,i){if(!(t&&(n||r)||a?.usingTelecomOperations))throw new s.A(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const o=e.editing.supportsGlobalId||a?.usingFeatureServiceEndpoint;if(!o&&a?.globalIdUsed)throw new s.A(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!o&&r)throw new s.A(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!a?.globalIdUsed&&r)throw new s.A(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(e,n,a,!!i,!!u,`${t.type}-layer`),!n.data.isVersioned&&a?.gdbVersion)throw new s.A(`${t.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!n.editing.supportsRollbackOnFailure&&a?.rollbackOnFailureEnabled)throw new s.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const h={...a};if(null!=h.rollbackOnFailureEnabled||n.editing.supportsRollbackOnFailure||(h.rollbackOnFailureEnabled=!0),h.rollbackOnFailureEnabled||"original-and-current-features"!==h.returnServiceEditsOption||(!1===h.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${t.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),h.rollbackOnFailureEnabled=!0),!n.editing.supportsReturnServiceEditsInSourceSpatialReference&&h.returnServiceEditsInSourceSR)throw new s.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(h.returnServiceEditsInSourceSR&&"original-and-current-features"!==h.returnServiceEditsOption)throw new s.A(`${t.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(t,e,a){const n=function(t){return{addFeatures:Array.from(t?.addFeatures??[]),updateFeatures:Array.from(t?.updateFeatures??[]),deleteFeatures:t&&r.A.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():t.deleteFeatures||[],addAttachments:t.addAttachments||[],updateAttachments:t.updateAttachments||[],deleteAttachments:t.deleteAttachments||[]}}(t);if(n.addFeatures?.length&&!e.operations.supportsAdd)throw new s.A(`${a}:unsupported-operation`,"Layer does not support adding features.");if(n.updateFeatures?.length&&!e.operations.supportsUpdate)throw new s.A(`${a}:unsupported-operation`,"Layer does not support updating features.");if(n.deleteFeatures?.length&&!e.operations.supportsDelete)throw new s.A(`${a}:unsupported-operation`,"Layer does not support deleting features.");return n.addFeatures=n.addFeatures.map(M),n.updateFeatures=n.updateFeatures.map(M),n.addAssetFeatures=[],n}(e,n,`${t.type}-layer`),f=a?.globalIdUsed||c,m=t.fields.filter(t=>"big-integer"===t.type||"oid"===t.type&&(t.length||0)>=8);if(f){const{globalIdField:e}=t;if(null==e)throw new s.A(`${t.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach(t=>function(t,e){const{attributes:a}=t;null==a[e]&&(a[e]=(0,d.yS)())}(t,e))}p.addFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n),v(t,e)}(e,t,f,m)),p.updateFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n),v(t,e);const r=(0,g.BR)(e);if("geometry"in t&&null!=t.geometry&&!r?.editing.supportsGeometryUpdate)throw new s.A(`${e.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(e,t,f,m)),p.deleteFeatures.forEach(e=>function(t,e,a,n){A(t,e,a,n)}(e,t,f,m)),p.addAttachments.forEach(e=>E(e,t)),p.updateAttachments.forEach(e=>E(e,t)),c&&await async function(t,e){const{infoFor3D:a}=e;if(null==a)return;if(!(0,y.JQ)(a))throw new s.A(`${e.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");t.addAssetFeatures??=[];const{addAssetFeatures:n}=t;for(const e of t.addFeatures??[])k(e)&&n.push(e);for(const e of t.updateFeatures??[])k(e)&&n.push(e)}(p,t);const b=(0,l.tE)(w,t,()=>new Map);return{edits:await F(p,n.data.supportedCurveTypes??[],b),options:h}}(t,a,n);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await e.applyEdits(i,u)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(t,e,a,n),p=t=>t.filter(t=>!t.error).map(i.o8),f={edits:h,addedFeatures:p(c.addFeatureResults),updatedFeatures:p(c.updateFeatureResults),deletedFeatures:p(c.deleteFeatureResults),addedAttachments:p(c.addAttachmentResults),updatedAttachments:p(c.updateAttachmentResults),deletedAttachments:p(c.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:c.editMoment?new Date(c.editMoment):null,globalIdToObjectId:n.globalIdToObjectId};return c.editedFeatureResults?.length&&(f.editedFeatures=c.editedFeatureResults),u.resolve(f),c}catch(t){throw u.reject(t),t}}function A(t,e,a,n){if(a){if("attributes"in t&&!t.attributes[e.globalIdField])throw new s.A(`${e.type}-layer:invalid-parameter`,`Feature should have '${e.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in t)&&!t.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(n.length&&"attributes"in t)for(const a of n){const n=t.attributes[a.name];if(void 0!==n&&!(0,m.OG)(a,n))throw new s.A(`${e.type}-layer:invalid-parameter`,`Big-integer field '${a.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:t})}if("geometry"in t&&null!=t.geometry){if(t.geometry.hasZ&&!1===e.capabilities?.data.supportsZ)throw new s.A(`${e.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(t.geometry.hasM&&!1===e.capabilities?.data.supportsM)throw new s.A(`${e.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function v(t,e){if("geometry"in t&&"mesh"===t.geometry?.type&&null!=e.infoFor3D&&null!=e.spatialReference){const{geometry:a}=t,{spatialReference:n,vertexSpace:r}=a,i=e.spatialReference,o="local"===r.type,l=(0,h.EA)(i),u=(0,h.aI)(i,n),d=u||(0,h.oT)(i)&&((0,h.oT)(n)||(0,h.K8)(n));if(!(o&&l&&d||!o&&!l&&u))throw new s.A(`${e.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${r.type} vertex space and a spatial reference wkid:${n.wkid} to a layer with a spatial reference wkid:${i.wkid} is not supported.`)}}function E(t,e){const{feature:a,attachment:n}=t;if(!a||"attributes"in a&&!a.attributes[e.globalIdField])throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in a)&&!a.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new s.A(`${e.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!e.capabilities?.editing.supportsUploadWithItemId&&n.uploadId)throw new s.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const t=(0,u.r$)(n.data);if(t&&!t.isBase64)throw new s.A(`${e.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function F(t,e,a){const n=t.addFeatures??[],r=t.updateFeatures??[],s=n.concat(r).map(t=>t.geometry),i=await(0,p.gh)(s,e,a),o=await(0,c.el)(i),l=n.length,u=r.length;return o.slice(0,l).forEach((t,e)=>n[e].geometry=t),o.slice(l,l+u).forEach((t,e)=>r[e].geometry=t),t}function M(t){const e=new n.A;return t.attributes||(t.attributes={}),e.geometry=t.geometry,e.attributes=t.attributes,e}function k(t){return"mesh"===t?.geometry?.type}function R(t,e,a,n){if(!b(e))throw new s.A(`${t.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:t});if(!e.uploadAssets)throw new s.A(`${t.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:t});return e.uploadAssets(a,n)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,f=145},51624(e,t,n){n.d(t,{A:()=>c});var s=n(44208),r=n(69397),i=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),u=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class c{constructor(e,t,n=0,s=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,n,s)}[Symbol.dispose](){this.release()}_init(e,t,n,s){this._data=e,this._dataView=t,this._pos=n,this._end=s}get usedMemory(){return 64+(0,r.Qf)(this._data)}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}clonePooled(){return c.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,n=0,s=e?.byteLength??0){const r=c.pool.acquire();return r._init(e,t,n,s),r}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,s){const r=this.getMessage(),i=e(r,t,n,s);return r.release(),i}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,n=0,s=0;if(this._end-t>=10)do{if(s=e[t++],n|=127&s,!(128&s))break;if(s=e[t++],n|=(127&s)<<7,!(128&s))break;if(s=e[t++],n|=(127&s)<<14,!(128&s))break;if(s=e[t++],n|=(127&s)<<21,!(128&s))break;if(s=e[t++],n+=268435456*(127&s),!(128&s))break;if(s=e[t++],n+=34359738368*(127&s),!(128&s))break;if(s=e[t++],n+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],n+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],n+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(s=e[t],128&s);)++t,n+=(127&s)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,n+=s*r}return this._pos=t,n}_decodeSVarint(){const e=this._data;let t,n=0,s=0;const r=1&e[this._pos];if(s=e[this._pos++],n|=127&s,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<7,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<14,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<21,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=268435456*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=34359738368*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=4398046511104*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(t=BigInt(n),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>u){const s=e.subarray(t,n);return a.decode(s)}let s="",r="";for(let i=t;i<n;++i){const t=e[i];128&t?r+="%"+t.toString(16):(s+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(s+=decodeURIComponent(r)),s}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}static{this.pool=new i.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>u});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=u(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},10536(e,t,n){function s(e){const t={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[n]=[];for(let e=0;e<r.length;e++)t[n][e]=s(r[e])}else"object"==typeof r?r.toJSON&&(t[n]=JSON.stringify(r)):t[n]=r}return t}n.d(t,{z:()=>s})},53655(e,t,n){n.d(t,{SH:()=>v,ae:()=>E,cn:()=>d});var s=n(5482),r=n(49186),i=n(51624),o=n(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function f(e,t){const n=e.getEnum();return n<t.length?t[n]:void 0}function g(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function p(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function h(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function d(e){const t=e.asUnsafe(),n={type:u[0]};for(;t.next();)switch(t.tag()){case 1:n.name=t.getString();break;case 2:n.type=f(t,u);break;case 3:n.alias=t.getString();break;case 4:n.sqlType=f(t,c);break;case 5:default:t.skip();break;case 6:n.defaultValue=t.getString()}return n}function y(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.name=n.getString();break;case 2:t.isSystemMaintained=n.getBool();break;default:n.skip()}return t}let m=[];function _(e,t,n){let s=p(t),r=0;const i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===n?s=p(t,f(i,a)):i.skip();continue;case 2:for(const e=i.getPackedEnd();i.pos()<e;)m[r++]=i.getUInt32();continue;case 3:r>0?(m.length=r,null!=t.geometry(n,s,m)&&(m=[])):t.geometry(n,s,[]);for(const e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){const n=[],s=e.asUnsafe();for(;s.next();)if(3!==s.tag())s.skip();else for(const e=s.getPackedEnd();s.pos()<e;)n.push(s.getSInt64());t.centroid(n)}let b=[],k=[],w=[];function T(e,t){const n={stack:[],error:void 0,hasError:!1};try{let r=0;const i=m;let o=0;const a=e.asUnsafe(),u=(0,s.mS)(n,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const c=a.getPackedEnd();a.pos()<c;)i[r++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(I,o++);continue;case 4:{const l=a.getUInt32(),f=a.pos()+l;if(0===o||0===r||0===l){a.move(f);continue}i.length=r,w.length=k.length=o,t.curvedGeometry(p(t),i,k,w);const{hasZ:g,hasM:h}=t.featureSet,d=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)d[e]=y[e],y[e]=a.getSInt64()}g&&y.push(0),h&&y.push(0);const S=[0,0],T=[0,0],x=S,q=S;let F=0;for(let E=0;E<r;++E){_(),d.fill(0),t.startCurvedPart(y);for(const O=F+i[E];F<O;++F){const U=k[F],P=w[F];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=d[0],y[1]+=d[1],t.lineSegment(d,y);continue;case 1:for(let v=0;v<P;++v)_(),x[0]=a.getSInt64(),x[1]=a.getSInt64(),t.circularArcSegment(d,y,x);continue;case 2:for(let D=0;D<P;++D)_(),S[0]=a.getSInt64(),S[1]=a.getSInt64(),T[0]=a.getSInt64(),T[1]=a.getSInt64(),t.bezierSegment(d,y,S,T);continue;case 3:if(u.move(b[F]),u.getUInt32()<7*P)throw new Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=u.getDouble(),q[1]=u.getDouble();const M=u.getDouble(),N=u.getDouble(),G=u.getDouble(),R=u.getDouble(),B=u.getDouble();t.ellipticArcSegment(d,y,q,M,N,G,R,B)}continue}}t.finishCurvedPart(y)}continue}default:a.skip()}}catch(j){n.error=j,n.hasError=!0}finally{(0,s.hk)(n)}}function I(e,t){const n=e.asUnsafe();let s=0,r=0,i=0;for(;n.next();)switch(n.tag()){case 1:s=n.getEnum();continue;case 2:r=n.getUInt32();continue;case 3:i=n.pos(),n.skip();continue;default:n.skip()}if(3===s&&0===i)throw new Error("An elliptic arc segment set did not include a parameters array");k[t]=s,w[t]=r,b[t]=i}function x(e,t){t.feature();const n=t.featureSet.features.at(-1);let s=0;const{fields:r}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==r)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");n.attributes[r[s++].name]=e.processMessage(h);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(T,t);continue;case 11:n.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){const t=[1,1,1,1],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function F(e){const t=[0,0,0,0],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function E(e){const t={originPosition:l[0]},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.originPosition=f(n,l);break;case 2:t.scale=n.processMessage(q);break;case 3:t.translate=n.processMessage(F);break;default:n.skip()}return t}function O(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.shapeAreaFieldName=n.getString();break;case 2:t.shapeLengthFieldName=n.getString();break;case 3:t.units=n.getString();break;default:n.skip()}return t}function U(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){const n=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let s=0,r=e.next().value;for(;n.next();)15===n.tag()&&s++===r?(r=e.next().value,n.processMessageWithArgs(x,t)):n.skip();return}let s=!1;for("metadata"===t.parseOnly?.type&&(s=!0,t.parseOnly.featureCount=0),g(t,"esriGeometryPoint");n.next();)switch(n.tag()){case 1:t.idField(n.getString());continue;case 3:t.featureSet.globalIdFieldName=n.getString();continue;case 4:t.featureSet.geohashFieldName=n.getString();continue;case 5:t.featureSet.geometryProperties=n.processMessage(O);continue;case 7:g(t,f(n,a));continue;case 8:t.featureSet.spatialReference=n.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=n.getBool();continue;case 11:t.featureSet.hasM=n.getBool();continue;case 12:t.featureSet.transform=n.processMessage(E);continue;case 9:t.featureSet.exceededTransferLimit=n.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(n.processMessage(d));continue;case 15:if(s){++t.parseOnly.featureCount,n.skip();continue}n.processMessageWithArgs(x,t);continue;case 2:t.idField(n.processMessage(y));continue;default:n.skip()}}function V(e,t,n){let s=-1;for(;e.next();)switch(e.tag()){case 4:s=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==s){if(!t.queryGeometry()){const n=e.pos();e.move(s),e.processMessageWithArgs(_,t,1),e.move(n)}n.queryGeometryType=t.queryGeometryType(),n.queryGeometry=t.queryGeometry()}t.finish(),n.featureResult=t.featureSet}function v(e,t){const n={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(n,{[Symbol.dispose](){m=[],b=[],k=[],w=[]}},!1);try{const n={stack:[],error:void 0,hasError:!1};try{const r=(0,s.mS)(n,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;r.next();)2===r.tag()?(o={},r.processMessageWithArgs(V,t,o)):r.skip();return o}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}},66208(e,t,n){n.d(t,{m:()=>r});var s=n(53655);function r(e,t){const{featureResult:n}=(0,s.SH)(e,t);return n}},80893(e,t,n){n.d(t,{IJ:()=>p,Jf:()=>m,LT:()=>b,Pk:()=>d,eW:()=>g,gW:()=>y,kS:()=>h});var s=n(11254),r=n(84952),i=n(17136),o=n(10536),a=n(66208),u=n(5076),c=n(58501);const l="Layer does not support extent calculation.";function f(e,t,n){return(0,u.i)(e,t,n)}async function g(e,t,n,s,r){const i=t.timeExtent?.isEmpty?{features:[]}:await S(e,t,"json",s,void 0,r);return i.features??=[],(0,c.q)(t,n,i),i}async function p(e,t,n,s,r){if(t.timeExtent?.isEmpty)return n.featureSet;const i=await h(e,t,s,r);return(0,a.m)(i,n)}function h(e,t,n,s){return S(e,t,"pbf",n,void 0,s)}function d(e,t,n,s){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):S(e,t,"json",n,{returnIdsOnly:!0},s)}async function y(e,t,n,s){return t.timeExtent?.isEmpty?0:(await S(e,t,"json",n,{returnCountOnly:!0},s)).count}async function m(e,t,n){if(t.timeExtent?.isEmpty)return{count:0,extent:null};const s=await S(e,t,"json",n,{returnExtentOnly:!0,returnCountOnly:!0});if(s.hasOwnProperty("extent"))return s;const r="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(r)&&s.hasOwnProperty("count")){const r=await S(e,t,"json",n,{returnExtentOnly:!0});return{count:s.count,extent:r.extent}}if(s.features)throw new Error(l);if(s.hasOwnProperty("count"))throw new Error(l);return s}function _(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const n={...e,returnUniqueIdsOnly:!0};return delete n.returnIdsOnly,n}async function S(e,t,n,r={},i={},o={}){const a=await b(e,t,n,r,i,o),u="json"===n?"json":"array-buffer";return(0,s.A)(a.url,{responseType:u,...a.options}).then(({data:e})=>e)}async function b(e,t,n,s,a={},u={}){const c="string"==typeof e?(0,r.An)(e):e,l=t.geometry?[t.geometry]:[],g=await(0,i.el)(l,null,{signal:s.signal}),p=g?.[0];if(null!=p){const e=t.clone();e.geometry=p.clone(),t=e}const h=(0,o.z)({...c.query,f:n,..._(a,u),...f(t,a,u)});return s={...s,query:{...h,...s.query}},new k((0,r.fj)(c.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,a)?"query3d":"query"),s)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,n){n.d(t,{i:()=>i});var s=n(60408),r=n(21325);function i(e,t,n){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const u=a;let c,l,f;if(i&&(l=i.spatialReference,f=(0,r.YX)(l),u.geometryType=(0,s.$B)(i),u.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const n=e.toJSON();return delete n.spatialReference,JSON.stringify(n)}(i,o),u.inSR=f),a.groupByFieldsForStatistics&&(u.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(n?.uniqueIdFields?.length){case void 0:u.objectIds=a.objectIds.join(",");break;case 1:u.uniqueIds=JSON.stringify(a.objectIds),delete u.objectIds;break;default:u.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete u.objectIds}if(a.orderByFields&&(u.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete u.outFields:a.outFields.includes("*")?u.outFields="*":u.outFields=a.outFields.join(","),a.outSR?(u.outSR=(0,r.YX)(a.outSR),c=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(u.outSR=u.inSR,c=l),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(u.outStatistics=JSON.stringify(a.outStatistics)),a.outDistance&&(u.outDistance=JSON.stringify(a.outDistance)),a.fullText&&(u.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(u.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,u.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(u.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(u.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(u.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:n}=e;null==t&&null==n||(u.time=t===n?t:`${t??"null"},${n??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=c&&l.equals(c)&&(u.defaultSR=u.inSR,delete u.inSR,delete u.outSR),u}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,f=145},51624(e,t,n){n.d(t,{A:()=>c});var s=n(44208),r=n(69397),i=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),u=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class c{constructor(e,t,n=0,s=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,n,s)}[Symbol.dispose](){this.release()}_init(e,t,n,s){this._data=e,this._dataView=t,this._pos=n,this._end=s}get usedMemory(){return 64+(0,r.Qf)(this._data)}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}clonePooled(){return c.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,n=0,s=e?.byteLength??0){const r=c.pool.acquire();return r._init(e,t,n,s),r}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,s){const r=this.getMessage(),i=e(r,t,n,s);return r.release(),i}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,n=0,s=0;if(this._end-t>=10)do{if(s=e[t++],n|=127&s,!(128&s))break;if(s=e[t++],n|=(127&s)<<7,!(128&s))break;if(s=e[t++],n|=(127&s)<<14,!(128&s))break;if(s=e[t++],n|=(127&s)<<21,!(128&s))break;if(s=e[t++],n+=268435456*(127&s),!(128&s))break;if(s=e[t++],n+=34359738368*(127&s),!(128&s))break;if(s=e[t++],n+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],n+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],n+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(s=e[t],128&s);)++t,n+=(127&s)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,n+=s*r}return this._pos=t,n}_decodeSVarint(){const e=this._data;let t,n=0,s=0;const r=1&e[this._pos];if(s=e[this._pos++],n|=127&s,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<7,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<14,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n|=(127&s)<<21,!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=268435456*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=34359738368*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(s=e[this._pos++],n+=4398046511104*(127&s),!(128&s))return r?-(n+1)/2:n/2;if(t=BigInt(n),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(r?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>u){const s=e.subarray(t,n);return a.decode(s)}let s="",r="";for(let i=t;i<n;++i){const t=e[i];128&t?r+="%"+t.toString(16):(s+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(s+=decodeURIComponent(r)),s}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}static{this.pool=new i.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>u});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=u(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},10536(e,t,n){function s(e){const t={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[n]=[];for(let e=0;e<r.length;e++)t[n][e]=s(r[e])}else"object"==typeof r?r.toJSON&&(t[n]=JSON.stringify(r)):t[n]=r}return t}n.d(t,{z:()=>s})},53655(e,t,n){n.d(t,{SH:()=>v,ae:()=>E,cn:()=>d});var s=n(5482),r=n(49186),i=n(51624),o=n(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function f(e,t){const n=e.getEnum();return n<t.length?t[n]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function h(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function d(e){const t=e.asUnsafe(),n={type:u[0]};for(;t.next();)switch(t.tag()){case 1:n.name=t.getString();break;case 2:n.type=f(t,u);break;case 3:n.alias=t.getString();break;case 4:n.sqlType=f(t,c);break;case 5:default:t.skip();break;case 6:n.defaultValue=t.getString()}return n}function y(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.name=n.getString();break;case 2:t.isSystemMaintained=n.getBool();break;default:n.skip()}return t}let m=[];function _(e,t,n){let s=g(t),r=0;const i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===n?s=g(t,f(i,a)):i.skip();continue;case 2:for(const e=i.getPackedEnd();i.pos()<e;)m[r++]=i.getUInt32();continue;case 3:r>0?(m.length=r,null!=t.geometry(n,s,m)&&(m=[])):t.geometry(n,s,[]);for(const e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){const n=[],s=e.asUnsafe();for(;s.next();)if(3!==s.tag())s.skip();else for(const e=s.getPackedEnd();s.pos()<e;)n.push(s.getSInt64());t.centroid(n)}let b=[],k=[],w=[];function T(e,t){const n={stack:[],error:void 0,hasError:!1};try{let r=0;const i=m;let o=0;const a=e.asUnsafe(),u=(0,s.mS)(n,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const c=a.getPackedEnd();a.pos()<c;)i[r++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(I,o++);continue;case 4:{const l=a.getUInt32(),f=a.pos()+l;if(0===o||0===r||0===l){a.move(f);continue}i.length=r,w.length=k.length=o,t.curvedGeometry(g(t),i,k,w);const{hasZ:p,hasM:h}=t.featureSet,d=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)d[e]=y[e],y[e]=a.getSInt64()}p&&y.push(0),h&&y.push(0);const S=[0,0],T=[0,0],x=S,q=S;let F=0;for(let E=0;E<r;++E){_(),d.fill(0),t.startCurvedPart(y);for(const O=F+i[E];F<O;++F){const U=k[F],P=w[F];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=d[0],y[1]+=d[1],t.lineSegment(d,y);continue;case 1:for(let v=0;v<P;++v)_(),x[0]=a.getSInt64(),x[1]=a.getSInt64(),t.circularArcSegment(d,y,x);continue;case 2:for(let D=0;D<P;++D)_(),S[0]=a.getSInt64(),S[1]=a.getSInt64(),T[0]=a.getSInt64(),T[1]=a.getSInt64(),t.bezierSegment(d,y,S,T);continue;case 3:if(u.move(b[F]),u.getUInt32()<7*P)throw new Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=u.getDouble(),q[1]=u.getDouble();const M=u.getDouble(),N=u.getDouble(),G=u.getDouble(),R=u.getDouble(),B=u.getDouble();t.ellipticArcSegment(d,y,q,M,N,G,R,B)}continue}}t.finishCurvedPart(y)}continue}default:a.skip()}}catch(j){n.error=j,n.hasError=!0}finally{(0,s.hk)(n)}}function I(e,t){const n=e.asUnsafe();let s=0,r=0,i=0;for(;n.next();)switch(n.tag()){case 1:s=n.getEnum();continue;case 2:r=n.getUInt32();continue;case 3:i=n.pos(),n.skip();continue;default:n.skip()}if(3===s&&0===i)throw new Error("An elliptic arc segment set did not include a parameters array");k[t]=s,w[t]=r,b[t]=i}function x(e,t){t.feature();const n=t.featureSet.features.at(-1);let s=0;const{fields:r}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==r)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");n.attributes[r[s++].name]=e.processMessage(h);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(T,t);continue;case 11:n.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){const t=[1,1,1,1],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function F(e){const t=[0,0,0,0],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function E(e){const t={originPosition:l[0]},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.originPosition=f(n,l);break;case 2:t.scale=n.processMessage(q);break;case 3:t.translate=n.processMessage(F);break;default:n.skip()}return t}function O(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.shapeAreaFieldName=n.getString();break;case 2:t.shapeLengthFieldName=n.getString();break;case 3:t.units=n.getString();break;default:n.skip()}return t}function U(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){const n=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let s=0,r=e.next().value;for(;n.next();)15===n.tag()&&s++===r?(r=e.next().value,n.processMessageWithArgs(x,t)):n.skip();return}let s=!1;for("metadata"===t.parseOnly?.type&&(s=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");n.next();)switch(n.tag()){case 1:t.idField(n.getString());continue;case 3:t.featureSet.globalIdFieldName=n.getString();continue;case 4:t.featureSet.geohashFieldName=n.getString();continue;case 5:t.featureSet.geometryProperties=n.processMessage(O);continue;case 7:p(t,f(n,a));continue;case 8:t.featureSet.spatialReference=n.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=n.getBool();continue;case 11:t.featureSet.hasM=n.getBool();continue;case 12:t.featureSet.transform=n.processMessage(E);continue;case 9:t.featureSet.exceededTransferLimit=n.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(n.processMessage(d));continue;case 15:if(s){++t.parseOnly.featureCount,n.skip();continue}n.processMessageWithArgs(x,t);continue;case 2:t.idField(n.processMessage(y));continue;default:n.skip()}}function V(e,t,n){let s=-1;for(;e.next();)switch(e.tag()){case 4:s=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==s){if(!t.queryGeometry()){const n=e.pos();e.move(s),e.processMessageWithArgs(_,t,1),e.move(n)}n.queryGeometryType=t.queryGeometryType(),n.queryGeometry=t.queryGeometry()}t.finish(),n.featureResult=t.featureSet}function v(e,t){const n={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(n,{[Symbol.dispose](){m=[],b=[],k=[],w=[]}},!1);try{const n={stack:[],error:void 0,hasError:!1};try{const r=(0,s.mS)(n,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;r.next();)2===r.tag()?(o={},r.processMessageWithArgs(V,t,o)):r.skip();return o}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){n.error=e,n.hasError=!0}finally{(0,s.hk)(n)}}},66208(e,t,n){n.d(t,{m:()=>r});var s=n(53655);function r(e,t){const{featureResult:n}=(0,s.SH)(e,t);return n}},80893(e,t,n){n.d(t,{IJ:()=>g,Jf:()=>m,LT:()=>b,Pk:()=>d,eW:()=>p,gW:()=>y,kS:()=>h});var s=n(11254),r=n(84952),i=n(52039),o=n(10536),a=n(66208),u=n(5076),c=n(58501);const l="Layer does not support extent calculation.";function f(e,t,n){return(0,u.i)(e,t,n)}async function p(e,t,n,s,r){const i=t.timeExtent?.isEmpty?{features:[]}:await S(e,t,"json",s,void 0,r);return i.features??=[],(0,c.q)(t,n,i),i}async function g(e,t,n,s,r){if(t.timeExtent?.isEmpty)return n.featureSet;const i=await h(e,t,s,r);return(0,a.m)(i,n)}function h(e,t,n,s){return S(e,t,"pbf",n,void 0,s)}function d(e,t,n,s){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):S(e,t,"json",n,{returnIdsOnly:!0},s)}async function y(e,t,n,s){return t.timeExtent?.isEmpty?0:(await S(e,t,"json",n,{returnCountOnly:!0},s)).count}async function m(e,t,n){if(t.timeExtent?.isEmpty)return{count:0,extent:null};const s=await S(e,t,"json",n,{returnExtentOnly:!0,returnCountOnly:!0});if(s.hasOwnProperty("extent"))return s;const r="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(r)&&s.hasOwnProperty("count")){const r=await S(e,t,"json",n,{returnExtentOnly:!0});return{count:s.count,extent:r.extent}}if(s.features)throw new Error(l);if(s.hasOwnProperty("count"))throw new Error(l);return s}function _(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const n={...e,returnUniqueIdsOnly:!0};return delete n.returnIdsOnly,n}async function S(e,t,n,r={},i={},o={}){const a=await b(e,t,n,r,i,o),u="json"===n?"json":"array-buffer";return(0,s.A)(a.url,{responseType:u,...a.options}).then(({data:e})=>e)}async function b(e,t,n,s,a={},u={}){const c="string"==typeof e?(0,r.An)(e):e,[l]=await(0,i.el)([t.geometry],s);if(null!=l){const e=t.clone();e.geometry=l.clone(),t=e}const p=(0,o.z)({...c.query,f:n,..._(a,u),...f(t,a,u)});return s={...s,query:{...p,...s.query}},new k((0,r.fj)(c.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,a)?"query3d":"query"),s)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,n){n.d(t,{i:()=>i});var s=n(60408),r=n(21325);function i(e,t,n){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const u=a;let c,l,f;if(i&&(l=i.spatialReference,f=(0,r.YX)(l),u.geometryType=(0,s.$B)(i),u.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const n=e.toJSON();return delete n.spatialReference,JSON.stringify(n)}(i,o),u.inSR=f),a.groupByFieldsForStatistics&&(u.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(n?.uniqueIdFields?.length){case void 0:u.objectIds=a.objectIds.join(",");break;case 1:u.uniqueIds=JSON.stringify(a.objectIds),delete u.objectIds;break;default:u.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete u.objectIds}if(a.orderByFields&&(u.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete u.outFields:a.outFields.includes("*")?u.outFields="*":u.outFields=a.outFields.join(","),a.outSR?(u.outSR=(0,r.YX)(a.outSR),c=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(u.outSR=u.inSR,c=l),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(u.outStatistics=JSON.stringify(a.outStatistics)),a.outDistance&&(u.outDistance=JSON.stringify(a.outDistance)),a.fullText&&(u.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(u.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,u.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(u.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(u.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(u.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:n}=e;null==t&&null==n||(u.time=t===n?t:`${t??"null"},${n??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=c&&l.equals(c)&&(u.defaultSR=u.inSR,delete u.inSR,delete u.outSR),u}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);