@esri/solutions-components 1.2.0-next.21 → 1.2.0-next.23

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 (479) hide show
  1. package/dist/cdn/24EMON2Y.js +18 -0
  2. package/dist/cdn/{4PFWZPSF.js → 2AY2K3WZ.js} +2 -2
  3. package/dist/cdn/{TWPRIW6W.js → 2BZBRTJL.js} +2 -2
  4. package/dist/cdn/{WRKHHDEK.js → 2GT4SW6J.js} +2 -2
  5. package/dist/cdn/{OTF6WC55.js → 2HQ3WQSS.js} +1 -1
  6. package/dist/cdn/{SPTDTOSM.js → 2M5HYDED.js} +2 -2
  7. package/dist/cdn/{37BAVLAP.js → 2MAG3IXY.js} +2 -2
  8. package/dist/cdn/{NOHK26DI.js → 2MAWBKAZ.js} +2 -2
  9. package/dist/cdn/{LPCWCSAE.js → 2OO632YT.js} +2 -2
  10. package/dist/cdn/{LXKU7WUU.js → 2QI7CPMT.js} +2 -2
  11. package/dist/cdn/{GZZHEXNM.js → 2WOYI26G.js} +2 -2
  12. package/dist/cdn/{MXDK4LDP.js → 2XPZGW6O.js} +4 -4
  13. package/dist/cdn/{6ISYJZ3U.js → 34IW6ND5.js} +2 -2
  14. package/dist/cdn/3DKHJDV7.js +4 -0
  15. package/dist/cdn/{QMKK7GAS.js → 3FMFTSSY.js} +2 -2
  16. package/dist/cdn/{OLLYGSHZ.js → 3GUMV5O4.js} +2 -2
  17. package/dist/cdn/{WZZXQ7ZL.js → 3L6Z4QK3.js} +2 -2
  18. package/dist/cdn/{5X5I7HXW.js → 3MHDDQ5I.js} +2 -2
  19. package/dist/cdn/{C5V5WACE.js → 3QZEC6GE.js} +2 -2
  20. package/dist/cdn/{EYXCH4TQ.js → 3R26Q7T6.js} +2 -2
  21. package/dist/cdn/{QDR4D66T.js → 3TKXL6UM.js} +1 -1
  22. package/dist/cdn/{Y43WPKIW.js → 3ZPCQCSG.js} +2 -2
  23. package/dist/cdn/{UOEK64W4.js → 42WGOLD2.js} +2 -2
  24. package/dist/cdn/{6J47H6LF.js → 447QBBCZ.js} +1 -1
  25. package/dist/cdn/{TPVEOX5G.js → 44RSFMVL.js} +2 -2
  26. package/dist/cdn/{L2OHD42I.js → 4DV66F6E.js} +2 -2
  27. package/dist/cdn/{43LM47JM.js → 4EJQCTSA.js} +1 -1
  28. package/dist/cdn/{FASHWN45.js → 4FLU7OR4.js} +2 -2
  29. package/dist/cdn/{2WQ4D3JD.js → 4G3EIWB6.js} +2 -2
  30. package/dist/cdn/{TLAJKE5F.js → 4IUIEMK6.js} +2 -2
  31. package/dist/cdn/{MS66PYWN.js → 4KCFAMJG.js} +2 -2
  32. package/dist/cdn/{ZGLUS7EY.js → 4MUYN6M7.js} +2 -2
  33. package/dist/cdn/{6UDQYBCT.js → 4O2YHWLF.js} +2 -2
  34. package/dist/cdn/{4ZXH4AYE.js → 4OQCCPF3.js} +1 -1
  35. package/dist/cdn/{U44X65LX.js → 4WLBD3FW.js} +2 -2
  36. package/dist/cdn/4XQU6E7M.js +18 -0
  37. package/dist/cdn/{NN3W4IUH.js → 56WN2O6D.js} +2 -2
  38. package/dist/cdn/{6MPNFWME.js → 5ACUN6IO.js} +2 -2
  39. package/dist/cdn/5C6YRKRX.js +4 -0
  40. package/dist/cdn/{LLJXBBKJ.js → 5EKBLXSV.js} +2 -2
  41. package/dist/cdn/{EGSL27T3.js → 5J2BYWKN.js} +2 -2
  42. package/dist/cdn/{GBTQSHKA.js → 5J5YFGVC.js} +2 -2
  43. package/dist/cdn/{VGX5VVVO.js → 5KBIDMN6.js} +2 -2
  44. package/dist/cdn/{TDSDZEH7.js → 5KPB4NR2.js} +2 -2
  45. package/dist/cdn/{RUDYNTVM.js → 5KQDWASO.js} +2 -2
  46. package/dist/cdn/{DOCNMY5H.js → 5M53YYS7.js} +2 -2
  47. package/dist/cdn/{SYQ77RWF.js → 5OGCE75U.js} +1 -1
  48. package/dist/cdn/{MWZCZ3GZ.js → 5RE4EQKC.js} +2 -2
  49. package/dist/cdn/{PHMX4V43.js → 5TJ3WMQB.js} +2 -2
  50. package/dist/cdn/{EA4SJ62D.js → 64ROMKAE.js} +1 -1
  51. package/dist/cdn/{6MWYP2QJ.js → 67KWMMGF.js} +2 -2
  52. package/dist/cdn/{27ESLXAT.js → 6AUSDT74.js} +2 -2
  53. package/dist/cdn/{CKKYPJNF.js → 6BU4XFOB.js} +2 -2
  54. package/dist/cdn/{3UZJJ4TA.js → 6CFGY2BV.js} +2 -2
  55. package/dist/cdn/{DQXONY5W.js → 6FTTCCP6.js} +2 -2
  56. package/dist/cdn/{KLDJP764.js → 6LIDXZSZ.js} +2 -2
  57. package/dist/cdn/{V5PS7TPT.js → 6MEGF2SK.js} +2 -2
  58. package/dist/cdn/{YIBIIFQA.js → 6NXELV3J.js} +2 -2
  59. package/dist/cdn/{ZSCNY56E.js → 6P6OXN3N.js} +2 -2
  60. package/dist/cdn/{5TK6DOW6.js → 6ZODEDKU.js} +2 -2
  61. package/dist/cdn/{ELFWIFOI.js → 72HWZD45.js} +2 -2
  62. package/dist/cdn/{I2POBGHR.js → 73457ZF3.js} +2 -2
  63. package/dist/cdn/{5U25HMRT.js → 73ZPUTT3.js} +2 -2
  64. package/dist/cdn/74U3DXGW.js +4 -0
  65. package/dist/cdn/7EZRADWR.js +4 -0
  66. package/dist/cdn/{OAYZ7IKH.js → 7G4CGORU.js} +2 -2
  67. package/dist/cdn/7HEGK7MA.js +18 -0
  68. package/dist/cdn/{B6NCIDUQ.js → 7I46GKF5.js} +2 -2
  69. package/dist/cdn/{KEDADGFZ.js → 7PHW5SV3.js} +2 -2
  70. package/dist/cdn/{PJRC7SHJ.js → 7RTQMKLE.js} +1 -1
  71. package/dist/cdn/{UYB52TDK.js → 7UZH3JSA.js} +2 -2
  72. package/dist/cdn/{ARWGMEFD.js → A2Q74J27.js} +2 -2
  73. package/dist/cdn/{ETVHZ7E4.js → A3SSEJRK.js} +2 -2
  74. package/dist/cdn/{NABUJ3I4.js → A5TA5B7Q.js} +2 -2
  75. package/dist/cdn/{2OEXTGHX.js → A7TN5NOD.js} +2 -2
  76. package/dist/cdn/{BYHP3RDB.js → AACDL376.js} +2 -2
  77. package/dist/cdn/{QBNFWPNH.js → AEZ6WE4H.js} +2 -2
  78. package/dist/cdn/{BJYU2UEJ.js → AFBDY226.js} +2 -2
  79. package/dist/cdn/{N3Q6R6TY.js → ANFNJY23.js} +2 -2
  80. package/dist/cdn/{47JWHU6X.js → ARL6VS7K.js} +2 -2
  81. package/dist/cdn/{D4Y37VIF.js → AS43PZG7.js} +2 -2
  82. package/dist/cdn/{V7U7DLUJ.js → ASRG36YH.js} +2 -2
  83. package/dist/cdn/{BA7C5JV7.js → AUB4DXBA.js} +2 -2
  84. package/dist/cdn/{7NRVWFK5.js → AW4KQLYN.js} +2 -2
  85. package/dist/cdn/{2Z7NZD5S.js → AX74S37Z.js} +2 -2
  86. package/dist/cdn/{IESWZ7BL.js → AXU3N3SM.js} +2 -2
  87. package/dist/cdn/{65YYFVKD.js → AYV2T2DU.js} +1 -1
  88. package/dist/cdn/{IL7KHRPB.js → B56YGTDU.js} +2 -2
  89. package/dist/cdn/{MASI4TM4.js → BEXIUYEC.js} +2 -2
  90. package/dist/cdn/{LPHU6MAJ.js → BFCOS4AK.js} +2 -2
  91. package/dist/cdn/{NDNONWRS.js → BHFPIIA5.js} +2 -2
  92. package/dist/cdn/{2ZDTHK62.js → BJHTJAD5.js} +2 -2
  93. package/dist/cdn/{TEGIRF2G.js → BOMKSZ2W.js} +2 -2
  94. package/dist/cdn/{5BBGQJ5S.js → C3KUXIX3.js} +2 -2
  95. package/dist/cdn/{UDRBXNEZ.js → C3XOCOGN.js} +2 -2
  96. package/dist/cdn/{ZAAZBMVL.js → C4BPHR5L.js} +2 -2
  97. package/dist/cdn/{IXNUWHR7.js → CBD2XZXF.js} +2 -2
  98. package/dist/cdn/{WUXNFVJD.js → CGOZV2GW.js} +2 -2
  99. package/dist/cdn/{E2O3EKWU.js → CHPK2WLW.js} +2 -2
  100. package/dist/cdn/{5FODZC2W.js → CN5DJPHM.js} +1 -1
  101. package/dist/cdn/{3LUEIDPJ.js → COF7QD2V.js} +2 -2
  102. package/dist/cdn/{2ERLNTHC.js → DADWRP33.js} +2 -2
  103. package/dist/cdn/{4PJKBI5Q.js → DBHD7PCZ.js} +2 -2
  104. package/dist/cdn/{G7B5NHVN.js → DDNXBLQ6.js} +2 -2
  105. package/dist/cdn/DHV3NPQP.js +18 -0
  106. package/dist/cdn/{66KL4C26.js → DKQHLGWF.js} +2 -2
  107. package/dist/cdn/{HCWTAUF5.js → DOQVDYCN.js} +2 -2
  108. package/dist/cdn/{ADOJOJRJ.js → DPCUAZSE.js} +2 -2
  109. package/dist/cdn/{IJI2I4NN.js → DQN7CICI.js} +2 -2
  110. package/dist/cdn/{ZWJQQF63.js → DXAGALWH.js} +2 -2
  111. package/dist/cdn/DXGJ2ELP.js +18 -0
  112. package/dist/cdn/{W7734FGJ.js → DZHX7PCQ.js} +2 -2
  113. package/dist/cdn/{3SCGD2CV.js → DZU33CZC.js} +2 -2
  114. package/dist/cdn/{5O3P6DBG.js → E2QEWS4T.js} +2 -2
  115. package/dist/cdn/{5CSKRDZM.js → E5ITCSLM.js} +2 -2
  116. package/dist/cdn/{6VPV7EU6.js → E6UCKZPA.js} +2 -2
  117. package/dist/cdn/{SF42TDNB.js → ECBQ4FMJ.js} +2 -2
  118. package/dist/cdn/{5LQPYHS4.js → EERCV4JC.js} +2 -2
  119. package/dist/cdn/{YUMTADN7.js → EH6Q6O37.js} +2 -2
  120. package/dist/cdn/{EXX2X63P.js → EHCPDGSC.js} +2 -2
  121. package/dist/cdn/{ZTYR32MZ.js → EHX5BFXV.js} +2 -2
  122. package/dist/cdn/{UIIKMLZY.js → EI3T37W7.js} +2 -2
  123. package/dist/cdn/{AVYP5N5W.js → EIQYIC3K.js} +2 -2
  124. package/dist/cdn/{G2UQK6LA.js → EJ3ZHDJE.js} +1 -1
  125. package/dist/cdn/{JGLFIWOT.js → EKXVOE2T.js} +2 -2
  126. package/dist/cdn/{ZMKFBKJ5.js → ELIRAMGJ.js} +2 -2
  127. package/dist/cdn/{5ZAFAS7S.js → ETYGQEHV.js} +2 -2
  128. package/dist/cdn/{MGYT2FRC.js → EUJDYYJR.js} +2 -2
  129. package/dist/cdn/{VPH3MHCJ.js → EUZPQTWY.js} +2 -2
  130. package/dist/cdn/{PFJ4FP3Z.js → EWTEGPMF.js} +2 -2
  131. package/dist/cdn/{Y5DN4QU2.js → EXKTND6M.js} +2 -2
  132. package/dist/cdn/{DPPVKLVV.js → EXQYLCNA.js} +2 -2
  133. package/dist/cdn/{EUKYTCUW.js → EYORGOJD.js} +2 -2
  134. package/dist/cdn/{ZBWHTQGY.js → F2IY43CU.js} +2 -2
  135. package/dist/cdn/{TXUBQSCF.js → F3BATDTI.js} +2 -2
  136. package/dist/cdn/{ZGXWBO6S.js → F3MYECGZ.js} +2 -2
  137. package/dist/cdn/{VXS4KLRE.js → F63E53WO.js} +2 -2
  138. package/dist/cdn/{FO5FDVKS.js → FA4FO6I5.js} +1 -1
  139. package/dist/cdn/{Y42PHID4.js → FA4MU7WH.js} +2 -2
  140. package/dist/cdn/{HIMSUVUZ.js → FG2CU36L.js} +2 -2
  141. package/dist/cdn/{APL5YV6I.js → FNYNLM4T.js} +2 -2
  142. package/dist/cdn/{REYSZJE4.js → FORFKB3P.js} +2 -2
  143. package/dist/cdn/FQB4KYBW.js +4 -0
  144. package/dist/cdn/{BNYHJMNY.js → FRRPVDOH.js} +2 -2
  145. package/dist/cdn/{PFC743S5.js → G2IJENMB.js} +2 -2
  146. package/dist/cdn/{4TDPMROA.js → G2IK2BJY.js} +2 -2
  147. package/dist/cdn/{JPNPSA7E.js → G5ZC3LOB.js} +1 -1
  148. package/dist/cdn/{DEZPDY4A.js → GCMVURP5.js} +1 -1
  149. package/dist/cdn/{W3TMRYTI.js → GFBXVBJT.js} +2 -2
  150. package/dist/cdn/GGAEFIZU.js +4 -0
  151. package/dist/cdn/{C3XGENO2.js → GHIJAWRM.js} +1 -1
  152. package/dist/cdn/{ALRXJEMN.js → GKFLVIV7.js} +1 -1
  153. package/dist/cdn/{QKRVG65G.js → GOOEDIPS.js} +2 -2
  154. package/dist/cdn/{VC5NFRBK.js → GPWOWLEE.js} +2 -2
  155. package/dist/cdn/{ZCXEHP3I.js → GWDTMNPJ.js} +2 -2
  156. package/dist/cdn/{KPLOUVW3.js → GWZ45ROX.js} +2 -2
  157. package/dist/cdn/{2CA32FPD.js → GXA2JOF6.js} +2 -2
  158. package/dist/cdn/{CPNBWTEA.js → H55C6KB4.js} +2 -2
  159. package/dist/cdn/{FMGMDOXA.js → H6HGD575.js} +2 -2
  160. package/dist/cdn/{TKQG2LKN.js → H7OQMXZH.js} +2 -2
  161. package/dist/cdn/{HOPHRV4L.js → HEPVNE4N.js} +2 -2
  162. package/dist/cdn/{GDAB44P7.js → HTTK52SH.js} +2 -2
  163. package/dist/cdn/{3GSLYS7Y.js → HXCXMMYQ.js} +2 -2
  164. package/dist/cdn/{3DBJ6LQZ.js → I2YMTCN3.js} +2 -2
  165. package/dist/cdn/{NZGTHZBJ.js → I3DV75YQ.js} +2 -2
  166. package/dist/cdn/{VFXHYKBA.js → I7RPH5AQ.js} +2 -2
  167. package/dist/cdn/{SAMBWFKJ.js → IBJDYHC4.js} +2 -2
  168. package/dist/cdn/{TKYTD63P.js → IGTA7PF3.js} +1 -1
  169. package/dist/cdn/{MR24E2PT.js → IPOR2FPA.js} +1 -1
  170. package/dist/cdn/{766NXEI5.js → JHZIHFJQ.js} +2 -2
  171. package/dist/cdn/{3FQZERY2.js → JJYUMARO.js} +2 -2
  172. package/dist/cdn/{UAMQWJTP.js → JMMOQDUW.js} +2 -2
  173. package/dist/cdn/{UCM63YTG.js → JOLRT72P.js} +2 -2
  174. package/dist/cdn/JRJCLFLU.js +18 -0
  175. package/dist/cdn/{5UFUXLVC.js → JZTOFKTR.js} +2 -2
  176. package/dist/cdn/{L6NUR77H.js → KBRZ2E2B.js} +2 -2
  177. package/dist/cdn/KFFWV5Q5.js +4 -0
  178. package/dist/cdn/{WL6PEUQB.js → KGFHT5Z2.js} +3 -3
  179. package/dist/cdn/{J7YSM5KG.js → KJQ7R2JY.js} +2 -2
  180. package/dist/cdn/{IFMVHH6O.js → KN4FZEPG.js} +2 -2
  181. package/dist/cdn/{LPWJRNE6.js → KNKXTRCQ.js} +2 -2
  182. package/dist/cdn/KPPEOZKI.js +18 -0
  183. package/dist/cdn/{4J2AL6O3.js → KS3H6HD6.js} +2 -2
  184. package/dist/cdn/{5AWE75QZ.js → KZWF25A7.js} +2 -2
  185. package/dist/cdn/{XLKIFV2H.js → KZXHGZIS.js} +2 -2
  186. package/dist/cdn/{NPL77HLA.js → L4WAQSYZ.js} +2 -2
  187. package/dist/cdn/{PQZE6Q45.js → L5CQLTKN.js} +2 -2
  188. package/dist/cdn/{5WF3LHZV.js → LHADNET3.js} +2 -2
  189. package/dist/cdn/{WZTL2MCD.js → LHZUH6KP.js} +2 -2
  190. package/dist/cdn/{G423EZVH.js → LLOZ3PI2.js} +2 -2
  191. package/dist/cdn/{WPMDZZYN.js → LMDNSXHL.js} +2 -2
  192. package/dist/cdn/{OBTOZOSB.js → LSY7M7PM.js} +2 -2
  193. package/dist/cdn/{37CBPFRJ.js → LTHVPEMG.js} +2 -2
  194. package/dist/cdn/{YNQJMUXW.js → LZI6KYYE.js} +2 -2
  195. package/dist/cdn/{Q2JR6QFV.js → MI7LMOW6.js} +2 -2
  196. package/dist/cdn/{FUW5X5WX.js → MISCRKYB.js} +2 -2
  197. package/dist/cdn/{4ZEW55IS.js → MNX4DCXY.js} +2 -2
  198. package/dist/cdn/{X2Q335MK.js → MTF4VR24.js} +2 -2
  199. package/dist/cdn/{7EWH23O4.js → N6PMPVQP.js} +2 -2
  200. package/dist/cdn/{BOWYOYFF.js → N74X45H6.js} +2 -2
  201. package/dist/cdn/{4SB6QW6W.js → NFHTWLBJ.js} +1 -1
  202. package/dist/cdn/{MPPNFL6O.js → NHDI6Y5W.js} +2 -2
  203. package/dist/cdn/{ZDTXP6UH.js → NM4HWLOR.js} +2 -2
  204. package/dist/cdn/{WZGEVXYQ.js → NNECIHO6.js} +2 -2
  205. package/dist/cdn/NVSJJXGC.js +4 -0
  206. package/dist/cdn/{KRNFP4OP.js → O7QUQWMN.js} +1 -1
  207. package/dist/cdn/{VRHRENNK.js → OABJ6FAM.js} +2 -2
  208. package/dist/cdn/{OUALGQPO.js → OAPFPQ7T.js} +2 -2
  209. package/dist/cdn/{7G2GSKCH.js → OCHSVPPR.js} +2 -2
  210. package/dist/cdn/{ORAYN2AR.js → OGT3FBFB.js} +2 -2
  211. package/dist/cdn/{SKT4GZ6B.js → OHFYM6YD.js} +2 -2
  212. package/dist/cdn/{7THEDBQV.js → OJXOT76S.js} +2 -2
  213. package/dist/cdn/{C36XF7C7.js → OMECYQCA.js} +2 -2
  214. package/dist/cdn/OPCZGSSX.js +4 -0
  215. package/dist/cdn/{EQMNEW7B.js → OPFS2EDA.js} +1 -1
  216. package/dist/cdn/{EWZKQPHY.js → OQUWAIXQ.js} +2 -2
  217. package/dist/cdn/{BIJS3QDZ.js → OUD56JVC.js} +2 -2
  218. package/dist/cdn/{2TBAUYG2.js → OUL7XO4D.js} +2 -2
  219. package/dist/cdn/{22WI477F.js → OWPATX2P.js} +1 -1
  220. package/dist/cdn/{3NBAQVF4.js → PCD7PZ5L.js} +1 -1
  221. package/dist/cdn/{I5EMUTWF.js → PIR7N5VR.js} +1 -1
  222. package/dist/cdn/{S7NGALY2.js → PKMLCY5N.js} +2 -2
  223. package/dist/cdn/{SMTIW5ON.js → PXGN7EKL.js} +2 -2
  224. package/dist/cdn/{N55BTIIP.js → Q7XUITQI.js} +2 -2
  225. package/dist/cdn/{G354G2R5.js → QAP7LJA2.js} +2 -2
  226. package/dist/cdn/{P5564HET.js → QB5AV6Z2.js} +2 -2
  227. package/dist/cdn/{YHIWZGM7.js → QC2AE5T3.js} +2 -2
  228. package/dist/cdn/{PNEU3IS5.js → QD7UTWID.js} +3 -3
  229. package/dist/cdn/{2NN7XORI.js → QDIFRW3Y.js} +2 -2
  230. package/dist/cdn/{2XVGJF2S.js → QGJJ24WW.js} +2 -2
  231. package/dist/cdn/{OMCPSQ2N.js → QHOSUMUL.js} +2 -2
  232. package/dist/cdn/{T4NEPGO4.js → QTGADA35.js} +2 -2
  233. package/dist/cdn/{ON53FJXG.js → R5CSYGKM.js} +2 -2
  234. package/dist/cdn/{IJBXFCMT.js → R5I3RSB5.js} +2 -2
  235. package/dist/cdn/{6RUEUSIY.js → R5T7HNWM.js} +2 -2
  236. package/dist/cdn/{S3TADIJ6.js → R65XXC7W.js} +1 -1
  237. package/dist/cdn/{QKHTFYET.js → RA5UOWRS.js} +2 -2
  238. package/dist/cdn/{T34KE2A2.js → RIDOZXO2.js} +2 -2
  239. package/dist/cdn/{4KAJDNJI.js → RIGVRNF5.js} +2 -2
  240. package/dist/cdn/{KU7RFZOY.js → RO4OHJS7.js} +2 -2
  241. package/dist/cdn/{PWGDJNXG.js → RTBQFLPT.js} +2 -2
  242. package/dist/cdn/{7QZKOSHV.js → RTSU4IMM.js} +2 -2
  243. package/dist/cdn/RVED3KDZ.js +65 -0
  244. package/dist/cdn/{KNUWDW23.js → RXMDWQTK.js} +2 -2
  245. package/dist/cdn/{267XR53J.js → S4BF2WGT.js} +2 -2
  246. package/dist/cdn/{K5RFBVYK.js → S4VTTGV4.js} +2 -2
  247. package/dist/cdn/{R4GWAQRV.js → S67DZUEG.js} +1 -1
  248. package/dist/cdn/{UEFR52YG.js → S7BHNJLQ.js} +2 -2
  249. package/dist/cdn/{QWKYRSVI.js → SC3FNS6J.js} +2 -2
  250. package/dist/cdn/{Z23HGZYN.js → SKEK4QNX.js} +2 -2
  251. package/dist/cdn/{5QB6QMOQ.js → SKQS2WA5.js} +2 -2
  252. package/dist/cdn/{OJEOXJLD.js → SLEEVSYJ.js} +2 -2
  253. package/dist/cdn/{67PMSKZH.js → SNJYATF7.js} +1 -1
  254. package/dist/cdn/{KHGPU4UH.js → SOSIOC3B.js} +2 -2
  255. package/dist/cdn/{455DGAYG.js → SRQOKDNI.js} +2 -2
  256. package/dist/cdn/{CVPVJHLE.js → SVIJAADO.js} +2 -2
  257. package/dist/cdn/{44SOOWCI.js → SVKG37NL.js} +2 -2
  258. package/dist/cdn/{EWRHTIXK.js → SVLEHVDZ.js} +2 -2
  259. package/dist/cdn/{FHQAUSZQ.js → SWZKIHBT.js} +2 -2
  260. package/dist/cdn/{SULZ3DXA.js → SZQTGGCV.js} +1 -1
  261. package/dist/cdn/{SEQGEOAO.js → TB5GWGCC.js} +2 -2
  262. package/dist/cdn/{4N6PAP2B.js → TENRTCL5.js} +2 -2
  263. package/dist/cdn/{5KWSM7IU.js → TJKDS62P.js} +2 -2
  264. package/dist/cdn/{TCBFVFSX.js → TK5MJJZP.js} +2 -2
  265. package/dist/cdn/{SYAYSQPQ.js → TWD2LUT7.js} +2 -2
  266. package/dist/cdn/{WEU6HCGV.js → U22NFDSK.js} +2 -2
  267. package/dist/cdn/{3SLYHKVF.js → U3N72MOY.js} +2 -2
  268. package/dist/cdn/{SHSY5TSW.js → UBSHVQ67.js} +2 -2
  269. package/dist/cdn/{EOPQUXDK.js → UDYQLKU2.js} +2 -2
  270. package/dist/cdn/{QAFNPAAD.js → UGXZV4XN.js} +1 -1
  271. package/dist/cdn/{PT5WEO4R.js → UHXD3KCT.js} +2 -2
  272. package/dist/cdn/{Y4CU2GK4.js → UM75XTCN.js} +2 -2
  273. package/dist/cdn/{QGUWQFF4.js → UNMHKHZ5.js} +2 -2
  274. package/dist/cdn/{NRDRHGLK.js → USSXA4MT.js} +2 -2
  275. package/dist/cdn/{2R5QFP6H.js → UX43ZU2H.js} +2 -2
  276. package/dist/cdn/{FH4SRX2G.js → UZ374JOX.js} +2 -2
  277. package/dist/cdn/{IQKAM57E.js → UZXP73OD.js} +2 -2
  278. package/dist/cdn/{JPQEYX6B.js → V2J3YHQS.js} +2 -2
  279. package/dist/cdn/{EFOK377W.js → V2MVWBQC.js} +1 -1
  280. package/dist/cdn/{DEWVSB4U.js → V5BRVAIY.js} +3 -3
  281. package/dist/cdn/{LQHMW4IA.js → V7N3K5BW.js} +2 -2
  282. package/dist/cdn/VDL3ORNG.js +4 -0
  283. package/dist/cdn/{TRRMVHNP.js → VESF2MVU.js} +2 -2
  284. package/dist/cdn/{YLRL7Y5N.js → VIAQLJWM.js} +2 -2
  285. package/dist/cdn/{6LDGKXHO.js → VJEGBA6P.js} +2 -2
  286. package/dist/cdn/{KQQVJLMB.js → VPNGXGZ6.js} +2 -2
  287. package/dist/cdn/{2L5T7JFI.js → VRW57QNZ.js} +2 -2
  288. package/dist/cdn/{ACASG3D3.js → VT3SBHVN.js} +2 -2
  289. package/dist/cdn/{JZ7DDWQB.js → VVCF2AUH.js} +2 -2
  290. package/dist/cdn/{AWZPH3WI.js → VW6CSBYE.js} +2 -2
  291. package/dist/cdn/{C3UGMPFZ.js → W2PK53ZW.js} +2 -2
  292. package/dist/cdn/{374U3GWX.js → WC5UQNN4.js} +2 -2
  293. package/dist/cdn/{MGF42WWT.js → WCUMS6MM.js} +2 -2
  294. package/dist/cdn/{JTKWC3IN.js → WGC7EQLN.js} +2 -2
  295. package/dist/cdn/{GFLSAGSA.js → WGIZKN2R.js} +2 -2
  296. package/dist/cdn/{AVXSEI6R.js → WHLKZMOG.js} +2 -2
  297. package/dist/cdn/{OVZZ6JTU.js → WPCRI56Q.js} +2 -2
  298. package/dist/cdn/{J2ZYSYWV.js → WTAYRSWV.js} +2 -2
  299. package/dist/cdn/{LPVP3TCA.js → WUDVN65D.js} +1 -1
  300. package/dist/cdn/{JVB44O4S.js → WVNSSHFD.js} +2 -2
  301. package/dist/cdn/{VRUHMDUB.js → WWHHN66F.js} +1 -1
  302. package/dist/cdn/{J4W3UIZY.js → WY3IXZWK.js} +2 -2
  303. package/dist/cdn/{TWG226PR.js → WY7IYTWF.js} +2 -2
  304. package/dist/cdn/{FJKLSPV2.js → X2BUY4SI.js} +2 -2
  305. package/dist/cdn/{JUHZNCUH.js → X5XJRBMS.js} +1 -1
  306. package/dist/cdn/{PGGYBI5J.js → XALVY5U7.js} +2 -2
  307. package/dist/cdn/{WWKYMX4H.js → XC2RN3E4.js} +2 -2
  308. package/dist/cdn/{UNSSBR4O.js → XDWAJV5E.js} +2 -2
  309. package/dist/cdn/{ZADEJN6X.js → XDZCTXYL.js} +1 -1
  310. package/dist/cdn/{JN7ZBQQT.js → XFHGN2VQ.js} +2 -2
  311. package/dist/cdn/{N4YNUARS.js → XJGJXA5N.js} +2 -2
  312. package/dist/cdn/{KQ3UQWCA.js → XKMLZWOT.js} +2 -2
  313. package/dist/cdn/{3NJ7ZDPK.js → XNUPB5IP.js} +2 -2
  314. package/dist/cdn/{4IP3BGGA.js → XPYSSK2W.js} +2 -2
  315. package/dist/cdn/{H23L6B2Q.js → XRUCHXKQ.js} +1 -1
  316. package/dist/cdn/{CNPRL7S7.js → XVSMGFBN.js} +2 -2
  317. package/dist/cdn/{PGBTYK6X.js → XWD4BRLE.js} +2 -2
  318. package/dist/cdn/{W5ZGSETN.js → Y7J3WBQC.js} +2 -2
  319. package/dist/cdn/YBA7DTZL.js +18 -0
  320. package/dist/cdn/{HEW6Z5PB.js → YBXI2IP4.js} +2 -2
  321. package/dist/cdn/{3PWHRLUR.js → YCGRKQUE.js} +2 -2
  322. package/dist/cdn/{SROQUXLR.js → YE4CWFPV.js} +2 -2
  323. package/dist/cdn/{6NCUX6NJ.js → YFNTPWQX.js} +2 -2
  324. package/dist/cdn/{QO2IVYQC.js → YFWPGFWZ.js} +2 -2
  325. package/dist/cdn/{UFPDER6I.js → YH7OKKNO.js} +2 -2
  326. package/dist/cdn/{HOFOKHEX.js → YHC7VJT6.js} +2 -2
  327. package/dist/cdn/{OEWCMCHN.js → YIVC3N6V.js} +2 -2
  328. package/dist/cdn/{FTCKROY3.js → YRYUTQZS.js} +2 -2
  329. package/dist/cdn/{7WJ4AYW6.js → YSRBGBTX.js} +2 -2
  330. package/dist/cdn/{PYWEHZIC.js → Z6Y6T5UD.js} +2 -2
  331. package/dist/cdn/{U232ZHS5.js → ZARLXUDC.js} +2 -2
  332. package/dist/cdn/{ID2MR3BQ.js → ZBBWQLUR.js} +2 -2
  333. package/dist/cdn/{ANG6KH3Q.js → ZCW6M6OW.js} +1 -1
  334. package/dist/cdn/{CURE4DDI.js → ZFTONCP4.js} +2 -2
  335. package/dist/cdn/{ICV7ZHJA.js → ZI4I3QKV.js} +2 -2
  336. package/dist/cdn/{B2M4VAVZ.js → ZKOH4CPV.js} +2 -2
  337. package/dist/cdn/{ZHNR6E4I.js → ZLN7CJ4U.js} +2 -2
  338. package/dist/cdn/{NDGWBMSC.js → ZOZZYFSA.js} +2 -2
  339. package/dist/cdn/{QGE56V4L.js → ZP365LXA.js} +2 -2
  340. package/dist/cdn/{L6LJJRE2.js → ZPGG6M7Y.js} +2 -2
  341. package/dist/cdn/{IM62UGGF.js → ZSPVOJPN.js} +2 -2
  342. package/dist/cdn/{KCSAC7EU.js → ZTNTEOUC.js} +1 -1
  343. package/dist/cdn/{VJABELHG.js → ZZ7264B4.js} +2 -2
  344. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  346. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
  347. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
  348. package/dist/cdn/index.js +2 -2
  349. package/dist/chunks/Auth.js +1 -1
  350. package/dist/chunks/CardsFetcher.js +1 -1
  351. package/dist/chunks/appConfig.js +1 -1
  352. package/dist/chunks/cardFetchingUtils.js +1 -1
  353. package/dist/chunks/cardsHelpers.js +1 -1
  354. package/dist/chunks/common.js +1 -1
  355. package/dist/chunks/deployAppContexts.js +1 -1
  356. package/dist/chunks/downloadUtils.js +1 -1
  357. package/dist/chunks/getItemIcon.js +1 -1
  358. package/dist/chunks/helpers.js +1 -1
  359. package/dist/chunks/interfaces.js +1 -1
  360. package/dist/chunks/loadModules.js +1 -1
  361. package/dist/chunks/mapViewUtils.js +1 -1
  362. package/dist/chunks/pciUtils.js +1 -1
  363. package/dist/chunks/popupUtils.js +1 -1
  364. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  365. package/dist/chunks/privilegeUtils.js +1 -1
  366. package/dist/chunks/publicNotificationContext.js +1 -1
  367. package/dist/chunks/queryUtils.js +43 -38
  368. package/dist/chunks/runtime.js +1 -1
  369. package/dist/chunks/solution-store.js +1 -1
  370. package/dist/chunks/templates.js +1 -1
  371. package/dist/chunks/useT9n.js +1 -1
  372. package/dist/components/arcgis-solutions-assistant/customElement.js +260 -227
  373. package/dist/components/arcgis-solutions-assistant/index.d.ts +1 -0
  374. package/dist/components/arcgis-solutions-assistant/index.js +1 -0
  375. package/dist/components/basemap-gallery/customElement.js +1 -1
  376. package/dist/components/buffer-tools/customElement.js +1 -1
  377. package/dist/components/card-manager/customElement.js +1 -1
  378. package/dist/components/consent-manager/customElement.js +1 -1
  379. package/dist/components/create-feature/customElement.js +1 -1
  380. package/dist/components/create-related-feature/customElement.js +1 -1
  381. package/dist/components/crowdsource-manager/customElement.d.ts +3 -5
  382. package/dist/components/crowdsource-manager/customElement.js +7 -19
  383. package/dist/components/crowdsource-reporter/customElement.js +3 -3
  384. package/dist/components/crowdsource-reporter/index.d.ts +1 -1
  385. package/dist/components/crowdsource-reporter/index.js +1 -1
  386. package/dist/components/deduct-calculator/customElement.js +1 -1
  387. package/dist/components/delete-button/customElement.d.ts +2 -6
  388. package/dist/components/delete-button/customElement.js +3 -3
  389. package/dist/components/delete-dialog/customElement.js +1 -1
  390. package/dist/components/edit-card/customElement.js +1 -1
  391. package/dist/components/feature-details/customElement.js +1 -1
  392. package/dist/components/feature-list/customElement.js +1 -1
  393. package/dist/components/field-selection/customElement.js +1 -1
  394. package/dist/components/floor-filter/customElement.js +1 -1
  395. package/dist/components/info-card/customElement.js +1 -1
  396. package/dist/components/json-editor/customElement.js +1 -1
  397. package/dist/components/layer-list/customElement.js +1 -1
  398. package/dist/components/layer-table/customElement.js +3 -3
  399. package/dist/components/map-card/customElement.js +2 -2
  400. package/dist/components/map-draw-tools/customElement.js +1 -1
  401. package/dist/components/map-fullscreen/customElement.js +1 -1
  402. package/dist/components/map-layer-picker/customElement.d.ts +2 -6
  403. package/dist/components/map-layer-picker/customElement.js +9 -13
  404. package/dist/components/map-legend/customElement.js +1 -1
  405. package/dist/components/map-picker/customElement.js +1 -1
  406. package/dist/components/map-search/customElement.js +1 -1
  407. package/dist/components/map-select-tools/customElement.js +15 -15
  408. package/dist/components/map-tools/customElement.js +56 -57
  409. package/dist/components/pci-calculator/customElement.js +1 -1
  410. package/dist/components/pdf-download/customElement.js +1 -1
  411. package/dist/components/public-notification/customElement.js +5 -6
  412. package/dist/components/refine-selection/customElement.js +1 -1
  413. package/dist/components/selection-tool/customElement.js +1 -1
  414. package/dist/components/solution-configuration/customElement.js +1 -1
  415. package/dist/components/solution-configure-titles/customElement.js +1 -1
  416. package/dist/components/solution-contents/customElement.js +1 -1
  417. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  418. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  419. package/dist/components/solution-deployed-card/customElement.js +1 -1
  420. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  421. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  422. package/dist/components/solution-details-card/customElement.js +1 -1
  423. package/dist/components/solution-details-panel/customElement.js +1 -1
  424. package/dist/components/solution-item/customElement.js +1 -1
  425. package/dist/components/solution-item-accordion/customElement.js +1 -1
  426. package/dist/components/solution-item-details/customElement.js +1 -1
  427. package/dist/components/solution-item-diagram/customElement.js +1 -1
  428. package/dist/components/solution-item-icon/customElement.js +1 -1
  429. package/dist/components/solution-item-sharing/customElement.js +1 -1
  430. package/dist/components/solution-organization-variables/customElement.js +1 -1
  431. package/dist/components/solution-resource-card/customElement.js +1 -1
  432. package/dist/components/solution-resource-item/customElement.js +1 -1
  433. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  434. package/dist/components/solution-social-share/customElement.js +1 -1
  435. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  436. package/dist/components/solution-template-data/customElement.js +1 -1
  437. package/dist/components/solution-variables/customElement.js +1 -1
  438. package/dist/components/solutions-all-panel/customElement.js +1 -1
  439. package/dist/components/solutions-all-shell/customElement.js +1 -1
  440. package/dist/components/solutions-deploy-app/customElement.js +1 -1
  441. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  442. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  443. package/dist/components/solutions-deployed-panel/customElement.js +2 -2
  444. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  445. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  446. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  447. package/dist/components/solutions-resources/customElement.js +1 -1
  448. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  449. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  450. package/dist/components/spatial-ref/customElement.js +1 -1
  451. package/dist/components/store-manager/customElement.js +1 -1
  452. package/dist/docs/api.json +22 -46
  453. package/dist/docs/docs.json +26 -26
  454. package/dist/docs/vscode.html-custom-data.json +2 -12
  455. package/dist/docs/web-types.json +7 -23
  456. package/dist/index.js +1 -1
  457. package/dist/loader.js +3 -3
  458. package/dist/utils/interfaces.d.ts +3 -3
  459. package/dist/utils/queryUtils.d.ts +2 -2
  460. package/package.json +22 -22
  461. package/dist/cdn/24XF7RBG.js +0 -4
  462. package/dist/cdn/3EUP5SA5.js +0 -18
  463. package/dist/cdn/3I365GBL.js +0 -4
  464. package/dist/cdn/5X7OT3PW.js +0 -4
  465. package/dist/cdn/6D3JL2AS.js +0 -18
  466. package/dist/cdn/7IGMIN2W.js +0 -63
  467. package/dist/cdn/BUNUWO4R.js +0 -4
  468. package/dist/cdn/D7QKCBMA.js +0 -4
  469. package/dist/cdn/DCXFS72L.js +0 -18
  470. package/dist/cdn/DUVCORIN.js +0 -4
  471. package/dist/cdn/GW3RLVUL.js +0 -4
  472. package/dist/cdn/JM47OMNA.js +0 -18
  473. package/dist/cdn/LAER7U5K.js +0 -4
  474. package/dist/cdn/NUYH26IF.js +0 -18
  475. package/dist/cdn/OTM3WCFO.js +0 -18
  476. package/dist/cdn/P2ZHCD37.js +0 -4
  477. package/dist/cdn/T6HJKM4L.js +0 -4
  478. package/dist/cdn/X7SSY7I5.js +0 -18
  479. package/dist/cdn/ZWLWEEM7.js +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "1.2.0-next.21",
