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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/arcade/ArcadePortal.js +1 -1
  2. package/arcade/functions/aiServices.js +1 -1
  3. package/arcade/functions/featuresetbase.js +1 -1
  4. package/arcade/functions/geomasync.js +1 -1
  5. package/arcade/functions/knowledgegraph.js +1 -1
  6. package/arcade/functions/string.js +1 -1
  7. package/arcade/languageUtils.js +1 -1
  8. package/arcade/portalUtils.js +1 -1
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/07aca5ecad659d55e795.js +2 -0
  11. package/assets/esri/core/workers/chunks/09630888267cde87654f.js +1 -0
  12. package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +1 -0
  13. package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +1 -0
  14. package/assets/esri/core/workers/chunks/{d00dafad202450e6ee2e.js → 14eb2cc8e2ad6d8d03fd.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +1 -0
  16. package/assets/esri/core/workers/chunks/176dd195f77b98cb0b0f.js +1 -0
  17. package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b98c24229463029504e8.js → 1f6b7626f333809837ef.js} +1 -1
  19. package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +1 -0
  20. package/assets/esri/core/workers/chunks/2a2e97918524e0f436d7.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +1 -0
  22. package/assets/esri/core/workers/chunks/{bab23b905678e42815e5.js → 312036c89a6a09bb06c2.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{37091cf498a16ccad7ff.js → 330b47ac0759c3c35cc5.js} +1 -1
  24. package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a270960d80d8344dd75f.js → 34ea3ed78041437a8fc8.js} +1 -1
  26. package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +1 -0
  27. package/assets/esri/core/workers/chunks/3a183259805638c25363.js +1 -0
  28. package/assets/esri/core/workers/chunks/{deaca3cd202851ecf9c2.js → 3cce9dad8ee0e4971d50.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +1 -0
  30. package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +1 -0
  31. package/assets/esri/core/workers/chunks/42336e0d1ef88737b078.js +1 -0
  32. package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +1 -0
  33. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
  34. package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +1 -0
  35. package/assets/esri/core/workers/chunks/53750e85f3128993a43a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{4bbe684050b3b04681d0.js → 537fe2522dff1e6ce03b.js} +1 -1
  37. package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +1 -0
  38. package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +1 -0
  39. package/assets/esri/core/workers/chunks/5d8e944b192aad4cf986.js +1 -0
  40. package/assets/esri/core/workers/chunks/{5476c2f7b83f4ccd0335.js → 5e1b847b116d21908a54.js} +1 -1
  41. package/assets/esri/core/workers/chunks/5ed8d8b5336c81fbcda3.js +1 -0
  42. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
  43. package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +1 -0
  44. package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +1 -0
  45. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  46. package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +1 -0
  47. package/assets/esri/core/workers/chunks/702e8468836863abd81b.js +1 -0
  48. package/assets/esri/core/workers/chunks/7540f7df86620f067b5a.js +1 -0
  49. package/assets/esri/core/workers/chunks/76e34f81bb4a7b0e694c.js +1 -0
  50. package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +1 -0
  51. package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +1 -0
  52. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  53. package/assets/esri/core/workers/chunks/852f4cd514008fee5a55.js +1 -0
  54. package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +1 -0
  55. package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +1 -0
  56. package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +1 -0
  57. package/assets/esri/core/workers/chunks/9103eb0b9078019d3a26.js +1 -0
  58. package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +1 -0
  59. package/assets/esri/core/workers/chunks/91f9e0e3662d4bf9f163.js +1 -0
  60. package/assets/esri/core/workers/chunks/99c161fecae710b53b40.js +1 -0
  61. package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +1 -0
  62. package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +1 -0
  63. package/assets/esri/core/workers/chunks/9d10db72e342fe63c981.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a36761e3122f70fbb3c9.js → 9d6491f996eeb0c646ed.js} +1 -1
  65. package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +1 -0
  66. package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +1 -0
  67. package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +1 -0
  68. package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +1 -0
  69. package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +1 -0
  70. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  71. package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +1 -0
  72. package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +1 -0
  73. package/assets/esri/core/workers/chunks/baeb96aef03d4c566af7.js +1 -0
  74. package/assets/esri/core/workers/chunks/bc75ab48f4c7609ef09d.js +1 -0
  75. package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +1 -0
  76. package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +1 -0
  77. package/assets/esri/core/workers/chunks/{b905e637a67fbb7af4ae.js → bf8f603848bad4a7deb4.js} +1 -1
  78. package/assets/esri/core/workers/chunks/bfe575da727ce7c8d331.js +2 -0
  79. package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +1 -0
  80. package/assets/esri/core/workers/chunks/cb45e5d4a4ef82cda583.js +1 -0
  81. package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +1 -0
  82. package/assets/esri/core/workers/chunks/{5b324e572737a308500d.js → cf14b3a44705dacefac4.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d3b086eb9aa8c7d09048.js +1 -0
  84. package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +1 -0
  85. package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +1 -0
  86. package/assets/esri/core/workers/chunks/{41809c16544ec25120fa.js → d95ffd990b3a7df69e1e.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +1 -0
  88. package/assets/esri/core/workers/chunks/dda2cb5c073d1e65f14f.js +1 -0
  89. package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +1 -0
  90. package/assets/esri/core/workers/chunks/{ad064583f8a836005098.js → e262c4864dc06c43b380.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +1 -0
  92. package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +1 -0
  93. package/assets/esri/core/workers/chunks/ea59b81299acaf0d85ee.js +1 -0
  94. package/assets/esri/core/workers/chunks/{873c1b705ac3d4e6c384.js → ea97619a4470f1540b99.js} +1 -1
  95. package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +1 -0
  96. package/assets/esri/core/workers/chunks/edee616b6f1b5be8fd39.js +1 -0
  97. package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +1 -0
  98. package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +1 -0
  99. package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +1 -0
  100. package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +1 -0
  101. package/assets/esri/themes/base/widgets/_Sketch.scss +32 -0
  102. package/assets/esri/themes/dark/main.css +1 -1
  103. package/assets/esri/themes/light/main.css +1 -1
  104. package/assets/esri/themes/light/view.css +1 -1
  105. package/assets/esri/widgets/Sketch/t9n/Sketch.json +1 -1
  106. package/assets/esri/widgets/Sketch/t9n/Sketch_en.json +1 -1
  107. package/chunks/MultiPathImpl.js +1 -1
  108. package/chunks/Point2D.js +1 -1
  109. package/chunks/SpatialReference.js +1 -1
  110. package/chunks/aiServices.js +1 -1
  111. package/chunks/languageUtils.js +1 -1
  112. package/config.js +1 -1
  113. package/core/workers/registry.js +1 -1
  114. package/form/elements/AttachmentElement.d.ts +15 -16
  115. package/form/elements/GroupElement.d.ts +3 -2
  116. package/form/elements/inputs/attachments/AttachmentInput.d.ts +7 -9
  117. package/form/elements/inputs/attachments/AudioInput.d.ts +6 -8
  118. package/form/elements/inputs/attachments/DocumentInput.d.ts +5 -7
  119. package/form/elements/inputs/attachments/ImageInput.d.ts +6 -8
  120. package/form/elements/inputs/attachments/Input.d.ts +2 -6
  121. package/form/elements/inputs/attachments/SignatureInput.d.ts +5 -7
  122. package/form/elements/inputs/attachments/VideoInput.d.ts +6 -8
  123. package/form/elements/inputs/attachments/types.d.ts +3 -3
  124. package/geometry/FlatGeometry.js +1 -1
  125. package/geometry/operators/projectOperator.js +1 -1
  126. package/graphic/ImageryGraphicOrigin.js +1 -1
  127. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  128. package/graphic/WCSGraphicOrigin.js +1 -1
  129. package/kernel.js +1 -1
  130. package/layers/mixins/ArcGISImageService.js +1 -1
  131. package/package.json +4 -4
  132. package/popup/Features.js +1 -1
  133. package/support/revision.js +1 -1
  134. package/symbols/cim/CIMSymbolHelper.js +1 -1
  135. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  136. package/symbols/support/previewCIMSymbol.js +1 -1
  137. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  138. package/views/2d/engine/webgl/TextureManager.js +1 -1
  139. package/views/2d/layers/MediaLayerView2D.js +1 -1
  140. package/views/2d/layers/TileLayerView2D.js +1 -1
  141. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  142. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  143. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  144. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  145. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  146. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  147. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  148. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  149. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  150. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  151. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  152. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  153. package/views/VideoView.js +1 -1
  154. package/views/draw/DrawGraphicTool.js +1 -1
  155. package/views/draw/DrawTool.js +1 -1
  156. package/views/draw/support/Box.js +1 -1
  157. package/views/draw/support/Reshape.js +1 -1
  158. package/views/draw/support/managers/MeasurementManager.js +1 -1
  159. package/views/interactive/SegmentLabels.js +1 -1
  160. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  161. package/views/support/GeometryWorker.js +2 -0
  162. package/views/support/GeometryWorkerHandle.js +2 -0
  163. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -3
  164. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -11
  165. package/widgets/FeatureTable/support/types.d.ts +2 -1
  166. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +28 -0
  167. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  168. package/widgets/OrientedImageryViewer.d.ts +27 -0
  169. package/widgets/Sketch/SketchViewModel.d.ts +10 -2
  170. package/widgets/Sketch/SketchViewModel.js +1 -1
  171. package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
  172. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  173. package/widgets/Sketch.js +1 -1
  174. package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +0 -1
  175. package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +0 -1
  176. package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +0 -1
  177. package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +0 -1
  178. package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +0 -1
  179. package/assets/esri/core/workers/chunks/12e575a6d2b008b8fc2b.js +0 -1
  180. package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +0 -1
  181. package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +0 -1
  182. package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +0 -1
  183. package/assets/esri/core/workers/chunks/1db1656a033f3992f0d6.js +0 -1
  184. package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +0 -1
  185. package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +0 -1
  186. package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +0 -1
  187. package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +0 -1
  188. package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +0 -1
  189. package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +0 -1
  190. package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +0 -1
  191. package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +0 -1
  192. package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +0 -1
  193. package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +0 -1
  194. package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +0 -1
  195. package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +0 -1
  196. package/assets/esri/core/workers/chunks/4c13869d260a902d3014.js +0 -1
  197. package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +0 -1
  198. package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +0 -2
  199. package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +0 -1
  200. package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +0 -1
  201. package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +0 -1
  202. package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +0 -1
  203. package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +0 -1
  204. package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +0 -1
  205. package/assets/esri/core/workers/chunks/6a21c9a4aeebe806ea39.js +0 -1
  206. package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +0 -1
  207. package/assets/esri/core/workers/chunks/6d11ec355e5474b2968b.js +0 -1
  208. package/assets/esri/core/workers/chunks/6d25230dd85a4ba54c4f.js +0 -1
  209. package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +0 -1
  210. package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +0 -1
  211. package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +0 -1
  212. package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +0 -1
  213. package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +0 -1
  214. package/assets/esri/core/workers/chunks/7951d93f5f15aa76f49c.js +0 -1
  215. package/assets/esri/core/workers/chunks/7a56c836c89a8b978800.js +0 -1
  216. package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +0 -1
  217. package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +0 -1
  218. package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +0 -1
  219. package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +0 -1
  220. package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +0 -1
  221. package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +0 -1
  222. package/assets/esri/core/workers/chunks/9be9ccce6369f67202bc.js +0 -1
  223. package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +0 -1
  224. package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +0 -1
  225. package/assets/esri/core/workers/chunks/a94bd20551c1179c7ec5.js +0 -1
  226. package/assets/esri/core/workers/chunks/a9d2c83bb10b5ade0ca0.js +0 -1
  227. package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +0 -1
  228. package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +0 -1
  229. package/assets/esri/core/workers/chunks/bc887bd62579dba81e2b.js +0 -1
  230. package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +0 -1
  231. package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +0 -1
  232. package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +0 -1
  233. package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +0 -1
  234. package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +0 -1
  235. package/assets/esri/core/workers/chunks/c5f155fe114a2a05aaf2.js +0 -2
  236. package/assets/esri/core/workers/chunks/c61002a117dc2218d6af.js +0 -1
  237. package/assets/esri/core/workers/chunks/c804a66ef7615aa8de89.js +0 -1
  238. package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +0 -1
  239. package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +0 -1
  240. package/assets/esri/core/workers/chunks/d21fdd67477800101f3b.js +0 -1
  241. package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +0 -1
  242. package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +0 -1
  243. package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +0 -1
  244. package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +0 -1
  245. package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +0 -1
  246. package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +0 -1
  247. package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +0 -1
  248. package/assets/esri/core/workers/chunks/f43a63094190d2074cd0.js +0 -1
  249. package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +0 -1
  250. package/views/support/MeasurementWorker.js +0 -2
  251. package/views/support/MeasurementWorkerHandle.js +0 -2
  252. /package/assets/esri/core/workers/chunks/{5511e640e171c294f52a.js.LICENSE.txt → 07aca5ecad659d55e795.js.LICENSE.txt} +0 -0
  253. /package/assets/esri/core/workers/chunks/{c5f155fe114a2a05aaf2.js.LICENSE.txt → bfe575da727ce7c8d331.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{toSymbolId as t}from"../arcade/arcadeEnvironment.js";import e from"../arcade/Dictionary.js";import{ArcadeExecutionError as s}from"../arcade/executionError.js";import{B as r,j as n,N as o}from"./languageUtils.js";import a from"../core/Error.js";import i from"../core/Logger.js";import{getOrCreateMapValue as c}from"../core/MapUtils.js";import l from"../portal/Portal.js";import{translate as u}from"../rest/translate.js";import h from"../rest/support/TranslateContent.js";import m from"../rest/support/TranslateParameters.js";import f from"../rest/support/TranslateResult.js";import{isString as p,isArray as _}from"../support/guards.js";class d{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const s=e.url+e.translateUtility;try{t.requestSource??="arcade";return{success:!0,results:(await u(s,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(r){return null!=this._debugLog&&(r instanceof Error||r instanceof a)&&this._debugLog(`TranslateText error: ${r.message}`),i.getLogger("esri.arcade.functions.aiServices").error(r),{success:!1}}}}class g{constructor(t,e,s){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=s,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let s=0;for(const n of e)s+=n.length;if((s+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:n,text:o}of t)c(this._normalizedContents,o,()=>[]).push({batchIdx:r,key:n});return this._requests.push(t),this._contentsTotalSize+=s,r}async send(t){const e=[],s=[];let r=0;for(const[i,c]of this._normalizedContents)e.push(new h({key:String(r++),text:i})),s.push(c);const n=new m(this._parameters);n.contents=e;const o=await t.translate(n);if(!o.success)return Array.from(this._requests,()=>o);const a=Array.from(this._requests,()=>({success:!0,results:[]}));for(const i of o.results){const t=Number(i.key);for(const e of s[t])a[e.batchIdx].results.push({...i,key:e.key})}return a}}function y(t){const e=[...new Set(t.to)].sort(),s=t.from??null,r=t.portalUrl,n=t.translator,o=t.apiKey??null;return JSON.stringify([e,s,r,n,o])}async function w(t,e,s){try{return(await t.yieldFor(s))[e]}catch{return{success:!1}}}class x{constructor(t,e,{maxTotalContentSize:s=5e4,maxContentsLength:r=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=s,this._maxContentsLength=r}create(t){return{translate:async e=>{const s=y(e),{contents:r,to:n,from:o,translator:a,portalUrl:i,apiKey:c}=e;if(null==n)return{success:!1};if(null==r||r.every(t=>0===t.text.length))return{success:!1};const l=this._openBatches.get(s);if(null!=l){const e=l.data.tryAdd(r);if(null!=e)return await w(t,e,l);l.send()}const u=new g({to:n,from:o,translator:a,portalUrl:i,apiKey:c},this._maxTotalContentSize,this._maxContentsLength),h=u.tryAdd(r);if(null!=h){const e=this._executor.openBatch(u,{open:t=>{this._openBatches.set(s,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(s)===t&&this._openBatches.delete(s)}});return await w(t,h,e)}return await this._service.translate(e)}}}}function S(a){"async"===a.mode&&(a.functions[t("TranslateText")]=function(t,i){return a.standardFunctionAsync(t,i,async(t,a,i)=>{if(r(i,2,3,t,a),!p(i[0])&&!_(i[0])&&!n(i[0]))throw new s(t,"InvalidParameter",a);const c=o(i[0]);if(!p(i[1])&&!_(i[1])&&!n(i[1]))throw new s(t,"InvalidParameter",a);const u=o(i[1]);let g=null;if(i.length>=3){if(!p(i[2]))throw new s(t,"InvalidParameter",a);g=i[2]}const w=c.map((t,e)=>new h({key:String(e),text:t})),x=t.services?.portal??l.getDefault(),S=new m({to:u,contents:w,from:g,portalUrl:x.restUrl.replace(/\/sharing\/rest$/,"")}),T=new Map;let v=null;if(null!=t.lrucache){const e=t.lrucache;v??=y(S),S.contents=S.contents?.filter(t=>{const s=e.getCachedTranslation(v,t.text);return null==s||(T.set(t.key,{...s,key:t.key,text:t.text}),!1)})}if(S.contents?.length){const r=t.services?.translation??new d(x,t.console),n=await r.translate(S);if(!n.success)return new e({__proto__:null,success:!1});for(const e of n.results){const r=S.contents?.find(t=>t.key===e.key)?.text;if(null==r)throw new s(null,"NeverReach",null);T.set(e.key,e),null!=t.lrucache&&(v??=y(S),t.lrucache.setCachedTranslation(v,r,{detectedLanguage:e.detectedLanguage,translation:e.translation}))}}const C=Array.from(w,r=>{const n=f.fromJSON(T.get(r.key));if(null==n)throw new s(null,"NeverReach",null);return n.text=r.text,e.convertJsonToArcade(n.toJSON(),t.timeZone??"system",!0)});return new e({__proto__:null,success:!0,results:C})})})}const T=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:x,PortalTranslationService:d,getTranslateParametersKey:y,registerFunctions:S},Symbol.toStringTag,{value:"Module"}));export{T as A,x as B,d as P,y as g,S as r};
2
+ import{toSymbolId as t}from"../arcade/arcadeEnvironment.js";import e from"../arcade/Dictionary.js";import{ArcadeExecutionError as s}from"../arcade/executionError.js";import{B as r,j as n,N as o}from"./languageUtils.js";import{getDefaultPortal as a}from"../arcade/portalUtils.js";import i from"../core/Error.js";import c from"../core/Logger.js";import{getOrCreateMapValue as l}from"../core/MapUtils.js";import{translate as u}from"../rest/translate.js";import h from"../rest/support/TranslateContent.js";import m from"../rest/support/TranslateParameters.js";import f from"../rest/support/TranslateResult.js";import{isString as p,isArray as d}from"../support/guards.js";class _{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const s=e.url+e.translateUtility;try{t.requestSource??="arcade";return{success:!0,results:(await u(s,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(r){return null!=this._debugLog&&(r instanceof Error||r instanceof i)&&this._debugLog(`TranslateText error: ${r.message}`),c.getLogger("esri.arcade.functions.aiServices").error(r),{success:!1}}}}class g{constructor(t,e,s){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=s,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let s=0;for(const n of e)s+=n.length;if((s+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:n,text:o}of t)l(this._normalizedContents,o,()=>[]).push({batchIdx:r,key:n});return this._requests.push(t),this._contentsTotalSize+=s,r}async send(t){const e=[],s=[];let r=0;for(const[i,c]of this._normalizedContents)e.push(new h({key:String(r++),text:i})),s.push(c);const n=new m(this._parameters);n.contents=e;const o=await t.translate(n);if(!o.success)return Array.from(this._requests,()=>o);const a=Array.from(this._requests,()=>({success:!0,results:[]}));for(const i of o.results){const t=Number(i.key);for(const e of s[t])a[e.batchIdx].results.push({...i,key:e.key})}return a}}function y(t){const e=[...new Set(t.to)].sort(),s=t.from??null,r=t.portalUrl,n=t.translator,o=t.apiKey??null;return JSON.stringify([e,s,r,n,o])}async function w(t,e,s){try{return(await t.yieldFor(s))[e]}catch{return{success:!1}}}class x{constructor(t,e,{maxTotalContentSize:s=5e4,maxContentsLength:r=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=s,this._maxContentsLength=r}create(t){return{translate:async e=>{const s=y(e),{contents:r,to:n,from:o,translator:a,portalUrl:i,apiKey:c}=e;if(null==n)return{success:!1};if(null==r||r.every(t=>0===t.text.length))return{success:!1};const l=this._openBatches.get(s);if(null!=l){const e=l.data.tryAdd(r);if(null!=e)return await w(t,e,l);l.send()}const u=new g({to:n,from:o,translator:a,portalUrl:i,apiKey:c},this._maxTotalContentSize,this._maxContentsLength),h=u.tryAdd(r);if(null!=h){const e=this._executor.openBatch(u,{open:t=>{this._openBatches.set(s,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(s)===t&&this._openBatches.delete(s)}});return await w(t,h,e)}return await this._service.translate(e)}}}}function S(i){"async"===i.mode&&(i.functions[t("TranslateText")]=function(t,c){return i.standardFunctionAsync(t,c,async(t,i,c)=>{if(r(c,2,3,t,i),!p(c[0])&&!d(c[0])&&!n(c[0]))throw new s(t,"InvalidParameter",i);const l=o(c[0]);if(!p(c[1])&&!d(c[1])&&!n(c[1]))throw new s(t,"InvalidParameter",i);const u=o(c[1]);let g=null;if(c.length>=3){if(!p(c[2]))throw new s(t,"InvalidParameter",i);g=c[2]}const w=l.map((t,e)=>new h({key:String(e),text:t})),x=a(t),S=new m({to:u,contents:w,from:g,portalUrl:x.restUrl.replace(/\/sharing\/rest$/,"")}),T=new Map;let v=null;if(null!=t.lrucache){const e=t.lrucache;v??=y(S),S.contents=S.contents?.filter(t=>{const s=e.getCachedTranslation(v,t.text);return null==s||(T.set(t.key,{...s,key:t.key,text:t.text}),!1)})}if(S.contents?.length){const r=t.services?.translation??new _(x,t.console),n=await r.translate(S);if(!n.success)return new e({__proto__:null,success:!1});for(const e of n.results){const r=S.contents?.find(t=>t.key===e.key)?.text;if(null==r)throw new s(null,"NeverReach",null);T.set(e.key,e),null!=t.lrucache&&(v??=y(S),t.lrucache.setCachedTranslation(v,r,{detectedLanguage:e.detectedLanguage,translation:e.translation}))}}const C=Array.from(w,r=>{const n=f.fromJSON(T.get(r.key));if(null==n)throw new s(null,"NeverReach",null);return n.text=r.text,e.convertJsonToArcade(n.toJSON(),t.timeZone??"system",!0)});return new e({__proto__:null,success:!0,results:C})})})}const T=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:x,PortalTranslationService:_,getTranslateParametersKey:y,registerFunctions:S},Symbol.toStringTag,{value:"Module"}));export{T as A,x as B,_ as P,y as g,S as r};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- 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 j}from"../intl/locale.js";import{isBoolean as D,isNumber as x,isString as O,isDate as C,isArray as F,isInteger as w}from"../support/guards.js";import{DateTime as J}from"luxon";import{isGraphic as M}from"../support/graphicInstanceUtils.js";class R{constructor(e){this.value=e}}class v{constructor(e){this.value=e}}const P={type:"VOID"},I=Symbol("BREAK"),_=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)||(!!D(e)||(null===e||e===P))))))}function z(e,t){return void 0===e?t:e}function E(e){return null==e?"":F(e)||te(e)?"Array":ne(e)?"Date":ie(e)?"Time":re(e)?"DateOnly":O(e)?"String":D(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:j(),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(D(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(D(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(D(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(D(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(D(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(D(e)){if(D(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(D(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(D(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":D(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(D(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(F(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(!F(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(D(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(F(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(D(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:D(e)?e?1:0:F(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=J.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=J.fromISO(e,{zone:t}),a.isValid)?a:null}function Ae(e){return D(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 je(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function De(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(F(e)||te(e)){let n=!1,r=!1,i=[],o=t;if(F(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(F(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(F(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(F(e)||te(e)){let n=!1,r=!1,i=[],a=t;if(F(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 Ie(e,t=!0){if(null==e)return[];if(F(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 _e=0;function Ye(){return _e++,_e%100==0?(_e=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}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:D(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)):C(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||C(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||C(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:j()}}const et="1.35",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:I,castAsJson:Ge,castAsJsonAsync:ze,castRecordToText:pe,continueResult:_,defaultExecutingContext:Xe,defaultTimeZone:Ke,defaultUndefined:z,equalityTest:ye,featureDomainCodeLookup:Be,featureDomainValueLookup:$e,featureFullDomain:He,featureSchema:Qe,featureSubtypes:We,fixNullGeometry:De,fixSpatialReference:je,formatDate:fe,formatNumber:le,getDomain:Ce,getDomainCode:Oe,getDomainValue:xe,getType:E,greaterThanLessThan:de,isArray:F,isBoolean:D,isDate:ne,isDateOnly:re,isDictionary:K,isDictionaryLike:Q,isEmpty:ue,isFeature:H,isFeatureSet:B,isFeatureSetCollection:X,isFunctionParameter:L,isGeometry:U,isGraphic:M,isImmutableArray:te,isInteger:w,isJsDate:C,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:Ie,toStringExplicit:be,voidOperation:P},Symbol.toStringTag,{value:"Module"}));export{Y as $,_ as A,oe as B,Je as C,je 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,G as M,Ie as N,E as O,Ze as P,ce as Q,R,se as S,He as T,Be as U,$e as V,Qe as W,We as X,De as Y,W as Z,$ as _,Ge as a,Xe as a0,he as a1,qe as a2,Ye as a3,Ce as a4,xe as a5,Oe as a6,et as a7,fe as a8,le as a9,ae as aa,Ue as ab,ke as ac,we 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,Se as r,ge as s,be as t,de as u,P as v,ye as w,Le as x,Q as y,I as z};
2
+ import{ArcadeDate as e,createDateTimeZone as t}from"../arcade/ArcadeDate.js";import{ArcadeModule as r}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as n}from"../arcade/executionError.js";import{ArcadeFunction as i}from"../arcade/FunctionWrapper.js";import a from"../arcade/ImmutableArray.js";import o from"../arcade/ImmutablePathArray.js";import u from"../arcade/ImmutablePointArray.js";import{esriFieldToJson as s,layerGeometryEsriRestConstants as l}from"../arcade/featureset/support/shared.js";import{format as f,parse as c}from"../core/number.js";import{DateOnly as m}from"../core/sql/DateOnly.js";import{TimeOnly as d}from"../core/sql/TimeOnly.js";import y from"../geometry/Extent.js";import p from"../geometry/Geometry.js";import g from"../geometry/Multipoint.js";import h from"../geometry/Point.js";import b from"../geometry/Polygon.js";import N from"../geometry/Polyline.js";import{isClockwise as S}from"../geometry/support/coordsUtils.js";import{fromJSON as Z}from"../geometry/support/jsonUtils.js";import{getLocale as T}from"../intl/locale.js";import{isBoolean as A,isNumber as k,isString as D,isDate as O,isArray as j,isInteger as x}from"../support/guards.js";import{DateTime as C}from"luxon";import{isGraphic as F}from"../support/graphicInstanceUtils.js";class w{constructor(e){this.value=e}}class J{constructor(e){this.value=e}}const M={type:"VOID"},R=Symbol("BREAK"),P=Symbol("CONTINUE");function v(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function I(e){return e instanceof i}function _(e){return e instanceof r}function Y(e){return!!D(e)||(!!k(e)||(!!X(e)||(!!ee(e)||(!!te(e)||(!!A(e)||(null===e||e===M))))))}function L(e,t){return void 0===e?t:e}function G(e){return null==e?"":j(e)||Q(e)?"Array":X(e)?"Date":te(e)?"Time":ee(e)?"DateOnly":D(e)?"String":A(e)?"Boolean":k(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":K(e)?"KnowledgeGraph":e instanceof r?"Module":q(e)?"Feature":e instanceof h?"Point":e instanceof b?"Polygon":e instanceof N?"Polyline":e instanceof g?"Multipoint":e instanceof y?"Extent":I(e)?"Function":H(e)?"FeatureSet":B(e)?"FeatureSetCollection":E(e)?"Voxel":U(e)?"Pixel":e===M?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function V(e){return e===M}function z(e){return e instanceof p}function q(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function E(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function U(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function H(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function W(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return W(e)||q(e)||E(e)||U(e)}function B(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function K(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Q(e){return e instanceof a}function X(t){return t instanceof e}function ee(e){return e instanceof m}function te(e){return e instanceof d}function re(e){return null!=e&&"object"==typeof e}function ne(e,t,r,i,a){if(e.length<t||e.length>r)throw new n(i,"WrongNumberOfParameters",a)}function ie(e){return null==e||V(e)||""===e}function ae(e){return e<0?-Math.round(-e):Math.round(e)}function oe(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=v(t,"‰",""),t=v(t,"¤",""),f(e,{pattern:t}))}function ue(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(se(t),{locale:T(),numberingSystem:"latn"})}function se(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([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(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function le(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function fe(t,r,i){if(null===t){if(null===r||r===M)return le(null,null,i);if(k(r))return le(0,r,i);if(D(r))return le(0,he(r),i);if(A(r))return le(0,he(r),i);if(X(r))return le(0,r.toNumber(),i);if(te(r))return le(t,r.toNumber(),i);if(ee(r))return le(t,r.toNumber(),i)}if(t===M){if(null===r||r===M)return le(null,null,i);if(k(r))return le(0,r,i);if(D(r))return le(0,he(r),i);if(A(r))return le(0,he(r),i);if(X(r))return le(0,r.toNumber(),i);if(te(r))return le(t,r.toNumber(),i);if(ee(r))return le(t,r.toNumber(),i)}else if(k(t)){if(k(r))return le(t,r,i);if(A(r))return le(t,he(r),i);if(null===r||r===M)return le(t,0,i);if(D(r))return le(t,he(r),i);if(X(r))return le(t,r.toNumber(),i);if(te(r))return le(t,r.toNumber(),i);if(ee(r))return le(t,r.toNumber(),i)}else if(D(t)){if(D(r))return le(de(t),de(r),i);if(X(r))return le(he(t),r.toNumber(),i);if(te(r))return le(he(t),r.toNumber(),i);if(ee(r))return le(he(t),r.toNumber(),i);if(k(r))return le(he(t),r,i);if(null===r||r===M)return le(he(t),0,i);if(A(r))return le(he(t),he(r),i)}else if(X(t)){if(X(r))return t.timeZone!==r.timeZone&&(t.isUnknownTimeZone?t=e.arcadeDateAndZoneToArcadeDate(t,r.timeZone):r.isUnknownTimeZone&&(r=e.arcadeDateAndZoneToArcadeDate(r,t.timeZone))),le(t.toNumber(),r.toNumber(),i);if(null===r||r===M)return le(t.toNumber(),0,i);if(k(r))return le(t.toNumber(),r,i);if(A(r))return le(t.toNumber(),he(r),i);if(D(r))return le(t.toNumber(),he(r),i);if(te(r))throw new n(null,"CannotCompareDateAndTime",null);if(ee(r))return le(t.toNumber(),r.toNumber(),i)}else if(A(t)){if(A(r))return le(t,r,i);if(k(r))return le(he(t),he(r),i);if(X(r))return le(he(t),r.toNumber(),i);if(te(r))return le(he(t),r.toNumber(),i);if(ee(r))return le(he(t),r.toNumber(),i);if(null===r||r===M)return le(he(t),0,i);if(D(r))return le(he(t),he(r),i)}else if(ee(t)){if(X(r))return le(t.toNumber(),r.toNumber(),i);if(null===r||r===M)return le(t.toNumber(),0,i);if(k(r))return le(t.toNumber(),r,i);if(A(r))return le(t.toNumber(),he(r),i);if(D(r))return le(t.toNumber(),he(r),i);if(te(r))throw new n(null,"CannotCompareDateAndTime",null);if(ee(r))return le(t.toNumber(),r.toNumber(),i)}else if(te(t)){if(X(r))throw new n(null,"CannotCompareDateAndTime",null);if(null===r||r===M)return le(t.toNumber(),0,i);if(k(r))return le(t.toNumber(),r,i);if(A(r))return le(t.toNumber(),he(r),i);if(D(r))return le(t.toNumber(),he(r),i);if(te(r))return le(t.toNumber(),r.toNumber(),i);if(ee(r))throw new n(null,"CannotCompareDateAndTime",null)}return!!ce(t,r)&&("<="===i||">="===i)}function ce(e,t){if(e===t)return!0;if(null===e&&t===M||null===t&&e===M)return!0;if(X(e)&&X(t))return e.equals(t);if(te(e)&&te(t))return e.equals(t);if(ee(e)&&ee(t))return e.equals(t);if(e instanceof o)return e.equalityTest(t);if(e instanceof u)return e.equalityTest(t);if(e instanceof h&&t instanceof h){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(re(e)&&re(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 me(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":A(i)||k(i)||D(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):z(i)?r+=JSON.stringify(n)+":"+pe(i):te(i)||ee(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:Q(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+pe(i,null,t):X(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function de(e,t){if(D(e))return e;if(null===e)return"";if(k(e))return oe(e,t);if(A(e))return e.toString();if(X(e))return ue(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof p)return JSON.stringify(e.toJSON());if(j(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=ge(e[r]);return"["+t.join(",")+"]"}if(e instanceof a){const t=[];for(let r=0;r<e.length();r++)t[r]=ge(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===M?"":_(e)?"object, Module":""}function ye(e){const t=[];if(e instanceof a){for(let r=0;r<e.length();r++)t[r]=he(e.get(r));return t}if(!j(e))return null;for(let r=0;r<e.length;r++)t[r]=he(e[r]);return t}function pe(e,t,r=!1){if(D(e))return e;if(null===e)return"";if(k(e))return oe(e,t);if(A(e))return e.toString();if(X(e))return ue(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof p)return e instanceof y?'{"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":'+xe(e.spatialReference)+"}":xe(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(j(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ge(e[n],r);return"["+t.join(",")+"]"}if(e instanceof a){const t=[];for(let n=0;n<e.length();n++)t[n]=ge(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):I(e)?"object, Function":e===M?"":_(e)?"object, Module":""}function ge(e,t=!1){if(null===e)return"null";if(A(e)||D(e))return JSON.stringify(e);if(k(e))return e.toString();if(e instanceof p)return pe(e,null,t);if(e instanceof a)return pe(e,null,t);if(Array.isArray(e))return pe(e,null,t);if(X(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ue(e,""));if(te(e))return JSON.stringify(e.toString());if(ee(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===M)return"null";return"null"}function he(e,t){return k(e)?e:null===e||""===e?0:X(e)||ee(e)||te(e)?NaN:A(e)?e?1:0:j(e)||""===e||void 0===e?NaN:void 0!==t&&D(e)?(t=v(t,"‰",""),t=v(t,"¤",""),c(e,{pattern:t})):e===M?0:Number(e)}function be(t,r){if(X(t))return t;if(D(t)){const n=Ne(t,r);if(n)return e.dateTimeToArcadeDate(n)}return null}function Ne(e,r){const n=/ (\d\d)/,i=t(r);let a=C.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=C.fromISO(e,{zone:r}),a.isValid)?a:null}function Se(e){return A(e)?e:D(e)?"true"===(e=e.toLowerCase()):!!k(e)&&(0!==e&&!isNaN(e))}function Ze(e,t){const r=JSON.parse(e);return r&&!r.spatialReference&&(r.spatialReference=t),Z(r)}function Te(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ae(e){if(null===e)return null;if(e instanceof h)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b){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 N){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 g?0===e.points.length?null:e:e instanceof y?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function ke(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(X(t))r=t.toNumber();else if(ee(t))r=t.toString();else if(te(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=de(t);else{if(null==t)return null;if(""===t)return t;r=he(t)}for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.code===r&&(n=t)}return null===n?de(t):n.name}function De(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=de(t);for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.name===n&&(r=t)}return null===r?t:r.code}function Oe(e,t,r=null,i=null){if(!t)return null;if(!t.fields)return null;let a,o,u=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(u=r)}if(null===u)throw new n(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===i&&r&&s)i=r.hasField(s)?r.field(s):null;else if(s&&null!==i){let e=!1;for(const t of f||[])if(i===t[l]){e=!0;break}if(!e)for(const t of f||[])if(i===t.name){i=t[l],e=!0;break}e||(i=null,r&&s&&(i=r.hasField(s)?r.field(s):null))}return null!=i&&f.some(e=>e[l]===i&&(a=e.domains?.[u.name],a&&"inherited"===a.type&&(a=je(u.name,t),o=!0),!0)),o||a||(a=je(e,t)),{field:u,domain:a}}function je(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function xe(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},a={key:r,value:e[r]};return i(n,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(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const u=a.push(t)-1,s=Object.keys(t).sort(n?.(t));for(o="",i=0;i<s.length;i++){const r=s[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return a.splice(u,1),"{"+o+"}"}(e)}function Ce(e){if(null===e)return null;const t=[];for(const r of e)q(r)?t.push(r.geometry()):t.push(r);return t}function Fe(e,t){if(!(t instanceof h))throw new n(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 we(e,t){if(j(e)||Q(e)){let r=!1,i=!1,a=[],o=t;if(j(e)){for(const t of e)Fe(a,t);a.length>0&&(o=e[0].spatialReference,r=e[0].hasZ,i=e[0].hasM)}else if(e instanceof u)a=e._elements,a.length>0&&(r=e._hasZ,i=e._hasM,o=e.get(0).spatialReference);else{if(!Q(e))throw new n(null,"InvalidParameter",null);for(const t of e.toArray())Fe(a,t);a.length>0&&(o=e.get(0).spatialReference,r=!0===e.get(0).hasZ,i=!0===e.get(0).hasM)}if(0===a.length)return null;return S(a)||(a=a.slice().reverse()),new b({rings:[a],spatialReference:o,hasZ:r,hasM:i})}return e}function Je(e,t){if(j(e)||Q(e)){let r=!1,n=!1,i=[],a=t;if(j(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof u)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new N({paths:[i],spatialReference:a,hasZ:r,hasM:n})}return e}function Me(e,t){if(j(e)||Q(e)){let r=!1,n=!1,i=[],a=t;if(j(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof u)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new g({points:i,spatialReference:a,hasZ:r,hasM:n})}return e}function Re(e,t=!0){if(null==e)return[];if(j(e)){const r=[];for(const n of e){const e=de(n);(t||""!==e)&&r.push(e)}return r}if(Q(e)){const r=[];for(let n=0;n<e.length();n++){const i=de(e.get(n));(t||""!==i)&&r.push(i)}return r}if(Y(e)){const r=de(e);if(t||""!==r)return[r]}return[]}let Pe=0;function ve(){return Pe++,Pe%100==0?(Pe=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function Ie(e,t,r){switch(r){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 _e(e,t=null){return null==e?null:A(e)||k(e)||D(e)?e:e instanceof p?!0===t?.keepGeometryType?e:e.toJSON():e instanceof a?e.toArray().map(e=>_e(e,t)):Array.isArray(e)?e.map(e=>_e(e,t)):O(e)?e:X(e)?e.toJSDate():te(e)?e.toString():ee(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ye(e,t,r,n,i){const a=await Le(e,t,r);i[n]=a}async function Le(e,t=null,r=null){if(e instanceof a&&(e=e.toArray()),null==e)return null;if(Y(e)||e instanceof p||O(e)||X(e))return _e(e,r);if(Array.isArray(e)){const n=[],i=[];for(const a of e)null===a||Y(a)||a instanceof p||O(a)||X(a)?i.push(_e(a,r)):(i.push(null),n.push(Ye(a,t,r,i.length-1,i)));return n.length>0&&await Promise.all(n),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,r):null}function Ge(e){return Ve(e)?e.parent:e}function Ve(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function ze(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass}function qe(e,t,r){const n=Ge(e.fullSchema());if(null===n)return null;if(!n.fields)return null;return Oe(t,n,e,r)}function Ee(e){const t=Ge(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 Ue(e,t,r,n){const i=Ge(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const a=Oe(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(o){return null}return ke(a,r)}function He(e,t,r,n){const i=Ge(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(a){return null}return r}return De(Oe(t,i,e,n),r)}function We(e){return e?.timeZone??"system"}function $e(e){const t=Ge(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const n of t.fields)r.push(s(n));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===l[t.geometryType]?"":l[t.geometryType],fields:r}}const Be="1.35",Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:J,ReturnResult:w,absRound:ae,arcadeVersion:Be,autoCastArrayOfPointsToMultiPoint:Me,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:Je,autoCastFeatureToGeometry:Ce,binaryOperator:Ie,breakResult:R,castAsJson:_e,castAsJsonAsync:Le,castRecordToText:me,continueResult:P,defaultTimeZone:We,defaultUndefined:L,equalityTest:ce,featureDomainCodeLookup:He,featureDomainValueLookup:Ue,featureFullDomain:qe,featureSchema:$e,featureSubtypes:Ee,fixNullGeometry:Ae,fixSpatialReference:Te,formatDate:ue,formatNumber:oe,getDomain:Oe,getDomainCode:De,getDomainValue:ke,getType:G,greaterThanLessThan:fe,isArray:j,isBoolean:A,isDate:X,isDateOnly:ee,isDictionary:W,isDictionaryLike:$,isEmpty:ie,isFeature:q,isFeatureSet:H,isFeatureSetCollection:B,isFunctionParameter:I,isGeometry:z,isGraphic:F,isImmutableArray:Q,isInteger:x,isJsDate:O,isKnowledgeGraph:K,isModule:_,isNumber:k,isObject:re,isPixel:U,isSimpleType:Y,isString:D,isSubtypeGrouplayer:ze,isSubtypeSublayer:Ve,isTime:te,isVoid:V,isVoxel:E,multiReplace:v,parseGeometryFromJson:Ze,pcCheck:ne,stableStringify:xe,standardiseDateFormat:se,tick:ve,toBoolean:Se,toDate:be,toNumber:he,toNumberArray:ye,toString:de,toStringArray:Re,toStringExplicit:pe,voidOperation:M},Symbol.toStringTag,{value:"Module"}));export{v as $,P as A,ne as B,Ce as C,Te as D,we as E,Je as F,Me as G,Se as H,J as I,L as J,We as K,ie as L,_ as M,Re as N,G as O,be as P,se as Q,w as R,ae as S,qe as T,He as U,Ue as V,$e as W,Ee as X,Ae as Y,E as Z,U as _,_e as a,Be as a0,ye as a1,Ve as a2,ve as a3,Oe as a4,ke as a5,De as a6,ue as a7,oe as a8,re as a9,ze as aa,Ze as ab,xe as ac,Le as b,me as c,Y as d,X as e,ee as f,te as g,z as h,I as i,Q as j,q as k,B as l,H as m,W as n,K as o,Ke as p,V as q,he as r,de as s,pe as t,fe as u,M as v,ce as w,Ie as x,$ as y,R as z};
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- 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="5.1.0-next.74";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
2
+ 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="5.1.0-next.75";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const r={CSVSourceWorker:()=>import("../../layers/graphics/sources/support/CSVSourceWorker.js"),EdgeProcessingWorker:()=>import("../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js"),ElevationSamplerWorker:()=>import("../../geometry/support/meshUtils/ElevationSamplerWorker.js"),FeaturePipelineWorker:()=>import("../../views/2d/layers/features/FeaturePipelineWorker.js"),FeatureServiceSnappingSourceWorker:()=>import("../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js"),FlowWorker:()=>import("../../views/3d/support/flow/FlowWorker.js"),GaussianSplatSortWorker:()=>import("../../views/3d/support/GaussianSplatSortWorker.js"),MeasurementWorker:()=>import("../../views/support/MeasurementWorker.js"),GeoJSONSourceWorker:()=>import("../../layers/graphics/sources/geojson/GeoJSONSourceWorker.js"),LercWorker:()=>import("../../layers/support/LercWorker.js"),Lyr3DWorker:()=>import("../../views/3d/layers/Lyr3DWorker.js"),MemorySourceWorker:()=>import("../../layers/graphics/sources/support/MemorySourceWorker.js"),PBFDecoderWorker:()=>import("../../views/3d/support/PBFDecoderWorker.js"),PanoramicMeshWorker:()=>import("../../widgets/PanoramicViewer/support/PanoramicMeshWorker.js"),ParquetSourceWorker:()=>import("../../layers/graphics/sources/support/ParquetSourceWorker.js"),PointCloudWorker:()=>import("../../views/3d/layers/PointCloudWorker.js"),RasterWorker:()=>import("../../layers/support/RasterWorker.js"),SceneLayerSnappingSourceWorker:()=>import("../../views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js"),SceneLayerWorker:()=>import("../../views/3d/layers/SceneLayerWorker.js"),TextureCompressionWorker:()=>import("../../views/support/TextureCompressionWorker.js"),WFSSourceWorker:()=>import("../../layers/graphics/sources/WFSSourceWorker.js"),WorkerTileHandler:()=>import("../../views/2d/engine/vectorTiles/WorkerTileHandler.js"),arcadeGeometryOperatorsWorker:()=>import("../../arcade/geometry/operatorsWorker.js"),statsWorker:()=>import("../../smartMapping/statistics/support/statsWorker.js"),ImageMeasurementWorker:()=>import("../../widgets/OrientedImageryViewer/ImageMeasurementWorker.js")};export{r as registry};
2
+ const r={CSVSourceWorker:()=>import("../../layers/graphics/sources/support/CSVSourceWorker.js"),EdgeProcessingWorker:()=>import("../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js"),ElevationSamplerWorker:()=>import("../../geometry/support/meshUtils/ElevationSamplerWorker.js"),FeaturePipelineWorker:()=>import("../../views/2d/layers/features/FeaturePipelineWorker.js"),FeatureServiceSnappingSourceWorker:()=>import("../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js"),FlowWorker:()=>import("../../views/3d/support/flow/FlowWorker.js"),GaussianSplatSortWorker:()=>import("../../views/3d/support/GaussianSplatSortWorker.js"),GeometryWorker:()=>import("../../views/support/GeometryWorker.js"),GeoJSONSourceWorker:()=>import("../../layers/graphics/sources/geojson/GeoJSONSourceWorker.js"),LercWorker:()=>import("../../layers/support/LercWorker.js"),Lyr3DWorker:()=>import("../../views/3d/layers/Lyr3DWorker.js"),MemorySourceWorker:()=>import("../../layers/graphics/sources/support/MemorySourceWorker.js"),PBFDecoderWorker:()=>import("../../views/3d/support/PBFDecoderWorker.js"),PanoramicMeshWorker:()=>import("../../widgets/PanoramicViewer/support/PanoramicMeshWorker.js"),ParquetSourceWorker:()=>import("../../layers/graphics/sources/support/ParquetSourceWorker.js"),PointCloudWorker:()=>import("../../views/3d/layers/PointCloudWorker.js"),RasterWorker:()=>import("../../layers/support/RasterWorker.js"),SceneLayerSnappingSourceWorker:()=>import("../../views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js"),SceneLayerWorker:()=>import("../../views/3d/layers/SceneLayerWorker.js"),TextureCompressionWorker:()=>import("../../views/support/TextureCompressionWorker.js"),WFSSourceWorker:()=>import("../../layers/graphics/sources/WFSSourceWorker.js"),WorkerTileHandler:()=>import("../../views/2d/engine/vectorTiles/WorkerTileHandler.js"),arcadeGeometryOperatorsWorker:()=>import("../../arcade/geometry/operatorsWorker.js"),statsWorker:()=>import("../../smartMapping/statistics/support/statsWorker.js"),ImageMeasurementWorker:()=>import("../../widgets/OrientedImageryViewer/ImageMeasurementWorker.js")};export{r as registry};
@@ -8,12 +8,12 @@ import type { DocumentInputProperties } from "./inputs/attachments/DocumentInput
8
8
  import type { AudioInputProperties } from "./inputs/attachments/AudioInput.js";
9
9
  import type { AttachmentInputProperties } from "./inputs/attachments/AttachmentInput.js";
10
10
 
11
- /** @internal */
11
+ /** @since 5.1 */
12
12
  export interface AttachmentElementProperties extends ElementProperties, Partial<Pick<AttachmentElement, "allowUserRename" | "attachmentKeyword" | "displayFilename" | "editableExpression" | "filenameExpression" | "maxAttachmentCount" | "minAttachmentCount" | "useOriginalFilename">> {
13
13
  /**
14
14
  * The input user interface to use for the attachment.
15
15
  *
16
- * @internal
16
+ * @since 5.1
17
17
  */
18
18
  input?: ((AttachmentInputProperties & { type: "attachment" }) | (AudioInputProperties & { type: "audio" }) | (DocumentInputProperties & { type: "document" }) | (ImageInputProperties & { type: "image" }) | (SignatureInputProperties & { type: "signature" }) | (VideoInputProperties & { type: "video" })) | null;
19
19
  }
@@ -25,8 +25,7 @@ export interface AttachmentElementProperties extends ElementProperties, Partial<
25
25
  * >
26
26
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
27
27
  *
28
- * @internal
29
- * @since 4.31
28
+ * @since 5.1
30
29
  * @see [FormTemplate](https://developers.arcgis.com/javascript/latest/references/core/form/FormTemplate/)
31
30
  * @see [FeatureForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/)
32
31
  * @example
@@ -52,32 +51,32 @@ export interface AttachmentElementProperties extends ElementProperties, Partial<
52
51
  * });
53
52
  */
54
53
  export default class AttachmentElement extends Element {
55
- /** @internal */
54
+ /** @since 5.1 */
56
55
  constructor(properties?: AttachmentElementProperties);
57
56
  /**
58
57
  * Determines whether the user renaming an attachment is allowed.
59
58
  *
60
59
  * @default true
61
- * @internal
60
+ * @since 5.1
62
61
  */
63
62
  accessor allowUserRename: boolean | null | undefined;
64
63
  /**
65
64
  * A string to identify the attachment(s). When a file is attached using the form, this property is used to set the value of the keywords field for the attachment. When a form is displaying existing attachments, this property is used to query attachments using an exact match on the keywords field.
66
65
  *
67
- * @internal
66
+ * @since 5.1
68
67
  */
69
68
  accessor attachmentKeyword: string | null | undefined;
70
69
  /**
71
70
  * Determines whether the file name should be displayed. Default is `false`.
72
71
  *
73
72
  * @default false
74
- * @internal
73
+ * @since 5.1
75
74
  */
76
75
  accessor displayFilename: boolean | null | undefined;
77
76
  /**
78
77
  * A reference to an Arcade expression that returns a boolean value. When this expression evaluates to `true`, the element is editable. When the expression evaluates to `false` the element is not editable.
79
78
  *
80
- * @internal
79
+ * @since 5.1
81
80
  * @see [ExpressionInfo](https://developers.arcgis.com/javascript/latest/references/core/form/ExpressionInfo/)
82
81
  */
83
82
  accessor editableExpression: string | null | undefined;
@@ -85,46 +84,46 @@ export default class AttachmentElement extends Element {
85
84
  * Determines the name of a new attachment. If not specified, a unique name will be generated using the `attachmentKeyword` and the current timestamp when attachment is added.
86
85
  *
87
86
  * @default 'StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)'
88
- * @internal
87
+ * @since 5.1
89
88
  */
90
89
  accessor filenameExpression: string;
91
90
  /**
92
91
  * The input user interface to use for the attachment.
93
92
  *
94
- * @internal
93
+ * @since 5.1
95
94
  */
96
95
  get input(): AttachmentInputUnion | null | undefined;
97
96
  set input(value: ((AttachmentInputProperties & { type: "attachment" }) | (AudioInputProperties & { type: "audio" }) | (DocumentInputProperties & { type: "document" }) | (ImageInputProperties & { type: "image" }) | (SignatureInputProperties & { type: "signature" }) | (VideoInputProperties & { type: "video" })) | null | undefined);
98
97
  /**
99
98
  * Defines the maximum number of attachments allowed for this element. If not specified, there is no maximum number required.
100
99
  *
101
- * @internal
100
+ * @since 5.1
102
101
  */
103
102
  accessor maxAttachmentCount: number | null | undefined;
104
103
  /**
105
104
  * Defines the minimum number of attachments required for this element. If not specified, there is no minimum number required.
106
105
  *
107
- * @internal
106
+ * @since 5.1
108
107
  */
109
108
  accessor minAttachmentCount: number | null | undefined;
110
109
  /**
111
110
  * The type of the [Element](https://developers.arcgis.com/javascript/latest/references/core/form/elements/Element/).
112
111
  *
113
- * @internal
112
+ * @since 5.1
114
113
  */
115
114
  get type(): "attachment";
116
115
  /**
117
116
  * Determines whether the uploaded attachment's file name is preserved. If `false`, the name is updated based on `filenameExpression`. Default is `true`.
118
117
  *
119
118
  * @default true
120
- * @internal
119
+ * @since 5.1
121
120
  */
122
121
  accessor useOriginalFilename: boolean | null | undefined;
123
122
  /**
124
123
  * Creates a deep clone of the AttachmentElement class.
125
124
  *
126
125
  * @returns A deep clone of the AttachmentElement instance.
127
- * @internal
126
+ * @since 5.1
128
127
  */
129
128
  clone(): AttachmentElement;
130
129
  }
@@ -5,6 +5,7 @@ import type { ElementProperties } from "./Element.js";
5
5
  import type { FieldElementProperties } from "./FieldElement.js";
6
6
  import type { RelationshipElementProperties } from "./RelationshipElement.js";
7
7
  import type { TextElementProperties } from "./TextElement.js";
8
+ import type { UtilityNetworkAssociationsElementProperties } from "./UtilityNetworkAssociationsElement.js";
8
9
  import type { GroupState } from "../../portal/jsonTypes.js";
9
10
 
10
11
  export interface GroupElementProperties extends ElementProperties, Partial<Pick<GroupElement, "initialState">> {
@@ -17,7 +18,7 @@ export interface GroupElementProperties extends ElementProperties, Partial<Pick<
17
18
  * > * Nested group elements are not supported.
18
19
  * > * The `AttachmentElement` is not yet fully supported by the [FeatureForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/) widget. Support will be added in a future release.
19
20
  */
20
- elements?: ((AttachmentElementProperties & { type: "attachment"; }) | (FieldElementProperties & { type: "field"; }) | (RelationshipElementProperties & { type: "relationship"; }) | (TextElementProperties & { type: "text"; }))[] | null;
21
+ elements?: ((AttachmentElementProperties & { type: "attachment"; }) | (FieldElementProperties & { type: "field"; }) | (RelationshipElementProperties & { type: "relationship"; }) | (TextElementProperties & { type: "text"; }) | (UtilityNetworkAssociationsElementProperties & { type: "utilityNetworkAssociations"; }))[] | null;
21
22
  }
22
23
 
23
24
  /**
@@ -94,7 +95,7 @@ export default class GroupElement extends Element {
94
95
  * > * The `AttachmentElement` is not yet fully supported by the [FeatureForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/) widget. Support will be added in a future release.
95
96
  */
96
97
  get elements(): NestableFormElementUnion[];
97
- set elements(value: ((AttachmentElementProperties & { type: "attachment"; }) | (FieldElementProperties & { type: "field"; }) | (RelationshipElementProperties & { type: "relationship"; }) | (TextElementProperties & { type: "text"; }))[] | null | undefined);
98
+ set elements(value: ((AttachmentElementProperties & { type: "attachment"; }) | (FieldElementProperties & { type: "field"; }) | (RelationshipElementProperties & { type: "relationship"; }) | (TextElementProperties & { type: "text"; }) | (UtilityNetworkAssociationsElementProperties & { type: "utilityNetworkAssociations"; }))[] | null | undefined);
98
99
  /**
99
100
  * Defines if the group should be expanded or collapsed when the form is initially displayed.
100
101
  *
@@ -7,12 +7,12 @@ import type { NestableAttachmentInputUnion } from "./types.js";
7
7
  import type { VideoInputProperties } from "./VideoInput.js";
8
8
  import type { FormAttachmentAssociationType } from "../../../../portal/jsonTypes.js";
9
9
 
10
- /** @internal */
10
+ /** @since 5.1 */
11
11
  export interface AttachmentInputProperties extends Partial<Pick<AttachmentInput, "attachmentAssociationType">> {
12
12
  /**
13
13
  * Available inputs to add an attachment.
14
14
  *
15
- * @internal
15
+ * @since 5.1
16
16
  * @see [AudioInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/AudioInput/)
17
17
  * @see [DocumentInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/DocumentInput/)
18
18
  * @see [ImageInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/ImageInput/)
@@ -29,8 +29,7 @@ export interface AttachmentInputProperties extends Partial<Pick<AttachmentInput,
29
29
  * >
30
30
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
31
31
  *
32
- * @internal
33
- * @since 4.31
32
+ * @since 5.1
34
33
  * @see [AttachmentElement](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/)
35
34
  * @example
36
35
  * // Creates a new AttachmentInput for an attachment element within a form
@@ -48,7 +47,7 @@ export interface AttachmentInputProperties extends Partial<Pick<AttachmentInput,
48
47
  * });
49
48
  */
50
49
  export default class AttachmentInput extends Input {
51
- /** @internal */
50
+ /** @since 5.1 */
52
51
  constructor(properties?: AttachmentInputProperties);
53
52
  /**
54
53
  * String value which indicates if existing attachments should be associated with the element and how they should be associated. This property is used in conjunction with the [AttachmentElement.attachmentKeyword](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/#attachmentKeyword) property.
@@ -62,14 +61,14 @@ export default class AttachmentInput extends Input {
62
61
  * `exactOrNone` | Associates only attachments that have the keyword specified by `attachmentKeyword` and any attachments with no keyword defined.
63
62
  *
64
63
  * @default "exact"
65
- * @internal
64
+ * @since 5.1
66
65
  * @see [AttachmentElement.attachmentKeyword](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/#attachmentKeyword)
67
66
  */
68
67
  accessor attachmentAssociationType: FormAttachmentAssociationType;
69
68
  /**
70
69
  * Available inputs to add an attachment.
71
70
  *
72
- * @internal
71
+ * @since 5.1
73
72
  * @see [AudioInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/AudioInput/)
74
73
  * @see [DocumentInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/DocumentInput/)
75
74
  * @see [ImageInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/ImageInput/)
@@ -81,8 +80,7 @@ export default class AttachmentInput extends Input {
81
80
  /**
82
81
  * The input type identifier. Valid value of this property is "attachment"
83
82
  *
84
- * @internal
85
- * @since 5.0
83
+ * @since 5.1
86
84
  */
87
85
  get type(): "attachment";
88
86
  }
@@ -1,7 +1,7 @@
1
1
  import type Input from "./Input.js";
2
2
  import type { InputMethod } from "../../../../portal/jsonTypes.js";
3
3
 
4
- /** @internal */
4
+ /** @since 5.1 */
5
5
  export interface AudioInputProperties extends Partial<Pick<AudioInput, "inputMethod" | "maxDuration">> {}
6
6
 
7
7
  /**
@@ -11,8 +11,7 @@ export interface AudioInputProperties extends Partial<Pick<AudioInput, "inputMet
11
11
  * >
12
12
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
13
13
  *
14
- * @internal
15
- * @since 4.31
14
+ * @since 5.1
16
15
  * @see [AudioInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/AudioInput/)
17
16
  * @example
18
17
  * // Creates a new AudioInput for an attachment element within a form
@@ -22,26 +21,25 @@ export interface AudioInputProperties extends Partial<Pick<AudioInput, "inputMet
22
21
  * });
23
22
  */
24
23
  export default class AudioInput extends Input {
25
- /** @internal */
24
+ /** @since 5.1 */
26
25
  constructor(properties?: AudioInputProperties);
27
26
  /**
28
27
  * The supported input methods used to attach an audio file.
29
28
  *
30
29
  * @default "any"
31
- * @internal
30
+ * @since 5.1
32
31
  */
33
32
  accessor inputMethod: InputMethod;
34
33
  /**
35
34
  * Defines the maximum length of an attachment for this element in seconds. If not specified, there is no maximum length.
36
35
  *
37
- * @internal
36
+ * @since 5.1
38
37
  */
39
38
  accessor maxDuration: number | null | undefined;
40
39
  /**
41
40
  * The input type identifier. Valid value of this property is "audio"
42
41
  *
43
- * @internal
44
- * @since 5.0
42
+ * @since 5.1
45
43
  */
46
44
  get type(): "audio";
47
45
  }
@@ -1,6 +1,6 @@
1
1
  import type Input from "./Input.js";
2
2
 
3
- /** @internal */
3
+ /** @since 5.1 */
4
4
  export interface DocumentInputProperties extends Partial<Pick<DocumentInput, "maxFileSize">> {}
5
5
 
6
6
  /**
@@ -10,8 +10,7 @@ export interface DocumentInputProperties extends Partial<Pick<DocumentInput, "ma
10
10
  * >
11
11
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
12
12
  *
13
- * @internal
14
- * @since 4.31
13
+ * @since 5.1
15
14
  * @see [DocumentInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/DocumentInput/)
16
15
  * @example
17
16
  * // Creates a new DocumentInput for an attachment element within a form
@@ -20,19 +19,18 @@ export interface DocumentInputProperties extends Partial<Pick<DocumentInput, "ma
20
19
  * });
21
20
  */
22
21
  export default class DocumentInput extends Input {
23
- /** @internal */
22
+ /** @since 5.1 */
24
23
  constructor(properties?: DocumentInputProperties);
25
24
  /**
26
25
  * Defines the maximum length of an attachment for this element in megabytes. If not specified, there is no maximum file size.
27
26
  *
28
- * @internal
27
+ * @since 5.1
29
28
  */
30
29
  accessor maxFileSize: number | null | undefined;
31
30
  /**
32
31
  * The input type identifier. Valid value of this property is "document"
33
32
  *
34
- * @internal
35
- * @since 5.0
33
+ * @since 5.1
36
34
  */
37
35
  get type(): "document";
38
36
  }
@@ -1,7 +1,7 @@
1
1
  import type Input from "./Input.js";
2
2
  import type { InputMethod } from "../../../../portal/jsonTypes.js";
3
3
 
4
- /** @internal */
4
+ /** @since 5.1 */
5
5
  export interface ImageInputProperties extends Partial<Pick<ImageInput, "inputMethod" | "maxImageSize">> {}
6
6
 
7
7
  /**
@@ -11,8 +11,7 @@ export interface ImageInputProperties extends Partial<Pick<ImageInput, "inputMet
11
11
  * >
12
12
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
13
13
  *
14
- * @internal
15
- * @since 4.31
14
+ * @since 5.1
16
15
  * @see [ImageInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/ImageInput/)
17
16
  * @example
18
17
  * // Creates a new ImageInput for an attachment element within a form
@@ -22,26 +21,25 @@ export interface ImageInputProperties extends Partial<Pick<ImageInput, "inputMet
22
21
  * });
23
22
  */
24
23
  export default class ImageInput extends Input {
25
- /** @internal */
24
+ /** @since 5.1 */
26
25
  constructor(properties?: ImageInputProperties);
27
26
  /**
28
27
  * The supported input methods used to attach an image.
29
28
  *
30
29
  * @default "any"
31
- * @internal
30
+ * @since 5.1
32
31
  */
33
32
  accessor inputMethod: InputMethod;
34
33
  /**
35
34
  * Number of pixels on the longest edge depending on orientation. Larger images will be resized and aspect ratio is maintained. If `maxImageSize` is not specified, images will not be resized.
36
35
  *
37
- * @internal
36
+ * @since 5.1
38
37
  */
39
38
  accessor maxImageSize: number | null | undefined;
40
39
  /**
41
40
  * The input type identifier. Valid value of this property is "image"
42
41
  *
43
- * @internal
44
- * @since 5.0
42
+ * @since 5.1
45
43
  */
46
44
  get type(): "image";
47
45
  }
@@ -2,10 +2,7 @@ import type { ClonableMixin } from "../../../../core/Clonable.js";
2
2
  import type { JSONSupport } from "../../../../core/JSONSupport.js";
3
3
  import type { AttachmentInputType } from "./types.js";
4
4
 
5
- /**
6
- * @internal
7
- * @since 5.0
8
- */
5
+ /** @since 5.1 */
9
6
  export default abstract class Input extends InputSuperclass {
10
7
  /**
11
8
  * The type of [input](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/#input) used in [attachment elements](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/). These elements are set within a [feature layer's](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#formTemplate) or [form's](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/#formTemplate) `formTemplate`. The configured `formTemplate` automatically displays within the [Editor](https://developers.arcgis.com/javascript/latest/references/core/widgets/Editor/) widget when editing attribute features.
@@ -19,8 +16,7 @@ export default abstract class Input extends InputSuperclass {
19
16
  * signature | The user interface for a [signature](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/SignatureInput/) input.
20
17
  * video | The user interface for a [video](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/VideoInput/) input.
21
18
  *
22
- * @internal
23
- * @since 5.0
19
+ * @since 5.1
24
20
  */
25
21
  get type(): AttachmentInputType | null;
26
22
  }
@@ -1,7 +1,7 @@
1
1
  import type Input from "./Input.js";
2
2
  import type { InputMethod } from "../../../../portal/jsonTypes.js";
3
3
 
4
- /** @internal */
4
+ /** @since 5.1 */
5
5
  export interface SignatureInputProperties extends Partial<Pick<SignatureInput, "inputMethod">> {}
6
6
 
7
7
  /**
@@ -11,8 +11,7 @@ export interface SignatureInputProperties extends Partial<Pick<SignatureInput, "
11
11
  * >
12
12
  * > This class is not yet fully supported within the SDK and is not intended for use in development. Support will be added in an upcoming release.
13
13
  *
14
- * @internal
15
- * @since 4.31
14
+ * @since 5.1
16
15
  * @see [SignatureInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/SignatureInput/)
17
16
  * @example
18
17
  * // Creates a new SignatureInput for an attachment element within a form
@@ -21,20 +20,19 @@ export interface SignatureInputProperties extends Partial<Pick<SignatureInput, "
21
20
  * });
22
21
  */
23
22
  export default class SignatureInput extends Input {
24
- /** @internal */
23
+ /** @since 5.1 */
25
24
  constructor(properties?: SignatureInputProperties);
26
25
  /**
27
26
  * The supported input methods used to attach a signature.
28
27
  *
29
28
  * @default "any"
30
- * @internal
29
+ * @since 5.1
31
30
  */
32
31
  accessor inputMethod: InputMethod;
33
32
  /**
34
33
  * The input type identifier. Valid value of this property is "signature"
35
34
  *
36
- * @internal
37
- * @since 5.0
35
+ * @since 5.1
38
36
  */
39
37
  get type(): "signature";
40
38
  }