@esri/solutions-components 1.2.0-next.30 → 1.2.0-next.31

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 (484) hide show
  1. package/dist/cdn/26CIPTQN.js +4 -0
  2. package/dist/cdn/{UQDX4HH7.js → 26CIVFI7.js} +2 -2
  3. package/dist/cdn/{JBJKRXXO.js → 26ZMWP6Z.js} +2 -2
  4. package/dist/cdn/{XPA5STW7.js → 27Q7IH64.js} +2 -2
  5. package/dist/cdn/{TE7MJY7J.js → 2BG4TYOD.js} +2 -2
  6. package/dist/cdn/{RYTGUQNW.js → 2GPTZNVI.js} +2 -2
  7. package/dist/cdn/{WMWRHS2O.js → 2H7IYD2F.js} +2 -2
  8. package/dist/cdn/{6YD2HBWD.js → 2IOG6JI2.js} +2 -2
  9. package/dist/cdn/{B4GTYQZH.js → 2ITFRR75.js} +2 -2
  10. package/dist/cdn/{C6XXEAWS.js → 2KCNUGHU.js} +2 -2
  11. package/dist/cdn/{5AWDPORB.js → 2KXZDC54.js} +2 -2
  12. package/dist/cdn/{DPZVQEH4.js → 2KYKQUHK.js} +2 -2
  13. package/dist/cdn/{DOUPRF5M.js → 2NNRS6QJ.js} +2 -2
  14. package/dist/cdn/2SHK7ROD.js +4 -0
  15. package/dist/cdn/{OKEQ6VW4.js → 2SQJ42QL.js} +2 -2
  16. package/dist/cdn/{5NTV25EH.js → 2VBJ24WG.js} +2 -2
  17. package/dist/cdn/{ON3VIYPQ.js → 2ZCAWD3F.js} +2 -2
  18. package/dist/cdn/{EDB5QBJ4.js → 32OKNC7F.js} +1 -1
  19. package/dist/cdn/{F2EIQ3EO.js → 3CE2JQRD.js} +2 -2
  20. package/dist/cdn/{HMBSQFUJ.js → 3CQH3UC2.js} +2 -2
  21. package/dist/cdn/{7VMUOYRC.js → 3EF32E4B.js} +2 -2
  22. package/dist/cdn/{GGMFABEF.js → 3FHCXLTP.js} +2 -2
  23. package/dist/cdn/{TUMBFPWA.js → 3FRGP6NR.js} +2 -2
  24. package/dist/cdn/{UXPVRSYI.js → 3FUHLW24.js} +2 -2
  25. package/dist/cdn/{EZU7FJ4I.js → 3GKOLG3P.js} +2 -2
  26. package/dist/cdn/{Q5KLXIL2.js → 3HXDXA5V.js} +2 -2
  27. package/dist/cdn/3JZF6PQM.js +4 -0
  28. package/dist/cdn/{34PDVGEI.js → 3T7IYLMO.js} +2 -2
  29. package/dist/cdn/{U3RN3VMR.js → 3Y4L5QPG.js} +2 -2
  30. package/dist/cdn/{JQHH2OCZ.js → 3YPVT2SF.js} +2 -2
  31. package/dist/cdn/43KJ7ZGS.js +18 -0
  32. package/dist/cdn/{SWMICF3O.js → 44PDCPXG.js} +2 -2
  33. package/dist/cdn/{LONY44WL.js → 4B4DVSY5.js} +2 -2
  34. package/dist/cdn/{D465QWTQ.js → 4BBPYTMJ.js} +2 -2
  35. package/dist/cdn/{FKNP522A.js → 4EWKLZQB.js} +1 -1
  36. package/dist/cdn/{3FWMXAKG.js → 4FCZ4AZ7.js} +2 -2
  37. package/dist/cdn/{2IKATLLY.js → 4FLNSTTX.js} +2 -2
  38. package/dist/cdn/{K54HDSYB.js → 4GSMGWKQ.js} +2 -2
  39. package/dist/cdn/{6TAASZPW.js → 4Q6AVQE7.js} +2 -2
  40. package/dist/cdn/{PLRNVZN6.js → 4TH2AQWE.js} +2 -2
  41. package/dist/cdn/{F2QEERVM.js → 4WHF6Z3F.js} +2 -2
  42. package/dist/cdn/{PCJIW7J4.js → 4WSQCQFN.js} +2 -2
  43. package/dist/cdn/{BPOQYDR5.js → 4X5LCVEW.js} +2 -2
  44. package/dist/cdn/{QYQGUEKK.js → 5NCLW4RU.js} +2 -2
  45. package/dist/cdn/{2YRUPZI2.js → 5RVBDF5G.js} +2 -2
  46. package/dist/cdn/{EIY2RNYU.js → 5VA6CQMM.js} +2 -2
  47. package/dist/cdn/{4SKQUXSZ.js → 5XXUCV3V.js} +2 -2
  48. package/dist/cdn/{FP6CVRPP.js → 5YJPALMY.js} +2 -2
  49. package/dist/cdn/{MRS7JBCM.js → 64F2C7FH.js} +2 -2
  50. package/dist/cdn/{B7RCE3HL.js → 6AP7BDVC.js} +3 -3
  51. package/dist/cdn/{JACZFLX5.js → 6BSQ4FI6.js} +2 -2
  52. package/dist/cdn/{QTHKDVZA.js → 6CDMAYRH.js} +2 -2
  53. package/dist/cdn/{LGY6RHRJ.js → 6CRO3RMM.js} +2 -2
  54. package/dist/cdn/{JC7USH53.js → 6FQEMJLG.js} +1 -1
  55. package/dist/cdn/{74G765B3.js → 6GINIJMQ.js} +2 -2
  56. package/dist/cdn/{7HFPD7CI.js → 6KMBNOZ3.js} +2 -2
  57. package/dist/cdn/{MRRQXIAY.js → 6KVTLN7I.js} +1 -1
  58. package/dist/cdn/{T66GPNTR.js → 6L5JZ6CY.js} +2 -2
  59. package/dist/cdn/{KPWGBLMQ.js → 6LD6WQRF.js} +2 -2
  60. package/dist/cdn/{4R3HMKHB.js → 6WIKCCYS.js} +2 -2
  61. package/dist/cdn/{AXOVLMEZ.js → 6WXAPOXD.js} +2 -2
  62. package/dist/cdn/{WP6QUJD5.js → 6YSJ5I5V.js} +2 -2
  63. package/dist/cdn/{XDQ5U3RX.js → 7BKAYHD3.js} +2 -2
  64. package/dist/cdn/{VWZIPDPO.js → 7DFRNIIN.js} +2 -2
  65. package/dist/cdn/{H3WB7ANQ.js → 7GMTKVDP.js} +2 -2
  66. package/dist/cdn/{PVKLE7AC.js → 7KD2EYNO.js} +2 -2
  67. package/dist/cdn/{DUH2FCJG.js → 7KQEUB3J.js} +2 -2
  68. package/dist/cdn/{JHUQCA3Z.js → 7LHHPXFC.js} +2 -2
  69. package/dist/cdn/{ZLWE4SGQ.js → 7P6J3DF5.js} +1 -1
  70. package/dist/cdn/{5PWFCMK4.js → 7SETBRJQ.js} +2 -2
  71. package/dist/cdn/{AZCLMDQA.js → 7WVIQXD6.js} +2 -2
  72. package/dist/cdn/{AUZIEPJY.js → 7Y73EJQK.js} +2 -2
  73. package/dist/cdn/{WNNXONB6.js → A3DZ652X.js} +2 -2
  74. package/dist/cdn/{3Z6YZFUQ.js → A56WOLMU.js} +2 -2
  75. package/dist/cdn/{BDJVTVGV.js → AA3OODB2.js} +2 -2
  76. package/dist/cdn/{6NKXBHT3.js → AA5S43EA.js} +2 -2
  77. package/dist/cdn/{MCPVXPMM.js → ABT5YG3I.js} +1 -1
  78. package/dist/cdn/{KIOXB2OZ.js → ADFNFEXR.js} +2 -2
  79. package/dist/cdn/{4ETQSIFF.js → AIWE35NS.js} +2 -2
  80. package/dist/cdn/{B7ALYLRG.js → APRQR7XL.js} +2 -2
  81. package/dist/cdn/{CAC5OPSW.js → AQMXUMFV.js} +2 -2
  82. package/dist/cdn/{AT2K2TZK.js → AT4QQS4E.js} +2 -2
  83. package/dist/cdn/{TISZ6QTW.js → ATVG5O7I.js} +2 -2
  84. package/dist/cdn/{J7QDKBVB.js → AWZINHAE.js} +2 -2
  85. package/dist/cdn/{SZVZ7L22.js → AZY3OG5Z.js} +2 -2
  86. package/dist/cdn/{YLAFYD5G.js → B3QZGAKL.js} +2 -2
  87. package/dist/cdn/{6DCWHIG6.js → B6ACMA5B.js} +2 -2
  88. package/dist/cdn/{HQX2UTQA.js → BCC43MR4.js} +2 -2
  89. package/dist/cdn/{RBY55AW4.js → BEXA43V2.js} +2 -2
  90. package/dist/cdn/{ZPV3TQLX.js → BG7THPYT.js} +2 -2
  91. package/dist/cdn/{EVNTAGJW.js → BNT5DJGY.js} +2 -2
  92. package/dist/cdn/{EORDZOGU.js → BOJKJLWQ.js} +2 -2
  93. package/dist/cdn/{KJQJXQFO.js → BYPEUWGZ.js} +2 -2
  94. package/dist/cdn/{JTVBLWSK.js → BZCZ7VL4.js} +2 -2
  95. package/dist/cdn/{LYQT3N5Z.js → C5HMYUFH.js} +1 -1
  96. package/dist/cdn/{HXVM7BGX.js → CCWREFPV.js} +2 -2
  97. package/dist/cdn/{GWPPIURG.js → CG54KNHW.js} +2 -2
  98. package/dist/cdn/{QOAKCYXR.js → CHGMM5CE.js} +2 -2
  99. package/dist/cdn/{WR2PXMWC.js → CN2QKE6N.js} +2 -2
  100. package/dist/cdn/CPXQZ3SL.js +18 -0
  101. package/dist/cdn/{SLTVLCFQ.js → CQRE2M4F.js} +2 -2
  102. package/dist/cdn/{2GFXYPLE.js → CWFWYRT4.js} +2 -2
  103. package/dist/cdn/{U7CHN77W.js → CWPWSVA7.js} +2 -2
  104. package/dist/cdn/{HDWF5BGC.js → CZ5X5637.js} +1 -1
  105. package/dist/cdn/CZB5Z7GA.js +4 -0
  106. package/dist/cdn/{UN3HEMCS.js → D447J5GT.js} +2 -2
  107. package/dist/cdn/{JFL4U4UA.js → D4QLXXIE.js} +2 -2
  108. package/dist/cdn/{UWIIDEOZ.js → DDU4V5V6.js} +2 -2
  109. package/dist/cdn/{LPOSNNLD.js → DKSGQFJD.js} +2 -2
  110. package/dist/cdn/{KV6OFAYE.js → DPRMLSWB.js} +2 -2
  111. package/dist/cdn/{24DMHUEK.js → DPX5WAK6.js} +2 -2
  112. package/dist/cdn/{GFEO3V7B.js → DSESXQAF.js} +2 -2
  113. package/dist/cdn/{CNZTLIB3.js → E6TINCRP.js} +2 -2
  114. package/dist/cdn/{UE4JYH6Q.js → E7AJJ7UX.js} +2 -2
  115. package/dist/cdn/{72XEQTIF.js → E7BTZQRN.js} +2 -2
  116. package/dist/cdn/{WL6ES3HJ.js → EB6Y35GJ.js} +2 -2
  117. package/dist/cdn/{3ICH54JL.js → EJ7ULT5F.js} +2 -2
  118. package/dist/cdn/EJQOZRVC.js +4 -0
  119. package/dist/cdn/{ZQLLWXUS.js → EKGKWXEB.js} +1 -1
  120. package/dist/cdn/EKP4LAMB.js +160 -0
  121. package/dist/cdn/{7S7DGB25.js → ELMP3CV5.js} +2 -2
  122. package/dist/cdn/{2ZIO725Y.js → ESDGUCHM.js} +2 -2
  123. package/dist/cdn/{OCTGDVTD.js → ESLRUAYH.js} +1 -1
  124. package/dist/cdn/{TC3U37J7.js → ET2O476H.js} +2 -2
  125. package/dist/cdn/{Y7MPYZYV.js → EWL35ZZV.js} +2 -2
  126. package/dist/cdn/{DLDZLA7R.js → EZWJABZU.js} +2 -2
  127. package/dist/cdn/{J2A24DGF.js → F37R3OXJ.js} +1 -1
  128. package/dist/cdn/{L4ENNIQZ.js → F5A5P5TO.js} +2 -2
  129. package/dist/cdn/{36VKRU3A.js → F7FPLRM7.js} +2 -2
  130. package/dist/cdn/{OVWAIW4T.js → FEHN4KPL.js} +4 -4
  131. package/dist/cdn/FMCVXTPQ.js +4 -0
  132. package/dist/cdn/{ITJX53EA.js → FWANARJ7.js} +2 -2
  133. package/dist/cdn/{OOHID67S.js → FY32LSLJ.js} +2 -2
  134. package/dist/cdn/{4U3FPTF5.js → FYNEWFSC.js} +2 -2
  135. package/dist/cdn/{2HXRWLJY.js → G25LXNP5.js} +2 -2
  136. package/dist/cdn/{YUE54TGU.js → G3RMVSCM.js} +2 -2
  137. package/dist/cdn/{2RHNGWV3.js → GA6IWULR.js} +2 -2
  138. package/dist/cdn/{DFEHZSKJ.js → GBNDVZDC.js} +2 -2
  139. package/dist/cdn/{7NHT4ID4.js → GD2DMOOA.js} +2 -2
  140. package/dist/cdn/{ISBYRWUS.js → GFCB6UVI.js} +2 -2
  141. package/dist/cdn/{TQZZQ74I.js → GFIYGODA.js} +1 -1
  142. package/dist/cdn/{B7V66ZZG.js → GHCAZWON.js} +1 -1
  143. package/dist/cdn/{TDB43YAO.js → GHELMKMF.js} +2 -2
  144. package/dist/cdn/{25MYRWPK.js → GMIEOLX5.js} +2 -2
  145. package/dist/cdn/{ZKOJOIGE.js → GMMJSQCO.js} +2 -2
  146. package/dist/cdn/{QTQ5VFMI.js → GPA7SOWJ.js} +2 -2
  147. package/dist/cdn/{6M575VM5.js → GRFZ2FCA.js} +1 -1
  148. package/dist/cdn/{ZLJ5FGJ6.js → GWQCD476.js} +2 -2
  149. package/dist/cdn/{MMRBO6I4.js → GXVFUFAX.js} +2 -2
  150. package/dist/cdn/{OSOFOQEK.js → GZPX7N7S.js} +2 -2
  151. package/dist/cdn/{NMEYVDKO.js → H3DUPFBO.js} +2 -2
  152. package/dist/cdn/{RMJBQVZQ.js → H3KAICJN.js} +2 -2
  153. package/dist/cdn/{QSX5S7NE.js → H3QLA57G.js} +2 -2
  154. package/dist/cdn/{R6C247GY.js → H6DRMF2A.js} +2 -2
  155. package/dist/cdn/{TXZZ7IGA.js → HAKLSL2C.js} +1 -1
  156. package/dist/cdn/{MBBBUQA7.js → HBZOEYFG.js} +2 -2
  157. package/dist/cdn/{7F6JTIWK.js → HGTZFPBI.js} +2 -2
  158. package/dist/cdn/{VZLRW2AX.js → HJZYONIH.js} +2 -2
  159. package/dist/cdn/{QCGMRCNR.js → HKGZIXAW.js} +2 -2
  160. package/dist/cdn/{GAQ3EPIU.js → HMVNFKGE.js} +2 -2
  161. package/dist/cdn/{QH7G7WSC.js → HTJXA6GN.js} +2 -2
  162. package/dist/cdn/{M77VUV2Q.js → HWS6ASNJ.js} +2 -2
  163. package/dist/cdn/HZZL7AU3.js +4 -0
  164. package/dist/cdn/{63WA56NY.js → I3BWD2LX.js} +2 -2
  165. package/dist/cdn/I5ZQTYAN.js +4 -0
  166. package/dist/cdn/{PNAS5XAC.js → IBGVJQ3D.js} +1 -1
  167. package/dist/cdn/{NGL5DBBP.js → IDR3G6QJ.js} +2 -2
  168. package/dist/cdn/{X4O2UX77.js → IEP7RNEW.js} +2 -2
  169. package/dist/cdn/{R5UVF7YP.js → IJ2XYITD.js} +2 -2
  170. package/dist/cdn/{FEWO73EQ.js → ISBOWSOF.js} +2 -2
  171. package/dist/cdn/{6QXC35GC.js → IWFECRP6.js} +2 -2
  172. package/dist/cdn/{277565E7.js → IZIT3Q6M.js} +2 -2
  173. package/dist/cdn/{NLPH7XLY.js → J4HGP2TR.js} +2 -2
  174. package/dist/cdn/{PKH6X23Q.js → J4KULWAC.js} +2 -2
  175. package/dist/cdn/{OOC5Y54N.js → JM4DQYUF.js} +2 -2
  176. package/dist/cdn/{BMYOJ35W.js → JPU2OPHN.js} +2 -2
  177. package/dist/cdn/{L5LXFBXD.js → JPZU2BUG.js} +2 -2
  178. package/dist/cdn/{DUBCPEXD.js → JSKC5AKJ.js} +2 -2
  179. package/dist/cdn/{XEQGJKML.js → JXU4HAWE.js} +2 -2
  180. package/dist/cdn/{Y27TXUN2.js → K6QUJXWV.js} +4 -4
  181. package/dist/cdn/{OJFZ6T4L.js → KBQJQVZP.js} +2 -2
  182. package/dist/cdn/{QG473DGW.js → KFTMUTWW.js} +2 -2
  183. package/dist/cdn/{XQURVTFE.js → KHJ277OT.js} +1 -1
  184. package/dist/cdn/{Y5BS3BHR.js → KQL6O3FK.js} +2 -2
  185. package/dist/cdn/{OHWJG6P3.js → KV6E2SFN.js} +2 -2
  186. package/dist/cdn/{KRGPHVWG.js → KYQKVXNP.js} +2 -2
  187. package/dist/cdn/{5LKRTP4M.js → L563AYUP.js} +2 -2
  188. package/dist/cdn/{HGN2PHJG.js → L7MBYDMB.js} +2 -2
  189. package/dist/cdn/{TPMDZI3N.js → LDYUDDLO.js} +2 -2
  190. package/dist/cdn/{TZC7FR57.js → LEIIQ3A6.js} +2 -2
  191. package/dist/cdn/{H4UX7IPM.js → LKKXUC52.js} +2 -2
  192. package/dist/cdn/{GPLPJI55.js → LKN6XSL5.js} +2 -2
  193. package/dist/cdn/{NS2BBVPW.js → LORQGESC.js} +2 -2
  194. package/dist/cdn/{ASR3PHZX.js → LPBE2FHF.js} +2 -2
  195. package/dist/cdn/LR5BWGNC.js +4 -0
  196. package/dist/cdn/{XLTAB44X.js → LV3XG53H.js} +2 -2
  197. package/dist/cdn/{KUQK2ONH.js → LWHILP4F.js} +2 -2
  198. package/dist/cdn/{FDUPZ25R.js → M3ZETHYO.js} +2 -2
  199. package/dist/cdn/{NGHRTOE5.js → M7X7Z3UY.js} +1 -1
  200. package/dist/cdn/{STNJMHAQ.js → MAZUKK57.js} +2 -2
  201. package/dist/cdn/{RYDA2GVY.js → MB4RZXW5.js} +2 -2
  202. package/dist/cdn/{CUAZD4LK.js → MBPSOAK3.js} +2 -2
  203. package/dist/cdn/{Z6455FX4.js → MD7MMSUZ.js} +1 -1
  204. package/dist/cdn/{2776LBZR.js → ML4FQKR3.js} +2 -2
  205. package/dist/cdn/{AWBOSR4C.js → MPUF2TPM.js} +1 -1
  206. package/dist/cdn/{ILTORA35.js → MRSWEWWB.js} +2 -2
  207. package/dist/cdn/{RKXN5H6E.js → MTURX67L.js} +2 -2
  208. package/dist/cdn/{PGGLPX3Y.js → N57KFLJ6.js} +2 -2
  209. package/dist/cdn/{4T73N7V2.js → NEMKCYHR.js} +2 -2
  210. package/dist/cdn/{BBIGCWRV.js → NFRC2QRL.js} +2 -2
  211. package/dist/cdn/{YFRAG76M.js → NKNKTKHO.js} +2 -2
  212. package/dist/cdn/{OGFYIHYL.js → NM44M4IW.js} +2 -2
  213. package/dist/cdn/{E6CHHVGK.js → NMKJ5JOM.js} +2 -2
  214. package/dist/cdn/{RH7MI7ML.js → NNA3NDDO.js} +2 -2
  215. package/dist/cdn/{W5WC3DQR.js → NOCFSXVG.js} +2 -2
  216. package/dist/cdn/{H2R75MHA.js → NPAHQC2C.js} +2 -2
  217. package/dist/cdn/{LAOPK2BR.js → NUOQWKHY.js} +2 -2
  218. package/dist/cdn/{EVNUKA47.js → NZDTEHWH.js} +2 -2
  219. package/dist/cdn/{2PW6ABS2.js → NZQGONJV.js} +2 -2
  220. package/dist/cdn/NZXEDJEA.js +18 -0
  221. package/dist/cdn/{HYVUOIDV.js → O7S3FCYR.js} +1 -1
  222. package/dist/cdn/{SZSFIVOE.js → OEIUCKZ7.js} +2 -2
  223. package/dist/cdn/{ZL226NXE.js → OF2SUOO3.js} +2 -2
  224. package/dist/cdn/{OGFRY2XT.js → OGODOUBS.js} +2 -2
  225. package/dist/cdn/{XQK2EEXA.js → OMYBTBPL.js} +2 -2
  226. package/dist/cdn/{EGM522HI.js → OO6FJRTO.js} +1 -1
  227. package/dist/cdn/{LKEA7WT3.js → OPMQCAR3.js} +2 -2
  228. package/dist/cdn/{MYKMNK6X.js → OVWM6TYS.js} +2 -2
  229. package/dist/cdn/{AK4FP6HL.js → OXM25VGF.js} +1 -1
  230. package/dist/cdn/{HVONRLYE.js → P44724IG.js} +2 -2
  231. package/dist/cdn/{O5O4WPGT.js → P7UXKWMX.js} +2 -2
  232. package/dist/cdn/{2U7L5PBM.js → POMBIM2T.js} +2 -2
  233. package/dist/cdn/{GPLD4OLN.js → POS6K2UE.js} +1 -1
  234. package/dist/cdn/{FG6WOVWI.js → PST6SAY2.js} +2 -2
  235. package/dist/cdn/{YWB3PVWJ.js → Q52VS7JD.js} +2 -2
  236. package/dist/cdn/{LJ37OTR5.js → Q67LCQR5.js} +2 -2
  237. package/dist/cdn/Q6QBQRTG.js +4 -0
  238. package/dist/cdn/{5QGNITLO.js → Q74EQS3O.js} +2 -2
  239. package/dist/cdn/{P32GLMOO.js → QCBF6D2I.js} +2 -2
  240. package/dist/cdn/{KJ7FA4KA.js → QDOHJRID.js} +2 -2
  241. package/dist/cdn/{U6IZ7NDO.js → QFL5XGCR.js} +2 -2
  242. package/dist/cdn/{3WDCAEUK.js → QJMIHCYA.js} +2 -2
  243. package/dist/cdn/{NALQ7ZA4.js → QNZCOWWV.js} +2 -2
  244. package/dist/cdn/{CEUB4OXF.js → QRBXPHG6.js} +2 -2
  245. package/dist/cdn/{BV53Z64R.js → QRYOQHNP.js} +2 -2
  246. package/dist/cdn/QSYA2APQ.js +4 -0
  247. package/dist/cdn/{GJYH7TRE.js → QVJ7QQVE.js} +2 -2
  248. package/dist/cdn/{C4AGRX46.js → QWCZAOXA.js} +2 -2
  249. package/dist/cdn/{65ZZ77SE.js → R2Y4BFBA.js} +1 -1
  250. package/dist/cdn/{NEVLWT5F.js → R5U2WANE.js} +2 -2
  251. package/dist/cdn/{F5Z37SAY.js → RCR3LGTO.js} +2 -2
  252. package/dist/cdn/{J62SMQQ7.js → RDTGNHBE.js} +2 -2
  253. package/dist/cdn/{HC4IU67I.js → REITZYXX.js} +2 -2
  254. package/dist/cdn/{HXI2RJM3.js → RKDFCEV6.js} +2 -2
  255. package/dist/cdn/{6RA3RUIS.js → RO4XDPUY.js} +2 -2
  256. package/dist/cdn/{27GKKFQI.js → RQ5KHDEQ.js} +2 -2
  257. package/dist/cdn/{N3YA5MDL.js → RSA4AWTB.js} +2 -2
  258. package/dist/cdn/{QRR2HRFO.js → RX5LXQBF.js} +2 -2
  259. package/dist/cdn/{UVYMD3SU.js → RZWTSUJZ.js} +2 -2
  260. package/dist/cdn/{V33LR6IS.js → SBR5OKMT.js} +2 -2
  261. package/dist/cdn/{J45MBO4E.js → SEJZOKLD.js} +2 -2
  262. package/dist/cdn/{WIIOBTYW.js → SH26YDC5.js} +2 -2
  263. package/dist/cdn/{WNSRF7JD.js → SHN4JOAS.js} +2 -2
  264. package/dist/cdn/{QVX3HKWH.js → SJOOBDVL.js} +2 -2
  265. package/dist/cdn/{GLIEFW2W.js → SLMFVTWE.js} +1 -1
  266. package/dist/cdn/{FA3IKFAL.js → SMNRWNUV.js} +1 -1
  267. package/dist/cdn/{ITD43QIH.js → SUGCGTUE.js} +2 -2
  268. package/dist/cdn/{3JCJJ2GF.js → SXGZX66A.js} +2 -2
  269. package/dist/cdn/T6U4HMPV.js +4 -0
  270. package/dist/cdn/{72SAT2FH.js → TCD2EBVI.js} +1 -1
  271. package/dist/cdn/{LMLBAQTW.js → TCPOSEXP.js} +2 -2
  272. package/dist/cdn/{VF3BOXK6.js → TFFGKLXZ.js} +1 -1
  273. package/dist/cdn/{UJ7M33YD.js → TG66S6FW.js} +1 -1
  274. package/dist/cdn/{Y7YN2IIU.js → TJ3ELT7Y.js} +2 -2
  275. package/dist/cdn/{YZLM4OIF.js → TM3QT4MY.js} +2 -2
  276. package/dist/cdn/TNAZAPLS.js +18 -0
  277. package/dist/cdn/{UNU2VFCG.js → TVBP7E34.js} +2 -2
  278. package/dist/cdn/{IJGEUPSK.js → TWIBC25F.js} +2 -2
  279. package/dist/cdn/{P7TBO62O.js → TXF4E6LF.js} +1 -1
  280. package/dist/cdn/{S362MWIR.js → TYQ5FGMD.js} +2 -2
  281. package/dist/cdn/{S2AT5YY2.js → UC6KMQRH.js} +2 -2
  282. package/dist/cdn/UCN2N7DB.js +4 -0
  283. package/dist/cdn/{ZGWPTRGZ.js → UE2IX2RL.js} +2 -2
  284. package/dist/cdn/UEOJE65W.js +89 -0
  285. package/dist/cdn/{CP4HACAH.js → UFE4G4RJ.js} +1 -1
  286. package/dist/cdn/{D2D2CPBJ.js → UHZSVZPK.js} +2 -2
  287. package/dist/cdn/{AE6H6ELK.js → UJO2FYV6.js} +2 -2
  288. package/dist/cdn/{TF7HCU4R.js → UNAA6QIJ.js} +2 -2
  289. package/dist/cdn/{O4LF5ZK4.js → UO7CVYHI.js} +2 -2
  290. package/dist/cdn/{KXFJ5CVI.js → UUPE5QOV.js} +2 -2
  291. package/dist/cdn/{NQNIGRVW.js → UV2WNCQF.js} +2 -2
  292. package/dist/cdn/{XP2EQZNN.js → UV62PU26.js} +2 -2
  293. package/dist/cdn/{JNSLXW7O.js → UW3ZGSQU.js} +2 -2
  294. package/dist/cdn/{WA6JCIVJ.js → V2WCN5DX.js} +2 -2
  295. package/dist/cdn/{FLQEDTUI.js → VNIE2PXO.js} +2 -2
  296. package/dist/cdn/{5HZVV4CF.js → VP4CHRDT.js} +1 -1
  297. package/dist/cdn/{SQ4ONYA6.js → VQFP6AZI.js} +2 -2
  298. package/dist/cdn/{CYDNA2QI.js → VQIF3HW2.js} +2 -2
  299. package/dist/cdn/{NDBQUUTO.js → VWCVOS6M.js} +1 -1
  300. package/dist/cdn/{SJGKDRLS.js → VXKH2VOP.js} +1 -1
  301. package/dist/cdn/{EB2JKK3D.js → VY4RTYGY.js} +2 -2
  302. package/dist/cdn/{PGWOXALJ.js → VZNCCCR4.js} +2 -2
  303. package/dist/cdn/{47L5OVTL.js → W3QOBRE2.js} +2 -2
  304. package/dist/cdn/{JFT5UZJT.js → W3UAB5V7.js} +2 -2
  305. package/dist/cdn/{7QLGF5J6.js → WBLATNLZ.js} +2 -2
  306. package/dist/cdn/{QDHG7XI7.js → WDH5XQN5.js} +2 -2
  307. package/dist/cdn/{QNUGOWWM.js → WDK5H56L.js} +2 -2
  308. package/dist/cdn/{XTBZMRJM.js → WF6EYQVV.js} +2 -2
  309. package/dist/cdn/{VFV5JCQN.js → WI5VAMGJ.js} +2 -2
  310. package/dist/cdn/{CQKXZVLC.js → WKYLL2JX.js} +2 -2
  311. package/dist/cdn/{4EXGNBXW.js → WPY4LC3K.js} +2 -2
  312. package/dist/cdn/{65GKVZWM.js → WQBQCO4B.js} +2 -2
  313. package/dist/cdn/{MBGLCBIC.js → WQSKVYFF.js} +2 -2
  314. package/dist/cdn/{FRS5F6O5.js → WTS5H53O.js} +2 -2
  315. package/dist/cdn/{3FYPCIOV.js → WTZNO7PN.js} +2 -2
  316. package/dist/cdn/{RJAI2F2A.js → X4ZKBTN4.js} +2 -2
  317. package/dist/cdn/{HN2G2EYZ.js → XCSYY3XX.js} +2 -2
  318. package/dist/cdn/{ECKEIM2Y.js → XDQDDZ44.js} +2 -2
  319. package/dist/cdn/{WFJNZNPO.js → XH7Q5FKW.js} +2 -2
  320. package/dist/cdn/{SH2FEGSB.js → XJMRQKZW.js} +2 -2
  321. package/dist/cdn/{GOLJIOZF.js → XS3JXY2Q.js} +2 -2
  322. package/dist/cdn/{QN7Y6QOZ.js → XZ627753.js} +2 -2
  323. package/dist/cdn/{NWANGG5T.js → Y6WUVKKJ.js} +2 -2
  324. package/dist/cdn/{LMF2IQVY.js → YA5GFONS.js} +2 -2
  325. package/dist/cdn/{BHDNLSI7.js → YARWRAKS.js} +1 -1
  326. package/dist/cdn/YCB5OBM7.js +18 -0
  327. package/dist/cdn/YFF7HPPF.js +18 -0
  328. package/dist/cdn/{OU7QCTNJ.js → YLYTCJC5.js} +2 -2
  329. package/dist/cdn/{5MKH7FO7.js → YR2Q4MEZ.js} +2 -2
  330. package/dist/cdn/{BUF25CTJ.js → YTP3FLYV.js} +1 -1
  331. package/dist/cdn/{LIQY6VUI.js → Z4KFLWH7.js} +2 -2
  332. package/dist/cdn/{JN3I6HM2.js → Z62OH3MN.js} +2 -2
  333. package/dist/cdn/{ECGNRFQC.js → Z7WH3PY4.js} +2 -2
  334. package/dist/cdn/{BX56GQJM.js → ZCRLXSR3.js} +2 -2
  335. package/dist/cdn/{2GMVKD6U.js → ZGABFMI5.js} +2 -2
  336. package/dist/cdn/{MXKXWU54.js → ZGCTHCV6.js} +1 -1
  337. package/dist/cdn/{EHZVBSNG.js → ZKG2VPKR.js} +2 -2
  338. package/dist/cdn/{3CSYZLTP.js → ZMPDT3BZ.js} +2 -2
  339. package/dist/cdn/{3VWHKZED.js → ZN4UP4WI.js} +2 -2
  340. package/dist/cdn/{KAFYTKP3.js → ZOD4ZXTC.js} +2 -2
  341. package/dist/cdn/{DTHSN36M.js → ZS5WKHPW.js} +2 -2
  342. package/dist/cdn/{PJFQYGK6.js → ZUJ3VJF5.js} +2 -2
  343. package/dist/cdn/{LWNDAKHU.js → ZWPKTGXD.js} +2 -2
  344. package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.json +1 -1
  346. package/dist/cdn/index.js +2 -2
  347. package/dist/chunks/Auth.js +37 -37
  348. package/dist/chunks/CardsFetcher.js +1 -1
  349. package/dist/chunks/appConfig.js +1 -1
  350. package/dist/chunks/cardFetchingUtils.js +1 -1
  351. package/dist/chunks/cardsHelpers.js +1 -1
  352. package/dist/chunks/common.js +1 -1
  353. package/dist/chunks/deployAppContexts.js +1 -1
  354. package/dist/chunks/downloadUtils.js +1 -1
  355. package/dist/chunks/getItemIcon.js +1 -1
  356. package/dist/chunks/helpers.js +1 -1
  357. package/dist/chunks/interfaces.js +1 -1
  358. package/dist/chunks/loadModules.js +1 -1
  359. package/dist/chunks/mapViewUtils.js +1 -1
  360. package/dist/chunks/pciUtils.js +1 -1
  361. package/dist/chunks/popupUtils.js +1 -1
  362. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  363. package/dist/chunks/privilegeUtils.js +1 -1
  364. package/dist/chunks/publicNotificationContext.js +1 -1
  365. package/dist/chunks/queryUtils.js +1 -1
  366. package/dist/chunks/runtime.js +1 -1
  367. package/dist/chunks/solution-store.js +1 -1
  368. package/dist/chunks/templates.js +1 -1
  369. package/dist/chunks/useT9n.js +1 -1
  370. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +2 -2
  371. package/dist/components/arcgis-solutions-assistant/customElement.js +771 -592
  372. package/dist/components/arcgis-solutions-assistant/index.d.ts +2 -2
  373. package/dist/components/arcgis-solutions-assistant/index.js +2 -2
  374. package/dist/components/arcgis-solutions-assistant/utils/typewriter-text.d.ts +48 -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.js +1 -1
  382. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  383. package/dist/components/deduct-calculator/customElement.js +1 -1
  384. package/dist/components/delete-button/customElement.js +1 -1
  385. package/dist/components/delete-dialog/customElement.js +1 -1
  386. package/dist/components/edit-card/customElement.js +1 -1
  387. package/dist/components/feature-details/customElement.js +1 -1
  388. package/dist/components/feature-list/customElement.js +1 -1
  389. package/dist/components/field-selection/customElement.js +1 -1
  390. package/dist/components/floor-filter/customElement.js +1 -1
  391. package/dist/components/info-card/customElement.js +1 -1
  392. package/dist/components/json-editor/customElement.js +1 -1
  393. package/dist/components/layer-list/customElement.js +1 -1
  394. package/dist/components/layer-table/customElement.js +1 -1
  395. package/dist/components/map-card/customElement.js +1 -1
  396. package/dist/components/map-draw-tools/customElement.js +1 -1
  397. package/dist/components/map-fullscreen/customElement.js +1 -1
  398. package/dist/components/map-layer-picker/customElement.js +1 -1
  399. package/dist/components/map-legend/customElement.js +1 -1
  400. package/dist/components/map-picker/customElement.js +1 -1
  401. package/dist/components/map-search/customElement.js +1 -1
  402. package/dist/components/map-select-tools/customElement.js +1 -1
  403. package/dist/components/map-tools/customElement.js +1 -1
  404. package/dist/components/pci-calculator/customElement.js +1 -1
  405. package/dist/components/pdf-download/customElement.js +1 -1
  406. package/dist/components/public-notification/customElement.js +1 -1
  407. package/dist/components/refine-selection/customElement.js +1 -1
  408. package/dist/components/selection-tool/customElement.js +1 -1
  409. package/dist/components/solution-configuration/customElement.js +1 -1
  410. package/dist/components/solution-configure-titles/customElement.js +1 -1
  411. package/dist/components/solution-contents/customElement.js +1 -1
  412. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  413. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  414. package/dist/components/solution-deployed-card/customElement.js +1 -1
  415. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  416. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  417. package/dist/components/solution-details-card/customElement.js +1 -1
  418. package/dist/components/solution-details-panel/customElement.js +1 -1
  419. package/dist/components/solution-item/customElement.js +1 -1
  420. package/dist/components/solution-item-accordion/customElement.js +1 -1
  421. package/dist/components/solution-item-details/customElement.js +1 -1
  422. package/dist/components/solution-item-diagram/customElement.js +1 -1
  423. package/dist/components/solution-item-icon/customElement.js +1 -1
  424. package/dist/components/solution-item-sharing/customElement.js +1 -1
  425. package/dist/components/solution-organization-variables/customElement.js +1 -1
  426. package/dist/components/solution-resource-card/customElement.js +1 -1
  427. package/dist/components/solution-resource-item/customElement.js +1 -1
  428. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  429. package/dist/components/solution-social-share/customElement.js +1 -1
  430. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  431. package/dist/components/solution-template-data/customElement.js +1 -1
  432. package/dist/components/solution-variables/customElement.js +1 -1
  433. package/dist/components/solutions-all-panel/customElement.js +1 -1
  434. package/dist/components/solutions-all-shell/customElement.js +20 -23
  435. package/dist/components/solutions-deploy-app/customElement.js +33 -25
  436. package/dist/components/solutions-deploy-app-nav/customElement.js +12 -12
  437. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  438. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  439. package/dist/components/solutions-deployed-shell/customElement.js +27 -17
  440. package/dist/components/solutions-deployed-shell/index.d.ts +2 -0
  441. package/dist/components/solutions-deployed-shell/index.js +2 -0
  442. package/dist/components/solutions-filter-panel/customElement.d.ts +1 -7
  443. package/dist/components/solutions-filter-panel/customElement.js +25 -18
  444. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  445. package/dist/components/solutions-resources/customElement.js +1 -1
  446. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  447. package/dist/components/solutions-searchsort-toolbar/customElement.js +5 -5
  448. package/dist/components/spatial-ref/customElement.js +1 -1
  449. package/dist/components/store-manager/customElement.js +1 -1
  450. package/dist/docs/api.json +4 -33
  451. package/dist/docs/docs.json +6 -28
  452. package/dist/docs/vscode.html-custom-data.json +1 -6
  453. package/dist/docs/web-types.json +2 -15
  454. package/dist/index.js +1 -1
  455. package/dist/loader.js +2 -2
  456. package/dist/types/lumina.d.ts +1 -1
  457. package/dist/types/preact.d.ts +1 -1
  458. package/dist/types/preact10.d.ts +1 -1
  459. package/dist/types/react.d.ts +1 -1
  460. package/dist/types/stencil.d.ts +1 -1
  461. package/dist/utils/Auth.d.ts +2 -0
  462. package/dist/utils/interfaces.d.ts +5 -0
  463. package/package.json +1 -1
  464. package/dist/cdn/2DKKN6C2.js +0 -4
  465. package/dist/cdn/346BLCF2.js +0 -4
  466. package/dist/cdn/6FNOQGIZ.js +0 -4
  467. package/dist/cdn/ABDQSCIZ.js +0 -18
  468. package/dist/cdn/B4OV3LHY.js +0 -4
  469. package/dist/cdn/BPXPCMXX.js +0 -18
  470. package/dist/cdn/BTBWYAZW.js +0 -18
  471. package/dist/cdn/F6BFZHUG.js +0 -4
  472. package/dist/cdn/GD43N373.js +0 -4
  473. package/dist/cdn/GNLAHRZT.js +0 -18
  474. package/dist/cdn/I73WIDZD.js +0 -4
  475. package/dist/cdn/IJCG3D4S.js +0 -4
  476. package/dist/cdn/JXBEZT5A.js +0 -4
  477. package/dist/cdn/MT4KKD5M.js +0 -4
  478. package/dist/cdn/MYMVJFH4.js +0 -64
  479. package/dist/cdn/NLLMNIAA.js +0 -4
  480. package/dist/cdn/NTLJHWLQ.js +0 -89
  481. package/dist/cdn/PPT7MVPV.js +0 -4
  482. package/dist/cdn/PTTGFXZZ.js +0 -18
  483. package/dist/cdn/YOA42CLH.js +0 -18
  484. package/dist/cdn/ZIRTUZJU.js +0 -4
