@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
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1482],{69052(t,e,n){n.d(e,{hr:()=>r});var s=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+i(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,s,r=0,o=!1){return(s-=r)<e?s+=i(t,e-s):s>n&&(s-=i(t,s-n)),o&&s===n&&(s=e),s+r}function i(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360));n.d(e,["ie",0,c,"uC",0,a])},31411(t,e,n){n.d(e,{GS:()=>b,gh:()=>A});var s=n(49186),r=n(56512),o=n(65864),i=n(4305),a=n(50954),c=n(52006),l=n(49663),u=n(46068),h=n(15507);const f=1e-6,p=[0,0];function d(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:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const o=n*n,i=e*e,a=1/s,c=this.interpolate(0),l=this.interpolate(1);(0,h.kb)(this.curveStart,c)>f&&t.push(c),this.initialize(c,l);const u=1/r;for(let t=r-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,h.kb)(this.arcStart,this.arcEnd)<o)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,l)>f&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[n,s,r]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:r}=this,[o,i]=this._arcControlPoints,a=(t-s)/(r-s),c=(0,h.RS)([],e,o,a),l=(0,h.RS)(p,o,i,a),u=(0,h.RS)([],i,n,a),f=(0,h.RS)([],c,l,a),d=(0,h.RS)([],l,u,a),m=(0,h.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,i.B4)(e,s,r,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,h.yE)(n,t,e),(0,h.yE)(s,t,e))}}class g extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.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,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,n,{cx:s,cy:r,radius:o,thetaStart:i,thetaEnd:a,isInvalid:c},{maxDeviation:l,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*o,y=[s+o*Math.cos(i),r+o*Math.sin(i)],g=[s+o*Math.cos(a),r+o*Math.sin(a)];(0,h.kb)(e,y)>f&&t.push(y);const S=Math.abs(a-i),M=u>0&&u<m?2*Math.asin(u/m):S,w=l>0&&l<=o?2*Math.acos(1-l/o):S,v=Math.min(M,w),x=Math.min(p,Math.max(d,Math.ceil(Math.abs(S/v)))),E=1/x;for(let e=1;e<x;e++){const n=e*E,c=i*(1-n)+a*n;t.push([s+o*Math.cos(c),r+o*Math.sin(c)])}return t.push(g),(0,h.kb)(n,g)>f&&t.push([...n]),t}function M(t,e,n,s){return new y(e,n).densify(t,s)}function w(t,e,n,s){const r=(0,a.pM)(e,n),[o]=n.c;return S(t,e,o,r,s)}function v(t,e,n,s){const r=(0,l.io)(e,n),[o]=n.a;return S(t,e,o,r,s)}function x(t,e,n,s){const[r,o,i,a,c,l,u]=n.a;return 0===l||0===u?(t.push([...r]),t):new g(e,n).densify(t,s)}function E(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?w(t,e,n,s):(0,c.DA)(n)?v(t,e,n,s):x(t,e,n,s)}function b(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),s=(0,c.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,c.yP)(t[s])];0===s&&e.push(o),E(e,o,t[r],n)}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 R=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,r){const i=new Set(e);return await async function(t,e,r){let o=null;for(const i of t)if(i&&(0,c.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,c.V8)(i,e)){const t=i.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=k(t);if(r.has(e))i.spatialReference=r.get(e);else{o||(o=await Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.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 l=i.spatialReference.clone();l.read({xyTolerance:c}),i.spatialReference=l,r.set(e,l)}}}(t,i,r),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=R(n);return(0,o.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),r=d(n),o=(0,c.FD)(t),i=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,i=[...(0,c.yP)(t[n])];0===n&&e.push(i);const l=t[o];(0,c.Xq)(l)?e.push([...l]):(0,c.n1)(l)&&!s.has("cubic-bezier")?M(e,i,l,r):(0,c.aO)(l)&&!s.has("circular-arc")?w(e,i,l,r):(0,c.DA)(l)&&!s.has("elliptic-arc")?v(e,i,l,r):(0,c.wY)(l)&&!s.has("elliptic-arc")?x(e,i,l,r):(e.push((0,c.tk)(l)),a=!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,...a?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:i}:{rings:i}}}(t,e,s))})}function k(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)}},17136(t,e,n){n.d(e,{Y_:()=>P,O7:()=>C,el:()=>k});var s=n(92602),r=n(69052),o=n(49186),i=n(53966),a=n(39829),c=n(82799),l=n(16930),u=n(80754),h=n(21325),f=n(28735),p=n(52006),d=n(31411),m=n(11254),y=n(60408),g=n(65864),S=n(2272),M=n(84952),w=n(92300);const v=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function E(t){return"polyline"===t[0].type}function b(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(t),new o.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],o=t[s][1],i=t[s+1][0],a=t[s+1][1],c=Math.sqrt((i-r)*(i-r)+(a-o)*(a-o)),l=(a-o)/c,u=(i-r)/c,h=c/e;if(h>1){for(let t=1;t<=h-1;t++){const s=t*e,i=u*s+r,a=l*s+o;n.push([i,a])}const t=(c+Math.floor(h-1)*e)/2,s=u*t+r,i=l*t+o;n.push([s,i])}n.push([i,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function R(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],o=e.geometries[s],i=(0,u.r8)(o);for(let t=0;t<i.length;t++){const e=i[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(r===n){if(x(t))for(const e of(0,u.r8)(o))t[r]=t[r].addRing(e);else if(E(t))for(const e of(0,u.r8)(o))t[r]=t[r].addPath(e)}else n=r,t[r]=o}return t}async function k(t,e,n){if(!Array.isArray(t))return k([t],e);e&&"string"!=typeof e&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let o,i,l,p,d,x,E,C,F=0;const P=[],q=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,i=(0,h.Vp)(o),l=o.isWebMercator,x=l?102100:4326,p=u.j7[x].maxX,d=u.j7[x].minX,E=u.j7[x].plus180Line,C=u.j7[x].minus180Line),i)if("mesh"===e.type)q.push(e);else if("point"===e.type)q.push(R(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>R(t,p,d)),q.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,i);q.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:o}=t;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(E)&&o!==p?(F=o>F?o:F,s=b(s,l),P.push(s),q.push("cut")):t.intersects(C)&&r!==d?(F=o*(2*p)>F?o*(2*p):F,s=b(s,l,360),P.push(s),q.push("cut")):q.push(s)}else q.push(e.clone());else q.push(e);else q.push(e);let I=(0,u.kd)(F,p),O=-90;const Z=I,z=new c.A;for(;I>0;){const t=360*I-180;z.addPath([[t,O],[t,-1*O]]),O*=-1,I--}if(P.length>0&&Z>0){const e=A(P,await async function(t,e,n,s){const r=(0,S.Dl)(t),o=e[0].spatialReference,i={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(r.path+"/cut",i),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(r,P,z,n)),s=[],o=[];for(let n=0;n<q.length;n++){const r=q[n];if("cut"!==r)o.push(r);else{const r=e.shift(),i=t[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&r.rings.length>=i.rings.length?(s.push(r),o.push("simplify")):o.push(l?(0,f.Gh)(r):r)}}if(!s.length)return o;const i=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,r=e[0].spatialReference,o=(0,y.$B)(e[0]),i={...n,query:{...s.query,f:"json",sr:(0,h.YX)(r),geometries:JSON.stringify((0,w.X)(e))}},{data:a}=await(0,m.A)(s.path+"/simplify",i);return(0,w.V)(a.geometries,o,r)}(r,s,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(l?(0,f.Gh)(i.shift()):i.shift())}return a}const D=[];for(let t=0;t<q.length;t++){const e=q[t];if("cut"!==e)D.push(e);else{const t=P.shift();D.push(!0===l?(0,f.Gh)(t):t)}}return D}function C(t,e,n){const s=(0,h.Vp)(n);if(null==s)return t;const[r,o]=s.valid,i=2*o;let a=0,c=0;e>o?a=Math.ceil(Math.abs(e-o)/i):e<r&&(a=-Math.ceil(Math.abs(e-r)/i)),t>o?c=Math.ceil(Math.abs(t-o)/i):t<r&&(c=-Math.ceil(Math.abs(t-r)/i));let l=t+(a-c)*i;const u=l-e;return u>o?l-=i:u<r&&(l+=i),l}function F(t){const e=(0,h.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new r.hr(n,s)}const P=F(l.A.WGS84);F(l.A.WebMercator)},80754(t,e,n){n.d(e,{kS:()=>l,kd:()=>c,r8:()=>u});var s=n(82799),r=n(16930),o=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,i.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,i.n1)(t)){const[n,s,r]=t.b;n[0]+=e,s[0]+=e,r[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},41653(t,e,n){n.r(e),n.d(e,{queryModel:()=>g,queryModels:()=>y});var s=n(11254),r=n(4576),o=n(49186),i=n(91869),a=n(84952),c=n(5482),l=n(69622),u=n(91429);let h=class extends l.A{constructor(t){super(t),this.name="",this.size=0}arrayBuffer(t){return this.loadArrayBuffer(t)}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"flags",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"loadArrayBuffer",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelFileInfo")],h);let f=class extends l.A{constructor(t){super(t),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"files",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"format",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"isSource",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelInfo")],f);var p=n(20557),d=n(99199),m=n(97552);async function y(t,e,n,s){const c=t.infoFor3D;if(!c)throw new o.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:t});const{objectIdField:l,globalIdField:u}=e;if(!l||!u)throw new o.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:t});const h=function(t,e,n,s){const r=function(t,e){const n=m.A.from(e)?.clone()??t.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(t,e);return r.outFields=[n,s],r.returnGeometry=!1,r}(t,n,l,u),f=await e.queryFeatures(h,s);return await async function(t){const{infoFor3D:e,associatedLayer:n,options:s}=t,o=n.globalIdField,c=n.parsedUrl;if(!o||!c)return new Map;const l=await async function(t){const{options:e,infoFor3D:n,featureInfos:s}=t,o=[...s.keys()];if(e?.requestedFormat){const t=(0,p.fE)(e.requestedFormat,n.supportedFormats);return t?[{formatId:t,objectIds:o}]:[]}const c=(0,r.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:t,infoFor3D:e,featureInfos:n,requestQuery:s,associatedLayer:o},c){const l=e.assetMapFieldRoles.parentGlobalId,u=e.assetMapFieldRoles.assetType,h=e.assetMapFieldRoles.flags,f=new Map;for(const[t,{globalId:e}]of n)e&&f.set(t,e);const y=(0,r.Am)(f.values()),g=(0,p.JZ)(e);if(!g||!y.length)return[];const S=(0,a.fj)(o.parsedUrl?.path??"",`../${g.id}`),M=!!t?.sourceOnly,w=new m.A({where:`${l} IN (${y.map(x).join(",")})`,outFields:M?[l,u,h]:[l,u],returnDistinctValues:!0,returnGeometry:!1}),{features:v}=await(0,d.s)(S,w,{query:s,signal:t?.signal}),E=new Set(c),b=new Map;for(const t of v){const e=t.getAttribute(l),n=t.getAttribute(u),s=t.getAttribute(h)??0;n&&E.has(n)&&e&&!(1&s)&&(0,i.tE)(b,e,()=>new Set).add(n)}const R=new Map;for(const[t,e]of f)for(const n of b.get(e)??[])(0,i.tE)(R,n,()=>[]).push(t);return c.map(t=>({formatId:t,objectIds:R.get(t)??[]})).filter(({objectIds:t})=>t.length>0)}(t,c)}(t),u=new Map,h=await Promise.all(l.map(async({formatId:r,objectIds:i})=>{const a=(0,p.be)(r,e.supportedFormats),c=n.parsedUrl;if(null==a||!c||!i.length)return null;const l=(0,p._h)(r,e.supportedFormats),u=(0,p.qv)(l),h=n.createQuery();return h.objectIds=i,h.outFields=[o],h.formatOf3DObjects=r,h.returnGeometry=!0,{modelFormat:a,modelFileExtensions:u,featureSetJSON:await(0,d.e)(c.path,h,{query:t.requestQuery,signal:s?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const e of h)e&&S(t,e.modelFormat,e.modelFileExtensions,e.featureSetJSON,u);return u}(new E(t,e,function(t){const e=new Map;for(const n of t.features){const t=n.getObjectId(),s=n.getGlobalId();null!=t&&null!=s&&e.set(t,{globalId:s})}return e}(f),c,s))}async function g(t,e,n,s){const r=s?.format;return((await y(t,e,{objectIds:[n]},{...s,requestedFormat:r,sourceOnly:null==r})).get(n)??[]).find(t=>r&&t.format===r||!r&&t.isSource)}function S({featureInfos:t,requestQuery:e,infoFor3D:n},s,r,o,a){const c=new Map;for(const t of o.assetMaps??[])(0,i.tE)(c,t.parentGlobalId,()=>[]).push(t);for(const[o,l]of t){const t=c.get(l.globalId);if(!t?.length)continue;const u=M(t,e,n);if(!u.length)continue;const h=u.reduce((t,e)=>t+e.size,0),p=v(u,r),d=!p.flags.includes("DERIVED");(0,i.tE)(a,o,()=>[]).push(new f({name:p.name,size:h,format:s,isSource:d,files:u}))}}function M(t,e,n){const s=new Map,r=({assetType:t})=>null!=(0,p.be)(t,n.supportedFormats),o=t.some(t=>r(t)&&!t.flags.includes("DERIVED"));for(const e of t)o&&r(e)&&e.flags.includes("DERIVED")||(0,i.tE)(s,e.assetName,()=>[]).push(e);const a=[];for(const[t,n]of s){n.sort((t,e)=>t.seqNo-e.seqNo);const s=n.reduce((t,e)=>t+e.size,0),r=n.map(({assetURL:t})=>t).filter(t=>!!t);r.length&&a.push(new h({name:t,size:s,flags:n[0].flags,loadArrayBuffer:t=>w(r,e,t)}))}return a}async function w(t,e,n){const r=await Promise.all(t.map(t=>(0,s.A)(t,{responseType:"array-buffer",query:e,signal:n?.signal}).then(({data:t})=>t)));return 1===r.length?r[0]:function(t){const e=t.reduce((t,e)=>t+e.byteLength,0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(new Uint8Array(e),s),s+=e.byteLength;return n.buffer}(r)}function v(t,e){return t.find(({name:t})=>e.some(e=>t.toLowerCase().endsWith(`.${e}`)))??t[0]}function x(t){return`'${t.replaceAll("'","''")}'`}class E{constructor(t,e,n,s,r){this.layer=t,this.associatedLayer=e,this.featureInfos=n,this.infoFor3D=s,this.options=r,this.requestQuery={...e.parsedUrl?.query,...t.customParameters,...t.apiKey?{token:t.apiKey}:{}}}}},92300(t,e,n){n.d(e,{V:()=>i,X:()=>o});var s=n(60408),r=n(65864);function o(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function i(t,e,n){const s=(0,r.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}},99199(t,e,n){n.d(e,{e:()=>c,s:()=>a});var s=n(2272),r=n(80893),o=n(22671),i=n(97552);async function a(t,e,n,s){const r=await c(t,e,n,s);return o.A.fromJSON(r)}function c(t,e,n,o){const a=(0,s.Dl)(t),c={...n},l=i.A.from(e);return(0,r.eW)(a,l,l.sourceSpatialReference,c,o)}},22671(t,e,n){n.d(e,{A:()=>S});var s,r=n(5482),o=n(52106),i=n(66552),a=n(25482),c=n(4718),l=n(91429),u=n(16930),h=n(60408),f=n(65864),p=n(50498),d=n(20437),m=n(36005),y=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=s=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,s){if(t)return void g.write(t,e,n,s);const{features:r}=this;if(r)for(const t of r)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,s)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,s=(0,f.rS)(t);return s&&!n&&e.spatialReference&&(s.spatialReference=u.A.fromJSON(e.spatialReference)),s}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const s=e.features[n];if(s.geometry){const e=t?.[n];s.geometry=e?.toJSON()||s.geometry}}return e}quantize(t){const{scale:[e,n],translate:[s,r]}=t,o=this.features,i=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-s)/e),t=>Math.round((r-t)/n));for(let t=0,e=o.length;t<e;t++)i?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[s,r],scale:[o,i]}=n;let a=null,c=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;c=n=>null==n?n:n*e+t}const l=this._getHydrationFunction(t,t=>t*o+s,t=>r-t*i,a,c);for(const{geometry:t}of e)null!=t&&l&&l(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const s=u.A.fromJSON(e.spatialReference),r=[];for(let e=0;e<t.length;e++){const o=t[e],i=n.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=s);const c=o.aggregateGeometries,l=i.aggregateGeometries;if(c&&null!=l)for(const t in l){const e=l[t],n=c[t],r=n?.spatialReference;null==e||r||(e.spatialReference=s)}r.push(i)}return r}_quantizePoints(t,e,n){let s,r;const o=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];if(i>0){const t=e(a[0]),i=n(a[1]);t===s&&i===r||(o.push([t-s,i-r]),s=t,r=i)}else s=e(a[0]),r=n(a[1]),o.push([s,r])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const s=(0,h.Bi)(t)?t.rings:t.paths,r=[];for(let t=0,o=s.length;t<o;t++){const o=s[t],i=this._quantizePoints(o,e,n);i&&r.push(i)}return r.length>0?((0,h.Bi)(t)?t.rings=r:t.paths=r,t):null}:"multipoint"===t?t=>{const s=this._quantizePoints(t.points,e,n);return s&&s.length>0?(t.points=s,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,s,r){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),s&&(t.z=s(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,h.Bi)(t)?t.rings:t.paths;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=e(i),r[1]=n(a)}}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2]),n[3]=r(n[3])}}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),s&&null!=t.zmax&&null!=t.zmin&&(t.zmax=s(t.zmax),t.zmin=s(t.zmin)),r&&null!=t.mmax&&null!=t.mmin&&(t.mmax=r(t.mmax),t.mmin=r(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];t>0?(i+=s[0],a+=s[1]):(i=s[0],a=s[1]),s[0]=e(i),s[1]=n(a)}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2]),e[3]=r(e[3])}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}}:null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],S.prototype,"features",void 0),(0,r.Cg)([(0,m.w)("features")],S.prototype,"readFeatures",null),(0,r.Cg)([(0,l.MZ)({type:[d.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],S.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],S.prototype,"writeGeometryType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,m.w)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],S.prototype,"transform",void 0),S=s=(0,r.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8325],{80200(t,e,n){n.d(e,{d:()=>h});const s={Base64:0,Hex:1,String:2,Raw:3};function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e,n,s,r,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(s,o)),r),n)}function o(t,e,n,s,i,o,c){return r(e&n|~e&s,t,e,i,o,c)}function c(t,e,n,s,i,o,c){return r(e&s|n&~s,t,e,i,o,c)}function a(t,e,n,s,i,o,c){return r(e^n^s,t,e,i,o,c)}function l(t,e,n,s,i,o,c){return r(n^(e|~s),t,e,i,o,c)}function u(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,s=-271733879,r=-1732584194,u=271733878;for(let e=0;e<t.length;e+=16){const h=n,p=s,f=r,m=u;n=o(n,s,r,u,t[e],7,-680876936),u=o(u,n,s,r,t[e+1],12,-389564586),r=o(r,u,n,s,t[e+2],17,606105819),s=o(s,r,u,n,t[e+3],22,-1044525330),n=o(n,s,r,u,t[e+4],7,-176418897),u=o(u,n,s,r,t[e+5],12,1200080426),r=o(r,u,n,s,t[e+6],17,-1473231341),s=o(s,r,u,n,t[e+7],22,-45705983),n=o(n,s,r,u,t[e+8],7,1770035416),u=o(u,n,s,r,t[e+9],12,-1958414417),r=o(r,u,n,s,t[e+10],17,-42063),s=o(s,r,u,n,t[e+11],22,-1990404162),n=o(n,s,r,u,t[e+12],7,1804603682),u=o(u,n,s,r,t[e+13],12,-40341101),r=o(r,u,n,s,t[e+14],17,-1502002290),s=o(s,r,u,n,t[e+15],22,1236535329),n=c(n,s,r,u,t[e+1],5,-165796510),u=c(u,n,s,r,t[e+6],9,-1069501632),r=c(r,u,n,s,t[e+11],14,643717713),s=c(s,r,u,n,t[e],20,-373897302),n=c(n,s,r,u,t[e+5],5,-701558691),u=c(u,n,s,r,t[e+10],9,38016083),r=c(r,u,n,s,t[e+15],14,-660478335),s=c(s,r,u,n,t[e+4],20,-405537848),n=c(n,s,r,u,t[e+9],5,568446438),u=c(u,n,s,r,t[e+14],9,-1019803690),r=c(r,u,n,s,t[e+3],14,-187363961),s=c(s,r,u,n,t[e+8],20,1163531501),n=c(n,s,r,u,t[e+13],5,-1444681467),u=c(u,n,s,r,t[e+2],9,-51403784),r=c(r,u,n,s,t[e+7],14,1735328473),s=c(s,r,u,n,t[e+12],20,-1926607734),n=a(n,s,r,u,t[e+5],4,-378558),u=a(u,n,s,r,t[e+8],11,-2022574463),r=a(r,u,n,s,t[e+11],16,1839030562),s=a(s,r,u,n,t[e+14],23,-35309556),n=a(n,s,r,u,t[e+1],4,-1530992060),u=a(u,n,s,r,t[e+4],11,1272893353),r=a(r,u,n,s,t[e+7],16,-155497632),s=a(s,r,u,n,t[e+10],23,-1094730640),n=a(n,s,r,u,t[e+13],4,681279174),u=a(u,n,s,r,t[e],11,-358537222),r=a(r,u,n,s,t[e+3],16,-722521979),s=a(s,r,u,n,t[e+6],23,76029189),n=a(n,s,r,u,t[e+9],4,-640364487),u=a(u,n,s,r,t[e+12],11,-421815835),r=a(r,u,n,s,t[e+15],16,530742520),s=a(s,r,u,n,t[e+2],23,-995338651),n=l(n,s,r,u,t[e],6,-198630844),u=l(u,n,s,r,t[e+7],10,1126891415),r=l(r,u,n,s,t[e+14],15,-1416354905),s=l(s,r,u,n,t[e+5],21,-57434055),n=l(n,s,r,u,t[e+12],6,1700485571),u=l(u,n,s,r,t[e+3],10,-1894986606),r=l(r,u,n,s,t[e+10],15,-1051523),s=l(s,r,u,n,t[e+1],21,-2054922799),n=l(n,s,r,u,t[e+8],6,1873313359),u=l(u,n,s,r,t[e+15],10,-30611744),r=l(r,u,n,s,t[e+6],15,-1560198380),s=l(s,r,u,n,t[e+13],21,1309151649),n=l(n,s,r,u,t[e+4],6,-145523070),u=l(u,n,s,r,t[e+11],10,-1120210379),r=l(r,u,n,s,t[e+2],15,718787259),s=l(s,r,u,n,t[e+9],21,-343485551),n=i(n,h),s=i(s,p),r=i(r,f),u=i(u,m)}return[n,s,r,u]}function h(t,e=s.Hex){const n=e||s.Base64,i=u(function(t){const e=[];for(let n=0,s=8*t.length;n<s;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case s.Raw:return i;case s.Hex:return function(t){const e="0123456789abcdef",n=[];for(let s=0,i=4*t.length;s<i;s++)n.push(e.charAt(t[s>>2]>>s%4*8+4&15)+e.charAt(t[s>>2]>>s%4*8&15));return n.join("")}(i);case s.String:return function(t){const e=[];for(let n=0,s=32*t.length;n<s;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(i);case s.Base64:return function(t){const e=[];for(let n=0,s=4*t.length;n<s;n+=3){const s=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s>>6*(3-i)&63))}return e.join("")}(i)}}n.d(e,["T",0,s])},87024(t,e,n){n.d(e,{P:()=>f});var s=n(49186),i=n(80200),r=n(76553),o=n(84952),c=n(13069),a=n(96156),l=n(35666),u=n(10107),h=n(85648),p=n(97159);function f(t){const e=t?.origins??[void 0];return(n,s)=>{const i=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const s=(0,a.z4)(e,n);return{type:String,read:(t,e,n)=>{const i=(0,p.r)(t,e,n);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{isRequired:s.json?.write?.isRequired,writer(e,i,c,a){if(!a?.resources)return"string"==typeof e?void(i[c]=(0,p.t)(e,a)):void(i[c]=e.write({},a));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=s.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(n)>(0,l.aB)(a.origin)),_={object:this,propertyName:n,value:e,targetUrl:f,dest:i,targetPropertyName:c,context:a,params:t};a?.portalItem&&f&&!(0,o.oP)(f)?y&&t?.contentAddressed?m(_):y?function(t){const{context:e,targetUrl:n,params:s,value:i,dest:r,targetPropertyName:c}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(n),l=g(i,n,e),u=(0,h.n)(l),p=(0,o.Zo)(a.path),f=s?.compress??!1;u===p?(e.resources&&d({...t,resource:a,content:l,compress:f,updates:e.resources.toUpdate}),r[c]=n):m(t)}(_):function({context:t,targetUrl:e,dest:n,targetPropertyName:s}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[s]=e)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):i[c]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=p.b;return{read:t,write:e}}}}(t,n,s);for(const t of e){const e=(0,u.rM)(n,t,s);for(const t in i)e[t]=i[t]}}}function m(t){const{targetUrl:e,params:n,value:r,context:a,dest:l,targetPropertyName:u}=t;if(!a.portalItem)return;const f=(0,p.p)(e),m=g(r,e,a);if(n?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new s.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));const y=n?.contentAddressed&&"json"===m.type?(0,i.d)(m.jsonString):f?.filename??(0,c.lk)(),_=(0,o.fj)(n?.prefix??f?.prefix,y),x=`${_}.${(0,h.n)(m)}`;if(n?.contentAddressed&&a.resources&&"json"===m.type){const t=a.resources.toKeep.find(({resource:t})=>t.path===x)??a.resources.toAdd.find(({resource:t})=>t.path===x);if(t)return void(l[u]=t.resource.itemRelativeUrl)}const v=a.portalItem.resourceFromPath(x);(0,o.w8)(e)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(e).then(t=>{v.path=`${_}.${(0,h.n)({type:"blob",blob:t})}`,l[u]=v.itemRelativeUrl}).catch(()=>{}));const w=n?.compress??!1;a.resources&&d({...t,resource:v,content:m,compress:w,updates:a.resources.toAdd}),l[u]=v.itemRelativeUrl}function d({object:t,propertyName:e,updates:n,resource:s,content:i,compress:r}){n.push({resource:s,content:i,compress:r,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},83027(t,e,n){const s=n(29953).ho;n.d(e,["h",0,s])},35982(t,e,n){n.d(e,{B:()=>u});var s=n(4576),i=n(71511),r=n(36563),o=n(53966),c=n(97768),a=n(17676),l=n(83027);class u{constructor(t,e,n,s,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(t,{...i,schedule:s}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,r.hA)(()=>{(0,s.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,c.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,s){if(this._thread){const i=this._transferLists[t],r=i?i(e):[];return this._thread.invoke(t,e,{transferList:r,signal:n,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,a.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(p):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function p(){}},65806(t,e,n){n.d(e,{g:()=>o});var s=n(51850),i=n(91218),r=n(9762);function o(t,e,n,s){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return c[0]=t.x,c[1]=t.y,c[2]=t.z??0,(0,r.projectBuffer)(c,t.spatialReference,0,e,n,0);const o=(0,i.tryProject)(t,n,s);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const c=(0,s.vt)()},27993(t,e,n){n.d(e,{F:()=>c});var s=n(91218),i=n(16930),r=n(9762),o=n(65806);function c(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,s.canProjectWithoutEngine)(e,i)?(0,r.projectBuffer)(t,e,0,n,i,0,1):(a.x=t[0],a.y=t[1],a.z=t[2],a.spatialReference=e,(0,o.g)(a,n,i)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},80754(t,e,n){n.d(e,{kS:()=>l,kd:()=>a,r8:()=>u});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const c={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,r.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,c])},89056(t,e,n){n.d(e,{b3:()=>h,jZ:()=>u});var s=n(12195),i=n(19419),r=n(537),o=n(95108),c=n(60408),a=n(80754),l=n(21325);function u(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,l.Vp)(n),o=(0,s.W)(t)?t.toJSON():t;if(!i)return o;const u=(0,l.K8)(n)?102100:4326,h=a.j7[u].maxX,p=a.j7[u].minX;if((0,c.fT)(o))return m(o,h,p);if((0,c.U9)(o))return o.points=o.points.map(t=>m(t,h,p)),o;if((0,c.ZC)(o))return f(o,i);if((0,c.Bi)(o)||(0,c.Rg)(o)){const t=(0,r.Rg)(v,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},s=(0,a.kd)(n.xmin,p)*(2*h),i=0===s?o:(0,a.kS)(o,s);return n.xmin+=s,n.xmax+=s,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return o}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:s,ymax:i,xmin:r,xmax:o}=t,c=t.xmax-t.xmin,[a,l]=e.valid,{x:u,frameId:h}=d(t.xmin,e),{x:p,frameId:f}=d(t.xmax,e),m=u===p&&c>0;if(c>2*l){const t={xmin:r<o?u:p,ymin:s,xmax:l,ymax:i},e={xmin:a,ymin:s,xmax:r<o?p:u,ymax:i},c={xmin:0,ymin:s,xmax:l,ymax:i},m={xmin:a,ymin:s,xmax:0,ymax:i},d=[],y=[];g(t,c)&&d.push(h),g(t,m)&&y.push(h),g(e,c)&&d.push(f),g(e,m)&&y.push(f);for(let t=h+1;t<f;t++)d.push(t),y.push(t);n.push(new x(t,[h]),new x(e,[f]),new x(c,d),new x(m,y))}else u>p||m?n.push(new x({xmin:u,ymin:s,xmax:l,ymax:i},[h]),new x({xmin:a,ymin:s,xmax:p,ymax:i},[f])):n.push(new x({xmin:u,ymin:s,xmax:p,ymax:i},[h]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function m(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,a.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,a.kd)(s,e);t.x+=n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t.x+=e*(-2*n)}}return t}function d(t,e){const[n,s]=e.valid,i=2*s;let r,o=0;return t>s?(r=Math.ceil(Math.abs(t-s)/i),t-=r*i,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/i),t+=r*i,o=-r),{x:t,frameId:o}}function g(t,e){const{xmin:n,ymin:s,xmax:i,ymax:r}=e;return y(t,n,s)&&y(t,n,r)&&y(t,i,r)&&y(t,i,s)}function y(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const s=!(0,c.Rg)(t);if(s&&(0,o.m3)(t),n)return(new w).cut(t,e);const i=s?t.rings:t.paths,r=s?4:2,a=i.length,l=-2*e;for(let t=0;t<a;t++){const e=i[t];if(e&&e.length>=r){const t=[];for(const[n,...s]of e)t.push([n+l,...s]);i.push(t)}}return s?t.rings=i:t.paths=i,t}class x{constructor(t,e){this.extent=t,this.frameIds=e}}const v=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const s=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=s;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(C(t,e<=0?t[0]:this._xCut)),this._lineOut.push(C(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),s=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let r=2;r<i;r++)s.push(t[r]+n*(e[r]-t[r]));return s}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const s=t.length;s>1&&t[s-1][0]===n&&t[s-2][0]===n?t[s-1]=C(e,n):t.push(C(e,n))}},58325(t,e,n){n.d(e,{A:()=>S});var s,i=n(5482),r=n(11254),o=n(7762),c=n(25482),a=n(84952),l=n(91429),u=n(4718),h=n(67076),p=n(87024),f=n(39829),m=n(91218),d=n(16930),g=n(21325),y=n(88546),_=n(72772),x=n(98697),v=n(43937);let w=s=class extends c.o{constructor(t){super(t),this.geometry=null,this.type="clip"}writeGeometry(t,e,n,s){if(this._needWGS84Conversion(s))this._doWGS84Conversion(e,n,s);else if(s.layer?.spatialReference&&!s.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(t.spatialReference,s.layer.spatialReference))return void(s?.messages&&s.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s})));const i=new f.A;(0,m.projectPolygon)(t,i,s.layer.spatialReference),e[n]=i.toJSON(s)}else e[n]=t.toJSON(s)}_needWGS84Conversion(t){if("integrated-mesh-3dtiles"===t.layer?.type){const e=t.layer;return!e.esriCrsSpatialReference||!(0,g.aI)(e.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(t,e,n){let s=!0;if((0,_.isInitialized)()){const i=(0,x.Ir)(null,[this],d.A.WGS84);if(i.length>1){const r=(0,_.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(r.success&&r.modifications){const i=[this.clone()];(0,x.H1)(r.modifications,i),1===i.length&&i[0].geometry&&(i[0].geometry.spatialReference=y.Zx,t[e]=i[0].geometry.toJSON(n),s=!1)}}}s&&n?.messages&&n.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:n}))}clone(){return new s({geometry:(0,u.o8)(this.geometry),type:this.type})}};var C;(0,i.Cg)([(0,l.MZ)({type:f.A}),(0,p.P)()],w.prototype,"geometry",void 0),(0,i.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],w.prototype,"writeGeometry",null),(0,i.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],w.prototype,"type",void 0),w=s=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],w);let S=C=class extends((0,c.T)(o.A.ofType(w))){constructor(t){super(t),this.url=null}clone(){return new C({url:this.url,items:this.items.map(t=>t.clone())})}toJSON(t){return this.toArray().map(e=>e.toJSON(t)).filter(t=>!!t.geometry)}static fromJSON(t,e){const n=new C;for(const s of t)n.add(w.fromJSON(s,e));return n}static async fromUrl(t,e,n,s=!1){const i={url:(0,a.An)(t),origin:"service"},o=await(0,r.A)(t,{responseType:"json",signal:n?.signal}),c=e.toJSON(),l=[];for(const t of o.data){let e=c;s&&t.geometry.spatialReference&&(e=t.geometry.spatialReference),l.push(w.fromJSON({...t,geometry:{spatialReference:e,...t.geometry}},i))}return new C({url:t,items:l})}};(0,i.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(t,e,n){n.d(e,{n:()=>i});var s=n(84952);function i(t){return r[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,s.Zo)(t);return a[e]||o}(t.url)}(t)]||c}const r={},o="text/plain",c=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)r[a[t]]=t},72772(t,e,n){n.r(e),n.d(e,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>h,isInitialized:()=>p,process:()=>c,switchMeshModificationPolygonVCSSync:()=>l});var s=n(2741);function i(t){return(0,s.s)(`esri/libs/lyr3d/${t}`)}let r,o=null;async function c(t){await h();const e={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(t.inputs.length<1)return{result:e,transferList:[]};const n={ptrs:[],sizes:[]};for(const e of t.inputs){const t=o._malloc(e.byteLength);new Uint8Array(o.HEAPU8.buffer,t,e.byteLength).set(new Uint8Array(e)),n.ptrs.push(t),n.sizes.push(e.byteLength)}const s=o.process(t.jobDescJson,t.id,n,t.isMissingResourceCase);e.status=s.status,e.missingInputUrls=s.missingInputUrls.slice();const i=0===s.status&&s.data,r=2===e.status&&e.missingInputUrls.length>0;e.jobDescJson=s.jobDescJson.slice(),e.error=s.error.slice(),i?e.data=s.data.slice():r&&(e.originalInputs=t.inputs.slice());for(let t=0;t<n.ptrs.length;++t)o._free(n.ptrs[t]);const c=[];if(i)c.push(e.data.buffer);else if(r)for(const e of t.inputs)c.push(e);return{result:e,transferList:c}}async function a(t){await h(),o.add_spatial_reference_info(t.sr,t.isGCS,t.toMetersXY,t.toMetersZ)}function l(t){if(!o)return{success:!1,modifications:null};const e=o._malloc(8*t.modifications.length),n=new Float64Array(o.HEAPF64.buffer,e,t.modifications.length);n.set(t.modifications);const s=o.switch_mesh_modification_polygon_vcs(e,t.modifications.length,t.inVCS);let i=null;return s&&(i=n.slice()),o._free(e),{success:s,modifications:i}}function u(){o&&(o.uninitialize_lyr3d_worker_wasm(),o=null)}function h(){return p()?Promise.resolve():(r||(r=new Promise(t=>n.e(2343).then(n.bind(n,2343)).then(({default:e})=>{const n=e({locateFile:i,onRuntimeInitialized:()=>t(n)})})).catch(t=>{throw t}).then(t=>{o=t,o.initialize_lyr3d_worker_wasm(),r=null})),r)}function p(){return null!==o}},98697(t,e,n){n.d(e,{H1:()=>_,Ir:()=>d,_b:()=>h,sQ:()=>p});var s=n(53966),i=n(15142),r=n(51850),o=n(35982),c=n(39829),a=n(91218),l=n(27993),u=n(89056);class h{constructor(t,e,n,s,i,r){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=s,this.hasModifications=i,this.positionData=r}}class p{constructor(t,e,n,s,i,r,o,c,a){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=s,this.transformedGeometry=i,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=c,this.geometryMaxElevation=a}}o.B;const f=new i.A({deallocator:null}),m=(0,r.vt)();function d(t,e,n,i=!1){f.clear();let r=1/0,o=1/0,l=-1/0,h=-1/0,p=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,d=m.spatialReference??n;if(d!==n&&!(0,a.canProjectWithoutEngine)(d,n)){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let _=m.rings;if(d!==n){const t=g(m.rings,d,n);if(null==t){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}_=t}const x=_;if(i){const t=(0,u.jZ)(new c.A({rings:_,spatialReference:n}));null!=t&&(_=t.rings)}const v=1===x.length&&_.length>1?[..._.map(t=>[t]),x]:[_];if(v.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!y(t)))))s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{p||=1===e;for(const t of v){f.push(e),f.push(t.length);for(const e of t){f.push(e.length);for(const t of e){const e=t[2]??0;f.push(t[0]),f.push(t[1]),f.push(e),r=Math.min(r,t[0]),o=Math.min(o,t[1]),l=Math.max(l,t[0]),h=Math.max(h,t[1])}}}}}if(null!=t)if(p){const e=1e-4;f.push(2),f.push(2),f.push(4),f.push(r-e),f.push(o-e),f.push(0),f.push(l+e),f.push(o-e),f.push(0),f.push(l+e),f.push(h+e),f.push(0),f.push(r-e),f.push(h+e),f.push(0),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0)}else f.push(1),f.push(1),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0);f.push(3);const m=new Float64Array(f.length);for(let t=0;t<f.length;++t)m[t]=f.at(t);return m}function g(t,e,n){const s=[];for(const i of t){const t=[];for(const s of i){if(!(0,l.F)(s,e,m,n)||!y(m))return null;t.push([m[0],m[1],m[2]])}s.push(t)}return s}function y(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const s of e){const e=s.geometry,i=e.rings.length,r=e.rings.some(t=>t.length<3);if(0!==i&&!r){n+=1,n+=1;for(let s=0;s<e.rings.length;++s){const i=e.rings[s];n+=1;for(let r=0;r<i.length;++r){const i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(s,r,i)}}}}}}}]);