@arcgis/map-components 5.2.0-next.121 → 5.2.0-next.123

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 (279) hide show
  1. package/dist/cdn/{XJGJMS7L.js → 2CE24IDF.js} +1 -1
  2. package/dist/cdn/{K3J3WDMO.js → 2FR4GN2W.js} +1 -1
  3. package/dist/cdn/{QLJEWRH3.js → 2N2VGYUB.js} +1 -1
  4. package/dist/cdn/{Q6LQ5BUX.js → 34E7N7GU.js} +1 -1
  5. package/dist/cdn/{WC2DVIUW.js → 3E36QFXG.js} +2 -2
  6. package/dist/cdn/3FRV7BIJ.js +2 -0
  7. package/dist/cdn/{GLOUXFQV.js → 3IPZE7AH.js} +1 -1
  8. package/dist/cdn/{H5FV4C72.js → 3KIT2HLC.js} +1 -1
  9. package/dist/cdn/{3KTHEK76.js → 3T274BES.js} +1 -1
  10. package/dist/cdn/{Z4FIADPO.js → 3TR7QOHP.js} +1 -1
  11. package/dist/cdn/{OTPKIKAJ.js → 3XZSI7I3.js} +1 -1
  12. package/dist/cdn/464EB67Q.js +2 -0
  13. package/dist/cdn/{I2IBXGQM.js → 5AV2IOLR.js} +1 -1
  14. package/dist/cdn/{JMWMN4DG.js → 5SLLYIWJ.js} +1 -1
  15. package/dist/cdn/{TH6TT77M.js → 5XQHTWAB.js} +1 -1
  16. package/dist/cdn/{XCARHZUP.js → 5YJQOF7B.js} +1 -1
  17. package/dist/cdn/{BAV6JF4F.js → 5Z4QFELH.js} +1 -1
  18. package/dist/cdn/5ZRBWOVW.js +2 -0
  19. package/dist/cdn/{7QH5PIWM.js → 6EQW3YHG.js} +1 -1
  20. package/dist/cdn/{6ZKGF6SQ.js → 6HN7AAG3.js} +1 -1
  21. package/dist/cdn/6LL2ILG2.js +2 -0
  22. package/dist/cdn/{FTTOI66H.js → 6UGAJNGV.js} +1 -1
  23. package/dist/cdn/{KRSOL3FL.js → 7K2PSLD3.js} +1 -1
  24. package/dist/cdn/{ALEBI75Z.js → AXFCL6D2.js} +1 -1
  25. package/dist/cdn/{FR7ARNMJ.js → B4QA6HTE.js} +1 -1
  26. package/dist/cdn/CCFGYVBQ.js +2 -0
  27. package/dist/cdn/{GYCEMWMN.js → CNXCJR63.js} +1 -1
  28. package/dist/cdn/{LM6RYRCS.js → CNYKQYK2.js} +1 -1
  29. package/dist/cdn/{UNUMT2DZ.js → D36LYGSR.js} +1 -1
  30. package/dist/cdn/{B67VAZX4.js → DJSH4JQR.js} +1 -1
  31. package/dist/cdn/{CPBFA25A.js → DLFRE6XN.js} +1 -1
  32. package/dist/cdn/{F6BRM6HX.js → DLW55IF2.js} +1 -1
  33. package/dist/cdn/{JD562WMM.js → EDMWGUZ2.js} +1 -1
  34. package/dist/cdn/{KKDWRLQ4.js → ESUJ7IS2.js} +1 -1
  35. package/dist/cdn/{FAFDJABP.js → EWPICNWR.js} +1 -1
  36. package/dist/cdn/{KIHX5LRN.js → EZFBF4SK.js} +1 -1
  37. package/dist/cdn/{GPIHHNP7.js → F46CTQWP.js} +1 -1
  38. package/dist/cdn/FDTUX3BC.js +2 -0
  39. package/dist/cdn/{QIEX43LK.js → FVI77DR5.js} +1 -1
  40. package/dist/cdn/{DAPKG4DY.js → G3KYGRHM.js} +1 -1
  41. package/dist/cdn/{Y3Y3AB5L.js → G4HKU5PR.js} +1 -1
  42. package/dist/cdn/{TVZZB4KV.js → G6ZEXGBJ.js} +1 -1
  43. package/dist/cdn/{56PUZWIU.js → G75EAA46.js} +1 -1
  44. package/dist/cdn/{Y5Q3Q4GW.js → GIOUZTHM.js} +1 -1
  45. package/dist/cdn/{4DWURRQB.js → GLH5GJZC.js} +1 -1
  46. package/dist/cdn/{3VBI4PPT.js → H3CCHIXN.js} +1 -1
  47. package/dist/cdn/{ACIG6774.js → HH5GEJCC.js} +1 -1
  48. package/dist/cdn/{MXA65YBP.js → HTQSLNPO.js} +1 -1
  49. package/dist/cdn/I7PSZ2EP.js +2 -0
  50. package/dist/cdn/ISK7BEJR.js +2 -0
  51. package/dist/cdn/{VFSWB7LJ.js → IWOKTFPQ.js} +1 -1
  52. package/dist/cdn/{OPLR5W7O.js → JSYLRK26.js} +1 -1
  53. package/dist/cdn/{WJ3JWM5S.js → JZITIN62.js} +1 -1
  54. package/dist/cdn/{5FBX5V2M.js → KHHVCV55.js} +1 -1
  55. package/dist/cdn/{LBJMKYT2.js → KM2GXXBO.js} +1 -1
  56. package/dist/cdn/{46ZZWK6X.js → KY3ND2AY.js} +1 -1
  57. package/dist/cdn/KYWVUIH5.js +2 -0
  58. package/dist/cdn/{7KWX2CED.js → LAY2RKKS.js} +1 -1
  59. package/dist/cdn/{TCYOOMSU.js → LCB5NFAN.js} +1 -1
  60. package/dist/cdn/{DOR5MVML.js → LTTYKRLO.js} +1 -1
  61. package/dist/cdn/{QNHJY7QE.js → M3EXGLNJ.js} +1 -1
  62. package/dist/cdn/{KQ3E54MW.js → M4JE53PK.js} +1 -1
  63. package/dist/cdn/MPYSRYIP.js +2 -0
  64. package/dist/cdn/{LP2PF2VT.js → NGCMS3XY.js} +1 -1
  65. package/dist/cdn/{6VR7MKOM.js → NVAZ2KQI.js} +1 -1
  66. package/dist/cdn/{KFE2444H.js → OQKO2TQ6.js} +1 -1
  67. package/dist/cdn/{VSJ3MYSY.js → P2YZCB7M.js} +1 -1
  68. package/dist/cdn/{6XJFRQ75.js → P7GH36VO.js} +1 -1
  69. package/dist/cdn/{BB66E2IZ.js → PCB2C5PV.js} +1 -1
  70. package/dist/cdn/{3EYHGXI5.js → PLTLRYBF.js} +1 -1
  71. package/dist/cdn/PR6OAZWA.js +2 -0
  72. package/dist/cdn/{LWW6FUI2.js → PT5PXWSP.js} +1 -1
  73. package/dist/cdn/{UNP7N3DO.js → PUYZDQHZ.js} +1 -1
  74. package/dist/cdn/{WLVBYYQ7.js → PYIO65MV.js} +1 -1
  75. package/dist/cdn/{JB46R4PC.js → Q2DV5IF7.js} +1 -1
  76. package/dist/cdn/{JOOXDIS7.js → Q4AJYCNY.js} +1 -1
  77. package/dist/cdn/{GG3LRZHU.js → QARN2LHH.js} +1 -1
  78. package/dist/cdn/{HH4T6PVP.js → QMQV37ML.js} +1 -1
  79. package/dist/cdn/{24SNB22W.js → QMSOVSAE.js} +1 -1
  80. package/dist/cdn/QXVHT3RD.js +5 -0
  81. package/dist/cdn/{EUV2XFUO.js → R73HRX3M.js} +1 -1
  82. package/dist/cdn/{UXUG6DBJ.js → R7E5VLXC.js} +1 -1
  83. package/dist/cdn/{7VLIHMQS.js → ROP6JGKX.js} +1 -1
  84. package/dist/cdn/{4YDQKGDY.js → RPVAC6LC.js} +1 -1
  85. package/dist/cdn/{5IQQ6P2J.js → RU7PGLLB.js} +1 -1
  86. package/dist/cdn/RVFDK6O7.js +2 -0
  87. package/dist/cdn/{4W6PAHFY.js → S62FQUEJ.js} +1 -1
  88. package/dist/cdn/S7T2NPCW.js +2 -0
  89. package/dist/cdn/{ILBDNJQP.js → SJOO6JRD.js} +1 -1
  90. package/dist/cdn/{NK74ZCP7.js → SXQRPAPL.js} +1 -1
  91. package/dist/cdn/{HGCKG3CA.js → SXRL4VDZ.js} +1 -1
  92. package/dist/cdn/{AA5T4ECA.js → T7IZYFCL.js} +1 -1
  93. package/dist/cdn/{MU54WQG6.js → TILA2OKK.js} +1 -1
  94. package/dist/cdn/{5E2DZJWK.js → TM2C2UJ2.js} +1 -1
  95. package/dist/cdn/TMJX7DFH.js +2 -0
  96. package/dist/cdn/{BFVEHL3M.js → TOM7OOAW.js} +1 -1
  97. package/dist/cdn/{UA5FRNJG.js → TSVBA2RT.js} +1 -1
  98. package/dist/cdn/{W5B2F2LI.js → TTF3OFS7.js} +1 -1
  99. package/dist/cdn/TZHXSIXK.js +2 -0
  100. package/dist/cdn/{XGZ36AOT.js → U65VFGZD.js} +1 -1
  101. package/dist/cdn/{V7BQUMJL.js → U7XNKUUX.js} +1 -1
  102. package/dist/cdn/UELKEVHS.js +2 -0
  103. package/dist/cdn/US6PRR7S.js +2 -0
  104. package/dist/cdn/{2JMMBI2U.js → UUZB2BTT.js} +1 -1
  105. package/dist/cdn/{JZKIH22R.js → UVVQOKEQ.js} +1 -1
  106. package/dist/cdn/{VHQAII6W.js → VHXR7S7C.js} +1 -1
  107. package/dist/cdn/VSH4WLRS.js +2 -0
  108. package/dist/cdn/{LGLKLXNY.js → W4KEAKF6.js} +1 -1
  109. package/dist/cdn/{QSZJFQJC.js → W7STZRDX.js} +1 -1
  110. package/dist/cdn/{IZ7UWAQP.js → WSQEOUFE.js} +1 -1
  111. package/dist/cdn/{W5YXSHEP.js → WVSZE7NB.js} +1 -1
  112. package/dist/cdn/{MFBQRTJ3.js → XHGWAHOF.js} +1 -1
  113. package/dist/cdn/XTYPZLPL.js +2 -0
  114. package/dist/cdn/{ESISPXFF.js → Y462FZAE.js} +1 -1
  115. package/dist/cdn/{EGFWED7R.js → YAUITFVH.js} +1 -1
  116. package/dist/cdn/{SR3XJAI3.js → YCK3FBCL.js} +1 -1
  117. package/dist/cdn/{55AZTWOF.js → YHN67JH4.js} +1 -1
  118. package/dist/cdn/{TOBWMRET.js → YHZFK4FD.js} +1 -1
  119. package/dist/cdn/{TB3M7LUD.js → YR2AO44W.js} +1 -1
  120. package/dist/cdn/{XP4IZ2KQ.js → YRZRKOE3.js} +1 -1
  121. package/dist/cdn/{MJK57OXC.js → YTNVFW4X.js} +1 -1
  122. package/dist/cdn/{BTQUD5J4.js → YYSME7RS.js} +1 -1
  123. package/dist/cdn/{5LLUEI66.js → ZHKAXGX4.js} +1 -1
  124. package/dist/cdn/ZUAZUUTW.js +2 -0
  125. package/dist/cdn/{NZSCPBS7.js → ZZ465HDX.js} +1 -1
  126. package/dist/cdn/{2DZOKMWP.js → ZZJWG3GK.js} +1 -1
  127. package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
  128. package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
  129. package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
  130. package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
  131. package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
  132. package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
  133. package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
  134. package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
  135. package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
  136. package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
  137. package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
  138. package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
  139. package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
  140. package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
  141. package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
  142. package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
  143. package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
  144. package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
  145. package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
  146. package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
  147. package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
  148. package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
  149. package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
  150. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
  151. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
  152. package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
  153. package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
  154. package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
  155. package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
  156. package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
  157. package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
  158. package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
  159. package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
  160. package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
  161. package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
  162. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
  163. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
  164. package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -1
  165. package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -1
  166. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
  167. package/dist/cdn/index.js +1 -1
  168. package/dist/chunks/layer-utils.js +48 -44
  169. package/dist/chunks/slots.js +1 -1
  170. package/dist/components/arcgis-expand/customElement.d.ts +9 -0
  171. package/dist/components/arcgis-expand/customElement.js +27 -27
  172. package/dist/components/arcgis-exploratory-analysis/customElement.js +46 -46
  173. package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
  174. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  175. package/dist/components/arcgis-fullscreen/customElement.js +9 -10
  176. package/dist/components/arcgis-legend-card-element/customElement.js +26 -26
  177. package/dist/components/arcgis-link-chart/customElement.d.ts +9 -0
  178. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  179. package/dist/components/arcgis-map/customElement.d.ts +9 -0
  180. package/dist/components/arcgis-map/customElement.js +2 -2
  181. package/dist/components/arcgis-paste/customElement.js +1 -1
  182. package/dist/components/arcgis-scale-bar/customElement.js +8 -8
  183. package/dist/components/arcgis-scene/customElement.d.ts +9 -0
  184. package/dist/components/arcgis-scene/customElement.js +6 -6
  185. package/dist/components/arcgis-selection-list/customElement.d.ts +33 -12
  186. package/dist/components/arcgis-selection-list/customElement.js +79 -63
  187. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +42 -2
  188. package/dist/components/arcgis-selection-toolbar/customElement.js +60 -37
  189. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +18 -3
  190. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +63 -53
  191. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +11 -3
  192. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +107 -53
  193. package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -0
  194. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +5 -1
  195. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +19 -11
  196. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +124 -110
  197. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +29 -0
  198. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +31 -17
  199. package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
  200. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +63 -14
  201. package/dist/components/arcgis-utility-network-trace-results/customElement.js +245 -55
  202. package/dist/components/arcgis-utility-network-trace-results/index.js +1 -2
  203. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +7 -7
  204. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  205. package/dist/docs/api.json +1 -1
  206. package/dist/docs/docs.json +1 -1
  207. package/dist/docs/vscode.html-custom-data.json +1 -1
  208. package/dist/docs/web-types.json +1 -1
  209. package/dist/index.d.ts +6 -0
  210. package/dist/loader.js +10 -10
  211. package/dist/types/lumina.d.ts +14 -9
  212. package/dist/types/preact.d.ts +14 -9
  213. package/dist/types/react.d.ts +14 -9
  214. package/dist/types/stencil.d.ts +14 -9
  215. package/package.json +7 -7
  216. package/dist/cdn/4FADGEJD.js +0 -2
  217. package/dist/cdn/4FBTH6YD.js +0 -2
  218. package/dist/cdn/4SLCQ6RS.js +0 -2
  219. package/dist/cdn/A2FK4TED.js +0 -2
  220. package/dist/cdn/BOEHQXPR.js +0 -2
  221. package/dist/cdn/C2HB2U6P.js +0 -2
  222. package/dist/cdn/CRWARUC7.js +0 -2
  223. package/dist/cdn/GC4D3K6B.js +0 -2
  224. package/dist/cdn/GJZCVU6G.js +0 -5
  225. package/dist/cdn/GYTTYWIC.js +0 -2
  226. package/dist/cdn/JGHPNDIO.js +0 -2
  227. package/dist/cdn/JRFQGFRL.js +0 -2
  228. package/dist/cdn/MRC7R44N.js +0 -2
  229. package/dist/cdn/MT6BTCFR.js +0 -2
  230. package/dist/cdn/OYD6YL32.js +0 -2
  231. package/dist/cdn/QD7ELNLS.js +0 -2
  232. package/dist/cdn/RVJTWRVG.js +0 -2
  233. package/dist/cdn/TBSKBHHL.js +0 -2
  234. package/dist/cdn/TIDNGXMD.js +0 -2
  235. package/dist/cdn/Z44GSKHZ.js +0 -2
  236. package/dist/cdn/ZB6W452H.js +0 -2
  237. /package/dist/cdn/{ZU6D3YMF.js → 27MP6TEF.js} +0 -0
  238. /package/dist/cdn/{3XRSSDOC.js → 3JCF73F4.js} +0 -0
  239. /package/dist/cdn/{RLTZHJ26.js → 3XEPXV4Q.js} +0 -0
  240. /package/dist/cdn/{IMINWWQN.js → 43IOCYG5.js} +0 -0
  241. /package/dist/cdn/{HMZDI4HQ.js → 45JO7F4Y.js} +0 -0
  242. /package/dist/cdn/{232VF5GS.js → 4W35GLNO.js} +0 -0
  243. /package/dist/cdn/{7HQJTIYO.js → 5CER2N5T.js} +0 -0
  244. /package/dist/cdn/{33AEAI5T.js → 5M56ZA46.js} +0 -0
  245. /package/dist/cdn/{W6X34YBZ.js → 6NWR2Z4F.js} +0 -0
  246. /package/dist/cdn/{KMODOE6H.js → 7FVXPOAG.js} +0 -0
  247. /package/dist/cdn/{2PRRRGTC.js → AYJQLWX4.js} +0 -0
  248. /package/dist/cdn/{HJP2DQC3.js → AZ73DBU3.js} +0 -0
  249. /package/dist/cdn/{CQW2542N.js → B4CANXID.js} +0 -0
  250. /package/dist/cdn/{HLHFT3VN.js → BEFZSVBT.js} +0 -0
  251. /package/dist/cdn/{55Q2U4HS.js → BIWQEPK4.js} +0 -0
  252. /package/dist/cdn/{N5NLF7RI.js → BLYJE76S.js} +0 -0
  253. /package/dist/cdn/{2Q7J34UP.js → CESFJ6AD.js} +0 -0
  254. /package/dist/cdn/{5ZZ7JN5X.js → COKGOKO2.js} +0 -0
  255. /package/dist/cdn/{7Y65HW7Z.js → D3LYSFXK.js} +0 -0
  256. /package/dist/cdn/{FZATLDJD.js → EAM45WZP.js} +0 -0
  257. /package/dist/cdn/{6VBFCBUV.js → EDTGV4YF.js} +0 -0
  258. /package/dist/cdn/{62XRQDSI.js → FMBY3L4S.js} +0 -0
  259. /package/dist/cdn/{TKC3X6S6.js → GQ6SYNZS.js} +0 -0
  260. /package/dist/cdn/{YUZAZ3CJ.js → H4FH2RBM.js} +0 -0
  261. /package/dist/cdn/{P3MLJ7YL.js → I5ZESLWO.js} +0 -0
  262. /package/dist/cdn/{MM6LPGBW.js → KO7RD6SS.js} +0 -0
  263. /package/dist/cdn/{2LEEKX4J.js → LQ76PRWK.js} +0 -0
  264. /package/dist/cdn/{CTHAODQE.js → MUWOF7W4.js} +0 -0
  265. /package/dist/cdn/{G5DB24SO.js → OCLOCCB6.js} +0 -0
  266. /package/dist/cdn/{2UG26OVP.js → OJXNUBIA.js} +0 -0
  267. /package/dist/cdn/{ANRJPTRX.js → OUXE3CSQ.js} +0 -0
  268. /package/dist/cdn/{AKKV6RKF.js → PXAY7IM4.js} +0 -0
  269. /package/dist/cdn/{4PMOT2RS.js → QMYL4UM7.js} +0 -0
  270. /package/dist/cdn/{UCFBAQVW.js → QPFX5XH3.js} +0 -0
  271. /package/dist/cdn/{EGN54PEX.js → RFSBZHJD.js} +0 -0
  272. /package/dist/cdn/{4TZLBS5N.js → RYYBMDGS.js} +0 -0
  273. /package/dist/cdn/{CDGKQKVU.js → T2DT5I33.js} +0 -0
  274. /package/dist/cdn/{EJ5KLAEE.js → UINNR6FV.js} +0 -0
  275. /package/dist/cdn/{KWL3F4UP.js → UPZVIKOH.js} +0 -0
  276. /package/dist/cdn/{KXCLNNE5.js → VCRVQMYT.js} +0 -0
  277. /package/dist/cdn/{COSLSZXO.js → VWN2LORT.js} +0 -0
  278. /package/dist/cdn/{3NKJ4HFO.js → XAMLHDWZ.js} +0 -0
  279. /package/dist/cdn/{N43ZQ4C7.js → ZWN6DXNO.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./C2HB2U6P.js";import{a as E}from"./5JADSW57.js";import{O as M,V as I,a as S,b as p,o as l,q as m,w as b}from"./GFTZ7EZP.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,T,x,O,G,{substitute:W},{b:P,d:v,f:C,g:_}])=>{var H=S`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,$=class q extends M{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterMapInteraction:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){this.#r(),await this.manager.destroy()}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this._isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new x({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new x({color:e,style:"square",size:12,outline:{color:e,width:0}}):new x({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#x(t)||""}${o&&this.#k()||""}</div>`||""}`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#T(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#S(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#$(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#M(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#S(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#M()}};I("arcgis-utility-network-trace-locations",$);return $},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
2
+ import a from"./TMJX7DFH.js";import{a as E}from"./5JADSW57.js";import{O as M,V as I,a as S,b as p,o as l,q as m,w as b}from"./GFTZ7EZP.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,T,x,O,G,{substitute:W},{b:P,e:v,g:C,h:_}])=>{var H=S`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,$=class q extends M{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterMapInteraction:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){this.#r(),await this.manager.destroy()}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this._isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new T({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new x({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new x({color:e,style:"square",size:12,outline:{color:e,width:0}}):new x({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#x(t)||""}${o&&this.#k()||""}</div>`||""}`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#T(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#S(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#$(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#M(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#S(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#M()}};I("arcgis-utility-network-trace-locations",$);return $},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./4DWURRQB.js";import a from"./C2HB2U6P.js";import"./5JADSW57.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([,a])=>{return a},a,b)
2
+ import b from"./GLH5GJZC.js";import a from"./TMJX7DFH.js";import"./5JADSW57.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as vt}from"./HH4T6PVP.js";import{D as _t,E as q,P as at,R as ft,S as xt,c as M,ga as ct,i as w,j as v,ja as bt,k as T,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./MRC7R44N.js";import{P as R,a as z,u as C}from"./3EYHGXI5.js";import{a as gt,b as tt,d as D,e as f}from"./CDGKQKVU.js";import{W,X as yt,g as Y,o as k}from"./W6X34YBZ.js";import"./H6RQVSYM.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:D,height:D}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var $=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};$.className="PercentChart";$.classNames=ut.classNames.concat([$.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let u=e.get("label");u&&s.push(u.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(_t,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends ${constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),u=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt){let p=l.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=C(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=C(this.get("radius",0),this._maxRadius),i=C(this.get("innerRadius",0),t);if(e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+C(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+C(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=$.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*w(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",D),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*w(m))}a+=u,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=T(r),u=w(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*T(x),g=y*w(x)}let d=-h;i.getPrivate("left")&&(d=m),c=[{x:s.x()+l*n,y:s.y()+l*u},{x:p+d,y:g},{x:p,y:g}]}t.set("points",c)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),u=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*u,h=a+(l-a)*o;t.setAll({x:T(m)*h,y:w(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=C(this.get("cornerRadiusTL",0),s),l=C(this.get("cornerRadiusTR",0),s),r=C(this.get("cornerRadiusBR",0),s),n=C(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:u,y:o}),x=et({x:u,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:c,y:d}),_=et({x:c,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(m-u)/2),r=Math.min(r,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let A=m-a*v((y-_)/2)*T(_),P=h-a*v((y-_)/2)*w(_),F=m-a*v((_-y)/2)*T(y),Z=h-a*v((_-y)/2)*w(y),N=u-l*v((x-y)/2)*T(y),nt=o-l*v((x-y)/2)*w(y),B=u-l*v((y-x)/2)*T(x),O=o-l*v((y-x)/2)*w(x),J=p-r*v((b-x)/2)*T(x),j=g-r*v((b-x)/2)*w(x),Q=p-r*v((x-b)/2)*T(b),I=g-r*v((x-b)/2)*w(b),pt=c-n*v((_-b)/2)*T(b),st=d-n*v((_-b)/2)*w(b),ot=c-n*v((b-_)/2)*T(_),Tt=d-n*v((b-_)/2)*w(_);e.moveTo(F,Z),e.lineTo(N,nt),e.arcTo(u,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(c,d,ot,Tt,n),e.quadraticCurveTo(this._cplx,this._cply,A,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*t,h=n+(u-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*e,h=n+(u-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>ft._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e.setAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),u=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:D,x:D})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:f}),i._setCAll({centerX:f,x:0})):(t._setCAll({y:f}),i._setCAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),u=r;t=="horizontal"&&(u=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):e.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*u,y=(h-(h-o)*p)/g*u;i._setCAll({topWidth:d,bottomWidth:y,orientation:t}),a._setCAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let _=a.height()*c;n=n*(b-x)+_,i._setC("y",this._nextCoord);let A=Math.min(1e5,Math.max(0,n/this._count*c/this._total-_));i._setCAll({height:A,x:r/2});let P=this._nextCoord+A/2;s._setC("y",P),this._nextCoord+=A+_,a._setCAll({y:this._nextCoord-_,x:r/2})}else{let _=a.width()*c;r=r*(b-x)+_,i._setC("x",this._nextCoord);let A=Math.min(1e5,Math.max(0,r/this._count*c/this._total-_));i._setCAll({width:A,y:n/2});let P=this._nextCoord+A/2;s._setC("x",P),this._nextCoord+=A+_,a._setCAll({x:this._nextCoord-_,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),u=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.x=n,c.y=i.y(),d.x=n-o,d.y=c.y):(c.x=l.x()+l.width(),c.y=i.y(),d.x=c.x+n-i.width()-m,d.y=c.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.y=u,c.x=i.x(),d.y=u-h,d.x=c.x):(c.y=l.y()+l.height(),c.x=i.x(),d.y=c.y+u-i.height()-p,d.x=c.x)),t.set("points",[g,c,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",D),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),c,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),_=l.height();t=="horizontal"&&([x,y]=[y,x],[b,_]=[_,b]);let A=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),_*=P,y=y*(o-u)-_*(this._count*this._total-1);let F=C(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=C(h,x),N=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(N*N-2*st*B);c=(N-Math.sqrt(ot))/B,c>0?d=(2*st-c*N)/c:d=N}else c=y*p/n,d=N-c*B;let O=this._nextCoord+c/2,J=A,j=this._nextCoord,Q=A,I=j+c;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",c)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:t,bottomWidth:d,topWidth:N,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=c+_}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",D),this._setC("bottomWidth",D),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,u=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/u,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a._setC("scale",l),a._setC("x",t/2),a._setC("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=$.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,$ as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
2
+ import{a as vt}from"./QMQV37ML.js";import{D as _t,E as q,P as at,R as ft,S as xt,c as M,ga as ct,i as w,j as v,ja as bt,k as T,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./TZHXSIXK.js";import{P as R,a as z,u as C}from"./PLTLRYBF.js";import{a as gt,b as tt,d as D,e as f}from"./T2DT5I33.js";import{W,X as yt,g as Y,o as k}from"./6NWR2Z4F.js";import"./H6RQVSYM.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:D,height:D}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var $=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};$.className="PercentChart";$.classNames=ut.classNames.concat([$.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let u=e.get("label");u&&s.push(u.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(_t,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends ${constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),u=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt){let p=l.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=C(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=C(this.get("radius",0),this._maxRadius),i=C(this.get("innerRadius",0),t);if(e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+C(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+C(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=$.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*w(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",D),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*w(m))}a+=u,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=T(r),u=w(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*T(x),g=y*w(x)}let d=-h;i.getPrivate("left")&&(d=m),c=[{x:s.x()+l*n,y:s.y()+l*u},{x:p+d,y:g},{x:p,y:g}]}t.set("points",c)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),u=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*u,h=a+(l-a)*o;t.setAll({x:T(m)*h,y:w(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=C(this.get("cornerRadiusTL",0),s),l=C(this.get("cornerRadiusTR",0),s),r=C(this.get("cornerRadiusBR",0),s),n=C(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:u,y:o}),x=et({x:u,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:c,y:d}),_=et({x:c,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(m-u)/2),r=Math.min(r,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let A=m-a*v((y-_)/2)*T(_),P=h-a*v((y-_)/2)*w(_),F=m-a*v((_-y)/2)*T(y),Z=h-a*v((_-y)/2)*w(y),N=u-l*v((x-y)/2)*T(y),nt=o-l*v((x-y)/2)*w(y),B=u-l*v((y-x)/2)*T(x),O=o-l*v((y-x)/2)*w(x),J=p-r*v((b-x)/2)*T(x),j=g-r*v((b-x)/2)*w(x),Q=p-r*v((x-b)/2)*T(b),I=g-r*v((x-b)/2)*w(b),pt=c-n*v((_-b)/2)*T(b),st=d-n*v((_-b)/2)*w(b),ot=c-n*v((b-_)/2)*T(_),Tt=d-n*v((b-_)/2)*w(_);e.moveTo(F,Z),e.lineTo(N,nt),e.arcTo(u,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(c,d,ot,Tt,n),e.quadraticCurveTo(this._cplx,this._cply,A,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*t,h=n+(u-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*e,h=n+(u-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>ft._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e.setAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),u=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:D,x:D})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:f}),i._setCAll({centerX:f,x:0})):(t._setCAll({y:f}),i._setCAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),u=r;t=="horizontal"&&(u=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):e.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*u,y=(h-(h-o)*p)/g*u;i._setCAll({topWidth:d,bottomWidth:y,orientation:t}),a._setCAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let _=a.height()*c;n=n*(b-x)+_,i._setC("y",this._nextCoord);let A=Math.min(1e5,Math.max(0,n/this._count*c/this._total-_));i._setCAll({height:A,x:r/2});let P=this._nextCoord+A/2;s._setC("y",P),this._nextCoord+=A+_,a._setCAll({y:this._nextCoord-_,x:r/2})}else{let _=a.width()*c;r=r*(b-x)+_,i._setC("x",this._nextCoord);let A=Math.min(1e5,Math.max(0,r/this._count*c/this._total-_));i._setCAll({width:A,y:n/2});let P=this._nextCoord+A/2;s._setC("x",P),this._nextCoord+=A+_,a._setCAll({x:this._nextCoord-_,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),u=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.x=n,c.y=i.y(),d.x=n-o,d.y=c.y):(c.x=l.x()+l.width(),c.y=i.y(),d.x=c.x+n-i.width()-m,d.y=c.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.y=u,c.x=i.x(),d.y=u-h,d.x=c.x):(c.y=l.y()+l.height(),c.x=i.x(),d.y=c.y+u-i.height()-p,d.x=c.x)),t.set("points",[g,c,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",D),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),c,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),_=l.height();t=="horizontal"&&([x,y]=[y,x],[b,_]=[_,b]);let A=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),_*=P,y=y*(o-u)-_*(this._count*this._total-1);let F=C(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=C(h,x),N=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(N*N-2*st*B);c=(N-Math.sqrt(ot))/B,c>0?d=(2*st-c*N)/c:d=N}else c=y*p/n,d=N-c*B;let O=this._nextCoord+c/2,J=A,j=this._nextCoord,Q=A,I=j+c;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",c)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:t,bottomWidth:d,topWidth:N,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=c+_}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",D),this._setC("bottomWidth",D),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,u=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/u,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a._setC("scale",l),a._setC("x",t/2),a._setC("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=$.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,$ as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./4FBTH6YD.js";import a from"./KORK4WZ7.js";import{a as f}from"./XSCEZHHS.js";import{h as d,t as v}from"./GFTZ7EZP.js";export default $arcgis.t(([{watch:E},{b:b},{d:w,f:u,g:y}])=>{var k=(m,e)=>t=>g(t,m),h=class extends w{#o=new Map;#e;#t;constructor(e,t){super(e,t),new b(e);let s=this,o=s.instance,i=o.viewModel,r=o.visibleElements,l=new Proxy(this.exports,{get(n,c,p){return c==="viewModel"?i:c==="visibleElements"?r:Reflect.get(n,c,p)}});if(s.#t=o,s.instance=l,s.exports=l,i){let n={component:e,get exports(){return s.instance.viewModel}};y(s).set("viewModel","viewModel"),e.addController(n),i=u(e,new WeakRef(n),d(e)-1,i,s.#o)}s.instance.visibleElements&&(r=s.#s(o))}hostConnected(){this.instance=this.#t,super.hostConnected()}hostLoad(){this.#e=E(()=>this.component.el.view,e=>{let t=this.instance;!("view"in t)&&typeof t.viewModel=="object"?t.viewModel.view=e:t.view=e,!("map"in t)&&typeof t.viewModel=="object"?t.viewModel.map=e?.map:t.map=e?.map},{sync:!0,initial:!0})}hostUpdate(e){e.has("closed")&&(this.instance.visible=!this.component.closed)}hostLoaded(){let{el:e}=this.component;e.childElem??=document.createElement("div"),e.childElem.setAttribute("arcgis-widget-wrapped",""),this.instance.container=e.childElem,(this.component.el.shadowRoot??this.component.el).appendChild(this.instance.container),this.component.closed!==void 0&&this.onLifecycle(()=>E(()=>this.instance.visible,t=>this.component.closed=!t,{initial:!0}))}#s(e){return new Proxy(e.visibleElements,{get:(t,s)=>{if(typeof s=="symbol"||s in Promise.prototype)return t[s];let o=[s],i=this.#n(o);return v(this.component,r=>{let l=r;this.component[l]=!1;let n=e.visibleElements??{},c;for(let a of o.slice(0,-1))if(typeof n[a]=="object"&&n[a]!==null)n=n[a];else{c=!!n[a];break}c===void 0&&(c=!!(n[o.slice(-1)[0]]??!0));let p=l.startsWith("hide")||l.startsWith("show")?l.startsWith("hide"):c;this.onUpdate(a=>{if(a.has(l)){let x=this.component[l];this.#i(o,x,p)}})},i)}})}#n(e){let t=new Proxy({},{get:(s,o)=>{let i=Reflect.get(s,o);return typeof o=="symbol"||o in Promise.prototype?i:(e.push(o),t)}});return t}#i(e,t,s){let o=this.instance.visibleElements??{};for(let r of e.slice(0,-1))(typeof o[r]!="object"||o[r]===null)&&(o[r]={}),o=o[r];let i=!!(s?!t:t);o[e.at(-1)]=i}hostDestroy(){this.#e?.remove(),super.hostDestroy()}},g=f(h);return k},"core/reactiveUtils",a,b)
2
+ import b from"./5ZRBWOVW.js";import a from"./KORK4WZ7.js";import{a as f}from"./XSCEZHHS.js";import{h as d,t as v}from"./GFTZ7EZP.js";export default $arcgis.t(([{watch:E},{b:b},{d:w,f:u,g:y}])=>{var k=(m,e)=>t=>g(t,m),h=class extends w{#o=new Map;#e;#t;constructor(e,t){super(e,t),new b(e);let s=this,o=s.instance,i=o.viewModel,r=o.visibleElements,l=new Proxy(this.exports,{get(n,c,p){return c==="viewModel"?i:c==="visibleElements"?r:Reflect.get(n,c,p)}});if(s.#t=o,s.instance=l,s.exports=l,i){let n={component:e,get exports(){return s.instance.viewModel}};y(s).set("viewModel","viewModel"),e.addController(n),i=u(e,new WeakRef(n),d(e)-1,i,s.#o)}s.instance.visibleElements&&(r=s.#s(o))}hostConnected(){this.instance=this.#t,super.hostConnected()}hostLoad(){this.#e=E(()=>this.component.el.view,e=>{let t=this.instance;!("view"in t)&&typeof t.viewModel=="object"?t.viewModel.view=e:t.view=e,!("map"in t)&&typeof t.viewModel=="object"?t.viewModel.map=e?.map:t.map=e?.map},{sync:!0,initial:!0})}hostUpdate(e){e.has("closed")&&(this.instance.visible=!this.component.closed)}hostLoaded(){let{el:e}=this.component;e.childElem??=document.createElement("div"),e.childElem.setAttribute("arcgis-widget-wrapped",""),this.instance.container=e.childElem,(this.component.el.shadowRoot??this.component.el).appendChild(this.instance.container),this.component.closed!==void 0&&this.onLifecycle(()=>E(()=>this.instance.visible,t=>this.component.closed=!t,{initial:!0}))}#s(e){return new Proxy(e.visibleElements,{get:(t,s)=>{if(typeof s=="symbol"||s in Promise.prototype)return t[s];let o=[s],i=this.#n(o);return v(this.component,r=>{let l=r;this.component[l]=!1;let n=e.visibleElements??{},c;for(let a of o.slice(0,-1))if(typeof n[a]=="object"&&n[a]!==null)n=n[a];else{c=!!n[a];break}c===void 0&&(c=!!(n[o.slice(-1)[0]]??!0));let p=l.startsWith("hide")||l.startsWith("show")?l.startsWith("hide"):c;this.onUpdate(a=>{if(a.has(l)){let x=this.component[l];this.#i(o,x,p)}})},i)}})}#n(e){let t=new Proxy({},{get:(s,o)=>{let i=Reflect.get(s,o);return typeof o=="symbol"||o in Promise.prototype?i:(e.push(o),t)}});return t}#i(e,t,s){let o=this.instance.visibleElements??{};for(let r of e.slice(0,-1))(typeof o[r]!="object"||o[r]===null)&&(o[r]={}),o=o[r];let i=!!(s?!t:t);o[e.at(-1)]=i}hostDestroy(){this.#e?.remove(),super.hostDestroy()}},g=f(h);return k},"core/reactiveUtils",a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import h from"./RU7PGLLB.js";import{a as M}from"./VSH4WLRS.js";import{a as g}from"./TN5C3MSL.js";import{a as L}from"./I7GS3EKH.js";import e from"./YG4HDEP3.js";import"./VJVKFKSG.js";import d from"./ISK7BEJR.js";import b from"./5ZRBWOVW.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{M as w,N as v,O as _,Q as m,V as f,b as p,w as c}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:n},Q,x,{fetchKnowledgeGraph:z},Z,{isAbortError:P},F,{d:V,e:I,f:A,g:E},{c:d,e:C},i,{b:u},{a:k,b:D,c:R,d:U}])=>{var G=d(x,{}),O=d(Q,{}),y=class extends _{constructor(){super(),this._attributionMode=null,this._containerRef=w(),this._mapRef=w(),this._uiController=new k(this),this._activeLoadAbortController=null,this.arcgisLoadError=R(this),this.arcgisViewReadyError=U(this),this._map=G(this),this._baseCypherQuery="",this._serviceUrl="",this._propItemId="",this.view=O(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.graphics=this.view.graphics,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.arcgisViewAnalysisViewCreate=i(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=i(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=i(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=c(),this.arcgisViewClick=i(()=>this.view,"click"),this.arcgisViewDoubleClick=i(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=i(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=i(()=>this.view,"drag"),this.arcgisViewHold=i(()=>this.view,"hold"),this.arcgisViewImmediateClick=i(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=i(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=i(()=>this.view,"key-down"),this.arcgisViewKeyUp=i(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=i(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=i(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=i(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=i(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=i(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=i(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=i(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=i(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=i(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=c(),this.arcgisViewVerticalTwoFingerDrag=i(()=>this.view,"vertical-two-finger-drag"),D(this),this.view.ui={components:[]}}static{this.properties={_map:16,_baseCypherQuery:16,_serviceUrl:16,_propItemId:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,focusAreas:0,graphics:0,hideAttribution:5,highlights:0,interacting:32,itemId:3,baseCypherQuery:3,serviceUrl:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,selectionManager:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewpoint:0,zoom:9,loadErrorSources:0}}static{this.styles=[L,M]}get aria(){return this.view?.aria}set aria(e){this.view&&(this.view.aria=e)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(e){this._attributionMode=e,e!=="auto"&&(this.view.attributionMode=e)}get center(){return this.view.center}set center(e){if(I(e,this._center))return;this._center=A(e);let t=E(e,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(e){this.extent?.equals(e)||(this.view.extent=e)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(e){this.map&&(this.map.focusAreas=e)}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(e){this.view.attributionVisible=!e}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(e){this._propItemId=e}get baseCypherQuery(){return this._baseCypherQuery}set baseCypherQuery(e){this._baseCypherQuery=e}get serviceUrl(){return this._serviceUrl}set serviceUrl(e){this._serviceUrl=e}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(e){this.view.scale=e}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(e){V(this.viewpoint,e)&&(this.view.viewpoint=e)}get zoom(){return this.view.zoom}set zoom(e){this.view.zoom=e}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(e,t){return this.view.fetchPopupFeatures(e,t)}async goTo(e,t){return await this.view.goTo(e,t)}async openPopup(e){this._uiController.openPopup(e)}toMap(e){return this.view.toMap(e)}toScreen(e,t){return this.view.toScreen(e,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(e,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>e?.()).catch(t)}async whenAnalysisView(e){return await this.view.whenAnalysisView(e)}async whenLayerView(e){return await this.view.whenLayerView(e)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}willUpdate(e){let t=()=>{this._activeLoadAbortController?.abort();let a=new AbortController;return this._activeLoadAbortController=a,a};if(e.has("_propItemId")||e.has("_serviceUrl")||e.has("_baseCypherQuery")){if(e.has("_propItemId")&&this._propItemId||e.has("_propItemId")&&!this._serviceUrl)t(),s.reCreateAccessor(this._map,this),s.setPortalItem(this._map,this._propItemId),s.setMap(this.view,this._map);else if(!this._propItemId)if(this._serviceUrl&&!this._baseCypherQuery){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{let h=new s.WebLinkChart,o=new s.LinkChartLayer({url:l.url});o.load({signal:a?.signal});try{u(a.signal),h.add(o),this._setLinkChartAndZoom(h)}catch(b){if(!P(b))throw b}})}else if(this._baseCypherQuery&&this._serviceUrl){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{s.WebLinkChart.fromCypherQuery(l,new Z({openCypherQuery:this._baseCypherQuery}),void 0,{signal:a?.signal}).then(async h=>{try{u(a.signal),this._setLinkChartAndZoom(h)}catch(o){if(!P(o))throw o}})})}else!this._serviceUrl&&e.has("_serviceUrl")&&(t(),s.setMap(this.view,null))}}loaded(){let e=this;e.el.childElem=this._mapRef.value,this.view.container??=e.el.childElem,s.setLocalPublicMap(this,this._map),this.manager.onLifecycle(()=>[n(()=>this.map,t=>{t&&s.setLocalPrivateMap(this,t)},{initial:!0,sync:!0}),n(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),n(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),n(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}_setLinkChartAndZoom(e){s.reCreateAccessor(this._map,this),s.setLocalPrivateMap(this,e),s.setMap(this.view,e),this._map&&this.view.when(()=>{e.diagramNodesExtent&&this.view.goTo(e.diagramNodesExtent)})}renderMain(){return p`<div class=${m(g.base)} ${v(this._mapRef)}></div>`}render(){return p`${this.renderMain()}<section class=${m(g.containerUI)} ${v(this._containerRef)}>${this._uiController.render()}</section>`}},s={fetchKnowledgeGraph:async r=>await z(r),WebLinkChart:x,LinkChartLayer:F,setMap:(r,e)=>{r.map=e},setLocalPrivateMap:(r,e)=>{r._map=e},setLocalPublicMap:(r,e)=>{r.map||=e},setPortalItem(r,e){r.portalItem={id:e}},reCreateAccessor:C};f("arcgis-link-chart",y);return{ArcgisLinkChart:y,exportsForTests:s}},"core/reactiveUtils","views/LinkChartView","WebLinkChart","rest/knowledgeGraphService","rest/knowledgeGraph/GraphQueryStreaming","core/promiseUtils","layers/LinkChartLayer",a,b,d,e,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./5ZRBWOVW.js";export default $arcgis.t(([{a:t}])=>{var r=t;return r},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./HIFWGQCW.js";import{a as r}from"./UNPUCYYB.js";import b from"./C2HB2U6P.js";import{a as p}from"./OCZ5FM6Y.js";import{a as f}from"./5JADSW57.js";import"./JD74LG7K.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{N as d,V as h,a as u,b as a}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{stripHTML:y},{formatNumber:I,substitute:_},{watch:v},{a:m},g])=>{var F=u`:host{background-color:var(--calcite-color-surface-2)}.feature-observer{position:relative;bottom:var(--calcite-space-2xl);z-index:2;text-align:center}.header{calcite-block{margin-block-start:calc(var(--calcite-size-3xs) * -1.5);margin-inline:calc(var(--calcite-size-xs) * -1)}}.header>*{margin-block-end:var(--calcite-size-3xs)}.header>:last-child{color:var(--calcite-color-text-3)}.heading-content{display:flex;align-items:center;calcite-icon{margin-inline-end:var(--calcite-size-3xs)}}.list-container{display:flex;flex-direction:column;min-height:var(--calcite-space-3xl);calcite-fab{align-self:center;margin-block:var(--calcite-space-md)}}`;function L(c){let{percentAlong:t}=c;return t==null?"":I(t,{style:"percent",maximumFractionDigits:2})}async function A(c){let t=c.attributes,e=m(c)?c.sourceLayer:void 0,i=c.origin,s=i&&"layer"in i?i.layer:e??c.layer;if(!t||!s)return"";if("getFeatureTitle"in s)return await s.getFeatureTitle(c);let n="displayField"in s?s.displayField:null,o=n!=null?t[n.toString()]:null;return o!=null&&typeof o!="string"&&(o=o.toString()),o||c.getObjectId()?.toString()||""}function $(c){let{associationType:t}=c;return t==="connectivity"||t==="junction-edge-from-connectivity"||t==="junction-edge-midspan-connectivity"||t==="junction-edge-to-connectivity"||t==="junction-junction-connectivity"}function x(c){return c.associationType==="junction-edge-midspan-connectivity"}var l=class extends g{constructor(){super(...arguments),this._messagesFeature=f({name:"feature",blocking:!0}),this.#e=0,this.#t=!1,this._filteredItemCount=0,this.addAssociation=()=>{},this.headingLevel=5,this.hideAssociationDetails=!1,this.selectAssociatedFeature=async()=>{},this.selectAssociatedLayer=()=>{},this.topLayerDisabled=!1}static{this.properties={_featureTitle:16,_filteredItemCount:16,_featureInfosPage:16,_featureInfos:16,addAssociation:0,associatedFeatureCount:32,associationInput:0,headingLevel:9,hideAssociationDetails:5,selectAssociatedFeature:0,selectAssociatedLayer:0,topLayerDisabled:5}}static{this.styles=F}#e;#t;get _featureInfosPage(){return this._featureInfos.slice(0,this.endIndex)}get _featureInfos(){let t=this.associationInput?.associatedFeatures;return t?t.toArray():[]}get associatedFeatureCount(){return this._featureInfos.length}loaded(){super.loaded(),this.manager.onLifecycle(()=>[v(()=>[this.associationInput,this.associationInput?.associationFeature,this.associationInput?.featureItem?.label],()=>{this.#n()},{initial:!0}),v(()=>this.associationInput?.updating??!1,t=>this.state=t?"querying":"ready",{initial:!0})])}#s(t){let e=t.activeAssociationType?.type;if(!e)return;let{attachment:i,connectivity:s,container:n,content:o,structure:b}=this._messages.associationTypes;switch(e){case"attachment":return i;case"connectivity":return s;case"container":return n;case"content":return o;case"structure":return b;default:return}}#i(t){return`association-${t.association.globalId}`}#a(t){this._filteredItemCount=t?this.associatedFeatureCount:0}async#c(t){if(!this.#t){this.#t=!0;try{await this.selectAssociatedFeature({feature:t.feature,association:t.association})}finally{this.#t=!1}}}async#n(){let{associationInput:t}=this,e=++this.#e;if(!t?.associationFeature||t.featureItem?.label){this._featureTitle=void 0;return}let i=await A(t.associationFeature);e===this.#e&&(this._featureTitle=i)}#o(t){let e=t.title||this._messagesCommon.untitled,i=this.#i(t),s=x(t.association),n=s?L(t.association):"";return r(i,a`<calcite-list-item .description=${y(t.terminalName??"")} .label=${y(e)} @calciteListItemSelect=${()=>this.#c(t)}>${$(t.association)?this._renderConnectivityIcon(t.association.associationType,i):null}${s?a`<calcite-chip .label=${n} scale=s slot=content-end>${n}</calcite-chip>`:null}<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}#r(){let t=this._featureInfosPage,e=t.map(s=>this.#h(s)),i=t.map(s=>this.#o(s));return[...e,...i]}#l(t){let e=this.#s(t)??"",i=t.featureItem?.label||this._featureTitle||"";return a`<calcite-block .description=${e} .heading=${i}></calcite-block>`}#u(t,e){return a`${this.#d(t,e)}<div class="list-container">${this._renderFeatureCountWarning()}${r(`associated-features-list-${e.id}`,a`<calcite-list filter-enabled .filterLabel=${this._messages.associationFilterPlaceholder} .filterPlaceholder=${this._messages.associationFilterPlaceholder} .label=${this._messages.associatedFeatures} @calciteListFilter=${i=>this._filteredItemCount=i.currentTarget?.filteredItems.length} ${d(this.#a)}>${this.#r()}${this._renderFeatureObserver()}</calcite-list>`)}</div>`}#d(t,e){return a`<div class="header">${this.hideAssociationDetails?null:this.#l(t)}${this.#p(e)}${this.#g(e)}</div>`}#h(t){let{tooltipReferenceMap:e}=this,i=this.#i(t);return $(t.association)?r(`tooltip-${i}`,a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${e.get(i)} .topLayerDisabled=${this.topLayerDisabled}>${this.getConnectivityTooltip(t.association.associationType)}</calcite-tooltip>`):null}#m(t,e){let{associatedFeatureInfos:i}=t,s=i.get(e)?.length??0;return r(`${e.id}-show-all`,a`<calcite-list-item expanded .label=${e.title??this._messagesCommon.untitled} .value=${e.id} @calciteListItemSelect=${()=>this.selectAssociatedLayer({layer:e})}><calcite-chip .label=${s.toString()} scale=s slot=content-end>${s}</calcite-chip><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}#f(t){let{associatedFeatureInfos:e,associationFeature:i,editable:s}=t;return i?a`<div class="list-container"><calcite-list .label=${this._messages.associatedLayers}>${Array.from(e.keys(),n=>this.#m(t,n))}</calcite-list>${s?a`<calcite-fab appearance=outline-fill icon=plus kind=neutral .text=${this._messagesCommon.add} text-enabled @click=${()=>this.addAssociation({feature:i,associationType:t.activeAssociationType,utilityNetwork:t.utilityNetwork})}></calcite-fab>`:void 0}</div>`:null}#p(t){return t.title?r("title",p({level:this.headingLevel,children:a`<div class="heading-content"><calcite-icon icon=layer></calcite-icon>${t.title}</div>`})):null}#g(t){let e=_(this._messagesFeature?.numberRecords,{number:this._filteredItemCount});return r(t.id,a`<div>${e}</div>`)}render(){let{associationInput:t}=this;if(!t)return a`<div></div>`;let{associatedLayer:e}=t;return t.updating?a`<div>${this._renderLoading()}</div>`:e?a`<div>${this.#u(t,e)}</div>`:a`<div>${this.#f(t)}</div>`}};h("arcgis-feature-form-utility-network-association-list",l);return l},"applications/Components/stringUtils","intl","core/reactiveUtils",b,c)
2
+ import c from"./HIFWGQCW.js";import{a as r}from"./UNPUCYYB.js";import b from"./TMJX7DFH.js";import{a as p}from"./OCZ5FM6Y.js";import{a as f}from"./5JADSW57.js";import"./JD74LG7K.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{N as d,V as h,a as u,b as a}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{stripHTML:y},{formatNumber:I,substitute:_},{watch:v},{a:m},g])=>{var F=u`:host{background-color:var(--calcite-color-surface-2)}.feature-observer{position:relative;bottom:var(--calcite-space-2xl);z-index:2;text-align:center}.header{calcite-block{margin-block-start:calc(var(--calcite-size-3xs) * -1.5);margin-inline:calc(var(--calcite-size-xs) * -1)}}.header>*{margin-block-end:var(--calcite-size-3xs)}.header>:last-child{color:var(--calcite-color-text-3)}.heading-content{display:flex;align-items:center;calcite-icon{margin-inline-end:var(--calcite-size-3xs)}}.list-container{display:flex;flex-direction:column;min-height:var(--calcite-space-3xl);calcite-fab{align-self:center;margin-block:var(--calcite-space-md)}}`;function L(c){let{percentAlong:t}=c;return t==null?"":I(t,{style:"percent",maximumFractionDigits:2})}async function A(c){let t=c.attributes,e=m(c)?c.sourceLayer:void 0,i=c.origin,s=i&&"layer"in i?i.layer:e??c.layer;if(!t||!s)return"";if("getFeatureTitle"in s)return await s.getFeatureTitle(c);let n="displayField"in s?s.displayField:null,o=n!=null?t[n.toString()]:null;return o!=null&&typeof o!="string"&&(o=o.toString()),o||c.getObjectId()?.toString()||""}function $(c){let{associationType:t}=c;return t==="connectivity"||t==="junction-edge-from-connectivity"||t==="junction-edge-midspan-connectivity"||t==="junction-edge-to-connectivity"||t==="junction-junction-connectivity"}function x(c){return c.associationType==="junction-edge-midspan-connectivity"}var l=class extends g{constructor(){super(...arguments),this._messagesFeature=f({name:"feature",blocking:!0}),this.#e=0,this.#t=!1,this._filteredItemCount=0,this.addAssociation=()=>{},this.headingLevel=5,this.hideAssociationDetails=!1,this.selectAssociatedFeature=async()=>{},this.selectAssociatedLayer=()=>{},this.topLayerDisabled=!1}static{this.properties={_featureTitle:16,_filteredItemCount:16,_featureInfosPage:16,_featureInfos:16,addAssociation:0,associatedFeatureCount:32,associationInput:0,headingLevel:9,hideAssociationDetails:5,selectAssociatedFeature:0,selectAssociatedLayer:0,topLayerDisabled:5}}static{this.styles=F}#e;#t;get _featureInfosPage(){return this._featureInfos.slice(0,this.endIndex)}get _featureInfos(){let t=this.associationInput?.associatedFeatures;return t?t.toArray():[]}get associatedFeatureCount(){return this._featureInfos.length}loaded(){super.loaded(),this.manager.onLifecycle(()=>[v(()=>[this.associationInput,this.associationInput?.associationFeature,this.associationInput?.featureItem?.label],()=>{this.#n()},{initial:!0}),v(()=>this.associationInput?.updating??!1,t=>this.state=t?"querying":"ready",{initial:!0})])}#s(t){let e=t.activeAssociationType?.type;if(!e)return;let{attachment:i,connectivity:s,container:n,content:o,structure:b}=this._messages.associationTypes;switch(e){case"attachment":return i;case"connectivity":return s;case"container":return n;case"content":return o;case"structure":return b;default:return}}#i(t){return`association-${t.association.globalId}`}#a(t){this._filteredItemCount=t?this.associatedFeatureCount:0}async#c(t){if(!this.#t){this.#t=!0;try{await this.selectAssociatedFeature({feature:t.feature,association:t.association})}finally{this.#t=!1}}}async#n(){let{associationInput:t}=this,e=++this.#e;if(!t?.associationFeature||t.featureItem?.label){this._featureTitle=void 0;return}let i=await A(t.associationFeature);e===this.#e&&(this._featureTitle=i)}#o(t){let e=t.title||this._messagesCommon.untitled,i=this.#i(t),s=x(t.association),n=s?L(t.association):"";return r(i,a`<calcite-list-item .description=${y(t.terminalName??"")} .label=${y(e)} @calciteListItemSelect=${()=>this.#c(t)}>${$(t.association)?this._renderConnectivityIcon(t.association.associationType,i):null}${s?a`<calcite-chip .label=${n} scale=s slot=content-end>${n}</calcite-chip>`:null}<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}#r(){let t=this._featureInfosPage,e=t.map(s=>this.#h(s)),i=t.map(s=>this.#o(s));return[...e,...i]}#l(t){let e=this.#s(t)??"",i=t.featureItem?.label||this._featureTitle||"";return a`<calcite-block .description=${e} .heading=${i}></calcite-block>`}#u(t,e){return a`${this.#d(t,e)}<div class="list-container">${this._renderFeatureCountWarning()}${r(`associated-features-list-${e.id}`,a`<calcite-list filter-enabled .filterLabel=${this._messages.associationFilterPlaceholder} .filterPlaceholder=${this._messages.associationFilterPlaceholder} .label=${this._messages.associatedFeatures} @calciteListFilter=${i=>this._filteredItemCount=i.currentTarget?.filteredItems.length} ${d(this.#a)}>${this.#r()}${this._renderFeatureObserver()}</calcite-list>`)}</div>`}#d(t,e){return a`<div class="header">${this.hideAssociationDetails?null:this.#l(t)}${this.#p(e)}${this.#g(e)}</div>`}#h(t){let{tooltipReferenceMap:e}=this,i=this.#i(t);return $(t.association)?r(`tooltip-${i}`,a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${e.get(i)} .topLayerDisabled=${this.topLayerDisabled}>${this.getConnectivityTooltip(t.association.associationType)}</calcite-tooltip>`):null}#m(t,e){let{associatedFeatureInfos:i}=t,s=i.get(e)?.length??0;return r(`${e.id}-show-all`,a`<calcite-list-item expanded .label=${e.title??this._messagesCommon.untitled} .value=${e.id} @calciteListItemSelect=${()=>this.selectAssociatedLayer({layer:e})}><calcite-chip .label=${s.toString()} scale=s slot=content-end>${s}</calcite-chip><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}#f(t){let{associatedFeatureInfos:e,associationFeature:i,editable:s}=t;return i?a`<div class="list-container"><calcite-list .label=${this._messages.associatedLayers}>${Array.from(e.keys(),n=>this.#m(t,n))}</calcite-list>${s?a`<calcite-fab appearance=outline-fill icon=plus kind=neutral .text=${this._messagesCommon.add} text-enabled @click=${()=>this.addAssociation({feature:i,associationType:t.activeAssociationType,utilityNetwork:t.utilityNetwork})}></calcite-fab>`:void 0}</div>`:null}#p(t){return t.title?r("title",p({level:this.headingLevel,children:a`<div class="heading-content"><calcite-icon icon=layer></calcite-icon>${t.title}</div>`})):null}#g(t){let e=_(this._messagesFeature?.numberRecords,{number:this._filteredItemCount});return r(t.id,a`<div>${e}</div>`)}render(){let{associationInput:t}=this;if(!t)return a`<div></div>`;let{associatedLayer:e}=t;return t.updating?a`<div>${this._renderLoading()}</div>`:e?a`<div>${this.#u(t,e)}</div>`:a`<div>${this.#f(t)}</div>`}};h("arcgis-feature-form-utility-network-association-list",l);return l},"applications/Components/stringUtils","intl","core/reactiveUtils",b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./QNHJY7QE.js";import f from"./LM6RYRCS.js";import e from"./JOOXDIS7.js";import"./FCNNRX3Q.js";import d from"./JD562WMM.js";import c from"./C2HB2U6P.js";import b from"./YG4HDEP3.js";import"./VJVKFKSG.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,,,,,a])=>{return a},a,b,c,d,e,f,g)
2
+ import g from"./M3EXGLNJ.js";import f from"./CNYKQYK2.js";import e from"./Q4AJYCNY.js";import"./FCNNRX3Q.js";import d from"./EDMWGUZ2.js";import c from"./TMJX7DFH.js";import b from"./YG4HDEP3.js";import"./VJVKFKSG.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,,,,,a])=>{return a},a,b,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import f from"./4SLCQ6RS.js";import e from"./MXA65YBP.js";import d from"./4FBTH6YD.js";import c from"./KORK4WZ7.js";import{h as a}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as o,V as l,a as t,w as s}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,,n,i])=>{var h=t`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-histogram{direction:ltr;width:100%;height:100%}.esri-histogram__content{width:100%;height:100%}.esri-histogram__svg{width:100%;height:100%;display:inline-block;overflow:hidden}.esri-histogram__data-line{stroke:var(--calcite-color-text-3);stroke-width:1px;shape-rendering:crispEdges}.esri-histogram__label{stroke:var(--calcite-color-text-1);stroke-width:0;direction:ltr;unicode-bidi:plaintext;font-size:var(--calcite-font-size-sm)}.esri-histogram__average-data-line{stroke:var(--calcite-color-text-3)}.esri-histogram__average-symbol{font-family:Georgia\\, serif,sans-serif;font-style:italic}.esri-expand__panel-content .esri-histogram{width:100%}:dir(rtl) .esri-histogram{direction:rtl}:dir(rtl) .esri-histogram .esri-histogram__average-label{direction:rtl;unicode-bidi:plaintext}:host{min-width:260px}.esri-binary-color-size-slider{direction:ltr}.esri-binary-color-size-slider .esri-slider{z-index:1;font-size:var(--calcite-font-size-sm);position:relative}.esri-binary-color-size-slider .esri-slider .esri-slider__content{flex-direction:row;height:240px;margin:0 auto 0 40%}.esri-binary-color-size-slider .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);flex:none;display:flex}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor{border-top:1px solid var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-text-3);width:30px}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__label,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__label{text-decoration:underline}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:after,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:before,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb{background-color:var(--calcite-color-text-3);border:none;border-radius:0;width:6px;height:12px;top:-6px;left:-12px}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb:before{content:"";background-color:var(--calcite-color-text-3);width:3px;height:12px;transition:transform .125s ease-in-out,background-color .125s ease-in-out;position:absolute;top:0;left:-1.5px}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb:after{content:"";border-top:6px solid var(--calcite-color-transparent);border-bottom:6px solid var(--calcite-color-transparent);border-left:6px solid var(--calcite-color-text-3);width:0;height:0;position:absolute;top:0;left:6px}.esri-binary-color-size-slider .esri-slider .esri-slider__label{text-align:right;min-width:50px;line-height:20px;left:auto;right:50px}.esri-binary-color-size-slider .esri-slider .esri-slider__label:hover{background-color:var(--calcite-color-foreground-2)}.esri-binary-color-size-slider .esri-slider .esri-slider__segment:hover{cursor:default}.esri-binary-color-size-slider .esri-slider .esri-slider__range-input{text-align:center;width:50%;margin:auto}.esri-binary-color-size-slider .esri-slider .esri-slider__label-input{text-align:right;width:70px}.esri-binary-color-size-slider .esri-slider .esri-slider__max,.esri-binary-color-size-slider .esri-slider .esri-slider__min{z-index:0;flex:none;width:auto;margin:9px auto;padding:9px 12px;position:relative}.esri-binary-color-size-slider .esri-slider .esri-slider__max:before,.esri-binary-color-size-slider .esri-slider .esri-slider__min:before{z-index:-1;content:"";width:100%;height:100%;position:absolute;top:0;left:0}.esri-binary-color-size-slider .esri-slider .esri-slider__max.esri-slider__range--active,.esri-binary-color-size-slider .esri-slider .esri-slider__min.esri-slider__range--active{background-color:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .esri-slider__max .esri-slider__range-input,.esri-binary-color-size-slider .esri-slider .esri-slider__min .esri-slider__range-input{margin:0 auto}.esri-binary-color-size-slider .esri-slider .esri-slider__extra-content{height:100%;display:flex}.esri-binary-color-size-slider .esri-slider .esri-histogram__svg{overflow:visible}.esri-binary-color-size-slider .esri-slider .esri-histogram__label{fill:var(--calcite-color-text-2);stroke-width:2px}.esri-binary-color-size-slider .esri-slider .esri-histogram__average-line,.esri-binary-color-size-slider .esri-slider .esri-histogram__label{paint-order:stroke;stroke:var(--calcite-color-border-3)}.esri-binary-color-size-slider .esri-slider .zoom-cap--max{position:absolute;top:0}.esri-binary-color-size-slider .esri-slider .zoom-cap--min{position:absolute;bottom:0}.esri-binary-color-size-slider .esri-slider .zoom-cap{stroke-width:0;width:30px;height:11px}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover{cursor:pointer}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--mask{fill:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--line{fill:var(--calcite-color-brand)}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--underline,.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--mask,.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--line{fill:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--underline{fill:var(--calcite-color-inverse)}.esri-binary-color-size-slider__ramp{width:30px;height:100%;display:flex;position:relative}.esri-binary-color-size-slider__ramp svg{stroke:var(--calcite-color-text-3);stroke-width:1px;width:100%;height:100%;position:absolute;left:0}.esri-binary-color-size-slider__ramp svg rect{width:100%;height:100%}.esri-binary-color-size-slider__ramp svg path{stroke-width:.5px}.esri-binary-color-size-slider__histogram-container{flex:1 1 0;width:120px;height:100%;display:flex}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider .esri-slider__content{margin:0 auto 0 35%}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);width:12px}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__label{text-decoration:underline}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}`,_=n(c),r=class extends o{constructor(){super(...arguments),this.widget=_(this),this.viewModel=this.widget.viewModel,this.label=this.widget.label,this.autoDestroyDisabled=!1,this.handlesSyncedToPrimary=this.widget.handlesSyncedToPrimary,this.histogramConfig=this.widget.histogramConfig,this.icon=this.widget.icon,this.inputFormatFunction=this.widget.inputFormatFunction,this.inputParseFunction=this.widget.inputParseFunction,this.labelFormatFunction=this.widget.labelFormatFunction,this.max=this.widget.max,this.min=this.widget.min,this.persistSizeRangeEnabled=this.widget.persistSizeRangeEnabled,this.precision=this.widget.precision,this.sliderStyle=this.widget.style,this.state=this.widget.state,this.stops=this.widget.stops,this.zoomOptions=this.widget.zoomOptions,this.arcgisPropertyChange=a()("histogramConfig","max","min","precision","sliderStyle","state","zoomOptions"),this.arcgisReady=s(),this.arcgisThumbChange=i(()=>this.widget,"thumb-change"),this.arcgisThumbDrag=i(()=>this.widget,"thumb-drag")}static{this.properties={label:16,autoDestroyDisabled:5,handlesSyncedToPrimary:5,histogramConfig:0,icon:1,inputFormatFunction:0,inputParseFunction:0,labelFormatFunction:0,max:9,min:9,persistSizeRangeEnabled:5,precision:9,referenceElement:1,sliderStyle:0,state:32,stops:0,zoomOptions:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}async updateFromRendererResult(e,d){return this.widget.updateFromRendererResult(e,d)}async updateRenderer(e){return this.widget.updateRenderer(e)}};l("arcgis-slider-binary-color-size-legacy",r);return r},"widgets/smartMapping/BinaryColorSizeSlider",b,c,d,e,f)
2
+ import f from"./ISK7BEJR.js";import e from"./HTQSLNPO.js";import d from"./5ZRBWOVW.js";import c from"./KORK4WZ7.js";import{h as a}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as o,V as l,a as t,w as s}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,,n,i])=>{var h=t`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-histogram{direction:ltr;width:100%;height:100%}.esri-histogram__content{width:100%;height:100%}.esri-histogram__svg{width:100%;height:100%;display:inline-block;overflow:hidden}.esri-histogram__data-line{stroke:var(--calcite-color-text-3);stroke-width:1px;shape-rendering:crispEdges}.esri-histogram__label{stroke:var(--calcite-color-text-1);stroke-width:0;direction:ltr;unicode-bidi:plaintext;font-size:var(--calcite-font-size-sm)}.esri-histogram__average-data-line{stroke:var(--calcite-color-text-3)}.esri-histogram__average-symbol{font-family:Georgia\\, serif,sans-serif;font-style:italic}.esri-expand__panel-content .esri-histogram{width:100%}:dir(rtl) .esri-histogram{direction:rtl}:dir(rtl) .esri-histogram .esri-histogram__average-label{direction:rtl;unicode-bidi:plaintext}:host{min-width:260px}.esri-binary-color-size-slider{direction:ltr}.esri-binary-color-size-slider .esri-slider{z-index:1;font-size:var(--calcite-font-size-sm);position:relative}.esri-binary-color-size-slider .esri-slider .esri-slider__content{flex-direction:row;height:240px;margin:0 auto 0 40%}.esri-binary-color-size-slider .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);flex:none;display:flex}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor{border-top:1px solid var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-text-3);width:30px}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__label,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__label{text-decoration:underline}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:after,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:before,.esri-binary-color-size-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb{background-color:var(--calcite-color-text-3);border:none;border-radius:0;width:6px;height:12px;top:-6px;left:-12px}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb:before{content:"";background-color:var(--calcite-color-text-3);width:3px;height:12px;transition:transform .125s ease-in-out,background-color .125s ease-in-out;position:absolute;top:0;left:-1.5px}.esri-binary-color-size-slider .esri-slider .esri-slider__thumb:after{content:"";border-top:6px solid var(--calcite-color-transparent);border-bottom:6px solid var(--calcite-color-transparent);border-left:6px solid var(--calcite-color-text-3);width:0;height:0;position:absolute;top:0;left:6px}.esri-binary-color-size-slider .esri-slider .esri-slider__label{text-align:right;min-width:50px;line-height:20px;left:auto;right:50px}.esri-binary-color-size-slider .esri-slider .esri-slider__label:hover{background-color:var(--calcite-color-foreground-2)}.esri-binary-color-size-slider .esri-slider .esri-slider__segment:hover{cursor:default}.esri-binary-color-size-slider .esri-slider .esri-slider__range-input{text-align:center;width:50%;margin:auto}.esri-binary-color-size-slider .esri-slider .esri-slider__label-input{text-align:right;width:70px}.esri-binary-color-size-slider .esri-slider .esri-slider__max,.esri-binary-color-size-slider .esri-slider .esri-slider__min{z-index:0;flex:none;width:auto;margin:9px auto;padding:9px 12px;position:relative}.esri-binary-color-size-slider .esri-slider .esri-slider__max:before,.esri-binary-color-size-slider .esri-slider .esri-slider__min:before{z-index:-1;content:"";width:100%;height:100%;position:absolute;top:0;left:0}.esri-binary-color-size-slider .esri-slider .esri-slider__max.esri-slider__range--active,.esri-binary-color-size-slider .esri-slider .esri-slider__min.esri-slider__range--active{background-color:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .esri-slider__max .esri-slider__range-input,.esri-binary-color-size-slider .esri-slider .esri-slider__min .esri-slider__range-input{margin:0 auto}.esri-binary-color-size-slider .esri-slider .esri-slider__extra-content{height:100%;display:flex}.esri-binary-color-size-slider .esri-slider .esri-histogram__svg{overflow:visible}.esri-binary-color-size-slider .esri-slider .esri-histogram__label{fill:var(--calcite-color-text-2);stroke-width:2px}.esri-binary-color-size-slider .esri-slider .esri-histogram__average-line,.esri-binary-color-size-slider .esri-slider .esri-histogram__label{paint-order:stroke;stroke:var(--calcite-color-border-3)}.esri-binary-color-size-slider .esri-slider .zoom-cap--max{position:absolute;top:0}.esri-binary-color-size-slider .esri-slider .zoom-cap--min{position:absolute;bottom:0}.esri-binary-color-size-slider .esri-slider .zoom-cap{stroke-width:0;width:30px;height:11px}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover{cursor:pointer}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--mask{fill:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--line{fill:var(--calcite-color-brand)}.esri-binary-color-size-slider .esri-slider .zoom-cap:hover .zoom-cap--underline,.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--mask,.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--line{fill:var(--calcite-color-foreground-1)}.esri-binary-color-size-slider .esri-slider .zoom-cap .zoom-cap--underline{fill:var(--calcite-color-inverse)}.esri-binary-color-size-slider__ramp{width:30px;height:100%;display:flex;position:relative}.esri-binary-color-size-slider__ramp svg{stroke:var(--calcite-color-text-3);stroke-width:1px;width:100%;height:100%;position:absolute;left:0}.esri-binary-color-size-slider__ramp svg rect{width:100%;height:100%}.esri-binary-color-size-slider__ramp svg path{stroke-width:.5px}.esri-binary-color-size-slider__histogram-container{flex:1 1 0;width:120px;height:100%;display:flex}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider .esri-slider__content{margin:0 auto 0 35%}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);width:12px}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__label{text-decoration:underline}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-binary-color-size-slider.esri-binary-color-size-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}`,_=n(c),r=class extends o{constructor(){super(...arguments),this.widget=_(this),this.viewModel=this.widget.viewModel,this.label=this.widget.label,this.autoDestroyDisabled=!1,this.handlesSyncedToPrimary=this.widget.handlesSyncedToPrimary,this.histogramConfig=this.widget.histogramConfig,this.icon=this.widget.icon,this.inputFormatFunction=this.widget.inputFormatFunction,this.inputParseFunction=this.widget.inputParseFunction,this.labelFormatFunction=this.widget.labelFormatFunction,this.max=this.widget.max,this.min=this.widget.min,this.persistSizeRangeEnabled=this.widget.persistSizeRangeEnabled,this.precision=this.widget.precision,this.sliderStyle=this.widget.style,this.state=this.widget.state,this.stops=this.widget.stops,this.zoomOptions=this.widget.zoomOptions,this.arcgisPropertyChange=a()("histogramConfig","max","min","precision","sliderStyle","state","zoomOptions"),this.arcgisReady=s(),this.arcgisThumbChange=i(()=>this.widget,"thumb-change"),this.arcgisThumbDrag=i(()=>this.widget,"thumb-drag")}static{this.properties={label:16,autoDestroyDisabled:5,handlesSyncedToPrimary:5,histogramConfig:0,icon:1,inputFormatFunction:0,inputParseFunction:0,labelFormatFunction:0,max:9,min:9,persistSizeRangeEnabled:5,precision:9,referenceElement:1,sliderStyle:0,state:32,stops:0,zoomOptions:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}async updateFromRendererResult(e,d){return this.widget.updateFromRendererResult(e,d)}async updateRenderer(e){return this.widget.updateRenderer(e)}};l("arcgis-slider-binary-color-size-legacy",r);return r},"widgets/smartMapping/BinaryColorSizeSlider",b,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./JD562WMM.js";import a from"./C2HB2U6P.js";import{O as h,V as b,a as m,b as l,z as f}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{renderingSanitizer:p},{replace:$},,{k:u,l:v,m:I}])=>{var w=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/iu,target:"_blank",label:"{messages.view}"},{pattern:/^\s*(tel:([^\s]+))\s*$/iu,label:"{hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/iu,label:"{hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"App Studio Player"},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Collector"},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Explorer"},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Navigator"},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Survey123"},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Trek2There"},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Workforce"},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"iForm"},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"FlowFinity"},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Laserfische"},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Microsoft Power Bi"}];function F(d,a){let e=w.find(s=>s.pattern.test(a));if(!e)return a;let r=a.match(e.pattern)?.[2],o=$($(e.label,{messages:d,hierPart:r}),{appName:e.appName}),t=e.target?` target="${e.target}"`:"",n=e.target==="_blank"?' rel="noreferrer"':"";return p.sanitizeUrl(new URL(a,window.location.origin==="null"?void 0:window.location.origin).toString()).replace(e.pattern,`<a${t} href="$1"${n}>${o}</a>`)}var k=m`.table{border:none;width:100%;border-collapse:collapse;color:var(--calcite-color-text-2)}.table caption{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.table tr{background-color:var(--arcgis-table-row-background-color, var(--calcite-color-foreground-1))}.table tr:nth-child(odd){background-color:var(--arcgis-table-row-alt-background-color, var(--calcite-color-foreground-2))}.table tr a{color:var(--calcite-color-text-link)}.table tr a:hover,.table tr a:focus{color:var(--calcite-color-brand-hover)}.table tr td,.table tr th{padding:var(--calcite-spacing-xs) var(--calcite-spacing-sm);vertical-align:top;word-break:break-word;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}.table tr th{border-inline-end:var(--calcite-border-width-md) solid var(--calcite-color-border-3);width:50%;text-align:start}.table tr td{width:50%}`,c=class extends h{constructor(){super(...arguments),this.headingLevel=2}static{this.properties={values:0,description:1,expressionInfos:0,fieldInfos:0,heading:1,isContentFieldInfos:5,graphic:0,layer:0,headingLevel:9,messages:0}}static{this.styles=k}get formattedFieldInfos(){let{expressionInfos:a,fieldInfos:e,layer:r,graphic:o,isContentFieldInfos:t}=this,n=[];return e?.forEach(s=>{if(!(!("visible"in s)||s.visible))return;let i=s.clone();i.label=v({fieldInfo:i,expressionInfos:a,layer:r,graphic:o,isContentFieldInfos:t});let g=u({fieldInfo:s,graphic:o,layer:r});g&&(i.fieldFormat=I({configurableFieldsContainer:g,fieldInfo:i,isContentFieldInfos:t})),n.push(i)}),n}render(){return l`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderFields()}</div>`}_renderFieldInfo(a){let{values:e}=this,r=a.fieldName||"",o=a.label||r,t=e?e[r]==null?"":e[r]:"",n=a?.fieldFormat?.type==="date-time",s={openInApp:this.messages?.openInApp??"",view:this.messages?.view??""},i=typeof t=="number"&&!n?f(`${t}`):typeof t=="string"?F(s,t):`${t}`;return l`<tr><th .innerHTML=${p.sanitize(o)??""}></th><td .innerHTML=${p.sanitize(i)??""}></td></tr>`}_renderFields(){let{formattedFieldInfos:a}=this;return a?.length?l`<table class="table"><caption>${this.messages?.fieldsSummary}</caption><tbody>${a.map(e=>this._renderFieldInfo(e))}</tbody></table>`:null}};b("arcgis-feature-fields",c);return c},"applications/Components/sanitizerUtils","applications/Components/stringUtils",a,c)
2
+ import c from"./EDMWGUZ2.js";import a from"./TMJX7DFH.js";import{O as h,V as b,a as m,b as l,z as f}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{renderingSanitizer:p},{replace:$},,{k:u,l:v,m:I}])=>{var w=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/iu,target:"_blank",label:"{messages.view}"},{pattern:/^\s*(tel:([^\s]+))\s*$/iu,label:"{hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/iu,label:"{hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"App Studio Player"},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Collector"},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Explorer"},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Navigator"},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Survey123"},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Trek2There"},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Workforce"},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"iForm"},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"FlowFinity"},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Laserfische"},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/iu,label:"{messages.openInApp}",appName:"Microsoft Power Bi"}];function F(d,a){let e=w.find(s=>s.pattern.test(a));if(!e)return a;let r=a.match(e.pattern)?.[2],o=$($(e.label,{messages:d,hierPart:r}),{appName:e.appName}),t=e.target?` target="${e.target}"`:"",n=e.target==="_blank"?' rel="noreferrer"':"";return p.sanitizeUrl(new URL(a,window.location.origin==="null"?void 0:window.location.origin).toString()).replace(e.pattern,`<a${t} href="$1"${n}>${o}</a>`)}var k=m`.table{border:none;width:100%;border-collapse:collapse;color:var(--calcite-color-text-2)}.table caption{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.table tr{background-color:var(--arcgis-table-row-background-color, var(--calcite-color-foreground-1))}.table tr:nth-child(odd){background-color:var(--arcgis-table-row-alt-background-color, var(--calcite-color-foreground-2))}.table tr a{color:var(--calcite-color-text-link)}.table tr a:hover,.table tr a:focus{color:var(--calcite-color-brand-hover)}.table tr td,.table tr th{padding:var(--calcite-spacing-xs) var(--calcite-spacing-sm);vertical-align:top;word-break:break-word;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}.table tr th{border-inline-end:var(--calcite-border-width-md) solid var(--calcite-color-border-3);width:50%;text-align:start}.table tr td{width:50%}`,c=class extends h{constructor(){super(...arguments),this.headingLevel=2}static{this.properties={values:0,description:1,expressionInfos:0,fieldInfos:0,heading:1,isContentFieldInfos:5,graphic:0,layer:0,headingLevel:9,messages:0}}static{this.styles=k}get formattedFieldInfos(){let{expressionInfos:a,fieldInfos:e,layer:r,graphic:o,isContentFieldInfos:t}=this,n=[];return e?.forEach(s=>{if(!(!("visible"in s)||s.visible))return;let i=s.clone();i.label=v({fieldInfo:i,expressionInfos:a,layer:r,graphic:o,isContentFieldInfos:t});let g=u({fieldInfo:s,graphic:o,layer:r});g&&(i.fieldFormat=I({configurableFieldsContainer:g,fieldInfo:i,isContentFieldInfos:t})),n.push(i)}),n}render(){return l`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderFields()}</div>`}_renderFieldInfo(a){let{values:e}=this,r=a.fieldName||"",o=a.label||r,t=e?e[r]==null?"":e[r]:"",n=a?.fieldFormat?.type==="date-time",s={openInApp:this.messages?.openInApp??"",view:this.messages?.view??""},i=typeof t=="number"&&!n?f(`${t}`):typeof t=="string"?F(s,t):`${t}`;return l`<tr><th .innerHTML=${p.sanitize(o)??""}></th><td .innerHTML=${p.sanitize(i)??""}></td></tr>`}_renderFields(){let{formattedFieldInfos:a}=this;return a?.length?l`<table class="table"><caption>${this.messages?.fieldsSummary}</caption><tbody>${a.map(e=>this._renderFieldInfo(e))}</tbody></table>`:null}};b("arcgis-feature-fields",c);return c},"applications/Components/sanitizerUtils","applications/Components/stringUtils",a,c)