@esri/solutions-components 1.0.0-next.20250604 → 1.0.0-next.20250610

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 (462) hide show
  1. package/dist/assets/spatialReferences.json.d.ts +3 -0
  2. package/dist/cdn/{TLBLKOSP.js → 243XIJUK.js} +2 -2
  3. package/dist/cdn/{DEOYLAEF.js → 25SG2GT6.js} +2 -2
  4. package/dist/cdn/26V65KO5.js +4 -0
  5. package/dist/cdn/{O6YU35I2.js → 2KAZVBXF.js} +2 -2
  6. package/dist/cdn/2NFTBOR6.js +4 -0
  7. package/dist/cdn/{IAV6RAUX.js → 2QLL7KRA.js} +3 -3
  8. package/dist/cdn/{XIROVWXB.js → 2SPB6YWD.js} +1 -1
  9. package/dist/cdn/{OVYTYWMG.js → 2VLL65Q3.js} +2 -2
  10. package/dist/cdn/{LKWWHXOA.js → 2ZBKRLIH.js} +2 -2
  11. package/dist/cdn/{D4RSDPZE.js → 2ZYGIAK7.js} +2 -2
  12. package/dist/cdn/3FYSHEGC.js +4 -0
  13. package/dist/cdn/{BS33EVAP.js → 3GQWIJEV.js} +2 -2
  14. package/dist/cdn/{ALD6NWTO.js → 3IM72Q7I.js} +2 -2
  15. package/dist/cdn/3MMNPTWA.js +4 -0
  16. package/dist/cdn/3RSE7GWO.js +18 -0
  17. package/dist/cdn/3TPK447W.js +18 -0
  18. package/dist/cdn/{PODWXGKR.js → 3U5ZQLVD.js} +2 -2
  19. package/dist/cdn/{BPGVSHQW.js → 3YU6HJT3.js} +2 -2
  20. package/dist/cdn/{AEPIDWNF.js → 3ZZA5SJJ.js} +2 -2
  21. package/dist/cdn/4BBMUYOY.js +4 -0
  22. package/dist/cdn/{UCHW2VOH.js → 4CU2JG7Y.js} +2 -2
  23. package/dist/cdn/{ADCN5EQ6.js → 4D7Q4GOL.js} +2 -2
  24. package/dist/cdn/{K7MDBVZ5.js → 4RCKKVLX.js} +2 -2
  25. package/dist/cdn/{CTUCKF3P.js → 4REMJIC2.js} +2 -2
  26. package/dist/cdn/{ZTMR6MQW.js → 4YZYX25D.js} +2 -2
  27. package/dist/cdn/{D2PEMAQB.js → 55WTY3OW.js} +2 -2
  28. package/dist/cdn/{WICNCAEP.js → 5BVRVDRV.js} +2 -2
  29. package/dist/cdn/5FJYF35Q.js +18 -0
  30. package/dist/cdn/{AF677W6B.js → 5GOMCD3R.js} +2 -2
  31. package/dist/cdn/{MMGAOSLP.js → 5PTXJEIG.js} +1 -1
  32. package/dist/cdn/{ZPVOBCSG.js → 5QW7OUY4.js} +2 -2
  33. package/dist/cdn/{R3KXDLBC.js → 62U5XQ53.js} +2 -2
  34. package/dist/cdn/{FLHA6SUG.js → 6J57YUW2.js} +2 -2
  35. package/dist/cdn/{L3EOUKGK.js → 6JMHJ4JX.js} +2 -2
  36. package/dist/cdn/{X3ULYFMR.js → 6JNDGVGH.js} +2 -2
  37. package/dist/cdn/{QHAATBTL.js → 6MX6UN7I.js} +2 -2
  38. package/dist/cdn/{7UF7ASVK.js → 6N4W6KCO.js} +2 -2
  39. package/dist/cdn/{CB6KYK3A.js → 6POZOMRQ.js} +2 -2
  40. package/dist/cdn/{AMWVUVI2.js → 6QCOPT4C.js} +2 -2
  41. package/dist/cdn/{4FSK32YK.js → 6QFNQCBR.js} +2 -2
  42. package/dist/cdn/{2WTLR7AF.js → 6SWIDSO3.js} +2 -2
  43. package/dist/cdn/{4E3IKHTV.js → 6XDCOPQY.js} +1 -1
  44. package/dist/cdn/{6YLZDF5Z.js → 6ZFIZXBP.js} +2 -2
  45. package/dist/cdn/{VT5P4INT.js → 6ZSHJ5AZ.js} +1 -1
  46. package/dist/cdn/747TJLHD.js +4 -0
  47. package/dist/cdn/7CYK6OHD.js +4 -0
  48. package/dist/cdn/{3UOZA57X.js → 7EC2QANE.js} +2 -2
  49. package/dist/cdn/7KHJWE7I.js +46 -0
  50. package/dist/cdn/7NVOEDDR.js +4 -0
  51. package/dist/cdn/{JMLCAWVB.js → 7NYELHIW.js} +2 -2
  52. package/dist/cdn/{M2XRDDQA.js → 7PGOUADZ.js} +2 -2
  53. package/dist/cdn/{2KM6GVBX.js → 7QIPUZMZ.js} +2 -2
  54. package/dist/cdn/{IY5MA5TQ.js → 7URYQJYI.js} +2 -2
  55. package/dist/cdn/{Z56WHDSU.js → A57VSTIU.js} +2 -2
  56. package/dist/cdn/{IPTJRUEL.js → A7I5BLUD.js} +2 -2
  57. package/dist/cdn/{6QFHZ3JL.js → A7XA3HJY.js} +2 -2
  58. package/dist/cdn/{KYOJO322.js → AA2RTEXB.js} +2 -2
  59. package/dist/cdn/{YA4UNEDL.js → AE4QMTGD.js} +2 -2
  60. package/dist/cdn/AJ4EANAJ.js +4 -0
  61. package/dist/cdn/{NKQJ45UL.js → AKVBZAV2.js} +2 -2
  62. package/dist/cdn/AL32QPJO.js +18 -0
  63. package/dist/cdn/{KKS7II75.js → AMA3CIUW.js} +2 -2
  64. package/dist/cdn/{76BAM4JD.js → ANDBAAW7.js} +2 -2
  65. package/dist/cdn/{YWL5BSMR.js → AO22ELU2.js} +2 -2
  66. package/dist/cdn/{OI44SOUH.js → AO3Y73S4.js} +2 -2
  67. package/dist/cdn/{DQF7T3WP.js → APPDDPRJ.js} +2 -2
  68. package/dist/cdn/{LSZWLE7J.js → ARFHWNZW.js} +2 -2
  69. package/dist/cdn/{OGMFH36G.js → AZRDVXFS.js} +2 -2
  70. package/dist/cdn/BCT6TYYF.js +4 -0
  71. package/dist/cdn/BJEE2QDX.js +4 -0
  72. package/dist/cdn/{ANWOHFXY.js → BMCGFY4D.js} +2 -2
  73. package/dist/cdn/{KSWXMOC6.js → C2WZRDNU.js} +2 -2
  74. package/dist/cdn/{RIR7ISEG.js → CHIYX226.js} +2 -2
  75. package/dist/cdn/{CEJDTHNZ.js → CHPCWQV3.js} +1 -1
  76. package/dist/cdn/{FCYQRR3U.js → CKPYQPTD.js} +2 -2
  77. package/dist/cdn/{Y4ZIUU3O.js → COVJW67Z.js} +2 -2
  78. package/dist/cdn/{ICYWQWLJ.js → CQQABTQM.js} +2 -2
  79. package/dist/cdn/{THV4VHVL.js → CTYWBQY2.js} +2 -2
  80. package/dist/cdn/{BE5PQLO3.js → CUNBBRGG.js} +2 -2
  81. package/dist/cdn/{NBTA2YSB.js → CZGM62A6.js} +2 -2
  82. package/dist/cdn/{7VUGOBSM.js → D3O2HT2V.js} +2 -2
  83. package/dist/cdn/{HFUW7B3U.js → D5G2QLXU.js} +2 -2
  84. package/dist/cdn/{JMXRRM2J.js → DAEBIZTJ.js} +2 -2
  85. package/dist/cdn/DI3SB5LW.js +4 -0
  86. package/dist/cdn/{Q2UDHSAN.js → DJD52FAE.js} +3 -3
  87. package/dist/cdn/{NQMT3ZM2.js → DKKDSFW7.js} +2 -2
  88. package/dist/cdn/{7TR632PO.js → DWL6QFE4.js} +2 -2
  89. package/dist/cdn/DX7BBY5L.js +18 -0
  90. package/dist/cdn/DYZLHNVS.js +4 -0
  91. package/dist/cdn/{JYHFFQPV.js → DZTZIDHJ.js} +2 -2
  92. package/dist/cdn/{UQKWMKYX.js → E4GHAC43.js} +2 -2
  93. package/dist/cdn/{UZS6KXNI.js → E5SVQDAC.js} +2 -2
  94. package/dist/cdn/{OT3LBEYQ.js → E6LAV57F.js} +2 -2
  95. package/dist/cdn/{ZFQHFXDO.js → E7LSGXZN.js} +2 -2
  96. package/dist/cdn/{KCQU26AE.js → E7TY2OIZ.js} +2 -2
  97. package/dist/cdn/{YNIZ4XXM.js → EBHIEP3O.js} +2 -2
  98. package/dist/cdn/{QOKOI3NT.js → ECUMDGF6.js} +2 -2
  99. package/dist/cdn/{GZEPT2M3.js → EDPMTOWD.js} +2 -2
  100. package/dist/cdn/{ZCRJUKEL.js → EGTQT3ZY.js} +2 -2
  101. package/dist/cdn/{GV4VMWZC.js → EHA23YLG.js} +2 -2
  102. package/dist/cdn/{42G7HHTM.js → EJ7MPJF2.js} +2 -2
  103. package/dist/cdn/{CJNGBIUI.js → ELFPC4FQ.js} +2 -2
  104. package/dist/cdn/{PPLIT4QW.js → EOURQHYH.js} +2 -2
  105. package/dist/cdn/{RJVPADY4.js → EWLVZYDD.js} +2 -2
  106. package/dist/cdn/{XWT4JOO6.js → EWPN7Y3J.js} +2 -2
  107. package/dist/cdn/{USOHU6ZJ.js → EY76BJOK.js} +2 -2
  108. package/dist/cdn/{JUUBSWSN.js → EZROAF3H.js} +2 -2
  109. package/dist/cdn/{SU7JDERD.js → F75ZTCHZ.js} +2 -2
  110. package/dist/cdn/{O5TASUMK.js → FGIPZYFM.js} +3 -3
  111. package/dist/cdn/{I2DY4IS2.js → FNMXMPWJ.js} +2 -2
  112. package/dist/cdn/{KAN7CBK7.js → FO3XKEOC.js} +1 -1
  113. package/dist/cdn/{5UYYGX3U.js → FWTBUEHA.js} +2 -2
  114. package/dist/cdn/{GMCLBVIJ.js → G3FC7NQX.js} +6 -6
  115. package/dist/cdn/{NOWWSO43.js → G54HYU4T.js} +2 -2
  116. package/dist/cdn/G6HN6TFX.js +4 -0
  117. package/dist/cdn/{EMZ6RPP3.js → GA2ZUKPH.js} +2 -2
  118. package/dist/cdn/{OZDEHP24.js → GLQGCQKQ.js} +1 -1
  119. package/dist/cdn/{RN47VRJO.js → GLZNOZSV.js} +2 -2
  120. package/dist/cdn/{6KZH4YCI.js → GRH6L6AX.js} +1 -1
  121. package/dist/cdn/{K4J7ONE5.js → GT7ZLIPV.js} +1 -1
  122. package/dist/cdn/{54BQVAZQ.js → GWCLKO7W.js} +1 -1
  123. package/dist/cdn/GXLRWAQM.js +4 -0
  124. package/dist/cdn/GZTSZRL2.js +4 -0
  125. package/dist/cdn/{LFDYLJKA.js → H2TUSR7R.js} +1 -1
  126. package/dist/cdn/{AC6N4APV.js → H7XUQNKK.js} +1 -1
  127. package/dist/cdn/{ALLFENVH.js → HAXSU4N2.js} +3 -3
  128. package/dist/cdn/HDPFTEW7.js +4 -0
  129. package/dist/cdn/{Y2TYQRMX.js → HIXGXDSF.js} +2 -2
  130. package/dist/cdn/{NDYM7KNN.js → HJW7MRV7.js} +2 -2
  131. package/dist/cdn/{MWHO4QDE.js → HPIQJM5V.js} +2 -2
  132. package/dist/cdn/{VSXWXDUG.js → HR26NMCP.js} +2 -2
  133. package/dist/cdn/{KEJK7WEU.js → HRXPEGPN.js} +2 -2
  134. package/dist/cdn/{7AYXAEZ4.js → HTGPVMDF.js} +4 -4
  135. package/dist/cdn/{J2IBVR4K.js → HY2FPZMQ.js} +3 -3
  136. package/dist/cdn/I5BHAIXT.js +18 -0
  137. package/dist/cdn/{3ML7QFWK.js → I6IP3HEU.js} +1 -1
  138. package/dist/cdn/{NKVMRM3O.js → IAYSY7E4.js} +2 -2
  139. package/dist/cdn/{VNATQD74.js → IDOXNWMU.js} +2 -2
  140. package/dist/cdn/{KBJOJOJ4.js → IQIUJCL5.js} +1 -1
  141. package/dist/cdn/{RTSUY2Q2.js → IQZR2JNQ.js} +2 -2
  142. package/dist/cdn/{KCGRRB43.js → IWQEYRKW.js} +2 -2
  143. package/dist/cdn/J32WUI3V.js +4 -0
  144. package/dist/cdn/{B24P555R.js → J42OBAV6.js} +2 -2
  145. package/dist/cdn/{PCE2GNPD.js → JA6ZHJAG.js} +1 -1
  146. package/dist/cdn/{5ZN3LDSR.js → JEFKNJI4.js} +2 -2
  147. package/dist/cdn/{PDQQ3CKY.js → JFIQPHVY.js} +1 -1
  148. package/dist/cdn/JHGRJIHO.js +18 -0
  149. package/dist/cdn/JRP43TMR.js +18 -0
  150. package/dist/cdn/{QLBAKOYA.js → JTR6HRTY.js} +2 -2
  151. package/dist/cdn/{UGHIR2H5.js → JTSY6HU4.js} +2 -2
  152. package/dist/cdn/JXXQJ623.js +18 -0
  153. package/dist/cdn/{Z2XU5LLK.js → KB55TNLB.js} +2 -2
  154. package/dist/cdn/{NYPIOWTH.js → KKHWQSXB.js} +2 -2
  155. package/dist/cdn/KLYS5Y7D.js +4 -0
  156. package/dist/cdn/{6XIFWTU3.js → KMLGXG55.js} +2 -2
  157. package/dist/cdn/{55ER3JZZ.js → KPZNCFK7.js} +1 -1
  158. package/dist/cdn/{HLWVXTFA.js → KVDLSZT5.js} +2 -2
  159. package/dist/cdn/{E7CZ4ZJ7.js → KXIP4DWR.js} +3 -3
  160. package/dist/cdn/{Z7JJZ3FM.js → KZ5AJUM6.js} +2 -2
  161. package/dist/cdn/LC4T5GIX.js +4 -0
  162. package/dist/cdn/LFIVJEK2.js +4 -0
  163. package/dist/cdn/{FHUPZXRA.js → LMDJKC64.js} +2 -2
  164. package/dist/cdn/LOMV7XIZ.js +4 -0
  165. package/dist/cdn/{OJALXFPS.js → LQVTKXFQ.js} +2 -2
  166. package/dist/cdn/{63FJFV7Z.js → LR42KSD7.js} +3 -3
  167. package/dist/cdn/{SCFIKT66.js → LUCGZBV3.js} +2 -2
  168. package/dist/cdn/{XC5VKQJJ.js → LUWKLSCB.js} +2 -2
  169. package/dist/cdn/{5IXEWYS7.js → LZ37AJKN.js} +2 -2
  170. package/dist/cdn/{2EM743GZ.js → M4X65SJB.js} +2 -2
  171. package/dist/cdn/{4ALXTQ7N.js → M74AMYXF.js} +2 -2
  172. package/dist/cdn/MFATTJGH.js +6 -0
  173. package/dist/cdn/{IACEMZB4.js → MGTISYNJ.js} +2 -2
  174. package/dist/cdn/{6426ECPL.js → MLRAY2VI.js} +2 -2
  175. package/dist/cdn/MSN724ZV.js +4 -0
  176. package/dist/cdn/{Q65D6PKP.js → MXTL3VB4.js} +2 -2
  177. package/dist/cdn/{2ZYEO4QU.js → N4PA6ZFU.js} +2 -2
  178. package/dist/cdn/NB6P2ZLZ.js +18 -0
  179. package/dist/cdn/{M3IMWYAR.js → NS5FDWXK.js} +2 -2
  180. package/dist/cdn/{E6UHW6W4.js → O5WPS53A.js} +1 -1
  181. package/dist/cdn/{XC55JAZC.js → O7LAX6TU.js} +2 -2
  182. package/dist/cdn/{3R6FI5UM.js → OBGE3PJZ.js} +2 -2
  183. package/dist/cdn/{TA4R7WKW.js → ODZBAUH3.js} +2 -2
  184. package/dist/cdn/OEIXBUC3.js +4 -0
  185. package/dist/cdn/{ZHGAX6R3.js → OG4YXHRH.js} +2 -2
  186. package/dist/cdn/{HQKIH26Q.js → OGISURJ2.js} +1 -1
  187. package/dist/cdn/{7D3QOJHZ.js → OOYAGXFU.js} +2 -2
  188. package/dist/cdn/{QU5VIRGY.js → OUTGXSIV.js} +2 -2
  189. package/dist/cdn/OWN2B732.js +4 -0
  190. package/dist/cdn/{ERW3YZU6.js → P7PGGEDY.js} +1 -1
  191. package/dist/cdn/{Y2XCXPZJ.js → PERO5WYC.js} +1 -1
  192. package/dist/cdn/{K54F34MD.js → PITFPHXJ.js} +2 -2
  193. package/dist/cdn/{T7EW26WY.js → PWNQPO7M.js} +2 -2
  194. package/dist/cdn/{UXMQRK5S.js → Q2RVLL7P.js} +1 -1
  195. package/dist/cdn/{ROJ6UXWC.js → QB5Q44P3.js} +2 -2
  196. package/dist/cdn/{2B5FSZQH.js → QBKQKD2G.js} +2 -2
  197. package/dist/cdn/{73M3K3MB.js → QDCUDH5M.js} +1 -1
  198. package/dist/cdn/{YRGOM6Q5.js → QEONXNFP.js} +2 -2
  199. package/dist/cdn/{HWXLPBZH.js → QS3XVQM7.js} +2 -2
  200. package/dist/cdn/{LACXORO5.js → QVNQSDMG.js} +2 -2
  201. package/dist/cdn/{YKLMVODS.js → QZUUFSWN.js} +2 -2
  202. package/dist/cdn/{7MXFY5SO.js → REUK7FUQ.js} +1 -1
  203. package/dist/cdn/RJCPG2OD.js +4 -0
  204. package/dist/cdn/{3OXV4AIJ.js → RKK6IXRN.js} +1 -1
  205. package/dist/cdn/{4Q5U26MM.js → RLTUCGPF.js} +2 -2
  206. package/dist/cdn/{L6CZXSW3.js → RQNTLRQO.js} +2 -2
  207. package/dist/cdn/S2DOD45C.js +4 -0
  208. package/dist/cdn/{SQ72UPK3.js → S7S35K4N.js} +2 -2
  209. package/dist/cdn/{FQLSHIBF.js → SA3FJIMJ.js} +2 -2
  210. package/dist/cdn/{7MJFKTU3.js → SCC7OFOE.js} +1 -1
  211. package/dist/cdn/{YL7XZAGN.js → SCJF5DK5.js} +2 -2
  212. package/dist/cdn/{DR4VMI7G.js → SKJFR7RS.js} +2 -2
  213. package/dist/cdn/{TR24DOO4.js → SKNW5XHW.js} +2 -2
  214. package/dist/cdn/{GX6G4BFZ.js → SMVLVIKJ.js} +1 -1
  215. package/dist/cdn/{M5375MUO.js → SPDKAPN2.js} +2 -2
  216. package/dist/cdn/{MTDTWNGL.js → SPJUB4WW.js} +2 -2
  217. package/dist/cdn/{XPSM5W4L.js → STTIKHQJ.js} +2 -2
  218. package/dist/cdn/{OXHYCHE7.js → SUUXG2YV.js} +2 -2
  219. package/dist/cdn/SV5SVPCF.js +4 -0
  220. package/dist/cdn/{UJNLCDAP.js → SXV6GOCF.js} +2 -2
  221. package/dist/cdn/T3L6RRVE.js +4 -0
  222. package/dist/cdn/{5WSSG5DQ.js → TQBG4MEK.js} +2 -2
  223. package/dist/cdn/TVJRJKDY.js +4 -0
  224. package/dist/cdn/{JVV2LRKV.js → U5WH4XWF.js} +2 -2
  225. package/dist/cdn/U7YWLWVS.js +4 -0
  226. package/dist/cdn/{V7G2AU5A.js → UC6XV223.js} +2 -2
  227. package/dist/cdn/{NG7FCMTK.js → UFK4WM7T.js} +2 -2
  228. package/dist/cdn/{LTRG7P5T.js → UHSG6QNQ.js} +2 -2
  229. package/dist/cdn/{6FMYJDB3.js → UI54E7VB.js} +2 -2
  230. package/dist/cdn/{SCCCHUE7.js → UIUU6DED.js} +2 -2
  231. package/dist/cdn/UPMKLS4C.js +4 -0
  232. package/dist/cdn/UXH6MGRX.js +4 -0
  233. package/dist/cdn/V3GT6ZDE.js +4 -0
  234. package/dist/cdn/{IWLSOPNU.js → V4ESJ7QL.js} +2 -2
  235. package/dist/cdn/{MABGXJJX.js → V74PXGTC.js} +2 -2
  236. package/dist/cdn/{QH4CLBMI.js → VANG24M3.js} +2 -2
  237. package/dist/cdn/VGIYVVAU.js +4 -0
  238. package/dist/cdn/{AWTEJER6.js → VHT2MWYW.js} +2 -2
  239. package/dist/cdn/{HPWA6TTI.js → VLQDRULY.js} +2 -2
  240. package/dist/cdn/VMFAWFAM.js +4 -0
  241. package/dist/cdn/VOEWFARL.js +4 -0
  242. package/dist/cdn/{QU6MV2R4.js → VPUUIWE2.js} +2 -2
  243. package/dist/cdn/VQL327GB.js +18 -0
  244. package/dist/cdn/{4X3BLJYO.js → W27KI4TX.js} +2 -2
  245. package/dist/cdn/WCIL4Y2K.js +18 -0
  246. package/dist/cdn/{XWJ5XRDA.js → WCZZYOTM.js} +1 -1
  247. package/dist/cdn/{HUNK6CQY.js → WE523ZR2.js} +2 -2
  248. package/dist/cdn/{EOMS3F3L.js → WEVRGLHV.js} +2 -2
  249. package/dist/cdn/{GJ2KTUEU.js → WH2I2W6Q.js} +2 -2
  250. package/dist/cdn/{UUYHFCW4.js → WNR7QUVP.js} +2 -2
  251. package/dist/cdn/WRV2RHJ6.js +18 -0
  252. package/dist/cdn/{WNZMO54V.js → X77OKZCY.js} +2 -2
  253. package/dist/cdn/{ETSHTE72.js → XA6VGCTE.js} +2 -2
  254. package/dist/cdn/{TXLHJXSD.js → XARXAL4K.js} +2 -2
  255. package/dist/cdn/{GNROCWA2.js → XFOQ237Z.js} +2 -2
  256. package/dist/cdn/{OWQIRWGB.js → XIWWE2AH.js} +2 -2
  257. package/dist/cdn/{I5NHFG7C.js → XJYLRRFL.js} +2 -2
  258. package/dist/cdn/{CRZVA7XS.js → XKTGW3XN.js} +2 -2
  259. package/dist/cdn/{QBEPAEZG.js → XKYLZR42.js} +2 -2
  260. package/dist/cdn/{IE2Z57EL.js → XOEQBFVP.js} +1 -1
  261. package/dist/cdn/{CTJUD4LO.js → XPJYK2RV.js} +2 -2
  262. package/dist/cdn/{NVZPOTDK.js → XSUHYP6Q.js} +2 -2
  263. package/dist/cdn/{6LFV2GIT.js → XVFOF3T5.js} +1 -1
  264. package/dist/cdn/{USVH5XRC.js → XVV53OIG.js} +2 -2
  265. package/dist/cdn/{RAOR6DNG.js → Y4MLXPRQ.js} +2 -2
  266. package/dist/cdn/{IJRPDGUW.js → YFYERRHB.js} +1 -1
  267. package/dist/cdn/{OHULOUJ7.js → YGNM3KWY.js} +1 -1
  268. package/dist/cdn/{JYGS22BT.js → YJ3QUHDU.js} +2 -2
  269. package/dist/cdn/{XD7HIK35.js → YJ6YWNY6.js} +2 -2
  270. package/dist/cdn/{F4VOMVZI.js → YJVHNGLM.js} +2 -2
  271. package/dist/cdn/{I2YEFWJ6.js → YKGOPNZG.js} +2 -2
  272. package/dist/cdn/{LPK5NKSR.js → YN6JZ5LC.js} +2 -2
  273. package/dist/cdn/YOUEIKMV.js +18 -0
  274. package/dist/cdn/{MHW7GG43.js → YYIW4SX5.js} +2 -2
  275. package/dist/cdn/Z4QMYZMZ.js +4 -0
  276. package/dist/cdn/{5JZHSF5Q.js → ZBC2KSKJ.js} +1 -1
  277. package/dist/cdn/ZCJBWPBW.js +4 -0
  278. package/dist/cdn/{6GI4INVZ.js → ZHYUBIKC.js} +2 -2
  279. package/dist/cdn/{47H5FO7V.js → ZIXRBHFZ.js} +2 -2
  280. package/dist/cdn/ZRRGRRES.js +4 -0
  281. package/dist/cdn/{GEVOY2L5.js → ZSCGQDPT.js} +2 -2
  282. package/dist/cdn/{ZUBYVBHB.js → ZX7QCDFK.js} +2 -2
  283. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  284. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  285. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  286. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  287. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  288. package/dist/cdn/index.js +2 -2
  289. package/dist/cdn/main.css +1 -1
  290. package/dist/chunks/Auth.js +3 -9
  291. package/dist/chunks/appConfig.js +11 -0
  292. package/dist/chunks/cardFetchingUtils.js +102 -150
  293. package/dist/chunks/common.js +1 -1
  294. package/dist/chunks/deployAppContexts.js +1 -1
  295. package/dist/chunks/downloadUtils.js +1 -1
  296. package/dist/chunks/helpers.js +76 -0
  297. package/dist/chunks/index.js +1 -1
  298. package/dist/chunks/interfaces.js +21 -20
  299. package/dist/chunks/loadModules.js +1 -1
  300. package/dist/chunks/mapViewUtils.js +1 -1
  301. package/dist/chunks/pciUtils.js +1 -1
  302. package/dist/chunks/popupUtils.js +1 -1
  303. package/dist/chunks/publicNotificationStore.js +1 -1
  304. package/dist/chunks/queryUtils.js +1 -1
  305. package/dist/chunks/runtime.js +1 -1
  306. package/dist/chunks/solution-store.js +1 -1
  307. package/dist/chunks/templates.js +1 -1
  308. package/dist/chunks/useT9n.js +1 -1
  309. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  310. package/dist/components/basemap-gallery/customElement.js +1 -1
  311. package/dist/components/buffer-tools/customElement.js +1 -1
  312. package/dist/components/card-manager/customElement.js +24 -23
  313. package/dist/components/consent-manager/customElement.js +264 -264
  314. package/dist/components/create-feature/customElement.d.ts +6 -0
  315. package/dist/components/create-feature/customElement.js +8 -8
  316. package/dist/components/create-related-feature/customElement.js +1 -1
  317. package/dist/components/crowdsource-manager/customElement.js +16 -16
  318. package/dist/components/crowdsource-reporter/customElement.js +19 -16
  319. package/dist/components/deduct-calculator/customElement.js +1 -1
  320. package/dist/components/delete-button/customElement.js +1 -1
  321. package/dist/components/delete-dialog/customElement.js +1 -1
  322. package/dist/components/edit-card/customElement.js +24 -18
  323. package/dist/components/feature-details/customElement.js +1 -1
  324. package/dist/components/feature-list/customElement.js +1 -1
  325. package/dist/components/field-selection/customElement.js +1 -1
  326. package/dist/components/floor-filter/customElement.js +1 -1
  327. package/dist/components/info-card/customElement.js +1 -1
  328. package/dist/components/json-editor/customElement.js +1 -1
  329. package/dist/components/layer-list/customElement.js +1 -1
  330. package/dist/components/layer-table/customElement.js +1 -1
  331. package/dist/components/map-card/customElement.d.ts +12 -0
  332. package/dist/components/map-card/customElement.js +25 -25
  333. package/dist/components/map-draw-tools/customElement.js +2 -2
  334. package/dist/components/map-fullscreen/customElement.js +1 -1
  335. package/dist/components/map-layer-picker/customElement.js +3 -3
  336. package/dist/components/map-legend/customElement.js +1 -1
  337. package/dist/components/map-picker/customElement.js +22 -18
  338. package/dist/components/map-search/customElement.js +1 -1
  339. package/dist/components/map-select-tools/customElement.js +1 -1
  340. package/dist/components/map-tools/customElement.js +2 -2
  341. package/dist/components/pci-calculator/customElement.js +1 -1
  342. package/dist/components/pdf-download/customElement.js +1 -1
  343. package/dist/components/public-notification/customElement.js +7 -7
  344. package/dist/components/refine-selection/customElement.js +2 -2
  345. package/dist/components/selection-tool/customElement.js +1 -1
  346. package/dist/components/solution-article-card/customElement.js +1 -1
  347. package/dist/components/solution-configuration/customElement.js +1 -1
  348. package/dist/components/solution-configure-panel/customElement.js +1 -1
  349. package/dist/components/solution-configure-titles/customElement.js +1 -1
  350. package/dist/components/solution-contents/customElement.js +1 -1
  351. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  352. package/dist/components/solution-deploy-dialog/customElement.d.ts +42 -0
  353. package/dist/components/solution-deploy-dialog/customElement.js +154 -16
  354. package/dist/components/solution-deploy-dialog/index.d.ts +9 -0
  355. package/dist/components/solution-deploy-dialog/index.js +9 -0
  356. package/dist/components/solution-deployed-card/customElement.d.ts +4 -0
  357. package/dist/components/solution-deployed-card/customElement.js +16 -11
  358. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  359. package/dist/components/solution-details-card/customElement.d.ts +4 -11
  360. package/dist/components/solution-details-card/customElement.js +16 -16
  361. package/dist/components/solution-details-panel/customElement.d.ts +17 -0
  362. package/dist/components/solution-details-panel/customElement.js +113 -18
  363. package/dist/components/solution-details-panel/index.d.ts +12 -0
  364. package/dist/components/solution-details-panel/index.js +12 -0
  365. package/dist/components/solution-item/customElement.js +1 -1
  366. package/dist/components/solution-item-accordion/customElement.js +1 -1
  367. package/dist/components/solution-item-details/customElement.js +1 -1
  368. package/dist/components/solution-item-icon/customElement.js +1 -1
  369. package/dist/components/solution-item-sharing/customElement.js +1 -1
  370. package/dist/components/solution-items-diagram/customElement.js +1 -1
  371. package/dist/components/solution-organization-variables/customElement.js +1 -1
  372. package/dist/components/solution-resource-item/customElement.js +1 -1
  373. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  374. package/dist/components/solution-spatial-ref/customElement.js +2 -2
  375. package/dist/components/solution-template-data/customElement.js +1 -1
  376. package/dist/components/solution-variables/customElement.js +1 -1
  377. package/dist/components/solutions-all-panel/customElement.d.ts +8 -8
  378. package/dist/components/solutions-all-panel/customElement.js +50 -52
  379. package/dist/components/solutions-all-shell/customElement.d.ts +1 -1
  380. package/dist/components/solutions-all-shell/customElement.js +31 -29
  381. package/dist/components/solutions-article-panel/customElement.js +1 -1
  382. package/dist/components/solutions-articles/customElement.js +1 -1
  383. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  384. package/dist/components/solutions-deployed-panel/customElement.js +15 -14
  385. package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
  386. package/dist/components/solutions-deployed-shell/customElement.js +28 -26
  387. package/dist/components/solutions-filter-panel/customElement.d.ts +8 -3
  388. package/dist/components/solutions-filter-panel/customElement.js +82 -101
  389. package/dist/components/spatial-ref/customElement.js +1 -1
  390. package/dist/components/store-manager/customElement.js +1 -1
  391. package/dist/docs/api.json +522 -260
  392. package/dist/docs/docs.json +505 -193
  393. package/dist/docs/vscode.html-custom-data.json +32 -43
  394. package/dist/docs/web-types.json +172 -87
  395. package/dist/index.d.ts +32 -6
  396. package/dist/index.js +1 -1
  397. package/dist/loader.js +7 -8
  398. package/dist/types/lumina.d.ts +10 -10
  399. package/dist/types/preact.d.ts +10 -11
  400. package/dist/types/react.d.ts +10 -12
  401. package/dist/types/stencil.d.ts +10 -10
  402. package/dist/utils/cardFetchingUtils.d.ts +3 -3
  403. package/dist/utils/interfaces.d.ts +47 -9
  404. package/package.json +3 -2
  405. package/dist/cdn/2AFE7E7M.js +0 -4
  406. package/dist/cdn/2K5LERLJ.js +0 -18
  407. package/dist/cdn/2MYQP6Y5.js +0 -4
  408. package/dist/cdn/2WSY3VK5.js +0 -18
  409. package/dist/cdn/345MWWXW.js +0 -4
  410. package/dist/cdn/3ELXMEAJ.js +0 -4
  411. package/dist/cdn/47T4MQZM.js +0 -18
  412. package/dist/cdn/5EGJZQNO.js +0 -4
  413. package/dist/cdn/5NTBUHXP.js +0 -4
  414. package/dist/cdn/5TTXDO2X.js +0 -4
  415. package/dist/cdn/6UX6KQVQ.js +0 -4
  416. package/dist/cdn/6XXYDAON.js +0 -18
  417. package/dist/cdn/ARCAXJNI.js +0 -4
  418. package/dist/cdn/B5IEC4IT.js +0 -6
  419. package/dist/cdn/BGMGLS3V.js +0 -18
  420. package/dist/cdn/BIUFSOZZ.js +0 -18
  421. package/dist/cdn/CNEWKYEJ.js +0 -4
  422. package/dist/cdn/CWNIFA6D.js +0 -4
  423. package/dist/cdn/CYNBZWVT.js +0 -4
  424. package/dist/cdn/D7NBVCTF.js +0 -4
  425. package/dist/cdn/EMDO67DU.js +0 -18
  426. package/dist/cdn/FJ6RGFDH.js +0 -4
  427. package/dist/cdn/GMPQXS6C.js +0 -4
  428. package/dist/cdn/GXKZH3J4.js +0 -4
  429. package/dist/cdn/H6KJVVW5.js +0 -18
  430. package/dist/cdn/HQOSEDMS.js +0 -18
  431. package/dist/cdn/K4LNUMMZ.js +0 -18
  432. package/dist/cdn/KGNJ2Y2O.js +0 -4
  433. package/dist/cdn/KNAH23B5.js +0 -18
  434. package/dist/cdn/LNP7R5ZI.js +0 -4
  435. package/dist/cdn/LYGETQIB.js +0 -4
  436. package/dist/cdn/MT4W2VSR.js +0 -4
  437. package/dist/cdn/MXJ7JORF.js +0 -18
  438. package/dist/cdn/NMCGBOOO.js +0 -4
  439. package/dist/cdn/OQ4ARNXB.js +0 -4
  440. package/dist/cdn/P3JN7YAP.js +0 -4
  441. package/dist/cdn/PBE7PDSN.js +0 -4
  442. package/dist/cdn/R3QDSUMS.js +0 -4
  443. package/dist/cdn/RTQCBY45.js +0 -4
  444. package/dist/cdn/RZLD7GPX.js +0 -4
  445. package/dist/cdn/TAE7C5OI.js +0 -18
  446. package/dist/cdn/TOGUBI36.js +0 -4
  447. package/dist/cdn/TPT5GHCA.js +0 -4
  448. package/dist/cdn/TTKYUHNY.js +0 -4
  449. package/dist/cdn/VGFMPJPG.js +0 -18
  450. package/dist/cdn/VQ7R4YV2.js +0 -4
  451. package/dist/cdn/X3XUCW5D.js +0 -18
  452. package/dist/cdn/XISD2FJX.js +0 -4
  453. package/dist/cdn/Y53CA6HP.js +0 -18
  454. package/dist/cdn/YN6OX32H.js +0 -4
  455. package/dist/cdn/Z4R46WXZ.js +0 -4
  456. package/dist/cdn/ZVSE3IZ4.js +0 -4
  457. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +0 -1
  458. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +0 -1
  459. package/dist/components/solution-deploy-panel/customElement.d.ts +0 -18
  460. package/dist/components/solution-deploy-panel/customElement.js +0 -72
  461. package/dist/components/solution-deploy-panel/index.d.ts +0 -12
  462. package/dist/components/solution-deploy-panel/index.js +0 -12
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{g as u,h as g}from"./KSWXMOC6.js";var M=(e,o,s)=>{let c=e.get(o);c?c.includes(s)||c.push(s):e.set(o,[s])},O=(e,o)=>{let s;return(...c)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...c)},o)}},_=e=>!("isConnected"in e)||e.isConnected,w=O(e=>{for(let o of e.keys())e.set(o,e.get(o).filter(_))},2e3),T=()=>{if(typeof u!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:o=>{let s=u();s&&M(e,o,s)},set:o=>{let s=e.get(o);s&&e.set(o,s.filter(g)),w(e)},reset:()=>{e.forEach(o=>o.forEach(g)),w(e)}}},h=e=>typeof e=="function"?e():e,U=(e,o=(s,c)=>s!==c)=>{let s=h(e),c=new Map(Object.entries(s??{})),i={dispose:[],get:[],set:[],reset:[]},l=()=>{c=new Map(Object.entries(h(e)??{})),i.reset.forEach(t=>t())},E=()=>{i.dispose.forEach(t=>t()),l()},p=t=>(i.get.forEach(n=>n(t)),c.get(t)),a=(t,n)=>{let r=c.get(t);o(n,r,t)&&(c.set(t,n),i.set.forEach(f=>f(t,n,r)))},y=typeof Proxy>"u"?{}:new Proxy(s,{get(t,n){return p(n)},ownKeys(t){return Array.from(c.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(t,n){return c.has(n)},set(t,n,r){return a(n,r),!0}}),d=(t,n)=>(i[t].push(n),()=>{P(i[t],n)});return{state:y,get:p,set:a,on:d,onChange:(t,n)=>{let r=d("set",(x,C)=>{x===t&&n(C)}),f=d("reset",()=>n(h(e)[t]));return()=>{r(),f()}},use:(...t)=>{let n=t.reduce((r,f)=>(f.set&&r.push(d("set",f.set)),f.get&&r.push(d("get",f.get)),f.reset&&r.push(d("reset",f.reset)),f.dispose&&r.push(d("dispose",f.dispose)),r),[]);return()=>n.forEach(r=>r())},dispose:E,reset:l,forceUpdate:t=>{let n=c.get(t);i.set.forEach(r=>r(t,n,n))}}},P=(e,o)=>{let s=e.indexOf(o);s>=0&&(e[s]=e[e.length-1],e.length--)},S=(e,o)=>{let s=U(e,o);return s.use(T()),s};export{S as a};
3
+ v1.0.0-next.20250610 */
4
+ import{g as u,h as g}from"./C2WZRDNU.js";var M=(e,o,s)=>{let c=e.get(o);c?c.includes(s)||c.push(s):e.set(o,[s])},O=(e,o)=>{let s;return(...c)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...c)},o)}},_=e=>!("isConnected"in e)||e.isConnected,w=O(e=>{for(let o of e.keys())e.set(o,e.get(o).filter(_))},2e3),T=()=>{if(typeof u!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:o=>{let s=u();s&&M(e,o,s)},set:o=>{let s=e.get(o);s&&e.set(o,s.filter(g)),w(e)},reset:()=>{e.forEach(o=>o.forEach(g)),w(e)}}},h=e=>typeof e=="function"?e():e,U=(e,o=(s,c)=>s!==c)=>{let s=h(e),c=new Map(Object.entries(s??{})),i={dispose:[],get:[],set:[],reset:[]},l=()=>{c=new Map(Object.entries(h(e)??{})),i.reset.forEach(t=>t())},E=()=>{i.dispose.forEach(t=>t()),l()},p=t=>(i.get.forEach(n=>n(t)),c.get(t)),a=(t,n)=>{let r=c.get(t);o(n,r,t)&&(c.set(t,n),i.set.forEach(f=>f(t,n,r)))},y=typeof Proxy>"u"?{}:new Proxy(s,{get(t,n){return p(n)},ownKeys(t){return Array.from(c.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(t,n){return c.has(n)},set(t,n,r){return a(n,r),!0}}),d=(t,n)=>(i[t].push(n),()=>{P(i[t],n)});return{state:y,get:p,set:a,on:d,onChange:(t,n)=>{let r=d("set",(x,C)=>{x===t&&n(C)}),f=d("reset",()=>n(h(e)[t]));return()=>{r(),f()}},use:(...t)=>{let n=t.reduce((r,f)=>(f.set&&r.push(d("set",f.set)),f.get&&r.push(d("get",f.get)),f.reset&&r.push(d("reset",f.reset)),f.dispose&&r.push(d("dispose",f.dispose)),r),[]);return()=>n.forEach(r=>r())},dispose:E,reset:l,forceUpdate:t=>{let n=c.get(t);i.set.forEach(r=>r(t,n,n))}}},P=(e,o)=>{let s=e.indexOf(o);s>=0&&(e[s]=e[e.length-1],e.length--)},S=(e,o)=>{let s=U(e,o);return s.use(T()),s};export{S as 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{a as v}from"./SQ72UPK3.js";import"./7AYXAEZ4.js";import"./B5IEC4IT.js";import"./5TTXDO2X.js";import"./CWNIFA6D.js";import"./CNEWKYEJ.js";import"./XC5VKQJJ.js";import"./VT5P4INT.js";import"./3ML7QFWK.js";import"./K4J7ONE5.js";import{b}from"./XWJ5XRDA.js";import{a as m}from"./F4VOMVZI.js";import{D as g,E as i,F as f,I as w,c as p,d as s,g as u,o,q as _}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var E=p`@layer{/** @license
3
+ v1.0.0-next.20250610 */
4
+ import{a as v}from"./S7S35K4N.js";import"./HTGPVMDF.js";import"./MFATTJGH.js";import"./XPJYK2RV.js";import"./RLTUCGPF.js";import"./G6HN6TFX.js";import"./AJ4EANAJ.js";import"./LFIVJEK2.js";import"./5PTXJEIG.js";import"./4BBMUYOY.js";import"./V3GT6ZDE.js";import"./OG4YXHRH.js";import"./ZRRGRRES.js";import"./JFIQPHVY.js";import"./MSN724ZV.js";import"./JA6ZHJAG.js";import"./XKTGW3XN.js";import"./3MMNPTWA.js";import"./LUWKLSCB.js";import"./GRH6L6AX.js";import"./6ZSHJ5AZ.js";import"./I6IP3HEU.js";import"./GT7ZLIPV.js";import{b}from"./WCZZYOTM.js";import{a as m}from"./YJVHNGLM.js";import{A as f,D as w,c as p,d as s,f as u,n as o,p as _,y as g,z as i}from"./KXIP4DWR.js";import"./SA3FJIMJ.js";var E=p`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250610 */
4
+ import{a as S}from"./QB5Q44P3.js";import{a as d}from"./CTYWBQY2.js";import{a as U,b as x}from"./LC4T5GIX.js";import{d as j,g as L,h as C,i as N}from"./G6HN6TFX.js";import{b as f,c as y}from"./GZTSZRL2.js";import{m as v,n as _}from"./AJ4EANAJ.js";import{f as M}from"./U7YWLWVS.js";import"./LFIVJEK2.js";import"./5PTXJEIG.js";import"./4BBMUYOY.js";import"./H2TUSR7R.js";import"./ZRRGRRES.js";import"./JFIQPHVY.js";import{a as O}from"./MSN724ZV.js";import"./JA6ZHJAG.js";import"./XKTGW3XN.js";import{s as I}from"./3MMNPTWA.js";import"./LUWKLSCB.js";import"./GRH6L6AX.js";import"./6ZSHJ5AZ.js";import"./SA3FJIMJ.js";var $="Discussion",P={name:"",tags:[],typeKeywords:["Hub Discussion"],permissions:[],catalogs:[],schemaVersion:1,isDiscussable:!0},K={item:{type:$,title:"",description:"",snippet:"",tags:[],typeKeywords:["Hub Discussion"],properties:{slug:"",schemaVersion:1}},data:{catalogs:[],prompt:""}};function h(t){return t.httpMethod="POST",d("/settings",t)}function A(t){return t.httpMethod="PATCH",d(`/settings/${t.id}`,t)}function V(t){return t.httpMethod="DELETE",d(`/settings/${t.id}`,t)}var F={discussions:{allowedChannelIds:null,allowedLocations:null}},w={discussion:{type:M.CONTENT,settings:Object.assign({},F)},site:null,project:null,initiative:null,initiativeTemplate:null,page:null,content:null,organization:null,org:null,group:null,template:null,survey:null,event:null,user:null,channel:null};function T(t){if(!w[t])throw new Error(`no default entity settings defined for ${t}`);return{type:w[t].type,settings:Object.assign({},w[t].settings)}}function E(){let t=U();return t.push({entityKey:"prompt",storeKey:"data.prompt"}),t.push({entityKey:"location",storeKey:"item.properties.location"}),t}function b(t,e,i){let o;return i.authentication&&(o=i.authentication.token),e=x(t.item,e),e.thumbnailUrl=v(t.item,i,o),e}async function dt(t,e){var i,o;let s=Object.assign(Object.assign({},P),t);s.slug||(s.slug=j(s.name,s.orgUrlKey)),await S(s,e),s.typeKeywords=f(s.typeKeywords,s.isDiscussable);let c=new y(E()),r=c.entityToStore(s,O(K));r=await C(r,e);let u=T("discussion"),a=Object.assign(Object.assign({},u.settings),{discussions:Object.assign(Object.assign({},u.settings.discussions),s.discussionSettings)});!((i=a.discussions.allowedChannelIds)===null||i===void 0)&&i.length||(a.discussions.allowedChannelIds=null),!((o=a.discussions.allowedLocations)===null||o===void 0)&&o.length||(a.discussions.allowedLocations=null),r.entitySettings=await h(Object.assign({data:{id:r.item.id,type:u.type,settings:a}},e));let n=c.storeToEntity(r,{});return n=b(r,n,e),n}async function gt(t,e){var i,o,s;await S(t,e),t.typeKeywords=f(t.typeKeywords,t.isDiscussable);let c=await L(t.id,e),r=new y(E()),u=r.entityToStore(t,c),a=await N(u,e),n=r.storeToEntity(a,t);n=b(c,n,e);let g;try{g=((i=n.location.geometries)===null||i===void 0?void 0:i.map(m=>_(m)))||null}catch(m){g=null,console.warn("Esri JSON conversion failed",m)}let p=T("discussion"),l=Object.assign(Object.assign({},p.settings),{discussions:Object.assign(Object.assign(Object.assign({},p.settings.discussions),n.discussionSettings),{allowedLocations:g})});!((o=l.discussions.allowedChannelIds)===null||o===void 0)&&o.length||(l.discussions.allowedChannelIds=null),!((s=l.discussions.allowedLocations)===null||s===void 0)&&s.length||(l.discussions.allowedLocations=null);let D=n.entitySettingsId?await A(Object.assign({id:n.entitySettingsId,data:{settings:l}},e)):await h(Object.assign({data:{id:n.id,type:p.type,settings:l}},e));return n.entitySettingsId=D.id,n.discussionSettings=D.settings.discussions,n}async function pt(t,e){let i=Object.assign(Object.assign({},e),{id:t});try{await V(Object.assign({id:t},e))}catch{}await I(i)}export{dt as createDiscussion,pt as deleteDiscussion,gt as updateDiscussion};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{a as e,b as i,c as l,d as s,e as t}from"./PPLIT4QW.js";import{a as r}from"./O6YU35I2.js";import"./OZDEHP24.js";import"./JVV2LRKV.js";import"./3OXV4AIJ.js";import"./SCCCHUE7.js";import"./PODWXGKR.js";import"./AWTEJER6.js";import"./Y4ZIUU3O.js";import"./YWL5BSMR.js";import"./OVYTYWMG.js";import"./OWQIRWGB.js";import"./3UOZA57X.js";import"./IJRPDGUW.js";import"./2ZYEO4QU.js";import"./HQKIH26Q.js";import"./MTDTWNGL.js";import"./EMZ6RPP3.js";import"./3R6FI5UM.js";import"./Y2XCXPZJ.js";import"./LPK5NKSR.js";import"./R3KXDLBC.js";import"./54BQVAZQ.js";import"./73M3K3MB.js";import"./FQLSHIBF.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
3
+ v1.0.0-next.20250610 */
4
+ import{a as e,b as i,c as l,d as s,e as t}from"./EOURQHYH.js";import{a as r}from"./2KAZVBXF.js";import"./GLQGCQKQ.js";import"./U5WH4XWF.js";import"./RKK6IXRN.js";import"./UIUU6DED.js";import"./3U5ZQLVD.js";import"./VHT2MWYW.js";import"./COVJW67Z.js";import"./AO22ELU2.js";import"./2VLL65Q3.js";import"./XIWWE2AH.js";import"./7EC2QANE.js";import"./YFYERRHB.js";import"./N4PA6ZFU.js";import"./OGISURJ2.js";import"./SPJUB4WW.js";import"./GA2ZUKPH.js";import"./OBGE3PJZ.js";import"./PERO5WYC.js";import"./YN6JZ5LC.js";import"./62U5XQ53.js";import"./GWCLKO7W.js";import"./QDCUDH5M.js";import"./SA3FJIMJ.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
3
+ v1.0.0-next.20250610 */
4
4
  var a={xsmall:[545],small:[545,768],medium:[769,992],large:[993,1200],xlarge:[1200]};export{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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import"./FQLSHIBF.js";var s=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.allowRegistration.label`,scope:"/properties/allowRegistration",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.allowRegistration.helperText`},labels:[`{{${e}.fields.allowRegistration.enabled.label:translate}}`,`{{${e}.fields.allowRegistration.disabled.label:translate}}`],descriptions:[`{{${e}.fields.allowRegistration.enabled.description:translate}}`,`{{${e}.fields.allowRegistration.disabled.description:translate}}`],icons:["user-calendar","circle-disallowed"],layout:"horizontal"}},{labelKey:`${e}.fields.notifyAttendees.label`,scope:"/properties/notifyAttendees",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.notifyAttendees.helperText`},labels:[`{{${e}.fields.notifyAttendees.enabled.label:translate}}`,`{{${e}.fields.notifyAttendees.disabled.label:translate}}`],descriptions:[`{{${e}.fields.notifyAttendees.enabled.description:translate}}`,`{{${e}.fields.notifyAttendees.disabled.description:translate}}`],icons:["envelope","circle-disallowed"],layout:"horizontal"}}]}]});export{s as buildUiSchema};
3
+ v1.0.0-next.20250610 */
4
+ import"./SA3FJIMJ.js";var s=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.allowRegistration.label`,scope:"/properties/allowRegistration",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.allowRegistration.helperText`},labels:[`{{${e}.fields.allowRegistration.enabled.label:translate}}`,`{{${e}.fields.allowRegistration.disabled.label:translate}}`],descriptions:[`{{${e}.fields.allowRegistration.enabled.description:translate}}`,`{{${e}.fields.allowRegistration.disabled.description:translate}}`],icons:["user-calendar","circle-disallowed"],layout:"horizontal"}},{labelKey:`${e}.fields.notifyAttendees.label`,scope:"/properties/notifyAttendees",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.notifyAttendees.helperText`},labels:[`{{${e}.fields.notifyAttendees.enabled.label:translate}}`,`{{${e}.fields.notifyAttendees.disabled.label:translate}}`],descriptions:[`{{${e}.fields.notifyAttendees.enabled.description:translate}}`,`{{${e}.fields.notifyAttendees.disabled.description:translate}}`],icons:["envelope","circle-disallowed"],layout:"horizontal"}}]}]});export{s as buildUiSchema};
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap,z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new z(typeof o=="string"?o:o+"",void 0,mt),me=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new z(e,o,mt)},It=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},yt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var vt=globalThis,X=vt.trustedTypes,jt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+E,ye=`<${Et}>`,O=document,q=()=>O.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,Ft=o=>$t(o)||typeof o?.[Symbol.iterator]=="function",gt=`[
3
+ v1.0.0-next.20250610 */
4
+ var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap,z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new z(typeof o=="string"?o:o+"",void 0,mt),fe=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new z(e,o,mt)},It=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},yt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var vt=globalThis,X=vt.trustedTypes,jt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+E,me=`<${Et}>`,O=document,q=()=>O.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,Ft=o=>$t(o)||typeof o?.[Symbol.iterator]=="function",gt=`[
5
5
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,zt=/>/g,w=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,qt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),As=Ct(1),_s=Ct(2),ws=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Bt=new WeakMap,x=O.createTreeWalker(O,129);function Kt(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jt!==void 0?jt.createHTML(t):t}var Gt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,p,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,p=i.exec(c),p!==null);)m=i.lastIndex,i===H?p[1]==="!--"?i=Vt:p[1]!==void 0?i=zt:p[2]!==void 0?(Wt.test(p[2])&&(n=RegExp("</"+p[2],"g")),i=w):p[3]!==void 0&&(i=w):i===w?p[0]===">"?(i=n??H,h=-1):p[1]===void 0?h=-2:(h=i.lastIndex-p[2].length,l=p[1],i=p[3]===void 0?w:p[3]==='"'?qt:Ht):i===qt||i===Ht?i=w:i===Vt||i===zt?i=H:(i=w,n=void 0);let y=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+ye:h>=0?(s.push(l),c.slice(0,h)+bt+c.slice(h)+E+y):c+E+(h===-2?a:y)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},F=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,p]=Gt(t,e);if(this.el=o.createElement(l,s),x.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=x.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(bt)){let m=p[i++],y=n.getAttribute(h).split(E),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?et:_[1]==="?"?st:_[1]==="@"?ot:S}),n.removeAttribute(h)}else h.startsWith(E)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Wt.test(n.tagName)){let h=n.textContent.split(E),m=h.length-1;if(m>0){n.textContent=X?X.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],q()),x.nextNode(),c.push({type:2,index:++r});n.append(h[m],q())}}}else if(n.nodeType===8)if(n.data===Et)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(E,h+1))!==-1;)c.push({type:7,index:r}),h+=E.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=B(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);x.currentNode=n;let r=x.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new nt(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=x.nextNode(),i++)}return x.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ft(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=F.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new tt(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new F(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(q()),this.O(q()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!B(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=T(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},st=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ot=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Jt={M:bt,P:E,A:Et,C:1,L:Gt,R:tt,D:Ft,V:T,I:U,H:S,N:st,U:ot,B:et,F:nt},ge=vt.litHtmlPolyfillSupport;ge?.(F,U),(vt.litHtmlVersions??=[]).push("3.3.0");var At=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(q(),r),r,void 0,e??{})}return n._$AI(o),n};var{is:ve,defineProperty:be,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:$e,getOwnPropertySymbols:Ce,getPrototypeOf:Ae}=Object,it=globalThis,Qt=it.trustedTypes,_e=Qt?Qt.emptyScript:"",we=it.reactiveElementPolyfillSupport,W=(o,t)=>o,rt={toAttribute(o,t){switch(t){case Boolean:o=o?_e:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},K=(o,t)=>!ve(o,t),Yt={attribute:!0,type:String,converter:rt,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol("metadata"),it.litPropertyMetadata??=new WeakMap;var $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&be(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Ee(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yt}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;let t=Ae(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){let e=this.properties,s=[...$e(e),...Ce(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(yt(n))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:rt).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:rt;this._$Em=n,this[n]=i.fromAttribute(e,r.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,r=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??K)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[W("elementProperties")]=new Map,$[W("finalized")]=new Map,we?.({ReactiveElement:$}),(it.reactiveElementVersions??=[]).push("2.1.0");var _t=globalThis,v=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};v._$litElement$=!0,v.finalized=!0,_t.litElementHydrateSupport?.({LitElement:v});var xe=_t.litElementPolyfillSupport;xe?.({LitElement:v});(_t.litElementVersions??=[]).push("4.2.0");var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},Oe=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},Te=(o,t,e)=>{let s=Se(t).subscribe;return s(n=>{n.some(i=>Oe(o,i.target))&&e()})},wt={},Se=o=>{let t=o.join(","),e=wt[t];if(e!==void 0)return e;let s=new Set,n=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),wt[t]=void 0)})};return wt[t]=r,r},Pe=(o,t)=>{let e=o;for(;e;){let s=e.closest?.(t);if(s)return s;let n=e.getRootNode?.();if(n===globalThis.document)return null;e=n.host}return null};var Ne=(o,t,e)=>Pe(o,`[${t}]`)?.getAttribute(t)??e;var u=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},G=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var Le="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),Re=new Set(Le),at="en",De={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},Ue=async(o,t,e="")=>{let s=`${t}/${e}`,n=`${s}${o}.json`;return xt[n]??(xt[n]=Zt(o,s)),await xt[n]},xt={},Zt=async(o,t)=>{let e=`${t}${o}.json`;try{let s=await fetch(e);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return o===at?{}:await Zt(at,t)},ke=o=>{let t=Ne(o,"lang",globalThis.navigator?.language||at);return{lang:t,t9nLocale:Xt(t)}},Xt=o=>{let[t,e]=o.split("-"),s=t.toLowerCase(),n=s;return e&&(n=`${s}-${e.toUpperCase()}`),n=De[n]??n,Re.has(n)?n:e?Xt(s):at},zs=(o,t,e,s)=>{let n,r=()=>Me(o,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(console.error);return queueMicrotask(r),Te(o,["lang"],r)},Me=async(o,t,e=o.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:n}=ke(o),r=`${t}/${e}/t9n`,a=e===null?{}:await Ue(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:a}};var ct=o=>o.replace(Ie,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ie=/[A-Z]+(?![a-z])|[A-Z]/gu;var te=(o,t)=>{let e=t>je?Ve:t/ze,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},je=4e3,Ve=2e3,ze=4;var ht=Symbol.for("controller"),He=o=>typeof o=="object"&&o!==null&&(ht in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ws=o=>typeof o?.then=="function";var J,k=o=>{J!==o&&(J=o,queueMicrotask(()=>J===o?J=void 0:0))},N=o=>J,P=[],qe=o=>{if(o===void 0){P=[];return}let t=P.indexOf(o);P=t===-1?[...P,o]:P.slice(0,t+1),queueMicrotask(()=>P=[])},Be=()=>P,M,Ks=o=>{M!==o&&(M=o,queueMicrotask(()=>M===o?M=void 0:0))},Fe=()=>{let o=M;return M=void 0,o},We=async(o,t)=>{let e=Tt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},Ke=async o=>{let t=Tt(o);return await t.ready,t},Tt=o=>{let e=N().manager.X(o);if(e!==void 0)return e;if(He(o))return o;let s=Fe();if(s!==void 0)return s},lt=!1,Gs=o=>{lt=!0;try{return o()}finally{lt=!1}};var Ge=(o,t,e)=>{let s=Object.keys(o),n=s.length;I===void 0&&queueMicrotask(dt),I??=new Map;let r=I.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},I.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>u(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},I,dt=()=>{I?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),I=void 0},Je=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>u(t,void 0,e===r?n:void 0)),e},Qe=(o=[N(),...Be()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ge(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Je(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},Ye=(o="",t={},e=N())=>{let s={emit:n=>{o===""&&dt();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Qe(void 0,n=>o=n.key,s),s},Ze=Ye.bind(null,""),oe;oe=ht;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#u=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.#a=[];let e=this,s=t??N(new.target.name);e.#r=s,e.ready=e.P.promise,e.#i=se(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(qe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#u;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#i;get exports(){return this.#i}set exports(t){let e=this.#i;e!==t&&(this.#i=t,this.#a.forEach(u),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#i=e?se(t):t,this.#a.forEach(u)}#a;watchExports(t){let e=()=>t(this.#i);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return k(this.#r),We}get useRef(){return k(this.#r),Ke}get useRefSync(){return k(this.#r),Tt}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#u.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#p(t)}triggerConnected(){let t=this;t.hostConnected&&u(t.hostConnected,t),t.#t.forEach(u),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&u(t.hostDisconnected,t),t.#e.forEach(u),t.#h.forEach(u),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await G(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(G)),this.P.resolve(this.#i)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&u(this.hostLoaded,this),this.#o.forEach(u),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&u(this.hostUpdate,this,t),this.#n.forEach(ee,t)}triggerUpdated(t){this.hostUpdated&&u(this.hostUpdated,this,t),this.#c.forEach(ee,t)}triggerDestroy(){this.hostDestroy&&u(this.hostDestroy,this),this.#l.forEach(u)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#u.forEach(this.#p,this)}#p(t){k(this.#r);let e=u(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function ee(o){u(o,void 0,this)}var ne=Ot,se=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var re=";",ut=",",ie=":";var Pt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Nt={};function Lt(){}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[p,h,m]=l.split(re),y=p?p?.split(ut).map(ts):void 0,_=y?.map(([D])=>D),R=class extends St{static{this.observedAttributes=y?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=_}static{this.E=h?h?.split(ut):void 0}static{this.D=m?.split(ut)}static{this.L=a}static{this.K=o}constructor(){!R.B&&(R.B=c(),R.F()),super()}};customElements.define(a,R)}},pt=Object.defineProperty,ts=o=>{let t=o.split(ie);return t.length===1?[t[0],ct(t[0])]:t},es=globalThis.HTMLElement??Lt,St=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Pt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let p=this.isConnected;(p||this.G)&&(l.connectedCallback?.(),p||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var A=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}};var j=class{constructor(t,e,s,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,i)),this.unsubscribe=i},this.host=t,e.context!==void 0){let r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new A(this.context,this.host,this.t,this.subscribe))}};var ft=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:n}=this.subscriptions.get(t);t(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Rt=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},V=class extends ft{constructor(t,e,s){super(e.context!==void 0?e.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;let r=n.contextTarget??n.composedPath()[0];r!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,r,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let r=new Set;for(let[i,{consumerHost:a}]of this.subscriptions)r.has(i)||(r.add(i),a.dispatchEvent(new A(this.context,a,i,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Rt(this.context,this.host))}};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=o=>(...t)=>({_$litDirective$:o,values:t}),C=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ae=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ce="important",rs=" !"+ce,le=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?ce:""):e[s]=n}}return f}});var{I:is}=Jt;var de=o=>o.strings===void 0,he=()=>document.createComment(""),Fo=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(he(),n),i=s.insertBefore(he(),n);e=new is(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=c.nextSibling;s.insertBefore(c,n),c=l}}}return e},Wo=(o,t,e=o)=>(o._$AI(t,e),o),as={},ue=(o,t=as)=>o._$AH=t,Ko=o=>o._$AH,Go=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var cs=L(class extends C{constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!de(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var En=o=>{let t=N(),e=new V(t.el,o);return t.addController(e),e},$n=o=>{let t=N(),e=new j(t.el,o);return t.addController(e),e};var Dt=class extends ne{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Ut in t&&typeof t.destroy=="function",v.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ut} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),dt();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():u(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():u(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):u(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):u(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),k(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():u(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=te(t,gs)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},gs=1e3,Ut="autoDestroyDisabled",pe=class o extends v{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Nt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??K,i={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!lt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,i)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Nt?this.el:this.el.attachShadow(s));if(t)return v.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Pt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(G(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(Ut)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():u(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(ht in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},fe=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Cn=o=>typeof o=="object"&&o!=null?ae(o):o,An=o=>typeof o=="object"&&o!=null?le(o):o;var _n=d;var Q=fe({defaultAssetPath:"https://jsdev.arcgis.com/next/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:Sn,getAssetPath:Pn,setAssetPath:Nn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{ke as a,zs as b,me as c,As as d,_s as e,f,d as g,Ws as h,k as i,qe as j,Be as k,Ks as l,Gs as m,Qe as n,Ze as o,Ot as p,Nt as q,Xe as r,g as s,L as t,C as u,de as v,Fo as w,Wo as x,ue as y,Ko as z,Go as A,En as B,$n as C,pe as D,Cn as E,An as F,_n as G,Q as H,Sn as I,Pn as J};
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,qt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),$s=Ct(1),Cs=Ct(2),As=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Bt=new WeakMap,x=O.createTreeWalker(O,129);function Kt(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jt!==void 0?jt.createHTML(t):t}var Gt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],h,p,l=-1,m=0;for(;m<c.length&&(i.lastIndex=m,p=i.exec(c),p!==null);)m=i.lastIndex,i===H?p[1]==="!--"?i=Vt:p[1]!==void 0?i=zt:p[2]!==void 0?(Wt.test(p[2])&&(n=RegExp("</"+p[2],"g")),i=w):p[3]!==void 0&&(i=w):i===w?p[0]===">"?(i=n??H,l=-1):p[1]===void 0?l=-2:(l=i.lastIndex-p[2].length,h=p[1],i=p[3]===void 0?w:p[3]==='"'?qt:Ht):i===qt||i===Ht?i=w:i===Vt||i===zt?i=H:(i=w,n=void 0);let y=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+me:l>=0?(s.push(h),c.slice(0,l)+bt+c.slice(l)+E+y):c+E+(l===-2?a:y)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},F=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[h,p]=Gt(t,e);if(this.el=o.createElement(h,s),x.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(n=x.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let l of n.getAttributeNames())if(l.endsWith(bt)){let m=p[i++],y=n.getAttribute(l).split(E),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?et:_[1]==="?"?st:_[1]==="@"?ot:S}),n.removeAttribute(l)}else l.startsWith(E)&&(c.push({type:6,index:r}),n.removeAttribute(l));if(Wt.test(n.tagName)){let l=n.textContent.split(E),m=l.length-1;if(m>0){n.textContent=X?X.emptyScript:"";for(let y=0;y<m;y++)n.append(l[y],q()),x.nextNode(),c.push({type:2,index:++r});n.append(l[m],q())}}}else if(n.nodeType===8)if(n.data===Et)c.push({type:2,index:r});else{let l=-1;for(;(l=n.data.indexOf(E,l+1))!==-1;)c.push({type:7,index:r}),l+=E.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=B(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);x.currentNode=n;let r=x.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let h;c.type===2?h=new U(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new nt(r,this,t)),this._$AV.push(h),c=s[++a]}i!==c?.index&&(r=x.nextNode(),i++)}return x.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ft(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=F.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new tt(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new F(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(q()),this.O(q()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!B(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,h;for(t=r[0],c=0;c<r.length-1;c++)h=T(this,a[s+c],e,c),h===f&&(h=this._$AH[c]),i||=!B(h)||h!==this._$AH[c],h===d?t=d:t!==d&&(t+=(h??"")+r[c+1]),this._$AH[c]=h}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},st=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ot=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Jt={M:bt,P:E,A:Et,C:1,L:Gt,R:tt,D:Ft,V:T,I:U,H:S,N:st,U:ot,B:et,F:nt},ye=vt.litHtmlPolyfillSupport;ye?.(F,U),(vt.litHtmlVersions??=[]).push("3.3.0");var At=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(q(),r),r,void 0,e??{})}return n._$AI(o),n};var{is:ge,defineProperty:ve,getOwnPropertyDescriptor:be,getOwnPropertyNames:Ee,getOwnPropertySymbols:$e,getPrototypeOf:Ce}=Object,it=globalThis,Qt=it.trustedTypes,Ae=Qt?Qt.emptyScript:"",_e=it.reactiveElementPolyfillSupport,W=(o,t)=>o,rt={toAttribute(o,t){switch(t){case Boolean:o=o?Ae:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},K=(o,t)=>!ge(o,t),Yt={attribute:!0,type:String,converter:rt,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol("metadata"),it.litPropertyMetadata??=new WeakMap;var $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&ve(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=be(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yt}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;let t=Ce(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){let e=this.properties,s=[...Ee(e),...$e(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(yt(n))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:rt).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:rt;this._$Em=n,this[n]=i.fromAttribute(e,r.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,r=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??K)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[W("elementProperties")]=new Map,$[W("finalized")]=new Map,_e?.({ReactiveElement:$}),(it.reactiveElementVersions??=[]).push("2.1.0");var _t=globalThis,v=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};v._$litElement$=!0,v.finalized=!0,_t.litElementHydrateSupport?.({LitElement:v});var we=_t.litElementPolyfillSupport;we?.({LitElement:v});(_t.litElementVersions??=[]).push("4.2.0");var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},xe=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},Oe=(o,t,e)=>{let s=Te(t).subscribe;return s(n=>{n.some(i=>xe(o,i.target))&&e()})},wt={},Te=o=>{let t=o.join(","),e=wt[t];if(e!==void 0)return e;let s=new Set,n=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),wt[t]=void 0)})};return wt[t]=r,r},Se=(o,t)=>{let e=o;for(;e;){let s=e.closest?.(t);if(s)return s;let n=e.getRootNode?.();if(n===globalThis.document)return null;e=n.host}return null};var Pe=(o,t,e)=>Se(o,`[${t}]`)?.getAttribute(t)??e;var u=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},G=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var Ne="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),Le=new Set(Ne),at="en",Re={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},De=async(o,t,e="")=>{let s=`${t}/${e}`,n=`${s}${o}.json`;return xt[n]??(xt[n]=Zt(o,s)),await xt[n]},xt={},Zt=async(o,t)=>{let e=`${t}${o}.json`;try{let s=await fetch(e);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return o===at?{}:await Zt(at,t)},Ue=o=>{let t=Pe(o,"lang",globalThis.navigator?.language||at);return{lang:t,t9nLocale:Xt(t)}},Xt=o=>{let[t,e]=o.split("-"),s=t.toLowerCase(),n=s;return e&&(n=`${s}-${e.toUpperCase()}`),n=Re[n]??n,Le.has(n)?n:e?Xt(s):at},js=(o,t,e,s)=>{let n,r=()=>ke(o,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(console.error);return queueMicrotask(r),Oe(o,["lang"],r)},ke=async(o,t,e=o.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:n}=Ue(o),r=`${t}/${e}/t9n`,a=e===null?{}:await De(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:a}};var ct=o=>o.replace(Me,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Me=/[A-Z]+(?![a-z])|[A-Z]/gu;var te=(o,t)=>{let e=t>Ie?je:t/Ve,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},Ie=4e3,je=2e3,Ve=4;var ht=Symbol.for("controller"),ze=o=>typeof o=="object"&&o!==null&&(ht in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Bs=o=>typeof o?.then=="function";var J,k=o=>{J!==o&&(J=o,queueMicrotask(()=>J===o?J=void 0:0))},N=o=>J,P=[],He=o=>{if(o===void 0){P=[];return}let t=P.indexOf(o);P=t===-1?[...P,o]:P.slice(0,t+1),queueMicrotask(()=>P=[])},qe=()=>P,M,Fs=o=>{M!==o&&(M=o,queueMicrotask(()=>M===o?M=void 0:0))},Be=()=>{let o=M;return M=void 0,o},Fe=async(o,t)=>{let e=Tt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},We=async o=>{let t=Tt(o);return await t.ready,t},Tt=o=>{let e=N().manager.X(o);if(e!==void 0)return e;if(ze(o))return o;let s=Be();if(s!==void 0)return s},lt=!1,Ws=o=>{lt=!0;try{return o()}finally{lt=!1}};var Ke=(o,t,e)=>{let s=Object.keys(o),n=s.length;I===void 0&&queueMicrotask(dt),I??=new Map;let r=I.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},I.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=h=>u(t,null,h),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},I,dt=()=>{I?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),I=void 0},Ge=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>u(t,void 0,e===r?n:void 0)),e},Je=(o=[N(),...qe()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ke(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ge(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},Qe=(o="",t={},e=N())=>{let s={emit:n=>{o===""&&dt();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Je(void 0,n=>o=n.key,s),s},Ye=Qe.bind(null,""),oe;oe=ht;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#u=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.#a=[];let e=this,s=t??N(new.target.name);e.#r=s,e.ready=e.P.promise,e.#i=se(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(He(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#u;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#i;get exports(){return this.#i}set exports(t){let e=this.#i;e!==t&&(this.#i=t,this.#a.forEach(u),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#i=e?se(t):t,this.#a.forEach(u)}#a;watchExports(t){let e=()=>t(this.#i);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return k(this.#r),Fe}get useRef(){return k(this.#r),We}get useRefSync(){return k(this.#r),Tt}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#u.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#p(t)}triggerConnected(){let t=this;t.hostConnected&&u(t.hostConnected,t),t.#t.forEach(u),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&u(t.hostDisconnected,t),t.#e.forEach(u),t.#h.forEach(u),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await G(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(G)),this.P.resolve(this.#i)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&u(this.hostLoaded,this),this.#o.forEach(u),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&u(this.hostUpdate,this,t),this.#n.forEach(ee,t)}triggerUpdated(t){this.hostUpdated&&u(this.hostUpdated,this,t),this.#c.forEach(ee,t)}triggerDestroy(){this.hostDestroy&&u(this.hostDestroy,this),this.#l.forEach(u)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#u.forEach(this.#p,this)}#p(t){k(this.#r);let e=u(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function ee(o){u(o,void 0,this)}var ne=Ot,se=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var re=";",ut=",",ie=":";var Pt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Nt={};function Lt(){}var Ze=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,h=""]]of Object.entries(t)){if(customElements.get(a))continue;let[p,l,m]=h.split(re),y=p?p?.split(ut).map(Xe):void 0,_=y?.map(([D])=>D),R=class extends St{static{this.observedAttributes=y?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=_}static{this.E=l?l?.split(ut):void 0}static{this.D=m?.split(ut)}static{this.L=a}static{this.K=o}constructor(){!R.B&&(R.B=c(),R.F()),super()}};customElements.define(a,R)}},pt=Object.defineProperty,Xe=o=>{let t=o.split(ie);return t.length===1?[t[0],ct(t[0])]:t},ts=globalThis.HTMLElement??Lt,St=class extends ts{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Pt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(l=>l.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ss(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let h=document.createElement(i);r.N=void 0,this.#t=h,this.#e=h,this.#s.forEach(l=>h.attributeChangedCallback(l,null,this.getAttribute(l))),Object.entries(n).forEach(es,h);let p=this.isConnected;(p||this.G)&&(h.connectedCallback?.(),p||h.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function es([o,t]){this[o]=t}var ss=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var A=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}};var j=class{constructor(t,e,s,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,i)),this.unsubscribe=i},this.host=t,e.context!==void 0){let r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new A(this.context,this.host,this.t,this.subscribe))}};var ft=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:n}=this.subscriptions.get(t);t(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Rt=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},V=class extends ft{constructor(t,e,s){super(e.context!==void 0?e.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;let r=n.contextTarget??n.composedPath()[0];r!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,r,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let r=new Set;for(let[i,{consumerHost:a}]of this.subscriptions)r.has(i)||(r.add(i),a.dispatchEvent(new A(this.context,a,i,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Rt(this.context,this.host))}};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=o=>(...t)=>({_$litDirective$:o,values:t}),C=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ae=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ce="important",ns=" !"+ce,le=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(ns);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?ce:""):e[s]=n}}return f}});var{I:qo}=Jt;var he=o=>o.strings===void 0;var rs={},de=(o,t=rs)=>o._$AH=t;var is=L(class extends C{constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!he(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return de(o),t}});var mn=o=>{let t=N(),e=new V(t.el,o);return t.addController(e),e},yn=o=>{let t=N(),e=new j(t.el,o);return t.addController(e),e};var Dt=class extends ne{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Ut in t&&typeof t.destroy=="function",v.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ut} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),dt();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():u(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():u(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):u(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):u(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),k(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():u(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=te(t,ms)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ms=1e3,Ut="autoDestroyDisabled",ue=class o extends v{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Nt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??K,i={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let h=r(a,c);return i.c=h,h}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!lt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,i)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Nt?this.el:this.el.attachShadow(s));if(t)return v.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Pt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(G(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(Ut)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():u(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(ht in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},pe=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var gn=o=>typeof o=="object"&&o!=null?ae(o):o,vn=o=>typeof o=="object"&&o!=null?le(o):o;var bn=d;var Q=pe({defaultAssetPath:"https://jsdev.arcgis.com/next/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:_n,getAssetPath:wn,setAssetPath:xn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ue as a,js as b,fe as c,$s as d,Cs as e,d as f,Bs as g,k as h,He as i,qe as j,Fs as k,Ws as l,Je as m,Ye as n,Ot as o,Nt as p,Ze as q,g as r,L as s,C as t,he as u,de as v,mn as w,yn as x,ue as y,gn as z,vn as A,bn as B,Q as C,_n as D,wn as E};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{a,b}from"./Y4ZIUU3O.js";import"./R3KXDLBC.js";import"./54BQVAZQ.js";import"./73M3K3MB.js";import"./FQLSHIBF.js";export{a as TemplateEditorTypes,b as TemplateSchema};
3
+ v1.0.0-next.20250610 */
4
+ import{a,b}from"./COVJW67Z.js";import"./62U5XQ53.js";import"./GWCLKO7W.js";import"./QDCUDH5M.js";import"./SA3FJIMJ.js";export{a as TemplateEditorTypes,b as TemplateSchema};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250610 */
4
+ import{a as i}from"./GZTSZRL2.js";import{o as r}from"./AJ4EANAJ.js";var a={location:"location.json"};function y(){let o=["access","created","culture","description","extent","id","itemControl","modified","owner","tags","categories","type","typeKeywords","thumbnail","url","orgId"],t=["display","geometry","view","associations","catalogs","assistant"],n=Object.keys(a),e=[];return o.forEach(s=>{e.push({entityKey:s,storeKey:`item.${s}`})}),t.forEach(s=>{e.push({entityKey:s,storeKey:`data.${s}`})}),n.forEach(s=>{e.push({entityKey:s,storeKey:`resources.${s}`})}),e.push({entityKey:"slug",storeKey:"item.properties.slug"}),e.push({entityKey:"summary",storeKey:"item.snippet"}),e.push({entityKey:"schemaVersion",storeKey:"item.properties.schemaVersion"}),e.push({entityKey:"orgUrlKey",storeKey:"item.properties.orgUrlKey"}),e.push({entityKey:"name",storeKey:"item.title"}),e.push({entityKey:"boundary",storeKey:"item.properties.boundary"}),e.push({entityKey:"discussionSettings",storeKey:"entitySettings.settings.discussions"}),e.push({entityKey:"entitySettingsId",storeKey:"entitySettings.id"}),e}function K(o,t){return t.createdDate=new Date(o.created),t.createdDateSource="item.created",t.updatedDate=new Date(o.modified),t.updatedDateSource="item.modified",t.location=t.location||r(o),t.isDiscussable=i(o),t}export{y as a,K as b};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250610 */
4
+ import{d as t,f as i}from"./ZRRGRRES.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{c as a}from"./Y2XCXPZJ.js";import"./FQLSHIBF.js";export{a as MetricSchema};
3
+ v1.0.0-next.20250610 */
4
+ import{c as a}from"./PERO5WYC.js";import"./SA3FJIMJ.js";export{a as MetricSchema};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250610 */
4
+ import{a as n}from"./XOEQBFVP.js";import{a as p}from"./T3L6RRVE.js";import"./V3GT6ZDE.js";import"./H7XUQNKK.js";import{a}from"./UI54E7VB.js";import"./OG4YXHRH.js";import"./JA6ZHJAG.js";import{a as r,b as i}from"./7NYELHIW.js";import"./AE4QMTGD.js";import"./XKTGW3XN.js";import"./LUWKLSCB.js";import"./GRH6L6AX.js";import"./6ZSHJ5AZ.js";import{a as t}from"./2KAZVBXF.js";import"./GLQGCQKQ.js";import"./U5WH4XWF.js";import"./RKK6IXRN.js";import"./UIUU6DED.js";import"./3U5ZQLVD.js";import"./VHT2MWYW.js";import"./COVJW67Z.js";import"./AO22ELU2.js";import"./2VLL65Q3.js";import"./XIWWE2AH.js";import"./7EC2QANE.js";import"./YFYERRHB.js";import"./N4PA6ZFU.js";import"./OGISURJ2.js";import"./SPJUB4WW.js";import"./GA2ZUKPH.js";import"./OBGE3PJZ.js";import"./PERO5WYC.js";import"./YN6JZ5LC.js";import"./62U5XQ53.js";import"./GWCLKO7W.js";import"./QDCUDH5M.js";import"./SA3FJIMJ.js";var h=async(e,s,o)=>{var l;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,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:`${e}.fields.name.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,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.hero.helperText`},labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}}]}]},{type:"Section",labelKey:`${e}.sections.hero.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"image"}}},options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(s.location,o.hubRequestOptions),options:await i(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.fields.featuredImage.label`,options:{helperText:{labelKey:`${e}.fields.featuredImage.helperText`}},rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},elements:[{scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:a((l=s.view)===null||l===void 0?void 0:l.featuredImageUrl,o.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:n(o.currentUser.groups),disabled:!p("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]}};export{h as buildUiSchema};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{a as n}from"./F4VOMVZI.js";import{D as r,I as o,c as t,d as i,q as s}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var a=t`@layer{/** @license
3
+ v1.0.0-next.20250610 */
4
+ import{a as n}from"./YJVHNGLM.js";import{D as o,c as t,d as i,p as s,y as r}from"./KXIP4DWR.js";import"./SA3FJIMJ.js";var a=t`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import{d as g}from"./6QFHZ3JL.js";import"./LACXORO5.js";import{b as m}from"./K4J7ONE5.js";import{a as d,b as p}from"./USOHU6ZJ.js";import{a as u}from"./F4VOMVZI.js";import{D as c,I as h,c as n,d as i,o as a,q as l}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var f=n`@layer{/** @license
3
+ v1.0.0-next.20250610 */
4
+ import{d as g}from"./A7XA3HJY.js";import"./QVNQSDMG.js";import{b as m}from"./GT7ZLIPV.js";import{a as d,b as p}from"./EY76BJOK.js";import{a as u}from"./YJVHNGLM.js";import{D as h,c as n,d as i,n as a,p as l,y as c}from"./KXIP4DWR.js";import"./SA3FJIMJ.js";var C=n`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{d as g}from"./6QFHZ3JL.js";import"./LACXORO5.js";import{b as m}from"./K4J
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */:host{display:block!important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}card-manager{display:block}}`,r=class extends c{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._translations=u({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=d(),this.createWorkFlowStarted=a(),this.backFromCreateWorkFlow=a(),this.featureOrRecordSubmitted=a(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled)}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,selectingFeatureFromMap:5,showSketchWidgets:5,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_translations:16}}static{this.styles=f}static{this.shadowRootOptions=l}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await g(this.mapView,t):void 0}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){let e=this._graphics?.length>0?"":"display-none",t=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",s=this._graphics?.length>0||this._showCreateFeatureComponent?"display-none":"",o=this.layerOrTable?.isTable,b=o?this._translations.createRecord:this._translations.createFeature,w=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,F=this.enableCreateFeatures&&this.layerOrTable?.capabilities?.operations?.supportsAdd,_=!this.layerOrTable;return i`<div class="overflow-auto height-full"><calcite-shell class=${`position-relative ${e}`}><div class="position-static z-index-500 height-full"><info-card allow-editing .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${this.enableSnapping} .graphics=${this._graphics} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} position=relative show-close-btn></info-card></div></calcite-shell><calcite-shell class=${`position-relative ${s}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${w}</div></calcite-notice></div>${!this.isMobile&&F&&i`<calcite-button .disabled=${_} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${o?this._translations.createRecord:this._translations.createFeature}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${t}`}><calcite-flow-item selected><calcite-panel .heading=${b}><calcite-action class="back-button hydrated" icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start text></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&i`<calcite-button appearance=solid class="footer-top-button footer-button" @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell></div>`}getEditorComponent(){return i`<div>${this._showCreateFeatureComponent&&i`<create-feature customize-submit .enableSnapping=${this.enableSnapping&&this.enableCreateFeatures} .mapView=${this.mapView} .isMobile=${this.isMobile} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${e=>{this._showSubmitBtn=!e.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} ${p(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await m(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,s)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(s.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature.value&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout(()=>{this._showCreateFeatureComponent=!0},50)}};h("card-manager",r);export{r as CardManager};
18
+ */:host{display:block!important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}card-manager{display:block}}`,r=class extends c{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._translations=u({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=d(),this.createWorkFlowStarted=a(),this.backFromCreateWorkFlow=a(),this.featureOrRecordSubmitted=a(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled)}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,selectingFeatureFromMap:5,showSketchWidgets:5,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_translations:16}}static{this.styles=C}static{this.shadowRootOptions=l}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await g(this.mapView,t):void 0}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){let e=this._graphics?.length>0?"":"display-none",t=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",s=this._graphics?.length>0||this._showCreateFeatureComponent?"display-none":"",o=this.layerOrTable?.isTable,b=o?this._translations.createRecord:this._translations.createFeature,w=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,F=this.enableCreateFeatures&&this.layerOrTable?.capabilities?.operations?.supportsAdd,_=!this.layerOrTable,f=this.enableSnapping&&!this.layerOrTable?.isTable;return i`<div class="overflow-auto height-full"><calcite-shell class=${`position-relative ${e}`}><div class="position-static z-index-500 height-full"><info-card allow-editing .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${f} .graphics=${this._graphics} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} position=relative show-close-btn></info-card></div></calcite-shell><calcite-shell class=${`position-relative ${s}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${w}</div></calcite-notice></div>${!this.isMobile&&F&&i`<calcite-button .disabled=${_} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${o?this._translations.createRecord:this._translations.createFeature}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${t}`}><calcite-flow-item selected><calcite-panel .heading=${b}><calcite-action class="back-button hydrated" icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start text></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&i`<calcite-button appearance=solid class="footer-top-button footer-button" @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell></div>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return i`<div>${this._showCreateFeatureComponent&&i`<create-feature customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} ${p(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await m(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,s)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(s.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature.value&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout(()=>{this._showCreateFeatureComponent=!0},50)}};h("card-manager",r);export{r as CardManager};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- import"./FQLSHIBF.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
3
+ v1.0.0-next.20250610 */
4
+ import"./SA3FJIMJ.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250604 */
4
- function L(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function C(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function N(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function J(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>J(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function O(r){let e=N(r);return Object.keys(e).map(t=>J(t,e[t])).join("&")}var K=globalThis.FormData,me=globalThis.File,ge=globalThis.Blob;function W(r,e){let t=C(r)||e,n=N(r);if(t){let o=new K;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return O(r)}var b=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};function V(r){console&&console.warn&&console.warn.apply(console,[r])}function Q(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}var q="@esri/arcgis-rest-js";function ie(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var R=class extends b{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return X(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ae(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new b(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new R(s,u,r,e,n):new b(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new b(s,i,r,e,n)}return r}function X(r,e){let t=ie(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let g;if(typeof n.authentication=="string"){let c=n.authentication;g={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(V("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else g=n.authentication;let d=r;return(g?g.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),g&&g.getDomainCredentials&&(u.credentials=g.getDomainCredentials(r));let h={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(h["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let f=O(i)===""?r:r+"?"+O(i);n.maxUrlLength&&f.length>n.maxUrlLength||!n.maxUrlLength&&f.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete h["X-Esri-Authorization"])):r=f}let E=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=W(i,E)),u.headers=Object.assign(Object.assign({},h),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=q),!C(i)&&!E&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):Q().then(({fetch:l})=>l(r,u))}).then(c=>{if(!c.ok)return c.json().then(h=>{let{status:E,statusText:l}=c,{message:f,details:T}=h.error,w=`${f}. ${T?T.join(" "):""}`.trim();throw new b(w,`HTTP ${E} ${l}`,h,r,n)}).catch(h=>{if(h.name==="ArcGISRequestError")throw h;let{status:E,statusText:l}=c;throw new b(l,`HTTP ${E}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let h=ae(c,d,i,n,a);if(a){let E=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[E]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return h}else return c})}function p(r,e={params:{f:"json"}}){let{request:t}=e,n=L(e,["request"]);return t?t(r,n):X(r,n).catch(o=>o instanceof R&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function ce(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function Y(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=ce(t);return e[n]=o,e},{})}var B=5*60*1e3;function v(r,e){let t=e;return t.rawResponse=!1,p(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-B),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-B)),o})}function m(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var F=/^https?:\/\/(\S+)\.arcgis\.com.+/;function Z(r){return F.test(r)}function ue(r){if(!F.test(r))return r;switch(G(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function G(r){if(!F.test(r))return null;let t=r.match(F)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ee(r,e){let t=m(ue(e)).replace(/https?:\/\//,""),n=m(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function te(r,e){let t=Z(r),n=Z(e),o=G(r),s=G(e);return!!(t&&n&&o===s)}function re(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return p(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function Ge(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var D=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var ne;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(ne||(ne={}));var A=class{constructor(e){this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=p(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var H;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(H||(H={}));function oe(r){let e=`${m(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return p(e,o).then(s=>{if(!s.success)throw new b("Unable to revoke token",500,s,e,o);return s})}function M(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function se(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>M(new Uint8Array(o),e))}return Promise.resolve(null)}function z(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return M(e)}function le(r){return typeof r.userId=="string"||typeof r.expires=="number"}var k=class r extends A{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:g,locale:d,params:c,style:h,pkce:E,state:l}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),f=l||z(t),T=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(T,f);let w=`${m(n)}/oauth2/authorize`,I={client_id:s,response_type:E?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:f,originalUrl:t.location.href}),locale:d,style:h};o!=="arcgis"&&(w=`${m(n)}/oauth2/social/authorize`,I.socialLoginProviderName=o,I.autoAccountCreateForSocial=!0);let $;if(E){let P=z(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,P),$=se(P,t).then(function(_){I.code_challenge_method=_?"S256":"plain",I.code_challenge=_||P})}else $=Promise.resolve();return $.then(()=>{if(w=`${w}?${O(I)}`,c&&(w=`${w}&${O(c)}`),u)return new Promise((P,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new D;return U(j),j}if(_.detail.errorMessage){let j=new R(_.detail.errorMessage,_.detail.error);return U(j),j}P(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(w,"oauth-window",g),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=w})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,g=t.localStorage.getItem(u),d=Y(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),c=d&&d.state?JSON.parse(d.state):void 0;function h(l,f,T){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:f,errorMessage:l}})),t.close();return}return T&&t.history.replaceState(t.history.state,"",T),f==="access_denied"?Promise.reject(new D):Promise.reject(new R(l,f))}function E(l,f){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},l)})),t.close();return}return t.history.replaceState(t.history.state,"",f),new r({clientId:o,portal:n,ssl:l.ssl,token:l.token,tokenExpires:l.expires,username:l.username,refreshToken:l.refreshToken,refreshTokenExpires:l.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!g||!c)return h("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(c.id!==g)return h("Saved client state did not match server sent state.","mismatched-auth-state");if(d.error){let l=d.error,f=d.error_description||"Unknown error";return h(f,l,c.originalUrl)}if(i&&d.code){let l=m(`${n}/oauth2/token/`),f=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,T=t.localStorage.getItem(f);return t.localStorage.removeItem(f),v(l,{httpMethod:"POST",params:{client_id:o,code_verifier:T,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:d.code}}).then(w=>E(Object.assign(Object.assign({},w),c),c.originalUrl)).catch(w=>h(w.originalMessage,w.code,c.originalUrl))}return!i&&d.access_token?Promise.resolve(E(Object.assign({token:d.access_token,expires:new Date(Date.now()+parseInt(d.expires_in,10)*1e3),ssl:d.ssl==="true",username:d.username},c),c.originalUrl)):h("Unknown error","oauth-error",c.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let g=`${n}/oauth2/authorize?${O(u)}`;t.writeHead(301,{Location:g}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return v(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:m(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return le(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return oe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=p(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return te(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>re(t,e))}toJSON(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=m(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>p(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ee(s.owningSystemUrl,this.portal))return p(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return p(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:q};return(this.server?p(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>p(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):p(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return v(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return v(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function S(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new k(r)}S.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),k.beginOAuth2(...r)};S.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),k.completeOAuth2(...r)};S.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),k.fromParent(...r)};S.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),k.authorize(...r)};S.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),k.exchangeAuthorizationCode(...r)};S.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),k.fromCredential(...r)};S.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),k.deserialize(...r)};export{V as a,p as b,Ge as c,m as d,k as e};
3
+ v1.0.0-next.20250610 */
4
+ function L(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function C(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function N(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function J(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>J(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function O(r){let e=N(r);return Object.keys(e).map(t=>J(t,e[t])).join("&")}var K=globalThis.FormData,me=globalThis.File,ge=globalThis.Blob;function W(r,e){let t=C(r)||e,n=N(r);if(t){let o=new K;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return O(r)}var b=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};function V(r){console&&console.warn&&console.warn.apply(console,[r])}function Q(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}var q="@esri/arcgis-rest-js";function ie(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var R=class extends b{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return X(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ae(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new b(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new R(s,u,r,e,n):new b(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new b(s,i,r,e,n)}return r}function X(r,e){let t=ie(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let g;if(typeof n.authentication=="string"){let c=n.authentication;g={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(V("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else g=n.authentication;let d=r;return(g?g.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),g&&g.getDomainCredentials&&(u.credentials=g.getDomainCredentials(r));let h={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(h["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let f=O(i)===""?r:r+"?"+O(i);n.maxUrlLength&&f.length>n.maxUrlLength||!n.maxUrlLength&&f.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete h["X-Esri-Authorization"])):r=f}let E=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=W(i,E)),u.headers=Object.assign(Object.assign({},h),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=q),!C(i)&&!E&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):Q().then(({fetch:l})=>l(r,u))}).then(c=>{if(!c.ok)return c.json().then(h=>{let{status:E,statusText:l}=c,{message:f,details:T}=h.error,w=`${f}. ${T?T.join(" "):""}`.trim();throw new b(w,`HTTP ${E} ${l}`,h,r,n)}).catch(h=>{if(h.name==="ArcGISRequestError")throw h;let{status:E,statusText:l}=c;throw new b(l,`HTTP ${E}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let h=ae(c,d,i,n,a);if(a){let E=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[E]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return h}else return c})}function p(r,e={params:{f:"json"}}){let{request:t}=e,n=L(e,["request"]);return t?t(r,n):X(r,n).catch(o=>o instanceof R&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function ce(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function Y(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=ce(t);return e[n]=o,e},{})}var B=5*60*1e3;function v(r,e){let t=e;return t.rawResponse=!1,p(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-B),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-B)),o})}function m(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var F=/^https?:\/\/(\S+)\.arcgis\.com.+/;function Z(r){return F.test(r)}function ue(r){if(!F.test(r))return r;switch(G(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function G(r){if(!F.test(r))return null;let t=r.match(F)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ee(r,e){let t=m(ue(e)).replace(/https?:\/\//,""),n=m(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function te(r,e){let t=Z(r),n=Z(e),o=G(r),s=G(e);return!!(t&&n&&o===s)}function re(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return p(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function Ge(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var D=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var ne;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(ne||(ne={}));var A=class{constructor(e){this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=p(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var H;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(H||(H={}));function oe(r){let e=`${m(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return p(e,o).then(s=>{if(!s.success)throw new b("Unable to revoke token",500,s,e,o);return s})}function M(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function se(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>M(new Uint8Array(o),e))}return Promise.resolve(null)}function z(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return M(e)}function le(r){return typeof r.userId=="string"||typeof r.expires=="number"}var k=class r extends A{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:g,locale:d,params:c,style:h,pkce:E,state:l}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),f=l||z(t),T=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(T,f);let w=`${m(n)}/oauth2/authorize`,I={client_id:s,response_type:E?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:f,originalUrl:t.location.href}),locale:d,style:h};o!=="arcgis"&&(w=`${m(n)}/oauth2/social/authorize`,I.socialLoginProviderName=o,I.autoAccountCreateForSocial=!0);let $;if(E){let P=z(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,P),$=se(P,t).then(function(_){I.code_challenge_method=_?"S256":"plain",I.code_challenge=_||P})}else $=Promise.resolve();return $.then(()=>{if(w=`${w}?${O(I)}`,c&&(w=`${w}&${O(c)}`),u)return new Promise((P,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new D;return U(j),j}if(_.detail.errorMessage){let j=new R(_.detail.errorMessage,_.detail.error);return U(j),j}P(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(w,"oauth-window",g),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=w})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,g=t.localStorage.getItem(u),d=Y(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),c=d&&d.state?JSON.parse(d.state):void 0;function h(l,f,T){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:f,errorMessage:l}})),t.close();return}return T&&t.history.replaceState(t.history.state,"",T),f==="access_denied"?Promise.reject(new D):Promise.reject(new R(l,f))}function E(l,f){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},l)})),t.close();return}return t.history.replaceState(t.history.state,"",f),new r({clientId:o,portal:n,ssl:l.ssl,token:l.token,tokenExpires:l.expires,username:l.username,refreshToken:l.refreshToken,refreshTokenExpires:l.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!g||!c)return h("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(c.id!==g)return h("Saved client state did not match server sent state.","mismatched-auth-state");if(d.error){let l=d.error,f=d.error_description||"Unknown error";return h(f,l,c.originalUrl)}if(i&&d.code){let l=m(`${n}/oauth2/token/`),f=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,T=t.localStorage.getItem(f);return t.localStorage.removeItem(f),v(l,{httpMethod:"POST",params:{client_id:o,code_verifier:T,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:d.code}}).then(w=>E(Object.assign(Object.assign({},w),c),c.originalUrl)).catch(w=>h(w.originalMessage,w.code,c.originalUrl))}return!i&&d.access_token?Promise.resolve(E(Object.assign({token:d.access_token,expires:new Date(Date.now()+parseInt(d.expires_in,10)*1e3),ssl:d.ssl==="true",username:d.username},c),c.originalUrl)):h("Unknown error","oauth-error",c.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let g=`${n}/oauth2/authorize?${O(u)}`;t.writeHead(301,{Location:g}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return v(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:m(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return le(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return oe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=p(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return te(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>re(t,e))}toJSON(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=m(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>p(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ee(s.owningSystemUrl,this.portal))return p(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return p(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:q};return(this.server?p(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>p(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):p(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return v(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return v(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function S(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new k(r)}S.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),k.beginOAuth2(...r)};S.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),k.completeOAuth2(...r)};S.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),k.fromParent(...r)};S.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),k.authorize(...r)};S.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),k.exchangeAuthorizationCode(...r)};S.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),k.fromCredential(...r)};S.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),k.deserialize(...r)};export{W as a,V as b,R as c,p as d,Ge as e,m as f,k as g};