3
+ "version": "1.2.0-next.23",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "SEE LICENSE IN LICENSE.md",
33
33
  "devDependencies": {
34
- "@arcgis/core": ">=4.34.0-next.102 <4.35",
35
- "@arcgis/eslint-config": ">=4.34.0-next.145 <4.35",
36
- "@arcgis/instant-apps-components": ">=4.34.0-next.145 <4.35",
37
- "@arcgis/lumina-compiler": ">=4.34.0-next.145 <4.35",
38
- "@arcgis/map-components": ">=4.34.0-next.145 <4.35",
39
- "@arcgis/prettier-config": ">=4.34.0-next.145 <4.35",
40
- "@arcgis/typescript-config": ">=4.34.0-next.145 <4.35",
41
- "@esri/calcite-components": "^3.3.1",
34
+ "@arcgis/core": ">=5.0.0-next.1 <5.1",
35
+ "@arcgis/eslint-config": ">=5.0.0-next.1 <5.1",
36
+ "@arcgis/instant-apps-components": ">=5.0.0-next.1 <5.1",
37
+ "@arcgis/lumina-compiler": ">=5.0.0-next.1 <5.1",
38
+ "@arcgis/map-components": ">=5.0.0-next.1 <5.1",
39
+ "@arcgis/prettier-config": ">=5.0.0-next.1 <5.1",
40
+ "@arcgis/typescript-config": ">=5.0.0-next.1 <5.1",
41
+ "@esri/calcite-components": "^4.0.0-next.46",
42
42
  "@esri/telemetry": "8.0.1",
43
43
  "@esri/telemetry-amazon": "4.0.1",
44
44
  "@esri/telemetry-google-analytics": "2.0.1",
@@ -83,12 +83,12 @@
83
83
  "workbox-build": "^7.3.0"
84
84
  },
