@arcgis/map-components 5.0.0-next.139 → 5.0.0-next.140

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 (473) hide show
  1. package/dist/cdn/{GCUKQ443.js → 22TSK5QA.js} +2 -2
  2. package/dist/cdn/{LI3HBFDU.js → 243QB2YV.js} +2 -2
  3. package/dist/cdn/{SOUGTSG6.js → 26AJIIOQ.js} +2 -2
  4. package/dist/cdn/{FB4EGXY6.js → 2DCZLQME.js} +2 -2
  5. package/dist/cdn/{YVSP64BO.js → 2DQHR5OT.js} +2 -2
  6. package/dist/cdn/{S6Q7DVTK.js → 2F4JBHA2.js} +2 -2
  7. package/dist/cdn/{2TLC2JG3.js → 2MPABRAQ.js} +2 -2
  8. package/dist/cdn/{DKG6S4S3.js → 2PAOB3VM.js} +2 -2
  9. package/dist/cdn/{BVBCPRTK.js → 2TGA7RFV.js} +2 -2
  10. package/dist/cdn/2U3WBSWN.js +4 -0
  11. package/dist/cdn/{YKHPTVKH.js → 2WTAQVZE.js} +2 -2
  12. package/dist/cdn/{G3SD5XEI.js → 346AMK7Y.js} +2 -2
  13. package/dist/cdn/{553MJZJV.js → 3AEMFTKC.js} +1 -1
  14. package/dist/cdn/{R5ZC3TZL.js → 3BUQVGIM.js} +2 -2
  15. package/dist/cdn/{R4BEARRC.js → 3E5XVHCQ.js} +2 -2
  16. package/dist/cdn/{BOKX7CVO.js → 3F6Q7OHS.js} +2 -2
  17. package/dist/cdn/{MVYI4MBX.js → 3MLKPSYU.js} +2 -2
  18. package/dist/cdn/3TDVKW6K.js +4 -0
  19. package/dist/cdn/{XIT57LQM.js → 3WNGSHYJ.js} +2 -2
  20. package/dist/cdn/{NQ2KWFY3.js → 3XTBTEO5.js} +2 -2
  21. package/dist/cdn/{VYQHE6VQ.js → 44OXZSHN.js} +2 -2
  22. package/dist/cdn/{JBJKXREL.js → 466KPPHF.js} +2 -2
  23. package/dist/cdn/{TIKE7OS7.js → 4GEALCDL.js} +2 -2
  24. package/dist/cdn/{HZIN3SO5.js → 4HQE52OB.js} +2 -2
  25. package/dist/cdn/{J4OP3M77.js → 4LOQWNML.js} +2 -2
  26. package/dist/cdn/{6JKQC5OI.js → 4RVF4WUI.js} +2 -2
  27. package/dist/cdn/4VKVFQJN.js +4 -0
  28. package/dist/cdn/{TTMQWKXK.js → 4WUYNJZQ.js} +2 -2
  29. package/dist/cdn/{HXVOLZV5.js → 4WYBV4HA.js} +3 -3
  30. package/dist/cdn/{DAXJ2OLC.js → 55UM7IPZ.js} +2 -2
  31. package/dist/cdn/{QAG5H7RS.js → 57KHM7P2.js} +2 -2
  32. package/dist/cdn/{YM4C2ZE7.js → 5FWP5Y7B.js} +2 -2
  33. package/dist/cdn/{AKYGG2YX.js → 5G2YMMGK.js} +2 -2
  34. package/dist/cdn/{YIZWFXF6.js → 5HIUNSC5.js} +2 -2
  35. package/dist/cdn/{OWYBV3Q6.js → 5JARBP3A.js} +2 -2
  36. package/dist/cdn/{WT4GURBM.js → 5R3QDCB2.js} +2 -2
  37. package/dist/cdn/{HTGSDAOH.js → 5S35UURX.js} +1 -1
  38. package/dist/cdn/{NF53BZDO.js → 5TWHCEAL.js} +2 -2
  39. package/dist/cdn/{FOSK753O.js → 5WCR7MZZ.js} +2 -2
  40. package/dist/cdn/{FISZ7HIU.js → 5WODHATV.js} +2 -2
  41. package/dist/cdn/{FR2KBDKQ.js → 63EBX45D.js} +2 -2
  42. package/dist/cdn/{Z64FMMFA.js → 6C7SA3TA.js} +2 -2
  43. package/dist/cdn/{EYJMTARE.js → 6FHQUK7D.js} +2 -2
  44. package/dist/cdn/{3BLVPMVH.js → 6HUMPPMT.js} +2 -2
  45. package/dist/cdn/{AP2DX5W4.js → 6ITGULVL.js} +2 -2
  46. package/dist/cdn/{X4G5BEWN.js → 6NOVTZBU.js} +2 -2
  47. package/dist/cdn/{2JTMYI27.js → 7647LPE5.js} +2 -2
  48. package/dist/cdn/{VDEBWENP.js → 76U6YCZU.js} +2 -2
  49. package/dist/cdn/{2QDLZ3GB.js → 774HFEEA.js} +1 -1
  50. package/dist/cdn/{4JYK77OW.js → 77PXENYB.js} +2 -2
  51. package/dist/cdn/{IVFQWPBF.js → 7CPHMNOD.js} +2 -2
  52. package/dist/cdn/{46EJNZJQ.js → 7E4T6WCQ.js} +1 -1
  53. package/dist/cdn/{BNEPXLSA.js → 7ENI4ZEP.js} +2 -2
  54. package/dist/cdn/{WHEESA6W.js → 7F7RX6F4.js} +2 -2
  55. package/dist/cdn/{2WOMKTAM.js → 7KSGX5IX.js} +2 -2
  56. package/dist/cdn/{GAAANA66.js → 7KW5PQSK.js} +2 -2
  57. package/dist/cdn/{MIUHGYJD.js → 7SU5JZR5.js} +2 -2
  58. package/dist/cdn/{W5ITETW5.js → 7UGMXV3V.js} +2 -2
  59. package/dist/cdn/{DGGZXXEH.js → 7VOA7XH4.js} +2 -2
  60. package/dist/cdn/{ROO7WK5A.js → 7YZAEWSF.js} +2 -2
  61. package/dist/cdn/{5PPSQJ27.js → 7ZIUITXE.js} +2 -2
  62. package/dist/cdn/{FEE5GEU7.js → ACWTIIJK.js} +2 -2
  63. package/dist/cdn/{5KPSBI3T.js → AKLPCQ4H.js} +2 -2
  64. package/dist/cdn/{BNIYGXL7.js → B674LNPS.js} +2 -2
  65. package/dist/cdn/{FIIDUWKL.js → B7M7VGJH.js} +2 -2
  66. package/dist/cdn/{HJFMVGPF.js → BGO2KMQB.js} +2 -2
  67. package/dist/cdn/{CWRTL4DI.js → BGPNPQ2W.js} +2 -2
  68. package/dist/cdn/{6GWPQGKR.js → BIUDVI6G.js} +2 -2
  69. package/dist/cdn/{RVDO7PFG.js → BJRLKCKL.js} +2 -2
  70. package/dist/cdn/{JKKAOTBA.js → BOINMI7Z.js} +2 -2
  71. package/dist/cdn/{7ZVDMEBJ.js → BUN3KP7U.js} +2 -2
  72. package/dist/cdn/{QD3TIH4V.js → BWAK7RSF.js} +2 -2
  73. package/dist/cdn/{76FM6APP.js → C4EXEFHY.js} +1 -1
  74. package/dist/cdn/{PSONWA5Q.js → CBIQXD4L.js} +2 -2
  75. package/dist/cdn/{C2TTLGZN.js → CM23L57U.js} +2 -2
  76. package/dist/cdn/{L3GK7GXT.js → CM5MTDKS.js} +1 -1
  77. package/dist/cdn/{KDDLQVRN.js → CUBROTS5.js} +2 -2
  78. package/dist/cdn/{5NKKRHTU.js → CXHULPYF.js} +2 -2
  79. package/dist/cdn/{YXWTNLAK.js → CXLOFSA2.js} +2 -2
  80. package/dist/cdn/CYXC7D2F.js +4 -0
  81. package/dist/cdn/{PHGMKEFX.js → D2MTS7BV.js} +2 -2
  82. package/dist/cdn/{M5JDDXE3.js → D5DLGQQI.js} +2 -2
  83. package/dist/cdn/{NDPGUKJQ.js → D75JH4XZ.js} +2 -2
  84. package/dist/cdn/{E3I6T53C.js → DFJABMIY.js} +1 -1
  85. package/dist/cdn/{MWRBR42K.js → DJNOZ3G7.js} +1 -1
  86. package/dist/cdn/{UWLSCD5D.js → DQMJC5IH.js} +2 -2
  87. package/dist/cdn/{KF7EXUYO.js → DSFELWZZ.js} +2 -2
  88. package/dist/cdn/{7D2K2RRB.js → DWAM42T3.js} +2 -2
  89. package/dist/cdn/{6ICMV4EB.js → EFOLZGGA.js} +2 -2
  90. package/dist/cdn/{VYM5Y6JP.js → EXKTZLIJ.js} +1 -1
  91. package/dist/cdn/{LKX2QX27.js → EZ6VYH7W.js} +2 -2
  92. package/dist/cdn/{72MIJWPV.js → F3BIIONA.js} +2 -2
  93. package/dist/cdn/{4DKP2UPH.js → FCOXN43M.js} +2 -2
  94. package/dist/cdn/{RUVNNGTK.js → FFSKITVH.js} +2 -2
  95. package/dist/cdn/{77L5WAA4.js → FWBMNGJY.js} +1 -1
  96. package/dist/cdn/{6HQCU22L.js → G3GVJECS.js} +2 -2
  97. package/dist/cdn/{VDMFOL4P.js → G7FRTFJG.js} +2 -2
  98. package/dist/cdn/{2ATLN4RD.js → G7RQ35FO.js} +2 -2
  99. package/dist/cdn/{LZVMEHGA.js → GH4SHYHP.js} +2 -2
  100. package/dist/cdn/{OR54UTZA.js → GP2RFUYT.js} +2 -2
  101. package/dist/cdn/{6WWA7BZB.js → GSWN36WH.js} +2 -2
  102. package/dist/cdn/{DO73KZCE.js → H335L73Y.js} +2 -2
  103. package/dist/cdn/{I6EZXMDO.js → HAIXJ5T2.js} +2 -2
  104. package/dist/cdn/{MUVVR4BM.js → HIBFZIEM.js} +2 -2
  105. package/dist/cdn/{YEDB3AN2.js → HZR4TFON.js} +2 -2
  106. package/dist/cdn/{SP2FWGPX.js → I2MMDKSC.js} +2 -2
  107. package/dist/cdn/{A23AZWME.js → IIG6K3V4.js} +2 -2
  108. package/dist/cdn/{RUFCK3LP.js → IJGJFRFC.js} +2 -2
  109. package/dist/cdn/{32EY6TD3.js → IU7YID46.js} +2 -2
  110. package/dist/cdn/{UWKAP5NS.js → IVWHRTPH.js} +2 -2
  111. package/dist/cdn/{HATRK4WA.js → J2QLKP57.js} +2 -2
  112. package/dist/cdn/{IESFMGTL.js → J3FQT7ST.js} +2 -2
  113. package/dist/cdn/{75V72IVU.js → J4ZITQUV.js} +2 -2
  114. package/dist/cdn/{PEKTUJ3G.js → J55DZEGY.js} +2 -2
  115. package/dist/cdn/{RFGR55KV.js → JECQUIBO.js} +2 -2
  116. package/dist/cdn/JEH23CRZ.js +6 -0
  117. package/dist/cdn/{U2N4YVY7.js → JL5UQRSW.js} +2 -2
  118. package/dist/cdn/{SEVF6T6Q.js → JXN3JPOS.js} +2 -2
  119. package/dist/cdn/{NJSW7RSZ.js → K3H64DRZ.js} +2 -2
  120. package/dist/cdn/{23VXISBQ.js → K5SCVP46.js} +2 -2
  121. package/dist/cdn/{HJK6ASQS.js → KBO5FIQP.js} +2 -2
  122. package/dist/cdn/{GAHY4FBU.js → KDOWQOUI.js} +2 -2
  123. package/dist/cdn/{S2FMJSES.js → KF722U4W.js} +2 -2
  124. package/dist/cdn/{SLB6PA6F.js → KHK525ZD.js} +1 -1
  125. package/dist/cdn/{VEGYEFRW.js → KKWEQ5X3.js} +2 -2
  126. package/dist/cdn/{7NQZGNW2.js → KKZPAVU6.js} +2 -2
  127. package/dist/cdn/{T4KQF4ZL.js → KLOV2IBZ.js} +1 -1
  128. package/dist/cdn/{CPGMBVTV.js → L2BTMW55.js} +2 -2
  129. package/dist/cdn/{7M2G7OUK.js → L5PCDRHM.js} +2 -2
  130. package/dist/cdn/{RZA3HI6U.js → L6GCIAMQ.js} +2 -2
  131. package/dist/cdn/{HF54FKHO.js → L6I2RMP2.js} +2 -2
  132. package/dist/cdn/{JZHNRWFN.js → L73EFU5S.js} +2 -2
  133. package/dist/cdn/{ULOKWHVX.js → LA4SE2HO.js} +2 -2
  134. package/dist/cdn/{6YZB4QUT.js → LIGYZHHT.js} +2 -2
  135. package/dist/cdn/{ZL5PNNFI.js → LKLQVKXP.js} +2 -2
  136. package/dist/cdn/{SSFORNJW.js → LLJREQGD.js} +2 -2
  137. package/dist/cdn/{AS2CV67L.js → LM6YF4VW.js} +2 -2
  138. package/dist/cdn/{AEVO2XKS.js → LSGLN5EM.js} +2 -2
  139. package/dist/cdn/LXFST5GI.js +4 -0
  140. package/dist/cdn/{5ZJISMCK.js → M4WR3PMZ.js} +2 -2
  141. package/dist/cdn/{DSSRXF3I.js → M5BFS37N.js} +2 -2
  142. package/dist/cdn/{VMD5OUBU.js → MCE37LCI.js} +2 -2
  143. package/dist/cdn/{EZPNBNYG.js → MDFJBXLX.js} +1 -1
  144. package/dist/cdn/MDOFMA7T.js +6 -0
  145. package/dist/cdn/{2HYIMXPA.js → MIN45FF3.js} +2 -2
  146. package/dist/cdn/{U5VJZ7HA.js → MODMKBXB.js} +2 -2
  147. package/dist/cdn/{AKAF7UV3.js → MQO7ZTQO.js} +2 -2
  148. package/dist/cdn/{OA3WVJNH.js → MU5ME6Z6.js} +1 -1
  149. package/dist/cdn/{67CPW6J2.js → MXA666R3.js} +2 -2
  150. package/dist/cdn/{UBPBXWPC.js → MZ64VYJL.js} +2 -2
  151. package/dist/cdn/{7BHHPTJG.js → NCCHUPW3.js} +2 -2
  152. package/dist/cdn/{OO532ZGY.js → NFZSOJTQ.js} +2 -2
  153. package/dist/cdn/{5ZQITVFJ.js → NGHXV27N.js} +2 -2
  154. package/dist/cdn/{GZW5N3ZF.js → NJZE562H.js} +2 -2
  155. package/dist/cdn/{JCOVK23M.js → O5RDIEMJ.js} +2 -2
  156. package/dist/cdn/{JTYHPNMZ.js → OC2P77LR.js} +2 -2
  157. package/dist/cdn/{VESFSN7O.js → ONUIMIK6.js} +2 -2
  158. package/dist/cdn/{KHOQ4L2V.js → OOOFJWUU.js} +2 -2
  159. package/dist/cdn/{SNEI3AVP.js → OSNQQ652.js} +2 -2
  160. package/dist/cdn/{CGIC2IL4.js → OTJ3MXFY.js} +2 -2
  161. package/dist/cdn/{GGTJWFO5.js → OWHJNWDS.js} +2 -2
  162. package/dist/cdn/{UBQ3TTVN.js → OWV6NDT2.js} +2 -2
  163. package/dist/cdn/{GHLLRODN.js → P6TAK3SO.js} +2 -2
  164. package/dist/cdn/{DEN72OD3.js → PAAPT25F.js} +2 -2
  165. package/dist/cdn/{VIZ5ZOPM.js → PECJYYKQ.js} +2 -2
  166. package/dist/cdn/{J3NRDSWL.js → PEO7IW77.js} +2 -2
  167. package/dist/cdn/{I3QKVZO2.js → PEVJNLT7.js} +2 -2
  168. package/dist/cdn/{VGH5BAC5.js → PHKTAPVE.js} +2 -2
  169. package/dist/cdn/{UH5VKZ44.js → PSHFYRAA.js} +2 -2
  170. package/dist/cdn/{D3JRR6GD.js → PTAY6FUW.js} +2 -2
  171. package/dist/cdn/{MQQU27O7.js → PUNIL2P6.js} +2 -2
  172. package/dist/cdn/{OHLPENGV.js → PVFFUYWU.js} +2 -2
  173. package/dist/cdn/{63CMFRB6.js → PWZHB7QC.js} +2 -2
  174. package/dist/cdn/{HJPS4N5B.js → Q3BL4BIL.js} +2 -2
  175. package/dist/cdn/{NOS7DILW.js → QE5AUNFR.js} +2 -2
  176. package/dist/cdn/{BBYYS36X.js → QIRTSWZC.js} +2 -2
  177. package/dist/cdn/{5CZO4BZZ.js → QMIF24JH.js} +2 -2
  178. package/dist/cdn/{QLPEF3IB.js → QN46RGLH.js} +2 -2
  179. package/dist/cdn/{OJC7DEWN.js → QR37ZFER.js} +2 -2
  180. package/dist/cdn/{ZGHDDHCP.js → QVL7LIGM.js} +2 -2
  181. package/dist/cdn/{LHPP4LHU.js → QVNJAARA.js} +2 -2
  182. package/dist/cdn/{VWBRJOU2.js → QX6BR2MA.js} +2 -2
  183. package/dist/cdn/{LFG4UTXG.js → QYSX6MLE.js} +2 -2
  184. package/dist/cdn/QYU5LV3O.js +4 -0
  185. package/dist/cdn/{UABBMS5U.js → R2AQTLJB.js} +2 -2
  186. package/dist/cdn/{BSM6I3X2.js → RBU5MAH4.js} +1 -1
  187. package/dist/cdn/{YGBKMGDY.js → RDQ6IQYR.js} +2 -2
  188. package/dist/cdn/{D7LQXOSM.js → RXWPCGLD.js} +2 -2
  189. package/dist/cdn/{FDR7CVGI.js → S3SUA6U3.js} +2 -2
  190. package/dist/cdn/{N33D334G.js → S4RZWBDW.js} +2 -2
  191. package/dist/cdn/{37KGRIU3.js → SF2MSFQE.js} +2 -2
  192. package/dist/cdn/{6NUHCRTE.js → SJPVDMRR.js} +2 -2
  193. package/dist/cdn/{CX4IVCMZ.js → SPBSBLRE.js} +2 -2
  194. package/dist/cdn/{W3LLLWV3.js → SPOCFPPY.js} +2 -2
  195. package/dist/cdn/{6FGRD4RW.js → SSJ43X5M.js} +2 -2
  196. package/dist/cdn/{55YO4BDF.js → SUMELULC.js} +2 -2
  197. package/dist/cdn/{NVNZPKDT.js → SVBAAYVV.js} +2 -2
  198. package/dist/cdn/{PCUAKENM.js → SZFMQVTY.js} +2 -2
  199. package/dist/cdn/{XQ7NOLGA.js → SZGFYJYB.js} +2 -2
  200. package/dist/cdn/{4JRGAAUH.js → T5OG56GC.js} +2 -2
  201. package/dist/cdn/{N3TVJCTS.js → T6DLAA7U.js} +2 -2
  202. package/dist/cdn/{ZO4P7GIS.js → TPOWYDNW.js} +2 -2
  203. package/dist/cdn/{CFDSHTUS.js → TT7NJVUH.js} +2 -2
  204. package/dist/cdn/{RSQ4HBGJ.js → TUH2CZK6.js} +2 -2
  205. package/dist/cdn/{PQVXLBES.js → TVSUOEO7.js} +2 -2
  206. package/dist/cdn/{W5JI2Q2G.js → U24DWHA5.js} +2 -2
  207. package/dist/cdn/{GUCUBR5T.js → U2LSADU3.js} +2 -2
  208. package/dist/cdn/{CWMWLEAQ.js → UB4DE37Z.js} +2 -2
  209. package/dist/cdn/{CW6GDCZV.js → UG4J5XOB.js} +2 -2
  210. package/dist/cdn/{U2UYUJYK.js → UG53HVMO.js} +2 -2
  211. package/dist/cdn/{5ICFOSJ3.js → UGAKVKNR.js} +2 -2
  212. package/dist/cdn/{B2GPSFBU.js → UKFET366.js} +2 -2
  213. package/dist/cdn/ULXBIYHD.js +4 -0
  214. package/dist/cdn/{6QCR2IC3.js → UNKCCWTD.js} +2 -2
  215. package/dist/cdn/VAVFRDA2.js +4 -0
  216. package/dist/cdn/{6I2VHFTD.js → VKICCN2I.js} +2 -2
  217. package/dist/cdn/{A4JD37AR.js → VPWPY4YN.js} +2 -2
  218. package/dist/cdn/{LS22Q7LZ.js → VQCDJATM.js} +1 -1
  219. package/dist/cdn/{T3JTYNT7.js → W2O6AJ6T.js} +2 -2
  220. package/dist/cdn/{BHTLDD2L.js → WAU5DE64.js} +2 -2
  221. package/dist/cdn/{K3Y2WNY5.js → WAWFMZ2P.js} +2 -2
  222. package/dist/cdn/{FSFH64OU.js → WBTQ5SHM.js} +2 -2
  223. package/dist/cdn/{5X4ZYHX2.js → WDOXFUOW.js} +2 -2
  224. package/dist/cdn/{CVG5YKVF.js → WDZSFILV.js} +2 -2
  225. package/dist/cdn/{REMY5O4R.js → WGWGKZQL.js} +2 -2
  226. package/dist/cdn/{3TR2SX3K.js → WIL2KEBU.js} +2 -2
  227. package/dist/cdn/{XJN65OGH.js → WJR4WEGS.js} +2 -2
  228. package/dist/cdn/{C7OOERWJ.js → WL7OD6WD.js} +2 -2
  229. package/dist/cdn/{QU2NXTI2.js → WWMRUJLG.js} +2 -2
  230. package/dist/cdn/{I333PKRC.js → WXK2WVVT.js} +2 -2
  231. package/dist/cdn/{GLSF2K5N.js → X3ZC2F4X.js} +2 -2
  232. package/dist/cdn/{4LFB4UYU.js → X54FR2EJ.js} +2 -2
  233. package/dist/cdn/{B3ROKYWD.js → XD2BQKRE.js} +1 -1
  234. package/dist/cdn/{GFLTB7QH.js → XHAYQGN6.js} +2 -2
  235. package/dist/cdn/{LOUUQUOX.js → XIQ2WZEH.js} +2 -2
  236. package/dist/cdn/{WMUWRERD.js → XK2GUCV6.js} +2 -2
  237. package/dist/cdn/{FBYSGM2G.js → XKWS6D65.js} +2 -2
  238. package/dist/cdn/{KE7WNVPP.js → XRKFN6ZB.js} +2 -2
  239. package/dist/cdn/{EFC4YQFJ.js → XS6TIP4F.js} +2 -2
  240. package/dist/cdn/{QFCFFIO4.js → XUVPUXIS.js} +1 -1
  241. package/dist/cdn/XVKNUHRV.js +4 -0
  242. package/dist/cdn/{ZTCGPABV.js → XY7URPA7.js} +2 -2
  243. package/dist/cdn/{44QABIVA.js → XZQUSSDL.js} +2 -2
  244. package/dist/cdn/{NFMFYPCU.js → YEDWHWED.js} +1 -1
  245. package/dist/cdn/{LHBSYXP2.js → YENXRSE7.js} +2 -2
  246. package/dist/cdn/{MPALMKJU.js → Z2FNGY2B.js} +2 -2
  247. package/dist/cdn/{QZFQW4WX.js → Z5FKAWPV.js} +2 -2
  248. package/dist/cdn/{ANB5XI6W.js → Z66X4MJA.js} +2 -2
  249. package/dist/cdn/{ZYLIIADK.js → ZCR7B4RS.js} +2 -2
  250. package/dist/cdn/{HPIIUG7O.js → ZCYGMQHV.js} +2 -2
  251. package/dist/cdn/{P7MEEGRE.js → ZEC2W4KR.js} +2 -2
  252. package/dist/cdn/{FHW4MYUS.js → ZF3YPVYG.js} +2 -2
  253. package/dist/cdn/{FTHHQBDO.js → ZLPCCGKI.js} +2 -2
  254. package/dist/cdn/{7XUE5S7F.js → ZOHYUYHP.js} +2 -2
  255. package/dist/cdn/{S4IOCXCM.js → ZSEZT4GX.js} +2 -2
  256. package/dist/cdn/{BGCLJYKW.js → ZU6ZJXKY.js} +2 -2
  257. package/dist/cdn/{R62MXJDR.js → ZZRXHOH5.js} +2 -2
  258. package/dist/cdn/index.js +2 -2
  259. package/dist/chunks/AnalysisViewModel.js +1 -1
  260. package/dist/chunks/action-utils.js +1 -1
  261. package/dist/chunks/async-utils.js +1 -1
  262. package/dist/chunks/basemap-gallery-resources.js +1 -1
  263. package/dist/chunks/building-layer-utils.js +1 -1
  264. package/dist/chunks/chart-utils.js +1 -1
  265. package/dist/chunks/chartCommon.js +1 -1
  266. package/dist/chunks/clipoardSymbolHelper.js +1 -1
  267. package/dist/chunks/component-utils.js +1 -1
  268. package/dist/chunks/component-wrapper.js +1 -1
  269. package/dist/chunks/constants.js +1 -1
  270. package/dist/chunks/esri-main.js +1 -1
  271. package/dist/chunks/feature-utils.js +1 -1
  272. package/dist/chunks/globalCss.js +1 -1
  273. package/dist/chunks/goTo.js +1 -1
  274. package/dist/chunks/handle.js +1 -1
  275. package/dist/chunks/heading.js +1 -1
  276. package/dist/chunks/layer-list.js +1 -1
  277. package/dist/chunks/layer-utils.js +1 -1
  278. package/dist/chunks/legacyIcon.js +1 -1
  279. package/dist/chunks/maybe.js +1 -1
  280. package/dist/chunks/measurementUtils.js +1 -1
  281. package/dist/chunks/runtime.js +1 -1
  282. package/dist/chunks/screenLocation.js +1 -1
  283. package/dist/chunks/slots.js +1 -1
  284. package/dist/chunks/svgUtils.js +1 -1
  285. package/dist/chunks/time-utils.js +1 -1
  286. package/dist/chunks/univariateUtils.js +1 -1
  287. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  288. package/dist/chunks/useCloseEvent.js +1 -1
  289. package/dist/chunks/useHandles.js +1 -1
  290. package/dist/chunks/useT9n.js +1 -1
  291. package/dist/chunks/useView.js +1 -1
  292. package/dist/chunks/useViewModel.js +1 -1
  293. package/dist/chunks/useWidget.js +1 -1
  294. package/dist/chunks/utils.js +1 -1
  295. package/dist/chunks/utils2.js +1 -1
  296. package/dist/chunks/visible-element.js +1 -1
  297. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  298. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  299. package/dist/components/arcgis-attachments/customElement.js +1 -1
  300. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  301. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  302. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  303. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  304. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  305. package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
  306. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  307. package/dist/components/arcgis-building-level-item/customElement.js +1 -1
  308. package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
  309. package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
  310. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  311. package/dist/components/arcgis-clipboard/customElement.js +1 -1
  312. package/dist/components/arcgis-color-select/customElement.js +1 -1
  313. package/dist/components/arcgis-compass/customElement.js +1 -1
  314. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  315. package/dist/components/arcgis-daylight/customElement.js +1 -1
  316. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  317. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  318. package/dist/components/arcgis-directions/customElement.js +1 -1
  319. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  320. package/dist/components/arcgis-editor/customElement.js +1 -1
  321. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  322. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  323. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  324. package/dist/components/arcgis-elevation-profile-settings/customElement.js +18 -18
  325. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  326. package/dist/components/arcgis-expand/customElement.js +1 -1
  327. package/dist/components/arcgis-feature/customElement.js +1 -1
  328. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  329. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  330. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  331. package/dist/components/arcgis-feature-expression/customElement.js +69 -185
  332. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  333. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  334. package/dist/components/arcgis-feature-image/customElement.js +2 -2
  335. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  336. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  337. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  338. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  339. package/dist/components/arcgis-feature-title/customElement.js +2 -2
  340. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  341. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  342. package/dist/components/arcgis-features/customElement.js +1 -1
  343. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  344. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  345. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  346. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  347. package/dist/components/arcgis-home/customElement.js +1 -1
  348. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  349. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  350. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  351. package/dist/components/arcgis-legend/customElement.js +1 -1
  352. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  353. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  354. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  355. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  356. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  357. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  358. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  359. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  360. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  361. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  362. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  363. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  364. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  365. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  366. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  367. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  368. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  369. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
  370. package/dist/components/arcgis-locate/customElement.js +1 -1
  371. package/dist/components/arcgis-map/customElement.js +1 -1
  372. package/dist/components/arcgis-measurement/customElement.js +1 -1
  373. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  374. package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
  375. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  376. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  377. package/dist/components/arcgis-paste/customElement.js +1 -1
  378. package/dist/components/arcgis-popup/customElement.js +1 -1
  379. package/dist/components/arcgis-presentation/customElement.js +1 -1
  380. package/dist/components/arcgis-print/customElement.js +1 -1
  381. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  382. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  383. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  384. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  385. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  386. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  387. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  388. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  389. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  390. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  391. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  392. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  393. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  394. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  395. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  396. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  397. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  398. package/dist/components/arcgis-scene/customElement.d.ts +2 -2
  399. package/dist/components/arcgis-scene/customElement.js +1 -1
  400. package/dist/components/arcgis-search/customElement.js +1 -1
  401. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  402. package/dist/components/arcgis-shadow-cast/customElement.js +95 -92
  403. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  404. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
  405. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  406. package/dist/components/arcgis-sketch/customElement.js +1 -1
  407. package/dist/components/arcgis-slice/customElement.js +1 -1
  408. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
  409. package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
  410. package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
  411. package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
  412. package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
  413. package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
  414. package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
  415. package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
  416. package/dist/components/arcgis-spinner/customElement.js +1 -1
  417. package/dist/components/arcgis-swipe/customElement.js +1 -1
  418. package/dist/components/arcgis-table-list/customElement.js +1 -1
  419. package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +6 -0
  420. package/dist/components/arcgis-time-of-day-slider/customElement.js +42 -42
  421. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  422. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  423. package/dist/components/arcgis-track/customElement.js +1 -1
  424. package/dist/components/arcgis-unit-select/customElement.js +14 -16
  425. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  426. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  427. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  428. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  429. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  430. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  431. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  432. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  433. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  434. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  435. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  436. package/dist/components/arcgis-version-management/customElement.js +1 -1
  437. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  438. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  439. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  440. package/dist/components/arcgis-video/customElement.js +1 -1
  441. package/dist/components/arcgis-video-player/customElement.js +1 -1
  442. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  443. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  444. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  445. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  446. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  447. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  448. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  449. package/dist/components/arcgis-weather/customElement.js +1 -1
  450. package/dist/components/arcgis-webgl-error/customElement.js +1 -1
  451. package/dist/components/arcgis-zoom/customElement.js +1 -1
  452. package/dist/docs/api.json +1 -1
  453. package/dist/docs/docs.json +1 -1
  454. package/dist/docs/vscode.html-custom-data.json +1 -1
  455. package/dist/docs/web-types.json +1 -1
  456. package/dist/index.js +1 -1
  457. package/dist/loader.js +2 -2
  458. package/dist/types/lumina.d.ts +1 -1
  459. package/dist/types/preact.d.ts +1 -1
  460. package/dist/types/react.d.ts +1 -1
  461. package/dist/types/stencil.d.ts +1 -1
  462. package/package.json +6 -5
  463. package/dist/cdn/6D5LZ6W2.js +0 -4
  464. package/dist/cdn/CTWKT3IG.js +0 -4
  465. package/dist/cdn/DVVTYRL4.js +0 -4
  466. package/dist/cdn/JFKNNFQE.js +0 -4
  467. package/dist/cdn/M2FF2X2O.js +0 -4
  468. package/dist/cdn/Q3OOYEUC.js +0 -4
  469. package/dist/cdn/ULUUEGT7.js +0 -6
  470. package/dist/cdn/VYDC2U3H.js +0 -4
  471. package/dist/cdn/WWLLSZN5.js +0 -4
  472. package/dist/cdn/Y5DM52ZI.js +0 -4
  473. package/dist/cdn/YH6OOGTI.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.139 */