@@ -0,0 +1,160 @@
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.31 */
4
+ import{a as ce}from"./WQBQCO4B.js";import"./4WSQCQFN.js";import"./MAZUKK57.js";import{b as oe}from"./W3UAB5V7.js";import{E as F,F as ae,H as le,h as ie,i as b,m as $,p as re}from"./HTJXA6GN.js";import"./KHJ277OT.js";var Ie=ie`: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}.display-none{display:none}`;var Ae="https://www.arcgis.com/sharing/rest/content/items/";async function ze(n){return await Ce(n)}async function Ce(n){let e=Ae+n+"?f=json";try{let t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return await t.json()}catch(t){return{error:t.message}}}function W(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var T=W();function fe(n){T=n}var C={exec:()=>null};function g(n,e=""){let t=typeof n=="string"?n:n.source,i={replace:(s,a)=>{let r=typeof a=="string"?a:a.source;return r=r.replace(m.caret,"$1"),t=t.replace(s,r),i},getRegex:()=>new RegExp(t,e)};return i}var Le=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),m={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]\] +/,listTaskCheckbox:/\[[ 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|$))+/,Ee=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Be=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,X=/(?:[*+-]|\d{1,9}[.)])/,xe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,be=g(xe).replace(/bull/g,X).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(),Me=g(xe).replace(/bull/g,X).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(),J=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qe=/^[^\n]+/,K=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ze=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",K).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),De=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,X).getRegex(),Z="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",V=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ne=g("^ {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",V).replace("tag",Z).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),me=g(J).replace("hr",L).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",Z).getRegex(),Fe=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",me).getRegex(),Y={blockquote:Fe,code:Ee,def:Ze,fences:Pe,heading:Be,hr:L,html:Ne,lheading:be,list:De,newline:qe,paragraph:me,table:C,text:Qe},he=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).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",Z).getRegex(),Oe={...Y,lheading:Me,table:he,paragraph:g(J).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",he).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",Z).getRegex()},je={...Y,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",V).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:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(J).replace("hr",L).replace("heading",` *#{1,6} *[^
5
+ ]`).replace("lheading",be).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},He=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ge=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,we=/^( {2,}|\\)\n(?!\s*$)/,Ue=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,D=/[\p{P}\p{S}]/u,ee=/[\s\p{P}\p{S}]/u,ye=/[^\s\p{P}\p{S}]/u,We=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ee).getRegex(),_e=/(?!~)[\p{P}\p{S}]/u,Xe=/(?!~)[\s\p{P}\p{S}]/u,Je=/(?:[^\s\p{P}\p{S}]|~)/u,Ke=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Le?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ve=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ve=g(ve,"u").replace(/punct/g,D).getRegex(),Ye=g(ve,"u").replace(/punct/g,_e).getRegex(),$e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",et=g($e,"gu").replace(/notPunctSpace/g,ye).replace(/punctSpace/g,ee).replace(/punct/g,D).getRegex(),tt=g($e,"gu").replace(/notPunctSpace/g,Je).replace(/punctSpace/g,Xe).replace(/punct/g,_e).getRegex(),st=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ye).replace(/punctSpace/g,ee).replace(/punct/g,D).getRegex(),nt=g(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),it=g(/^<(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(),rt=g(V).replace("(?:-->|$)","-->").getRegex(),at=g("^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",rt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),B=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,lt=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",B).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Se=g(/^!?\[(label)\]\[(ref)\]/).replace("label",B).replace("ref",K).getRegex(),Te=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",K).getRegex(),ot=g("reflink|nolink(?!\\()","g").replace("reflink",Se).replace("nolink",Te).getRegex(),pe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,te={_backpedal:C,anyPunctuation:nt,autolink:it,blockSkip:Ke,br:we,code:Ge,del:C,emStrongLDelim:Ve,emStrongRDelimAst:et,emStrongRDelimUnd:st,escape:He,link:lt,nolink:Te,punctuation:We,reflink:Se,reflinkSearch:ot,tag:at,text:Ue,url:C},ct={...te,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",B).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B).getRegex()},O={...te,emStrongRDelimAst:tt,emStrongLDelim:Ye,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",pe).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:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",pe).getRegex()},ht={...O,br:g(we).replace("{2,}","*").getRegex(),text:g(O.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},P={normal:Y,gfm:Oe,pedantic:je},I={normal:te,gfm:O,breaks:ht,pedantic:ct},pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ue=n=>pt[n];function _(n,e){if(e){if(m.escapeTest.test(n))return n.replace(m.escapeReplace,ue)}else if(m.escapeTestNoEncode.test(n))return n.replace(m.escapeReplaceNoEncode,ue);return n}function de(n){try{n=encodeURI(n).replace(m.percentDecode,"%")}catch{return null}return n}function ge(n,e){let t=n.replace(m.findPipe,(a,r,o)=>{let l=!1,h=r;for(;--h>=0&&o[h]==="\\";)l=!l;return l?"|":" |"}),i=t.split(m.splitPipe),s=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(;s<i.length;s++)i[s]=i[s].trim().replace(m.slashPipe,"|");return i}function A(n,e,t){let i=n.length;if(i===0)return"";let s=0;for(;s<i&&n.charAt(i-s-1)===e;)s++;return n.slice(0,i-s)}function ut(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])t++;else if(n[i]===e[1]&&(t--,t<0))return i;return t>0?-2:-1}function ke(n,e,t,i,s){let a=e.href,r=e.title||null,o=n[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:a,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function dt(n,e,t){let i=n.match(t.other.indentCodeCompensation);if(i===null)return e;let s=i[1];return e.split(`
6
+ `).map(a=>{let r=a.match(t.other.beginningSpace);if(r===null)return a;let[o]=r;return o.length>=s.length?a.slice(s.length):a}).join(`
7
+ `)}var M=class{options;rules;lexer;constructor(n){this.options=n||T}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 t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:A(t,`
8
+ `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],i=dt(t,e[3]||"",this.rules);return{type:"code",raw:t,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 t=e[2].trim();if(this.rules.other.endingHash.test(t)){let i=A(t,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(t=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:A(e[0],`
9
+ `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=A(e[0],`
10
+ `).split(`
11
+ `),i="",s="",a=[];for(;t.length>0;){let r=!1,o=[],l;for(l=0;l<t.length;l++)if(this.rules.other.blockquoteStart.test(t[l]))o.push(t[l]),r=!0;else if(!r)o.push(t[l]);else break;t=t.slice(l);let h=o.join(`
12
+ `),c=h.replace(this.rules.other.blockquoteSetextReplace,`
13
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
14
+ ${h}`:h,s=s?`${s}
15
+ ${c}`:c;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=p,t.length===0)break;let d=a.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let f=d,u=f.raw+`
16
+ `+t.join(`
17
+ `),x=this.blockquote(u);a[a.length-1]=x,i=i.substring(0,i.length-f.raw.length)+x.raw,s=s.substring(0,s.length-f.text.length)+x.text;break}else if(d?.type==="list"){let f=d,u=f.raw+`
18
+ `+t.join(`
19
+ `),x=this.list(u);a[a.length-1]=x,i=i.substring(0,i.length-d.raw.length)+x.raw,s=s.substring(0,s.length-f.raw.length)+x.raw,t=u.substring(a.at(-1).raw.length).split(`
20
+ `);continue}}return{type:"blockquote",raw:i,tokens:a,text:s}}}list(n){let e=this.rules.block.list.exec(n);if(e){let t=e[1].trim(),i=t.length>1,s={type:"list",raw:"",ordered:i,start:i?+t.slice(0,-1):"",loose:!1,items:[]};t=i?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=i?t:"[*+-]");let a=this.rules.other.listItemRegex(t),r=!1;for(;n;){let l=!1,h="",c="";if(!(e=a.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let p=e[2].split(`
21
+ `,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),d=n.split(`
22
+ `,1)[0],f=!p.trim(),u=0;if(this.options.pedantic?(u=2,c=p.trimStart()):f?u=e[1].length+1:(u=e[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,c=p.slice(u),u+=e[1].length),f&&this.rules.other.blankLine.test(d)&&(h+=d+`
23
+ `,n=n.substring(d.length+1),l=!0),!l){let v=this.rules.other.nextBulletRegex(u),q=this.rules.other.hrRegex(u),E=this.rules.other.fencesBeginRegex(u),ne=this.rules.other.headingBeginRegex(u),Re=this.rules.other.htmlBeginRegex(u);for(;n;){let N=n.split(`
24
+ `,1)[0],R;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),R=d):R=d.replace(this.rules.other.tabCharGlobal," "),E.test(d)||ne.test(d)||Re.test(d)||v.test(d)||q.test(d))break;if(R.search(this.rules.other.nonSpaceChar)>=u||!d.trim())c+=`
25
+ `+R.slice(u);else{if(f||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(p)||ne.test(p)||q.test(p))break;c+=`
26
+ `+d}!f&&!d.trim()&&(f=!0),h+=N+`
27
+ `,n=n.substring(N.length+1),p=R.slice(u)}}s.loose||(r?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(r=!0));let x=null;this.options.gfm&&(x=this.rules.other.listIsTask.exec(c),x&&(c=c.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:h,task:!!x,loose:!1,text:c,tokens:[]}),s.raw+=h}let o=s.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let l of s.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){let h=this.rules.other.listTaskCheckbox.exec(l.raw);if(h){let c={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};l.checked=c.checked,s.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=c.raw+l.tokens[0].raw,l.tokens[0].text=c.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(c)):l.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):l.tokens.unshift(c)}}if(!s.loose){let h=l.tokens.filter(p=>p.type==="space"),c=h.length>0&&h.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=c}}if(s.loose)for(let l of s.items){l.loose=!0;for(let h of l.tokens)h.type==="text"&&(h.type="paragraph")}return s}}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 t=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"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:i,title:s}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=ge(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.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<t.length;r++)a.header.push({text:t[r],tokens:this.lexer.inline(t[r]),header:!0,align:a.align[r]});for(let r of s)a.rows.push(ge(r,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));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 t=e[1].charAt(e[1].length-1)===`
29
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}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 t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let a=A(t.slice(0,-1),"\\");if((t.length-a.length)%2===0)return}else{let a=ut(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],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],s=a[3])}else s=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(t)?i=i.slice(1):i=i.slice(1,-1)),ke(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let i=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[i.toLowerCase()];if(!s){let a=t[0].charAt(0);return{type:"text",raw:a,text:a}}return ke(t,s,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let i=this.rules.inline.emStrongLDelim.exec(n);if(!(!i||i[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!t||this.rules.inline.punctuation.exec(t))){let s=[...i[0]].length-1,a,r,o=s,l=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+s);(i=h.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]){o+=r;continue}else if((i[5]||i[6])&&s%3&&!((s+r)%3)){l+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+l);let c=[...i[0]][0].length,p=n.slice(0,s+i.index+c+r);if(Math.min(s,r)%2){let f=p.slice(1,-1);return{type:"em",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}let d=p.slice(2,-2);return{type:"strong",raw:p,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(t),s=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return i&&s&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}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 t,i;return e[2]==="@"?(t=e[1],i="mailto:"+t):(t=e[1],i=t),{type:"link",raw:e[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let t,i;if(e[2]==="@")t=e[0],i="mailto:"+t;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);t=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},w=class j{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T,this.options.tokenizer=this.options.tokenizer||new M,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 t={other:m,block:P.normal,inline:I.normal};this.options.pedantic?(t.block=P.pedantic,t.inline=I.pedantic):this.options.gfm&&(t.block=P.gfm,this.options.breaks?t.inline=I.breaks:t.inline=I.gfm),this.tokenizer.rules=t}static get rules(){return{block:P,inline:I}}static lex(e,t){return new j(t).lex(e)}static lexInline(e,t){return new j(t).inlineTokens(e)}lex(e){e=e.replace(m.carriageReturn,`
30
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let i=this.inlineQueue[t];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){for(this.options.pedantic&&(e=e.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some(r=>(s=r.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let r=t.at(-1);s.raw.length===1&&r!==void 0?r.raw+=`
31
+ `:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
32
+ `)?"":`
33
+ `)+s.raw,r.text+=`
34
+ `+s.text,this.inlineQueue.at(-1).src=r.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
35
+ `)?"":`
36
+ `)+s.raw,r.text+=`
37
+ `+s.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},t.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let a=e;if(this.options.extensions?.startBlock){let r=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},o),typeof l=="number"&&l>=0&&(r=Math.min(r,l))}),r<1/0&&r>=0&&(a=e.substring(0,r+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){let r=t.at(-1);i&&r?.type==="paragraph"?(r.raw+=(r.raw.endsWith(`
38
+ `)?"":`
39
+ `)+s.raw,r.text+=`
40
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s),i=a.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let r=t.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
41
+ `)?"":`
42
+ `)+s.raw,r.text+=`
43
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s);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,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i=e,s=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let r=!1,o="";for(;e;){r||(o=""),r=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let c=t.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):t.push(l);continue}if(l=this.tokenizer.emStrong(e,i,o)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),t.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),t.push(l);continue}let h=e;if(this.options.extensions?.startInline){let c=1/0,p=e.slice(1),d;this.options.extensions.startInline.forEach(f=>{d=f.call({lexer:this},p),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(h=e.substring(0,c+1))}if(l=this.tokenizer.inlineText(h)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),r=!0;let c=t.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):t.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 t}},Q=class{options;parser;constructor(n){this.options=n||T}space(n){return""}code({text:n,lang:e,escaped:t}){let i=(e||"").match(m.notSpaceStart)?.[0],s=n.replace(m.endingNewline,"")+`
44
+ `;return i?'<pre><code class="language-'+_(i)+'">'+(t?s:_(s,!0))+`</code></pre>
45
+ `:"<pre><code>"+(t?s:_(s,!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,t=n.start,i="";for(let r=0;r<n.items.length;r++){let o=n.items[r];i+=this.listitem(o)}let s=e?"ol":"ul",a=e&&t!==1?' start="'+t+'"':"";return"<"+s+a+`>
51
+ `+i+"</"+s+`>
52
+ `}listitem(n){return`<li>${this.parser.parse(n.tokens)}</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="",t="";for(let s=0;s<n.header.length;s++)t+=this.tablecell(n.header[s]);e+=this.tablerow({text:t});let i="";for(let s=0;s<n.rows.length;s++){let a=n.rows[s];t="";for(let r=0;r<a.length;r++)t+=this.tablecell(a[r]);i+=this.tablerow({text:t})}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),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
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>${_(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:t}){let i=this.parser.parseInline(t),s=de(n);if(s===null)return i;n=s;let a='<a href="'+n+'"';return e&&(a+=' title="'+_(e)+'"'),a+=">"+i+"</a>",a}image({href:n,title:e,text:t,tokens:i}){i&&(t=this.parser.parseInline(i,this.parser.textRenderer));let s=de(n);if(s===null)return _(t);n=s;let a=`<img src="${n}" alt="${t}"`;return e&&(a+=` title="${_(e)}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:_(n.text)}},se=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""}checkbox({raw:n}){return n}},y=class H{options;renderer;textRenderer;constructor(e){this.options=e||T,this.options.renderer=this.options.renderer||new Q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new se}static parse(e,t){return new H(t).parse(e)}static parseInline(e,t){return new H(t).parseInline(e)}parse(e){let t="";for(let i=0;i<e.length;i++){let s=e[i];if(this.options.extensions?.renderers?.[s.type]){let r=s,o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=o||"";continue}}let a=s;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let r='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return t}parseInline(e,t=this.renderer){let i="";for(let s=0;s<e.length;s++){let a=e[s];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=o||"";continue}}let r=a;switch(r.type){case"escape":{i+=t.text(r);break}case"html":{i+=t.html(r);break}case"link":{i+=t.link(r);break}case"image":{i+=t.image(r);break}case"checkbox":{i+=t.checkbox(r);break}case"strong":{i+=t.strong(r);break}case"em":{i+=t.em(r);break}case"codespan":{i+=t.codespan(r);break}case"br":{i+=t.br(r);break}case"del":{i+=t.del(r);break}case"text":{i+=t.text(r);break}default:{let o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},z=class{options;block;constructor(n){this.options=n||T}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?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},gt=class{defaults=W();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=y;Renderer=Q;TextRenderer=se;Lexer=w;Tokenizer=M;Hooks=z;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(let i of n)switch(t=t.concat(e.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of s.rows)for(let r of a)t=t.concat(this.walkTokens(r.tokens,e));break}case"list":{let s=i;t=t.concat(this.walkTokens(s.items,e));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let r=s[a].flat(1/0);t=t.concat(this.walkTokens(r,e))}):s.tokens&&(t=t.concat(this.walkTokens(s.tokens,e)))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let i={...t};if(i.async=this.defaults.async||i.async||!1,t.extensions&&(t.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=e.renderers[s.name];a?e.renderers[s.name]=function(...r){let o=s.renderer.apply(this,r);return o===!1&&(o=a.apply(this,r)),o}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[s.level];a?a.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),i.extensions=e),t.renderer){let s=this.defaults.renderer||new Q(this.defaults);for(let a in t.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let r=a,o=t.renderer[r],l=s[r];s[r]=(...h)=>{let c=o.apply(s,h);return c===!1&&(c=l.apply(s,h)),c||""}}i.renderer=s}if(t.tokenizer){let s=this.defaults.tokenizer||new M(this.defaults);for(let a in t.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let r=a,o=t.tokenizer[r],l=s[r];s[r]=(...h)=>{let c=o.apply(s,h);return c===!1&&(c=l.apply(s,h)),c}}i.tokenizer=s}if(t.hooks){let s=this.defaults.hooks||new z;for(let a in t.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let r=a,o=t.hooks[r],l=s[r];z.passThroughHooks.has(a)?s[r]=h=>{if(this.defaults.async&&z.passThroughHooksRespectAsync.has(a))return(async()=>{let p=await o.call(s,h);return l.call(s,p)})();let c=o.call(s,h);return l.call(s,c)}:s[r]=(...h)=>{if(this.defaults.async)return(async()=>{let p=await o.apply(s,h);return p===!1&&(p=await l.apply(s,h)),p})();let c=o.apply(s,h);return c===!1&&(c=l.apply(s,h)),c}}i.hooks=s}if(t.walkTokens){let s=this.defaults.walkTokens,a=t.walkTokens;i.walkTokens=function(r){let o=[];return o.push(a.call(this,r)),s&&(o=o.concat(s.call(this,r))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return w.lex(n,e??this.defaults)}parser(n,e){return y.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let i={...t},s={...this.defaults,...i},a=this.onError(!!s.silent,!!s.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"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=n),s.async)return(async()=>{let r=s.hooks?await s.hooks.preprocess(e):e,o=await(s.hooks?await s.hooks.provideLexer():n?w.lex:w.lexInline)(r,s),l=s.hooks?await s.hooks.processAllTokens(o):o;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let h=await(s.hooks?await s.hooks.provideParser():n?y.parse:y.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(h):h})().catch(a);try{s.hooks&&(e=s.hooks.preprocess(e));let r=(s.hooks?s.hooks.provideLexer():n?w.lex:w.lexInline)(e,s);s.hooks&&(r=s.hooks.processAllTokens(r)),s.walkTokens&&this.walkTokens(r,s.walkTokens);let o=(s.hooks?s.hooks.provideParser():n?y.parse:y.parseInline)(r,s);return s.hooks&&(o=s.hooks.postprocess(o)),o}catch(r){return a(r)}}}onError(n,e){return t=>{if(t.message+=`
62
+ Please report this to https://github.com/markedjs/marked.`,n){let i="<p>An error occurred:</p><pre>"+_(t.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(t);throw t}}},S=new gt;function k(n,e){return S.parse(n,e)}k.options=k.setOptions=function(n){return S.setOptions(n),k.defaults=S.defaults,fe(k.defaults),k};k.getDefaults=W;k.defaults=T;k.use=function(...n){return S.use(...n),k.defaults=S.defaults,fe(k.defaults),k};k.walkTokens=function(n,e){return S.walkTokens(n,e)};k.parseInline=S.parseInline;k.Parser=y;k.parser=y.parse;k.Renderer=Q;k.TextRenderer=se;k.Lexer=w;k.lexer=w.lex;k.Tokenizer=M;k.Hooks=z;k.parse=k;k.options;k.setOptions;k.use;k.walkTokens;k.parseInline;y.parse;w.lex;var G=class{constructor(e=""){this._text="",this._displayedText="",this._pendingText="",this._text=e,this._pendingText=e}setText(e){this._text=e,this._displayedText&&e.includes(this._displayedText)?this._pendingText=e.substring(this._displayedText.length):(this._pendingText=this._text,this._displayedText="")}getText(){return this._displayedText}clearText(){this._displayedText="",this._text="",this._pendingText=""}updateDisplayText(){if(this._pendingText.length>0){let e=this._pendingText[0];if(e==="["||e==="<"||e==="!"){let t=this._matchMarkdownPattern(this._displayedText+this._pendingText,this._displayedText.length);if(t){let i=t.end-t.start,s=this._pendingText.substring(0,i);this._displayedText+=s,this._pendingText=this._pendingText.substring(i)}else this._displayedText+=e,this._pendingText=this._pendingText.substring(1)}else this._displayedText+=e,this._pendingText=this._pendingText.substring(1)}}_matchMarkdownPattern(e,t){let i=[/<sup>\[\[[^\]]+\]\]\([^)]+\)<\/sup>/,/\[\[[^\]]+\]\]\([^)]+\)/,/\[[^\]]+\]\([^)]+\)/,/!\[[^\]]*\]\([^)]+\)/],s=e.substring(t);for(let a of i){let r=s.match(a);if(r&&r.index===0)return{start:t,end:t+r[0].length}}return null}},U=class extends ae{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com",this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._currentResponse="",this._isLoading=!1,this._isLoadingText="",this.messages=[],this._translations=ce({name:"arcgis-solutions-assistant",blocking:!0}),this._isTyping=!1,this.closeAssistant=re(),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",t=>{t.key==="Enter"&&!t.shiftKey&&(t.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,token:1,open:5,conversationStore:16,_currentResponse:16,_isLoading:16,_isLoadingText:16,messages:16,_translations:16,_isTyping:16}}static{this.styles=Ie}get solutionAIurl(){return`${this.serverRoot}/skills/solution_deployment/chat`}get docAIurl(){return`${this.serverRoot}/skills/doc_ai_assistant/chat`}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let t={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(t.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 s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.loopRequest(s,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 s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token,this.solutionAIurl)}}async loopRequest(e,t,i){let s=i;this._isLoading=!0;let a=document.createElement("div");a.classList.add("response-message","message-content");let r=document.createElement("div");r.classList.add("display-none");let o=document.createElement("div");o.classList.add("display-none");let l=this._renderResponseBlock(a,r,o),h=new G(this._currentResponse),c={author:"ai",conversationId:e.conversationId,message:e.message??"",render:l};for(this.messages.push(c);e.hasMore;){await new Promise(x=>setTimeout(x,500));let u={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId};if(e.context)if(this.conversationStore.context=e.context,e.context.results&&!e.context.intent)for(let x of e.context.results)this._currentResponse=x.reply,this._currentResponse!==""&&(this._isLoading=!1,this._isTyping=!0,this._startTypeWriter(h,this._currentResponse,a,r,o)),e=await this.requestAIServer(u,t,s);else if(e.context.intent==="Solution question"){let x={message:e.message,conversationId:u.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};s=this.docAIurl,e=await this.requestAIServer(x,t,s)}else this._currentResponse=e.message??"",e.context.kind&&e.context.kind.toLowerCase()==="ArcGISErrorAsContext".toLowerCase()&&(this._currentResponse=this._translations.genericErrorMessage),this._currentResponse!==""&&(this._isLoading=!1,this._isTyping=!0,this._startTypeWriter(h,this._currentResponse,a,r,o)),e=await this.requestAIServer(u,t,s);else this._currentResponse=e.message??"",this._currentResponse!==""&&(this._isLoading=!1,this._isTyping=!0,this._startTypeWriter(h,this._currentResponse,a,r,o)),e=await this.requestAIServer(u,t,s)}this._isLoading=!1;let{context:p}=this.conversationStore,d=this.messages.length>=2?this._getMostRecentQuestion():"",f=typeof d=="string"?"":d?.message??"";if(p&&p.intent)switch(p.intent){case"Recommend solution":{if(p.results){let u=p.results,x=u.map(E=>`- ${E.title}`).join(`
63
+ `),v=this._renderSuggestedSolutions(u),q=this._renderFeedback(this._currentResponse+`
64
+ `+x,f,this.conversationStore.conversationId,p.intent);$(v,r),$(q,o)}else r.innerHTML="";this._scrollToBottom();break}default:{let u=this._renderFeedback(this._currentResponse,f,this.conversationStore.conversationId,p.intent);$(u,o),this._scrollToBottom();break}}else{if(p&&p.results&&!p.intent)for(let u of p.results){let x=this._renderSolutionsQuestionTable(u.ref,u.followupQuestions),v=this._renderFeedback(this._currentResponse,f,this.conversationStore.conversationId,"Solution question");$(x,r),$(v,o)}else if(p&&p.kind&&p.kind.toLowerCase()==="ArcGISErrorAsContext".toLowerCase()){let u=this._renderFeedback(this._currentResponse,f,this.conversationStore.conversationId,"Error");$(u,o)}this._scrollToBottom()}}async requestAIServer(e,t,i){try{let s=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",token:t},body:JSON.stringify(e)})).json();if(s)return s;throw new Error("No data returned")}catch(s){throw new Error(`Request failed: ${s}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.conversationId!=="-1"){this._resetConversation();let t={author:"system",conversationId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","","Other","speech-bubble-plus")};this.messages=[...this.messages,t],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,t,i,s){return b`
65
+ <div>
66
+ <calcite-button
67
+ appearance='transparent'
68
+ class='height-32-flex-auto'
69
+ icon-start='thumbs-up'
70
+ label='position feedback'
71
+ kind='neutral'
72
+ @click=${()=>{this._sendFeedback(e,t,"Good",i,s)}}
73
+ >
74
+ </calcite-button>
75
+
76
+ <calcite-button
77
+ appearance='transparent'
78
+ class='height-32-flex-auto'
79
+ icon-start='thumbs-down'
80
+ label='position feedback'
81
+ kind='neutral'
82
+ @click=${()=>{this._sendFeedback(e,t,"Bad",i,s)}}
83
+ >
84
+ </calcite-button>
85
+
86
+ <calcite-button
87
+ appearance='transparent'
88
+ class='height-32-flex-auto'
89
+ icon-start='copy'
90
+ label='position feedback'
91
+ kind='neutral'
92
+ @click=${a=>{this._copyResponseToClipboard(e,a)}}
93
+ >
94
+ </calcite-button>
95
+ </div>
96
+ `}_renderSolutionQuestionReferences(e){return b`
97
+ ${e.map(t=>b`
98
+ <div class='message-content-pad'>
99
+ <a href=${t.url} target='_blank'>
100
+ ${t.title}
101
+ </a>
102
+ </div>
103
+ `)}
104
+ `}_renderSolutionQuestionFollowup(e){return b`
105
+ ${e.map(t=>b`
106
+ <calcite-chip
107
+ class='chip-content cursor-pointer'
108
+ kind='brand'
109
+ label=${t}
110
+ @click=${()=>{this._submitFollowupQuestion(t)}}
111
+ >
112
+ ${t}
113
+ </calcite-chip>
114
+ `)}
115
+ `}_renderSolutionsQuestionTable(e,t){let i=this._renderSolutionQuestionReferences(e),s=this._renderSolutionQuestionFollowup(t);return b`
116
+ <div slot='description' class='message-content'>
117
+ <div style='display: flex; justify-content: flex-start;'>
118
+ <calcite-button
119
+ appearance='outline'
120
+ icon-end='chevron-down'
121
+ icon-start='link'
122
+ @click=${a=>{let r=a.currentTarget,o=r.parentElement.nextElementSibling;o.classList.toggle("collapsed"),r.setAttribute("icon-end",o.classList.contains("collapsed")?"chevron-down":"chevron-up")}}
123
+ >
124
+ ${e.length}
125
+ ${e.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}
126
+ </calcite-button>
127
+ </div>
128
+
129
+ <div class='references-container collapsed'>
130
+ ${i}
131
+ </div>
132
+ </div>
133
+
134
+ <div class='padding-top-10'>
135
+ ${s}
136
+ </div>
137
+ `}_renderSolutionCard(e,t){return b`
138
+ <a
139
+ class='solution-card'
140
+ id='${t}'
141
+ @click=${()=>this._emitItemIdFromAI(t)}
142
+ >
143
+ <calcite-card thumbnail-position='inline-start'>
144
+ <div slot='thumbnail'>
145
+ <img src='${e.thumbnail}' alt='Thumbnail' />
146
+ <calcite-chip icon='launch' label='View solution'>
147
+ ${this._translations.viewSolutionInApp}
148
+ </calcite-chip>
149
+ </div>
150
+
151
+ <h3 slot='heading'><b>${e.title}</b></h3>
152
+
153
+ <span slot='description'>${e.snippet}</span>
154
+ </calcite-card>
155
+ </a>
156
+ `}_renderResponseBlock(e,t,i){return b`<calcite-card class=system-message>${e}${t}${i}</calcite-card>`}_renderSimpleTextMessage(e,t,i,s,a){let r=this.messages.length>=2?this._getMostRecentQuestion():"",o=typeof r=="string"?"":r?.message??"";return t==="system"?b`<div class="message-content message-content-alignment">${a&&b`<calcite-icon .icon=${a}></calcite-icon>`||""}${e}</div>`:b`<calcite-card class=${le(t==="human"?"user-message":"system-message")}><div class="message-content">${e}${t==="ai"&&i!==""&&this._renderFeedback(e,o,i,s)||""}</div></calcite-card>`}_renderSuggestedSolutions(e){let t=e.map(i=>{let s=i.thumbnail.match(/\/items\/([a-f0-9]+)\//);return s?this._renderSolutionCard(i,s[1]):null}).filter(i=>i!==null);return b`
157
+ <div class='message-content'>
158
+ ${t}
159
+ </div>
160
+ `}render(){return b`<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?b`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral .disabled=${!!this._isLoading||this._isTyping}></calcite-button>`:""}<div class="chat-messages" ${F(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&b`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&b`<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 .disabled=${!!this._isLoading||this._isTyping} ${F(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading||this._isTyping}></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(t=>{let i=t.typeKeywords.filter(a=>a.includes("solutionid")),s=new CustomEvent("solutionIDFromAssistant",{detail:i.length>0?i[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(s)})}_submitFollowupQuestion(e){let t=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(t)}_getMostRecentQuestion(){return[...this.messages].reverse().find(e=>e.author==="human")||null}async _querySolutions(e){let t=await ze(e);if("error"in t)throw new Error(t.error);return t}_sendFeedback(e,t,i,s,a){let r=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(i)}&field:question=${encodeURIComponent(t)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({intent:a}))}&field:conversation_id=${encodeURIComponent(s)}&field:version=${encodeURIComponent("v1")}`;window.open(r,"_blank")}_copyResponseToClipboard(e,t){navigator.clipboard.writeText(e);let i=t.currentTarget;i.iconStart="check",setTimeout(()=>{i.iconStart="copy"},3e3)}_startTypeWriter(e,t,i,s,a){if(t.length>0){e.setText(t);let r=async()=>{e.updateDisplayText();let o=e.getText();i.innerHTML=await k.parse(o),o.length<this._currentResponse.length?(this._scrollToBottom(),setTimeout(r,5)):(this._isTyping=!1,s.classList.remove("display-none"),a.classList.remove("display-none"))};r()}}};oe("arcgis-solutions-assistant",U);export{U as ArcgisSolutionsAssistant};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import{d as r}from"./NDBQUUTO.js";import{b as n}from"./JFT5UZJT.js";import{C as d,D as c,E as o,G as a,h as l,i}from"./QH7G7WSC.js";import"./XQURVTFE.js";var p=l`/** @license
3
+ v1.2.0-next.31 */
4
+ import{d as r}from"./VWCVOS6M.js";import{b as n}from"./W3UAB5V7.js";import{D as d,E as c,F as o,H as a,h as l,i}from"./HTJXA6GN.js";import"./KHJ277OT.js";var p=l`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import a from"./BDJVTVGV.js";export default $arcgis.t(([{k:i}])=>{function h(n,t){let r=[];return n.forEach(e=>{t.has(e.id)&&r.push(e)}),r}function w(n,t,r){if(t<1||n.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:n.length}};let e=Math.min(t+r,n.length+1),s=e<n.length?e:-1;return{cards:n.slice(t-1,e-1),paging:{start:t,num:e-t,nextStart:s,total:n.length}}}function g(n,t){let r=d(n);return l(r,t)}function l(n,t){let r=[];return t.forEach(e=>{let s=c(e);s&&n.indexOf(s)>=0&&e.relatedSolutions&&(r=r.concat(e.relatedSolutions))}),new Set(r)}function c(n){let t="solutionid-",r=n.typeKeywords.filter(s=>s.startsWith(t)),e=null;return Array.isArray(r)&&r.length>0&&(e=r[0].substring(t.length)),e}function d(n){let t=[];return n.forEach(r=>{let e=c(r);e&&t.push(e)}),t=Array.from(new Set(t)),t}function m(n){let t="solutionversion-",r=(n.typeKeywords||[]).reduce((e,s)=>(s.startsWith(t)&&(e=Number(s.replace(t,""))),e),-1);return isNaN(r)?-1:r}function p(n,t,r){let e,s=r==="asc"?1:-1;switch(t){case"created":e=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":e=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":e=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:e=()=>0;break}return n.sort(e),n}function u(n){return n.toLowerCase().replace(/\s+/g,"-")}function y(n,t){return n.find(r=>u(r.title)===t||t===r.id)}function b(n,t){let r="solutionid-";return n.find(e=>i(e.typeKeywords,r)===t)}function S(n,t){let r=n.find(e=>t===e.deployCommonId);return u(r.title)}return{a:h,b:w,c:g,d:m,e:p,f:u,g:y,h:b,i:S}},a)
3
+ v1.2.0-next.31 */
4
+ import a from"./AA3OODB2.js";export default $arcgis.t(([{k:i}])=>{function h(n,t){let r=[];return n.forEach(e=>{t.has(e.id)&&r.push(e)}),r}function w(n,t,r){if(t<1||n.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:n.length}};let e=Math.min(t+r,n.length+1),s=e<n.length?e:-1;return{cards:n.slice(t-1,e-1),paging:{start:t,num:e-t,nextStart:s,total:n.length}}}function g(n,t){let r=d(n);return l(r,t)}function l(n,t){let r=[];return t.forEach(e=>{let s=c(e);s&&n.indexOf(s)>=0&&e.relatedSolutions&&(r=r.concat(e.relatedSolutions))}),new Set(r)}function c(n){let t="solutionid-",r=n.typeKeywords.filter(s=>s.startsWith(t)),e=null;return Array.isArray(r)&&r.length>0&&(e=r[0].substring(t.length)),e}function d(n){let t=[];return n.forEach(r=>{let e=c(r);e&&t.push(e)}),t=Array.from(new Set(t)),t}function m(n){let t="solutionversion-",r=(n.typeKeywords||[]).reduce((e,s)=>(s.startsWith(t)&&(e=Number(s.replace(t,""))),e),-1);return isNaN(r)?-1:r}function p(n,t,r){let e,s=r==="asc"?1:-1;switch(t){case"created":e=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":e=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":e=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:e=()=>0;break}return n.sort(e),n}function u(n){return n.toLowerCase().replace(/\s+/g,"-")}function y(n,t){return n.find(r=>u(r.title)===t||t===r.id)}function b(n,t){let r="solutionid-";return n.find(e=>i(e.typeKeywords,r)===t)}function S(n,t){let r=n.find(e=>t===e.deployCommonId);return u(r.title)}return{a:h,b:w,c:g,d:m,e:p,f:u,g:y,h:b,i:S}},a)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
3
+ v1.2.0-next.31 */
4
4
  var e=(a=>(a.GRID="GRID",a.HORIZONTAL="HORIZONTAL",a.VERTICAL="VERTICAL",a))(e||{}),o=(a=>(a[a.Add=0]="Add",a[a.Update=1]="Update",a[a.Remove=2]="Remove",a[a.None=3]="None",a[a.Obsolete=4]="Obsolete",a))(o||{}),E=(a=>(a[a.LIST=0]="LIST",a[a.SELECT=1]="SELECT",a[a.EXPORT=2]="EXPORT",a[a.REFINE=3]="REFINE",a))(E||{}),t=(a=>(a.ADD="ADD",a.REMOVE="REMOVE",a))(t||{});var i=(a=>(a.SEARCH="SEARCH",a.SELECT="SELECT",a.SKETCH="SKETCH",a.REFINE="REFINE",a))(i||{}),n=(a=>(a.CSV="CSV",a.PDF="PDF",a))(n||{}),r=(a=>(a.SKETCH="SKETCH",a.REFINE="REFINE",a))(r||{}),I="{{params.wkid||",N="}}",u=500,l=(a=>(a.AEC="Architecture, Engineering, and Construction (AEC)",a.AIRPORTPORTRAIL="Airports, Ports, and Rails",a.BUSINESS="Business",a.CONSERVATION="Conservation",a.DEFENSE="Defense",a.FACILITIES="Facilities",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.PIPELINE="Pipeline",a.PUBLICSAFETY="Public Safety",a.RENEWABLES="Renewables",a.STATEANDLOCALGOVERNMENT="State and Local Government",a.TELECOMMUNICATIONS="Telecommunications",a.UTILITIES="Utilities",a))(l||{}),A=(a=>(a.AIRPORT="Airports",a.AGRICULTURE="Agriculture",a.ASSESSMENTANDTAXATION="Assessment and Taxation",a.DISTRICTENERGY="District Energy",a.ELECTIONS="Elections",a.ELECTRIC="Electric",a.EMERGENCYMANAGEMENT="Emergency Management",a.ENVIRONMENTANDNATURALRESOURCES="Environment and Natural Resources",a.FIRESERVICE="Fire Service",a.FISHANDWILDLIFE="Fish and Wildlife",a.GAS="Gas",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.LAWENFORCEMENT="Law Enforcement",a.NATURALRESOURCES="Natural Resources",a.PARKS="Parks",a.PLANNINGANDDEVELOPMENT="Planning and Development",a.PROTECTEDAREAS="Protected Areas",a.PUBLICWORKS="Public Works",a.SEWER="Sewer",a.STORMWATER="Stormwater",a.TELECOMMUNICATIONS="Telecommunications",a.TRANSPORTATION="Transportation",a.WATER="Water Distribution",a))(A||{});var T=(a=>(a.OWNER="My solutions",a.ORGANIZATION="My organization's solutions",a))(T||{}),R=(a=>(a.HUBPREMIUM="solutions:hubPremium",a.NOTEBOOK="solutions:notebook",a.TRACKINGBASE="solutions:locationtracking",a.TRACKING="solutions:locationtracking:tracking",a.TRACKINGADMIN="solutions:locationtracking:admin",a.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",a.VELOCITY="solutions:velocity",a.WORKFLOW="solutions:workflowManager",a))(R||{});var S='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',s="(typekeywords:Solution,Template)",c="portal:user:addExternalMembersToGroup",C="portal:user:createItem",O="portal:user:createGroup",L="portal:publisher:publishBigDataAnalytics",p="portal:publisher:publishFeatures",D="portal:publisher:publishFeeds",d="portal:publisher:publishServerGPServices",P="portal:publisher:publishRealTimeAnalytics",m="portal:user:shareToGroup",b="solutions:hubPremium",g="solutions:notebook",G="solutions:locationtracking:admin:tracking",M="solutions:locationtracking:tracking",h="solutions:locationtracking:admin",F="solutions:velocity",k="solutions:workflowManager",H=250;export{e as a,o as b,E as c,t as d,i as e,n as f,r as g,I as h,N as i,u as j,l as k,A as l,T as m,R as n,S as o,s as p,c as q,C as r,O as s,L as t,p as u,D as v,d as w,P as x,m as y,b as z,g as A,G as B,M as C,h as D,F as E,k as F,H as G};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import a from"./2ZIO725Y.js";import{m as i,o as c}from"./OCTGDVTD.js";export default $arcgis.t(([{c:d}])=>{async function I(r,s,o,e,t=c,a="created",l="desc",u=!1,f=[],g=[],m){if(!r?.IsSignedIn)return;let n={q:t,filter:"type:Solution",sortField:a,sortOrder:l,delay:u,categories:f};return n.q+=p(r,m),await y(s,n,e,g)}function p(r,s){let o="",e=r.PortalUserOrg,t=r.PortalUserName;return e&&(o+=" orgid:"+e),s!==i.ORGANIZATION&&t&&(o+=" owner:"+t),o}async function y(r,s,o,e){let t=await o.requestDeployedSolutionCards(s,r),a=d(t.cards,e);return{cards:t.cards,relatedSolutions:a}}return I},a)
3
+ v1.2.0-next.31 */
4
+ import a from"./ESDGUCHM.js";import{m as i,o as c}from"./ESLRUAYH.js";export default $arcgis.t(([{c:d}])=>{async function I(r,s,o,e,t=c,a="created",l="desc",u=!1,f=[],g=[],m){if(!r?.IsSignedIn)return;let n={q:t,filter:"type:Solution",sortField:a,sortOrder:l,delay:u,categories:f};return n.q+=p(r,m),await y(s,n,e,g)}function p(r,s){let o="",e=r.PortalUserOrg,t=r.PortalUserName;return e&&(o+=" orgid:"+e),s!==i.ORGANIZATION&&t&&(o+=" owner:"+t),o}async function y(r,s,o,e){let t=await o.requestDeployedSolutionCards(s,r),a=d(t.cards,e);return{cards:t.cards,relatedSolutions:a}}return I},a)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import{d as w,e as L}from"./W5WC3DQR.js";import"./OCTGDVTD.js";import"./GPLD4OLN.js";import{b as V}from"./65ZZ77SE.js";import{a as b}from"./65GKVZWM.js";import"./PCJIW7J4.js";import"./STNJMHAQ.js";import{b as v}from"./JFT5UZJT.js";import{C as c,D as p,E as M,G as m,h as y,i as l,o as h,r as f}from"./QH7G7WSC.js";import"./XQURVTFE.js";var S=y`@layer{/** @license
3
+ v1.2.0-next.31 */
4
+ import{d as w,e as L}from"./NOCFSXVG.js";import"./ESLRUAYH.js";import"./POS6K2UE.js";import{b as V}from"./R2Y4BFBA.js";import{a as b}from"./WQBQCO4B.js";import"./4WSQCQFN.js";import"./MAZUKK57.js";import{b as v}from"./W3UAB5V7.js";import{D as c,E as p,F as M,H as m,h as y,i as l,p as h,s as f}from"./HTJXA6GN.js";import"./KHJ277OT.js";var S=y`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import{b as c}from"./65ZZ77SE.js";import{b as d}from"./JFT5UZJT.js";import{C as o,D as n,E as h,h as r,i as a,o as s}from"./QH7G7WSC.js";import"./XQURVTFE.js";var m=r`/** @license
3
+ v1.2.0-next.31 */
4
+ import{b as c}from"./R2Y4BFBA.js";import{b as d}from"./W3UAB5V7.js";import{D as o,E as n,F as h,h as r,i as a,p as s}from"./HTJXA6GN.js";import"./KHJ277OT.js";var m=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
3
+ v1.2.0-next.31 */
4
4
  var p;(function(e){e.BMP="bmp",e.GIF="gif",e.JPG="jpg",e.JPG_PNG="jpgpng",e.PNG="png",e.PNG8="png8",e.PNG24="png24",e.TIFF="tiff",e.PNG32="png32",e.BIP="bip",e.BSQ="bsq",e.LERC="lerc",e.CSV="csv",e.EXCEL="excel",e.FEATURE_COLLECTION="featureCollection",e.FILE_GDB="filegdb",e.GEOJSON="geojson",e.GEO_PACKAGE="geoPackage",e.JSON="json",e.KML="kml",e.SHAPEFILE="shapefile",e.SQLITE="sqlite"})(p||(p={}));var t;(function(e){e.PENDING="pending",e.PROCESSING="processing",e.CONVERTING="converting",e.COMPLETED="completed",e.FAILED="failed"})(t||(t={}));var P=class extends Error{constructor(s){super(s.rawMessage),this.name="ArcgisHubDownloadError",this.message=s.rawMessage,this.messageId=s.messageId,this.operation=s.operation}};export{p as a,t as b,P as c};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import{b as p,d as a,e as h,f as E}from"./FA3IKFAL.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
3
+ v1.2.0-next.31 */
4
+ import{b as p,d as a,e as h,f as E}from"./SMNRWNUV.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.30 */
4
- import{a as s}from"./CYDNA2QI.js";import"./ZGWPTRGZ.js";import"./5HZVV4CF.js";import"./EDB5QBJ4.js";import"./ZLWE4SGQ.js";import{a as r,b as a}from"./7QLGF5J6.js";import"./P32GLMOO.js";import"./GAQ3EPIU.js";import"./C6XXEAWS.js";import{a as o}from"./V33LR6IS.js";import{a as i}from"./NQNIGRVW.js";import"./L4ENNIQZ.js";import"./FA3IKFAL.js";import"./BHDNLSI7.js";import"./2GMVKD6U.js";import"./HYVUOIDV.js";import"./74G765B3.js";import"./CAC5OPSW.js";import"./E6CHHVGK.js";import"./MRRQXIAY.js";import"./ITJX53EA.js";import"./AK4FP6HL.js";import"./PNAS5XAC.js";import"./DUBCPEXD.js";import"./MXKXWU54.js";import"./3Z6YZFUQ.js";import"./LWNDAKHU.js";import"./HC4IU67I.js";import"./2YRUPZI2.js";import"./RBY55AW4.js";import"./OGFRY2XT.js";import"./KRGPHVWG.js";import"./D2D2CPBJ.js";import"./RYTGUQNW.js";import"./GGMFABEF.js";import"./3VWHKZED.js";import"./MCPVXPMM.js";import"./JC7USH53.js";import"./HDWF5BGC.js";import"./XQURVTFE.js";var u=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"survey",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{u as buildUiSchema};
3
+ v1.2.0-next.31 */
4
+ import{a as s}from"./VQIF3HW2.js";import"./UE2IX2RL.js";import"./VP4CHRDT.js";import"./32OKNC7F.js";import"./7P6J3DF5.js";import{a as r,b as a}from"./WBLATNLZ.js";import"./QCBF6D2I.js";import"./HMVNFKGE.js";import"./2KCNUGHU.js";import{a as o}from"./SBR5OKMT.js";import{a as i}from"./UV2WNCQF.js";import"./F5A5P5TO.js";import"./SMNRWNUV.js";import"./YARWRAKS.js";import"./ZGABFMI5.js";import"./O7S3FCYR.js";import"./6GINIJMQ.js";import"./AQMXUMFV.js";import"./NMKJ5JOM.js";import"./6KVTLN7I.js";import"./FWANARJ7.js";import"./OXM25VGF.js";import"./IBGVJQ3D.js";import"./JSKC5AKJ.js";import"./ZGCTHCV6.js";import"./A56WOLMU.js";import"./ZWPKTGXD.js";import"./REITZYXX.js";import"./5RVBDF5G.js";import"./BEXA43V2.js";import"./OGODOUBS.js";import"./KYQKVXNP.js";import"./UHZSVZPK.js";import"./2GPTZNVI.js";import"./3FHCXLTP.js";import"./ZN4UP4WI.js";import"./ABT5YG3I.js";import"./6FQEMJLG.js";import"./CZ5X5637.js";import"./KHJ277OT.js";var u=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"survey",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{u as buildUiSchema};