85
85
  "dependencies": {
86
- "@arcgis/analysis-components": ">=4.34.0-next <4.35",
87
- "@arcgis/analysis-shared-utils": ">=4.34.0-next <4.35",
88
- "@arcgis/app-components": "~4.15.1",
89
- "@arcgis/common-components": ">=4.34.0-next.145 <4.35",
90
- "@arcgis/components-utils": ">=4.34.0-next.145 <4.35",
91
- "@arcgis/lumina": ">=4.34.0-next.145 <4.35",
86
+ "@arcgis/analysis-components": ">=5.0.0-next.1 <5.1",
87
+ "@arcgis/analysis-shared-utils": ">=5.0.0-next.1 <5.1",
88
+ "@arcgis/app-components": "~4.15.0",
89
+ "@arcgis/common-components": ">=5.0.0-next.1 <5.1",
90
+ "@arcgis/components-utils": ">=5.0.0-next.1 <5.1",
91
+ "@arcgis/lumina": ">=5.0.0-next.1 <5.1",
92
92
  "@emotion/css": "^11.13.5",
93
93
  "@esri/arcgis-html-sanitizer": "^4.1.0",
94
94
  "@esri/arcgis-rest-types": "^3.7.0",
@@ -100,10 +100,10 @@
100
100
  "lit": "^3.3.0"
101
101
  },
102
102
  "peerDependencies": {
103
- "@arcgis/core": ">=4.34.0-next.102 <4.35",
104
- "@arcgis/instant-apps-components": ">=4.34.0-next.145 <4.35",
105
- "@arcgis/map-components": ">=4.34.0-next.145 <4.35",
106
- "@esri/calcite-components": "^3.3.1",
103
+ "@arcgis/core": ">=5.0.0-next.1 <5.1",
104
+ "@arcgis/instant-apps-components": ">=5.0.0-next.1 <5.1",
105
+ "@arcgis/map-components": ">=5.0.0-next.1 <5.1",
106
+ "@esri/calcite-components": "^4.0.0-next.46",
107
107
  "templates-common-library": ">=0.0.704"
108
108
  },
109
109
  "repository": {
@@ -148,9 +148,9 @@
148
148
  "./main.css": "./dist/cdn/main.css"
149
149
  },
150
150
  "resolutions": {
151
- "@esri/calcite-components/@arcgis/lumina": ">=4.34.0-next.145 <4.35",
152
- "@esri/calcite-components/@arcgis/components-controllers": ">=4.34.0-next.145 <4.35",
153
- "@esri/calcite-components/@arcgis/components-utils": ">=4.34.0-next.145 <4.35"
151
+ "@esri/calcite-components/@arcgis/lumina": ">=5.0.0-next.1 <5.1",
152
+ "@esri/calcite-components/@arcgis/components-controllers": ">=5.0.0-next.1 <5.1",
153
+ "@esri/calcite-components/@arcgis/components-utils": ">=5.0.0-next.1 <5.1"
154
154
  },
155
155
  "packageManager": "yarn@4.5.1"