4
- import{a as ve}from"./CFDSHTUS.js";import{D as de,E as q,M as re,O as fe,P as _e,c as R,da as ue,ga as xe,i as P,j as v,k as A,l as me,m as he,n as be,na as ce,o as te,oa as ae,pa as we}from"./NOS7DILW.js";import{N as O,a as H,u as k}from"./6YZB4QUT.js";import{a as ge,b as ee,d as T,e as f}from"./77L5WAA4.js";import{U as j,V as ye,g as X,o as w}from"./YEDB3AN2.js";import"./VYM5Y6JP.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("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"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),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),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.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(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),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=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(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",T),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",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),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),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(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,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=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=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){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 r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=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",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
3
+ v5.0.0-next.140 */
4
+ import{a as ve}from"./TT7NJVUH.js";import{D as de,E as q,M as re,O as fe,P as _e,c as R,da as ue,ga as xe,i as P,j as v,k as A,l as me,m as he,n as be,na as ce,o as te,oa as ae,pa as we}from"./QE5AUNFR.js";import{N as O,a as H,u as k}from"./LIGYZHHT.js";import{a as ge,b as ee,d as T,e as f}from"./FWBMNGJY.js";import{U as j,V as ye,g as X,o as w}from"./HZR4TFON.js";import"./EXKTZLIJ.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("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"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),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),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.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(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),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=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(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",T),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",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),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),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(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,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=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=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){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 r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=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",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.139 */
4
- import f from"./JZHNRWFN.js";import e from"./MWRBR42K.js";import"./76FM6APP.js";import{b as E}from"./B3ROKYWD.js";import{a as u}from"./5KPSBI3T.js";import d from"./K3Y2WNY5.js";import c from"./2ATLN4RD.js";import{a as D}from"./CVG5YKVF.js";import b from"./GGTJWFO5.js";import a from"./7BHHPTJG.js";import"./QAG5H7RS.js";import"./QZFQW4WX.js";import"./2QDLZ3GB.js";import"./HTGSDAOH.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./ULUUEGT7.js";import"./VYM5Y6JP.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.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__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}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
3
+ v5.0.0-next.140 */
4
+ import f from"./L73EFU5S.js";import e from"./DJNOZ3G7.js";import"./C4EXEFHY.js";import{b as E}from"./XD2BQKRE.js";import{a as u}from"./AKLPCQ4H.js";import d from"./WAWFMZ2P.js";import c from"./G7RQ35FO.js";import{a as D}from"./WDZSFILV.js";import b from"./OWHJNWDS.js";import a from"./NCCHUPW3.js";import"./57KHM7P2.js";import"./Z5FKAWPV.js";import"./774HFEEA.js";import"./5S35UURX.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.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__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}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.139 */
4
- import a from"./553MJZJV.js";import{P as O,Q as e,b as U,c as s}from"./ULUUEGT7.js";export default $arcgis.t(([{getBoundingBox:J,computeBBox:K,getTransformMatrix:Q},M,{e:N,f:F}])=>{var V=0;function X(){return V++}var Y=0;function Z(){return Y++}var _=0;function tt(){return _++}var R=new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),et="http://www.w3.org/2000/svg",it=Math.PI;function ot(t){let{pattern:o,linearGradient:i}=t;if(o)return s`<pattern height=${o.height??e} id=${o.id??e} patternUnits=userSpaceOnUse width=${o.width??e} x=${o.x??0??e} y=${o.y??0??e}><image height=${o.image.height??e} href=${o.image.href??e} width=${o.image.width??e} x=${o.image.x??e} y=${o.image.y??e} /></pattern>`;if(i){let n=i.stops.map(r=>s`<stop offset=${r.offset??e} stop-color=${r.color??e} />`);return s`<linearGradient gradientUnits=userSpaceOnUse id=${i.id??e} x1=${i.x1??e} x2=${i.x2??e} y1=${i.y1??e} y2=${i.y2??e}>${n}</linearGradient>`}return null}function E(t){if(!t)return{fill:"none",pattern:null,linearGradient:null};if(!("type"in t))return{fill:new M(t).toString(),pattern:null,linearGradient:null};if(t.type==="pattern"){let i=`patternId-${X()}`;return{fill:`url(#${i})`,pattern:{id:i,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}},linearGradient:null}}let o=`linearGradientId-${Z()}`;return{fill:`url(#${o})`,pattern:null,linearGradient:{id:o,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map(i=>({offset:i.offset,color:i.color&&new M(i.color).toString()}))}}}function D(t){let o={color:"none",width:1,cap:"butt",join:"4",dashArray:"none",dashOffset:"0"};return t&&(t.width!=null&&(o.width=t.width),t.cap&&(o.cap=t.cap),t.join&&(o.join=t.join.toString()),t.color&&(o.color=new M(t.color).toString()),t.dashArray&&(o.dashArray=t.dashArray),t.dashoffset&&(o.dashOffset=t.dashoffset),t.style&&!t.dashArray&&(o.dashArray=nt(t).join(",")||"none")),o}function nt(t){if(!t?.style)return[];let{dashArray:o,style:i,width:n}=t;if(typeof o=="string"&&o!=="none")return o.split(",").map(l=>Number(l));let r=n??0,d=R.has(i)?R.get(i).map(l=>l*r):[];if(t.cap!=="butt")for(let[l,h]of d.entries())d[l]=l%2===1?h+r:Math.max(h-r,1);return d}function rt(t){return t.map(o=>`${o.command} ${o.values.join(" ")}`).join(" ").trim()}function j(t,o){if(t==null)throw new Error("value is None")}function I(t,o,i,n,r){if(t){if(t.type==="circle")return s`<circle cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd r=${t.r??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-dashoffset=${i.dashOffset??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="ellipse")return s`<ellipse cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd rx=${t.rx??e} ry=${t.ry??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="rect")return s`<rect fill=${o??e} fill-rule=evenodd height=${t.height??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="image")return s`<image aria-label=${r??""??e} height=${t.height??e} href=${t.src??e} preserveAspectRatio=none width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="path"){let d=typeof t.path!="string"?rt(t.path):t.path;return s`<path d=${d??e} fill=${o??e} fill-rule=evenodd stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`}if(t.type==="text")return j(n),s`<text dominant-baseline=${(n.dominantBaseline==="inherit"||n.dominantBaseline==="alphabetic"||n.dominantBaseline==="auto"||n.dominantBaseline==="central"||n.dominantBaseline==="hanging"||n.dominantBaseline==="ideographic"||n.dominantBaseline==="mathematical"||n.dominantBaseline==="middle"||n.dominantBaseline==="text-bottom"||n.dominantBaseline==="text-top"?n.dominantBaseline:void 0)??e} fill=${o??e} fill-rule=evenodd font-family=${n.font.family??e} font-size=${n.font.size??e} font-style=${n.font.style??e} font-variant=${n.font.variant??e} font-weight=${n.font.weight??e} kerning=${n.kerning??e} rotate=${n.rotate??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} text-anchor=${(n.align==="inherit"||n.align==="middle"||n.align==="end"||n.align==="start"?n.align:void 0)??e} text-decoration=${(n.decoration==="inherit"||n.decoration==="none"||n.decoration==="blink"||n.decoration==="line-through"||n.decoration==="overline"||n.decoration==="underline"?n.decoration:void 0)??e} text-rendering=auto x=${t.x??e} y=${t.y??e}>${t.text}</text>`}return null}function at(t,o,i){let n=C(t);if(!n)return null;let{strength:r,radius:d}=n,l=r>0?d:0,h=5**(o/100)*(.4+o/100),u=(r+l*.5)*h,c=(r+l)*o,f=r*4+1;return s`<filter filterUnits=userSpaceOnUse height=300% .id=${`bloom${i}`} width=300% x=-100% y=-100%><feMorphology in=SourceGraphic operator=dilate radius=${u??e} result=dilate /><feGaussianBlur in=dilate result=blur stdDeviation=${c/25} /><feGaussianBlur in=blur result=intensityBlur stdDeviation=${c/50} /><feComponentTransfer in=SourceGraphic result=intensityBrightness><feFuncR slope=${f??e} type=linear /><feFuncG slope=${f??e} type=linear /><feFuncB slope=${f??e} type=linear /></feComponentTransfer><feMerge><feMergeNode in=intensityBlur /><feMergeNode in=intensityBrightness /><feGaussianBlur stdDeviation=${r/10} /></feMerge></filter>`}function x(t,o){let i=t*(it/180);return Math.abs(o*Math.sin(i))+Math.abs(o*Math.cos(i))}function T(t,o){let i={align:null,decoration:null,kerning:null,rotate:null,font:{style:null,variant:null,weight:null,size:null,family:null}};if(t){let n=t.alignBaseline,r=n==="baseline"?"auto":n==="top"?"text-top":n==="bottom"?"hanging":n;i.align=t.align,i.dominantBaseline=r,i.decoration=t.decoration,i.kerning=t.kerning?"auto":"0",i.rotate=t.rotated?"90":"0",j(o),i.font.style=o.style||"normal",i.font.variant=o.variant||"normal",i.font.weight=o.weight||"normal",i.font.size=o.size?.toString()||"10pt",i.font.family=o.family||"serif"}return i}function st(t,o){if(!t||t.length===0)return null;let i=[];for(let n of t){let{shape:r,fill:d,stroke:l,font:h}=n,u=E(d),c=D(l),f=r.type==="text"?T(r,h):null,a=I(r,u.fill,c,f);a&&i.push(a)}return s`<mask id=${o??e} maskUnits=userSpaceOnUse><g>${i}</g></mask>`}function C(t){let o=t?.match(/bloom\(\s*([^\s]+)\s+([^\s]+)\s+([^\s]+)\s*\)/iu);if(!o)return null;let[,i,n,r]=o;return{strength:Number(i),radius:N(F(n)),threshold:Number(r)}}function ut(t,o,i,n={}){let r=[],d=[],l=tt(),h=at(n.cssEffectFilter,o,l),u=null;if(h){let a=C(n.cssEffectFilter),$=n.clipBloomEffect||!a?.strength?0:(a.strength+a.radius/2)/3,p=o+o*$,m=i+i*$;u=[Math.max(p,10),Math.max(m,10)]}let c=o,f=i;if(n.useRotationSize)for(let a=0;a<t.length;a++){let $=n.rotations?.[a]??0;c=Math.max(x($,o),c),f=Math.max(x($,i),f)}for(let a=0;a<t.length;a++){let $=t[a],p=[],m=[],S=0,k=0,w=0;for(let y of $){let{shape:g,fill:P,stroke:A,font:W,offset:b}=y;!n.ignoreStrokeWidth&&g.type!=="text"&&(S+=A?.width||0);let z=E(P),q=D(A),H=g.type==="text"?T(g,W):null;r.push(ot(z)),p.push(I(g,z.fill,q,H,n.ariaLabel)),m.push(J(g)),b&&(k+=b[0],w+=b[1])}let v=n.rotations?.[a]??0;n.useRotationSize&&(k+=(c-x(v,o))/2,w+=(f-x(v,i))/2);let L=K(m),G=Q(L,o,i,S,n.scale??!1,v,n.useRotationSize??!1,[k,w],u),B=null;if(n.masking){let y=`mask-${a}`,g=n.masking[a];r.push(st(g,y)),B=`url(#${y})`}d.push(B?s`<g mask=${B??e}><g transform=${G??e}>${p}</g></g>`:s`<g transform=${G??e}>${p}</g>`)}return h&&(j(u),c=u[0],f=u[1]),U`<svg aria-label=${n.ariaLabel??e} height=${f??e} role=img style=${O("display: block;")} width=${c??e} xmlns=${et}>${s`${h}<defs>${r}</defs>${h?s`<g filter=${`url(#bloom${l})`}>${d}</g>`:d}`}</svg>`}return{a:ot,b:E,c:D,d:I,e:ut}},"applications/Components/svgUtils","Color",a)
3
+ v5.0.0-next.140 */
4
+ import a from"./3AEMFTKC.js";import{P as O,Q as e,b as U,c as s}from"./MDOFMA7T.js";export default $arcgis.t(([{getBoundingBox:J,computeBBox:K,getTransformMatrix:Q},M,{e:N,f:F}])=>{var V=0;function X(){return V++}var Y=0;function Z(){return Y++}var _=0;function tt(){return _++}var R=new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),et="http://www.w3.org/2000/svg",it=Math.PI;function ot(t){let{pattern:o,linearGradient:i}=t;if(o)return s`<pattern height=${o.height??e} id=${o.id??e} patternUnits=userSpaceOnUse width=${o.width??e} x=${o.x??0??e} y=${o.y??0??e}><image height=${o.image.height??e} href=${o.image.href??e} width=${o.image.width??e} x=${o.image.x??e} y=${o.image.y??e} /></pattern>`;if(i){let n=i.stops.map(r=>s`<stop offset=${r.offset??e} stop-color=${r.color??e} />`);return s`<linearGradient gradientUnits=userSpaceOnUse id=${i.id??e} x1=${i.x1??e} x2=${i.x2??e} y1=${i.y1??e} y2=${i.y2??e}>${n}</linearGradient>`}return null}function E(t){if(!t)return{fill:"none",pattern:null,linearGradient:null};if(!("type"in t))return{fill:new M(t).toString(),pattern:null,linearGradient:null};if(t.type==="pattern"){let i=`patternId-${X()}`;return{fill:`url(#${i})`,pattern:{id:i,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}},linearGradient:null}}let o=`linearGradientId-${Z()}`;return{fill:`url(#${o})`,pattern:null,linearGradient:{id:o,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map(i=>({offset:i.offset,color:i.color&&new M(i.color).toString()}))}}}function D(t){let o={color:"none",width:1,cap:"butt",join:"4",dashArray:"none",dashOffset:"0"};return t&&(t.width!=null&&(o.width=t.width),t.cap&&(o.cap=t.cap),t.join&&(o.join=t.join.toString()),t.color&&(o.color=new M(t.color).toString()),t.dashArray&&(o.dashArray=t.dashArray),t.dashoffset&&(o.dashOffset=t.dashoffset),t.style&&!t.dashArray&&(o.dashArray=nt(t).join(",")||"none")),o}function nt(t){if(!t?.style)return[];let{dashArray:o,style:i,width:n}=t;if(typeof o=="string"&&o!=="none")return o.split(",").map(l=>Number(l));let r=n??0,d=R.has(i)?R.get(i).map(l=>l*r):[];if(t.cap!=="butt")for(let[l,h]of d.entries())d[l]=l%2===1?h+r:Math.max(h-r,1);return d}function rt(t){return t.map(o=>`${o.command} ${o.values.join(" ")}`).join(" ").trim()}function j(t,o){if(t==null)throw new Error("value is None")}function I(t,o,i,n,r){if(t){if(t.type==="circle")return s`<circle cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd r=${t.r??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-dashoffset=${i.dashOffset??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="ellipse")return s`<ellipse cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd rx=${t.rx??e} ry=${t.ry??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="rect")return s`<rect fill=${o??e} fill-rule=evenodd height=${t.height??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="image")return s`<image aria-label=${r??""??e} height=${t.height??e} href=${t.src??e} preserveAspectRatio=none width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="path"){let d=typeof t.path!="string"?rt(t.path):t.path;return s`<path d=${d??e} fill=${o??e} fill-rule=evenodd stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`}if(t.type==="text")return j(n),s`<text dominant-baseline=${(n.dominantBaseline==="inherit"||n.dominantBaseline==="alphabetic"||n.dominantBaseline==="auto"||n.dominantBaseline==="central"||n.dominantBaseline==="hanging"||n.dominantBaseline==="ideographic"||n.dominantBaseline==="mathematical"||n.dominantBaseline==="middle"||n.dominantBaseline==="text-bottom"||n.dominantBaseline==="text-top"?n.dominantBaseline:void 0)??e} fill=${o??e} fill-rule=evenodd font-family=${n.font.family??e} font-size=${n.font.size??e} font-style=${n.font.style??e} font-variant=${n.font.variant??e} font-weight=${n.font.weight??e} kerning=${n.kerning??e} rotate=${n.rotate??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} text-anchor=${(n.align==="inherit"||n.align==="middle"||n.align==="end"||n.align==="start"?n.align:void 0)??e} text-decoration=${(n.decoration==="inherit"||n.decoration==="none"||n.decoration==="blink"||n.decoration==="line-through"||n.decoration==="overline"||n.decoration==="underline"?n.decoration:void 0)??e} text-rendering=auto x=${t.x??e} y=${t.y??e}>${t.text}</text>`}return null}function at(t,o,i){let n=C(t);if(!n)return null;let{strength:r,radius:d}=n,l=r>0?d:0,h=5**(o/100)*(.4+o/100),u=(r+l*.5)*h,c=(r+l)*o,f=r*4+1;return s`<filter filterUnits=userSpaceOnUse height=300% .id=${`bloom${i}`} width=300% x=-100% y=-100%><feMorphology in=SourceGraphic operator=dilate radius=${u??e} result=dilate /><feGaussianBlur in=dilate result=blur stdDeviation=${c/25} /><feGaussianBlur in=blur result=intensityBlur stdDeviation=${c/50} /><feComponentTransfer in=SourceGraphic result=intensityBrightness><feFuncR slope=${f??e} type=linear /><feFuncG slope=${f??e} type=linear /><feFuncB slope=${f??e} type=linear /></feComponentTransfer><feMerge><feMergeNode in=intensityBlur /><feMergeNode in=intensityBrightness /><feGaussianBlur stdDeviation=${r/10} /></feMerge></filter>`}function x(t,o){let i=t*(it/180);return Math.abs(o*Math.sin(i))+Math.abs(o*Math.cos(i))}function T(t,o){let i={align:null,decoration:null,kerning:null,rotate:null,font:{style:null,variant:null,weight:null,size:null,family:null}};if(t){let n=t.alignBaseline,r=n==="baseline"?"auto":n==="top"?"text-top":n==="bottom"?"hanging":n;i.align=t.align,i.dominantBaseline=r,i.decoration=t.decoration,i.kerning=t.kerning?"auto":"0",i.rotate=t.rotated?"90":"0",j(o),i.font.style=o.style||"normal",i.font.variant=o.variant||"normal",i.font.weight=o.weight||"normal",i.font.size=o.size?.toString()||"10pt",i.font.family=o.family||"serif"}return i}function st(t,o){if(!t||t.length===0)return null;let i=[];for(let n of t){let{shape:r,fill:d,stroke:l,font:h}=n,u=E(d),c=D(l),f=r.type==="text"?T(r,h):null,a=I(r,u.fill,c,f);a&&i.push(a)}return s`<mask id=${o??e} maskUnits=userSpaceOnUse><g>${i}</g></mask>`}function C(t){let o=t?.match(/bloom\(\s*([^\s]+)\s+([^\s]+)\s+([^\s]+)\s*\)/iu);if(!o)return null;let[,i,n,r]=o;return{strength:Number(i),radius:N(F(n)),threshold:Number(r)}}function ut(t,o,i,n={}){let r=[],d=[],l=tt(),h=at(n.cssEffectFilter,o,l),u=null;if(h){let a=C(n.cssEffectFilter),$=n.clipBloomEffect||!a?.strength?0:(a.strength+a.radius/2)/3,p=o+o*$,m=i+i*$;u=[Math.max(p,10),Math.max(m,10)]}let c=o,f=i;if(n.useRotationSize)for(let a=0;a<t.length;a++){let $=n.rotations?.[a]??0;c=Math.max(x($,o),c),f=Math.max(x($,i),f)}for(let a=0;a<t.length;a++){let $=t[a],p=[],m=[],S=0,k=0,w=0;for(let y of $){let{shape:g,fill:P,stroke:A,font:W,offset:b}=y;!n.ignoreStrokeWidth&&g.type!=="text"&&(S+=A?.width||0);let z=E(P),q=D(A),H=g.type==="text"?T(g,W):null;r.push(ot(z)),p.push(I(g,z.fill,q,H,n.ariaLabel)),m.push(J(g)),b&&(k+=b[0],w+=b[1])}let v=n.rotations?.[a]??0;n.useRotationSize&&(k+=(c-x(v,o))/2,w+=(f-x(v,i))/2);let L=K(m),G=Q(L,o,i,S,n.scale??!1,v,n.useRotationSize??!1,[k,w],u),B=null;if(n.masking){let y=`mask-${a}`,g=n.masking[a];r.push(st(g,y)),B=`url(#${y})`}d.push(B?s`<g mask=${B??e}><g transform=${G??e}>${p}</g></g>`:s`<g transform=${G??e}>${p}</g>`)}return h&&(j(u),c=u[0],f=u[1]),U`<svg aria-label=${n.ariaLabel??e} height=${f??e} role=img style=${O("display: block;")} width=${c??e} xmlns=${et}>${s`${h}<defs>${r}</defs>${h?s`<g filter=${`url(#bloom${l})`}>${d}</g>`:d}`}</svg>`}return{a:ot,b:E,c:D,d:I,e:ut}},"applications/Components/svgUtils","Color",a)