@arcgis/core 4.34.0-next.91 → 4.34.0-next.93

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 (212) hide show
  1. package/Color.js +1 -1
  2. package/Ground.js +1 -1
  3. package/WebScene.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/004b13c1db79c9e668b1.js +1 -0
  6. package/assets/esri/core/workers/chunks/{700b5a536f97233bc4af.js → 03b455e9405a8b6fec68.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{a244afea77127e54dd3a.js → 08b0fc6bfe9640ee2525.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0a981061df08da19372c.js +1 -0
  9. package/assets/esri/core/workers/chunks/20003728a679479b14dc.js +1 -0
  10. package/assets/esri/core/workers/chunks/352511dbc67166face40.js +1 -0
  11. package/assets/esri/core/workers/chunks/3acd79a6a0572926a799.js +1 -0
  12. package/assets/esri/core/workers/chunks/3d7923d25734d03a4d27.js +1 -0
  13. package/assets/esri/core/workers/chunks/48133effac2eacc2196e.js +1 -0
  14. package/assets/esri/core/workers/chunks/4dfcd03082be83600f3a.js +1 -0
  15. package/assets/esri/core/workers/chunks/503c81dda242e6077317.js +1 -0
  16. package/assets/esri/core/workers/chunks/{06aed0a5464965be8d52.js → 56b3bb68b61b77138186.js} +1 -1
  17. package/assets/esri/core/workers/chunks/5746c4861af83c1d57a8.js +1 -0
  18. package/assets/esri/core/workers/chunks/5aacd1c6b171c99b41f5.js +1 -0
  19. package/assets/esri/core/workers/chunks/5eb7f6f5121c8830c561.js +1 -0
  20. package/assets/esri/core/workers/chunks/6810ecdeccf4b7eae5e2.js +1 -0
  21. package/assets/esri/core/workers/chunks/6b208f5d423da64c8559.js +1 -0
  22. package/assets/esri/core/workers/chunks/{8bdbd94a59269e216fba.js → 6c3b585b9cb6bb640fb0.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{7a240ab31d9ff2d2c5af.js → 73db6c070b049fe05147.js} +1 -1
  24. package/assets/esri/core/workers/chunks/801451fb572bc5f1f270.js +1 -0
  25. package/assets/esri/core/workers/chunks/82e0d22619dc26920ca9.js +1 -0
  26. package/assets/esri/core/workers/chunks/{6aa349e1adf844df4b5b.js → 8b9a50cfaa5a7df02dad.js} +1 -1
  27. package/assets/esri/core/workers/chunks/8de9e50de0ac66ae1573.js +1 -0
  28. package/assets/esri/core/workers/chunks/8f426cb210a4250517d5.js +1 -0
  29. package/assets/esri/core/workers/chunks/94ddf029698991d853b9.js +1 -0
  30. package/assets/esri/core/workers/chunks/97eb2cfc1f036feea9a9.js +1 -0
  31. package/assets/esri/core/workers/chunks/{a85acb948cc7d22be592.js → 992b1389710d716d3450.js} +1 -1
  32. package/assets/esri/core/workers/chunks/9adecee0ed2f1df3b0d2.js +1 -0
  33. package/assets/esri/core/workers/chunks/a0fab8cd791c33d3895d.js +1 -0
  34. package/assets/esri/core/workers/chunks/{e99fc64b67bb0c71dc34.js → ad67e5eb4b8c0c14cea6.js} +1 -1
  35. package/assets/esri/core/workers/chunks/b5c829e904bc9cb5347d.js +1 -0
  36. package/assets/esri/core/workers/chunks/bec9ddd38c9ab9f2561b.js +1 -0
  37. package/assets/esri/core/workers/chunks/bf9031749d10e7d457b6.js +1 -0
  38. package/assets/esri/core/workers/chunks/bf9d09493fd849ea69fd.js +1 -0
  39. package/assets/esri/core/workers/chunks/{58e2652810143f509fe1.js → c473b15d4d52f0a63d20.js} +1 -1
  40. package/assets/esri/core/workers/chunks/c8e4fe0e3b109eb80e8e.js +1 -0
  41. package/assets/esri/core/workers/chunks/cd0c222a36caa7f80860.js +1 -0
  42. package/assets/esri/core/workers/chunks/ce175801937e80e3c487.js +1 -0
  43. package/assets/esri/core/workers/chunks/{100a0041ee42b0b2fa32.js → e5d974593043d5e2b502.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{1194c2432c31def87db1.js → f71b76c9506178124fa3.js} +1 -1
  45. package/assets/esri/themes/base/_core.scss +0 -2
  46. package/assets/esri/themes/base/widgets/_OrientedImageryViewerNavigationUI.scss +10 -7
  47. package/assets/esri/themes/dark/main.css +1 -1
  48. package/assets/esri/themes/light/main.css +1 -1
  49. package/assets/esri/themes/light/view.css +1 -1
  50. package/chunks/CutFillComposition.glsl.js +15 -3
  51. package/chunks/CutFillMask.glsl.js +1 -1
  52. package/chunks/languageUtils.js +1 -1
  53. package/config.js +1 -1
  54. package/core/CollectionFlattener.js +1 -1
  55. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  56. package/geometry/operators/json/graphicBufferOperator.js +1 -1
  57. package/geometry/support/aaBoundingRect.js +1 -1
  58. package/geometry/support/geometryUtils.js +1 -1
  59. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  60. package/geometry/support/meshUtils.js +1 -1
  61. package/geometry/support/triangle.js +1 -1
  62. package/interfaces.d.ts +52 -261
  63. package/kernel.js +1 -1
  64. package/layers/BaseElevationLayer.js +1 -1
  65. package/layers/BaseTileLayer.js +1 -1
  66. package/layers/ElevationLayer.js +1 -1
  67. package/layers/FeatureLayer.js +1 -1
  68. package/layers/GaussianSplatLayer.js +1 -1
  69. package/layers/ImageryTileLayer.js +1 -1
  70. package/layers/ParquetLayer.js +1 -1
  71. package/layers/graphics/sources/ParquetSource.js +1 -1
  72. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  73. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  74. package/layers/support/ElevationQuery.js +1 -1
  75. package/layers/support/ElevationQueryContext.js +5 -0
  76. package/layers/support/ElevationSampler.js +1 -1
  77. package/layers/support/ElevationTile.js +1 -1
  78. package/layers/support/GeometryDescriptor.js +1 -1
  79. package/layers/support/ParquetEncodingLocation.js +1 -1
  80. package/layers/support/ParquetEncodingWkb.js +1 -1
  81. package/layers/support/RasterBandInfo.js +1 -1
  82. package/layers/support/TileElevationSampler.js +5 -0
  83. package/layers/support/TileInfo.js +1 -1
  84. package/layers/support/TileKey.js +1 -1
  85. package/layers/support/TilemapCache.js +1 -1
  86. package/layers/support/layerUtils.js +1 -1
  87. package/layers/support/parquetEncodingUtils.js +5 -0
  88. package/layers/support/parquetUtils.js +1 -1
  89. package/networks/UtilityNetwork.js +1 -1
  90. package/networks/support/typeUtils.js +1 -1
  91. package/package.json +2 -2
  92. package/popup/FieldInfo.js +1 -1
  93. package/rest/networks/support/Association.js +1 -1
  94. package/rest/print.js +1 -1
  95. package/support/revision.js +1 -1
  96. package/symbols/cim/CIMSymbolHelper.js +1 -1
  97. package/symbols/cim/cimAnalyzer.js +1 -1
  98. package/symbols/cim/effects/EffectOffset.js +1 -1
  99. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  100. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  101. package/views/2d/engine/Stage.js +1 -1
  102. package/views/2d/engine/flow/BrushFlow.js +1 -1
  103. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  104. package/views/2d/engine/webgl/Overlay.js +1 -1
  105. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  106. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  107. package/views/2d/engine/webgl/TextureManager.js +1 -1
  108. package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +1 -1
  109. package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
  110. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  111. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  112. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  113. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  114. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  115. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  116. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  117. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  118. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  119. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  120. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  121. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/utils.js +1 -1
  123. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  124. package/views/2d/layers/VideoLayerView2D.js +1 -1
  125. package/views/2d/navigation/actions/Pan.js +1 -1
  126. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  127. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  128. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization3D.js +1 -1
  129. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  130. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  131. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  132. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  133. package/views/3d/support/hitTest.js +1 -1
  134. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  135. package/views/3d/support/popupHitTest.js +1 -1
  136. package/views/3d/terrain/ExtentHelper.js +1 -1
  137. package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
  138. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  139. package/views/SceneView.js +1 -1
  140. package/views/View2D.js +1 -1
  141. package/views/Viewport2DMixin.js +1 -1
  142. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  143. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
  144. package/views/analysis/ElevationProfile/ElevationProfileLineQueryComputation.js +1 -1
  145. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  146. package/views/analysis/ExclusiveOperationManager.js +5 -0
  147. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  148. package/views/interactive/snapping/featureSources/WorkerTileTreeDebugger.js +1 -1
  149. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  150. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  151. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  152. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  153. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
  154. package/views/interactive/snapping/featureSources/featureServiceSource/PendingFeatureTile.js +1 -1
  155. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  156. package/views/navigation/Navigation.js +1 -1
  157. package/views/support/GroundViewElevationSampler.js +1 -1
  158. package/views/video/VideoOperationalDataView.js +1 -1
  159. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  160. package/widgets/Feature/FeatureExpression.js +1 -1
  161. package/widgets/Feature/FeatureMedia.js +1 -1
  162. package/widgets/Feature/FeatureViewModel.js +1 -1
  163. package/widgets/Feature.js +1 -1
  164. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  165. package/widgets/FeatureTable.js +1 -1
  166. package/widgets/Legend/LegendViewModel.js +1 -1
  167. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  168. package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
  169. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  170. package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
  171. package/widgets/OrientedImageryViewer/services/DepthImageService.js +5 -0
  172. package/widgets/PanoramicViewer.js +1 -1
  173. package/widgets/Search/SearchViewModel.js +1 -1
  174. package/widgets/Sketch/SketchViewModel.js +1 -1
  175. package/widgets/support/decorators/vmEvent.js +1 -1
  176. package/assets/esri/core/workers/chunks/08374e5805fcedc1cb57.js +0 -1
  177. package/assets/esri/core/workers/chunks/14114be3afd6d292f89c.js +0 -1
  178. package/assets/esri/core/workers/chunks/2605062e44f2d4e73f14.js +0 -1
  179. package/assets/esri/core/workers/chunks/282c4f3484c605ce7d5e.js +0 -1
  180. package/assets/esri/core/workers/chunks/2e1cc11462846febb3b2.js +0 -1
  181. package/assets/esri/core/workers/chunks/37b5007660535f1c91c6.js +0 -1
  182. package/assets/esri/core/workers/chunks/393274af1804e5b6046a.js +0 -1
  183. package/assets/esri/core/workers/chunks/3ff3e1507220d3869c76.js +0 -1
  184. package/assets/esri/core/workers/chunks/4133ab8720e7e4afa9a6.js +0 -1
  185. package/assets/esri/core/workers/chunks/4d807bfe75108438db83.js +0 -1
  186. package/assets/esri/core/workers/chunks/5ad1985a9e66fb2232ae.js +0 -1
  187. package/assets/esri/core/workers/chunks/5b7a2ee44883b1fb2a5f.js +0 -1
  188. package/assets/esri/core/workers/chunks/614a00a3179f8fe23f45.js +0 -1
  189. package/assets/esri/core/workers/chunks/83065bef261314f9b2c5.js +0 -1
  190. package/assets/esri/core/workers/chunks/8cae725e631d922853c8.js +0 -1
  191. package/assets/esri/core/workers/chunks/8f4cfef97716c3502b0f.js +0 -1
  192. package/assets/esri/core/workers/chunks/9bb6984f24cd5461a754.js +0 -1
  193. package/assets/esri/core/workers/chunks/9f2a3f37fe9b19ef1209.js +0 -1
  194. package/assets/esri/core/workers/chunks/a1196637268b89281780.js +0 -1
  195. package/assets/esri/core/workers/chunks/b240298b8b643a323d34.js +0 -1
  196. package/assets/esri/core/workers/chunks/b47f26d6aa9a2848a677.js +0 -1
  197. package/assets/esri/core/workers/chunks/b661ea374fe38c8e29ca.js +0 -1
  198. package/assets/esri/core/workers/chunks/b8997ae5893afa0298d1.js +0 -1
  199. package/assets/esri/core/workers/chunks/baa48614d9567d5f240d.js +0 -1
  200. package/assets/esri/core/workers/chunks/c20862fe15295a294bbd.js +0 -1
  201. package/assets/esri/core/workers/chunks/c3020747f9001ca6a6e7.js +0 -1
  202. package/assets/esri/core/workers/chunks/c7c76a8a1c47eb62bef1.js +0 -1
  203. package/assets/esri/core/workers/chunks/eea9d49d55c2d1355497.js +0 -1
  204. package/assets/esri/core/workers/chunks/fb6ebb780bb59e252887.js +0 -1
  205. package/assets/esri/core/workers/chunks/ff6d189ba78980d40bb5.js +0 -1
  206. package/assets/esri/themes/base/widgets/_ButtonMenu.scss +0 -87
  207. package/widgets/FeatureTable/Grid/support/ButtonMenu.d.ts +0 -4
  208. package/widgets/FeatureTable/Grid/support/ButtonMenu.js +0 -5
  209. package/widgets/FeatureTable/Grid/support/ButtonMenuItem.d.ts +0 -4
  210. package/widgets/FeatureTable/Grid/support/ButtonMenuItem.js +0 -5
  211. package/widgets/FeatureTable/Grid/support/ButtonMenuViewModel.d.ts +0 -4
  212. package/widgets/FeatureTable/Grid/support/ButtonMenuViewModel.js +0 -5
@@ -2,7 +2,19 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{glsl as o}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as l}from"../views/webgl/NoParameters.js";import{ShaderBuilder as s}from"../views/webgl/ShaderBuilder.js";class t extends l{}function u(){const l=new s;return l.include(e),l.outputs.add("fragColor","vec4",0),l.fragment.uniforms.add(new r("colorTexture",e=>e.color),new r("cutFillVolumes",e=>e.cutFillVolumes),new r("cutFillMask",e=>e.cutFillMask)).main.add(o`vec4 color = texture(colorTexture, uv, 0.0);
5
+ import{create as e}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{ScreenSpacePass as r}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float4PassUniform as o}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as i}from"../views/webgl/NoParameters.js";import{ShaderBuilder as a}from"../views/webgl/ShaderBuilder.js";class m extends i{constructor(){super(...arguments),this.borderColor=e()}}function c(){const e=new a;return e.include(r),e.outputs.add("fragColor","vec4",0),e.fragment.uniforms.add(new t("colorTexture",e=>e.color),new t("cutFillVolumes",e=>e.cutFillVolumes),new t("cutFillMask",e=>e.cutFillMask),new s("pixelRatio",(e,r)=>r.camera.pixelRatio),new o("borderColor",e=>e.borderColor)).main.add(l`vec4 color = texture(colorTexture, uv, 0.0);
6
6
  vec4 volumesColor = texture(cutFillVolumes, uv, 0.0);
7
- float mask = texture(cutFillMask, uv, 0.0).r;
8
- fragColor = mask > 0.0 ? mix(color, volumesColor, volumesColor.a) : color;`),l}const a=Object.freeze(Object.defineProperty({__proto__:null,CutFillCompositionPassParameters:t,build:u},Symbol.toStringTag,{value:"Module"}));export{t as C,a,u as b};
7
+ ivec2 iuv = ivec2(uv * vec2(textureSize(cutFillMask, 0)));
8
+ vec2 m0 = texelFetch(cutFillMask, iuv, 0).rg;
9
+ vec2 m1 = texelFetch(cutFillMask, iuv + ivec2(-1, 0), 0).rg;
10
+ vec2 m2 = texelFetch(cutFillMask, iuv + ivec2(1, 0), 0).rg;
11
+ vec2 m3 = texelFetch(cutFillMask, iuv + ivec2(0, -1), 0).rg;
12
+ vec2 m4 = texelFetch(cutFillMask, iuv + ivec2(0, 1), 0).rg;
13
+ float d = (
14
+ step(1.5, abs(m0.r - m1.r) + abs(m0.g - m1.g))
15
+ + step(1.5, abs(m0.r - m2.r) + abs(m0.g - m2.g))
16
+ + step(1.5, abs(m0.r - m3.r) + abs(m0.g - m3.g))
17
+ + step(1.5, abs(m0.r - m4.r) + abs(m0.g - m4.g))
18
+ ) * 0.25 * pixelRatio;
19
+ vec4 base = mix(color, volumesColor, max(m0.r, m0.g) * volumesColor.a);
20
+ fragColor = mix(base, borderColor, d);`),e}const u=Object.freeze(Object.defineProperty({__proto__:null,CutFillCompositionPassParameters:m,build:c},Symbol.toStringTag,{value:"Module"}));export{m as C,u as a,c as b};
@@ -3,4 +3,4 @@ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
5
  import{translate as r}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as e}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{ZEROS as o}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{glsl as i}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix4BindUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js";import{Matrix4DrawUniform as s}from"../views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js";import{NoParameters as a}from"../views/webgl/NoParameters.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";class m extends a{constructor(){super(...arguments),this.origin=o}}function l(){const e=new n;return e.attributes.add("position","vec3"),e.outputs.add("fragColor","vec4",0),e.vertex.uniforms.add(new t("proj",r=>r.camera.projectionMatrix),new s("view",(e,o)=>r(d,o.camera.viewMatrix,e.origin))).main.add(i`gl_Position = proj * view * vec4(position, 1.0);
6
- gl_Position.z = min(gl_Position.z, gl_Position.w);`),e.fragment.main.add(i`fragColor = vec4(1., 0., 0., 0.);`),e}const d=e(),c=Object.freeze(Object.defineProperty({__proto__:null,CutFillMaskDrawParameters:m,build:l},Symbol.toStringTag,{value:"Module"}));export{m as C,c as a,l as b};
6
+ gl_Position.z = min(gl_Position.z, gl_Position.w);`),e.fragment.main.add(i`fragColor = vec4(1, 1, 0, 0);`),e}const d=e(),c=Object.freeze(Object.defineProperty({__proto__:null,CutFillMaskDrawParameters:m,build:l},Symbol.toStringTag,{value:"Module"}));export{m as C,c as a,l as b};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import e from"../config.js";import{version as t}from"../kernel.js";import{ArcadeDate as n,createDateTimeZone as r}from"../arcade/ArcadeDate.js";import{ArcadeModule as i}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as a}from"../arcade/executionError.js";import{ArcadeFunction as o}from"../arcade/FunctionWrapper.js";import u from"../arcade/ImmutableArray.js";import s from"../arcade/ImmutablePathArray.js";import l from"../arcade/ImmutablePointArray.js";import{esriFieldToJson as f,layerGeometryEsriRestConstants as c}from"../arcade/featureset/support/shared.js";import{format as m,parse as d}from"../core/number.js";import{DateOnly as y}from"../core/sql/DateOnly.js";import{TimeOnly as p}from"../core/sql/TimeOnly.js";import g from"../geometry/Extent.js";import h from"../geometry/Geometry.js";import b from"../geometry/Multipoint.js";import N from"../geometry/Point.js";import S from"../geometry/Polygon.js";import Z from"../geometry/Polyline.js";import T from"../geometry/SpatialReference.js";import{isClockwise as A}from"../geometry/support/coordsUtils.js";import{fromJSON as k}from"../geometry/support/jsonUtils.js";import{getLocale as D}from"../intl/locale.js";import{isBoolean as j,isNumber as x,isString as O,isArray as C,isDate as F,isGraphic as w,isInteger as J}from"../support/guards.js";import{DateTime as M}from"luxon";class R{constructor(e){this.value=e}}class v{constructor(e){this.value=e}}const P={type:"VOID"},_=Symbol("BREAK"),I=Symbol("CONTINUE");function Y(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function L(e){return e instanceof o}function G(e){return e instanceof i}function V(e){return!!O(e)||(!!x(e)||(!!ne(e)||(!!re(e)||(!!ie(e)||(!!j(e)||(null===e||e===P))))))}function z(e,t){return void 0===e?t:e}function E(e){return null==e?"":C(e)||te(e)?"Array":ne(e)?"Date":ie(e)?"Time":re(e)?"DateOnly":O(e)?"String":j(e)?"Boolean":x(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":ee(e)?"KnowledgeGraph":e instanceof i?"Module":H(e)?"Feature":e instanceof N?"Point":e instanceof S?"Polygon":e instanceof Z?"Polyline":e instanceof b?"Multipoint":e instanceof g?"Extent":L(e)?"Function":B(e)?"FeatureSet":X(e)?"FeatureSetCollection":W(e)?"Voxel":$(e)?"Pixel":e===P?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function q(e){return e===P}function U(e){return e instanceof h}function H(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function W(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function $(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function B(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function Q(e){return K(e)||H(e)||W(e)||$(e)}function X(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function ee(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function te(e){return e instanceof u}function ne(e){return e instanceof n}function re(e){return e instanceof y}function ie(e){return e instanceof p}function ae(e){return null!=e&&"object"==typeof e}function oe(e,t,n,r,i){if(e.length<t||e.length>n)throw new a(r,"WrongNumberOfParameters",i)}function ue(e){return null==e||q(e)||""===e}function se(e){return e<0?-Math.round(-e):Math.round(e)}function le(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=Y(t,"‰",""),t=Y(t,"¤",""),m(e,{pattern:t}))}function fe(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ce(t),{locale:D(),numberingSystem:"latn"})}function ce(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function me(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function de(e,t,r){if(null===e){if(null===t||t===P)return me(null,null,r);if(x(t))return me(0,t,r);if(O(t))return me(0,Se(t),r);if(j(t))return me(0,Se(t),r);if(ne(t))return me(0,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}if(e===P){if(null===t||t===P)return me(null,null,r);if(x(t))return me(0,t,r);if(O(t))return me(0,Se(t),r);if(j(t))return me(0,Se(t),r);if(ne(t))return me(0,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}else if(x(e)){if(x(t))return me(e,t,r);if(j(t))return me(e,Se(t),r);if(null===t||t===P)return me(e,0,r);if(O(t))return me(e,Se(t),r);if(ne(t))return me(e,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}else if(O(e)){if(O(t))return me(ge(e),ge(t),r);if(ne(t))return me(Se(e),t.toNumber(),r);if(ie(t))return me(Se(e),t.toNumber(),r);if(re(t))return me(Se(e),t.toNumber(),r);if(x(t))return me(Se(e),t,r);if(null===t||t===P)return me(Se(e),0,r);if(j(t))return me(Se(e),Se(t),r)}else if(ne(e)){if(ne(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),me(e.toNumber(),t.toNumber(),r);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))throw new a(null,"CannotCompareDateAndTime",null);if(re(t))return me(e.toNumber(),t.toNumber(),r)}else if(j(e)){if(j(t))return me(e,t,r);if(x(t))return me(Se(e),Se(t),r);if(ne(t))return me(Se(e),t.toNumber(),r);if(ie(t))return me(Se(e),t.toNumber(),r);if(re(t))return me(Se(e),t.toNumber(),r);if(null===t||t===P)return me(Se(e),0,r);if(O(t))return me(Se(e),Se(t),r)}else if(re(e)){if(ne(t))return me(e.toNumber(),t.toNumber(),r);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))throw new a(null,"CannotCompareDateAndTime",null);if(re(t))return me(e.toNumber(),t.toNumber(),r)}else if(ie(e)){if(ne(t))throw new a(null,"CannotCompareDateAndTime",null);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))return me(e.toNumber(),t.toNumber(),r);if(re(t))throw new a(null,"CannotCompareDateAndTime",null)}return!!ye(e,t)&&("<="===r||">="===r)}function ye(e,t){if(e===t)return!0;if(null===e&&t===P||null===t&&e===P)return!0;if(ne(e)&&ne(t))return e.equals(t);if(ie(e)&&ie(t))return e.equals(t);if(re(e)&&re(t))return e.equals(t);if(e instanceof s)return e.equalityTest(t);if(e instanceof l)return e.equalityTest(t);if(e instanceof N&&t instanceof N){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(ae(e)&&ae(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function pe(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":j(i)||x(i)||O(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):U(i)?n+=JSON.stringify(r)+":"+be(i):ie(i)||re(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:te(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+be(i,null,t):ne(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ge(e,t){if(O(e))return e;if(null===e)return"";if(x(e))return le(e,t);if(j(e))return e.toString();if(ne(e))return fe(e,t);if(ie(e))return e.toFormat(t);if(re(e))return e.toFormat(t);if(e instanceof h)return JSON.stringify(e.toJSON());if(C(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=Ne(e[n]);return"["+t.join(",")+"]"}if(e instanceof u){const t=[];for(let n=0;n<e.length();n++)t[n]=Ne(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():L(e)?"object, Function":e===P?"":G(e)?"object, Module":""}function he(e){const t=[];if(e instanceof u){for(let n=0;n<e.length();n++)t[n]=Se(e.get(n));return t}if(!C(e))return null;for(let n=0;n<e.length;n++)t[n]=Se(e[n]);return t}function be(e,t,n=!1){if(O(e))return e;if(null===e)return"";if(x(e))return le(e,t);if(j(e))return e.toString();if(ne(e))return fe(e,t);if(ie(e))return e.toFormat(t);if(re(e))return e.toFormat(t);if(e instanceof h)return e instanceof g?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+we(e.spatialReference)+"}":we(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if(C(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=Ne(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u){const t=[];for(let r=0;r<e.length();r++)t[r]=Ne(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):L(e)?"object, Function":e===P?"":G(e)?"object, Module":""}function Ne(e,t=!1){if(null===e)return"null";if(j(e)||O(e))return JSON.stringify(e);if(x(e))return e.toString();if(e instanceof h)return be(e,null,t);if(e instanceof u)return be(e,null,t);if(Array.isArray(e))return be(e,null,t);if(ne(e))return t?JSON.stringify(e.getTime()):JSON.stringify(fe(e,""));if(ie(e))return JSON.stringify(e.toString());if(re(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===P)return"null";return"null"}function Se(e,t){return x(e)?e:null===e||""===e?0:ne(e)||re(e)||ie(e)?NaN:j(e)?e?1:0:C(e)||""===e||void 0===e?NaN:void 0!==t&&O(e)?(t=Y(t,"‰",""),t=Y(t,"¤",""),d(e,{pattern:t})):e===P?0:Number(e)}function Ze(e,t){if(ne(e))return e;if(O(e)){const r=Te(e,t);if(r)return n.dateTimeToArcadeDate(r)}return null}function Te(e,t){const n=/ (\d\d)/,i=r(t);let a=M.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=M.fromISO(e,{zone:t}),a.isValid)?a:null}function Ae(e){return j(e)?e:O(e)?"true"===(e=e.toLowerCase()):!!x(e)&&(0!==e&&!isNaN(e))}function ke(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),k(n)}function De(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function je(e){if(null===e)return null;if(e instanceof N)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof Z){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof b?0===e.points.length?null:e:e instanceof g?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function xe(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(ne(t))n=t.toNumber();else if(re(t))n=t.toString();else if(ie(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ge(t);else{if(null==t)return null;if(""===t)return t;n=Se(t)}for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.code===n&&(r=t)}return null===r?ge(t):r.name}function Oe(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ge(t);for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.name===r&&(n=t)}return null===n?t:n.code}function Ce(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,o,u=null;for(let a=0;a<t.fields.length;a++){const n=t.fields[a];n.name.toLowerCase()===e.toString().toLowerCase()&&(u=n)}if(null===u)throw new a(null,"FieldNotFound",null,{key:e});let s=t.typeIdField,l="id",f=t.types;if(t.subtypeField&&(s=t.subtypeField,l="code",f=t.subtypes??[]),null===r&&n&&s)r=n.hasField(s)?n.field(s):null;else if(s&&null!==r){let e=!1;for(const t of f||[])if(r===t[l]){e=!0;break}if(!e)for(const t of f||[])if(r===t.name){r=t[l],e=!0;break}e||(r=null,n&&s&&(r=n.hasField(s)?n.field(s):null))}return null!=r&&f.some(e=>e[l]===r&&(i=e.domains?.[u.name],i&&"inherited"===i.type&&(i=Fe(u.name,t),o=!0),!0)),o||i||(i=Fe(e,t)),{field:u,domain:i}}function Fe(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function we(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},a={key:n,value:e[n]};return i(r,a)}});var i;const a=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(a.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const u=a.push(t)-1,s=Object.keys(t).sort(r?.(t));for(o="",i=0;i<s.length;i++){const n=s[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return a.splice(u,1),"{"+o+"}"}(e)}function Je(e){if(null===e)return null;const t=[];for(const n of e)H(n)?t.push(n.geometry()):t.push(n);return t}function Me(e,t){if(!(t instanceof N))throw new a(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Re(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],o=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(o=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,o=e.get(0).spatialReference);else{if(!te(e))throw new a(null,"InvalidParameter",null);for(const t of e.toArray())Me(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}if(0===i.length)return null;return A(i)||(i=i.slice().reverse()),new S({rings:[i],spatialReference:o,hasZ:n,hasM:r})}return e}function ve(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(te(e)){for(const t of e.toArray())Me(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new Z({paths:[i],spatialReference:a,hasZ:n,hasM:r})}return e}function Pe(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(te(e)){for(const t of e.toArray())Me(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new b({points:i,spatialReference:a,hasZ:n,hasM:r})}return e}function _e(e,t=!0){if(null==e)return[];if(C(e)){const n=[];for(const r of e){const e=ge(r);(t||""!==e)&&n.push(e)}return n}if(te(e)){const n=[];for(let r=0;r<e.length();r++){const i=ge(e.get(r));(t||""!==i)&&n.push(i)}return n}if(V(e)){const n=ge(e);if(t||""!==n)return[n]}return[]}let Ie=0;function Ye(e){return Ie++,Ie%100==0?(Ie=0,new Promise(t=>{setTimeout(()=>{t(e)},0)})):e}function Le(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Ge(e,t=null){return null==e?null:j(e)||x(e)||O(e)?e:e instanceof h?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u?e.toArray().map(e=>Ge(e,t)):Array.isArray(e)?e.map(e=>Ge(e,t)):F(e)?e:ne(e)?e.toJSDate():ie(e)?e.toString():re(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ve(e,t,n,r,i){const a=await ze(e,t,n);i[r]=a}async function ze(e,t=null,n=null){if(e instanceof u&&(e=e.toArray()),null==e)return null;if(V(e)||e instanceof h||F(e)||ne(e))return Ge(e,n);if(Array.isArray(e)){const r=[],i=[];for(const a of e)null===a||V(a)||a instanceof h||F(a)||ne(a)?i.push(Ge(a,n)):(i.push(null),r.push(Ve(a,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Ee(e){return qe(e)?e.parent:e}function qe(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ue(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass}function He(e,t,n){const r=Ee(e.fullSchema());if(null===r)return null;if(!r.fields)return null;return Ce(t,r,e,n)}function We(e){const t=Ee(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function $e(e,t,n,r){const i=Ee(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const a=Ce(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(o){return null}return xe(a,n)}function Be(e,t,n,r){const i=Ee(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(a){return null}return n}return Oe(Ce(t,i,e,r),n)}function Ke(e){return e?.timeZone??"system"}function Qe(e){const t=Ee(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const r of t.fields)n.push(f(r));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===c[t.geometryType]?"":c[t.geometryType],fields:n}}function Xe(r,i){const a=n.systemTimeZoneCanonicalName;return"system"===r&&(r=a),{version:et,engineVersion:t,timeZone:r,userTimeZone:a,spatialReference:i instanceof T?i.toJSON():i,application:e.applicationName??"",engine:"web",locale:D()}}const et="1.32",tt=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:v,ReturnResult:R,absRound:se,arcadeVersion:et,autoCastArrayOfPointsToMultiPoint:Pe,autoCastArrayOfPointsToPolygon:Re,autoCastArrayOfPointsToPolyline:ve,autoCastFeatureToGeometry:Je,binaryOperator:Le,breakResult:_,castAsJson:Ge,castAsJsonAsync:ze,castRecordToText:pe,continueResult:I,defaultExecutingContext:Xe,defaultTimeZone:Ke,defaultUndefined:z,equalityTest:ye,featureDomainCodeLookup:Be,featureDomainValueLookup:$e,featureFullDomain:He,featureSchema:Qe,featureSubtypes:We,fixNullGeometry:je,fixSpatialReference:De,formatDate:fe,formatNumber:le,getDomain:Ce,getDomainCode:Oe,getDomainValue:xe,getType:E,greaterThanLessThan:de,isArray:C,isBoolean:j,isDate:ne,isDateOnly:re,isDictionary:K,isDictionaryLike:Q,isEmpty:ue,isFeature:H,isFeatureSet:B,isFeatureSetCollection:X,isFunctionParameter:L,isGeometry:U,isGraphic:w,isImmutableArray:te,isInteger:J,isJsDate:F,isKnowledgeGraph:ee,isModule:G,isNumber:x,isObject:ae,isPixel:$,isSimpleType:V,isString:O,isSubtypeGrouplayer:Ue,isSubtypeSublayer:qe,isTime:ie,isVoid:q,isVoxel:W,multiReplace:Y,parseGeometryFromJson:ke,pcCheck:oe,stableStringify:we,standardiseDateFormat:ce,tick:Ye,toBoolean:Ae,toDate:Ze,toNumber:Se,toNumberArray:he,toString:ge,toStringArray:_e,toStringExplicit:be,voidOperation:P},Symbol.toStringTag,{value:"Module"}));export{Xe as $,I as A,oe as B,Je as C,De as D,Re as E,ve as F,Pe as G,Ae as H,v as I,z as J,Ke as K,ue as L,_e as M,E as N,Ze as O,ce as P,se as Q,R,He as S,Be as T,$e as U,Qe as V,We as W,je as X,W as Y,$ as Z,Y as _,Ge as a,he as a0,qe as a1,Ye as a2,Ce as a3,xe as a4,Oe as a5,G as a6,ae as a7,le as a8,fe as a9,ke as aa,we as ab,Ue as ac,et as ad,ze as b,pe as c,V as d,ne as e,re as f,ie as g,U as h,L as i,te as j,H as k,X as l,B as m,K as n,ee as o,tt as p,q,Q as r,Se as s,be as t,ge as u,P as v,de as w,ye as x,Le as y,_ as z};
5
+ import e from"../config.js";import{version as t}from"../kernel.js";import{ArcadeDate as n,createDateTimeZone as r}from"../arcade/ArcadeDate.js";import{ArcadeModule as i}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as a}from"../arcade/executionError.js";import{ArcadeFunction as o}from"../arcade/FunctionWrapper.js";import u from"../arcade/ImmutableArray.js";import s from"../arcade/ImmutablePathArray.js";import l from"../arcade/ImmutablePointArray.js";import{esriFieldToJson as f,layerGeometryEsriRestConstants as c}from"../arcade/featureset/support/shared.js";import{format as m,parse as d}from"../core/number.js";import{DateOnly as y}from"../core/sql/DateOnly.js";import{TimeOnly as p}from"../core/sql/TimeOnly.js";import g from"../geometry/Extent.js";import h from"../geometry/Geometry.js";import b from"../geometry/Multipoint.js";import N from"../geometry/Point.js";import S from"../geometry/Polygon.js";import Z from"../geometry/Polyline.js";import T from"../geometry/SpatialReference.js";import{isClockwise as A}from"../geometry/support/coordsUtils.js";import{fromJSON as k}from"../geometry/support/jsonUtils.js";import{getLocale as D}from"../intl/locale.js";import{isBoolean as j,isNumber as x,isString as O,isArray as C,isDate as F,isGraphic as w,isInteger as J}from"../support/guards.js";import{DateTime as M}from"luxon";class R{constructor(e){this.value=e}}class v{constructor(e){this.value=e}}const P={type:"VOID"},_=Symbol("BREAK"),I=Symbol("CONTINUE");function Y(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function L(e){return e instanceof o}function G(e){return e instanceof i}function V(e){return!!O(e)||(!!x(e)||(!!ne(e)||(!!re(e)||(!!ie(e)||(!!j(e)||(null===e||e===P))))))}function z(e,t){return void 0===e?t:e}function E(e){return null==e?"":C(e)||te(e)?"Array":ne(e)?"Date":ie(e)?"Time":re(e)?"DateOnly":O(e)?"String":j(e)?"Boolean":x(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":ee(e)?"KnowledgeGraph":e instanceof i?"Module":H(e)?"Feature":e instanceof N?"Point":e instanceof S?"Polygon":e instanceof Z?"Polyline":e instanceof b?"Multipoint":e instanceof g?"Extent":L(e)?"Function":B(e)?"FeatureSet":X(e)?"FeatureSetCollection":W(e)?"Voxel":$(e)?"Pixel":e===P?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function q(e){return e===P}function U(e){return e instanceof h}function H(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function W(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function $(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function B(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function Q(e){return K(e)||H(e)||W(e)||$(e)}function X(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function ee(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function te(e){return e instanceof u}function ne(e){return e instanceof n}function re(e){return e instanceof y}function ie(e){return e instanceof p}function ae(e){return null!=e&&"object"==typeof e}function oe(e,t,n,r,i){if(e.length<t||e.length>n)throw new a(r,"WrongNumberOfParameters",i)}function ue(e){return null==e||q(e)||""===e}function se(e){return e<0?-Math.round(-e):Math.round(e)}function le(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=Y(t,"‰",""),t=Y(t,"¤",""),m(e,{pattern:t}))}function fe(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ce(t),{locale:D(),numberingSystem:"latn"})}function ce(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function me(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function de(e,t,r){if(null===e){if(null===t||t===P)return me(null,null,r);if(x(t))return me(0,t,r);if(O(t))return me(0,Se(t),r);if(j(t))return me(0,Se(t),r);if(ne(t))return me(0,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}if(e===P){if(null===t||t===P)return me(null,null,r);if(x(t))return me(0,t,r);if(O(t))return me(0,Se(t),r);if(j(t))return me(0,Se(t),r);if(ne(t))return me(0,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}else if(x(e)){if(x(t))return me(e,t,r);if(j(t))return me(e,Se(t),r);if(null===t||t===P)return me(e,0,r);if(O(t))return me(e,Se(t),r);if(ne(t))return me(e,t.toNumber(),r);if(ie(t))return me(e,t.toNumber(),r);if(re(t))return me(e,t.toNumber(),r)}else if(O(e)){if(O(t))return me(ge(e),ge(t),r);if(ne(t))return me(Se(e),t.toNumber(),r);if(ie(t))return me(Se(e),t.toNumber(),r);if(re(t))return me(Se(e),t.toNumber(),r);if(x(t))return me(Se(e),t,r);if(null===t||t===P)return me(Se(e),0,r);if(j(t))return me(Se(e),Se(t),r)}else if(ne(e)){if(ne(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),me(e.toNumber(),t.toNumber(),r);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))throw new a(null,"CannotCompareDateAndTime",null);if(re(t))return me(e.toNumber(),t.toNumber(),r)}else if(j(e)){if(j(t))return me(e,t,r);if(x(t))return me(Se(e),Se(t),r);if(ne(t))return me(Se(e),t.toNumber(),r);if(ie(t))return me(Se(e),t.toNumber(),r);if(re(t))return me(Se(e),t.toNumber(),r);if(null===t||t===P)return me(Se(e),0,r);if(O(t))return me(Se(e),Se(t),r)}else if(re(e)){if(ne(t))return me(e.toNumber(),t.toNumber(),r);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))throw new a(null,"CannotCompareDateAndTime",null);if(re(t))return me(e.toNumber(),t.toNumber(),r)}else if(ie(e)){if(ne(t))throw new a(null,"CannotCompareDateAndTime",null);if(null===t||t===P)return me(e.toNumber(),0,r);if(x(t))return me(e.toNumber(),t,r);if(j(t))return me(e.toNumber(),Se(t),r);if(O(t))return me(e.toNumber(),Se(t),r);if(ie(t))return me(e.toNumber(),t.toNumber(),r);if(re(t))throw new a(null,"CannotCompareDateAndTime",null)}return!!ye(e,t)&&("<="===r||">="===r)}function ye(e,t){if(e===t)return!0;if(null===e&&t===P||null===t&&e===P)return!0;if(ne(e)&&ne(t))return e.equals(t);if(ie(e)&&ie(t))return e.equals(t);if(re(e)&&re(t))return e.equals(t);if(e instanceof s)return e.equalityTest(t);if(e instanceof l)return e.equalityTest(t);if(e instanceof N&&t instanceof N){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(ae(e)&&ae(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function pe(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":j(i)||x(i)||O(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):U(i)?n+=JSON.stringify(r)+":"+be(i):ie(i)||re(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:te(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+be(i,null,t):ne(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ge(e,t){if(O(e))return e;if(null===e)return"";if(x(e))return le(e,t);if(j(e))return e.toString();if(ne(e))return fe(e,t);if(ie(e))return e.toFormat(t);if(re(e))return e.toFormat(t);if(e instanceof h)return JSON.stringify(e.toJSON());if(C(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=Ne(e[n]);return"["+t.join(",")+"]"}if(e instanceof u){const t=[];for(let n=0;n<e.length();n++)t[n]=Ne(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():L(e)?"object, Function":e===P?"":G(e)?"object, Module":""}function he(e){const t=[];if(e instanceof u){for(let n=0;n<e.length();n++)t[n]=Se(e.get(n));return t}if(!C(e))return null;for(let n=0;n<e.length;n++)t[n]=Se(e[n]);return t}function be(e,t,n=!1){if(O(e))return e;if(null===e)return"";if(x(e))return le(e,t);if(j(e))return e.toString();if(ne(e))return fe(e,t);if(ie(e))return e.toFormat(t);if(re(e))return e.toFormat(t);if(e instanceof h)return e instanceof g?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+we(e.spatialReference)+"}":we(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if(C(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=Ne(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u){const t=[];for(let r=0;r<e.length();r++)t[r]=Ne(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):L(e)?"object, Function":e===P?"":G(e)?"object, Module":""}function Ne(e,t=!1){if(null===e)return"null";if(j(e)||O(e))return JSON.stringify(e);if(x(e))return e.toString();if(e instanceof h)return be(e,null,t);if(e instanceof u)return be(e,null,t);if(Array.isArray(e))return be(e,null,t);if(ne(e))return t?JSON.stringify(e.getTime()):JSON.stringify(fe(e,""));if(ie(e))return JSON.stringify(e.toString());if(re(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===P)return"null";return"null"}function Se(e,t){return x(e)?e:null===e||""===e?0:ne(e)||re(e)||ie(e)?NaN:j(e)?e?1:0:C(e)||""===e||void 0===e?NaN:void 0!==t&&O(e)?(t=Y(t,"‰",""),t=Y(t,"¤",""),d(e,{pattern:t})):e===P?0:Number(e)}function Ze(e,t){if(ne(e))return e;if(O(e)){const r=Te(e,t);if(r)return n.dateTimeToArcadeDate(r)}return null}function Te(e,t){const n=/ (\d\d)/,i=r(t);let a=M.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=M.fromISO(e,{zone:t}),a.isValid)?a:null}function Ae(e){return j(e)?e:O(e)?"true"===(e=e.toLowerCase()):!!x(e)&&(0!==e&&!isNaN(e))}function ke(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),k(n)}function De(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function je(e){if(null===e)return null;if(e instanceof N)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof Z){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof b?0===e.points.length?null:e:e instanceof g?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function xe(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(ne(t))n=t.toNumber();else if(re(t))n=t.toString();else if(ie(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ge(t);else{if(null==t)return null;if(""===t)return t;n=Se(t)}for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.code===n&&(r=t)}return null===r?ge(t):r.name}function Oe(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ge(t);for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.name===r&&(n=t)}return null===n?t:n.code}function Ce(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,o,u=null;for(let a=0;a<t.fields.length;a++){const n=t.fields[a];n.name.toLowerCase()===e.toString().toLowerCase()&&(u=n)}if(null===u)throw new a(null,"FieldNotFound",null,{key:e});let s=t.typeIdField,l="id",f=t.types;if(t.subtypeField&&(s=t.subtypeField,l="code",f=t.subtypes??[]),null===r&&n&&s)r=n.hasField(s)?n.field(s):null;else if(s&&null!==r){let e=!1;for(const t of f||[])if(r===t[l]){e=!0;break}if(!e)for(const t of f||[])if(r===t.name){r=t[l],e=!0;break}e||(r=null,n&&s&&(r=n.hasField(s)?n.field(s):null))}return null!=r&&f.some(e=>e[l]===r&&(i=e.domains?.[u.name],i&&"inherited"===i.type&&(i=Fe(u.name,t),o=!0),!0)),o||i||(i=Fe(e,t)),{field:u,domain:i}}function Fe(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function we(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},a={key:n,value:e[n]};return i(r,a)}});var i;const a=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(a.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const u=a.push(t)-1,s=Object.keys(t).sort(r?.(t));for(o="",i=0;i<s.length;i++){const n=s[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return a.splice(u,1),"{"+o+"}"}(e)}function Je(e){if(null===e)return null;const t=[];for(const n of e)H(n)?t.push(n.geometry()):t.push(n);return t}function Me(e,t){if(!(t instanceof N))throw new a(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Re(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],o=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(o=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,o=e.get(0).spatialReference);else{if(!te(e))throw new a(null,"InvalidParameter",null);for(const t of e.toArray())Me(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}if(0===i.length)return null;return A(i)||(i=i.slice().reverse()),new S({rings:[i],spatialReference:o,hasZ:n,hasM:r})}return e}function ve(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(te(e)){for(const t of e.toArray())Me(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new Z({paths:[i],spatialReference:a,hasZ:n,hasM:r})}return e}function Pe(e,t){if(C(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(C(e)){for(const t of e)Me(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof l)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(te(e)){for(const t of e.toArray())Me(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new b({points:i,spatialReference:a,hasZ:n,hasM:r})}return e}function _e(e,t=!0){if(null==e)return[];if(C(e)){const n=[];for(const r of e){const e=ge(r);(t||""!==e)&&n.push(e)}return n}if(te(e)){const n=[];for(let r=0;r<e.length();r++){const i=ge(e.get(r));(t||""!==i)&&n.push(i)}return n}if(V(e)){const n=ge(e);if(t||""!==n)return[n]}return[]}let Ie=0;function Ye(e){return Ie++,Ie%100==0?(Ie=0,new Promise(t=>{setTimeout(()=>{t(e)},0)})):e}function Le(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Ge(e,t=null){return null==e?null:j(e)||x(e)||O(e)?e:e instanceof h?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u?e.toArray().map(e=>Ge(e,t)):Array.isArray(e)?e.map(e=>Ge(e,t)):F(e)?e:ne(e)?e.toJSDate():ie(e)?e.toString():re(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ve(e,t,n,r,i){const a=await ze(e,t,n);i[r]=a}async function ze(e,t=null,n=null){if(e instanceof u&&(e=e.toArray()),null==e)return null;if(V(e)||e instanceof h||F(e)||ne(e))return Ge(e,n);if(Array.isArray(e)){const r=[],i=[];for(const a of e)null===a||V(a)||a instanceof h||F(a)||ne(a)?i.push(Ge(a,n)):(i.push(null),r.push(Ve(a,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Ee(e){return qe(e)?e.parent:e}function qe(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ue(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass}function He(e,t,n){const r=Ee(e.fullSchema());if(null===r)return null;if(!r.fields)return null;return Ce(t,r,e,n)}function We(e){const t=Ee(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function $e(e,t,n,r){const i=Ee(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const a=Ce(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(o){return null}return xe(a,n)}function Be(e,t,n,r){const i=Ee(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(a){return null}return n}return Oe(Ce(t,i,e,r),n)}function Ke(e){return e?.timeZone??"system"}function Qe(e){const t=Ee(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const r of t.fields)n.push(f(r));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===c[t.geometryType]?"":c[t.geometryType],fields:n}}function Xe(r,i){const a=n.systemTimeZoneCanonicalName;return"system"===r&&(r=a),{version:et,engineVersion:t,timeZone:r,userTimeZone:a,spatialReference:i instanceof T?i.toJSON():i,application:e.applicationName??"",engine:"web",locale:D()}}const et="1.34",tt=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:v,ReturnResult:R,absRound:se,arcadeVersion:et,autoCastArrayOfPointsToMultiPoint:Pe,autoCastArrayOfPointsToPolygon:Re,autoCastArrayOfPointsToPolyline:ve,autoCastFeatureToGeometry:Je,binaryOperator:Le,breakResult:_,castAsJson:Ge,castAsJsonAsync:ze,castRecordToText:pe,continueResult:I,defaultExecutingContext:Xe,defaultTimeZone:Ke,defaultUndefined:z,equalityTest:ye,featureDomainCodeLookup:Be,featureDomainValueLookup:$e,featureFullDomain:He,featureSchema:Qe,featureSubtypes:We,fixNullGeometry:je,fixSpatialReference:De,formatDate:fe,formatNumber:le,getDomain:Ce,getDomainCode:Oe,getDomainValue:xe,getType:E,greaterThanLessThan:de,isArray:C,isBoolean:j,isDate:ne,isDateOnly:re,isDictionary:K,isDictionaryLike:Q,isEmpty:ue,isFeature:H,isFeatureSet:B,isFeatureSetCollection:X,isFunctionParameter:L,isGeometry:U,isGraphic:w,isImmutableArray:te,isInteger:J,isJsDate:F,isKnowledgeGraph:ee,isModule:G,isNumber:x,isObject:ae,isPixel:$,isSimpleType:V,isString:O,isSubtypeGrouplayer:Ue,isSubtypeSublayer:qe,isTime:ie,isVoid:q,isVoxel:W,multiReplace:Y,parseGeometryFromJson:ke,pcCheck:oe,stableStringify:we,standardiseDateFormat:ce,tick:Ye,toBoolean:Ae,toDate:Ze,toNumber:Se,toNumberArray:he,toString:ge,toStringArray:_e,toStringExplicit:be,voidOperation:P},Symbol.toStringTag,{value:"Module"}));export{Xe as $,I as A,oe as B,Je as C,De as D,Re as E,ve as F,Pe as G,Ae as H,v as I,z as J,Ke as K,ue as L,_e as M,E as N,Ze as O,ce as P,se as Q,R,He as S,Be as T,$e as U,Qe as V,We as W,je as X,W as Y,$ as Z,Y as _,Ge as a,he as a0,qe as a1,Ye as a2,Ce as a3,xe as a4,Oe as a5,G as a6,ae as a7,le as a8,fe as a9,ke as aa,we as ab,Ue as ac,et as ad,ze as b,pe as c,V as d,ne as e,re as f,ie as g,U as h,L as i,te as j,H as k,X as l,B as m,K as n,ee as o,tt as p,q,Q as r,Se as s,be as t,ge as u,P as v,de as w,ye as x,Le as y,_ as z};
package/config.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.91";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
5
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.93";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import o from"./Collection.js";import{sync as e}from"./reactiveUtils.js";import{property as s}from"./accessorSupport/decorators/property.js";import{subclass as r}from"./accessorSupport/decorators/subclass.js";import{autorun as i}from"./accessorSupport/trackingUtils.js";let l=class extends o{constructor(t){super(t),this.getCollections=null}initialize(){this.addHandles(i(()=>this._refresh(),e))}destroy(){this.getCollections=null}_refresh(){const t=null!=this.getCollections?this.getCollections():null;if(null==t)return void this.removeAll();let o=0;for(const e of t)null!=e&&(o=this._processCollection(o,e));this.splice(o)}_createNewInstance(t){return new o(t)}_processCollection(t,o){if(!o)return t;const e=this.itemFilterFunction??(t=>!!t);for(const s of o)if(s){if(e(s)){const o=this.indexOf(s,t);o>=0?o!==t&&this.reorder(s,t):this.add(s,t),++t}if(this.getChildrenFunction){const o=this.getChildrenFunction(s);if(Array.isArray(o))for(const e of o)t=this._processCollection(t,e);else t=this._processCollection(t,o)}}return t}};t([s()],l.prototype,"getCollections",void 0),t([s()],l.prototype,"getChildrenFunction",void 0),t([s()],l.prototype,"itemFilterFunction",void 0),l=t([r("esri.core.CollectionFlattener")],l);export{l as default};
5
+ import{__decorate as t}from"tslib";import o from"./Collection.js";import{sync as e}from"./reactiveUtils.js";import{property as r}from"./accessorSupport/decorators/property.js";import{subclass as s}from"./accessorSupport/decorators/subclass.js";import{autorun as i}from"./accessorSupport/trackingUtils.js";let l=class extends o{constructor(t){super(t),this.getCollections=null}initialize(){this.addHandles(i(()=>this._refresh(),e))}destroy(){this.getCollections=null}_refresh(){const t=this.getCollections?.();if(null==t)return void this.removeAll();let o=0;for(const e of t)null!=e&&(o=this._processCollection(o,e));this.splice(o)}_createNewInstance(t){return new o(t)}_processCollection(t,o){if(!o)return t;const e=this.itemFilterFunction??(t=>!!t);for(const r of o)if(r){if(e(r)){const o=this.indexOf(r,t);o>=0?o!==t&&this.reorder(r,t):this.add(r,t),++t}if(this.getChildrenFunction){const o=this.getChildrenFunction(r);if(Array.isArray(o))for(const e of o)t=this._processCollection(t,e);else t=this._processCollection(t,o)}}return t}};t([r()],l.prototype,"getCollections",void 0),t([r()],l.prototype,"getChildrenFunction",void 0),t([r()],l.prototype,"itemFilterFunction",void 0),l=t([s("esri.core.CollectionFlattener")],l);export{l as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../../core/Error.js";import{isLoadedSharedTemplate as t,isSharedFeatureTemplate as o,isSharedPresetTemplate as s}from"../../../templateUtils.js";import{createFeatureServiceEdit as r}from"./createFeatureServiceEdit.js";import{maxDigitizingDisplayEdits as i}from"./executorUtils.js";import n from"../../../../geometry/Multipoint.js";import a from"../../../../geometry/Point.js";import l from"../../../../geometry/Polygon.js";import p from"../../../../geometry/Polyline.js";import{execute as h}from"../../../../geometry/operators/affineTransformOperator.js";import f from"../../../../geometry/operators/support/Transformation.js";function m({edits:n,geometry:a,mode:l,relationships:p,rotation:c,tag:u="",template:y}){const{definition:d}=y,Z=a.x-d.origin.x,M=a.y-d.origin.y,j=d.origin.hasZ&&a.hasZ?a.z-d.origin.z:0,R=g(d.origin.clone(),Z,M,j),w=(new f).rotate(c,R.x,R.y);for(const f of d.parts){if(n.length>i&&"digitizing"===l)break;const c=f.template;if(!t(c))throw new e("shared-template:template-not-loaded","A template part's template must be loaded before use");if(o(c)){let e=g(f.geometry,Z,M,j);w.isIdentity||(e=h(e,w)),r({edits:n,geometry:e,relationships:p,tag:u,template:c})}else if(s(c)){const e=[];if(m({edits:w.isIdentity?e:n,geometry:a,mode:l,relationships:p,rotation:0,tag:u,template:c}),!w.isIdentity)for(const t of e){const{geometry:e}=t.graphic;e&&"mesh"!==e.type&&(t.graphic.geometry=h(e,w),n.push(t))}}}return R}function g(e,t,o,s=0){if(!e)return null;if("point"===e.type)return new a({spatialReference:e.spatialReference,x:e.x+t,y:e.y+o,...e.hasZ?{z:e.z+s}:{},...e.hasM?{m:e.m}:{}});if("multipoint"===e.type){const r=[];if(e.hasZ&&e.hasM)for(let i=0;i<e.points.length;i++){const n=e.points[i];r.push([n[0]+t,n[1]+o,n[2]+s,n[3]])}else if(e.hasZ)for(let i=0;i<e.points.length;i++){const n=e.points[i];r.push([n[0]+t,n[1]+o,n[2]+s])}else if(e.hasM)for(let s=0;s<e.points.length;s++){const i=e.points[s];r.push([i[0]+t,i[1]+o,i[2]])}else for(let s=0;s<e.points.length;s++){const i=e.points[s];r.push([i[0]+t,i[1]+o])}return new n({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM,points:r})}if("polygon"===e.type){const r=new l({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let i=0;i<e.rings.length;i++){const n=e.rings[i],a=[];if(e.hasZ&&e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s,n[e][3]]);else if(e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]]);else if(e.hasZ)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s]);else for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o]);r.addRing(a)}return r}if("polyline"===e.type){const r=new p({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let i=0;i<e.paths.length;i++){const n=e.paths[i],a=[];if(e.hasZ&&e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s,n[e][3]]);else if(e.hasZ)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s]);else if(e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]]);else for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o]);r.addPath(a)}return r}return e.clone()}export{m as createPresetServiceEdit,g as translate};
5
+ import e from"../../../../core/Error.js";import{isLoadedSharedTemplate as t,isSharedFeatureTemplate as o,isSharedPresetTemplate as s}from"../../../templateUtils.js";import{createFeatureServiceEdit as r}from"./createFeatureServiceEdit.js";import{maxDigitizingDisplayEdits as i}from"./executorUtils.js";import n from"../../../../geometry/Multipoint.js";import a from"../../../../geometry/Point.js";import l from"../../../../geometry/Polygon.js";import p from"../../../../geometry/Polyline.js";import{execute as h}from"../../../../geometry/operators/affineTransformOperator.js";import f from"../../../../geometry/operators/support/Transformation.js";function m({edits:n,geometry:a,mode:l,relationships:p,rotation:c,tag:u="",template:y}){const{definition:d}=y,Z=a.x-d.origin.x,M=a.y-d.origin.y,j=d.origin.hasZ&&a.hasZ?a.z-d.origin.z:0,R=g(d.origin.clone(),Z,M,j),w=(new f).rotate(c,R.x,R.y);for(const f of d.parts){if(n.length>i&&"digitizing"===l)break;const c=f.template;if(!t(c))throw new e("shared-template:template-not-loaded","A template part's template must be loaded before use");if(o(c)){let e=g(f.geometry,Z,M,j);w.isIdentity()||(e=h(e,w)),r({edits:n,geometry:e,relationships:p,tag:u,template:c})}else if(s(c)){const e=[];if(m({edits:w.isIdentity()?e:n,geometry:a,mode:l,relationships:p,rotation:0,tag:u,template:c}),!w.isIdentity())for(const t of e){const{geometry:e}=t.graphic;e&&"mesh"!==e.type&&(t.graphic.geometry=h(e,w),n.push(t))}}}return R}function g(e,t,o,s=0){if(!e)return null;if("point"===e.type)return new a({spatialReference:e.spatialReference,x:e.x+t,y:e.y+o,...e.hasZ?{z:e.z+s}:{},...e.hasM?{m:e.m}:{}});if("multipoint"===e.type){const r=[];if(e.hasZ&&e.hasM)for(let i=0;i<e.points.length;i++){const n=e.points[i];r.push([n[0]+t,n[1]+o,n[2]+s,n[3]])}else if(e.hasZ)for(let i=0;i<e.points.length;i++){const n=e.points[i];r.push([n[0]+t,n[1]+o,n[2]+s])}else if(e.hasM)for(let s=0;s<e.points.length;s++){const i=e.points[s];r.push([i[0]+t,i[1]+o,i[2]])}else for(let s=0;s<e.points.length;s++){const i=e.points[s];r.push([i[0]+t,i[1]+o])}return new n({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM,points:r})}if("polygon"===e.type){const r=new l({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let i=0;i<e.rings.length;i++){const n=e.rings[i],a=[];if(e.hasZ&&e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s,n[e][3]]);else if(e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]]);else if(e.hasZ)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s]);else for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o]);r.addRing(a)}return r}if("polyline"===e.type){const r=new p({spatialReference:e.spatialReference,hasZ:e.hasZ,hasM:e.hasM});for(let i=0;i<e.paths.length;i++){const n=e.paths[i],a=[];if(e.hasZ&&e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s,n[e][3]]);else if(e.hasZ)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]+s]);else if(e.hasM)for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o,n[e][2]]);else for(let e=0;e<n.length;e++)a.push([n[e][0]+t,n[e][1]+o]);r.addPath(a)}return r}return e.clone()}export{m as createPresetServiceEdit,g as translate};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../../core/arrayUtils.js";import{executeMany as o}from"../gx/operatorGraphicBuffer.js";import{fromGeometries as t,toGeometry as e}from"../support/jsonConverter.js";const n={round:0,miter:1,bevel:2},i={round:0,butt:1,square:2};function a(a,u,s={}){const{joins:m="round",caps:p="round",miterLimit:c=NaN,maxDeviation:l=NaN,maxVerticesInFullCircle:f=96,union:j=!1}=s,[x,d]=t(a);return o(x,null,u,n[m],i[p],c,l,f,j).map(r=>e(r,d)).filter(r)}export{a as executeMany};
5
+ import{isSome as r}from"../../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../../core/unitUtils.js";import{executeMany as o}from"../gx/operatorGraphicBuffer.js";import{fromGeometries as e,getSpatialReference as i,toGeometry as n}from"../support/jsonConverter.js";const m={round:0,miter:1,bevel:2},s={round:0,butt:1,square:2};function a(a,u,p,c,f={}){let{miterLimit:l=10,maxDeviation:j=NaN,maxVerticesInFullCircle:x=96,union:v=!1,unit:b}=f;const[d,y]=e(a);if(b){const r=i(a);r&&(u=u.map(o=>t(o,b,r)),j&&(j=t(j,b,r)))}return o(d,y,u,m[p],s[c],l,j,x,v).map(r=>n(r,y)).filter(r)}export{a as executeMany};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import{clamp as n}from"../../core/mathUtils.js";import t from"../Extent.js";function r(n){return n}function i(n=S){return r([n[0],n[1],n[2],n[3]])}function u(n){return r([n[0],n[1],n[2],n[3]])}function a(n,t){return n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]),n}function e(n,t,r,u,a=i()){return a[0]=n,a[1]=t,a[2]=r,a[3]=u,a}function o(n,t=i()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.xmax,t[3]=n.ymax,t}function c(n,r,i=new t){return i.xmin=n[0],i.ymin=n[1],i.xmax=n[2],i.ymax=n[3],i.spatialReference=r,i}function f(n,t){t[0]<n[0]&&(n[0]=t[0]),t[0]>n[2]&&(n[2]=t[0]),t[1]<n[1]&&(n[1]=t[1]),t[1]>n[3]&&(n[3]=t[1])}function m(n,t){t<n[0]&&(n[0]=t),t>n[2]&&(n[2]=t)}function h(n,t){t<n[1]&&(n[1]=t),t>n[3]&&(n[3]=t)}function M(n,t,r){if(null!=t)if("length"in t)L(t)?(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[0]),r[3]=Math.max(n[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(n[0],t.xmin),r[1]=Math.min(n[1],t.ymin),r[2]=Math.max(n[2],t.xmax),r[3]=Math.max(n[3],t.ymax);break;case"point":r[0]=Math.min(n[0],t.x),r[1]=Math.min(n[1],t.y),r[2]=Math.max(n[2],t.x),r[3]=Math.max(n[3],t.y)}else a(r,n)}function x(n,t,r=n){const i=t.length;let u=n[0],a=n[1],e=n[2],o=n[3];for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),e=Math.max(e,n[0]),o=Math.max(o,n[1])}return r[0]=u,r[1]=a,r[2]=e,r[3]=o,r}function s(n){for(let t=0;t<4;t++)if(!isFinite(n[t]))return!1;return!0}function l(n){return null==n||n[0]>=n[2]?0:n[2]-n[0]}function y(n){return null==n||n[1]>=n[3]?0:n[3]-n[1]}function p(n){return l(n)*y(n)}function b(n){return l(n)>0&&y(n)>0}function g(n,t=[0,0]){return t[0]=(n[0]+n[2])/2,t[1]=(n[1]+n[3])/2,t}function j(n){const t=l(n),r=y(n);return Math.sqrt(t*t+r*r)}function F(n,t){return E(n,t[0],t[1])}function q(n,t){const r=t[3],i=.5*(n[0]+n[2]),u=Math.abs(t[0]-i),a=.5*(n[2]-n[0]);if(u>r+a)return!1;const e=.5*(n[1]+n[3]),o=.5*(n[3]-n[1]),c=Math.abs(t[1]-e);if(c>r+o)return!1;if(u<a||c<o)return!0;const f=u-a,m=c-o;return f*f+m*m<=r*r}function w(n,t,r){const i=n[0],u=n[1],a=n[2],e=n[3],{x:o,y:c}=t,{x:f,y:m}=r,h=(n,t)=>(m-c)*n+(o-f)*t+(f*c-o*m)<0,M=h(i,e),x=h(a,e),s=h(a,u),l=h(i,u);return!(M===x&&x===s&&s===l&&l===M||o<i&&f<i||o>a&&f>a||c>e&&m>e||c<u&&m<u)}function k(n,t){return E(n,t.x,t.y)}function E(n,t,r){return t>=n[0]&&r>=n[1]&&t<=n[2]&&r<=n[3]}function R(n,t,r,i){return t>=n[0]-i&&r>=n[1]-i&&t<=n[2]+i&&r<=n[3]+i}function U(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[0]<=n[2]+r&&t[1]<=n[3]+r}function d(n,t){return Math.max(t[0],n[0])<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])<=Math.min(t[3],n[3])}function v(n,t,r){return Math.max(t[0],n[0])-r<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])-r<=Math.min(t[3],n[3])}function z(n,t){return t[0]>=n[0]&&t[2]<=n[2]&&t[1]>=n[1]&&t[3]<=n[3]}function A(n,t,r){return null==t?a(r,n):(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3]),r)}function B(t,r,i){if(null==r)return a(i,t);const u=r[0],e=r[1],o=r[2],c=r[3];return i[0]=n(t[0],u,o),i[1]=n(t[1],e,c),i[2]=n(t[2],u,o),i[3]=n(t[3],e,c),i}function C(n,t){const r=(n[0]+n[2])/2,i=(n[1]+n[3])/2,u=Math.max(Math.abs(t[0]-r)-l(n)/2,0),a=Math.max(Math.abs(t[1]-i)-y(n)/2,0);return Math.sqrt(u*u+a*a)}function D(n,t){t[0]=n[2]-n[0],t[1]=n[3]-n[1]}function G(n,t,r,i){return i??=n,i[0]=n[0]+t,i[1]=n[1]+r,i[2]=n[2]+t,i[3]=n[3]+r,i}function H(n,t,r=n){return r[0]=n[0]-t,r[1]=n[1]-t,r[2]=n[2]+t,r[3]=n[3]+t,r}function I(n,t,r=n){return r[0]=t[0],r[1]=t[1],r!==n&&(r[2]=n[2],r[3]=n[3]),r}function J(n,t,r=n){return r[2]=t[0],r[3]=t[1],r!==n&&(r[0]=n[0],r[1]=n[1]),n}function K(n){return n?a(n,Q):i(Q)}function L(n){return null!=n&&4===n.length}function N(n){return!(0!==l(n)&&isFinite(n[0])||0!==y(n)&&isFinite(n[1]))}function O(n,t){return L(n)&&L(t)?n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]&&n[3]===t[3]:n===t}const P=r([-1/0,-1/0,1/0,1/0]),Q=r([1/0,1/0,-1/0,-1/0]),S=r([0,0,0,0]),T=r([0,0,1,1]);function V(n,t,r){return null!=t&&(r?r.contains(n[0],n[2],t[0])&&r.contains(n[0],n[2],t[2])&&t[1]>n[1]&&t[3]<n[3]:z(n,t))}function W(n,t,r){return null!=n&&(r?(r.contains(t[0],t[2],n[0])||r.contains(t[0],t[2],n[2])||r.contains(n[0],n[2],t[0]))&&!(n[1]>t[3]||n[3]<t[1]):d(n,t))}export{s as allFinite,p as area,g as center,u as clone,z as contains,F as containsPoint,k as containsPointObject,U as containsPointWithMargin,E as containsXY,R as containsXYWithMargin,a as copy,i as create,j as diagonal,C as distance,K as empty,O as equals,M as expand,f as expandPointInPlace,x as expandWithNestedArray,m as expandXInPlace,h as expandYInPlace,o as fromExtent,e as fromValues,b as hasArea,y as height,B as intersection,d as intersects,w as intersectsSegment,q as intersectsSphere,v as intersectsWithMargin,L as is,N as isPoint,Q as negativeInfinity,G as offset,H as pad,P as positiveInfinity,V as rectangleContainsRectangleCyclicalAware,W as rectanglesIntersectCyclicalAware,J as setMax,I as setMin,D as size,c as toExtent,A as union,T as unit,l as width,S as zero};
5
+ import"../../core/has.js";import{clamp as n}from"../../core/mathUtils.js";import t from"../Extent.js";function r(n){return n}function i(n=S){return r([n[0],n[1],n[2],n[3]])}function u(n){return r([n[0],n[1],n[2],n[3]])}function a(n,t){return n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]),n}function e(n,t,r,u,a=i()){return a[0]=n,a[1]=t,a[2]=r,a[3]=u,a}function o(n,t=i()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.xmax,t[3]=n.ymax,t}function c(n,r,i=new t){return i.xmin=n[0],i.ymin=n[1],i.xmax=n[2],i.ymax=n[3],i.spatialReference=r,i}function f(n,t){t[0]<n[0]&&(n[0]=t[0]),t[0]>n[2]&&(n[2]=t[0]),t[1]<n[1]&&(n[1]=t[1]),t[1]>n[3]&&(n[3]=t[1])}function m(n,t){t<n[0]&&(n[0]=t),t>n[2]&&(n[2]=t)}function h(n,t){t<n[1]&&(n[1]=t),t>n[3]&&(n[3]=t)}function M(n,t,r){if(null!=t)if("length"in t)L(t)?(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[0]),r[3]=Math.max(n[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(n[0],t.xmin),r[1]=Math.min(n[1],t.ymin),r[2]=Math.max(n[2],t.xmax),r[3]=Math.max(n[3],t.ymax);break;case"point":r[0]=Math.min(n[0],t.x),r[1]=Math.min(n[1],t.y),r[2]=Math.max(n[2],t.x),r[3]=Math.max(n[3],t.y)}else a(r,n)}function x(n,t,r=n){const i=t.length;let u=n[0],a=n[1],e=n[2],o=n[3];for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),e=Math.max(e,n[0]),o=Math.max(o,n[1])}return r[0]=u,r[1]=a,r[2]=e,r[3]=o,r}function s(n){for(let t=0;t<4;t++)if(!isFinite(n[t]))return!1;return!0}function l(n){return null==n||n[0]>=n[2]?0:n[2]-n[0]}function y(n){return null==n||n[1]>=n[3]?0:n[3]-n[1]}function p(n){return l(n)*y(n)}function b(n){return l(n)>0&&y(n)>0}function g(n,t=[0,0]){return t[0]=(n[0]+n[2])/2,t[1]=(n[1]+n[3])/2,t}function j(n){const t=l(n),r=y(n);return Math.sqrt(t*t+r*r)}function F(n,t){return E(n,t[0],t[1])}function q(n,t){const r=t[3],i=.5*(n[0]+n[2]),u=Math.abs(t[0]-i),a=.5*(n[2]-n[0]);if(u>r+a)return!1;const e=.5*(n[1]+n[3]),o=.5*(n[3]-n[1]),c=Math.abs(t[1]-e);if(c>r+o)return!1;if(u<a||c<o)return!0;const f=u-a,m=c-o;return f*f+m*m<=r*r}function w(n,t,r){const i=n[0],u=n[1],a=n[2],e=n[3],{x:o,y:c}=t,{x:f,y:m}=r,h=(n,t)=>(m-c)*n+(o-f)*t+(f*c-o*m)<0,M=h(i,e),x=h(a,e),s=h(a,u),l=h(i,u);return!(M===x&&x===s&&s===l&&l===M||o<i&&f<i||o>a&&f>a||c>e&&m>e||c<u&&m<u)}function k(n,t){return!!n&&E(n,t.x,t.y)}function E(n,t,r){return t>=n[0]&&r>=n[1]&&t<=n[2]&&r<=n[3]}function R(n,t,r,i){return t>=n[0]-i&&r>=n[1]-i&&t<=n[2]+i&&r<=n[3]+i}function U(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[0]<=n[2]+r&&t[1]<=n[3]+r}function d(n,t){return Math.max(t[0],n[0])<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])<=Math.min(t[3],n[3])}function v(n,t,r){return Math.max(t[0],n[0])-r<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])-r<=Math.min(t[3],n[3])}function z(n,t){return t[0]>=n[0]&&t[2]<=n[2]&&t[1]>=n[1]&&t[3]<=n[3]}function A(n,t,r){return null==t?a(r,n):(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3]),r)}function B(t,r,i){if(null==r)return a(i,t);const u=r[0],e=r[1],o=r[2],c=r[3];return i[0]=n(t[0],u,o),i[1]=n(t[1],e,c),i[2]=n(t[2],u,o),i[3]=n(t[3],e,c),i}function C(n,t){const r=(n[0]+n[2])/2,i=(n[1]+n[3])/2,u=Math.max(Math.abs(t[0]-r)-l(n)/2,0),a=Math.max(Math.abs(t[1]-i)-y(n)/2,0);return Math.sqrt(u*u+a*a)}function D(n,t){t[0]=n[2]-n[0],t[1]=n[3]-n[1]}function G(n,t,r,i){return i??=n,i[0]=n[0]+t,i[1]=n[1]+r,i[2]=n[2]+t,i[3]=n[3]+r,i}function H(n,t,r=n){return r[0]=n[0]-t,r[1]=n[1]-t,r[2]=n[2]+t,r[3]=n[3]+t,r}function I(n,t,r=n){return r[0]=t[0],r[1]=t[1],r!==n&&(r[2]=n[2],r[3]=n[3]),r}function J(n,t,r=n){return r[2]=t[0],r[3]=t[1],r!==n&&(r[0]=n[0],r[1]=n[1]),n}function K(n){return n?a(n,Q):i(Q)}function L(n){return null!=n&&4===n.length}function N(n){return!(0!==l(n)&&isFinite(n[0])||0!==y(n)&&isFinite(n[1]))}function O(n,t){return L(n)&&L(t)?n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]&&n[3]===t[3]:n===t}const P=r([-1/0,-1/0,1/0,1/0]),Q=r([1/0,1/0,-1/0,-1/0]),S=r([0,0,0,0]),T=r([0,0,1,1]);function V(n,t,r){return null!=t&&(r?r.contains(n[0],n[2],t[0])&&r.contains(n[0],n[2],t[2])&&t[1]>n[1]&&t[3]<n[3]:z(n,t))}function W(n,t,r){return null!=n&&(r?(r.contains(t[0],t[2],n[0])||r.contains(t[0],t[2],n[2])||r.contains(n[0],n[2],t[0]))&&!(n[1]>t[3]||n[3]<t[1]):d(n,t))}export{s as allFinite,p as area,g as center,u as clone,z as contains,F as containsPoint,k as containsPointObject,U as containsPointWithMargin,E as containsXY,R as containsXYWithMargin,a as copy,i as create,j as diagonal,C as distance,K as empty,O as equals,M as expand,f as expandPointInPlace,x as expandWithNestedArray,m as expandXInPlace,h as expandYInPlace,o as fromExtent,e as fromValues,b as hasArea,y as height,B as intersection,d as intersects,w as intersectsSegment,q as intersectsSphere,v as intersectsWithMargin,L as is,N as isPoint,Q as negativeInfinity,G as offset,H as pad,P as positiveInfinity,V as rectangleContainsRectangleCyclicalAware,W as rectanglesIntersectCyclicalAware,J as setMax,I as setMin,D as size,c as toExtent,A as union,T as unit,l as width,S as zero};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import e from"../Extent.js";import t from"../Point.js";import{polygonCentroidPoint as n}from"./centroid.js";import{getExtentForScale as r}from"./scaleUtils.js";function o(e){switch(e?.type){case"point":return e;case"extent":return e.center;case"polygon":{const r=n(e);return r?t.fromJSON(r):null}case"multipoint":case"polyline":return e.extent?.center;default:return null}}async function a(e,t){if(e.hasZ||"2d"===t.type)return e;const n=t.map?.ground;if(!n?.layers.length)return e;const{geometry:r}=await n.queryElevation(e,{cache:t.basemapTerrain?.elevationQueryCache});return r}function i(e,t,n){return s(e.center,t,n)}function c(e,t,n){switch(e?.type){case"extent":return e;case"multipoint":case"polygon":case"polyline":return e.extent;case"point":return s(e,t,n);default:return null}}function s(t,n,o){const a=t.hasZ?t.z:void 0;if(n?.map){return(null!=o?r(n,o):n.extent).clone().centerAt(t).set({zmax:a,zmin:a})}const{x:i,y:c,spatialReference:s}=t;return new e({xmin:i-.25,ymin:c-.25,xmax:i+.25,ymax:c+.25,spatialReference:s,zmin:a,zmax:a})}export{c as createExtentFromGeometry,s as createExtentFromPoint,o as getPointFromGeometry,a as getPointWithElevation,i as scaleExtent};
5
+ import e from"../Extent.js";import t from"../Point.js";import{polygonCentroidPoint as n}from"./centroid.js";import{getExtentForScale as r}from"./scaleUtils.js";function o(e){switch(e?.type){case"point":return e;case"extent":return e.center;case"polygon":{const r=n(e);return r?t.fromJSON(r):null}case"multipoint":case"polyline":return e.extent?.center;default:return null}}async function a(e,t){if(e.hasZ||"2d"===t.type)return e;const n=t.map?.ground;return n?.layers.length?(await n.queryElevation(e,{cache:t.basemapTerrain?.elevationQueryCache})).geometry:e}function i(e,t,n){return s(e.center,t,n)}function c(e,t,n){switch(e?.type){case"extent":return e;case"multipoint":case"polygon":case"polyline":return e.extent;case"point":return s(e,t,n);default:return null}}function s(t,n,o){const a=t.hasZ?t.z:void 0;if(n?.map){return(null!=o?r(n,o):n.extent).clone().centerAt(t).set({zmax:a,zmin:a})}const{x:i,y:c,spatialReference:s}=t;return new e({xmin:i-.25,ymin:c-.25,xmax:i+.25,ymax:c+.25,spatialReference:s,zmin:a,zmax:a})}export{c as createExtentFromGeometry,s as createExtentFromPoint,o as getPointFromGeometry,a as getPointWithElevation,i as scaleExtent};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{open as e}from"../../../core/workers/workers.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as r}from"../ray.js";import{intersectRay as n}from"../triangle.js";import o from"./ElevationSamplerWorker.js";import{ElevationSamplerBase as a}from"../../../layers/support/ElevationSampler.js";async function i(e,t){const r=await l(),n=await u.createIndex(e,r);return m(r),new s(e,n,t)}class s extends a{constructor(e,t,r){super(),this._rindex=t,this.demResolution={min:0,max:0},this.spatialReference=e.spatialReference.clone(),this.extent=e.extent.clone(),this.noDataValue=r?.noDataValue||0}elevationAt(e,t){let o=Number.NEGATIVE_INFINITY;return r([e,t,0],[0,0,-1],I),this._rindex.search({minX:e,maxX:e,minY:t,maxY:t},e=>{n(e,I,N)&&N[2]>o&&(o=N[2])}),o===Number.NEGATIVE_INFINITY?this.noDataValue:o}}function l(){return++p,c(),f||(f=e("ElevationSamplerWorker").catch(()=>null),f)}function m(e){--p,null!=e&&0===p&&(x=setTimeout(()=>{e.close(),f=null,x=0},h))}function c(){x&&(clearTimeout(x),x=0)}const u=new o;let p=0,f=null,x=0;const h=1e4,I=r([0,0,0],[0,0,-1]),N=t();export{i as create};
5
+ import{__decorate as e}from"tslib";import{open as r}from"../../../core/workers/workers.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as s}from"../ray.js";import{intersectRay as a}from"../triangle.js";import i from"./ElevationSamplerWorker.js";import c from"../../../layers/support/ElevationSampler.js";async function l(e,r){const t=await p(),o=await d.createIndex(e,t);u(t);const n=e.spatialReference,s=e.extent.clone();return new m({spatialReference:n,extent:s,noDataValue:r?.noDataValue||0,rindex:o})}let m=class extends c{constructor(e){super(e),this.demResolution={min:0,max:0}}elevationAt(e,r){let t=Number.NEGATIVE_INFINITY;return s([e,r,0],[0,0,-1],I),this.rindex.search({minX:e,maxX:e,minY:r,maxY:r},e=>{a(e,I,N)&&N[2]>t&&(t=N[2])}),t===Number.NEGATIVE_INFINITY?this.noDataValue:t}};function p(){return++x,f(),y||(y=r("ElevationSamplerWorker").catch(()=>null),y)}function u(e){--x,null!=e&&0===x&&(j=setTimeout(()=>{e.close(),y=null,j=0},v))}function f(){j&&(clearTimeout(j),j=0)}e([t({constructOnly:!0})],m.prototype,"spatialReference",void 0),e([t({constructOnly:!0})],m.prototype,"extent",void 0),e([t({constructOnly:!0})],m.prototype,"noDataValue",void 0),e([t({constructOnly:!0})],m.prototype,"rindex",void 0),m=e([o("esri.geometry.support.meshUtils.elevationSampler")],m);const d=new i;let x=0,y=null,j=0;const v=1e4,I=s([0,0,0],[0,0,-1]),N=n();export{l as create};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{throwIfAborted as t}from"../../core/promiseUtils.js";import s from"../Mesh.js";import{georeference as o,ungeoreference as n}from"./meshUtils/georeference.js";import{merge as c}from"./meshUtils/merge.js";const i=()=>r.getLogger("esri.geometry.support.meshUtils");async function a(e,r,s){const o=await import("./meshUtils/elevation.js");return t(s),o.create(e,r,s)}async function m(e,r){await e.load();return(await import("./meshUtils/elevationSampler.js")).create(e,r)}function p(r,t,s){return e(i(),"`meshUtils.georeference` is deprecated in favor of 'meshUtils.convertVertexSpace'",{replacement:"meshUtils.convertVertexSpace",version:"4.30",see:"https://arcg.is/1yHayr0#convertVertexSpace",warnOnce:!0}),o(r,t,s)}function l(r,t,s){return e(i(),"`meshUtils.ungeoreference` is deprecated in favor of 'meshUtils.convertVertexSpace'",{replacement:"meshUtils.convertVertexSpace",version:"4.30",see:"https://arcg.is/1yHayr0#convertVertexSpace",warnOnce:!0}),n(r,t,s)}function f(e){const r=c(e);return null!=r?new s(r):null}async function h(e,r,s){const{convertMeshVertexSpace:o}=await import("./meshUtils/convertMeshVertexSpace.js");return t(s),o(e,r,s)}export{h as convertVertexSpace,m as createElevationSampler,a as createFromElevation,p as georeference,f as merge,l as ungeoreference};
5
+ import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{throwIfAborted as t}from"../../core/promiseUtils.js";import s from"../Mesh.js";import{georeference as o,ungeoreference as n}from"./meshUtils/georeference.js";import{merge as c}from"./meshUtils/merge.js";const i=()=>r.getLogger("esri.geometry.support.meshUtils");async function a(e,r,s){const o=await import("./meshUtils/elevation.js");return t(s),o.create(e,r,s)}async function m(e,r){await e.load();const{create:t}=await import("./meshUtils/elevationSampler.js");return t(e,r)}function p(r,t,s){return e(i(),"`meshUtils.georeference` is deprecated in favor of 'meshUtils.convertVertexSpace'",{replacement:"meshUtils.convertVertexSpace",version:"4.30",see:"https://arcg.is/1yHayr0#convertVertexSpace",warnOnce:!0}),o(r,t,s)}function l(r,t,s){return e(i(),"`meshUtils.ungeoreference` is deprecated in favor of 'meshUtils.convertVertexSpace'",{replacement:"meshUtils.convertVertexSpace",version:"4.30",see:"https://arcg.is/1yHayr0#convertVertexSpace",warnOnce:!0}),n(r,t,s)}function f(e){const r=c(e);return null!=r?new s(r):null}async function h(e,r,s){const{convertMeshVertexSpace:o}=await import("./meshUtils/convertMeshVertexSpace.js");return t(s),o(e,r,s)}export{h as convertVertexSpace,m as createElevationSampler,a as createFromElevation,p as georeference,f as merge,l as ungeoreference};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{ObjectStack as t}from"../../core/ObjectStack.js";import{d as e,l as n,h as r,c as o,e as c,g as s,f as p}from"../../chunks/vec32.js";import{create as i,clone as a}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as f,distance2 as u,fromValues as g}from"./lineSegment.js";import{sv3d as m}from"./vectorStacks.js";function j(t){return t?{p0:a(t.p0),p1:a(t.p1),p2:a(t.p2)}:{p0:i(),p1:i(),p2:i()}}function l(t,e,n){const r=x.get();return r.p0=t,r.p1=e,r.p2=n,r}function h(t,e=j()){return b(t.p0,t.p1,t.p2,e)}function b(t,e,n,r=j()){return o(r.p0,t),o(r.p1,e),o(r.p2,n),r}function d(t,n){const o=t.p0,s=t.p1,p=t.p2,i=e(m.get(),s,o),a=e(m.get(),p,s),f=e(m.get(),o,p),j=e(m.get(),n,o),l=e(m.get(),n,s),h=e(m.get(),n,p),b=r(i,i,f),d=c(r(m.get(),i,b),j),k=c(r(m.get(),a,b),l),v=c(r(m.get(),f,b),h);if(d>0&&k>0&&v>0){const t=c(b,j);return t*t/c(b,b)}const S=u(g(o,i,w.get()),n),x=u(g(s,a,w.get()),n),M=u(g(p,f,w.get()),n);return Math.min(S,x,M)}function k(t,e,n){const r=1e-5,{direction:o,origin:c}=e,{p0:i,p1:a,p2:f}=t,u=a[0]-i[0],g=a[1]-i[1],m=a[2]-i[2],j=f[0]-i[0],l=f[1]-i[1],h=f[2]-i[2],b=o[1]*h-l*o[2],d=o[2]*j-h*o[0],k=o[0]*l-j*o[1],v=u*b+g*d+m*k;if(v>-r&&v<r)return!1;const S=1/v,w=c[0]-i[0],x=c[1]-i[1],M=c[2]-i[2],O=S*(w*b+x*d+M*k);if(O<0||O>1)return!1;const V=x*m-g*M,q=M*u-m*w,y=w*g-u*x,z=S*(o[0]*V+o[1]*q+o[2]*y);if(z<0||O+z>1)return!1;if(n){s(n,o,S*(j*V+l*q+h*y)),p(n,c,n)}return!0}function v(t,e,n){const r=e[0]-t[0],o=e[1]-t[1],c=n[0]-t[0],s=n[1]-t[1];return.5*Math.abs(r*s-o*c)}function S(t,o,c){return e(M,o,t),e(O,c,t),.5*n(r(M,M,O))}const w=new t(f),x=new t(()=>j()),M=i(),O=i();export{v as areaPoints2d,S as areaPoints3d,h as copy,j as create,d as distance2,b as fromValues,k as intersectRay,l as wrap};
5
+ import{ObjectStack as t}from"../../core/ObjectStack.js";import{d as e,l as n,h as r,g as o,f as c,c as s,e as p}from"../../chunks/vec32.js";import{create as i,clone as a}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as f,distance2 as u,fromValues as g}from"./lineSegment.js";import{sv3d as m}from"./vectorStacks.js";function j(t){return t?{p0:a(t.p0),p1:a(t.p1),p2:a(t.p2)}:{p0:i(),p1:i(),p2:i()}}function l(t,e,n){const r=x.get();return r.p0=t,r.p1=e,r.p2=n,r}function h(t,e=j()){return b(t.p0,t.p1,t.p2,e)}function b(t,e,n,r=j()){return s(r.p0,t),s(r.p1,e),s(r.p2,n),r}function d(t,n){const o=t.p0,c=t.p1,s=t.p2,i=e(m.get(),c,o),a=e(m.get(),s,c),f=e(m.get(),o,s),j=e(m.get(),n,o),l=e(m.get(),n,c),h=e(m.get(),n,s),b=r(i,i,f),d=p(r(m.get(),i,b),j),k=p(r(m.get(),a,b),l),v=p(r(m.get(),f,b),h);if(d>0&&k>0&&v>0){const t=p(b,j);return t*t/p(b,b)}const S=u(g(o,i,w.get()),n),x=u(g(c,a,w.get()),n),M=u(g(s,f,w.get()),n);return Math.min(S,x,M)}function k(t,e,n){const r=1e-5,{direction:s,origin:p}=e,{p0:i,p1:a,p2:f}=t,u=a[0]-i[0],g=a[1]-i[1],m=a[2]-i[2],j=f[0]-i[0],l=f[1]-i[1],h=f[2]-i[2],b=s[1]*h-l*s[2],d=s[2]*j-h*s[0],k=s[0]*l-j*s[1],v=u*b+g*d+m*k;if(v>-r&&v<r)return!1;const S=1/v,w=p[0]-i[0],x=p[1]-i[1],M=p[2]-i[2],O=S*(w*b+x*d+M*k);if(O<0||O>1)return!1;const V=x*m-g*M,q=M*u-m*w,y=w*g-u*x,z=S*(s[0]*V+s[1]*q+s[2]*y);if(z<0||O+z>1)return!1;if(n){o(n,s,S*(j*V+l*q+h*y)),c(n,p,n)}return!0}function v(t,e,n){const r=e[0]-t[0],o=e[1]-t[1],c=n[0]-t[0],s=n[1]-t[1];return.5*Math.abs(r*s-o*c)}function S(t,o,c){return e(M,o,t),e(O,c,t),.5*n(r(M,M,O))}const w=new t(f),x=new t(()=>j()),M=i(),O=i();export{v as areaPoints2d,S as areaPoints3d,h as copy,j as create,d as distance2,b as fromValues,k as intersectRay,l as wrap};