156
156
  }
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- async function q(t,e){let r=[],n=t?t.map(o=>b(o,e)):[Promise.resolve()];return(await Promise.all(n)).forEach(o=>{r=[...r,...o||[]]}),r}async function m(t,e,r,n,o,a){let s=e.capabilities?.query.maxRecordCount||1e3,y=0;t.length===0&&(t=await e.queryObjectIds());let c=e.createQuery();if(c.returnGeometry=n,c.objectIds=t.slice(y,s),o&&(c.outSpatialReference=o),a){let d=e.fields.map(i=>i.name.toLowerCase());c.outFields=a.filter(i=>d.indexOf(i.toLowerCase())>-1)}let f=await e.queryFeatures(c);r=r.concat(f.features);let l=t.slice(s,t.length);return l.length>0?m(l,e,r,n,o,a):Promise.resolve(r)}async function g(t,e){let r=e.globalIdField;if(!r)return[];let n=e.createQuery();return n.returnGeometry=!1,n.outFields=[e.objectIdField],n.where=t.map(o=>`${r} = '${o}'`).join(" or "),(await e.queryFeatures(n)).features}async function p(t,e,r,n){let o=e.capabilities?.query.maxRecordCount||1e3,a=e.createQuery();a.start=t,a.num=o,a.geometry=r;let s=await e.queryFeatures(a);return n[e.id]=n[e.id].concat(s.features),s.exceededTransferLimit?p(t+=o,e,r,n):Promise.resolve(n)}async function w(t,e){let r=e.createQuery();return r.objectIds=t,e.queryExtent(r)}function F(t,e){return[...u(t,"polygon",e),...u(t,"polyline",e),...u(t,"point",e)]}function u(t,e,r){let n=t?.filter(o=>o.type===e)||[];return n.length<=1?n:[r.union(n)]}async function b(t,e){let r=e.createQuery();return r.spatialRelationship="intersects",r.geometry=t,e.queryObjectIds(r)}export{q as a,m as b,g as c,p as d,w as e,F as f};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a as C}from"./RUDYNTVM.js";import"./T6HJKM4L.js";import{d as x}from"./NN3W4IUH.js";import{a as s}from"./43LM47JM.js";import"./24XF7RBG.js";import{a as I}from"./3GSLYS7Y.js";import"./PGBTYK6X.js";import"./TXUBQSCF.js";import{b as L}from"./VRHRENNK.js";import{C as h,D as r,E as $,G as d,H as v,h as f,i as l,l as w,o as m,r as y}from"./QDR4D66T.js";import"./C3XGENO2.js";var k=f`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-1{z-index:1}.z-index-2{z-index:2!important}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-top{border-top:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-50{position:absolute;inset:50px 0 0}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;margin:100px 0;z-index:1}.left-0{left:0}.right-0{right:0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}}`,_=class extends ${constructor(){super(),this.coverPageEnabled=!1,this.customInfoText="",this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor="",this.popupHeaderHoverColor="",this.popupHeaderHoverTextColor="",this.popupHeaderTextColor="",this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.enableSelectionTool=!0,this.featureSelectionMode="multiple",this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=I({name:"crowdsource-manager",blocking:!0}),this._layoutMode=s.GRID,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerExpressions=[],this._layerIds=[],this._isLoading=!0,this._mapExtentFilterChecked=!1,this._deleteIds=[],this._showInvalidMapAlert=!1,this._defaultAppLayoutHonored=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._layerTable=h(),this._shouldSetMapView=!1,this._filterList=h(),this._mapCard=h(),this._isMapViewOnLoad=!1,this.showIntroductionWindow=m(),this.showCoverPage=m(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"popupClosed",this.popupClosed),this.listenOn(window,"layoutChanged",this.layoutChanged),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"showDelete",this.showDelete),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"idsFound",this.idsFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"creatingFeature",this.creatingFeature),C(window)}static{this.properties={appLayout:1,appProxies:1,basemapConfig:0,coverPageEnabled:5,customInfoText:1,defaultAppLayout:1,defaultCenter:1,defaultGlobalId:1,defaultLayer:1,defaultLevel:1,defaultOid:1,defaultWebmap:1,honorMapFieldSettings:5,introductionWindowEnabled:5,enableAutoRefresh:5,enableBasemap:5,enableColumnReorder:5,enableCSV:5,enableFloorFilter:5,enableFullscreen:5,enableHome:5,enableLegend:5,enableSearch:5,enableShare:5,enableSnapping:5,enableZoom:5,mapInfos:0,onlyShowUpdatableLayers:5,popupHeaderColor:1,popupHeaderHoverColor:1,popupHeaderHoverTextColor:1,popupHeaderTextColor:1,searchConfiguration:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,theme:1,zoomAndScrollToSelected:5,zoomToScale:9,enableSelectionTool:5,featureSelectionMode:1,_deleteDialogOpen:16,_enableCreateFeatures:16,_hideFooter:16,_hideTable:16,_isMobile:16,_translations:16,_layer:16,_layoutMode:16,_mapInfo:16,_mapView:16,_panelOpen:16,_numSelected:16,_filterOpen:16,_showInformationHeader:16,_layerExpressions:16,_layerIds:16,_isLoading:16,_mapExtentFilterChecked:16,_deleteIds:16,_showInvalidMapAlert:16}}static{this.styles=k}static{this.shadowRootOptions=y}willUpdate(e){e.has("appLayout")&&this.appLayout&&this.appLayoutWatchHandler(this.appLayout,e.get("appLayout")),e.has("enableZoom")&&(this.hasUpdated||this.enableZoom!==!0)&&this.enableZoomWatchHandler()}appLayoutWatchHandler(e,t){e!==t&&(this._layerTable.value?.validateTableUpdate(e==="splitView"),this._setActiveLayout(e),this.appLayout==="mapView"&&this._layer?.isTable&&this._mapCard.value&&this._mapCard.value.updateLayer(),this._isMapViewOnLoad&&this._layerTable.value&&this._layerTable.value.refresh())}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(e){this._numSelected=e.detail?.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(e){this._layoutMode=e.detail}async mapChanged(e){this._isMapViewOnLoad&&(this._showMapInFullView(),this._isMapViewOnLoad=!1),this._mapChange=e.detail,this.showHideMapPopupAndTable(!1),this._mapChange?.isValid?await this._mapChange.mapView?.when(async()=>{await this._setMapView()}):(this._mapInfo=this._mapChange&&this._getMapInfo(this._mapChange.id),this._showInvalidMapAlert=!0)}async layerSelectionChange(e){let t=e.detail[0],i=this._mapView&&await x(this._mapView,t);i&&await i.when(()=>{i.isTable&&!this._isMobile&&(this.appLayout="tableView"),this._layer=i,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1})}async showDelete(e){this._deleteIds=e.detail.ids,this._deleteDialogOpen=!0}async noLayersFound(){this._layer=void 0,this._isLoading=!1}async idsFound(e){this._layerIds=e.detail.layerIds}async clearSelection(){this.showHideMapPopupAndTable(!1)}async relatedRecordToggled(e){let t=e.detail;this._relatedTableLayer=t}async creatingFeature(){this.appLayout="splitView"}load(){this._resizeObserver=new ResizeObserver(()=>this._onResize())}render(){let e=this.popupHeaderColor&&this.popupHeaderColor!=="#FFFFFF"?"border-width-0":"",t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",i=this._translations.invalidWebMapMsg?.replace("{{web_map}}",this._mapInfo?.name||"");return l`${this._showInvalidMapAlert&&l`<calcite-alert auto-close class=${d(t)} icon=check-circle kind=danger label @calciteAlertClose=${()=>{this._showInvalidMapAlert=!1}} open placement=top><div slot=message>${i}</div></calcite-alert>`||""}<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode,this._panelOpen,this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile&&this._deleteModal()||""}`}async updated(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}loaded(){this._resizeObserver?.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad=this.appLayout==="mapView",this._setActiveLayout(this.appLayout)}_getFooter(){let e=this._numSelected>0,t=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer,i=this._layer?.editingEnabled&&this._layer.capabilities?.operations.supportsDelete;return this._isMobile&&e&&!this._hideFooter?l`<div class=${"width-100"} slot=footer><div class="display-flex padding-1-2"><calcite-button appearance=solid id=solutions-show @click=${()=>this.showHideMapPopupAndTable(!0)} width=full>${this._translations.view.replace("{{n}}",this._numSelected.toString())}</calcite-button>${i?l`<delete-button class="padding-inline-start-1 width-full" id=solutions-delete .ids=${this.updateIdsToBeDeleted()} @deleteClicked=${this.updateIdsToBeDeleted} .layer=${t}></delete-button>`:void 0}</div></div>`:void 0}updateIdsToBeDeleted(){return this._deleteIds=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._layerTable.value.selectedRelatedIds:this._layerTable.value?.selectedIds,this._deleteIds}_setActiveLayout(e){e==="splitView"&&!this._panelOpen&&this._toggleLayout(),e==="mapView"?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(e,t){let i="";switch(e){case s.HORIZONTAL:i=t?"chevrons-up":"chevrons-down";break;case s.VERTICAL:i=t?"chevrons-left":"chevrons-right";break;case s.GRID:i=t?"chevrons-left":"chevrons-right";break}return i}_getMapSizeClass(e,t,i){let a="";switch(e){case s.HORIZONTAL:a=`${t&&!i?"height-1-2 display-grid":t&&i?"height-full":"height-0"} width-full position-relative`;break;case s.GRID:a=`height-full position-relative ${t?"width-1-3":"width-0"}`;break;case s.VERTICAL:a=`height-full position-relative ${t?"width-1-2":"width-0"}`;break}return a}_getTableSizeClass(e,t){let i="";switch(e){case s.HORIZONTAL:i=`${t?"height-1-2":"height-full"} width-full display-flex flex-column`;break;case s.GRID:i=`${t?"width-2-3":"width-full"} height-full display-flex`;break;case s.VERTICAL:i=`${t?"width-1-2":"width-full"} height-full display-flex`;break}return i}_getBody(e,t,i){let a=e===s.HORIZONTAL?"":"display-flex",o=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",n=document.dir==="rtl"?"left-0":"right-0";return l`<calcite-panel class="width-full height-full position-absolute"><div class=${`width-full height-full overflow-hidden ${a}`}>${this._getMapAndCard(e,t,i)}${this._getTable(e,t,i)}</div>${this.coverPageEnabled&&l`<div class=${`floating-container ${n}`} @click=${this.coverPageButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=content-minimal kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}${this.introductionWindowEnabled&&l`<div class=${`floating-container ${n}`} @click=${this.infoButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=information-letter kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}</calcite-panel>`}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(e,t,i){let a=this._getMapSizeClass(e,t,i);return l`<div class=${`${a} overflow-hidden z-index-2`}>${this._getMapNode(t)}${this._getPopupExpandNode()}</div>`}_getMapNode(e){let t=this.appLayout==="mapView",i=this.appLayout==="tableView",a=this._isMobile?"height-full":t||i?"position-absolute-0":this._layoutMode===s.HORIZONTAL&&(!this._isMobile||e)?"":"adjusted-height-50",o=this.defaultWebmap&&this.defaultLayer,n=this.enableSelectionTool&&this.featureSelectionMode==="multiple"&&!this._layer?.isTable,p=["home","legend","search","fullscreen","basemap","floorfilter","selectiontool"],c=["map-picker","map-layer-picker"];return l`<div class=${`${a} overflow-hidden`} id=card-mapView><map-card .appLayout=${this.appLayout} .appProxies=${this.appProxies} .basemapConfig=${this.basemapConfig} class="width-full" .defaultLayerId=${o?this.defaultLayer:""} .defaultWebmapId=${this.defaultWebmap} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSelectionTool=${n} .enableShare=${this.enableShare} enable-single-expand enable-map-layer-picker enable-map-picker .featureSelectionMode=${this.featureSelectionMode} .hide=${!this._isMobile&&i} zoom-tools-size=s .isMapLayout=${t} .isMobile=${this._isMobile} .mapInfo=${this._mapInfo} .mapInfos=${this.mapInfos?.filter(u=>u.visible!==!1)} map-widgets-index=0 map-widgets-position=top-leading mobile-map-widgets-position=top-right map-widgets-size=m .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .selectedFeaturesIds=${this._layerTable.value?.selectedIds??[]} .selectedLayer=${this._layer} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} stack-tools .theme=${this.theme} .mapToolsOrder=${p} .mobileToolsOrder=${c} .zoomToScale=${this.zoomToScale} ${r(this._mapCard)}></map-card></div>`}_getPopupExpandNode(){let e=this._isMobile?"height-full":"height-full position-relative",t=this._isMobile&&this._showInformationHeader?"display-none height-0":"",i=this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark",a=this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":"",o=this.mapInfos?.length>1&&this.appLayout==="tableView"?"position-relative top-51":"",n=this.appLayout!=="tableView"?"position-sticky":"";return l`<div class=${`${i} ${e} ${a} ${o} ${n}`} style=${v({"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor})}><calcite-panel>${!this._isMobile&&this._showInformationHeader||this._numSelected>0&&!this._isMobile?l`<div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-icon icon=information scale=s></calcite-icon><div class="padding-inline-start-75">${this._translations.information}</div></div>`:l`<div></div>`}${this._getCardNode()}</calcite-panel></div>`}_getCardNode(){let e=this.appLayout==="mapView",t=this.appLayout==="tableView",i=this._isMobile?"height-full":t&&this.mapInfos?.length>1?"adjusted-height-100-51":e||t?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isMobile?"height-full":"height-50":"adjusted-height-50_25",a=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",o=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer;return l`<div class=${`width-50 height-full ${a}`}><card-manager class=${`${i} width-full`} .customInfoText=${this.customInfoText} .enableCreateFeatures=${this._enableCreateFeatures&&!this._isMobile} .enableEditGeometry=${this?._mapInfo?.enableEditGeometry} .enableSnapping=${this.enableSnapping} .isMobile=${this._isMobile} .layerOrTable=${o} .mapView=${this?._mapView} @backFromCreateWorkFlow=${()=>{this._showInformationHeader=!0}} @createWorkFlowStarted=${()=>{this.appLayout=o?.isTable?"tableView":"mapView",this._showInformationHeader=!1}} @featureOrRecordSubmitted=${()=>this._layerTable.value&&void this._layerTable.value.refresh()} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout==="mapView"} .showSketchWidgets=${o?.geometryType!=="point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`}_getTable(e,t,i){let a=this.appLayout==="mapView",o=this.appLayout==="tableView",n=i&&this._isMobile?"visibility-hidden":a?"display-none":"",p=a?"height-full width-full z-index-0":"display-none",c=this._getTableSizeClass(e,t),u=e===s.HORIZONTAL?"horizontal":"vertical",T=e===s.HORIZONTAL?"header":"panel-start",b=this.defaultWebmap&&this.defaultLayer,M=this._isMobile?"border-top":"",g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,S=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map(F=>Number.parseInt(F,10)):[Number.parseInt(this.defaultOid,10)]:void 0;return l`<calcite-shell class=${`${c} ${M} border-bottom z-index-1`}>${this._isMobile?void 0:l`<calcite-action-bar class="border-sides" expand-disabled .layout=${u} slot=${T??w}>${this.getActions(e,t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${n}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${b?g:void 0} .defaultLayerId=${b?this.defaultLayer:""} .defaultOid=${b&&!g?S:void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${o} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} ${r(this._layerTable)}></layer-table></div><div class=${d(p)} id=full-map-view></div></calcite-shell>`}getActions(e,t){let i=this._getDividerIcon(e,t),a=t?this._translations.close:this._translations.open,o="toggle-layout";return l`<calcite-action .active=${this.appLayout==="splitView"} class="toggle-node" icon=browser id=browser-action @click=${()=>{this.appLayout="splitView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-action><span>${this._translations.splitView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="tableView"} class="toggle-node" icon=dock-left id=dock-left-action @click=${()=>{this.appLayout="tableView"}} text></calcite-action><calcite-tooltip placement=right reference-element=dock-left-action><span>${this._translations.tableView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="mapView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser-map id=browser-map-action @click=${()=>{this.appLayout="mapView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-map-action><span>${this._translations.mapView}</span></calcite-tooltip><calcite-action class="toggle-node" .icon=${i} id=${o} @click=${()=>this._toggleLayout()} slot=actions-end text></calcite-action><calcite-tooltip placement=bottom .referenceElement=${o}><span>${a}</span></calcite-tooltip>`}_deleteModal(){let e=(this._layerTable.value?.selectedRelatedIds?.length??0)>0?this._relatedTableLayer:this._layer;return l`<delete-dialog id=deleteDialogId .ids=${this._deleteIds} .layer=${e} @deleteDialogClose=${()=>this._deleteDialogOpen=!1} .open=${this._deleteDialogOpen}></delete-dialog>`}_mapExtentFilter(){let e=this._layerExpressions?.length===0;return l`<calcite-panel><div><calcite-block class=${d(this.theme==="dark"?"background-dark":"")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${t=>{let i=!!(t.target.checked||this._filterList.value?.filterCount&&this._filterList.value?.filterCount>0);this._layerTable.value&&this._layerTable.value?.filterUpdate(i,t.target.checked),this._mapCard.value&&this._mapCard.value?.updateFilterState(i),this._mapExtentFilterChecked=t.target.checked}} scale=m></calcite-switch></div></calcite-block>${e&&l`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>`||""}</div></calcite-panel>`}_filterModal(){let e=this._layerExpressions?.length>0,t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-dialog class=${`filter-content-space ${t}`} .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog-manager kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width=s>${!this._layer?.isTable&&this._mapExtentFilter()||""}${e&&this._mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${this._handleFilterListReset} @filterUpdate=${()=>void this._updateFilter()} .view=${this._mapView} ${r(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}_updateFilter(){let e=this._filterList?.value?.filterCount&&this._filterList.value.filterCount>0||this._mapExtentFilterChecked;this._layerTable.value&&this._layerTable.value?.filterUpdate(e),this._mapCard.value&&this._mapCard.value.updateFilterState(e)}_initLayerExpressions(){let e=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[]}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.value&&this._mapCard.value.resetFilter(),this._layerTable.value&&this._layerTable.value.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.value&&this._layerTable.value.closeFilter())}_onResize(){let e=this.el.offsetWidth<=1024,t=!this._isMobile&&e;this._isMobile=e,t&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this.appLayout="splitView"):(this._layer?.isTable&&(this.appLayout="tableView"),this._isMobile=!1),this._layoutMode=this._isMobile?s.HORIZONTAL:s.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if(this.appLayout!=="mapView"){let e=document.getElementById("full-map-view")?.childNodes[0],t=document.getElementById("card-mapView");e&&t&&t.appendChild(e)}}_showMapInFullView(){let e=document.getElementById("card-mapView")?.childNodes,t;e?.forEach(a=>{!t&&a.mapView&&(t=a)});let i=document.getElementById("full-map-view");t&&i&&i.appendChild(t)}showHideMapPopupAndTable(e){this._hideTable=e,this._hideFooter=e}_getMapInfo(e){let t;return this.mapInfos.some(i=>i.id===e?(t={...i},!0):!1),t}async _setMapView(){let e=this._mapChange&&this._getMapInfo(this._mapChange.id);if(e&&this._mapChange){this._mapInfo=e,this._initLayerExpressions(),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView&&(this._mapView.popupEnabled=!1);let t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map(a=>Number.parseFloat(a)),i=!this.defaultLevel||this._defaultLevelHonored?void 0:Number.parseInt(this.defaultLevel,10);t&&i&&(await this._mapView?.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView?.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView?.ui.remove("zoom")}};L("crowdsource-manager",_);export{_ as CrowdsourceManager};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a,b}from"./DQXONY5W.js";import"./KPLOUVW3.js";import"./DOCNMY5H.js";import"./ZADEJN6X.js";import"./VRUHMDUB.js";import"./G2UQK6LA.js";import"./C3XGENO2.js";export{a as ProjectEditorTypes,b as ProjectSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a,b}from"./ZMKFBKJ5.js";import"./FO5FDVKS.js";import"./C3XGENO2.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a as D}from"./MR24E2PT.js";import{a as P}from"./IFMVHH6O.js";import{a as C,d as I}from"./MXDK4LDP.js";import"./3LUEIDPJ.js";import"./PWGDJNXG.js";import"./JUHZNCUH.js";import"./WUXNFVJD.js";import"./5CSKRDZM.js";import"./UYB52TDK.js";import"./ANG6KH3Q.js";import"./EFOK377W.js";import"./66KL4C26.js";import"./LPVP3TCA.js";import"./OTF6WC55.js";import"./PJRC7SHJ.js";import"./YLRL7Y5N.js";import"./TDSDZEH7.js";import"./SF42TDNB.js";import"./SYQ77RWF.js";import"./DEZPDY4A.js";import"./TWPRIW6W.js";import"./TKYTD63P.js";import"./FO5FDVKS.js";import"./QAFNPAAD.js";import"./ALRXJEMN.js";import{g as E,j as T}from"./NN3W4IUH.js";import{c as l,e as r,f as c}from"./43LM47JM.js";import"./24XF7RBG.js";import{b as L}from"./JPNPSA7E.js";import{a as x}from"./3GSLYS7Y.js";import"./PGBTYK6X.js";import"./TXUBQSCF.js";import{b as $,c as k}from"./VRHRENNK.js";import{C as p,D as g,E as v,G as h,h as f,i as n,l as d,o as y,p as S,r as w}from"./QDR4D66T.js";import"./C3XGENO2.js";var V=f`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00a0ff}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.float-right{float:right}.float-right[dir=rtl],.float-left{float:left}.float-left[dir=rtl]{float:right}.margin-top-0{margin-block-start:0!important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=rtl]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3: var(--calcite-color-brand);--calcite-color-foreground-2: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,u=class extends S{constructor(){super(),this.managedLayers={},this.managedTables=[],this.highlightHandles=[]}removeHandles(){this.highlightHandles.forEach(e=>{e?.remove()}),this.highlightHandles=[]}},b=class extends v{constructor(){super(),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.defaultBufferDistance=0,this.defaultBufferUnit="feet",this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureHighlightEnabled=!1,this.noResultText="",this.initialNotice="",this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=c.PDF,this._fetchingData=!1,this._isMobile=!1,this._numDuplicates=0,this._pageType=l.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=x({name:"public-notification",blocking:!0}),this._downloadTools=p(),this._onboardingImageUrl="",this._popupsEnabled=!1,this._removeDuplicates=p(),this._selectTools=p(),this._titleElement=p(),this._titleValue=void 0,this._numSelected=0,this._pnStateContextProvider=P({context:D}),this.searchConfigurationChange=y(),this.listenOn(window,"selectionSetsChanged",this.selectionSetsChanged),this._pnState=new u,this._pnStateContextProvider.setValue(this._pnState)}static{this.properties={addresseeLayerIds:0,bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,defaultBufferDistance:9,defaultBufferUnit:1,defaultExportTitle:1,defaultNumLabelsPerPage:9,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,featureEffect:0,featureHighlightEnabled:5,mapView:0,noResultText:1,initialNotice:1,searchConfiguration:0,selectionLayerIds:0,showRefineSelection:5,showSearchSettings:5,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_exportGraphics:16,_addMap:16,_addResults:16,_addTitle:16,_downloadActive:16,_exportType:16,_fetchingData:16,_isMobile:16,_numDuplicates:16,_pageType:16,_saveEnabled:16,_selectionSets:16,_translations:16}}static{this.styles=V}static{this.shadowRootOptions=w}willUpdate(e){e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration")),e.has("sketchLineSymbol")&&this.sketchLineSymbolWatchHandler(this.sketchLineSymbol,e.get("sketchLineSymbol")),e.has("sketchPointSymbol")&&this.sketchPointSymbolWatchHandler(this.sketchPointSymbol,e.get("sketchPointSymbol")),e.has("sketchPolygonSymbol")&&this.sketchPolygonSymbolWatchHandler(this.sketchPolygonSymbol,e.get("sketchPolygonSymbol")),e.has("_pageType")&&(this.hasUpdated||this._pageType!==l.LIST)&&this.pageTypeWatchHandler(this._pageType,e.get("_pageType"))}async mapViewWatchHandler(e){e?.popup&&(this._popupsEnabled=e?.popupEnabled),this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(e,t){let i=JSON.stringify(e);this.mapView&&(i!==JSON.stringify(t)||i&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(i),this._searchConfiguration&&this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setLineSymbol(e)}async sketchPointSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPointSymbol(e)}async sketchPolygonSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPolygonSymbol(e)}async pageTypeWatchHandler(e,t){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=e!==l.LIST?!1:this._popupsEnabled),e===l.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),(t===l.SELECT||t===l.REFINE)&&await this._clearSelection(),t===l.EXPORT&&this._removeExportGraphics(),e!==l.SELECT)return this._highlightFeatures()}selectionSetsChanged(e){this._selectionSets=[...e.detail]}connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 600px)"),this.listenOn(this._mediaQuery,"change",e=>this._setIsMobile(e))}async load(){await this._initModules(),this._initSymbols(),this._onboardingImageUrl=k("assets/public-notification/images/onboarding.png")}render(){let e=this._isMobile?"footer":"header";return n`<calcite-shell><calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e??d}>${this._getActionGroup("list-check",l.LIST,this._translations.myLists)}${this.showRefineSelection?this._getActionGroup("test-data",l.REFINE,this._translations.refineSelection):null}${this._getActionGroup("export",l.EXPORT,this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}</calcite-shell>`}loaded(){this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){super.disconnectedCallback()}async _initModules(){let[e,t,i]=await L(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=e,this._jsonUtils=t,this.Graphic=i}_initSearchConfiguration(e){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=e,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(e){let t=e?.type==="simple-line";this.sketchLineSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(e){let t=e?.type==="simple-marker";this.sketchPointSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(e){let t=e?.type==="simple-fill";this.sketchPolygonSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(e){this._isMobile=e.matches}_getActionGroup(e,t,i){let s=this.showRefineSelection?"w-1-3":"w-1-2";return n`<calcite-action-group class=${h(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType===t} alignment=center class="width-full height-full" .icon=${e} id=${e??d} @click=${()=>{this._setPageType(t)}} text></calcite-action></div><calcite-tooltip label placement=bottom .referenceElement=${e}><span>${i}</span></calcite-tooltip></calcite-action-group>`}_setPageType(e){this._pageType=e}_getPage(e){let t;switch(e){case l.LIST:t=this._getListPage();break;case l.SELECT:t=this._getSelectPage();break;case l.EXPORT:t=this._getExportPage();break;case l.REFINE:t=this._getRefinePage();break}return t}_getListPage(){let e=this._hasSelections(),t=e?this._translations.listHasSetsTip:this.initialNotice!==""?this.initialNotice:this._translations.selectLayerAndAdd;return n`<calcite-panel>${this._getLabel(this._translations.myLists)}${this._getNotice(t||"","padding-sides-1 padding-bottom-1","word-wrap-anywhere")}${e?this._getSelectionSetList():this._getOnboardingImage()}<div class="display-flex padding-1"><calcite-button @click=${()=>{this._setPageType(l.SELECT)}} width=full><span class="font-weight-500">${this._translations.add}</span></calcite-button></div></calcite-panel>`}_getOnboardingImage(){return n`<div class="display-flex padding-sides-1"><img class="img-container" role=presentation src=${this._onboardingImageUrl??d}></div>`}_getSelectionSetList(){return n`<div class="padding-top-1-2 padding-bottom-1-2"><calcite-list class="list-border margin-sides-1" label>${this._selectionSets.reduce((e,t,i)=>{let s=this._getSelectionSetIds(t),a=!0;return t.workflowType===r.REFINE&&(a=Object.keys(t.refineInfos).reduce((o,_)=>{let m=t.refineInfos[_];return o+=m.addIds.length+m.removeIds.length,o},0)>0),a&&e.push(n`<calcite-list-item .label=${t.label} @click=${()=>this.mapView&&this._gotoSelection(t,this.mapView)}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",s.length.toString())}</div></div>${this._getAction(!0,"pencil","",o=>this._openSelection(t,o),!1,"actions-end")}${this._getAction(!0,"x","",o=>this._deleteSelection(i,o),!1,"actions-end")}</calcite-list-item>`),e},[])}</calcite-list></div>`}_getSelectionSetIds(e){return e.workflowType!==r.REFINE?e.selectedIds:Object.keys(e.refineInfos).reduce((t,i)=>[...t,...e.refineInfos[i].addIds],[])}_hasSelections(e=!1){let t=[],i=this._selectionSets.some(s=>s.workflowType===r.REFINE?(t=this._getSelectionSetIds(s),!0):!1);return e&&i?t.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){let e=this._getExportInfos(),t=this.mapView?.map&&await C(this.mapView.map,e),i=t&&I(t);return t&&i?t.length-i.length:0}_getExportInfos(){return this._selectionSets.reduce((e,t)=>{if(t.download)if(t.workflowType!==r.REFINE&&t?.layerView){let i=t.layerView.layer.id;i!==void 0&&this._updateIds(i,t.layerView,t.selectedIds,e)}else Object.keys(t.refineInfos).forEach(i=>{let s=t.refineInfos[i];s.addIds.length>0&&this._updateIds(i,s.layerView,s.addIds,e)});return e},{})}_updateIds(e,t,i,s){return s[e]?s[e].ids=s[e].ids.concat(i):s[e]={layerView:t,ids:i},s}_getSelectPage(){let e=this._translations.selectSearchTip;return n`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull,!0)}${this._getNotice(e,"padding-1","word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="font-bold" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${g(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done,this._numSelected===0,()=>{this._saveSelection()},this._translations.cancel,!1,()=>{this._home()})}</calcite-panel>`}_getExportPage(){let e=this._hasSelections(this.showRefineSelection),t=this._numDuplicates>0?"display-block":"display-none";return n`<calcite-panel><div>${this._getLabel(this._translations.export,!1)}${e?n`<div>${this._getNotice(this._translations.exportTip,"padding-sides-1")}${this._getLabel(this._translations.exportListsLabel)}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${g(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="padding-top-sides-1"><calcite-segmented-control class="w-100" @calciteSegmentedControlChange=${this._exportTypeChange} width=full><calcite-segmented-control-item .checked=${this._exportType===c.PDF} class="w-50 end-border" .value=${c.PDF}><span class="font-weight-500">${this._translations.pdf}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._exportType===c.CSV} class="w-50" .value=${c.CSV}><span class="font-weight-500">${this._translations.csv}</span></calcite-segmented-control-item></calcite-segmented-control></div><div class="padding-bottom-1">${this._getExportOptions()}</div><div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults} .loading=${this._fetchingData} @click=${()=>void this._export()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>`:this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")}</div></calcite-panel>`}_exportTypeChange(e){this._exportType=e.target.value}_getExportOptions(){let e=this._exportType===c.PDF?"display-block":"display-none",t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return n`<div class=${h(e)}>${this._getLabel(this._translations.pdfOptions,!0)}<div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${()=>this._addResults=!this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`padding-top-sides-1 ${a}`}><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div class=${`padding-sides-1 ${a}`}><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(),10)} .disabled=${!this._downloadActive} ${g(this._downloadTools)}></pdf-download></div><div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${()=>this._addTitle=!this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${h(t)}>${this._getLabel(this._translations.title,!0,"")}<calcite-input-text class="padding-sides-1" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${g(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${()=>this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${()=>this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(e){let t,i=this._pnStateContextProvider.value;return Object.keys(i.managedLayers).some(s=>{let a=this.mapView?.map.layers.findIndex(o=>o.title===s);return i.managedLayers[s]===e&&a!==void 0?(t=this.mapView?.map.layers.getItemAt(a),!0):!1}),t}_updateExportGraphics(e=!1){(e||!this._exportGraphics||!this._addMap)&&this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");e&&e.graphics.removeAll(),t&&t.graphics.removeAll()}_addExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");this._selectionSets.forEach(i=>{if(i.download&&(e&&i.sketchGraphic&&e.graphics.add(i.sketchGraphic),t)){let s={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=this.Graphic&&new this.Graphic({geometry:i.buffer,symbol:s});a&&t.graphics.add(a)}})}_getRefinePage(){let e=this._hasSelections();return n`<calcite-panel>${this._getLabel(this._translations.refineSelection)}${e?n`<div>${this._getNotice(this._translations.refineTip,"padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad}></refine-selection></div>`:this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1")}</calcite-panel>`}_getPageNavButtons(e,t,i,s,a,o){return n`<div class="padding-bottom-1"><div class="display-flex padding-top-sides-1"><calcite-button .disabled=${t} @click=${i} width=full><span class="font-weight-500">${e}</span></calcite-button></div><div class="display-flex padding-top-1-2 padding-sides-1"><calcite-button appearance=outline .disabled=${a} @click=${o} width=full><span class="font-weight-500">${s}</span></calcite-button></div></div>`}_changeTitle(){this._titleElement.value?.value&&(this._titleValue=this._titleElement.value.value||"")}_getNotice(e,t="padding-1",i=""){return n`<calcite-notice class=${h(t)} icon=lightbulb kind=success open><div class=${h(i)} slot=message>${e}</div></calcite-notice>`}_getLabel(e,t=!1,i="font-bold"){return i+=t?" label-margin-0":"",n`<div class=padding-top-sides-1><calcite-label class=${h(i)}>${e}</calcite-label></div>`}_getExportSelectionLists(){return this._selectionSets.reduce((e,t)=>{let i=this._getSelectionSetIds(t),s=t.workflowType!==r.REFINE||i.length>0;return!this._downloadActive&&t.download&&s&&(this._downloadActive=!0),s&&e.push(n`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-checkbox .checked=${t.download} class="align-center" @calciteCheckboxChange=${()=>{this._toggleDownload(t.id)}}></calcite-checkbox><calcite-list class="list-border margin-start-1-2 width-full" id=download-list label><calcite-list-item .disabled=${!t.download} .label=${t.label} @click=${()=>{this._toggleDownload(t.id)}}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",i.length.toString())}</div></div></calcite-list-item></calcite-list></div>`),e},[])||n`<div></div>`}async _toggleDownload(e){let t=!1;this._selectionSets=this._selectionSets.map(i=>(i.download=i.id===e?!i.download:i.download,t=i.download?!0:t,i)),this._updateExportGraphics(!0),this._downloadActive=t,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){let e=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===c.PDF){let t="";this._addMap&&this.mapView&&(t=(await this.mapView.takeScreenshot({width:1500,height:2e3}))?.dataUrl),this._fetchingData=!0,this._downloadTools.value&&this._removeDuplicates.value&&this.mapView?.map&&await this._downloadTools.value.downloadPDF(this.mapView.map,e,this._removeDuplicates.value.checked,this._addTitle&&this._titleElement.value?this._titleElement.value.value:"",t),this._fetchingData=!1}this._exportType===c.CSV&&(this._fetchingData=!0,this._downloadTools.value&&this.mapView?.map&&await this._downloadTools.value.downloadCSV(this.mapView.map,e,this._removeDuplicates.value?.checked||!1),this._fetchingData=!1)}_getSelectionIdsAndViews(e,t=!1){return(t?e.filter(i=>i.download):e).reduce((i,s)=>{if(s.workflowType===r.REFINE)Object.keys(s.refineInfos).forEach(a=>{let o=s.refineInfos[a];if(o.addIds){let _=o.layerView.layer.id;i=this._updateExportInfos(i,_,s.label,o.addIds,o.layerView)}});else{let a=s?.layerView?.layer.id;a!==void 0&&s.layerView&&(i=this._updateExportInfos(i,a,s.label,s.selectedIds,s.layerView))}return i},{})}_updateExportInfos(e,t,i,s,a){return t&&Object.keys(e).indexOf(t)>-1?(e[t].ids=[...new Set([...e[t].ids,...s])],e[t].selectionSetNames.push(i)):t&&(e[t]={ids:s,layerView:a,selectionSetNames:[i]}),e}_getAction(e,t,i,s,a=!1,o=""){return n`<calcite-action .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o??d} .text=${i}></calcite-action>`}_updateForSelection(e){this._numSelected=e.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(l.LIST)}async _saveSelection(){let e=await this._selectTools.value?.getSelection();if(e){let t=this._selectTools.value?.isUpdate;this._selectionSets=t?this._selectionSets.map(i=>i.id===e.id?e:i):[...this._selectionSets,e]}return this._home()}async _clearSelection(){await this._selectTools.value?.clearSelection(),this._numSelected=0,this._activeSelection=void 0}async _deleteSelection(e,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter((i,s)=>s!==e?i:!1),this._highlightFeatures()}_gotoSelection(e,t){e.selectedIds&&e.layerView&&T(e.selectedIds,e.layerView,t,this.featureHighlightEnabled,this.featureEffect)}_openSelection(e,t){t.stopPropagation(),this._activeSelection=e,this._pageType=e.workflowType===r.REFINE?l.REFINE:l.SELECT}async _highlightFeatures(){let e=this._pnStateContextProvider.value;this._clearHighlight();let t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===l.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){let a=t[i[s]];if(a.layerView&&this.mapView){let o=await E(a.ids,a.layerView,this.mapView);e.highlightHandles.push(o)}}}_checkPopups(){typeof this._popupsEnabled!="boolean"&&(this._popupsEnabled=!!this.mapView?.popupEnabled)}_clearHighlight(){let e=this._pnStateContextProvider.value;e&&e.highlightHandles&&e.removeHandles()}};$("public-notification",b);export{u as PNStateController,b as PublicNotification};
@@ -1,63 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a as fe}from"./3GSLYS7Y.js";import"./PGBTYK6X.js";import"./TXUBQSCF.js";import{b as ge}from"./VRHRENNK.js";import{D as O,E as pe,G as de,I as q,h as ae,i as k,k as le,l as Z,o as oe,t as ce,u as he,v as ue}from"./QDR4D66T.js";import"./C3XGENO2.js";var R=class extends ue{constructor(e){if(super(e),this.it=Z,e.type!==ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Z||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let s=[e];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};R.directiveName="unsafeHTML",R.resultType=1;var ke=he(R);var Ee=ae`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p:first-child{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.height-32-flex-auto{height:32px;flex:0 0 auto}`;var Pe="https://www.arcgis.com/sharing/rest/content/items/";async function Me(n){return await Be(n)}async function Be(n){let e=Pe+n+"?f=json";try{let s=await fetch(e,{method:"GET"});if(!s.ok)throw new Error(`HTTP error! Status: ${s.status}`);return await s.json()}catch(s){return{error:s.message}}}function G(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=G();function ye(n){S=n}var z={exec:()=>null};function u(n,e=""){let s=typeof n=="string"?n:n.source,i={replace:(t,a)=>{let r=typeof a=="string"?a:a.source;return r=r.replace(x.caret,"$1"),s=s.replace(t,r),i},getRegex:()=>new RegExp(s,e)};return i}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Qe=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ze=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,W=/(?:[*+-]|\d{1,9}[.)])/,$e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Se=u($e).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Oe=u($e).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),X=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,J=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Fe=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",J).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),He=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,W).getRegex(),B="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",K).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=u(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Ge=u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),V={blockquote:Ge,code:De,def:Fe,fences:Ne,heading:Ze,hr:C,html:Ue,lheading:Se,list:He,newline:Qe,paragraph:_e,table:z,text:je},me=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),We={...V,lheading:Oe,table:me,paragraph:u(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex()},Xe={...V,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",K).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(X).replace("hr",C).replace("heading",` *#{1,6} *[^
5
- ]`).replace("lheading",Se).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Je=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Re=/^( {2,}|\\)\n(?!\s*$)/,Ve=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Q=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,Te=/[^\s\p{P}\p{S}]/u,Ye=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),Ie=/(?!~)[\p{P}\p{S}]/u,et=/(?!~)[\s\p{P}\p{S}]/u,tt=/(?:[^\s\p{P}\p{S}]|~)/u,st=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ae=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nt=u(Ae,"u").replace(/punct/g,Q).getRegex(),it=u(Ae,"u").replace(/punct/g,Ie).getRegex(),ze="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rt=u(ze,"gu").replace(/notPunctSpace/g,Te).replace(/punctSpace/g,Y).replace(/punct/g,Q).getRegex(),at=u(ze,"gu").replace(/notPunctSpace/g,tt).replace(/punctSpace/g,et).replace(/punct/g,Ie).getRegex(),lt=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Te).replace(/punctSpace/g,Y).replace(/punct/g,Q).getRegex(),ot=u(/\\(punct)/,"gu").replace(/punct/g,Q).getRegex(),ct=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ht=u(K).replace("(?:-->|$)","-->").getRegex(),ut=u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ht).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),E=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,pt=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",E).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ce=u(/^!?\[(label)\]\[(ref)\]/).replace("label",E).replace("ref",J).getRegex(),qe=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",J).getRegex(),dt=u("reflink|nolink(?!\\()","g").replace("reflink",Ce).replace("nolink",qe).getRegex(),ee={_backpedal:z,anyPunctuation:ot,autolink:ct,blockSkip:st,br:Re,code:Ke,del:z,emStrongLDelim:nt,emStrongRDelimAst:rt,emStrongRDelimUnd:lt,escape:Je,link:pt,nolink:qe,punctuation:Ye,reflink:Ce,reflinkSearch:dt,tag:ut,text:Ve,url:z},gt={...ee,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",E).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",E).getRegex()},j={...ee,emStrongRDelimAst:at,emStrongLDelim:it,url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ft={...j,br:u(Re).replace("{2,}","*").getRegex(),text:u(j.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},L={normal:V,gfm:We,pedantic:Xe},T={normal:ee,gfm:j,breaks:ft,pedantic:gt},kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xe=n=>kt[n];function w(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,xe)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,xe);return n}function be(n){try{n=encodeURI(n).replace(x.percentDecode,"%")}catch{return null}return n}function we(n,e){let s=n.replace(x.findPipe,(a,r,l)=>{let o=!1,c=r;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),i=s.split(x.splitPipe),t=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;t<i.length;t++)i[t]=i[t].trim().replace(x.slashPipe,"|");return i}function I(n,e,s){let i=n.length;if(i===0)return"";let t=0;for(;t<i&&n.charAt(i-t-1)===e;)t++;return n.slice(0,i-t)}function mt(n,e){if(n.indexOf(e[1])===-1)return-1;let s=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])s++;else if(n[i]===e[1]&&(s--,s<0))return i;return s>0?-2:-1}function ve(n,e,s,i,t){let a=e.href,r=e.title||null,l=n[1].replace(t.other.outputLinkReplace,"$1");i.state.inLink=!0;let o={type:n[0].charAt(0)==="!"?"image":"link",raw:s,href:a,title:r,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,o}function xt(n,e,s){let i=n.match(s.other.indentCodeCompensation);if(i===null)return e;let t=i[1];return e.split(`
6
- `).map(a=>{let r=a.match(s.other.beginningSpace);if(r===null)return a;let[l]=r;return l.length>=t.length?a.slice(t.length):a}).join(`
7
- `)}var P=class{options;rules;lexer;constructor(n){this.options=n||S}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let s=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?s:I(s,`
8
- `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let s=e[0],i=xt(s,e[3]||"",this.rules);return{type:"code",raw:s,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let s=e[2].trim();if(this.rules.other.endingHash.test(s)){let i=I(s,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(s=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:I(e[0],`
9
- `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let s=I(e[0],`
10
- `).split(`
11
- `),i="",t="",a=[];for(;s.length>0;){let r=!1,l=[],o;for(o=0;o<s.length;o++)if(this.rules.other.blockquoteStart.test(s[o]))l.push(s[o]),r=!0;else if(!r)l.push(s[o]);else break;s=s.slice(o);let c=l.join(`
12
- `),h=c.replace(this.rules.other.blockquoteSetextReplace,`
13
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
14
- ${c}`:c,t=t?`${t}
15
- ${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,a,!0),this.lexer.state.top=g,s.length===0)break;let d=a.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let m=d,f=m.raw+`
16
- `+s.join(`
17
- `),b=this.blockquote(f);a[a.length-1]=b,i=i.substring(0,i.length-m.raw.length)+b.raw,t=t.substring(0,t.length-m.text.length)+b.text;break}else if(d?.type==="list"){let m=d,f=m.raw+`
18
- `+s.join(`
19
- `),b=this.list(f);a[a.length-1]=b,i=i.substring(0,i.length-d.raw.length)+b.raw,t=t.substring(0,t.length-m.raw.length)+b.raw,s=f.substring(a.at(-1).raw.length).split(`
20
- `);continue}}return{type:"blockquote",raw:i,tokens:a,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let s=e[1].trim(),i=s.length>1,t={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let a=this.rules.other.listItemRegex(s),r=!1;for(;n;){let o=!1,c="",h="";if(!(e=a.exec(n))||this.rules.block.hr.test(n))break;c=e[0],n=n.substring(c.length);let g=e[2].split(`
21
- `,1)[0].replace(this.rules.other.listReplaceTabs,D=>" ".repeat(3*D.length)),d=n.split(`
22
- `,1)[0],m=!g.trim(),f=0;if(this.options.pedantic?(f=2,h=g.trimStart()):m?f=e[1].length+1:(f=e[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,h=g.slice(f),f+=e[1].length),m&&this.rules.other.blankLine.test(d)&&(c+=d+`
23
- `,n=n.substring(d.length+1),o=!0),!o){let D=this.rules.other.nextBulletRegex(f),ne=this.rules.other.hrRegex(f),ie=this.rules.other.fencesBeginRegex(f),re=this.rules.other.headingBeginRegex(f),Le=this.rules.other.htmlBeginRegex(f);for(;n;){let N=n.split(`
24
- `,1)[0],_;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),ie.test(d)||re.test(d)||Le.test(d)||D.test(d)||ne.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=f||!d.trim())h+=`
25
- `+_.slice(f);else{if(m||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ie.test(g)||re.test(g)||ne.test(g))break;h+=`
26
- `+d}!m&&!d.trim()&&(m=!0),c+=N+`
27
- `,n=n.substring(N.length+1),g=_.slice(f)}}t.loose||(r?t.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(r=!0));let b=null,se;this.options.gfm&&(b=this.rules.other.listIsTask.exec(h),b&&(se=b[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:c,task:!!b,checked:se,loose:!1,text:h,tokens:[]}),t.raw+=c}let l=t.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o=0;o<t.items.length;o++)if(this.lexer.state.top=!1,t.items[o].tokens=this.lexer.blockTokens(t.items[o].text,[]),!t.loose){let c=t.items[o].tokens.filter(g=>g.type==="space"),h=c.length>0&&c.some(g=>this.rules.other.anyLine.test(g.raw));t.loose=h}if(t.loose)for(let o=0;o<t.items.length;o++)t.items[o].loose=!0;return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let s=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:s,raw:e[0],href:i,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let s=we(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
- `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(s.length===i.length){for(let r of i)this.rules.other.tableAlignRight.test(r)?a.align.push("right"):this.rules.other.tableAlignCenter.test(r)?a.align.push("center"):this.rules.other.tableAlignLeft.test(r)?a.align.push("left"):a.align.push(null);for(let r=0;r<s.length;r++)a.header.push({text:s[r],tokens:this.lexer.inline(s[r]),header:!0,align:a.align[r]});for(let r of t)a.rows.push(we(r,a.header.length).map((l,o)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[o]})));return a}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let s=e[1].charAt(e[1].length-1)===`
29
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:s,tokens:this.lexer.inline(s)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let s=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let a=I(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{let a=mt(e[2],"()");if(a===-2)return;if(a>-1){let r=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let i=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?i=i.slice(1):i=i.slice(1,-1)),ve(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let s;if((s=this.rules.inline.reflink.exec(n))||(s=this.rules.inline.nolink.exec(n))){let i=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[i.toLowerCase()];if(!t){let a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return ve(s,t,s[0],this.lexer,this.rules)}}emStrong(n,e,s=""){let i=this.rules.inline.emStrongLDelim.exec(n);if(!(!i||i[3]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!s||this.rules.inline.punctuation.exec(s))){let t=[...i[0]].length-1,a,r,l=t,o=0,c=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*n.length+t);(i=c.exec(e))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(r=[...a].length,i[3]||i[4]){l+=r;continue}else if((i[5]||i[6])&&t%3&&!((t+r)%3)){o+=r;continue}if(l-=r,l>0)continue;r=Math.min(r,r+l+o);let h=[...i[0]][0].length,g=n.slice(0,t+i.index+h+r);if(Math.min(t,r)%2){let m=g.slice(1,-1);return{type:"em",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}let d=g.slice(2,-2);return{type:"strong",raw:g,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let s=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(s),t=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return i&&t&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:e[0],text:s}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let s,i;return e[2]==="@"?(s=e[1],i="mailto:"+s):(s=e[1],i=s),{type:"link",raw:e[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let s,i;if(e[2]==="@")s=e[0],i="mailto:"+s;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);s=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let s=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:s}}}},v=class F{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new P,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:x,block:L.normal,inline:T.normal};this.options.pedantic?(s.block=L.pedantic,s.inline=T.pedantic):this.options.gfm&&(s.block=L.gfm,this.options.breaks?s.inline=T.breaks:s.inline=T.gfm),this.tokenizer.rules=s}static get rules(){return{block:L,inline:T}}static lex(e,s){return new F(s).lex(e)}static lexInline(e,s){return new F(s).inlineTokens(e)}lex(e){e=e.replace(x.carriageReturn,`
30
- `),this.blockTokens(e,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let i=this.inlineQueue[s];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,s=[],i=!1){for(this.options.pedantic&&(e=e.replace(x.tabCharGlobal," ").replace(x.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(r=>(t=r.call({lexer:this},e,s))?(e=e.substring(t.raw.length),s.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let r=s.at(-1);t.raw.length===1&&r!==void 0?r.raw+=`
31
- `:s.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
32
- `)?"":`
33
- `)+t.raw,r.text+=`
34
- `+t.text,this.inlineQueue.at(-1).src=r.text):s.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
35
- `)?"":`
36
- `)+t.raw,r.text+=`
37
- `+t.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},s.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),s.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let r=1/0,l=e.slice(1),o;this.options.extensions.startBlock.forEach(c=>{o=c.call({lexer:this},l),typeof o=="number"&&o>=0&&(r=Math.min(r,o))}),r<1/0&&r>=0&&(a=e.substring(0,r+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let r=s.at(-1);i&&r?.type==="paragraph"?(r.raw+=(r.raw.endsWith(`
38
- `)?"":`
39
- `)+t.raw,r.text+=`
40
- `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):s.push(t),i=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
41
- `)?"":`
42
- `)+t.raw,r.text+=`
43
- `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):s.push(t);continue}if(e){let r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,s}inline(e,s=[]){return this.inlineQueue.push({src:e,tokens:s}),s}inlineTokens(e,s=[]){let i=e,t=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,t.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(t=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,r="";for(;e;){a||(r=""),a=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},e,s))?(e=e.substring(l.raw.length),s.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let c=s.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):s.push(l);continue}if(l=this.tokenizer.emStrong(e,i,r)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),s.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),s.push(l);continue}let o=e;if(this.options.extensions?.startInline){let c=1/0,h=e.slice(1),g;this.options.extensions.startInline.forEach(d=>{g=d.call({lexer:this},h),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(l=this.tokenizer.inlineText(o)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(r=l.raw.slice(-1)),a=!0;let c=s.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):s.push(l);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return s}},M=class{options;parser;constructor(n){this.options=n||S}space(n){return""}code({text:n,lang:e,escaped:s}){let i=(e||"").match(x.notSpaceStart)?.[0],t=n.replace(x.endingNewline,"")+`
44
- `;return i?'<pre><code class="language-'+w(i)+'">'+(s?t:w(t,!0))+`</code></pre>
45
- `:"<pre><code>"+(s?t:w(t,!0))+`</code></pre>
46
- `}blockquote({tokens:n}){return`<blockquote>
47
- ${this.parser.parse(n)}</blockquote>
48
- `}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
49
- `}hr(n){return`<hr>
50
- `}list(n){let e=n.ordered,s=n.start,i="";for(let r=0;r<n.items.length;r++){let l=n.items[r];i+=this.listitem(l)}let t=e?"ol":"ul",a=e&&s!==1?' start="'+s+'"':"";return"<"+t+a+`>
51
- `+i+"</"+t+`>
52
- `}listitem(n){let e="";if(n.task){let s=this.checkbox({checked:!!n.checked});n.loose?n.tokens[0]?.type==="paragraph"?(n.tokens[0].text=s+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=s+" "+w(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):e+=s+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`<li>${e}</li>
53
- `}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
54
- `}table(n){let e="",s="";for(let t=0;t<n.header.length;t++)s+=this.tablecell(n.header[t]);e+=this.tablerow({text:s});let i="";for(let t=0;t<n.rows.length;t++){let a=n.rows[t];s="";for(let r=0;r<a.length;r++)s+=this.tablecell(a[r]);i+=this.tablerow({text:s})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
55
- <thead>
56
- `+e+`</thead>
57
- `+i+`</table>
58
- `}tablerow({text:n}){return`<tr>
59
- ${n}</tr>
60
- `}tablecell(n){let e=this.parser.parseInline(n.tokens),s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+e+`</${s}>
61
- `}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${w(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:s}){let i=this.parser.parseInline(s),t=be(n);if(t===null)return i;n=t;let a='<a href="'+n+'"';return e&&(a+=' title="'+w(e)+'"'),a+=">"+i+"</a>",a}image({href:n,title:e,text:s,tokens:i}){i&&(s=this.parser.parseInline(i,this.parser.textRenderer));let t=be(n);if(t===null)return w(s);n=t;let a=`<img src="${n}" alt="${s}"`;return e&&(a+=` title="${w(e)}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:w(n.text)}},te=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}},y=class H{options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new te}static parse(e,s){return new H(s).parse(e)}static parseInline(e,s){return new H(s).parseInline(e)}parse(e,s=!0){let i="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let l=a,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=o||"";continue}}let r=a;switch(r.type){case"space":{i+=this.renderer.space(r);continue}case"hr":{i+=this.renderer.hr(r);continue}case"heading":{i+=this.renderer.heading(r);continue}case"code":{i+=this.renderer.code(r);continue}case"table":{i+=this.renderer.table(r);continue}case"blockquote":{i+=this.renderer.blockquote(r);continue}case"list":{i+=this.renderer.list(r);continue}case"html":{i+=this.renderer.html(r);continue}case"def":{i+=this.renderer.def(r);continue}case"paragraph":{i+=this.renderer.paragraph(r);continue}case"text":{let l=r,o=this.renderer.text(l);for(;t+1<e.length&&e[t+1].type==="text";)l=e[++t],o+=`
62
- `+this.renderer.text(l);s?i+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):i+=o;continue}default:{let l='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(e,s=this.renderer){let i="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=l||"";continue}}let r=a;switch(r.type){case"escape":{i+=s.text(r);break}case"html":{i+=s.html(r);break}case"link":{i+=s.link(r);break}case"image":{i+=s.image(r);break}case"strong":{i+=s.strong(r);break}case"em":{i+=s.em(r);break}case"codespan":{i+=s.codespan(r);break}case"br":{i+=s.br(r);break}case"del":{i+=s.del(r);break}case"text":{i+=s.text(r);break}default:{let l='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},A=class{options;block;constructor(n){this.options=n||S}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?v.lex:v.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},bt=class{defaults=G();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=y;Renderer=M;TextRenderer=te;Lexer=v;Tokenizer=P;Hooks=A;constructor(...n){this.use(...n)}walkTokens(n,e){let s=[];for(let i of n)switch(s=s.concat(e.call(this,i)),i.type){case"table":{let t=i;for(let a of t.header)s=s.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let r of a)s=s.concat(this.walkTokens(r.tokens,e));break}case"list":{let t=i;s=s.concat(this.walkTokens(t.items,e));break}default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let r=t[a].flat(1/0);s=s.concat(this.walkTokens(r,e))}):t.tokens&&(s=s.concat(this.walkTokens(t.tokens,e)))}}return s}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(s=>{let i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...r){let l=t.renderer.apply(this,r);return l===!1&&(l=a.apply(this,r)),l}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),i.extensions=e),s.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let a in s.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let r=a,l=s.renderer[r],o=t[r];t[r]=(...c)=>{let h=l.apply(t,c);return h===!1&&(h=o.apply(t,c)),h||""}}i.renderer=t}if(s.tokenizer){let t=this.defaults.tokenizer||new P(this.defaults);for(let a in s.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let r=a,l=s.tokenizer[r],o=t[r];t[r]=(...c)=>{let h=l.apply(t,c);return h===!1&&(h=o.apply(t,c)),h}}i.tokenizer=t}if(s.hooks){let t=this.defaults.hooks||new A;for(let a in s.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let r=a,l=s.hooks[r],o=t[r];A.passThroughHooks.has(a)?t[r]=c=>{if(this.defaults.async&&A.passThroughHooksRespectAsync.has(a))return Promise.resolve(l.call(t,c)).then(g=>o.call(t,g));let h=l.call(t,c);return o.call(t,h)}:t[r]=(...c)=>{let h=l.apply(t,c);return h===!1&&(h=o.apply(t,c)),h}}i.hooks=t}if(s.walkTokens){let t=this.defaults.walkTokens,a=s.walkTokens;i.walkTokens=function(r){let l=[];return l.push(a.call(this,r)),t&&(l=l.concat(t.call(this,r))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return v.lex(n,e??this.defaults)}parser(n,e){return y.parse(n,e??this.defaults)}parseMarkdown(n){return(e,s)=>{let i={...s},t={...this.defaults,...i},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));t.hooks&&(t.hooks.options=t,t.hooks.block=n);let r=t.hooks?t.hooks.provideLexer():n?v.lex:v.lexInline,l=t.hooks?t.hooks.provideParser():n?y.parse:y.parseInline;if(t.async)return Promise.resolve(t.hooks?t.hooks.preprocess(e):e).then(o=>r(o,t)).then(o=>t.hooks?t.hooks.processAllTokens(o):o).then(o=>t.walkTokens?Promise.all(this.walkTokens(o,t.walkTokens)).then(()=>o):o).then(o=>l(o,t)).then(o=>t.hooks?t.hooks.postprocess(o):o).catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let o=r(e,t);t.hooks&&(o=t.hooks.processAllTokens(o)),t.walkTokens&&this.walkTokens(o,t.walkTokens);let c=l(o,t);return t.hooks&&(c=t.hooks.postprocess(c)),c}catch(o){return a(o)}}}onError(n,e){return s=>{if(s.message+=`
63
- Please report this to https://github.com/markedjs/marked.`,n){let i="<p>An error occurred:</p><pre>"+w(s.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(s);throw s}}},$=new bt;function p(n,e){return $.parse(n,e)}p.options=p.setOptions=function(n){return $.setOptions(n),p.defaults=$.defaults,ye(p.defaults),p};p.getDefaults=G;p.defaults=S;p.use=function(...n){return $.use(...n),p.defaults=$.defaults,ye(p.defaults),p};p.walkTokens=function(n,e){return $.walkTokens(n,e)};p.parseInline=$.parseInline;p.Parser=y;p.parser=y.parse;p.Renderer=M;p.TextRenderer=te;p.Lexer=v;p.lexer=v.lex;p.Tokenizer=P;p.Hooks=A;p.parse=p;p.options;p.setOptions;p.use;p.walkTokens;p.parseInline;y.parse;v.lex;var U=class extends pe{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com/",this.solutionAIurl=`${this.serverRoot}skills/solution_deployment/chat`,this.docAIurl=`${this.serverRoot}skills/doc_ai_assistant/chat`,this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._isLoading=!1,this._isLoadingText="",this.messages=[],this._translations=fe({name:"arcgis-solutions-assistant",blocking:!0}),this.closeAssistant=oe(),this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setMessageContainerRef=e=>{this._chatContainer=e},this._setInputRef=e=>{this._inputRef=e,this._inputRef.addEventListener("keydown",s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),this.handleSendMessage())}),setTimeout(()=>{this._inputRef?.focus()},100)},this._submitQuestion=e=>{this._inputRef&&(this._inputRef.value=e,this.handleSendMessage())},this.listenOn(window,"submitQuestion",e=>{this._submitQuestion(e.detail)})}static{this.properties={serverRoot:1,solutionAIurl:1,docAIurl:1,token:1,open:5,conversationStore:16,_isLoading:16,_isLoadingText:16,messages:16,_translations:16}}static{this.styles=Ee}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let s={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(s.conversationId=this.conversationStore.conversationId,this.token){let i={author:"human",conversationId:this.conversationStore.conversationId?this.conversationStore.conversationId:"",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,i];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.loopRequest(t,this.token,this.solutionAIurl)}}else if(this.token){let i={author:"human",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,i];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.conversationStore.conversationId=t.conversationId,this.conversationStore.inquiryId=t.inquiryId,this.conversationStore.ackSequenceNumber=t.sequenceNumber,this.loopRequest(t,this.token,this.solutionAIurl)}}async loopRequest(e,s,i){let t=e;for(this._isLoading=!0;t.hasMore;){let a={conversationId:t.conversationId,ackSequenceNumber:t.sequenceNumber,inquiryId:t.inquiryId};if(t=await this.requestAIServer(a,s,i),t.context)if(this.conversationStore.context=t.context,t.context.intent)switch(t.context.intent){case"Solution question":this.messages.push({author:"ai",conversationId:t.conversationId,intent:"Solution question",message:t.message??""});let r={message:t.message,conversationId:a.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};t=await this.requestAIServer(r,s,this.docAIurl);break;case"Recommend solution":if(t.context.results&&t.context.results?.length>0){let l={author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Recommend solution",render:this._renderSuggestedSolutions(t.message??"",t.context.results,t.conversationId,"Recommend solution")};this.messages.push(l)}break;default:this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Other")});break}else if(t.context.results){for(let r of t.context.results)if(r.reply!==""){this._isLoadingText="";let l=await Promise.resolve(p(r.reply));this.messages.push({message:l,author:"ai",conversationId:t.conversationId,intent:"Solution question",render:this._renderDocAssistantResults(l,r.reply,r.ref,r.followupQuestions,t.conversationId,"Solution question")})}}else{t.context.kind&&t.context.kind.toLowerCase()==="ArcGISErrorAsContext".toLowerCase()?this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Error",render:this._renderSimpleTextMessage(this._translations.genericErrorMessage,"ai",t.conversationId,"Error")}):this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Error")});break}}this._isLoading=!1}async requestAIServer(e,s,i){try{let t=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(e)})).json();if(t)return t;throw new Error("No data returned")}catch(t){throw new Error(`Request failed: ${t}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.conversationId!=="-1"){this._resetConversation();let s={author:"system",conversationId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","","Other","speech-bubble-plus")};this.messages=[...this.messages,s],this._inputRef&&(this._inputRef.value="")}}willUpdate(e){this.messages.length===0&&this._translations.defaultStartUpMessage&&(this.messages=[{author:"ai",conversationId:"",message:this._translations.defaultStartUpMessage,render:this._renderSimpleTextMessage(this._translations.defaultStartUpMessage,"ai","","Other")}])}updated(e){(e.size||this._isLoading)&&this._scrollToBottom()}_renderFeedback(e,s,i,t){return k`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Good",i,t)}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Bad",i,t)}}></calcite-button></div>`}_renderSolutionQuestionReferences(e){return e.map(s=>k`<div class="message-content-pad"><a href=${s.url??q} target=_blank>${s.title}</a></div>`)}_renderSolutionQuestionFollowup(e){return e.map(s=>k`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${()=>{this._submitFollowupQuestion(s)}}>${s}</calcite-chip>`)}_renderSolutionsQuestionTable(e,s,i){let t=this._renderSolutionQuestionReferences(s),a=this._renderSolutionQuestionFollowup(i);return k`<div><div slot=description class="message-content">${ke(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${r=>{let l=r.currentTarget.parentElement?.nextElementSibling;l.classList.toggle("collapsed"),r.currentTarget.setAttribute("icon-end",l.classList.contains("collapsed")?"chevron-down":"chevron-up")}}>${`${s.length} ${s.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${t}</div></div><div class="padding-top-10">${a}</div></div>`}_renderSolutionCard(e,s){return k`<a class="solution-card" id=${s??q} @click=${()=>{this._emitItemIdFromAI(s)}}>${k`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail??q} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`}_renderExistingSolutionsTable(e,s){let i=s.map(t=>{let a=t.thumbnail.match(/\/items\/([a-f0-9]+)\//);return a?this._renderSolutionCard(t,a[1]):null}).filter(t=>t!==null);return k`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${i}</div></div>`}_renderSimpleTextMessage(e,s,i,t,a){let r=this.messages.length>=2?this._getMostRecentQuestion():"",l=typeof r=="string"?"":r?.message??"";return s==="system"?k`<div class="message-content message-content-alignment">${a&&k`<calcite-icon .icon=${a}></calcite-icon>`||""}${e}</div>`:k`<calcite-card class=${de(s==="human"?"user-message":"system-message")}><div class="message-content">${e}${s==="ai"&&i!==""&&this._renderFeedback(e,l,i,t)||""}</div></calcite-card>`}_renderDocAssistantResults(e,s,i,t,a,r){let l=this._getMostRecentQuestion();return k`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e,i,t)}${this._renderFeedback(s,l?.message??"",a,r)}</div></calcite-card>`}_renderSuggestedSolutions(e,s,i,t){let a=this._getMostRecentQuestion(),r=s.map(l=>l.title);return k`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e,s)}${this._renderFeedback(e+"("+r.toString()+")",a?.message??"",i,t)}</div></calcite-card>`}render(){return k`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length>1?k`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>`:""}<div class="chat-messages" ${O(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&k`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&k`<div class="padding-left-10">${this._isLoadingText}</div>`||""}</div></calcite-card>`||""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${O(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`}_scrollToBottom(){this._chatContainer&&setTimeout(()=>{this._chatContainer&&(this._chatContainer.scrollTop=this._chatContainer.scrollHeight)},100)}_emitItemIdFromAI(e){this._querySolutions(e).then(s=>{let i=s.typeKeywords.filter(a=>a.includes("solutionid")),t=new CustomEvent("solutionIDFromAssistant",{detail:i.length>0?i[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(t)})}_submitFollowupQuestion(e){let s=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(s)}_getMostRecentQuestion(){return[...this.messages].reverse().find(e=>e.author==="human")||null}async _querySolutions(e){let s=await Me(e);if("error"in s)throw new Error(s.error);return s}_sendFeedback(e,s,i,t,a){let r=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(i)}&field:question=${encodeURIComponent(s)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({intent:a}))}&field:conversation_id=${encodeURIComponent(t)}&field:version=${encodeURIComponent("v1")}`;window.open(r,"_blank")}};ge("arcgis-solutions-assistant",U);export{U as ArcgisSolutionsAssistant};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a,b}from"./WWKYMX4H.js";import"./KPLOUVW3.js";import"./DOCNMY5H.js";import"./ZADEJN6X.js";import"./VRUHMDUB.js";import"./G2UQK6LA.js";import"./C3XGENO2.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{b as e,e as r}from"./N3Q6R6TY.js";import"./6J47H6LF.js";import"./H23L6B2Q.js";import"./FMGMDOXA.js";import{c as t}from"./KCSAC7EU.js";import"./UYB52TDK.js";import"./S3TADIJ6.js";import"./66KL4C26.js";import"./LPVP3TCA.js";import"./OTF6WC55.js";import"./PJRC7SHJ.js";import"./TDSDZEH7.js";import"./SF42TDNB.js";import"./SYQ77RWF.js";import"./TWPRIW6W.js";import"./TKYTD63P.js";import"./FO5FDVKS.js";import"./C3XGENO2.js";async function c(a,n){let o=await e(Object.assign({channelId:a,data:{relations:[t.CHANNEL_ACL]}},n.hubRequestOptions));return r(o,n.currentUser)}export{c as fetchHubChannel};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{b as y}from"./JPNPSA7E.js";import{a as f}from"./3GSLYS7Y.js";import"./PGBTYK6X.js";import"./TXUBQSCF.js";import{b}from"./VRHRENNK.js";import{C as a,D as h,E as u,G as l,h as w,i as r,l as m}from"./QDR4D66T.js";import"./C3XGENO2.js";var x=w`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}.display-none{display:none}.display-flex{display:flex}.margin-top-1-2{margin-top:.5rem}.margin-left-1-2{margin-left:.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px #0000004d}.margin-bottom-1-2{margin-bottom:.5rem}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}`,g=class extends u{constructor(){super(),this.enabledLayerIds=[],this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableSearch=!1,this.enableBasemap=!1,this.enableHome=!1,this.enableSingleExpand=!1,this.zoomToolsSize="m",this.layout="vertical",this.mapWidgetsSize="m",this.enableMapPicker=!1,this.enableMapLayerPicker=!1,this.position="top-leading",this.stackTools=!0,this.enableSelectionTool=!1,this.toolOrder=["home","legend","search","fullscreen","floorfilter","selectiontool","map-picker","map-layer-picker"],this.mapInfos=[],this.defaultLayerId="",this.isMobile=!1,this.selectedWebMapId="",this.showOnlyUpdatableLayers=!1,this._hasFloorInfo=!1,this._translations=f({name:"map-tools",blocking:!0}),this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1,this._selectionToolActive=!1,this._showEllipsisTools=!0,this._ellipsisTools=[],this._isValidWebMap=!0,this._basemapElement=a(),this._floorFilterElement=a(),this._fullscreenElement=a(),this._legendElement=a(),this._searchElement=a(),this._widgets=[],this._selectionToolElement=a(),this._mapTools=[],this._mapTool=a(),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={basemapConfig:0,enabledLayerIds:0,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableSearch:5,enableBasemap:5,enableHome:5,enableSingleExpand:5,zoomToolsSize:1,layout:1,mapView:0,mapWidgetsSize:1,enableMapPicker:5,enableMapLayerPicker:5,position:1,searchConfiguration:0,stackTools:5,enableSelectionTool:5,toolOrder:0,selectedLayer:0,mapInfos:0,defaultLayerId:1,isMobile:5,parentComponentHeight:9,parentComponentWidth:9,selectedWebMapId:1,showOnlyUpdatableLayers:5,mapInfo:0,_hasFloorInfo:16,_translations:16,_showTools:16,_showBasemapWidget:16,_showFloorFilter:16,_showFullscreen:16,_showLegendWidget:16,_showSearchWidget:16,_selectionToolActive:16,_showEllipsisTools:16,_ellipsisTools:16,_isValidWebMap:16}}static{this.styles=x}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("parentComponentWidth")&&this.parentComponentWidth&&this.parentComponentWidthWatchHandler(this.parentComponentWidth),e.has("_showBasemapWidget")&&(this.hasUpdated||this._showBasemapWidget!==!1)&&this._showBasemapWidgetWatchHandler(this._showBasemapWidget),e.has("_showFloorFilter")&&(this.hasUpdated||this._showFloorFilter!==!1)&&this._showFloorFilterWatchHandler(this._showFloorFilter),e.has("_showFullscreen")&&(this.hasUpdated||this._showFullscreen!==!1)&&this._showFullscreenWatchHandler(this._showFullscreen),e.has("_showLegendWidget")&&(this.hasUpdated||this._showLegendWidget!==!1)&&this._showLegendWidgetWatchHandler(this._showLegendWidget),e.has("_showSearchWidget")&&(this.hasUpdated||this._showSearchWidget!==!1)&&this._showSearchWidgetWatchHandler(this._showSearchWidget)}async mapViewWatchHandler(){await this.mapView?.when(()=>{this.enableHome&&this._initHome(),this.parentComponentWidth&&this._updateTools(this.parentComponentWidth)})}async parentComponentWidthWatchHandler(e){this._updateTools(e)}async _showBasemapWidgetWatchHandler(e){let s=this._basemapElement.value?this._basemapElement.value.basemapWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFloorFilterWatchHandler(e){let s=this._floorFilterElement.value?this._floorFilterElement.value.floorFilterWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFullscreenWatchHandler(e){let s=this._fullscreenElement.value?this._fullscreenElement.value.fullscreenWidget:void 0;s&&(e?s.viewModel.state==="ready"&&s.viewModel.enter():s.viewModel.state==="active"&&s.viewModel.exit())}async _showLegendWidgetWatchHandler(e){let s=this._legendElement.value?this._legendElement.value.legendWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showSearchWidgetWatchHandler(e){let s=this._searchElement.value?this._searchElement.value.searchWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async mapChanged(e){let s=e.detail.isValid;this._isValidWebMap=s}async load(){this._mapTools=[...this.toolOrder],await this._initModules()}render(){this._setZoomToolsSize();let e=this.layout==="horizontal"?"display-flex":"",s=this._getToggleIcon(),t=this._showTools?e:"display-none",i=this._showEllipsisTools?"":"display-none",n=this._showSearchWidget?"":"display-none",o=this._showBasemapWidget?"":"display-none",d=this._showLegendWidget?"":"display-none",p=this._showFloorFilter?"":"display-none",c=this._showFullscreen?"":"display-none",W=this._showTools?this._translations.collapse:this._translations.expand,T=!this.enableBasemap&&!this.enableFullscreen&&!this.enableLegend&&!this.enableSearch&&!this.enableMapPicker&&!this.enableMapLayerPicker?"display-none":"",v=this.enableSingleExpand?this.layout==="horizontal"?"margin-left-1-2":"margin-top-1-2":"",F=this._ellipsisTools.length>0&&this._showTools?"":"display-none",_=this.stackTools&&this._ellipsisTools.length===0?"box-shadow":"";return r`<div class=${`${T} ${e}`}>${this.enableSingleExpand?r`<div class=${l(_)}>${this._getActionGroup(s,!1,W||"",()=>this._toggleTools())}</div>`:void 0}<div class=${`${v} ${_} ${t}`}>${this._getMapWidgets(this._mapTools)}</div><div><div class=${l(F)}>${this._getActionGroup("ellipsis",!1,"",()=>this._toggleEllipsisTools())}<div class=${l(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><basemap-gallery .basemapConfig=${this.basemapConfig} class=${l(o)} .mapView=${this.mapView} ${h(this._basemapElement)}></basemap-gallery><map-search class=${l(n)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${h(this._searchElement)}></map-search><map-legend class=${l(d)} .mapView=${this.mapView} ${h(this._legendElement)}></map-legend><map-fullscreen class=${l(c)} .mapView=${this.mapView} @fullscreenStateChange=${$=>this._fullscreenStateChange($.detail)} ${h(this._fullscreenElement)}></map-fullscreen><floor-filter class=${l(p)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${h(this._floorFilterElement)}></floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${()=>{this._selectionToolActive=!this._selectionToolActive}} .selectedLayerId=${this.selectedLayer?.id} tool=rectangle ${h(this._selectionToolElement)}></selection-tool>${this.enableMapPicker&&r`<map-picker class=mapPickerClass .height=${(this.parentComponentHeight??0)-25} id=map-picker .mapInfos=${this.mapInfos} reference-element=map .selectedWebMapId=${this.selectedWebMapId} show-map-list-in-popover></map-picker>`||""}${this.enableMapLayerPicker&&this.selectedLayer&&r`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this.enabledLayerIds} .height=${(this.parentComponentHeight??0)-25} .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} reference-element=layers scale=s .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-layers-list-in-popover show-tables type=dropdown></map-layer-picker>`||""}`}async _initModules(){let[e,s]=await y(["esri/widgets/Expand","esri/widgets/Home"]);this.Expand=e,this.Home=s}_initHome(){this.enableHome&&(this._homeWidget=this.Home&&new this.Home({view:this.mapView}))}_setZoomToolsSize(){let e=document.getElementsByClassName("esri-zoom")[0]?.children[0],s=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(e&&s){let t=this.zoomToolsSize==="s"?"32px":this.zoomToolsSize==="m"?"40px":"48px";e.style.width=t,e.style.height=t,s.style.width=t,s.style.height=t}this.layout==="horizontal"&&(document.getElementsByClassName("esri-zoom")[0]?.setAttribute("style","position: absolute; top: 50px; left: 0"),document.getElementsByClassName("esri-ui-top-left")[0]?.setAttribute("style","flex-direction: row; gap: 5px; align-items: flex-start; direction: ltr !important; z-index: 1;"))}_getToggleIcon(){let e;return this.layout==="horizontal"?e=this._showTools?"chevrons-left":"chevrons-right":e=this._showTools?"chevrons-up":"chevrons-down",e}_updateTools(e){let s=JSON.parse(JSON.stringify(this.toolOrder));this._hasFloorInfo=this.mapView?.map?.floorInfo;let t=s.indexOf("floorfilter");t>-1&&!this._hasFloorInfo&&s.splice(t,1);let i=Math.ceil(e/40)-1;i&&i!==s.length-1?(this._mapTools=s.slice(0,i),this._ellipsisTools=s.slice(i,s.length)):(this._mapTools=s,this._ellipsisTools=[])}_getMapWidgets(e){let s=this._showFullscreen?"full-screen-exit":"full-screen",t=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen,i=this._isValidWebMap?"map":"exclamation-mark-triangle",n=this.selectedLayer===void 0?"exclamation-mark-triangle":"layers";return e.map(o=>{switch(o){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,()=>this._showLegend()):this.enableLegend?this._getWidget(o,this._legendElement.value?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,()=>this._search()):this.enableSearch?this._getWidget(o,this._searchElement.value?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(s,!1,t||"",()=>this._expand()):this.enableFullscreen?this._getWidget(o,this._fullscreenElement.value?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,()=>this._toggleBasemapPicker()):this.enableBasemap?this._getWidget(o,this._basemapElement.value?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,()=>this._toggleFloorFilter()):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(o,this._floorFilterElement.value?.floorFilterWidget,!0):void 0;case"selectiontool":return this.enableSelectionTool&&this.selectedLayer?this._getActionGroup("cursor-selection",!1,this._translations.selectByRectangle,()=>this._toggleSelectionTool(),this._selectionToolActive):void 0;case"home":return this.enableHome?this._getActionGroup("home",!1,this._translations.defaultMapView,()=>this._homeWidget?.go()):void 0;case"map-picker":return this.enableMapPicker?this._getActionGroup(i,!1,"",()=>{},!this._isValidWebMap):void 0;case"map-layer-picker":return this.enableMapLayerPicker&&this._isValidWebMap?this._getActionGroup(n,!1,"",()=>{},this.selectedLayer===void 0):void 0;default:return""}})}_fullscreenStateChange(e){e==="ready"&&this._showFullscreen?this._showFullscreen=!1:e==="active"&&!this._showFullscreen&&(this._showFullscreen=!0)}_getActionGroup(e,s,t,i,n,o){let d=this.mapWidgetsSize==="s"?"square-32":this.mapWidgetsSize==="m"?"square-40":"square-48",p=this.stackTools?"":"margin-bottom-1-2",c=this.stackTools?"":"box-shadow";return r`<div><calcite-action alignment=center .indicator=${o} class=${`map-actions ${d} ${p} border-bottom ${c} ${n?"danger-icon-color":""}`} .disabled=${s} .icon=${e} id=${e??m} @click=${i} scale=s text ${h(this._mapTool)}><calcite-icon icon=cheveron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile&&r`<calcite-tooltip .placement=${this.layout==="vertical"?"auto":"bottom"} reference-element=${e??m}><span>${t}</span></calcite-tooltip>`||""}</div>`}_getWidget(e,s,t){if(this._widgets.indexOf(e)<0&&this.mapView&&s){let i=this.toolOrder.indexOf(e),n=this.Expand&&new this.Expand({view:this.mapView,content:s}),o=this.enableHome?2:1;this.mapView.ui.add(t?n:s,{position:this.position,index:i>-1?i+o:1}),this._widgets.push(e)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1,this._toggleEllipsisTools()}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1,this._toggleEllipsisTools()}_toggleSelectionTool(){this._selectionToolActive=!this._selectionToolActive,this._selectionToolElement.value?.toggleSelectionTool()}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools,this._toggleEllipsisTools()}_toggleEllipsisTools(){this._showEllipsisTools=!this._showEllipsisTools}};b("map-tools",g);export{g as MapTools};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a as O}from"./JUHZNCUH.js";import{e as _}from"./EFOK377W.js";import{a as l,f as p}from"./OTF6WC55.js";import"./TKYTD63P.js";import"./C3XGENO2.js";function C(e,a){let i=[];return O(e,(t,o)=>(o.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let o=q(a),r,u,s,m,d;switch(o){case"stat":s=import("./6LDGKXHO.js"),m={"hub:card:stat":()=>import("./SAMBWFKJ.js")}[a],await Promise.all([s,m()]).then(async([f,c])=>{let{MetricSchema:n}=f;r=l(n),u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(d=c.buildDefaults(e,i,t))});break;case"follow":s=import("./OVZZ6JTU.js"),m={"hub:card:follow":()=>import("./TWG226PR.js")}[a],await Promise.all([s,m()]).then(([f,c])=>{let{FollowSchema:n}=f;r=l(n),u=c.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./374U3GWX.js"),m=import("./Z23HGZYN.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:o}=a;o||(o=""),t.maxLength=_(o);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:o}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let o=a.split(":")[1],r,u,s;switch(o){case"site":let{getSiteSchema:m}=await import("./CKKYPJNF.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./YNQJMUXW.js"),"hub:site:create":()=>import("./IM62UGGF.js"),"hub:site:followers":()=>import("./G354G2R5.js"),"hub:site:discussions":()=>import("./5AWE75QZ.js"),"hub:site:settings":()=>import("./QGUWQFF4.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./WRKHHDEK.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./UNSSBR4O.js"),"hub:discussion:create":()=>import("./ON53FJXG.js"),"hub:discussion:settings":()=>import("./IJBXFCMT.js"),"hub:discussion:settings:discussions":()=>import("./SHSY5TSW.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./5X7OT3PW.js");r=l(f);let c=await{"hub:channel:edit":()=>import("./MGF42WWT.js"),"hub:channel:create":()=>import("./LAER7U5K.js")}[a]();u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(s=await c.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./3I365GBL.js");r=l(n);let v=await{"hub:project:edit":()=>import("./VC5NFRBK.js"),"hub:project:create":()=>import("./Q2JR6QFV.js"),"hub:project:create2":()=>import("./JZ7DDWQB.js"),"hub:project:metrics":()=>import("./BOWYOYFF.js"),"hub:project:settings":()=>import("./766NXEI5.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./BUNUWO4R.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./ADOJOJRJ.js"),"hub:initiative:create":()=>import("./JTKWC3IN.js"),"hub:initiative:create2":()=>import("./HCWTAUF5.js"),"hub:initiative:metrics":()=>import("./MPPNFL6O.js"),"hub:initiative:associations":()=>import("./J7YSM5KG.js"),"hub:initiative:settings":()=>import("./WEU6HCGV.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./ZSCNY56E.js");r=l(I);let D=await{"hub:page:edit":()=>import("./NOHK26DI.js"),"hub:page:create":()=>import("./4PFWZPSF.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./FUW5X5WX.js");r=l(K);let U=await{"hub:content:edit":()=>import("./7G2GSKCH.js"),"hub:content:discussions":()=>import("./ZWJQQF63.js"),"hub:content:settings":()=>import("./Y4CU2GK4.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./VJABELHG.js");r=l(y);let k=await{"hub:template:edit":()=>import("./5QB6QMOQ.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./GW3RLVUL.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./W7734FGJ.js"),"hub:group:create:association":()=>import("./W3TMRYTI.js"),"hub:group:create:view":()=>import("./Y42PHID4.js"),"hub:group:create:edit":()=>import("./AWZPH3WI.js"),"hub:group:create":()=>import("./5ZAFAS7S.js"),"hub:group:edit":()=>import("./6NCUX6NJ.js"),"hub:group:settings":()=>import("./EWRHTIXK.js"),"hub:group:discussions":()=>import("./IESWZ7BL.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./ZAAZBMVL.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./KHGPU4UH.js"),"hub:survey:settings":()=>import("./BIJS3QDZ.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./P2ZHCD37.js"),"hub:event:edit":()=>import("./JVB44O4S.js"),"hub:event:registrants":()=>import("./XLKIFV2H.js")}[a](),H=await{"hub:event:create":()=>import("./B2M4VAVZ.js"),"hub:event:edit":()=>import("./4N6PAP2B.js"),"hub:event:registrants":()=>import("./2OEXTGHX.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./4PJKBI5Q.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./KU7RFZOY.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./K5RFBVYK.js");r=l(N);let P=await{"hub:user:settings":()=>import("./LPCWCSAE.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.21 */
4
- import{a,b}from"./C36XF7C7.js";import"./VRUHMDUB.js";import"./C3XGENO2.js";export{a as GroupEditorTypes,b as GroupSchema};