@arcgis/core 6.0.0-next.43 → 6.0.0-next.44

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 (706) hide show
  1. package/WebMap.d.ts +9 -1
  2. package/WebMap.js +1 -1
  3. package/WebScene.js +1 -1
  4. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.d.ts +3 -1
  5. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.js +1 -1
  6. package/applications/Components/OrientedImageryViewer/VideoFeatureCache.js +2 -0
  7. package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +2 -1
  8. package/applications/Components/OrientedImageryViewer/galleryUtils.js +1 -1
  9. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +2 -0
  10. package/applications/Components/OrientedImageryViewer/imageUtils.d.ts +756 -0
  11. package/applications/Components/OrientedImageryViewer/imageUtils.js +2 -0
  12. package/applications/Components/OrientedImageryViewer/measurementUtils.d.ts +15 -0
  13. package/applications/Components/OrientedImageryViewer/measurementUtils.js +2 -0
  14. package/applications/Components/OrientedImageryViewer/queryFeatures.js +2 -0
  15. package/applications/Components/OrientedImageryViewer/shared/ImageMeasurementWorker.js +2 -0
  16. package/applications/Components/OrientedImageryViewer/shared/constants.js +2 -0
  17. package/applications/Components/OrientedImageryViewer/shared/featureCoverage.js +2 -0
  18. package/applications/Components/OrientedImageryViewer/shared/galleryUtils.js +2 -0
  19. package/applications/Components/OrientedImageryViewer/shared/imageMeasurementWorkerUtils.js +2 -0
  20. package/applications/Components/OrientedImageryViewer/shared/navigation/queries.js +2 -0
  21. package/applications/Components/OrientedImageryViewer/shared/navigation/utils.js +2 -0
  22. package/applications/Components/OrientedImageryViewer/shared/panoramicImageProperties.js +2 -0
  23. package/applications/Components/OrientedImageryViewer/shared/services/ImageMeasurementService.js +2 -0
  24. package/applications/Components/OrientedImageryViewer/shared/services/SuperimposeService.js +2 -0
  25. package/applications/Components/OrientedImageryViewer/shared/services/TransformationService.js +2 -0
  26. package/applications/Components/OrientedImageryViewer/shared/support/NonPanoramicMedia.js +2 -0
  27. package/applications/Components/OrientedImageryViewer/shared/support/dataCaptureUtils.js +2 -0
  28. package/applications/Components/OrientedImageryViewer/shared/support/geometryUtils.js +2 -0
  29. package/applications/Components/OrientedImageryViewer/shared/support/panConstraint.js +2 -0
  30. package/applications/Components/OrientedImageryViewer/shared/support/resolveMediaProps.js +2 -0
  31. package/applications/Components/OrientedImageryViewer/shared/support/superimposeUtils.js +2 -0
  32. package/applications/Components/OrientedImageryViewer/shared/support/typeUtils.js +2 -0
  33. package/applications/Components/OrientedImageryViewer/shared/support/urlUtils.js +2 -0
  34. package/applications/Components/OrientedImageryViewer/shared/symbols.js +2 -0
  35. package/applications/Components/OrientedImageryViewer/shared/utils.js +2 -0
  36. package/applications/Components/OrientedImageryViewer/videoUtils.d.ts +15 -0
  37. package/applications/Components/OrientedImageryViewer/videoUtils.js +2 -0
  38. package/applications/Components/testUtils.d.ts +9 -0
  39. package/applications/Components/testUtils.js +1 -1
  40. package/applications/SceneViewer/sceneViewerUtils.d.ts +117 -1
  41. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  42. package/arcade/Feature.js +1 -1
  43. package/arcade/arcadeAsyncRuntime.js +1 -1
  44. package/arcade/arcadeCompiler.js +4 -4
  45. package/arcade/arcadeRuntime.js +1 -1
  46. package/arcade/compilerUtils.js +1 -1
  47. package/arcade/featureSetUtils.js +1 -1
  48. package/arcade/featureset/support/sqlUtils.js +1 -1
  49. package/arcade/functions/convertdirection.js +1 -1
  50. package/arcade/functions/hash.js +1 -1
  51. package/arcade/functions/string.js +1 -1
  52. package/arcade/geometry/isSelfIntersecting.js +1 -1
  53. package/arcade/treeAnalysis.js +1 -1
  54. package/arcgisGlobal.d.ts +6 -0
  55. package/assets/esri/core/workers/RemoteClient.js +1 -1
  56. package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +1 -0
  57. package/assets/esri/core/workers/chunks/{fdffefd7de540272a8a6.js → 02feb2550b6878e62e2d.js} +1 -1
  58. package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +1 -0
  59. package/assets/esri/core/workers/chunks/{3ec3589f6e74d7cb87cf.js → 090a7d0b0128d20879be.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{a33ba23aee3f8f40200f.js → 0ac4a3029ba17a9e2492.js} +1 -1
  61. package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +1 -0
  62. package/assets/esri/core/workers/chunks/{18dbee576b7b9dbe69fb.js → 0b480583373b69773333.js} +1 -1
  63. package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +1 -0
  64. package/assets/esri/core/workers/chunks/0caaa03659f4f4e8df03.js +1 -0
  65. package/assets/esri/core/workers/chunks/{3de07326da4c47cd2aab.js → 0dc1ac5531f7c8854686.js} +1 -1
  66. package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +1 -0
  67. package/assets/esri/core/workers/chunks/{2294254af2c6afb560ee.js → 11e313dfca2579e68419.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{cadd60fa4370284c7ae3.js → 13b40a611224ff5f4697.js} +1 -1
  69. package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +1 -0
  70. package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +1 -0
  71. package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +1 -0
  72. package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +1 -0
  73. package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +1 -0
  74. package/assets/esri/core/workers/chunks/{804606b194dc9e71d088.js → 1ca9f823caff691e964d.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{8f4fba4d2339c91c8b3f.js → 1d9b0db37d5f3819ffca.js} +1 -1
  76. package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +1 -0
  77. package/assets/esri/core/workers/chunks/{edd36a1fc80b1d29907e.js → 21939ef53bc71b42370f.js} +1 -1
  78. package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +1 -0
  79. package/assets/esri/core/workers/chunks/{81b9894e81cce3490984.js → 2515ce2ef279cdd4d5fa.js} +1 -1
  80. package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +1 -0
  81. package/assets/esri/core/workers/chunks/{45b5a61c4e9fbd9ca0b3.js → 27f0bbde1e9fa3f06d46.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{d51bb11baadc741c46bc.js → 29a437a2b7b3a9b3e104.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{070684943698fa43c2b4.js → 2a224bc845c9bf682c54.js} +1 -1
  84. package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +1 -0
  85. package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +1 -0
  86. package/assets/esri/core/workers/chunks/{bc38def1983089514e4b.js → 2e9d2f0a4e3c84d2ac2e.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{9fe1812aad6e566aea31.js → 30c5b584e8658b2b3607.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{ae6dc159be974ca0e8da.js → 32ba94e59b411d3ff063.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{67efdd296007a809586c.js → 3463b52d633a9336af28.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{864194927d05ebc4cc31.js → 35426786de409d42a87f.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{898359be6996fd9763b8.js → 377158a19c9d6ef11387.js} +1 -1
  92. package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +1 -0
  93. package/assets/esri/core/workers/chunks/{ca2adcbcf44454484fd5.js → 3a295fab549ae3caf9df.js} +1 -1
  94. package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +1 -0
  95. package/assets/esri/core/workers/chunks/{fd031150d3a7f896e6b3.js → 3cbb3c4e0e60a874ac6d.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{50763ea061d5fb3f2e49.js → 4136c4de42b8818e2710.js} +1 -1
  97. package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +1 -0
  98. package/assets/esri/core/workers/chunks/{0cfdeb53fb7d5532cf01.js → 425347186c279bcc595c.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{6ccf9535013fe672c93b.js → 434a7ef5b25d83593b50.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{4fe10650ba3cd30aa9a2.js → 46d0db736c6e7decbcf6.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{cca8bd07bcd1d267a2e8.js → 489b37c459e1af116aeb.js} +1 -1
  102. package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +1 -0
  103. package/assets/esri/core/workers/chunks/{bfb8fc6b940bd5510e29.js → 4eab4e74c6a479c5f930.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{5fd4d3cb3c9350131a59.js → 4f8a915795f107b772c5.js} +1 -1
  105. package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +1 -0
  106. package/assets/esri/core/workers/chunks/{344f5334ad95c7974349.js → 5744c7350e4e2eb73aa9.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{8d3e92a3367a3ddc02bd.js → 57e0bf4be8a166d5b1eb.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{3dd49f910834a2fb2142.js → 5b3db2c40feaefb7cbc0.js} +1 -1
  109. package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +1 -0
  110. package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +1 -0
  111. package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +1 -0
  112. package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +1 -0
  113. package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +1 -0
  114. package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +1 -0
  115. package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{6b4c3411f63a9ad9354c.js → 72020d86e3fc7ecc139f.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{9630234267098115de4d.js → 73ab4f0275a85b9671ec.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{449a2dee17b54946f245.js → 7b7208237123e948f170.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{5529831dd891382c79df.js → 7d866911d1171d25ca78.js} +1 -1
  120. package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +1 -0
  121. package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +1 -0
  122. package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +1 -0
  123. package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +1 -0
  124. package/assets/esri/core/workers/chunks/{ca204c110438f7315790.js → 834bbda7719b04301f74.js} +1 -1
  125. package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +1 -0
  126. package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +1 -0
  127. package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +1 -0
  128. package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +1 -0
  129. package/assets/esri/core/workers/chunks/{ef274db3fa260eadf371.js → 8cddfdbab3ad3809462f.js} +1 -1
  130. package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +1 -0
  131. package/assets/esri/core/workers/chunks/{076e8d2e08ff2a013736.js → 8f1dd383502432d8a039.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{78a69594c82d37aecbfb.js → 90a7cd7564f2a92199cc.js} +1 -1
  133. package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +1 -0
  134. package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +1 -0
  135. package/assets/esri/core/workers/chunks/{be04f40f8b403befd0ef.js → 9bb90097368b200fa730.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{f7398cfd8bbd041bd635.js → 9bf77f92760aacbd636f.js} +1 -1
  137. package/assets/esri/core/workers/chunks/{237a1f68a0efbfe5b77c.js → 9e7622379d777ea88018.js} +1 -1
  138. package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +1 -0
  139. package/assets/esri/core/workers/chunks/{564d7f2e58fbc16853c0.js → a8bedc53d4a316953108.js} +1 -1
  140. package/assets/esri/core/workers/chunks/{f2dab9fcd90ce38ae3d1.js → a8fbef765a6fb68e1115.js} +1 -1
  141. package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +1 -0
  142. package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +1 -0
  143. package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +1 -0
  144. package/assets/esri/core/workers/chunks/{cb1642ea8b66231cbfb5.js → af70a81620203c030f5b.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{efff269424d76f1dbb15.js → b10850c48f4eee60b8a9.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{f11eaab5354cc6aa9569.js → b25104337f2495a4296a.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{784d6c6949284ed6e10b.js → b3707d2cd2f4b2f70889.js} +1 -1
  148. package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +1 -0
  149. package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +1 -0
  150. package/assets/esri/core/workers/chunks/{8ebaf5754e86a45b0497.js → be11cec9979ed5e9738e.js} +1 -1
  151. package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +1 -0
  152. package/assets/esri/core/workers/chunks/c420ab79d85e5dbddb0b.js +29 -0
  153. package/assets/esri/core/workers/chunks/{14ed0c34b910eba3434e.js → c473c8b480de9802711b.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{b3dbcf43f136ba2dadc5.js → c67ce7896789ac7275b2.js} +1 -1
  155. package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +1 -0
  156. package/assets/esri/core/workers/chunks/{394ae3199c78a94c6a2a.js → c85336a50a4994a2a7eb.js} +1 -1
  157. package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +1 -0
  158. package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +1 -0
  159. package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +1 -0
  160. package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +1 -0
  161. package/assets/esri/core/workers/chunks/{58d10e0b35968680fd9f.js → d31f6598b76380e8688a.js} +1 -1
  162. package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +1 -0
  163. package/assets/esri/core/workers/chunks/{ad94f54b4c88b3a047bc.js → d4028536542db8b623cc.js} +1 -1
  164. package/assets/esri/core/workers/chunks/{cb6fb04fe5c8d90d4196.js → d4fe26716c4eca13d493.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{c86d3af148b28ded5875.js → d64054cd6865d3a1af78.js} +38 -44
  166. package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +1 -0
  167. package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +1 -0
  168. package/assets/esri/core/workers/chunks/{7a8ca15271e42b6131ac.js → d8b9d14f8d3e82ad26dc.js} +1 -1
  169. package/assets/esri/core/workers/chunks/{63c4412c16d8a44a5668.js → d99d5aa04e2d74ef57a7.js} +1 -1
  170. package/assets/esri/core/workers/chunks/{dfd4782b11d6fdca0492.js → d9e75266ac28f934eb61.js} +1 -1
  171. package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +1 -0
  172. package/assets/esri/core/workers/chunks/{0c948ad4572000218afc.js → dc9792b2aa55975b8a95.js} +1 -1
  173. package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +1 -0
  174. package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +1 -0
  175. package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +1 -0
  176. package/assets/esri/core/workers/chunks/{1c378d489c5402888f76.js → e1f5da51115472347b55.js} +1 -1
  177. package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +1 -0
  178. package/assets/esri/core/workers/chunks/{406f24ec13eb30d43405.js → e2ebf0ea3af2e6907987.js} +1 -1
  179. package/assets/esri/core/workers/chunks/{ffe2077a9df7c838ea27.js → e7719bfbc5875a515a2b.js} +1 -1
  180. package/assets/esri/core/workers/chunks/{26ceb0ff8d93dbb9b84f.js → ec88631b5033c19f569e.js} +1 -1
  181. package/assets/esri/core/workers/chunks/{a2cc53ad1a514167e4b8.js → ef8f9b61b829c3bdf999.js} +1 -1
  182. package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +1 -0
  183. package/assets/esri/core/workers/chunks/{f08a2a262a3b55149396.js → f0b897319ca8578df63f.js} +1 -1
  184. package/assets/esri/core/workers/chunks/{acea0946049136578354.js → f1e87e3ff65d8594e6b3.js} +1 -1
  185. package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +1 -0
  186. package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +1 -0
  187. package/assets/esri/core/workers/chunks/{1f9d6180a96d557838e9.js → f4d714d0a1a513861704.js} +1 -1
  188. package/assets/esri/core/workers/chunks/{14ded73842154d91ef4e.js → f7f73de8c63924e347ab.js} +1 -1
  189. package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +1 -0
  190. package/assets/esri/core/workers/chunks/{69f6d5997b8ff1326e39.js → fa5d4b9a098441ebf505.js} +1 -1
  191. package/assets/esri/core/workers/chunks/{9c3db7a7c05fa0e81f0a.js → fc9d66fe2cc9e2d31964.js} +1 -1
  192. package/chunks/Bufferer-CclWhXVb.js +1 -1
  193. package/chunks/ColorMaterial.glsl.js +26 -16
  194. package/chunks/Component.glsl.js +0 -1
  195. package/chunks/CypherParser.js +1 -1
  196. package/chunks/DefaultMaterial.glsl.js +1 -1
  197. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  198. package/chunks/EdgeShader.glsl.js +1 -1
  199. package/chunks/Envelope.js +1 -1
  200. package/chunks/Envelope2D.js +1 -1
  201. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  202. package/chunks/GeodeticUtils.js +1 -1
  203. package/chunks/Geometry.js +1 -1
  204. package/chunks/Jpg.js +1 -1
  205. package/chunks/MultiPathImpl.js +1 -1
  206. package/chunks/OperatorAffineTransform.js +1 -1
  207. package/chunks/OperatorClip.js +1 -1
  208. package/chunks/OperatorCrosses.js +1 -1
  209. package/chunks/OperatorCut.js +1 -1
  210. package/chunks/OperatorDensify.js +1 -1
  211. package/chunks/OperatorDistance.js +1 -1
  212. package/chunks/OperatorEquals.js +1 -1
  213. package/chunks/OperatorGeneralize.js +1 -1
  214. package/chunks/OperatorGeodesicBuffer.js +1 -1
  215. package/chunks/OperatorGeodeticArea.js +1 -1
  216. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  217. package/chunks/OperatorGeodeticDistance.js +1 -1
  218. package/chunks/OperatorGeodeticLength.js +1 -1
  219. package/chunks/OperatorGraphicBuffer.js +1 -1
  220. package/chunks/OperatorIntegrate.js +1 -1
  221. package/chunks/OperatorIntersects.js +1 -1
  222. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  223. package/chunks/OperatorOverlaps.js +1 -1
  224. package/chunks/OperatorProximity.js +1 -1
  225. package/chunks/OperatorProximityGeodesic.js +1 -1
  226. package/chunks/OperatorRelate.js +1 -1
  227. package/chunks/OperatorShapePreservingLength.js +1 -1
  228. package/chunks/OperatorShapePreservingProject.js +1 -1
  229. package/chunks/OperatorSimplifyOGC.js +1 -1
  230. package/chunks/OperatorTouches.js +1 -1
  231. package/chunks/OperatorWithin.js +1 -1
  232. package/chunks/Point2D.js +1 -1
  233. package/chunks/RealisticTree.glsl.js +1 -1
  234. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  235. package/chunks/Transformation2D.js +1 -1
  236. package/chunks/UnitFactory.js +1 -1
  237. package/chunks/antlr4.web.js +3 -3
  238. package/chunks/arcgis-knowledge-client-core-simd.js +3 -3
  239. package/chunks/arcgis-knowledge-client-core.js +3 -3
  240. package/chunks/basis_encoder.js +2 -2
  241. package/chunks/basis_transcoder.js +2 -2
  242. package/chunks/draco_mesh_decoder.js +2 -2
  243. package/chunks/dxt_encoder.js +3 -3
  244. package/chunks/earcut.js +1 -1
  245. package/chunks/i3s.js +2 -2
  246. package/chunks/index.js +2 -2
  247. package/chunks/lclayout.js +2 -2
  248. package/chunks/lerc-wasm.js +1 -1
  249. package/chunks/libtess-f32.js +1 -1
  250. package/chunks/libtess-f64.js +1 -1
  251. package/chunks/lyr3DMain.js +1 -1
  252. package/chunks/lyr3DWorker.js +1 -1
  253. package/chunks/parquet.js +1 -1
  254. package/chunks/pe-wasm.js +1 -1
  255. package/chunks/projector.js +1 -1
  256. package/chunks/qb3-wasm.js +1 -1
  257. package/chunks/text.js +1 -1
  258. package/chunks/urlUtils.js +2 -0
  259. package/chunks/vxlLayer.js +1 -1
  260. package/config.js +1 -1
  261. package/core/Accessor.js +1 -1
  262. package/core/Clonable.js +1 -1
  263. package/core/Collection.js +1 -1
  264. package/core/MD5.js +1 -1
  265. package/core/MemCache.js +1 -1
  266. package/core/ObjectPool.js +1 -1
  267. package/core/RandomLCG.js +1 -1
  268. package/core/accessorSupport/decorators/subclass.js +1 -1
  269. package/core/accessorSupport/diffUtils.js +1 -1
  270. package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
  271. package/core/accessorSupport/get.js +1 -1
  272. package/core/colorUtils.js +1 -1
  273. package/core/has.js +1 -1
  274. package/core/image/apng.js +1 -1
  275. package/core/lang.js +1 -1
  276. package/core/object.js +1 -1
  277. package/core/pbf.js +1 -1
  278. package/core/sql/StandardizedFunctions.js +1 -1
  279. package/core/string.js +1 -1
  280. package/core/typedArrayUtil.js +1 -1
  281. package/core/urlUtils.js +1 -1
  282. package/core/workers/RemoteClient.js +1 -1
  283. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  284. package/geometry/Circle.js +1 -1
  285. package/geometry/SpatialReference.d.ts +12 -3
  286. package/geometry/geodesicUtils.js +1 -1
  287. package/geometry/geometryEngine.js +1 -1
  288. package/geometry/libtess.js +1 -1
  289. package/geometry/operators/extendOperator.js +1 -1
  290. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  291. package/geometry/operators/geodeticLengthOperator.js +1 -1
  292. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  293. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  294. package/geometry/operators/gx/operatorBoundary.js +1 -1
  295. package/geometry/operators/gx/operatorBuffer.js +1 -1
  296. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  297. package/geometry/operators/gx/operatorDifference.js +1 -1
  298. package/geometry/operators/gx/operatorIntersection.js +1 -1
  299. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  300. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  301. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  302. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  303. package/geometry/operators/gx/operatorOffset.js +1 -1
  304. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  305. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  306. package/geometry/operators/gx/operatorSimplify.js +1 -1
  307. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  308. package/geometry/operators/intersectionOperator.js +1 -1
  309. package/geometry/operators/isNearOperator.js +1 -1
  310. package/geometry/operators/reshapeOperator.js +1 -1
  311. package/geometry/operators/simplifyOperator.js +1 -1
  312. package/geometry/operators/support/jsonConverter.js +2 -2
  313. package/geometry/projectionUtils.js +1 -1
  314. package/geometry/support/buffer/types.js +1 -1
  315. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  316. package/geometry/support/frustumPlanes.js +1 -1
  317. package/geometry/support/heightModelInfoUtils.js +1 -1
  318. package/geometry/support/intersectsBase.js +1 -1
  319. package/geometry/support/meshUtils/External.js +1 -1
  320. package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
  321. package/geometry/support/plane.js +1 -1
  322. package/interfaces.d.ts +16 -41
  323. package/kernel.js +1 -1
  324. package/layers/GaussianSplatLayer.d.ts +1 -9
  325. package/layers/GaussianSplatLayer.js +1 -1
  326. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  327. package/layers/IntegratedMesh3DTilesLayer.d.ts +1 -5
  328. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  329. package/layers/IntegratedMeshLayer.d.ts +25 -2
  330. package/layers/IntegratedMeshLayer.js +1 -1
  331. package/layers/LinkChartLayer.js +1 -1
  332. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  333. package/layers/MapNotesLayer.js +1 -1
  334. package/layers/ParquetLayer.d.ts +0 -32
  335. package/layers/ParquetLayer.js +1 -1
  336. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
  337. package/layers/graphics/OptimizedGeometry.js +1 -1
  338. package/layers/graphics/applyEditsUtils.js +1 -1
  339. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  340. package/layers/graphics/data/FeatureIdInfo.js +1 -1
  341. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  342. package/layers/graphics/dehydratedFeatures.js +1 -1
  343. package/layers/graphics/sources/csv/csv.js +2 -2
  344. package/layers/graphics/sources/geojson/geojson.js +1 -1
  345. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  346. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  347. package/layers/mixins/SceneService.js +1 -1
  348. package/layers/orientedImagery/core/NavigationNode.js +2 -0
  349. package/layers/orientedImagery/core/imageNavigationUtils.d.ts +2 -0
  350. package/layers/orientedImagery/core/imageNavigationUtils.js +2 -0
  351. package/layers/orientedImagery/core/utils.js +1 -1
  352. package/layers/orientedImagery/queries.js +1 -1
  353. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  354. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  355. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  356. package/layers/orientedImagery/transformations/utils.js +1 -1
  357. package/layers/orientedImagery/types.d.ts +3 -0
  358. package/layers/raster/datasets/RasterFactory.js +1 -1
  359. package/layers/raster/datasets/xmlUtilities.js +1 -1
  360. package/layers/raster/formats/Lerc.js +1 -1
  361. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  362. package/layers/raster/functions/convolutionUtils.js +1 -1
  363. package/layers/raster/functions/customBandIndexUtils.js +1 -1
  364. package/layers/support/I3SIntegratedMeshElevationQuery.js +1 -1
  365. package/layers/support/MosaicRule.js +1 -1
  366. package/layers/support/PixelBlock.js +1 -1
  367. package/layers/support/SpriteSource.js +1 -1
  368. package/layers/support/arcgisLayers.js +1 -1
  369. package/layers/support/csvUtils.js +1 -1
  370. package/layers/support/featureLayerUtils.js +1 -1
  371. package/layers/support/fieldUtils.js +1 -1
  372. package/layers/support/floorFilterUtils.js +1 -1
  373. package/layers/support/layersCreator.js +1 -1
  374. package/layers/support/tiles3DUtils.js +1 -1
  375. package/layers/support/wmtsUtils.js +1 -1
  376. package/layers/video/VideoController.js +21 -21
  377. package/libs/ajv/ajv.bundle-wrapper.js +1 -1
  378. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  379. package/networks/Network.js +1 -1
  380. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  381. package/package.json +2 -2
  382. package/parcelFabric/ParcelFabric.d.ts +760 -0
  383. package/parcelFabric/ParcelFabric.js +2 -0
  384. package/parcelFabric/support/ParcelJobInfo.d.ts +97 -0
  385. package/parcelFabric/support/ParcelJobInfo.js +2 -0
  386. package/parcelFabric/support/ParcelParameters.d.ts +48 -0
  387. package/parcelFabric/support/ParcelParameters.js +2 -0
  388. package/popup/FeatureModel.d.ts +2 -2
  389. package/popup/FeaturesModel.d.ts +2 -2
  390. package/popup/support/featureUtils.js +1 -1
  391. package/portal/support/loadUtils.js +1 -1
  392. package/portal/support/portalLayers.js +1 -1
  393. package/renderers/support/RasterSymbolizer.js +1 -1
  394. package/renderers/support/rendererConversion.js +1 -1
  395. package/request/queue.js +1 -1
  396. package/rest/geoprocessor/utils.js +1 -1
  397. package/rest/parcelFabric/analyzeByLeastSquaresAdjustment.js +2 -0
  398. package/rest/parcelFabric/applyLeastSquaresAdjustment.js +2 -0
  399. package/rest/parcelFabric/assignFeaturesToRecord.js +2 -0
  400. package/rest/parcelFabric/build.js +2 -0
  401. package/rest/parcelFabric/changeParcelType.js +2 -0
  402. package/rest/parcelFabric/clip.js +2 -0
  403. package/rest/parcelFabric/copyLinesToParcelType.js +2 -0
  404. package/rest/parcelFabric/createSeeds.js +2 -0
  405. package/rest/parcelFabric/deleteParcels.js +2 -0
  406. package/rest/parcelFabric/divide.js +2 -0
  407. package/rest/parcelFabric/duplicateParcels.js +2 -0
  408. package/rest/parcelFabric/merge.js +2 -0
  409. package/rest/parcelFabric/mergeParcelPoints.js +2 -0
  410. package/rest/parcelFabric/reassignFeaturesToRecord.js +2 -0
  411. package/rest/parcelFabric/reconstructFromSeeds.js +2 -0
  412. package/rest/parcelFabric/setParcelLineLabelPosition.js +2 -0
  413. package/rest/parcelFabric/shrinkToSeed.js +2 -0
  414. package/rest/parcelFabric/transferParcel.js +2 -0
  415. package/rest/parcelFabric/updateParcelHistory.js +2 -0
  416. package/rest/parcelFabric/utils.js +2 -0
  417. package/rest/support/JobInfo.js +1 -1
  418. package/rest/support/printTaskUtils.js +1 -1
  419. package/smartMapping/heuristics/scaleRange.js +1 -1
  420. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  421. package/smartMapping/renderers/color.js +1 -1
  422. package/smartMapping/renderers/location.js +1 -1
  423. package/smartMapping/renderers/support/utils.js +1 -1
  424. package/smartMapping/renderers/univariateColorSize.js +1 -1
  425. package/support/basemapUtils.js +1 -1
  426. package/symbols/cim/utils.js +1 -1
  427. package/symbols/support/cimSymbolUtils.js +1 -1
  428. package/undoredo/support/ServiceVersionInfo.js +1 -1
  429. package/views/2d/engine/flow/dataUtils.js +1 -1
  430. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  431. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  432. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  433. package/views/2d/engine/webgl/TextureManager.js +1 -1
  434. package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +1 -1
  435. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  436. package/views/2d/engine/webgl/definitions.js +1 -1
  437. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  438. package/views/2d/engine/webgl/number.js +1 -1
  439. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  440. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  441. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  442. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  443. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  444. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  445. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  446. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  447. package/views/2d/layers/features/support/ComputedAttributeStorage.js +1 -1
  448. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  449. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  450. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  451. package/views/2d/layers/features/support/StaticBitSet.js +1 -1
  452. package/views/2d/layers/features/support/rendererUtils.js +1 -1
  453. package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
  454. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  455. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  456. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  457. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  458. package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
  459. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
  460. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  461. package/views/3d/glTF/internal/Resource.js +1 -1
  462. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  463. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  464. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  465. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  466. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  467. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  468. package/views/3d/interactive/manipulatorUtils.js +1 -1
  469. package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
  470. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  471. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  472. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  473. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  474. package/views/3d/layers/I3SMeshView3D.js +1 -1
  475. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  476. package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +1 -1
  477. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
  478. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  479. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  480. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  481. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  482. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  483. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  484. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  485. package/views/3d/layers/graphics/extrudePolygon.js +1 -1
  486. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  487. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  488. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  489. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  490. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  491. package/views/3d/layers/i3s/IDBCache.js +1 -1
  492. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  493. package/views/3d/layers/support/patternUtils.js +1 -1
  494. package/views/3d/support/PBFDecoder.js +1 -1
  495. package/views/3d/support/cameraUtils.js +1 -1
  496. package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
  497. package/views/3d/support/meshProcessing.js +1 -1
  498. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  499. package/views/3d/support/sunUtils.js +1 -1
  500. package/views/3d/terrain/PatchRenderData.js +1 -1
  501. package/views/3d/terrain/TerrainRenderer.js +1 -1
  502. package/views/3d/terrain/TerrainSurface.js +1 -1
  503. package/views/3d/webgl/RenderCamera.js +1 -1
  504. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  505. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  506. package/views/3d/webgl-engine/collections/Component/ObjectParameters.js +1 -1
  507. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  508. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -6
  509. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -4
  510. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -19
  511. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +16 -15
  512. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  513. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  514. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +5 -5
  515. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  516. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  517. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  518. package/views/3d/webgl-engine/lib/Program.js +1 -1
  519. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  520. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  521. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  522. package/views/3d/webgl-engine/lib/edgeRendering/EdgeUtil.glsl.js +1 -2
  523. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  524. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  525. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  526. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  527. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  528. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  529. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  530. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  531. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  532. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  533. package/views/draw/DrawManipulator3D.js +1 -1
  534. package/views/draw/support/managers/TooltipManager.js +1 -1
  535. package/views/draw/support/reshapeUtils.js +1 -1
  536. package/views/interactive/options/SnappingOptions.d.ts +3 -2
  537. package/views/interactive/sketch/constraints.js +1 -1
  538. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  539. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +6 -3
  540. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  541. package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
  542. package/views/selection/SelectionOperation.js +1 -1
  543. package/views/support/GeometryWorker.js +1 -1
  544. package/views/support/flow/dataUtils.js +1 -1
  545. package/views/support/screenUtils.js +1 -1
  546. package/views/support/screenshotUtils.js +1 -1
  547. package/views/support/waitForResources.js +1 -1
  548. package/views/webgl/InstanceCounter.js +1 -1
  549. package/views/webgl/Program.js +1 -1
  550. package/views/webgl/RenderingContext.js +1 -1
  551. package/webdoc/support/webdocLoadUtils.js +1 -1
  552. package/webscene/spec-certification/api.js +1 -1
  553. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
  554. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  555. package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +2 -2
  556. package/widgets/BasemapLayerList/types.d.ts +3 -3
  557. package/widgets/BasemapLayerList.d.ts +2 -2
  558. package/widgets/BasemapLayerList.js +1 -1
  559. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  560. package/widgets/BatchAttributeForm.js +1 -1
  561. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
  562. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  563. package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +2 -2
  564. package/widgets/CatalogLayerList/types.d.ts +3 -3
  565. package/widgets/CatalogLayerList.d.ts +3 -3
  566. package/widgets/CatalogLayerList.js +1 -1
  567. package/widgets/Editor/workflowUtils.js +1 -1
  568. package/widgets/Editor.js +1 -1
  569. package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
  570. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  571. package/widgets/FeatureForm.js +1 -1
  572. package/widgets/LayerList/LayerListViewModel.js +1 -1
  573. package/widgets/LayerList/LayerListVisibleElements.d.ts +2 -2
  574. package/widgets/LayerList/ListItem.d.ts +1 -1
  575. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  576. package/widgets/LayerList/types.d.ts +1 -1
  577. package/widgets/Measurement.js +1 -1
  578. package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
  579. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  580. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  581. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  582. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  583. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  584. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  585. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  586. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  587. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  588. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  589. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  590. package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
  591. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  592. package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
  593. package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
  594. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  595. package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
  596. package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
  597. package/widgets/OrientedImageryViewer/constants.js +1 -1
  598. package/widgets/OrientedImageryViewer/featureCoverage.js +1 -1
  599. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  600. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  601. package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +1 -1
  602. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  603. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  604. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  605. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  606. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  607. package/widgets/OrientedImageryViewer/panoramicImageProperties.js +1 -1
  608. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  609. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  610. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  611. package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
  612. package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +1 -1
  613. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
  614. package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
  615. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  616. package/widgets/OrientedImageryViewer/support/navigationViewStateUtils.js +1 -1
  617. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  618. package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +1 -1
  619. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  620. package/widgets/OrientedImageryViewer/support/typeUtils.js +1 -1
  621. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  622. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  623. package/widgets/OrientedImageryViewer/types.d.ts +10 -0
  624. package/widgets/OrientedImageryViewer/utils.js +1 -1
  625. package/widgets/OrientedImageryViewer.js +1 -1
  626. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  627. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  628. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  629. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  630. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  631. package/widgets/Sketch/support/PluginManager.js +1 -1
  632. package/widgets/TableList/ListItem.d.ts +2 -2
  633. package/widgets/TableList/ListItemPanel.d.ts +4 -4
  634. package/widgets/TableList/TableListViewModel.d.ts +4 -4
  635. package/widgets/TableList/TableListViewModel.js +1 -1
  636. package/widgets/TableList/TableListVisibleElements.d.ts +2 -2
  637. package/widgets/TableList/types.d.ts +5 -5
  638. package/widgets/TableList.d.ts +3 -3
  639. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  640. package/widgets/UtilityNetworkTrace.js +1 -1
  641. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +0 -1
  642. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +0 -1
  643. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +0 -1
  644. package/assets/esri/core/workers/chunks/1e5c5029b0653047a769.js +0 -1
  645. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +0 -1
  646. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +0 -1
  647. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +0 -1
  648. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +0 -1
  649. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +0 -1
  650. package/assets/esri/core/workers/chunks/361d620b3f91868b1490.js +0 -1
  651. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +0 -1
  652. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +0 -1
  653. package/assets/esri/core/workers/chunks/3a90b6eafa92f1a68ac5.js +0 -1
  654. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +0 -1
  655. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +0 -1
  656. package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +0 -1
  657. package/assets/esri/core/workers/chunks/47f0c717acc2c33ea670.js +0 -1
  658. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +0 -1
  659. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +0 -1
  660. package/assets/esri/core/workers/chunks/4e03aa5518d46a36661c.js +0 -1
  661. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +0 -1
  662. package/assets/esri/core/workers/chunks/59295b99bdff4045a0e7.js +0 -1
  663. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +0 -1
  664. package/assets/esri/core/workers/chunks/5d908a823b324bafda1e.js +0 -1
  665. package/assets/esri/core/workers/chunks/5dea74fe52583e77f3ce.js +0 -1
  666. package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +0 -29
  667. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +0 -1
  668. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +0 -1
  669. package/assets/esri/core/workers/chunks/6f3732e7ba2d031ba789.js +0 -1
  670. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +0 -1
  671. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +0 -1
  672. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +0 -1
  673. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +0 -1
  674. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +0 -1
  675. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +0 -1
  676. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +0 -1
  677. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +0 -1
  678. package/assets/esri/core/workers/chunks/919a6aedf38e9631ee09.js +0 -1
  679. package/assets/esri/core/workers/chunks/9869c696e6321c8db0a9.js +0 -1
  680. package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +0 -1
  681. package/assets/esri/core/workers/chunks/a332e31165b65a6fb92e.js +0 -1
  682. package/assets/esri/core/workers/chunks/a4d3944700f1cc240176.js +0 -1
  683. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +0 -1
  684. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +0 -1
  685. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +0 -1
  686. package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +0 -1
  687. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +0 -1
  688. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +0 -1
  689. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +0 -1
  690. package/assets/esri/core/workers/chunks/c7f49493bd548d5dc1e0.js +0 -1
  691. package/assets/esri/core/workers/chunks/cb62326b6526cde429c1.js +0 -1
  692. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +0 -1
  693. package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +0 -1
  694. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +0 -1
  695. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +0 -1
  696. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +0 -1
  697. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +0 -1
  698. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +0 -1
  699. package/assets/esri/core/workers/chunks/eaf720dfdf6ceca31249.js +0 -1
  700. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +0 -1
  701. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +0 -1
  702. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +0 -1
  703. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +0 -1
  704. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +0 -1
  705. package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +0 -2
  706. package/widgets/OrientedImageryViewer/videoViewerUtils.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9407],{40124(t,e,o){o.d(e,{A:()=>Pt});var i,r=o(32198),s=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),u=o(17676),c=o(91429),y=o(78888),h=o(30524),m=o(93705),g=o(41227);let f=i=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new i({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"showNoDataRecords",void 0),f=i=(0,r.Cg)([(0,c.$K)("esri.popup.LayerOptions")],f);const w=f;var v,C=o(49852);let M=v=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new v({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,c.MZ)({type:[C.A],json:{write:!0}})],M.prototype,"orderByFields",void 0),M=v=(0,r.Cg)([(0,c.$K)("esri.popup.RelatedRecordsInfo")],M);const x=M;var F,Z=o(89893),I=o(84424);let j=F=class extends I.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new F({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,r.Cg)([(0,c.MZ)()],j.prototype,"creator",void 0),(0,r.Cg)([(0,c.MZ)()],j.prototype,"destroyer",void 0),(0,r.Cg)([(0,c.MZ)()],j.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],j.prototype,"type",void 0),j=F=(0,r.Cg)([(0,c.$K)("esri.popup.content.CustomContent")],j);const A=j;var N;let b=N=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new N({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],b.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],b.prototype,"expression",void 0),(0,r.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"returnType",void 0),b=N=(0,r.Cg)([(0,c.$K)("esri.popup.ElementExpressionInfo")],b);const S=b;var _;let R=_=class extends I.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new _({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:S,json:{write:!0}})],R.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=_=(0,r.Cg)([(0,c.$K)("esri.popup.content.ExpressionContent")],R);const O=R;var T=o(66159);let $=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"altText",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"caption",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.MediaInfo")],$);const K=$;var E,B=o(68197),k=o(56372);let J=E=class extends k.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new E({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,c.MZ)()],J.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"fieldName",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"tooltip",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"value",void 0),J=E=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],J);const q=J;var L;let D=L=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new L({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,c.MZ)({type:[B.A],json:{type:[[y.jz]],write:!0}})],D.prototype,"colors",void 0),(0,r.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],D.prototype,"fields",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"normalizeField",void 0),(0,r.Cg)([(0,c.MZ)({type:[q],json:{read:!1}})],D.prototype,"series",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"tooltipField",void 0),D=L=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValue")],D);const U=D;let W=class extends K{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:U,json:{write:{isRequired:!0}}})],W.prototype,"value",void 0),W=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.ChartMediaInfo")],W);const z=W,P=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var G;let V=G=class extends z{constructor(t){super(t),this.type="bar-chart"}clone(){return new G({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:P.write,isRequired:!0}}})],V.prototype,"type",void 0),V=G=(0,r.Cg)([(0,c.$K)("esri.popup.content.BarChartMediaInfo")],V);const H=V;var X;let Q=X=class extends z{constructor(t){super(t),this.type="column-chart"}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:P.write,isRequired:!0}}})],Q.prototype,"type",void 0),Q=X=(0,r.Cg)([(0,c.$K)("esri.popup.content.ColumnChartMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new tt({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],et.prototype,"linkURL",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],et.prototype,"sourceURL",void 0),et=tt=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ImageMediaInfoValue")],et);const ot=et;var it;let rt=it=class extends K{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new it({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],rt.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],rt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:ot,json:{write:{isRequired:!0}}})],rt.prototype,"value",void 0),rt=it=(0,r.Cg)([(0,c.$K)("esri.popup.content.ImageMediaInfo")],rt);const st=rt;var nt;let lt=nt=class extends z{constructor(t){super(t),this.type="line-chart"}clone(){return new nt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:P.write,isRequired:!0}}})],lt.prototype,"type",void 0),lt=nt=(0,r.Cg)([(0,c.$K)("esri.popup.content.LineChartMediaInfo")],lt);const at=lt;var pt;let dt=pt=class extends z{constructor(t){super(t),this.type="pie-chart"}clone(){return new pt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:P.write,isRequired:!0}}})],dt.prototype,"type",void 0),dt=pt=(0,r.Cg)([(0,c.$K)("esri.popup.content.PieChartMediaInfo")],dt);const ut=dt,ct={base:K,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":H,"column-chart":Y,"line-chart":at,"pie-chart":ut,image:st}};var yt,ht=o(36005),mt=o(43937);let gt=yt=class extends I.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?st.fromJSON(t):"barchart"===t.type?H.fromJSON(t):"columnchart"===t.type?Y.fromJSON(t):"linechart"===t.type?at.fromJSON(t):"piechart"===t.type?ut.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new yt((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,c.MZ)()],gt.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],gt.prototype,"attributes",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],gt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({types:[ct]})],gt.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,ht.w)("mediaInfos")],gt.prototype,"readMediaInfos",null),(0,r.Cg)([(0,mt.K)("mediaInfos")],gt.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],gt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],gt.prototype,"type",void 0),gt=yt=(0,r.Cg)([(0,c.$K)("esri.popup.content.MediaContent")],gt);const ft=gt;let wt=class extends((0,n.OU)(I.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],wt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],wt.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],wt.prototype,"displayType",void 0),(0,r.Cg)([(0,c.MZ)({type:[C.A],json:{write:!0}})],wt.prototype,"orderByFields",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],wt.prototype,"relationshipId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],wt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],wt.prototype,"type",void 0),wt=(0,r.Cg)([(0,c.$K)("esri.popup.content.RelationshipContent")],wt);const vt=wt;var Ct;let Mt=Ct=class extends I.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new Ct({text:this.text})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Mt.prototype,"text",void 0),(0,r.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Mt.prototype,"type",void 0),Mt=Ct=(0,r.Cg)([(0,c.$K)("esri.popup.content.TextContent")],Mt);const xt=Mt;var Ft=o(83342),Zt=o(93223);let It=class extends((0,n.OU)(I.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],It.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],It.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],It.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:[Ft.A],json:{write:!0}})],It.prototype,"associationTypes",void 0),(0,r.Cg)([(0,Zt.e)({utilityNetworkAssociations:"utility-network-associations"})],It.prototype,"type",void 0),It=(0,r.Cg)([(0,c.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],It);const jt=It;var At=o(51447),Nt=o(4902);let bt=class extends((0,Nt.s)(k.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,At.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,r.Cg)([(0,c.MZ)()],bt.prototype,"active",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"className",null),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"disabled",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"icon",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"indicator",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"visible",void 0),bt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionBase")],bt);const St=bt;var _t;let Rt=_t=class extends St{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new _t({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Rt.prototype,"image",void 0),Rt=_t=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionButton")],Rt);const Ot=Rt;var Tt;let $t=Tt=class extends St{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Tt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),(0,r.Cg)([(0,c.MZ)()],$t.prototype,"value",void 0),$t=Tt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionToggle")],$t);const Kt=$t;var Et;const Bt="relationships/",kt="expression/",Jt=l.A.ofType({key:"type",defaultKeyValue:"button",base:St,typeMap:{button:Ot,toggle:Kt}}),qt={base:null,key:"type",typeMap:{attachment:Z.A,media:ft,text:xt,expression:O,field:T.A,relationship:vt,utilityNetworkAssociations:jt}},Lt={base:null,key:"type",typeMap:{attachment:Z.A,media:ft,text:xt,expression:O,field:T.A,relationship:vt}},Dt={base:I.A,key:"type",typeMap:{media:ft,custom:A,text:xt,attachments:Z.A,fields:T.A,expression:O,relationship:vt,utilityNetworkAssociations:jt}},Ut=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...Ut,"utility-network-associations"]);let zt=class extends((0,n.OU)(a.o)){static{Et=s.P}constructor(t){super(t),this[Et]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(Dt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,u.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){let{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){let{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){let o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{let e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(let t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){let i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){let o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"==typeof t?e.description=t:Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Ut.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))}_writeFieldsContent(t,e,o){let i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;let r=e.fieldInfos;if(Array.isArray(r))for(let t of i){let e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||=!0}_writeRelationshipContent(t,e){let o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;let o=(0,p.o8)(t.mediaInfos);e.mediaInfos=Array.isArray(e.mediaInfos)?[...e.mediaInfos,...o]:o}_readPopupInfoElements(t,e,o){let i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(!o.mediaInfos&&e&&!i.mediaInfos&&(o.mediaInfos=e,i.mediaInfos=!0),ft.fromJSON(o)):"text"===o.type?(!o.text&&t&&!i.description&&(o.text=t,i.description=!0),xt.fromJSON(o)):"attachments"===o.type?Z.A.fromJSON(o):"fields"===o.type?T.A.fromJSON(o):"expression"===o.type?O.fromJSON(o):"relationship"===o.type?vt.fromJSON(o):"utilityNetworkAssociations"===o.type?jt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){let{field:e,order:o}=t;if(!e?.startsWith(Bt))return null;let i=e.replace(Bt,"").split("/");if(2!==i.length)return null;let r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?vt.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){let{order:o,field:i}=t;return{field:`${Bt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){let r=[];t?r.push(new xt({text:t})):r.push(new T.A),Array.isArray(e)&&e.length&&r.push(ft.fromJSON({mediaInfos:e})),o&&r.push(Z.A.fromJSON({displayType:"auto"}));let{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{let e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){let e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){let e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){let{caption:e,title:o,value:i}=t,{fields:r,normalizeField:s,tooltipField:n,sourceURL:l,linkURL:a}=i||{},p=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return s&&p.push(s),n&&p.push(n),p}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Bt)||t.startsWith(kt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){let{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Bt)||t.startsWith(kt)))}};(0,r.Cg)([(0,c.MZ)({type:Jt})],zt.prototype,"actions",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"content",null),(0,r.Cg)([(0,c.wg)("content")],zt.prototype,"castContent",null),(0,r.Cg)([(0,ht.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],zt.prototype,"readContent",null),(0,r.Cg)([(0,mt.K)("web-scene","content",{popupElements:{type:l.A.ofType(Lt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(ct)},description:{type:String},relatedRecordsInfo:{type:x}})],zt.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,mt.K)("content",{popupElements:{type:l.A.ofType(qt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(ct)},description:{type:String},relatedRecordsInfo:{type:x}})],zt.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,c.MZ)({type:[m.A],json:{write:!0}})],zt.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,c.MZ)({type:[g.A]})],zt.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,mt.K)("fieldInfos")],zt.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,c.MZ)({type:w})],zt.prototype,"layerOptions",void 0),(0,r.Cg)([(0,mt.K)("layerOptions")],zt.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],zt.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,c.MZ)({json:{type:String}})],zt.prototype,"title",void 0),(0,r.Cg)([(0,mt.K)("title")],zt.prototype,"writeTitle",null),zt=(0,r.Cg)([(0,c.$K)("esri.PopupTemplate")],zt);const Pt=zt},60950(t,e,o){o.d(e,{E_:()=>r});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}o.d(e,["ym",0,i])},39663(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(32198),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let u=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],u.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],u.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],u.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],u.prototype,"year",void 0),u=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],u);const c=u;var y=o(30524),h=o(78888);const m={min:0,max:20},g="decimal",f="auto";let w=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],w.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],w.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],w.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],w.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],w.prototype,"useGrouping",void 0),w=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],w);const v=w;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":c,number:v}};function x(t,e){let{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){let{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;let i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new c({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new c({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new v({useGrouping:t.digitSeparator?"always":"never"})}function j(t){let e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new c({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){let{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){let{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){let o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e,o=E(t),i="numeric"===t.year?"year":null,r=k(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e,o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){let e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e,o=E(t),i=B(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=k(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;let o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new v({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new v({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new c({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new c({dateStyle:"short"});case"time-only":return new c({timeStyle:"short",hour12:i})}}},93705(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l;o.d(e,["A",0,a])},41227(t,e,o){var i=o(32198),r=o(69540),s=o(66552),n=o(25482),l=o(91429),a=o(39663),p=o(68780),d=o(36005),u=o(93223);let c=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){let t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){let{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],c.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],c.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],c.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,u.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],c);const y=c;o.d(e,["A",0,y])},89893(t,e,o){o.d(e,{A:()=>y});var i=o(32198),r=o(69540),s=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,r.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,s.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const u=d;let c=class extends((0,r.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list","carousel"],json:{write:!0}})],c.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[u],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.popup.content.AttachmentsContent")],c);const y=c},84424(t,e,o){var i=o(32198),r=o(25482),s=o(91429);let n=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.popup.content.Content")],n);const l=n;o.d(e,["A",0,l])},66159(t,e,o){var i,r=o(32198),s=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,r.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p;o.d(e,["A",0,d])},68780(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888),a=o(97770),p=o(93223);let d=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const u=d;o.d(e,["A",0,u])},49852(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l;o.d(e,["A",0,a])},83342(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888);let a=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a;o.d(e,["A",0,p])},78553(t,e,o){o.d(e,{D:()=>s,p:()=>r});var i=o(78888);function r(t){let e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9407],{40124(t,e,o){o.d(e,{A:()=>Pt});var i,r=o(32198),s=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),u=o(17676),c=o(91429),y=o(78888),h=o(30524),m=o(93705),g=o(41227);let f=i=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new i({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"showNoDataRecords",void 0),f=i=(0,r.Cg)([(0,c.$K)("esri.popup.LayerOptions")],f);const w=f;var v,C=o(49852);let M=v=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new v({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,c.MZ)({type:[C.A],json:{write:!0}})],M.prototype,"orderByFields",void 0),M=v=(0,r.Cg)([(0,c.$K)("esri.popup.RelatedRecordsInfo")],M);const x=M;var F,Z=o(89893),I=o(84424);let j=F=class extends I.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new F({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,r.Cg)([(0,c.MZ)()],j.prototype,"creator",void 0),(0,r.Cg)([(0,c.MZ)()],j.prototype,"destroyer",void 0),(0,r.Cg)([(0,c.MZ)()],j.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],j.prototype,"type",void 0),j=F=(0,r.Cg)([(0,c.$K)("esri.popup.content.CustomContent")],j);const A=j;var N;let b=N=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new N({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],b.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],b.prototype,"expression",void 0),(0,r.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"returnType",void 0),b=N=(0,r.Cg)([(0,c.$K)("esri.popup.ElementExpressionInfo")],b);const S=b;var _;let R=_=class extends I.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new _({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:S,json:{write:!0}})],R.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=_=(0,r.Cg)([(0,c.$K)("esri.popup.content.ExpressionContent")],R);const O=R;var T=o(66159);let $=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"altText",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"caption",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.MediaInfo")],$);const K=$;var E,B=o(68197),k=o(56372);let J=E=class extends k.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new E({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,c.MZ)()],J.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"fieldName",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"tooltip",void 0),(0,r.Cg)([(0,c.MZ)()],J.prototype,"value",void 0),J=E=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],J);const q=J;var L;let D=L=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new L({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,c.MZ)({type:[B.A],json:{type:[[y.jz]],write:!0}})],D.prototype,"colors",void 0),(0,r.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],D.prototype,"fields",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"normalizeField",void 0),(0,r.Cg)([(0,c.MZ)({type:[q],json:{read:!1}})],D.prototype,"series",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"tooltipField",void 0),D=L=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValue")],D);const U=D;let W=class extends K{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:U,json:{write:{isRequired:!0}}})],W.prototype,"value",void 0),W=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.ChartMediaInfo")],W);const z=W,P=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var G;let V=G=class extends z{constructor(t){super(t),this.type="bar-chart"}clone(){return new G({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:P.write,isRequired:!0}}})],V.prototype,"type",void 0),V=G=(0,r.Cg)([(0,c.$K)("esri.popup.content.BarChartMediaInfo")],V);const H=V;var X;let Q=X=class extends z{constructor(t){super(t),this.type="column-chart"}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:P.write,isRequired:!0}}})],Q.prototype,"type",void 0),Q=X=(0,r.Cg)([(0,c.$K)("esri.popup.content.ColumnChartMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new tt({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],et.prototype,"linkURL",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],et.prototype,"sourceURL",void 0),et=tt=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ImageMediaInfoValue")],et);const ot=et;var it;let rt=it=class extends K{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new it({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],rt.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],rt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:ot,json:{write:{isRequired:!0}}})],rt.prototype,"value",void 0),rt=it=(0,r.Cg)([(0,c.$K)("esri.popup.content.ImageMediaInfo")],rt);const st=rt;var nt;let lt=nt=class extends z{constructor(t){super(t),this.type="line-chart"}clone(){return new nt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:P.write,isRequired:!0}}})],lt.prototype,"type",void 0),lt=nt=(0,r.Cg)([(0,c.$K)("esri.popup.content.LineChartMediaInfo")],lt);const at=lt;var pt;let dt=pt=class extends z{constructor(t){super(t),this.type="pie-chart"}clone(){return new pt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:P.write,isRequired:!0}}})],dt.prototype,"type",void 0),dt=pt=(0,r.Cg)([(0,c.$K)("esri.popup.content.PieChartMediaInfo")],dt);const ut=dt,ct={base:K,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":H,"column-chart":Y,"line-chart":at,"pie-chart":ut,image:st}};var yt,ht=o(36005),mt=o(43937);let gt=yt=class extends I.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?st.fromJSON(t):"barchart"===t.type?H.fromJSON(t):"columnchart"===t.type?Y.fromJSON(t):"linechart"===t.type?at.fromJSON(t):"piechart"===t.type?ut.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new yt((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,c.MZ)()],gt.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],gt.prototype,"attributes",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],gt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({types:[ct]})],gt.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,ht.w)("mediaInfos")],gt.prototype,"readMediaInfos",null),(0,r.Cg)([(0,mt.K)("mediaInfos")],gt.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],gt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],gt.prototype,"type",void 0),gt=yt=(0,r.Cg)([(0,c.$K)("esri.popup.content.MediaContent")],gt);const ft=gt;let wt=class extends((0,n.OU)(I.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],wt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],wt.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],wt.prototype,"displayType",void 0),(0,r.Cg)([(0,c.MZ)({type:[C.A],json:{write:!0}})],wt.prototype,"orderByFields",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],wt.prototype,"relationshipId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],wt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],wt.prototype,"type",void 0),wt=(0,r.Cg)([(0,c.$K)("esri.popup.content.RelationshipContent")],wt);const vt=wt;var Ct;let Mt=Ct=class extends I.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new Ct({text:this.text})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Mt.prototype,"text",void 0),(0,r.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Mt.prototype,"type",void 0),Mt=Ct=(0,r.Cg)([(0,c.$K)("esri.popup.content.TextContent")],Mt);const xt=Mt;var Ft=o(83342),Zt=o(93223);let It=class extends((0,n.OU)(I.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],It.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],It.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],It.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:[Ft.A],json:{write:!0}})],It.prototype,"associationTypes",void 0),(0,r.Cg)([(0,Zt.e)({utilityNetworkAssociations:"utility-network-associations"})],It.prototype,"type",void 0),It=(0,r.Cg)([(0,c.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],It);const jt=It;var At=o(51447),Nt=o(4902);let bt=class extends((0,Nt.s)(k.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,At.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,r.Cg)([(0,c.MZ)()],bt.prototype,"active",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"className",null),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"disabled",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"icon",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"indicator",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],bt.prototype,"visible",void 0),bt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionBase")],bt);const St=bt;var _t;let Rt=_t=class extends St{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new _t({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Rt.prototype,"image",void 0),Rt=_t=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionButton")],Rt);const Ot=Rt;var Tt;let $t=Tt=class extends St{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Tt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),(0,r.Cg)([(0,c.MZ)()],$t.prototype,"value",void 0),$t=Tt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionToggle")],$t);const Kt=$t;var Et;const Bt="relationships/",kt="expression/",Jt=l.A.ofType({key:"type",defaultKeyValue:"button",base:St,typeMap:{button:Ot,toggle:Kt}}),qt={base:null,key:"type",typeMap:{attachment:Z.A,media:ft,text:xt,expression:O,field:T.A,relationship:vt,utilityNetworkAssociations:jt}},Lt={base:null,key:"type",typeMap:{attachment:Z.A,media:ft,text:xt,expression:O,field:T.A,relationship:vt}},Dt={base:I.A,key:"type",typeMap:{media:ft,custom:A,text:xt,attachments:Z.A,fields:T.A,expression:O,relationship:vt,utilityNetworkAssociations:jt}},Ut=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...Ut,"utility-network-associations"]);let zt=class extends((0,n.OU)(a.o)){static{Et=s.P}constructor(t){super(t),this[Et]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(Dt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,u.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){let{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){let{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){let o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{let e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(let t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){let i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){let o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"==typeof t?e.description=t:Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Ut.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))}_writeFieldsContent(t,e,o){let i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;let r=e.fieldInfos;if(Array.isArray(r))for(let t of i){let e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||=!0}_writeRelationshipContent(t,e){let o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;let o=(0,p.o8)(t.mediaInfos);e.mediaInfos=Array.isArray(e.mediaInfos)?[...e.mediaInfos,...o]:o}_readPopupInfoElements(t,e,o){let i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(!o.mediaInfos&&e&&!i.mediaInfos&&(o.mediaInfos=e,i.mediaInfos=!0),ft.fromJSON(o)):"text"===o.type?(!o.text&&t&&!i.description&&(o.text=t,i.description=!0),xt.fromJSON(o)):"attachments"===o.type?Z.A.fromJSON(o):"fields"===o.type?T.A.fromJSON(o):"expression"===o.type?O.fromJSON(o):"relationship"===o.type?vt.fromJSON(o):"utilityNetworkAssociations"===o.type?jt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){let{field:e,order:o}=t;if(!e?.startsWith(Bt))return null;let i=e.replace(Bt,"").split("/");if(2!==i.length)return null;let r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?vt.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){let{order:o,field:i}=t;return{field:`${Bt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){let r=[];t?r.push(new xt({text:t})):r.push(new T.A),Array.isArray(e)&&e.length&&r.push(ft.fromJSON({mediaInfos:e})),o&&r.push(Z.A.fromJSON({displayType:"auto"}));let{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{let e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){let e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){let e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){let{caption:e,title:o,value:i}=t,{fields:r,normalizeField:s,tooltipField:n,sourceURL:l,linkURL:a}=i||{},p=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return s&&p.push(s),n&&p.push(n),p}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Bt)||t.startsWith(kt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){let{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Bt)||t.startsWith(kt)))}};(0,r.Cg)([(0,c.MZ)({type:Jt})],zt.prototype,"actions",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"content",null),(0,r.Cg)([(0,c.wg)("content")],zt.prototype,"castContent",null),(0,r.Cg)([(0,ht.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],zt.prototype,"readContent",null),(0,r.Cg)([(0,mt.K)("web-scene","content",{popupElements:{type:l.A.ofType(Lt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(ct)},description:{type:String},relatedRecordsInfo:{type:x}})],zt.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,mt.K)("content",{popupElements:{type:l.A.ofType(qt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(ct)},description:{type:String},relatedRecordsInfo:{type:x}})],zt.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,c.MZ)({type:[m.A],json:{write:!0}})],zt.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,c.MZ)({type:[g.A]})],zt.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,mt.K)("fieldInfos")],zt.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,c.MZ)({type:w})],zt.prototype,"layerOptions",void 0),(0,r.Cg)([(0,mt.K)("layerOptions")],zt.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],zt.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,c.MZ)({json:{type:String}})],zt.prototype,"title",void 0),(0,r.Cg)([(0,mt.K)("title")],zt.prototype,"writeTitle",null),zt=(0,r.Cg)([(0,c.$K)("esri.PopupTemplate")],zt);const Pt=zt},60950(t,e,o){o.d(e,{E_:()=>r});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}o.d(e,["ym",0,i])},39663(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(32198),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let u=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],u.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],u.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],u.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],u.prototype,"year",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.DateTimeFieldFormat")],u);const c=u;var y=o(30524),h=o(78888);const m={min:0,max:20},g="decimal",f="auto";let w=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],w.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],w.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],w.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],w.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],w.prototype,"useGrouping",void 0),w=(0,i.Cg)([(0,s.$K)("esri.layers.support.NumberFieldFormat")],w);const v=w;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":c,number:v}};function x(t,e){let{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){let{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;let i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new c({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new c({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new v({useGrouping:t.digitSeparator?"always":"never"})}function j(t){let e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new c({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){let{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){let{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){let o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e,o=E(t),i="numeric"===t.year?"year":null,r=k(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e,o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){let e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e,o=E(t),i=B(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=k(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;let o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new v({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new v({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new c({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new c({dateStyle:"short"});case"time-only":return new c({timeStyle:"short",hour12:i})}}},93705(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l;o.d(e,["A",0,a])},41227(t,e,o){var i=o(32198),r=o(69540),s=o(66552),n=o(25482),l=o(91429),a=o(39663),p=o(68780),d=o(36005),u=o(93223);let c=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){let t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){let{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],c.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],c.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],c.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,u.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],c);const y=c;o.d(e,["A",0,y])},89893(t,e,o){o.d(e,{A:()=>y});var i=o(32198),r=o(69540),s=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,r.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,s.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const u=d;let c=class extends((0,r.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list","carousel"],json:{write:!0}})],c.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[u],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.popup.content.AttachmentsContent")],c);const y=c},84424(t,e,o){var i=o(32198),r=o(25482),s=o(91429);let n=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.popup.content.Content")],n);const l=n;o.d(e,["A",0,l])},66159(t,e,o){var i,r=o(32198),s=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,r.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p;o.d(e,["A",0,d])},68780(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888),a=o(97770),p=o(93223);let d=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const u=d;o.d(e,["A",0,u])},49852(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l;o.d(e,["A",0,a])},83342(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888);let a=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a;o.d(e,["A",0,p])},78553(t,e,o){o.d(e,{D:()=>s,p:()=>r});var i=o(78888);function r(t){let e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8613],{68613(e,t,n){n.d(t,{execute:()=>h});var r=n(76061),i=n(61691),s=n(55537),o=n(83661),u=n(88885),m=n(79187),l=n(95213),a=n(39117);function c(e,t,n,r){let i=e.getImpl().getAttributeStreamRef(0),s=e.getPointCount(),u=t.getXY(),a=e.createInstance(),c=(0,l.f)(n),p=new m.Envelope2D;if(e.queryEnvelope(p),p.inflateCoords(c,c),p.contains(u)){let n=c*c,r=!1,m=(0,o.c)(s,!1);for(let e=0;e<s;e++){let t=i.read(2*e),s=i.read(2*e+1),o=t-u.x,l=s-u.y;o*o+l*l<=n&&(r=!0,m[e]=!0)}if(r)for(let t=0;t<s;t++)m[t]||a.addPoints(e,t,t+1);else a.addPoints(e,0,s),a.add(t)}else a.addPoints(e,0,s),a.add(t);return a}class p extends i.G{m_inputGeoms;m_progressTracker;m_spatialReference;m_rightGeom;m_index;m_bEmpty;constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,s.t)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;let e=this.m_inputGeoms.next();return e?((0,s.t)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){let i=e.getDimension(),p=t.getDimension();if(i!==p)return i>p?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;let d=new m.Envelope2D,h=new m.Envelope2D,g=new m.Envelope2D;e.queryEnvelope(d),t.queryEnvelope(h),g.setCoords({env2D:d}),g.mergeEnvelope2D(h);let G=(0,l.c)(n,g,!0),_=e.getGeometryType(),f=t.getGeometryType();return _===s.G.enumPoint&&f===s.G.enumPoint?function(e,t,n){let r=(0,l.f)(n),i=r*r,s=e.getXY(),m=t.getXY(),a=new u.M({vd:e.getDescription()});return o.P.sqrDistance(s,m)>i&&(a.add(e),a.add(t)),a}(e,t,G):_===s.G.enumPoint&&f===s.G.enumMultiPoint?c(t,e,G):_===s.G.enumMultiPoint&&f===s.G.enumPoint?c(e,t,G):(0,a.aR)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const d=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new p(e,t,n,r)}execute(e,t,n,i){let o=new r.S([e]),u=new r.S([t]),m=this.executeMany(o,u,n,i).next();return m||(0,s.d)("null output"),m}};function h(e,t,n){return d.execute(e,t,n,null)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8613],{68613(e,t,n){n.d(t,{execute:()=>h});var r=n(76061),i=n(61691),s=n(55537),o=n(83661),u=n(88885),m=n(79187),l=n(95213),a=n(39117);function c(e,t,n,r){let i=e.getImpl().getAttributeStreamRef(0),s=e.getPointCount(),u=t.getXY(),a=e.createInstance(),c=(0,l.h)(n),p=new m.Envelope2D;if(e.queryEnvelope(p),p.inflateCoords(c,c),p.contains(u)){let n=c*c,r=!1,m=(0,o.d)(s,!1);for(let e=0;e<s;e++){let t=i.read(2*e),s=i.read(2*e+1),o=t-u.x,l=s-u.y;o*o+l*l<=n&&(r=!0,m[e]=!0)}if(r)for(let t=0;t<s;t++)m[t]||a.addPoints(e,t,t+1);else a.addPoints(e,0,s),a.add(t)}else a.addPoints(e,0,s),a.add(t);return a}class p extends i.G{m_inputGeoms;m_progressTracker;m_spatialReference;m_rightGeom;m_index;m_bEmpty;constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,s.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;let e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){let i=e.getDimension(),p=t.getDimension();if(i!==p)return i>p?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;let d=new m.Envelope2D,h=new m.Envelope2D,g=new m.Envelope2D;e.queryEnvelope(d),t.queryEnvelope(h),g.setCoords({env2D:d}),g.mergeEnvelope2D(h);let G=(0,l.d)(n,g,!0),_=e.getGeometryType(),y=t.getGeometryType();return _===s.G.enumPoint&&y===s.G.enumPoint?function(e,t,n){let r=(0,l.h)(n),i=r*r,s=e.getXY(),m=t.getXY(),a=new u.M({vd:e.getDescription()});return o.P.sqrDistance(s,m)>i&&(a.add(e),a.add(t)),a}(e,t,G):_===s.G.enumPoint&&y===s.G.enumMultiPoint?c(t,e,G):_===s.G.enumMultiPoint&&y===s.G.enumPoint?c(e,t,G):(0,a.aR)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const d=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new p(e,t,n,r)}execute(e,t,n,i){let o=new r.S([e]),u=new r.S([t]),m=this.executeMany(o,u,n,i).next();return m||(0,s.d)("null output"),m}};function h(e,t,n){return d.execute(e,t,n,null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,9459],{38961(e,t,r){var i=r(32198),o=r(7762),l=r(36708),s=r(10107),n=r(64108),a=r(80559);let p=class extends o.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),l.OH))}destroy(){this.getCollections=null}_refresh(){let e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(let r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new o.A(e)}_processCollection(e,t){if(!t)return e;let r=this.itemFilterFunction??(e=>!!e);for(let i of t)if(i){if(r(i)){let t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){let t=this.getChildrenFunction(i);if(Array.isArray(t))for(let r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,s.MZ)()],p.prototype,"getCollections",void 0),(0,i.Cg)([(0,s.MZ)()],p.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,s.MZ)()],p.prototype,"itemFilterFunction",void 0),p=(0,i.Cg)([(0,n.$K)("esri.core.CollectionFlattener")],p);const u=p;r.d(t,["A",0,u])},48163(e,t,r){function i(){return[0,0]}function o(e){return[e[0],e[1]]}function l(e,t){return[e,t]}function s(){return l(1,1)}function n(){return l(-1,-1)}function a(){return l(1,0)}function p(){return l(0,1)}r.d(t,{fA:()=>l,o8:()=>o,vt:()=>i});const u=s(),d=n(),y=a(),c=p();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:y,UNIT_Y:c,ZEROS:[0,0],clone:o,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:l,negativeOnes:n,ones:s,unitX:a,unitY:p,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,u])},81583(e,t,r){r.d(t,{L:()=>n,g:()=>s});var i=r(60999),o=r(7762),l=r(92474);async function s(e,t){return await e.load(),n(e,t)}async function n(e,t){let r=[],s=(...e)=>{for(let t of e)null!=t&&(Array.isArray(t)?s(...t):o.A.isCollection(t)?t.forEach(e=>s(e)):(0,l.Zm)(t)&&r.push(t))};t(s);let n=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!n&&(n=t)}),n)throw n.error;return e}},82411(e,t,r){r.r(t),r.d(t,{default:()=>rt});var i=r(32198),o=r(7762),l=r(38961),s=r(49186),n=r(36563),a=r(4718),p=r(81583),u=r(53966),d=r(25728),y=r(17676),c=r(36708),g=r(84952),h=r(91429),f=r(16930),m=r(4146),v=r(52106),C=r(40124),w=r(56507),b=r(66552),M=r(92474),Z=r(61893),S=r(5443),F=r(41910),A=r(55156),T=r(60950),x=r(89808),j=r(99959);const O=Symbol("isBuildingGraphicOrigin");var I;class L extends j.A{get[(I=O,T.ym)](){return this.sublayer}get[A.e](){return this.sublayer}get[x.Q](){return this.sublayer}get[F.e7](){return this.sublayer}constructor(e){super(),this[I]=!0,this.type="building",this.sublayer=e}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=r(18589),E=r(56372),P=r(4902),_=r(78888),q=r(10873),B=r(36005);let N=class extends((0,P.s)((0,d.M)(E.A))){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1===this.id?"number"==typeof e?e:-1:this.id}};(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],N.prototype,"title",void 0),(0,i.Cg)([(0,B.w)("service","title",["alias","name"])],N.prototype,"readTitle",null),(0,i.Cg)([(0,h.MZ)()],N.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({type:_.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],N.prototype,"id",void 0),(0,i.Cg)([(0,B.w)("service","id")],N.prototype,"readIdOnlyOnce",null),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(String))],N.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(Boolean))],N.prototype,"isEmpty",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],N.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],N.prototype,"visible",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],N.prototype,"opacity",void 0),N=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingSublayer")],N);var K=r(4071),$=r(15426),k=r(17036),D=r(95466),Q=r(30524),G=r(83898),U=r(50805),J=r(41214),z=r(97552),V=r(54218),H=r(30291),W=r(88625),X=r(66480),Y=r(45671),ee=r(93223);const te=(0,k.p)();let re=class extends((0,M.WV)((0,Z.g)(N))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}initialize(){this._set("graphicOrigin",new L(this))}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new D.A(this.fields)}readAssociatedLayer(e,t){let r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new R.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(let e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(let e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null==this.associatedLayer?void 0:this.associatedLayer.displayField}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){let t=null==e?null:e.signal,r=this._fetchService(t).then(()=>{this.indexInfo=(0,G.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,u.A.getLogger(this),t),this.indexInfo.catch(()=>{})});return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,H.tn)(this,e)}async _fetchService(e){let t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r=this.getField(e)?.domain??null;return this.associatedLayer?(0,$.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null==this.associatedLayer?[]:this.associatedLayer.types??[]}get typeIdField(){return null==this.associatedLayer?null:this.associatedLayer.typeIdField}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){let{query:e,operations:{supportsQuery:t},data:{supportsZ:r,supportsM:i,isVersioned:o}}=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:K.P;return{query:e,operations:{supportsQuery:t},data:{supportsZ:r,supportsM:i,isVersioned:o}}}createQuery(){let e=new z.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=this.layer,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryObjectIds(e,t){return(await(await this._getAssociatedLayerForQuery()).queryObjectIds(e||this.createQuery(),t)).filter(V.Et)}async queryCachedAttributes(e,t){let r=(0,Q.hL)(this.fieldsIndex,await(0,Y.TO)(this,(0,Y.D8)(this)));return(0,X.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){let r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new s.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}get isUsedAsGroundLayer(){return!1}_getAssociatedLayerForQuery(){let e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new s.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new s.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"parsedUrl",null),(0,i.Cg)([(0,h.MZ)({type:U.W4,readOnly:!0})],re.prototype,"nodePages",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.uV],readOnly:!0})],re.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.Ot],readOnly:!0})],re.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.L0],readOnly:!0})],re.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"store",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],re.prototype,"rootNode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,h.MZ)(te.fields)],re.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"fieldsIndex",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:R.default})],re.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,B.w)("service","associatedLayer",["associatedLayerID"])],re.prototype,"readAssociatedLayer",null),(0,i.Cg)([(0,h.MZ)(te.outFields)],re.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],re.prototype,"objectIdField",null),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],re.prototype,"globalIdField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{read:!1}})],re.prototype,"displayField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],re.prototype,"apiKey",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],re.prototype,"customParameters",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:S.A})],re.prototype,"fullExtent",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:f.A})],re.prototype,"spatialReference",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"version",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:W.A})],re.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"minScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"maxScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,h.MZ)({type:["hide","show"],json:{write:!0}})],re.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({types:J.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],re.prototype,"renderer",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],re.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,h.MZ)(q.M6)],re.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:C.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],re.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],re.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],re.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"types",null),(0,i.Cg)([(0,h.MZ)()],re.prototype,"typeIdField",null),(0,i.Cg)([(0,h.MZ)({json:{write:!1}}),(0,ee.e)(new b.J({"3DObject":"3d-object",Point:"point"}))],re.prototype,"layerType",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"geometryType",null),(0,i.Cg)([(0,h.MZ)()],re.prototype,"profile",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],re.prototype,"capabilities",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"isUsedAsGroundLayer",null),re=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingComponentSublayer")],re);var ie=r(67076);function oe(e,t){e.forEach(e=>{t(e),"building-group"===e.type&&oe(e.sublayers,t)})}const le={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:se}}},read:!1}};function se(e,t,r){if(e&&Array.isArray(e))return new o.A(e.map(e=>{let t=function(e){return"group"===e.layerType?ne:re}(e);if(t){let i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new ie.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null}))}let ne=class extends N{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,p.L)(this,e=>oe(this.sublayers,t=>{"building-group"!==t.type&&e(t)}))}static{this.sublayersProperty=le}static{this.readSublayers=se}};(0,i.Cg)([(0,h.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],ne.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(le)],ne.prototype,"sublayers",void 0),ne=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ne);var ae=r(52136),pe=r(18768),ue=r(69208),de=r(34287),ye=r(8303),ce=r(25036),ge=r(58947),he=r(92009),fe=r(25482),me=r(13069);let ve=class extends fe.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],ve.prototype,"type",void 0),ve=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfo")],ve);const Ce=ve;var we;let be=we=class extends fe.o{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new we({filterType:this.filterType,filterValues:(0,a.o8)(this.filterValues)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{isRequired:!0}}})],be.prototype,"filterType",void 0),(0,i.Cg)([(0,h.MZ)({type:[String],json:{write:{isRequired:!0}}})],be.prototype,"filterValues",void 0),be=we=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoType")],be);const Me=be;var Ze;const Se=o.A.ofType(Me);let Fe=Ze=class extends fe.o{clone(){return new Ze({filterTypes:(0,a.o8)(this.filterTypes)})}};(0,i.Cg)([(0,h.MZ)({type:Se,json:{write:{isRequired:!0}}})],Fe.prototype,"filterTypes",void 0),Fe=Ze=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],Fe);const Ae=Fe;var Te;const xe=o.A.ofType(Ae);let je=Te=class extends Ce{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Te({filterBlocks:(0,a.o8)(this.filterBlocks)})}};(0,i.Cg)([(0,h.MZ)({type:["checkbox"]})],je.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:xe,json:{write:{isRequired:!0}}})],je.prototype,"filterBlocks",void 0),je=Te=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],je);const Oe=je;var Ie=r(69540);let Le=class extends((0,Ie.OU)(fe.o)){};(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Le.prototype,"type",void 0),Le=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterMode")],Le);const Re=Le;let Ee=class extends Re{constructor(e){super(e),this.type="solid"}};(0,i.Cg)([(0,h.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],Ee.prototype,"type",void 0),Ee=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeSolid")],Ee);const Pe=Ee;var _e=r(51734);let qe=class extends Re{constructor(e){super(e),this.type="wire-frame",this.edges=null}};(0,i.Cg)([(0,ee.e)({wireFrame:"wire-frame"})],qe.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)(_e.J)],qe.prototype,"edges",void 0),qe=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeWireFrame")],qe);const Be=qe;let Ne=class extends Re{constructor(e){super(e),this.type="x-ray"}};(0,i.Cg)([(0,h.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],Ne.prototype,"type",void 0),Ne=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeXRay")],Ne);const Ke=Ne;var $e;let ke=$e=class extends fe.o{constructor(e){super(e),this.filterExpression=null,this.filterMode=new Pe,this.title=""}clone(){return new $e({filterExpression:this.filterExpression,filterMode:(0,a.o8)(this.filterMode),title:this.title})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ke.prototype,"filterExpression",void 0),(0,i.Cg)([(0,h.MZ)({nonNullable:!0,types:{key:"type",base:Re,typeMap:{solid:Pe,"wire-frame":Be,"x-ray":Ke}},json:{read:e=>{switch(e?.type){case"solid":return Pe.fromJSON(e);case"wireFrame":return Be.fromJSON(e);case"x-ray":return Ke.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}})],ke.prototype,"filterMode",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ke.prototype,"title",void 0),ke=$e=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterBlock")],ke);const De=ke;var Qe;const Ge=o.A.ofType(De);let Ue=Qe=class extends fe.o{constructor(e){super(e),this.description=null,this.filterBlocks=null,this.id=(0,me.lk)(),this.name=null}clone(){return new Qe({description:this.description,filterBlocks:(0,a.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.o8)(this.filterAuthoringInfo)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],Ue.prototype,"description",void 0),(0,i.Cg)([(0,h.MZ)({type:Ge,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"filterBlocks",void 0),(0,i.Cg)([(0,h.MZ)({types:{key:"type",base:Ce,typeMap:{checkbox:Oe}},json:{read:e=>"checkbox"===e?.type?Oe.fromJSON(e):null,write:!0}})],Ue.prototype,"filterAuthoringInfo",void 0),(0,i.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"name",void 0),Ue=Qe=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilter")],Ue);let Je=class extends fe.o{constructor(e){super(e),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"fieldName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"label",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Je.prototype,"min",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Je.prototype,"max",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],Je.prototype,"mostFrequentValues",void 0),(0,i.Cg)([(0,h.MZ)({type:[Number]})],Je.prototype,"subLayerIds",void 0),Je=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFieldStatistics")],Je);const ze=Je;let Ve=class extends((0,M.WV)((0,Z.g)(fe.o))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(u.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){let t=(await(0,w.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i.Cg)([(0,h.MZ)({constructOnly:!0,type:String})],Ve.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ve.prototype,"customParameters",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ve.prototype,"apiKey",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:[ze],json:{read:{source:"summary"}}})],Ve.prototype,"fields",null),Ve=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingSummaryStatistics")],Ve);var He=r(24212);const We=o.A.ofType(Ue),Xe=(0,a.o8)(ne.sublayersProperty),Ye=Xe.json?.origins;Ye&&(Ye["web-scene"]={type:[re],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[re],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let et=class extends((0,ge.w6)((0,pe.b)((0,de.q)((0,ye.A)((0,ce.j)((0,d.M)((0,ue.d)((0,ae.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new l.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new We,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){let i=ne.readSublayers(e,t,r);return oe(i,e=>e.layer=this),this._allSublayerOverrides&&=(function(e,t){t.forEach(t=>tt(e,t))}(i,this._allSublayerOverrides),null),i}write(e,t){return e=super.write(e,t),t&&("web-scene"===t.origin||"portal-item"===t.origin)&&(this.sublayers?function(e,t,r){let i=[];oe(e,e=>{let t=e.write({},r);Object.keys(t).length>1&&i.push(t)}),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){let i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach(e=>{t.sublayers.push((0,a.o8)(e))}))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){let r=function(e,t){let r=new Map;for(let i of e)"object"==typeof i&&i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new s.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?tt(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){let e=(0,g.fj)(this.parsedUrl.path,t.statisticsHRef);return new Ve({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then(()=>this._fetchService(t)).then(()=>this._fetchAssociatedFeatureService(t));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,p.g)(this,e=>{oe(this.sublayers,t=>{"building-group"!==t.type&&e(t)}),this.summaryStatistics&&e(this.summaryStatistics)})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"})}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{let{portalItem:t}=await(0,he.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch{(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){let e=new AbortController;this.addHandles((0,n.rE)(e)),await(0,c.C_)(()=>this.allSublayers.filter(e=>"building-component"===e.type).some(e=>e.popupEnabled&&null!=e.popupTemplate),e.signal);let t=this.allSublayers.filter(e=>"building-component"===e.type).filter(e=>e.popupEnabled&&null!=e.popupTemplate),r=[],i=[];for(let e of t){let t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):i.push(t)}let o=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:\n ${r.join("\n ")}`:"",l=i.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:\n ${i.join("\n ")}`:"";u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,o,l)}_validateElevationInfo(e){let t="Building scene layers";(0,He.XF)(u.A.getLogger(this),(0,He.B)(t,"absolute-height",e)),(0,He.XF)(u.A.getLogger(this),(0,He.tW)(t,e))}};function tt(e,t){let{overrides:r,context:i}=t;oe(e,e=>e.read(r.get(e.id),i))}(0,i.Cg)([(0,h.MZ)({type:["BuildingSceneLayer"]})],et.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],et.prototype,"allSublayers",void 0),(0,i.Cg)([(0,h.MZ)(Xe)],et.prototype,"sublayers",void 0),(0,i.Cg)([(0,B.w)("service","sublayers")],et.prototype,"readSublayers",null),(0,i.Cg)([(0,h.MZ)({type:We,nonNullable:!0,json:{write:!0}})],et.prototype,"filters",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],et.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Ve})],et.prototype,"summaryStatistics",void 0),(0,i.Cg)([(0,B.w)("summaryStatistics",["statisticsHRef"])],et.prototype,"readSummaryStatistics",null),(0,i.Cg)([(0,h.MZ)({type:[String],json:{read:!1}})],et.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)(q.Fm)],et.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(q.fV)],et.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],et.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(f.A))],et.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)(q.Yj)],et.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0})],et.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)()],et.prototype,"associatedFeatureServiceItem",void 0),et=(0,i.Cg)([(0,h.$K)("esri.layers.BuildingSceneLayer")],et);const rt=et},32756(e,t,r){r.d(t,{Rr:()=>n});var i=r(32198),o=r(93637),l=r(91429),s=r(91880);function n(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:n},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,o.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),l=r(25482),s=r(91429),n=r(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),l=r(25482),s=r(91429),n=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,n.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(7762),s=r(25482),n=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,n.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,n.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>l});var i=r(34727),o=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){let l=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let s=Array.from(n(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),l=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*n(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),l=r(52106),s=r(66552),n=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends n.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)s?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,s]}=r,n=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;n=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*s,n,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],s=r.fromJSON(l),n=l.geometry?.spatialReference;null!=s.geometry&&!n&&(s.geometry.spatialReference=i);let a=l.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let s=0,n=e.length;s<n;s++){let n=e[s];if(s>0){let e=t(n[0]),s=r(n[1]);(e!==i||s!==o)&&(l.push([e-i,s-o]),i=e,o=s)}else i=t(n[0]),o=r(n[1]),l.push([i,o])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],s=this._quantizePoints(l,t,r);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,s,n=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=n.length;e<i;e++){let i=n[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],s+=o[1]):(l=o[0],s=o[1]),o[0]=t(l),o[1]=r(s)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,s,n=e.points;for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],s+=i[1]):(l=i[0],s=i[1]),i[0]=t(l),i[1]=r(s)}if(i&&o)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[l.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>p,RZ:()=>a});var i=r(39516);const o="=",l=">=",s="<=";function n(e,t,r,o){let l=o.get(e)?.type,s=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:l,timeZone:s})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:p,endField:u}=t,{start:d,end:y}=e;if(!d&&!y||!p&&!u)return;let c=p??u,g=u??p;if(c&&g){if(d&&y){if(d.getTime()===y.getTime())return(0,i.mA)(a,n(c,o,d,r));if(!p||!u){let e=n(c,l,d,r),t=n(c,s,y,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=n(p,l,d,r),t=n(u,s,y,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,n(c,l,d,r));if(y)return(0,i.mA)(a,n(g,s,y,r))}}function p(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},45671(e,t,r){r.d(t,{D8:()=>l,TO:()=>o});var i=r(30524);async function o(e,t=e.popupTemplate){if(null==t)return[];let r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:l,typeIdField:s,globalIdField:n,relationships:a}=e;if(r.includes("*"))return["*"];let p=o?(0,i.eX)(e):[],u=(0,i.DB)(e.fieldsIndex,[...r,...p]);return s&&u.push(s),u&&l&&e.fieldsIndex?.has(l)&&!u.includes(l)&&u.push(l),u&&n&&e.fieldsIndex?.has(n)&&!u.includes(n)&&u.push(n),a?.forEach(t=>{let{keyField:r}=t;u&&r&&e.fieldsIndex?.has(r)&&!u.includes(r)&&u.push(r)}),u}function l(e,t){return!e||"object"!=typeof e||t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7],{69052(e,t,r){r.d(t,{hr:()=>i});var s=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return a(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return a(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(s)?r:s}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function a(e,t,r,s,i=0,a=!1){return(s-=i)<t?s+=n(e,t-s):s>r&&(s-=n(e,s-r)),a&&s===r&&(s=t),s+i}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new i(0,2*Math.PI),u=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,u,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>i});class s{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new s(e)}},82534(e,t,r){function s(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:s,fromValues:function(e,t,r,s){return[e,t,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},67026(e,t,r){r.d(t,{A6:()=>f,Xd:()=>p,Xr:()=>d,lw:()=>c,x8:()=>l});var s=r(29242),i=r(82534),a=r(51850),n=r(34304),o=r(35522),u=r(78955);function l(e,t,r){r*=.5;let s=Math.sin(r);return e[0]=s*t[0],e[1]=s*t[1],e[2]=s*t[2],e[3]=Math.cos(r),e}function p(e,t){let r=2*Math.acos(t[3]),s=Math.sin(r/2);return s>(0,n.FD)()?(e[0]=t[0]/s,e[1]=t[1]/s,e[2]=t[2]/s):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){let s=t[0],i=t[1],a=t[2],n=t[3],o=r[0],u=r[1],l=r[2],p=r[3];return e[0]=s*p+n*o+i*l-a*u,e[1]=i*p+n*u+a*o-s*l,e[2]=a*p+n*l+s*u-i*o,e[3]=n*p-s*o-i*u-a*l,e}function h(e,t,r,s){let i,a,o,u,l,p=t[0],c=t[1],h=t[2],d=t[3],y=r[0],f=r[1],m=r[2],g=r[3];return a=p*y+c*f+h*m+d*g,a<0&&(a=-a,y=-y,f=-f,m=-m,g=-g),1-a>(0,n.FD)()?(i=Math.acos(a),o=Math.sin(i),u=Math.sin((1-s)*i)/o,l=Math.sin(s*i)/o):(u=1-s,l=s),e[0]=u*p+l*y,e[1]=u*c+l*f,e[2]=u*h+l*m,e[3]=u*d+l*g,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){let r,s=t[0]+t[4]+t[8];if(s>0)r=Math.sqrt(s+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let s=0;t[4]>t[0]&&(s=1),t[8]>t[3*s+s]&&(s=2);let i=(s+1)%3,a=(s+2)%3;r=Math.sqrt(t[3*s+s]-t[3*i+i]-t[3*a+a]+1),e[s]=.5*r,r=.5/r,e[3]=(t[3*i+a]-t[3*a+i])*r,e[i]=(t[3*i+s]+t[3*s+i])*r,e[a]=(t[3*a+s]+t[3*s+a])*r}return e}function f(e,t,r,s){let i=.5*Math.PI/180;t*=i,r*=i,s*=i;let a=Math.sin(t),n=Math.cos(t),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),p=Math.cos(s);return e[0]=a*u*p-n*o*l,e[1]=n*o*p+a*u*l,e[2]=n*u*l-a*o*p,e[3]=n*u*p+a*o*l,e}const m=u.C,g=u.hZ,v=u.WQ,S=c,_=u.hs,A=u.Om,x=u.Cc,b=u.Bw,M=b,w=u.m3,q=w,I=u.S8,R=u.t2,F=u.aI,C=(0,a.vt)(),O=(0,a.fA)(1,0,0),T=(0,a.fA)(0,1,0),P=(0,i.vt)(),E=(0,i.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){let r=t[0],s=t[1],i=t[2];return e[0]=r,e[1]=s,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-s*s-i*i)),e},conjugate:d,copy:m,dot:A,equals:F,exactEquals:R,fromEuler:f,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){let r=t[0],s=t[1],i=t[2],a=t[3],n=r*r+s*s+i*i+a*a,o=n?1/n:0;return e[0]=-r*o,e[1]=-s*o,e[2]=-i*o,e[3]=a*o,e},len:M,length:b,lerp:x,mul:S,multiply:c,normalize:I,random:function(e){let t=n.Ov,r=t(),s=t(),i=t(),a=Math.sqrt(1-r),o=Math.sqrt(r);return e[0]=a*Math.sin(2*Math.PI*s),e[1]=a*Math.cos(2*Math.PI*s),e[2]=o*Math.sin(2*Math.PI*i),e[3]=o*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+n*o,e[1]=i*u+a*o,e[2]=a*u-i*o,e[3]=n*u-s*o,e},rotateY:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u-a*o,e[1]=i*u+n*o,e[2]=a*u+s*o,e[3]=n*u-i*o,e},rotateZ:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+i*o,e[1]=i*u-s*o,e[2]=a*u+n*o,e[3]=n*u-a*o,e},rotationTo:function(e,t,r){let s=(0,o.Om)(t,r);return s<-.999999?((0,o.$A)(C,O,t),(0,o.Il)(C)<1e-6&&(0,o.$A)(C,T,t),(0,o.S8)(C,C),l(e,C,Math.PI),e):s>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,o.$A)(C,t,r),e[0]=C[0],e[1]=C[1],e[2]=C[2],e[3]=1+s,I(e,e))},scale:_,set:g,setAxes:function(e,t,r,s){let i=N;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=s[0],i[4]=s[1],i[7]=s[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],I(e,y(e,i))},setAxisAngle:l,slerp:h,sqlerp:function(e,t,r,s,i,a){return h(P,t,i,a),h(E,r,s,a),h(e,P,E,2*a*(1-a)),e},sqrLen:q,squaredLength:w,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(t,["hZ",0,g,"t2",0,R])},95696(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),a=r(69540),n=r(25482),o=r(91429),u=r(93223);let l=class extends((0,a.OU)(n.o)){static{s=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(e,t,r){r.d(t,{A:()=>l});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(51850),u=r(93223);let l=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(e,t,r){r.d(t,{A:()=>d});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(58083),u=r(9093),l=r(67026),p=r(82534),c=r(51850),h=r(24770);let d=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){let e=(0,u.vt)();return(0,l.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s.Cg)([(0,n.MZ)()],d.prototype,"rotation",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrix",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],d);const y=(0,p.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>d,g7:()=>f,i4:()=>p,ui:()=>c,vt:()=>l,yo:()=>y});var s=r(34727),i=r(58083),a=r(67026),n=r(82534),o=r(35522),u=r(51850);function l(e=v){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=l()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=l()){let r=(0,i.l)(S,e);return g(t,(0,s.KJ)((0,a.Xd)(t,r))),t}function h(e,t,r=l()){return(0,a.x8)(S,e,m(e)),(0,a.x8)(_,t,m(t)),(0,a.lw)(S,_,S),g(r,(0,s.KJ)((0,a.Xd)(r,S)))}function d(e,t,r,s=l()){return p(u.Cw,e,A),p(u.JP,t,x),p(u.Cb,r,b),h(A,x,A),h(A,b,s),s}function y(e){return e}function f(e){return e[3]}function m(e){return(0,s.kU)(e[3])}function g(e,t){return e[3]=t,e}const v=[0,0,1,0],S=(0,n.vt)(),_=(0,n.vt)(),A=(l(),l()),x=l(),b=l();r.d(t,["up",0,v])},63579(e,t,r){r.d(t,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>f,in:()=>y,yr:()=>l});var s=r(56507),i=r(4576),a=r(17676),n=r(20557);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,a.Te)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,a.Te)(e),t}}function l(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(h):h(e.files);case"service":return e.assets.some(h);case"loadable":return!0;default:return!1}}(e?.source)}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){let{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function d(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function y(e,t){if(e===t)return!0;let{source:r}=e,{source:s}=t;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...s.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function f(e,t){return e instanceof File?(0,n.rq)(e,t):(0,n.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function g(e){return!!e.original}},27615(e,t,r){r.d(t,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>p,yJ:()=>c});var s=r(35522),i=r(86738),a=r(95696),n=r(18251);function o(e){return null!=e.origin}function u(e){return o(e.vertexSpace)}function l(e,t){if(!o(e))return null;let[r,s,a]=e.origin;return new i.A({x:r,y:s,z:a,spatialReference:t})}function p(e,t){let{x:r,y:s,z:i,spatialReference:o}=e,u=[r,s,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(o))?new n.A({origin:u}):new a.A({origin:u})}function c(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,s.t2)(e.origin,t.origin))}},52039(e,t,r){r.d(t,{O7:()=>h,el:()=>l});var s=r(69052),i=(r(49186),r(18370)),a=r(17676),n=(r(5443),r(39829)),o=(r(82799),r(16930)),u=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let s=null;for(let t of e)s??=t?.spatialReference;if(!s)return e;let i=(0,u.Vp)(s);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new n.A(t)]}let[o,l]=i.valid,h=!1;for(let t of e){if(!t)continue;if("point"===t.type){h||=t.x>=l,h||=t.x<=o;continue}let{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=l,h||=e.xmin<=o,h||=e.xmax>=l,h||=e.xmax<=o}if(!h)return e;let[{foldInto360Range:d},y]=await(0,a.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),f=y.fromSpatialReference(s);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(d(t,f),s);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function h(e,t,r){let s=(0,u.Vp)(r);if(null==s)return e;let[i,a]=s.valid,n=2*a,o=0,l=0;t>a?o=Math.ceil(Math.abs(t-a)/n):t<i&&(o=-Math.ceil(Math.abs(t-i)/n)),e>a?l=Math.ceil(Math.abs(e-a)/n):e<i&&(l=-Math.ceil(Math.abs(e-i)/n));let p=e+(o-l)*n,c=p-t;return c>a?p-=n:c<i&&(p+=n),p}function d(e){let t=(0,u.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new s.hr(r,i)}const y=d(o.A.WGS84);d(o.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>l,kd:()=>u});var s=r(82799),i=r(16930),a=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function u(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,n.aO)(e)){let[r,s]=e.c;r[0]+=t,s[0]+=t}else if((0,n.FG)(e)){let[r,s]=e.a;r[0]+=t,s[0]+=t}else if((0,n.n1)(e)){let[r,s,i]=e.b;r[0]+=t,s[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},60845(e,t,r){r.r(t),r.d(t,{default:()=>ie});var s=r(32198),i=r(92602),a=r(56507),n=r(4576),o=r(49186),u=r(44208),l=r(66552),p=r(92474),c=r(53966),h=r(93637),d=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),v=r(5443),S=r(16930),_=r(95696),A=r(27615),x=r(63579),b=r(52106),M=r(86211);function w(e){return"object"==typeof e&&!!e&&"objectId"in e&&!!e.objectId}function q(e){return e.every(w)}function I(e){return"object"==typeof e&&!!e&&"globalId"in e&&!!e.globalId}function R(e){return e.every(I)}var F=r(99917),C=r(65864),O=r(73836),T=r(21325);async function P(e,t,r){let{geometry:s}=t,i={...t.attributes};if(null!=r&&"mesh"===s?.type){let{transformFieldRoles:t}=r,{origin:a,spatialReference:n,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,p=e.spatialReference,c=p.isGeographic,h=(0,T.aI)(p,n),d=(0,F.isEqualBaseGCS)(n,p)&&(0,F.canProjectWithoutEngine)(n,p);if(!(l&&c&&d||!l&&!c&&h))return null;let y=(0,F.projectWithoutEngine)(a,n,p);if(null==y)return null;if(i[t.originX]=y.x,i[t.originY]=y.y,i[t.originZ]=y.z??0,null!=u){let{translation:e,scale:r,rotation:s}=u,a=l?1:(0,M.KX)(n)/(0,M.KX)(p);i[t.translationX]=e[0]*a,i[t.translationY]=e[2]*a,i[t.translationZ]=-e[1]*a,i[t.scaleX]=r[0],i[t.scaleY]=r[2],i[t.scaleZ]=r[1],i[t.rotationX]=s[0],i[t.rotationY]=s[2],i[t.rotationZ]=-s[1],i[t.rotationDeg]=s[3]}return{attributes:i}}return null==s?{attributes:i}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:i}}async function E(e,t){let r=await Promise.all((t.addAttachments??[]).map(t=>N(e,t))),s=await Promise.all((t.updateAttachments??[]).map(t=>N(e,t))),i=t.deleteAttachments??[];return r.length||s.length||i.length?{adds:r,updates:s,deletes:[...i]}:null}async function N(e,t){let{feature:r,attachment:s}=t,{globalId:i,name:a,contentType:n,data:o,keywords:u,uploadId:l}=s,p={globalId:i};if(r&&("attributes"in r?p.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(p.parentGlobalId=r.globalId)),l)p.uploadId=l;else if(o){let e=await(0,f._0)(o);e&&(p.contentType=e.mediaType,p.data=e.data),o instanceof File&&(p.name=o.name)}return a&&(p.name=a),n&&(p.contentType=n),u&&(p.keywords=u),p}function D(e){let t=!0===e.success?null:e.error||{code:void 0,description:"Feature edit failed"};return{objectId:e.objectId,globalId:e.globalId,error:t?new o.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function Q(e,t){return new b.A({attributes:e.attributes,geometry:(0,C.rS)({...e.geometry,spatialReference:t})})}function Z(e,t){return{adds:e?.adds?.map(e=>Q(e,t))||[],updates:e?.updates?.map(e=>({original:Q(e[0],t),current:Q(e[1],t)}))||[],deletes:e?.deletes?.map(e=>Q(e,t))||[],spatialReference:t}}var V=r(64714),J=r(64314),j=r(60694),G=r(15426),U=r(20557),k=r(56372),B=r(76553),z=r(10107),L=r(64108),X=r(36003),$=r(2991);let W=class extends k.A{constructor(e){super(e),this.fieldsIndex=null,this.layer=null}getExpression(e){let{layer:t}=this;if(!t)return;let r=t.timeInfo;if(!(0,B.H)(t))return{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)};let s=t.getAtOrigin("timeInfo","service");return s?r?r===s||(0,X.L)(r,s)?{type:"time",value:(0,$.G9)(e)}:{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)}:void 0:r?{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)}:void 0}};(0,s.Cg)([(0,z.MZ)({constructOnly:!0})],W.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,z.MZ)({constructOnly:!0})],W.prototype,"layer",void 0),W=(0,s.Cg)([(0,L.$K)("esri.layers.support.TimeInformation")],W);var Y=r(99199),H=r(96520),K=r(97552),ee=r(79677),te=r(20816);const re=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),se=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let ie=class extends p.x_{constructor(e){super(e),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();let e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}let t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(e){let t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e)).then(()=>this._ensureLatestMetadata(e));return this.addResolvingPromise(r),Promise.resolve(this)}async reload(e){let t=this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0;await this._fetchService(null,{...e,cacheBust:t})}initialize(){this.addHandles([(0,y.wB)(()=>{let e=this.layer;return e&&"lastEditsEventDate"in e?e.lastEditsEventDate:null},e=>this._handleLastEditsEventChange(e))])}destroy(){this._removeEditInterceptor()}get queryTask(){let{layer:e}=this,{capabilities:t,parsedUrl:r,gdbVersion:s,spatialReference:i,fieldsIndex:a,uniqueIdFields:n}=e,o="infoFor3D"in e?e.infoFor3D:null,l="dynamicDataSource"in e?e.dynamicDataSource:null,p=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==o,c=p&&t?.query.supportsFormatPBFWithCurves,h=t?.operations?.supportsQueryAttachments??!1,d=t?.query?.relativeTimeBinWindow??0,y=new W({fieldsIndex:a,layer:e}),f=r.path;return new J.A({dynamicDataSource:l,encodingCapabilities:t?.query,fieldsIndex:a,gdbVersion:s,infoFor3D:o,pbfSupported:p,pbfSupportedWithCurves:c,queryAttachmentsSupported:h,relativeTimeBinWindow:d,sourceSpatialReference:i,timeInformation:y,uniqueIdFields:n,url:f})}async addAttachment(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(t,o.query);try{return D((await(0,a.A)(n,{body:u})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(i,e)}}async updateAttachment(e,t,r,s){await this.load();let{layer:i}=this;await(0,G.VA)(i,"editing");let n=e.attributes[i.objectIdField],o=i.parsedUrl.path+"/"+n+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:t,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,a.A)(o,{body:l})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(n,e)}}async applyEdits(e,t){await this.load();let{layer:r}=this;await(0,G.VA)(r,"editing");let s="infoFor3D"in r?r.infoFor3D:null,i=null!=s,u=i||(t?.globalIdUsed??!1),l=i?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,p=e.addFeatures?.map(e=>P(this.layer,e,s))??[],c=(await Promise.all(p)).filter(n.Ru),h=e.updateFeatures?.map(e=>P(this.layer,e,s))??[],d=(await Promise.all(h)).filter(n.Ru),y=function(e,t,r){if(!t||0===t.length)return[];if(r&&R(t))return t.map(e=>e.globalId);if(q(t))return t.map(e=>e.objectId);let s=r?e.globalIdField:e.objectIdField;return s?t.map(e=>e.getAttribute(s)):[]}(this.layer,e.deleteFeatures,u);(0,H.u)(c,d,r.spatialReference);let f=await E(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&i,g=t?.gdbVersion||r.gdbVersion,v={gdbVersion:g,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:t?.returnEditMoment,trueCurveClient:t?.editsRespectTrueCurves,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,te.ZJ)(this.layer.url,g,!0);let S=(0,te.w5)(this.layer.url,g||null);if(await(0,te.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");t?.returnServiceEditsOption?(v.edits=JSON.stringify([{id:r.layerId,adds:c.length?c:null,updates:d.length?d:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),v.returnServiceEditsOption=re.toJSON(t?.returnServiceEditsOption),v.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(v.adds=c.length?JSON.stringify(c):null,v.updates=d.length?JSON.stringify(d):null,v.deletes=y.length?u?JSON.stringify(y):y.join(","):null,v.attachments=f&&JSON.stringify(f),v.assetMaps=null==l?void 0:JSON.stringify(l));let _=this._getLayerRequestOptions({method:"post",query:v});S&&(_.authMode="immediate",_.query.returnEditMoment=!0,_.query.sessionId=te.TA);let A,x=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;try{A=m?await this._asyncApplyEdits(x+"/applyEdits",_):await(0,a.A)(x+"/applyEdits",_)}catch(e){if(!function(e){let t=e.details.raw,r=+t.code,s=+t.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(e))throw e;_.authMode="immediate",A=m?await this._asyncApplyEdits(x+"/applyEdits",_):await(0,a.A)(x+"/applyEdits",_)}return this._createEditsResult(A)}async deleteAttachments(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/deleteAttachments";try{return(await(0,a.A)(n,this._getLayerRequestOptions({query:{attachmentIds:t.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(e){throw this._createAttachmentErrorResult(i,e)}}fetchRecomputedExtents(e={}){let t=e.signal;return this.load({signal:t}).then(async()=>{let t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:i}=await(0,a.A)(`${s}/${r}`,t),{id:n,extent:o,fullExtent:u,timeExtent:l}=i,p=o||u;return{id:n,fullExtent:p&&v.A.fromJSON(p),timeExtent:l&&ee.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(e,t={}){await this.load();let r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();let r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});if(e.outStatistics?.length&&r.features.length){let t=new Map;if(r.features.forEach(r=>{let s=r.attributes;e.outStatistics?.forEach(({outStatisticFieldName:e})=>{if(e){let r=e.toLowerCase();r&&r in s&&e!==r&&(s[e]=s[r],delete s[r],t.set(r,e))}})}),null!=r.fields)for(let e of r.fields){let r=t.get(e.name.toLowerCase());null!=r&&(e.name=r)}}return r}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryPivot(e,t){return await this.load(),this.queryTask.executePivotQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryAttributeBins(e,t){return await this.load(),this.queryTask.executeAttributeBinsQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,j.Wo)(this.layer.url))return"unavailable";let e=(0,f.fj)(this.layer.url,"status"),t=await(0,a.A)(e,{query:{f:"json"}});return se.fromJSON(t.data.status)}async uploadAssets(e,t){let{uploadAssets:s}=await r.e(1384).then(()=>r(31384));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}_handleLastEditsEventChange(e){let t=this.layer;if(null==e||!("capabilities"in t)||!("effectiveCapabilities"in t)||t.capabilities?.operations?.supportsEditing||!t.effectiveCapabilities?.operations?.supportsEditing)return;let r=t.url;null!=r&&("layerId"in t&&(r=(0,f.fj)(r,t.layerId.toString())),this._getOrCreateEditInterceptor(r).before=t=>{let r=t.requestOptions.method??"auto";if("auto"===r||"head"===r){let r=t.requestOptions.query??{};r._ts=e.getTime(),t.requestOptions.query=r}})}_getOrCreateEditInterceptor(e){return this._editInterceptor??(this._editInterceptor={urls:e},i.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,n.TF)(i.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(e,t){let r=(await(0,a.A)(e,t)).data.statusUrl;for(;;){let e=(await(0,a.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,a.A)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(ae)}}_createRequestQueryOptions(e){let t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){let r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());let{data:s}=await(0,a.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=s}this.layer.applyPreferredHost(e),this.sourceJSON=await this._patchServiceJSON(e,t?.signal);let r=e.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){let t=(0,V.F0)(e.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{let{data:r}=await(0,a.A)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,d.QP)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){let{addAssetFeatures:t}=e;if(!t?.length||await this._areAllAssetsAlreadyMapped(t))return null;let s=e.addFeatures.filter(e=>e.geometry);if(t.length!==s.length+e.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");let i=[],a=new Map;for(let e of t){let{geometry:t}=e,{vertexSpace:s}=t;if((0,A.Hq)(s))i.push(t);else{let s=t.origin,{convertMeshVertexSpace:n}=await Promise.all([r.e(2258),r.e(4548)]).then(()=>r(28846)),o=await n(t,new _.A({origin:[s.x,s.y,s.z??0]}));a.set(o,t),e.geometry=o,i.push(o)}}await this.uploadAssets(i);for(let[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(t),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){let t=[],r=this.layer.globalIdField,s=this.layer.parsedUrl;for(let i of e){let{metadata:e}=i.geometry,a=e.getExternalSourcesOnService(s),n=i.getAttribute(r);if(0===a.length){c.A.getLogger(this).error(`Skipping feature ${n}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}let{source:o}=a.find(x.dK)??a[0];for(let e of o.assets)1===e.parts.length?t.push({globalId:(0,m.yS)(),parentGlobalId:n,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:[]}):c.A.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){let t=e.data,{layerId:r}=this.layer,s=[],i=null;if(Array.isArray(t))for(let e of t)null!=e.editedFeatures&&s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(i={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else i=t;let a=function(e){let t=e?.assetMaps;if(t){for(let e of t.addResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(let e of t.updateResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}let r=e?.attachments,s={addFeatureResults:e?.addResults?.map(D)??[],updateFeatureResults:e?.updateResults?.map(D)??[],deleteFeatureResults:e?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return e?.editMoment&&(s.editMoment=e.editMoment),s}(i);if(s.length>0){a.editedFeatureResults=[];for(let e of s){let{editedFeatures:t}=e,r=t?.spatialReference?new S.A(t.spatialReference):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:Z(t,r)})}}return a}_createAttachmentErrorResult(e,t){let r=t.details.messages?.[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){let r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(let e in t){let s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){let{layer:t,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...e,query:{gdbVersion:s,layer:"dynamicDataSource"in t&&t.dynamicDataSource?JSON.stringify(t.dynamicDataSource.toLayerSourceJSON()):void 0,...r.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _areAllAssetsAlreadyMapped(e){let{layer:t}=this,{globalIdField:r,parsedUrl:s}=t,i="infoFor3D"in t?t.infoFor3D:null;if(null==i||null==r)return!1;let a=(0,U.JZ)(i);if(null==a)return!1;let o=(0,f.fj)(s.path,`../${a.id}`),u=[];for(let t of e){if(!(t.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(t)}let l=u.map(e=>e.getAttribute(r)).filter(n.Ru);if(0===l.length)return!1;let{assetMapFieldRoles:{parentGlobalId:p,assetHash:c}}=i,h=new K.A({where:`${p} IN (${l.map(e=>`'${e}'`)})`,outFields:[c,p],returnGeometry:!1}),{features:d}=await(0,Y.s)(o,h);return 0!==d.length&&!u.some(e=>{let t=e.getAttribute(r);if(!t)return!0;let{metadata:i}=e.geometry,a=d.filter(e=>e.getAttribute(p)===t);if(0===a.length)return!0;let n=a.map(e=>e.getAttribute(c));return i.getExternalSourcesOnService(s).flatMap(({source:e})=>e.assets.flatMap(e=>e.parts.map(e=>e.partHash))).some(e=>n.every(t=>e!==t))})}};(0,s.Cg)([(0,g.MZ)()],ie.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],ie.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],ie.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],ie.prototype,"queryTask",null),ie=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],ie);const ae=1e3},64314(e,t,r){r.d(t,{A:()=>w});var s=r(32198),i=r(56372),a=r(49186),n=r(44208),o=r(17676),u=r(84952),l=r(91429),p=r(21325),c=r(60694),h=r(20557),d=r(2272),y=r(99614),f=r(20615),m=r(74910),g=r(78286),v=r(99199),S=r(62815),_=r(63746);class A{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,_._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,this._i=0,this._vertex=[0,0],i&&this._vertex.push(0),a&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=i?a?A._finishVertexPointXYZM:A._finishVertexPointXYZ:a?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:i,hasM:a},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:i,hasM:a},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:i,hasM:a},this._parts=s.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(e){let t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,s){let i,{hasZ:a,hasM:n}=this.featureSet;switch(a??=!1,n??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":i={paths:[],curvePaths:[],hasZ:a,hasM:n},this._parts=i.curvePaths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],curveRings:[],hasZ:a,hasM:n},this._parts=i.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=i}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,s){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,s,i,a,n,o){this._part.push({a:[this._transform(t),this._transformXY(r),s,i,a,n,o]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:s,_vertex:i}=e;t.push([...i]),t.length<s[r.length]||(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:s}=this.featureSet,i=r?(0,S.d)(e,t):1;this._transformInPlace??=(0,_.M)(this.featureSet,i),this._transformInPlaceXY??=(0,_.M)({transform:s})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var x=r(80893),b=r(22671),M=r(97552);let w=class extends i.A{constructor(e){super(e),this.dynamicDataSource=null,this.encodingCapabilities=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.timeInformation=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}get _layerMetadata(){return{encodingCapabilities:this.encodingCapabilities,timeInformation:this.timeInformation,uniqueIdFields:this.uniqueIdFields}}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,s=this._normalizeQuery(e),i=null!=e.outStatistics?.[0],a=(0,n.A)("featurelayer-pbf-statistics")&&(0,c.Wo)(this.url);if(this.pbfSupported&&(!i||a)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,s){let i=(0,d.Dl)(e),a={...r},n=M.A.from(t),o=!n.quantizationParameters;return await(0,x.IJ)(i,n,new A({sourceSpatialReference:n.sourceSpatialReference,applyTransform:o}),a,s)}(this.url,s,t,this._layerMetadata)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,v.e)(this.url,s,t,this._layerMetadata),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,s){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return b.A.fromJSON(t);let{meshFeatureSetFromJSON:i}=await(0,o.qr)(Promise.all([r.e(2258),r.e(8331),r.e(9855)]).then(()=>r(40050)),s);return i(e,this.infoFor3D,t)}executeForCount(e,t){return(0,f.I)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}executeForExtent(e,t){return(0,m.L)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}executeForIds(e,t){return(0,g.V)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}async executeRelationshipQuery(e,t){let[{default:s},{executeRelationshipQuery:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeRelationshipQueryForCount(e,t){let[{default:s},{executeRelationshipQueryForCount:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:s,fetchAttachments:i,processAttachmentQueryResult:a}=await(0,o.qr)(r.e(9239).then(()=>r(9239)),t),n=(0,d.Dl)(this.url);return a(n,await(this.queryAttachmentsSupported?s(n,e,t):i(n,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(()=>r(33103)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executePivotQuery(e,t){let{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(()=>r(80566)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(3654).then(()=>r(11273)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t,this._layerMetadata)}async executeForTopIds(e,t){let{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(()=>r(21277)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeForTopExtents(e,t){let{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(()=>r(8018)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeForTopCount(e,t){let{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(()=>r(10980)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}_normalizeQuery(e){let t=M.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource);let{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(e);if(null!=r&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new a.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:s,originY:i,originZ:a,translationX:n,translationY:o,translationZ:u,scaleX:l,scaleY:p,scaleZ:c,rotationX:h,rotationY:d,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,i,a,n,o,u,l,p,c,h,d,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,h.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({types:y.e})],w.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"encodingCapabilities",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"timeInformation",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],w.prototype,"url",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"_layerMetadata",null),w=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>p,e2:()=>h,f:()=>f});var s=r(44208),i=r(4718),a=r(99352),n=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function p(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(let t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function c(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const d={...a.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...a.P,supportedStatistics:{...a.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function f(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?d:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:a.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(e,t,r){r.d(t,{I:()=>n});var s=r(2272),i=r(80893),a=r(97552);function n(e,t,r,n){return(0,i.gW)((0,s.Dl)(e),a.A.from(t),r,n)}},74910(e,t,r){r.d(t,{L:()=>o});var s=r(5443),i=r(2272),a=r(80893),n=r(97552);async function o(e,t,r,o){let u=(0,i.Dl)(e),l=await(0,a.Jf)(u,n.A.from(t),{...r},o),p=l.extent;return!p||isNaN(p.xmin)||isNaN(p.ymin)||isNaN(p.xmax)||isNaN(p.ymax)?{count:l.count,extent:null}:{count:l.count,extent:s.A.fromJSON(p)}}},78286(e,t,r){r.d(t,{V:()=>n});var s=r(2272),i=r(80893),a=r(97552);async function n(e,t,r,n){let o=(0,s.Dl)(e),u=await(0,i.Pk)(o,a.A.from(t),r,n);return u.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(u.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>u,s:()=>o});var s=r(2272),i=r(80893),a=r(22671),n=r(97552);async function o(e,t,r,s){let i=await u(e,t,r,s);return a.A.fromJSON(i)}function u(e,t,r,a){let o=(0,s.Dl)(e),u={...r},l=n.A.from(t);return(0,i.eW)(o,l,l.sourceSpatialReference,u,a)}},63746(e,t,r){function s(e){return class{constructor(){for(let t of e)this[t]=null}}}function i(e,t=1){let{transform:r,hasZ:s,hasM:i}=e;if(null==r)return s&&1!==t?e=>{e[2]*=t}:null;let[a,n]=function(e,t,r,s){let{scale:i,translate:a,originPosition:n}=e;return"upperLeft"===n&&(i=i.map((e,t)=>1===t?-e:e)),t&&(i=i.map((e,t)=>2===t?e*s:e),a=a.map((e,t)=>2===t?e*s:e)),!t&&r&&(i=i.filter((e,t)=>2!==t),a=a.filter((e,t)=>2!==t)),[i,a]}(r,s,i,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*a[t]+n[t]}}r.d(t,{M:()=>i,_:()=>s})},2272(e,t,r){r.d(t,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>p});var s=r(92602),i=r(70333),a=r(4718),n=r(84952),o=r(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,n.An)(e):(0,a.o8)(e)}function p(e,t,r){let s={};for(let i in e){if("declaredClass"===i)continue;let a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))s[i]=a.map(e=>p(e));else if("object"==typeof a)if(a.toJSON){let e=a.toJSON(r?.[i]);s[i]=t?e:JSON.stringify(e)}else s[i]=t?a:JSON.stringify(a);else s[i]=a}return s}async function c(e,t,a){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t)||(!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(7956),r.e(4189)]).then(()=>r(98232)),(await i.id.getCredential(e,a))?.token)}}}]);