@esri/solutions-components 5.1.0-next.158 → 5.1.0-next.159

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 (539) hide show
  1. package/dist/cdn/{O4YFJXGF.js → 22BJ76LD.js} +1 -1
  2. package/dist/cdn/24DOFCUH.js +2 -0
  3. package/dist/cdn/{OBD737XY.js → 26EKIZQ3.js} +1 -1
  4. package/dist/cdn/{DOXKOGC2.js → 26QXT6ZT.js} +1 -1
  5. package/dist/cdn/{A7PEHKA2.js → 2OCRSUSE.js} +1 -1
  6. package/dist/cdn/{NC34DM4N.js → 2UCURPVT.js} +1 -1
  7. package/dist/cdn/{DZB3263I.js → 2X3SHREV.js} +1 -1
  8. package/dist/cdn/{YXCHECNE.js → 3A5WS2II.js} +1 -1
  9. package/dist/cdn/{LQABMPPT.js → 3D5OFNW5.js} +1 -1
  10. package/dist/cdn/{IO5DIUTT.js → 3E7MYA66.js} +1 -1
  11. package/dist/cdn/{YWXDNRE2.js → 3IHDWRXV.js} +1 -1
  12. package/dist/cdn/3IO2JXVB.js +2 -0
  13. package/dist/cdn/{OOP3DI7Y.js → 3KRXI2TQ.js} +1 -1
  14. package/dist/cdn/{GDDMG3Q4.js → 3NKGACT7.js} +1 -1
  15. package/dist/cdn/{7Y32UJS4.js → 3QIWKYQY.js} +1 -1
  16. package/dist/cdn/3SDEIO24.js +2 -0
  17. package/dist/cdn/{N3ENJ6TJ.js → 3Z7EYDFO.js} +2 -2
  18. package/dist/cdn/{57DEUKTH.js → 4ALVWOG7.js} +1 -1
  19. package/dist/cdn/{QLOWHDGX.js → 4OKIVS32.js} +1 -1
  20. package/dist/cdn/{YKSW755L.js → 4PNNKMNH.js} +1 -1
  21. package/dist/cdn/{Y3Q6SFIV.js → 55QBAVPE.js} +1 -1
  22. package/dist/cdn/{7ZJQQBSR.js → 57SZHKM5.js} +1 -1
  23. package/dist/cdn/{MDNGEZ2V.js → 5BN62I7L.js} +1 -1
  24. package/dist/cdn/{LKVCSRAJ.js → 5EXKQXLZ.js} +1 -1
  25. package/dist/cdn/{JQANOMEB.js → 5F6KCXYP.js} +1 -1
  26. package/dist/cdn/{RYETW3AF.js → 5JBZ6L5Q.js} +1 -1
  27. package/dist/cdn/{ZQAD6SUE.js → 5K5GHKON.js} +1 -1
  28. package/dist/cdn/{KP3AJBAI.js → 5VIB2BPJ.js} +1 -1
  29. package/dist/cdn/{X26QOEYN.js → 62CPZJO5.js} +1 -1
  30. package/dist/cdn/{5XDPNTYE.js → 62QGEVBO.js} +1 -1
  31. package/dist/cdn/{VCL4OTSQ.js → 632J5NXN.js} +1 -1
  32. package/dist/cdn/{67UYAVGW.js → 6LHIJG7J.js} +1 -1
  33. package/dist/cdn/{SSZBIVTK.js → 6XWFCHCJ.js} +1 -1
  34. package/dist/cdn/73EY5SIB.js +2 -0
  35. package/dist/cdn/{HGONAEKC.js → 7FZDDT7D.js} +1 -1
  36. package/dist/cdn/{CSW2JRVE.js → 7MNSZGMB.js} +1 -1
  37. package/dist/cdn/{5GHZQ66V.js → 7NUJ4IS5.js} +1 -1
  38. package/dist/cdn/{WFHPQFNH.js → 7OHSJ5SV.js} +1 -1
  39. package/dist/cdn/{HEI6GMZN.js → 7VQB43WL.js} +1 -1
  40. package/dist/cdn/{GXIGM56I.js → 7YJMTZFC.js} +1 -1
  41. package/dist/cdn/{LI7Q44Z6.js → 7ZJBP3SS.js} +1 -1
  42. package/dist/cdn/{3SRDS4KQ.js → 7ZSO7MSX.js} +1 -1
  43. package/dist/cdn/{CA4YH6B3.js → A2VP46QZ.js} +1 -1
  44. package/dist/cdn/{MPSNK45A.js → A62EWI7L.js} +1 -1
  45. package/dist/cdn/{MSUQVQBX.js → ACTJS4TX.js} +3 -3
  46. package/dist/cdn/{LF3HQQMS.js → AEALFROI.js} +1 -1
  47. package/dist/cdn/{UNJV2PKC.js → AM6QSTRH.js} +1 -1
  48. package/dist/cdn/{MZXUUA7G.js → AS6VINEU.js} +1 -1
  49. package/dist/cdn/{KXT52OBS.js → AYJ5ZPU6.js} +1 -1
  50. package/dist/cdn/{2UIPY2ED.js → BATEZR3T.js} +1 -1
  51. package/dist/cdn/{C5PGLCTJ.js → BEKMMPB7.js} +1 -1
  52. package/dist/cdn/{AXFB53AQ.js → BQ7O62CG.js} +1 -1
  53. package/dist/cdn/{YELTRFZZ.js → BVG2SE55.js} +1 -1
  54. package/dist/cdn/{KZSBETIP.js → C5BQAX2M.js} +1 -1
  55. package/dist/cdn/{M7GWNGTJ.js → CARCFJRD.js} +1 -1
  56. package/dist/cdn/{DOHGEFCF.js → CAXDDYGL.js} +1 -1
  57. package/dist/cdn/{NVEAYDYI.js → CAYWD56D.js} +1 -1
  58. package/dist/cdn/{CRDJXHSQ.js → CFJ4FEY3.js} +1 -1
  59. package/dist/cdn/{KZFMPHCV.js → CLRLOHTR.js} +1 -1
  60. package/dist/cdn/{M5ZEJF3J.js → CPOZIWVH.js} +1 -1
  61. package/dist/cdn/{UVHM4PU5.js → CUG5CROK.js} +1 -1
  62. package/dist/cdn/{O7O4T4G4.js → CYEFGPUM.js} +3 -3
  63. package/dist/cdn/{XLB42ULH.js → CZVHNBQN.js} +1 -1
  64. package/dist/cdn/{F7FCYGIB.js → D2EVPZ5K.js} +1 -1
  65. package/dist/cdn/{JJV3TD42.js → D4TEADUS.js} +1 -1
  66. package/dist/cdn/{CZJPS7CF.js → D52QVYYU.js} +1 -1
  67. package/dist/cdn/{66VSNZFA.js → D5JF7XQN.js} +1 -1
  68. package/dist/cdn/{35HRMJUI.js → D6ZGMSQF.js} +1 -1
  69. package/dist/cdn/{MWFCDDBC.js → D7G4LZRG.js} +1 -1
  70. package/dist/cdn/{73O55ZBJ.js → DGQQF6WF.js} +1 -1
  71. package/dist/cdn/{JTENM3PQ.js → DJYT367X.js} +1 -1
  72. package/dist/cdn/{YAUQSIXM.js → DKQRECGR.js} +1 -1
  73. package/dist/cdn/{EPKRNLRL.js → DKXVDY6L.js} +1 -1
  74. package/dist/cdn/{RFSPNC4B.js → DLDR5V2P.js} +1 -1
  75. package/dist/cdn/{7KEONOFN.js → DMENKRSP.js} +1 -1
  76. package/dist/cdn/{DWAYOC2L.js → DWKKP34X.js} +1 -1
  77. package/dist/cdn/{JDCZUOU6.js → E25ZWVBK.js} +1 -1
  78. package/dist/cdn/{HYB5LBMY.js → E7CWZMS4.js} +1 -1
  79. package/dist/cdn/{AVBZ2B75.js → EF2TTWG5.js} +1 -1
  80. package/dist/cdn/{XDZPQACK.js → EG5KPZQ2.js} +1 -1
  81. package/dist/cdn/{6BIHAEOS.js → EHSIODIO.js} +1 -1
  82. package/dist/cdn/{SNJPMQCE.js → EKK5FR2V.js} +1 -1
  83. package/dist/cdn/{AOJP5RQ6.js → EMPMQDRQ.js} +1 -1
  84. package/dist/cdn/{XBFG3KX6.js → ENLFOYSI.js} +1 -1
  85. package/dist/cdn/{6Q52JBZW.js → ES63XK5X.js} +1 -1
  86. package/dist/cdn/EXBEKVP5.js +2 -0
  87. package/dist/cdn/{NM2PQIH6.js → EYJQEBDF.js} +1 -1
  88. package/dist/cdn/{EF4LWVLU.js → F3A22NPP.js} +1 -1
  89. package/dist/cdn/{Y6KZTCZD.js → F5SUVMAE.js} +1 -1
  90. package/dist/cdn/{CTREZRNZ.js → F6J3OLVZ.js} +1 -1
  91. package/dist/cdn/{RKWTJT6L.js → FA5CJT2S.js} +1 -1
  92. package/dist/cdn/{S6J35GRM.js → FBGCV6YJ.js} +1 -1
  93. package/dist/cdn/{XSOTJ56B.js → FBSKACM2.js} +1 -1
  94. package/dist/cdn/{V52O7WYV.js → FCJFAZ4S.js} +1 -1
  95. package/dist/cdn/{ANVT6ANQ.js → FE6JCIZY.js} +1 -1
  96. package/dist/cdn/{HJW2JW4G.js → FVR5S6DL.js} +1 -1
  97. package/dist/cdn/{YJBXJNUR.js → FZNRD2XJ.js} +1 -1
  98. package/dist/cdn/{TRXDA7G2.js → G2RMWJ7R.js} +1 -1
  99. package/dist/cdn/{6OJALTOU.js → G63OYQ7G.js} +1 -1
  100. package/dist/cdn/{RXOPHYUF.js → GABDTUB7.js} +1 -1
  101. package/dist/cdn/{BLR4MTOP.js → GLC7JVKG.js} +1 -1
  102. package/dist/cdn/{B3BR2NG5.js → GXZWJXHM.js} +1 -1
  103. package/dist/cdn/H3NPAQ3U.js +2 -0
  104. package/dist/cdn/{UUHDVB24.js → HB56DBBP.js} +1 -1
  105. package/dist/cdn/{LLDACDFC.js → HGOYPWOK.js} +1 -1
  106. package/dist/cdn/{K5ZIHTQC.js → HJZRCLYP.js} +1 -1
  107. package/dist/cdn/{SQ3AHKIW.js → I4EEOB6Y.js} +1 -1
  108. package/dist/cdn/{KCTWFRCW.js → I4VWG355.js} +1 -1
  109. package/dist/cdn/{MZ73EAAV.js → I5E3PM26.js} +1 -1
  110. package/dist/cdn/ICY4O6XV.js +2 -0
  111. package/dist/cdn/{U6M4Q7V3.js → IGQJLEEJ.js} +1 -1
  112. package/dist/cdn/{PIJDUFKZ.js → IOFIC3IG.js} +1 -1
  113. package/dist/cdn/{FJAJKPL6.js → IQVJCQTP.js} +1 -1
  114. package/dist/cdn/{BSBNPUTI.js → IXJFVKYN.js} +1 -1
  115. package/dist/cdn/{TK235QG4.js → J6OVONBB.js} +1 -1
  116. package/dist/cdn/{ORMBTE2Z.js → JEIP7CJK.js} +1 -1
  117. package/dist/cdn/{P6VUY7UX.js → JFLG3EKT.js} +1 -1
  118. package/dist/cdn/{POVGKQPO.js → JJDAJ7CL.js} +1 -1
  119. package/dist/cdn/{ZF724O2R.js → JUPIKTGO.js} +1 -1
  120. package/dist/cdn/{YKM2YRZP.js → KAGDNHPY.js} +1 -1
  121. package/dist/cdn/{JLQYLRUP.js → KDHI3OWQ.js} +1 -1
  122. package/dist/cdn/{7HJCFDJN.js → KIKSO3OQ.js} +1 -1
  123. package/dist/cdn/{PRM47E4O.js → KKEERGX7.js} +1 -1
  124. package/dist/cdn/{L5WLXC4P.js → KMKZEHDS.js} +1 -1
  125. package/dist/cdn/{EVZXWT6K.js → KMTYPOFM.js} +1 -1
  126. package/dist/cdn/{6RONZCGM.js → KTRKTBPS.js} +1 -1
  127. package/dist/cdn/{QLRGY4WQ.js → KU2LYW6K.js} +1 -1
  128. package/dist/cdn/{YZ3OYKNY.js → L4BYLII5.js} +1 -1
  129. package/dist/cdn/{W5M4XQVO.js → LHLLMC6K.js} +1 -1
  130. package/dist/cdn/{4SABCB6V.js → LM46YQCN.js} +1 -1
  131. package/dist/cdn/{BROZWKD5.js → LOWGHGDS.js} +1 -1
  132. package/dist/cdn/{PRXFYNIG.js → LPFG5XTA.js} +1 -1
  133. package/dist/cdn/{ZFK6UU3O.js → LSBUPU7F.js} +1 -1
  134. package/dist/cdn/{FDO2JBGW.js → LVK2J23W.js} +1 -1
  135. package/dist/cdn/{2C6OKRTL.js → LXGY2E55.js} +1 -1
  136. package/dist/cdn/{6RNSFI2J.js → LY3WRG7K.js} +1 -1
  137. package/dist/cdn/{XG3T3NF3.js → MBAQ324M.js} +1 -1
  138. package/dist/cdn/{7IXJB2CS.js → MBVY6OPY.js} +1 -1
  139. package/dist/cdn/{EW4MNCWO.js → MDKHW7NM.js} +1 -1
  140. package/dist/cdn/MISU75DC.js +2 -0
  141. package/dist/cdn/{QUG6GIG2.js → MJ6JD7WX.js} +1 -1
  142. package/dist/cdn/{XIUYW7RN.js → MKDVJPNY.js} +1 -1
  143. package/dist/cdn/{PKKPFNOP.js → MLNGJEKI.js} +1 -1
  144. package/dist/cdn/{KR7U7SH5.js → MTEVQC6W.js} +1 -1
  145. package/dist/cdn/{VTI5LEQY.js → MW3IJQRQ.js} +1 -1
  146. package/dist/cdn/{3OQ24P5P.js → N33J6JX2.js} +1 -1
  147. package/dist/cdn/{YUPT4BTA.js → NKEQVKHZ.js} +1 -1
  148. package/dist/cdn/{KDE2RXEH.js → NVIMZ7ZS.js} +1 -1
  149. package/dist/cdn/{X67LNBJP.js → O4VFFJLQ.js} +1 -1
  150. package/dist/cdn/{E4BPYNC5.js → O7VRD3Z3.js} +3 -3
  151. package/dist/cdn/{BIRAQCVT.js → OAEZN4D5.js} +1 -1
  152. package/dist/cdn/{AL7O7ZB2.js → OGH565H7.js} +1 -1
  153. package/dist/cdn/{MURYADCX.js → OJDW3XGU.js} +1 -1
  154. package/dist/cdn/{DIMSALHW.js → OMRM5EXN.js} +1 -1
  155. package/dist/cdn/{7ZKKR7QO.js → OZ7YBTKR.js} +1 -1
  156. package/dist/cdn/{U2ZKJCSY.js → P7LSYADG.js} +1 -1
  157. package/dist/cdn/{BRARQOMY.js → PEQUHMTU.js} +1 -1
  158. package/dist/cdn/{3OLSNMWN.js → PKOJQT4I.js} +1 -1
  159. package/dist/cdn/{R3C2X4CM.js → PSBOV4IR.js} +1 -1
  160. package/dist/cdn/{QF2IXVAT.js → PWER63DX.js} +1 -1
  161. package/dist/cdn/{IEAOGMAM.js → PYPVVSIX.js} +1 -1
  162. package/dist/cdn/{SNE4DYFB.js → Q2K6BUCN.js} +1 -1
  163. package/dist/cdn/{232XXYVJ.js → Q3WGKNJH.js} +1 -1
  164. package/dist/cdn/{KGU32CDZ.js → Q4X6GXRI.js} +1 -1
  165. package/dist/cdn/{K6P6WBLX.js → QBARJMJE.js} +1 -1
  166. package/dist/cdn/{IV7RVOFY.js → QH343537.js} +1 -1
  167. package/dist/cdn/{X3CDW2ME.js → QLX3XORL.js} +1 -1
  168. package/dist/cdn/{V73HMWMC.js → QPX33Y62.js} +1 -1
  169. package/dist/cdn/{UH4IH4MC.js → QQYN7RED.js} +1 -1
  170. package/dist/cdn/{BWRBYYGI.js → QTFTJ4DQ.js} +1 -1
  171. package/dist/cdn/{CPAUDT36.js → QWNRGCQS.js} +1 -1
  172. package/dist/cdn/{AUZDYI27.js → R2JOPHL5.js} +1 -1
  173. package/dist/cdn/{NO74CJDB.js → R4PQI4LJ.js} +1 -1
  174. package/dist/cdn/{TRIDH4TQ.js → RLYLBYMX.js} +1 -1
  175. package/dist/cdn/{P2NKBGLG.js → RQIGAX6O.js} +1 -1
  176. package/dist/cdn/{WRLN7DLT.js → S47SVZPE.js} +1 -1
  177. package/dist/cdn/{HNFDCPQY.js → S4ZMJ42A.js} +1 -1
  178. package/dist/cdn/{KFUO64SR.js → SC4UAHYZ.js} +1 -1
  179. package/dist/cdn/{DBHZRNFR.js → SDX7YG23.js} +1 -1
  180. package/dist/cdn/{HIGIIHUC.js → SGU3KCZB.js} +1 -1
  181. package/dist/cdn/{RLV5JHIU.js → SHI2ULEO.js} +1 -1
  182. package/dist/cdn/{V6VJJHYJ.js → SMN3CVM5.js} +1 -1
  183. package/dist/cdn/{EJQJPFFI.js → SNZRQPXI.js} +1 -1
  184. package/dist/cdn/SYISCXZY.js +4 -0
  185. package/dist/cdn/{PQEOFKJR.js → T6BYV326.js} +4 -4
  186. package/dist/cdn/{3T3GPK27.js → T6EKXYZA.js} +1 -1
  187. package/dist/cdn/T6FQ2A4O.js +2 -0
  188. package/dist/cdn/{JM4BUUFY.js → TLRBE2TZ.js} +1 -1
  189. package/dist/cdn/{RPBIUBGZ.js → TLY6ZEKN.js} +1 -1
  190. package/dist/cdn/{IUNUJ6GU.js → TTCTODAR.js} +1 -1
  191. package/dist/cdn/{B6IICRWD.js → U2LBV6VU.js} +1 -1
  192. package/dist/cdn/{HRH3YBW4.js → U6DXEFHP.js} +1 -1
  193. package/dist/cdn/{SRLQU37I.js → UA6XD7SQ.js} +1 -1
  194. package/dist/cdn/{A4RRYLNO.js → UBPCOTIY.js} +1 -1
  195. package/dist/cdn/{S4MPBLJP.js → UNBGBQPR.js} +1 -1
  196. package/dist/cdn/{KVYNN3MF.js → UUIKE2AH.js} +1 -1
  197. package/dist/cdn/{E5X2RW5Y.js → UUKV62PY.js} +1 -1
  198. package/dist/cdn/{XA2AVWSV.js → UXN2MYLX.js} +1 -1
  199. package/dist/cdn/{RCF3ARQ3.js → V74POSPP.js} +1 -1
  200. package/dist/cdn/{PCP5UFZR.js → V7WSQCQY.js} +1 -1
  201. package/dist/cdn/VHSGX4DC.js +2 -0
  202. package/dist/cdn/{6LDTUOZL.js → VHYS3SP3.js} +1 -1
  203. package/dist/cdn/{B7J5RZIJ.js → VJDUPEFF.js} +1 -1
  204. package/dist/cdn/{4V4CR63B.js → VNTPM6CQ.js} +1 -1
  205. package/dist/cdn/{HDRMSU3L.js → VPFXIGOI.js} +1 -1
  206. package/dist/cdn/{AZDHGEBN.js → VTAQ6NBB.js} +1 -1
  207. package/dist/cdn/{V3MSUKLX.js → VXGLGWIF.js} +1 -1
  208. package/dist/cdn/{JQ7K6OQ5.js → W7VD3QDN.js} +1 -1
  209. package/dist/cdn/{AHYKJXK2.js → WCD4U7UJ.js} +1 -1
  210. package/dist/cdn/{QX7YVGEN.js → WCXR46D4.js} +1 -1
  211. package/dist/cdn/{2TR3Y7HD.js → WFIMYIS3.js} +1 -1
  212. package/dist/cdn/WQHJMFGP.js +2 -0
  213. package/dist/cdn/{OUNL2UWX.js → WXM3KMEV.js} +1 -1
  214. package/dist/cdn/{CM5MBWMG.js → X52T6DJT.js} +1 -1
  215. package/dist/cdn/{NR5ZHMQJ.js → XA3SV62A.js} +1 -1
  216. package/dist/cdn/{EUPJV6QI.js → XH6MM3RE.js} +1 -1
  217. package/dist/cdn/{SHGAD5MK.js → XHFFDKEQ.js} +1 -1
  218. package/dist/cdn/{BFC6PQCO.js → XKEKXTL2.js} +1 -1
  219. package/dist/cdn/{VYFFJEA4.js → YCIKY6QN.js} +1 -1
  220. package/dist/cdn/{EDNQFSEX.js → YGWYD3LU.js} +1 -1
  221. package/dist/cdn/{2BTU374O.js → YUKIKHOU.js} +1 -1
  222. package/dist/cdn/{W2ZZLJGQ.js → ZBX2SDO5.js} +1 -1
  223. package/dist/cdn/{WKZOT33F.js → ZI7OWB5M.js} +1 -1
  224. package/dist/cdn/{LJIX7K76.js → ZNC2XEOJ.js} +1 -1
  225. package/dist/cdn/{QNRKGTZT.js → ZPEVEBJD.js} +1 -1
  226. package/dist/cdn/{5ZVSYUD7.js → ZSO2PDMV.js} +1 -1
  227. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
  228. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
  229. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
  230. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
  231. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
  232. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
  233. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
  234. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
  235. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
  236. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
  237. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
  238. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
  239. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
  240. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
  241. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
  242. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
  243. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
  244. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
  245. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
  246. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
  247. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
  248. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
  249. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
  250. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
  251. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
  252. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
  253. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
  254. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
  255. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
  256. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
  257. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
  258. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
  259. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
  260. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
  261. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
  262. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
  263. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
  264. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
  265. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
  266. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  267. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  268. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  269. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  270. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  271. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  272. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  273. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  274. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  275. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  276. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  277. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  278. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  279. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  280. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  281. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  282. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  283. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  284. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  285. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  286. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  287. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  288. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  289. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  290. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  291. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  292. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  293. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  294. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  295. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  296. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  297. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  298. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  299. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  300. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  301. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  302. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  303. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  304. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  305. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ar.json +1 -1
  306. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bg.json +1 -1
  307. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bs.json +1 -1
  308. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ca.json +1 -1
  309. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.cs.json +1 -1
  310. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.da.json +1 -1
  311. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.de.json +1 -1
  312. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.el.json +1 -1
  313. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.es.json +1 -1
  314. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.et.json +1 -1
  315. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fi.json +1 -1
  316. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fr.json +1 -1
  317. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.he.json +1 -1
  318. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hr.json +1 -1
  319. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hu.json +1 -1
  320. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.id.json +1 -1
  321. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.it.json +1 -1
  322. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ja.json +1 -1
  323. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ko.json +1 -1
  324. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lt.json +1 -1
  325. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lv.json +1 -1
  326. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.nl.json +1 -1
  327. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.no.json +1 -1
  328. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pl.json +1 -1
  329. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-BR.json +1 -1
  330. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-PT.json +1 -1
  331. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ro.json +1 -1
  332. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ru.json +1 -1
  333. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sk.json +1 -1
  334. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sl.json +1 -1
  335. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sr.json +1 -1
  336. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sv.json +1 -1
  337. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.th.json +1 -1
  338. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.tr.json +1 -1
  339. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.uk.json +1 -1
  340. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.vi.json +1 -1
  341. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-CN.json +1 -1
  342. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-HK.json +1 -1
  343. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-TW.json +1 -1
  344. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  345. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  346. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  347. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  348. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  349. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  350. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  351. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  352. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  353. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  354. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  355. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  356. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  357. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  358. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  359. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  360. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  361. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  362. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  363. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  364. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  365. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  366. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  367. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  368. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  369. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  370. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  371. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  372. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  373. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  374. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  375. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  376. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  377. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  378. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  379. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  380. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  381. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  382. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  383. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ar.json +1 -1
  384. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bg.json +1 -1
  385. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bs.json +1 -1
  386. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ca.json +1 -1
  387. package/dist/cdn/assets/solution-deployed-card/t9n/messages.cs.json +1 -1
  388. package/dist/cdn/assets/solution-deployed-card/t9n/messages.da.json +1 -1
  389. package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
  390. package/dist/cdn/assets/solution-deployed-card/t9n/messages.el.json +1 -1
  391. package/dist/cdn/assets/solution-deployed-card/t9n/messages.es.json +1 -1
  392. package/dist/cdn/assets/solution-deployed-card/t9n/messages.et.json +1 -1
  393. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fi.json +1 -1
  394. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fr.json +1 -1
  395. package/dist/cdn/assets/solution-deployed-card/t9n/messages.he.json +1 -1
  396. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hr.json +1 -1
  397. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hu.json +1 -1
  398. package/dist/cdn/assets/solution-deployed-card/t9n/messages.id.json +1 -1
  399. package/dist/cdn/assets/solution-deployed-card/t9n/messages.it.json +1 -1
  400. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ja.json +1 -1
  401. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ko.json +1 -1
  402. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lt.json +1 -1
  403. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lv.json +1 -1
  404. package/dist/cdn/assets/solution-deployed-card/t9n/messages.nl.json +1 -1
  405. package/dist/cdn/assets/solution-deployed-card/t9n/messages.no.json +1 -1
  406. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pl.json +1 -1
  407. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-BR.json +1 -1
  408. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-PT.json +1 -1
  409. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ro.json +1 -1
  410. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ru.json +1 -1
  411. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sk.json +1 -1
  412. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sl.json +1 -1
  413. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sr.json +1 -1
  414. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sv.json +1 -1
  415. package/dist/cdn/assets/solution-deployed-card/t9n/messages.th.json +1 -1
  416. package/dist/cdn/assets/solution-deployed-card/t9n/messages.tr.json +1 -1
  417. package/dist/cdn/assets/solution-deployed-card/t9n/messages.uk.json +1 -1
  418. package/dist/cdn/assets/solution-deployed-card/t9n/messages.vi.json +1 -1
  419. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-CN.json +1 -1
  420. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-HK.json +1 -1
  421. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-TW.json +1 -1
  422. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ar.json +1 -1
  423. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bg.json +1 -1
  424. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bs.json +1 -1
  425. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ca.json +1 -1
  426. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.cs.json +1 -1
  427. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.da.json +1 -1
  428. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.de.json +1 -1
  429. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.el.json +1 -1
  430. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.es.json +1 -1
  431. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.et.json +1 -1
  432. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fi.json +1 -1
  433. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fr.json +1 -1
  434. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.he.json +1 -1
  435. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hr.json +1 -1
  436. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hu.json +1 -1
  437. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.id.json +1 -1
  438. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.it.json +1 -1
  439. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ja.json +1 -1
  440. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ko.json +1 -1
  441. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lt.json +1 -1
  442. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lv.json +1 -1
  443. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.nl.json +1 -1
  444. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.no.json +1 -1
  445. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pl.json +1 -1
  446. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-BR.json +1 -1
  447. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-PT.json +1 -1
  448. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ro.json +1 -1
  449. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ru.json +1 -1
  450. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sk.json +1 -1
  451. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sl.json +1 -1
  452. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sr.json +1 -1
  453. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sv.json +1 -1
  454. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.th.json +1 -1
  455. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.tr.json +1 -1
  456. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.uk.json +1 -1
  457. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.vi.json +1 -1
  458. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-CN.json +1 -1
  459. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-HK.json +1 -1
  460. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-TW.json +1 -1
  461. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ar.json +1 -1
  462. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bg.json +1 -1
  463. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bs.json +1 -1
  464. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ca.json +1 -1
  465. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.cs.json +1 -1
  466. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.da.json +1 -1
  467. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.de.json +1 -1
  468. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.el.json +1 -1
  469. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.es.json +1 -1
  470. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.et.json +1 -1
  471. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fi.json +1 -1
  472. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fr.json +1 -1
  473. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.he.json +1 -1
  474. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hr.json +1 -1
  475. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hu.json +1 -1
  476. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.id.json +1 -1
  477. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.it.json +1 -1
  478. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ja.json +1 -1
  479. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ko.json +1 -1
  480. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lt.json +1 -1
  481. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lv.json +1 -1
  482. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.nl.json +1 -1
  483. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.no.json +1 -1
  484. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pl.json +1 -1
  485. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-BR.json +1 -1
  486. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-PT.json +1 -1
  487. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ro.json +1 -1
  488. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ru.json +1 -1
  489. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sk.json +1 -1
  490. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sl.json +1 -1
  491. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sr.json +1 -1
  492. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sv.json +1 -1
  493. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.th.json +1 -1
  494. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.tr.json +1 -1
  495. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.uk.json +1 -1
  496. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.vi.json +1 -1
  497. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-CN.json +1 -1
  498. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-HK.json +1 -1
  499. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-TW.json +1 -1
  500. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ar.json +1 -1
  501. package/dist/cdn/index.js +1 -1
  502. package/dist/chunks/solution-builder-assistant.js +3 -3
  503. package/dist/components/arcgis-solutions-assistant/customElement.js +3 -3
  504. package/dist/components/buffer-tools/customElement.d.ts +5 -1
  505. package/dist/components/card-manager/customElement.d.ts +3 -0
  506. package/dist/components/card-manager/customElement.js +60 -30
  507. package/dist/components/create-feature/customElement.d.ts +10 -0
  508. package/dist/components/create-feature/customElement.js +66 -60
  509. package/dist/components/crowdsource-manager/customElement.js +7 -4
  510. package/dist/components/layer-table/customElement.d.ts +6 -0
  511. package/dist/components/layer-table/customElement.js +38 -29
  512. package/dist/components/map-card/customElement.js +40 -34
  513. package/dist/components/map-tools/customElement.js +14 -15
  514. package/dist/components/map-tools/index.js +1 -0
  515. package/dist/components/solution-details-panel/customElement.js +5 -3
  516. package/dist/components/solutions-deploy-app/customElement.js +2 -2
  517. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  518. package/dist/docs/api.json +1 -1
  519. package/dist/docs/docs.json +1 -1
  520. package/dist/docs/vscode.html-custom-data.json +1 -1
  521. package/dist/docs/web-types.json +1 -1
  522. package/dist/solutions-components_commit.txt +7 -7
  523. package/dist/types/lumina.d.ts +5 -0
  524. package/dist/types/preact.d.ts +5 -0
  525. package/dist/types/react.d.ts +5 -0
  526. package/dist/types/stencil.d.ts +5 -0
  527. package/package.json +1 -1
  528. package/dist/cdn/2L7O5T7N.js +0 -2
  529. package/dist/cdn/BPOWO72Z.js +0 -2
  530. package/dist/cdn/CQQH3XK5.js +0 -2
  531. package/dist/cdn/DMX66TUK.js +0 -2
  532. package/dist/cdn/E4ZB3BPD.js +0 -2
  533. package/dist/cdn/HDTRW7I6.js +0 -4
  534. package/dist/cdn/HXAKVGDN.js +0 -2
  535. package/dist/cdn/MG4GXXGQ.js +0 -2
  536. package/dist/cdn/QPIMTXPL.js +0 -2
  537. package/dist/cdn/RFRP75GX.js +0 -2
  538. package/dist/cdn/XOEFU24R.js +0 -2
  539. package/dist/cdn/ZIDWIYAR.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./SIODWUWX.js";import d from"./7JC52SFZ.js";import c from"./4AFANEZZ.js";import{c as C,e as k}from"./C5KDPY7R.js";import{f as g}from"./YM4U4HSN.js";import{b as z,c as E,d as A}from"./IADXB53D.js";import{a as l}from"./ONARC6AZ.js";import{a as $}from"./BM4VSEDV.js";import{b as w}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{G as x,I as s,K as b,h as u,i as a,q as h}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{a:r,b:c,c:T,d:m},{f:p}])=>{var I=u`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-color-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-color-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,v={ZoomTo:"magnifying-glass-plus",ShowAll:"list-check-all"},o={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},y=class extends x{constructor(){super(...arguments),this._messages=$({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=h(),this.showAllSelected=h()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=I}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>g(e))).length>0&&c.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=T(this.layer),t=p(e,this.legendElement);A(e,this.legendvm.view,t)}}handleShowAll(){return()=>{let e=()=>{let i=E(n,this.legendElement.title);m({intLegendLayerData:i,layerId:this.layer.id})},t=()=>{let i=z(n);m({intLegendLayerData:i,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(p(n,this.legendElement)){e();return}t(),this.showAllSelected.emit()}}shouldDisplayShowAll(){let e=r.data?.[this.layer?.id],t=p(e,this.legendElement);return(e?.categories?.size??0)>1||Array.isArray(t?.nestedInfos)&&t.nestedInfos.length>1}render(){let e=C(this.activeLayerInfo),t=k(this.activeLayerInfo)&&(g(this.legendElement)||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,i=c.get("compact"),d=i?` ${o.compact}`:"";if(e&&!this.titleText)return null;let _=this.titleText?a`<span class=${s(o.layerCaptionText)} title=${this.titleText??b}>${this.titleText}</span>`:null,f=this.isInteractive||t?this.renderLegendElementCaptionControls():"";return a`<div class=${`${o.layerCaption}${d}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${i?[_,f]:[f,_]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${o.layerCaptionBtnContainerNoText}`;return l("layer-caption-btn-container",a`<div class=${`${o.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return c.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let e=this.shouldDisplayShowAll(),t="zoomToCompact",n=this.zoomTo&&[a`<calcite-action id=${t} class=${s(o.zoomTo)} @click=${this.handleZoomTo()} .icon=${v.ZoomTo} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",i=e?a`<button @click=${this.handleShowAll()} class=${s(o.showAll)}>${this._messages.showAll}</button>`:null;return[n,i]}renderButtonUI(){let e=this.shouldDisplayShowAll(),t="showAll",n="zoomTo",i=e&&[l("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${v.ShowAll} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",d=this.zoomTo&&[l("zoom-to-button",a`<calcite-button id=${n} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${v.ZoomTo} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${n} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[i,d]}};w("instant-apps-interactive-legend-legend-element-caption",y);return y},c,d,e)
2
+ import e from"./SIODWUWX.js";import d from"./7JC52SFZ.js";import c from"./4AFANEZZ.js";import{c as C,e as k}from"./C5KDPY7R.js";import{f as g}from"./YM4U4HSN.js";import{b as z,c as E,d as A}from"./IADXB53D.js";import{a as l}from"./ONARC6AZ.js";import{a as $}from"./BM4VSEDV.js";import{b as w}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{G as x,I as s,K as b,h as u,i as a,q as h}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{a:r,b:c,c:T,d:m},{f:p}])=>{var I=u`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-color-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-color-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,v={ZoomTo:"magnifying-glass-plus",ShowAll:"list-check-all"},o={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},y=class extends x{constructor(){super(...arguments),this._messages=$({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=h(),this.showAllSelected=h()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=I}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>g(e))).length>0&&c.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=T(this.layer),t=p(e,this.legendElement);A(e,this.legendvm.view,t)}}handleShowAll(){return()=>{let e=()=>{let i=E(n,this.legendElement.title);m({intLegendLayerData:i,layerId:this.layer.id})},t=()=>{let i=z(n);m({intLegendLayerData:i,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(p(n,this.legendElement)){e();return}t(),this.showAllSelected.emit()}}shouldDisplayShowAll(){let e=r.data?.[this.layer?.id],t=p(e,this.legendElement);return(e?.categories?.size??0)>1||Array.isArray(t?.nestedInfos)&&t.nestedInfos.length>1}render(){let e=C(this.activeLayerInfo),t=k(this.activeLayerInfo)&&(g(this.legendElement)||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,i=c.get("compact"),d=i?` ${o.compact}`:"";if(e&&!this.titleText)return null;let _=this.titleText?a`<span class=${s(o.layerCaptionText)} title=${this.titleText??b}>${this.titleText}</span>`:null,f=this.isInteractive||t?this.renderLegendElementCaptionControls():"";return a`<div class=${`${o.layerCaption}${d}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${i?[_,f]:[f,_]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${o.layerCaptionBtnContainerNoText}`;return l("layer-caption-btn-container",a`<div class=${`${o.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return c.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let e=this.shouldDisplayShowAll(),t="zoomToCompact",n=this.zoomTo&&[a`<calcite-action id=${t} class=${s(o.zoomTo)} @click=${this.handleZoomTo()} .icon=${v.ZoomTo} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",i=e?a`<button @click=${this.handleShowAll()} class=${s(o.showAll)}>${this._messages.showAll}</button>`:null;return[n,i]}renderButtonUI(){let e=this.shouldDisplayShowAll(),t="showAll",n="zoomTo",i=e&&[l("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${v.ShowAll} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",d=this.zoomTo&&[l("zoom-to-button",a`<calcite-button id=${n} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${v.ZoomTo} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${n} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[i,d]}};w("instant-apps-interactive-legend-legend-element-caption",y);return y},c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a,b}from"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
2
+ import{a,b}from"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./EXBEKVP5.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as y}from"./BM666UZR.js";import{b as _}from"./I2NTSKBD.js";import{a as m}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as g}from"./2I5LGZNX.js";import{E as l,F as p,G as d,I as o,h as r,i as c,q as s,t as n}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([u])=>{var k=r`@layer{:host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=rtl]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v: 12px;--esri-widget-padding-h: 15px;--esri-widget-padding: var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start!important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color: var(--calcite-color-border-3) !important}}`,h=class extends d{constructor(){super(...arguments),this.active=!1,this.drawMode="SKETCH",this.editGraphicsEnabled=!0,this.graphics=[],this.redoEnabled=!1,this.undoEnabled=!1,this._translations=m({name:"map-draw-tools",blocking:!0}),this._pnContextConsumer=_({context:y,subscribe:!0}),this._sketchComponent=l(),this._forceCreate=!1,this.selectionLoadingChange=s(),this.sketchGraphicsChange=s(),this.drawUndo=s(),this.drawRedo=s(),this._onSketchReady=async()=>{await new Promise(e=>setTimeout(e,50)),this._sketchComponent.value?.getElementsByTagName("calcite-popover")[0]?.setAttribute("placement","auto")},this._onSketchCreate=e=>{let t=e.detail;t.state==="complete"&&(this.graphics=t.graphic?[t.graphic]:[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode==="REFINE"&&(this._forceCreate=!0,this._sketchComponent.value?.create(t.tool))),t.state==="cancel"&&this.drawMode==="REFINE"&&this._forceCreate&&(this._forceCreate=!this._forceCreate,this._sketchComponent.value?.create(t.tool))},this._onSketchUpdate=e=>{if(!this.editGraphicsEnabled){this._sketchComponent.value?.cancel();return}let t=e.detail,i=t.toolEventInfo?.type;(t.state==="active"&&i==="update"||i==="move"||i==="reshape-stop"||i==="move-stop")&&(clearTimeout(this._debounceTimer),this._debounceTimer=window.setTimeout(()=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},1e3))},this._onSketchDelete=()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},this._onSketchUndo=e=>{if(this._sketchComponent.value?.state==="active")return;let t=e.detail;this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},this._onSketchRedo=e=>{if(this._sketchComponent.value?.state==="active")return;let t=e.detail;t.graphics[0].geometry&&(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}}static{this.properties={active:5,drawMode:1,editGraphicsEnabled:5,graphics:0,mapView:0,pointSymbol:0,polylineSymbol:0,polygonSymbol:0,redoEnabled:5,undoEnabled:5,_translations:16,_selectionMode:16}}static{this.styles=k}static{this.shadowRootOptions=n}willUpdate(e){e.has("graphics")&&this.graphicsWatchHandler(this.graphics,e.get("graphics")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView"))}graphicsWatchHandler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(t)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(e),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(e))}mapViewWatchHandler(e,t){e&&e!==t&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._sketchComponent.value?.cancel(),this._clearSketch()}render(){let e=this.drawMode==="SKETCH"?"border":"border esri-widget esri-sketch__panel",t=this.drawMode==="SKETCH"?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return c`<div class=${o(e)}><arcgis-sketch @arcgisReady=${this._onSketchReady} @arcgisCreate=${this._onSketchCreate} @arcgisUpdate=${this._onSketchUpdate} @arcgisDelete=${this._onSketchDelete} @arcgisUndo=${this._onSketchUndo} @arcgisRedo=${this._onSketchRedo} use-legacy-create-tools ${p(this._sketchComponent)}></arcgis-sketch><div class=${o(t)}><calcite-action .disabled=${!this.undoEnabled} icon=undo @click=${()=>this._undo()} scale=s .text=${this._translations.undo}></calcite-action><calcite-action .disabled=${!this.redoEnabled} icon=redo @click=${()=>this._redo()} scale=s .text=${this._translations.redo}></calcite-action></div></div>`}_init(){this.mapView&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){let e=this._pnContextConsumer.value,t=this._translations.sketchLayer;if(this.mapView){let i=this.mapView.map.layers.findIndex(a=>a.title===t);i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new u({title:t,listMode:"hide"}),this._sketchGraphicsLayer&&(e.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer))),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer&&this._sketchGraphicsLayer.addMany(this.graphics)}}_initSketch(){let e=this._sketchComponent.value;e&&(e.view=this.mapView,e.layer=this._sketchGraphicsLayer,e.creationMode="single",e.toolbarKind="docked",e.defaultCreateOptions={mode:"hybrid"},e.defaultUpdateOptions={preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1},e.hideDuplicateButton=!0,e.hideSelectionToolsLassoSelection=!0,e.hideSelectionToolsRectangleSelection=!0,e.hideCreateToolsCircle=!0,e.hideUndoRedoMenu=!0,e.hideSettingsMenu=this.drawMode!=="SKETCH",this.pointSymbol?e.pointSymbol=this.pointSymbol:this.polylineSymbol?e.polylineSymbol=this.polylineSymbol:this.polygonSymbol&&(e.polygonSymbol=this.polygonSymbol))}_clearSketch(){this._sketchComponent.value?.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout(()=>{this.graphics.length===1&&this.graphics[0].geometry&&this._sketchComponent.value&&this._sketchComponent.value.triggerUpdate(this.graphics)},100)}_updateGraphicsSymbols(e){let t=e[0]?.geometry?.type,i=t==="point"?this.pointSymbol:t==="polyline"?this.polylineSymbol:t==="polygon"?this.polygonSymbol:void 0;i&&e.forEach(a=>a.symbol=i)}};g("map-draw-tools",h);return h},"layers/GraphicsLayer")
2
+ import{a as y}from"./BM666UZR.js";import{b as _}from"./I2NTSKBD.js";import{a as m}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as g}from"./2I5LGZNX.js";import{E as l,F as p,G as d,I as o,h as r,i as c,q as s,t as n}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([u])=>{var k=r`@layer{:host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=rtl]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v: 12px;--esri-widget-padding-h: 15px;--esri-widget-padding: var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start!important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color: var(--calcite-color-border-3) !important}}`,h=class extends d{constructor(){super(...arguments),this.active=!1,this.drawMode="SKETCH",this.editGraphicsEnabled=!0,this.graphics=[],this.redoEnabled=!1,this.undoEnabled=!1,this._translations=m({name:"map-draw-tools",blocking:!0}),this._pnContextConsumer=_({context:y,subscribe:!0}),this._sketchComponent=l(),this._forceCreate=!1,this.selectionLoadingChange=s(),this.sketchGraphicsChange=s(),this.drawUndo=s(),this.drawRedo=s(),this._onSketchReady=async()=>{await new Promise(e=>setTimeout(e,50)),this._sketchComponent.value?.getElementsByTagName("calcite-popover")[0]?.setAttribute("placement","auto")},this._onSketchCreate=e=>{let t=e.detail;t.state==="complete"&&(this.graphics=t.graphic?[t.graphic]:[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode==="REFINE"&&(this._forceCreate=!0,this._sketchComponent.value?.create(t.tool))),t.state==="cancel"&&this.drawMode==="REFINE"&&this._forceCreate&&(this._forceCreate=!this._forceCreate,this._sketchComponent.value?.create(t.tool))},this._onSketchUpdate=e=>{if(!this.editGraphicsEnabled){this._sketchComponent.value?.cancel();return}let t=e.detail,i=t.toolEventInfo?.type;(t.state==="active"&&i==="update"||i==="move"||i==="reshape-stop"||i==="move-stop")&&(clearTimeout(this._debounceTimer),this._debounceTimer=window.setTimeout(()=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},1e3))},this._onSketchDelete=()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},this._onSketchUndo=e=>{if(this._sketchComponent.value?.state==="active")return;let t=e.detail;this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})},this._onSketchRedo=e=>{if(this._sketchComponent.value?.state==="active")return;let t=e.detail;t.graphics[0].geometry&&(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}}static{this.properties={active:5,drawMode:1,editGraphicsEnabled:5,graphics:0,mapView:0,pointSymbol:0,polylineSymbol:0,polygonSymbol:0,redoEnabled:5,undoEnabled:5,_translations:16,_selectionMode:16}}static{this.styles=k}static{this.shadowRootOptions=n}willUpdate(e){e.has("graphics")&&this.graphicsWatchHandler(this.graphics,e.get("graphics")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView"))}graphicsWatchHandler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(t)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(e),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(e))}mapViewWatchHandler(e,t){e&&e!==t&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._sketchComponent.value?.cancel(),this._clearSketch()}render(){let e=this.drawMode==="SKETCH"?"border":"border esri-widget esri-sketch__panel",t=this.drawMode==="SKETCH"?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return c`<div class=${o(e)}><arcgis-sketch @arcgisReady=${this._onSketchReady} @arcgisCreate=${this._onSketchCreate} @arcgisUpdate=${this._onSketchUpdate} @arcgisDelete=${this._onSketchDelete} @arcgisUndo=${this._onSketchUndo} @arcgisRedo=${this._onSketchRedo} use-legacy-create-tools ${p(this._sketchComponent)}></arcgis-sketch><div class=${o(t)}><calcite-action .disabled=${!this.undoEnabled} icon=undo @click=${()=>this._undo()} scale=s .text=${this._translations.undo}></calcite-action><calcite-action .disabled=${!this.redoEnabled} icon=redo @click=${()=>this._redo()} scale=s .text=${this._translations.redo}></calcite-action></div></div>`}_init(){this.mapView&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){let e=this._pnContextConsumer.value,t=this._translations.sketchLayer;if(this.mapView){let i=this.mapView.map.layers.findIndex(a=>a.title===t);i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new u({title:t,listMode:"hide"}),this._sketchGraphicsLayer&&(e.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer))),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer&&this._sketchGraphicsLayer.addMany(this.graphics)}}_initSketch(){let e=this._sketchComponent.value;e&&(e.view=this.mapView,e.layer=this._sketchGraphicsLayer,e.creationMode="single",e.toolbarKind="docked",e.defaultCreateOptions={mode:"hybrid"},e.defaultUpdateOptions={preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1},e.hideDuplicateButton=!0,e.hideSelectionToolsLassoSelection=!0,e.hideSelectionToolsRectangleSelection=!0,e.hideCreateToolsCircle=!0,e.hideUndoRedoMenu=!0,e.hideSettingsMenu=this.drawMode!=="SKETCH",this.pointSymbol?e.pointSymbol=this.pointSymbol:this.polylineSymbol?e.polylineSymbol=this.polylineSymbol:this.polygonSymbol&&(e.polygonSymbol=this.polygonSymbol))}_clearSketch(){this._sketchComponent.value?.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout(()=>{this.graphics.length===1&&this.graphics[0].geometry&&this._sketchComponent.value&&this._sketchComponent.value.triggerUpdate(this.graphics)},100)}_updateGraphicsSymbols(e){let t=e[0]?.geometry?.type,i=t==="point"?this.pointSymbol:t==="polyline"?this.polylineSymbol:t==="polygon"?this.polygonSymbol:void 0;i&&e.forEach(a=>a.symbol=i)}};g("map-draw-tools",h);return h},"layers/GraphicsLayer")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./QPIMTXPL.js";var e='# Your Role\r\nYou are a solution designer for the ArcGIS Solutions assistant. Your job is to update an existing solution design based on the User Query by producing a minimal set of RFC 6902\u2013compliant JSON Patch operations.\r\n\r\nYou must follow all rules below at all times. If a request conflicts with these rules, prioritize the rules and adapt the design accordingly.\r\n\r\n# Your Task\r\n- Analyze the User Query, Current Solution Design, and chat history\r\n- Produce the fewest possible JSON Patch operations required to satisfy the request\r\n- Never modify, remove, or replace sections unrelated to the request\r\n- Use chat history to reconstruct prior changes when needed and as context for the current requested change\r\n\r\n# Response Guidelines\r\n- Populate `response` with a concise explanation of exactly what you changed\r\n- Refer to yourself as \u201CI\u201D or \u201Cwe\u201D.\r\n- If a request conflicts with these rules:\r\n - Do not suggest enabling features, changing configuration, or alternative designs to bypass restrictions\r\n - Politely decline in `response` and return an empty `patches` array\r\n- Do not partially fulfill a request if any part of it violates the rules\r\n- The `response` must describe changes using UI-visible concepts only.\r\n- NEVER refer to internal JSON property names, schema terms, or implementation details in `response`.\r\n - This includes (but is not limited to): `choiceList`, `type`, `length`, `id`, `_idx`, `featureLayer`, `layers`, `customFields`.\r\n- When explaining changes:\r\n - Use UI terms such as \u201Cfield\u201D, \u201Coptions\u201D, \u201Callowed values\u201D, "domain", \u201Cchoice list\u201D, \u201Cname\u201D, or \u201Cdescription\u201D.\r\n- Avoid technical or system-oriented terms such as \u201Cconfigured\u201D, \u201Csetting\u201D, or \u201Cproperty\u201D in the response\r\n- Always refer to custom fields as just fields. Do NOT include the word custom\r\n\r\n# Language and Localization Rules\r\n- Detect the primary language of the User Query\r\n- Use that language consistently for all user-facing strings unless explicitly prohibited\r\n\r\n# JSON Patch Rules\r\n\r\n## Array Indexing with `_idx`\r\n- Every array element includes a read-only `_idx`\r\n- Always use `_idx` values in patch paths\r\n- Never calculate array positions manually\r\n- Never include `_idx` itself in any patch path or value\r\n- When removing multiple elements from the same array, order those `remove` operations from highest `_idx` to lowest. This prevents index-shifting from making later removals target the wrong element.\r\n\r\n## Patch Minimization\r\n- Prefer updating the most specific path possible\r\n- Do not replace an entire object when a child property can be updated\r\n- Do not combine unrelated changes into a single operation\r\n\r\n## Encoding the `value` Field\r\n- The `value` field must always be a JSON-encoded string (as if passed to `JSON.stringify`).\r\n- `remove` operations must not include a `value`\r\n\r\nExamples:\r\n- Replace the alias of a custom field whose `_idx` is `2` in layer `_idx: 0` of the feature layer:\r\n `{{ "op": "replace", "path": "/featureLayer/layers/0/customFields/2/alias", "value": "\\"New Alias\\"" }}`\r\n- Append a new custom field to layer `_idx: 1` of the feature layer:\r\n `{{ "op": "add", "path": "/featureLayer/layers/1/customFields/-", "value": "{{\\"name\\":\\"my_field\\",\\"type\\":\\"string\\",\\"alias\\":\\"My Field\\",\\"description\\":\\"...\\",\\"choiceList\\":null,\\"length\\":255}}" }}`\r\n- Remove a custom field whose `_idx` is `3`:\r\n `{{ "op": "remove", "path": "/featureLayer/layers/0/customFields/3" }}`\r\n- Update the solution title:\r\n `{{ "op": "replace", "path": "/solution/title", "value": "\\"Updated Title\\"" }}`\r\n- Update tags:\r\n `{{ "op": "replace", "path": "/solution/tags", "value": "[\\"tag1\\",\\"tag2\\",\\"tag3\\"]" }}`\r\n- Update an item description (item `_idx: 1`):\r\n `{{ "op": "replace", "path": "/items/1/description", "value": "\\"New description.\\"" }}`\r\n\r\nDo NOT include `_idx` itself in any patch operation path or value\r\n\r\n# Design Rules\r\n\r\n## Solution\r\n- Only `title`, `description`, and `tags` may be updated\r\n- When modifying the `title`, update the `description` to replace references to the previous title with the new title.\r\n- Only modify values. Do not add or remove properties\r\n\r\n## Strings\r\n- Only `value` may be updated\r\n- `key` and `description` are immutable\r\n- Always return the same number of strings\r\n\r\n## Items\r\n- Only `title` and `description` may be updated\r\n- When modifying the `title`, update the `description` of any items that reference the previous title to replace it with the new title.\r\n- `id` and `type` are immutable\r\n- Items cannot be added or removed\r\n\r\n## Feature Layers\r\n- Supported layer types: `Point`, `Polyline`, `Polygon`, `Table`\r\n\r\n### Layer Naming Rules\r\n- Layer `name` values should be written in Title Case unless specifically requested otherwise\r\n- Layer names should be localized to the detected User Query language unless specifically requested otherwise\r\n\r\n### Add Layers Rule\r\n- If `addLayers: false`:\r\n - Layers can NOT be added or removed\r\n - Layer `id` values are immutable\r\n- If `addLayers: true`:\r\n - Layers may be added or removed\r\n - Each new layer must receive a unique `id` starting at 0\r\n- Regardless of `addLayers`:\r\n - Fields within a layer or table may be modified according to the Required Fields and Custom Fields rules.\r\n - Custom fields may be added or removed when explicitly requested.\r\n\r\n### Layer Type Mutability Rule\r\n- Never edit the `typeMutable` property\r\n- If `typeMutable: true`:\r\n - The layer type must be chosen: `Point`, `Polyline`, `Polygon`, `Table`\r\n - The layer type may be changed without restriction\r\n- If `typeMutable: false`:\r\n - The layer type may never be changed\r\n - Requests to change the layer type should be rejected\r\n\r\n### Required Fields\r\n- Required fields are protected:\r\n - Cannot be removed\r\n - Cannot be moved\r\n - `name`, `type`, `length`, and `choiceList` are immutable\r\n - `alias` and `description` can be modified\r\n\r\n### Custom Fields\r\n- Custom fields may be added, modified, or removed\r\n - All properties of the field can be modified\r\n- Field names:\r\n - must be 31 characters or fewer\r\n - lowercase in the detected User Query language when that language has letter case\r\n - contain letters from any writing system (Unicode letters are allowed, e.g., `\xE4`, `\xF1`, `\u540D`, `\u3042`)\r\n - do not contain special characters other than underscores (`_`)\r\n - do not start with a number or underscore\r\n- Localize the field `name` to the detected User Query language\r\n- Valid types: `string`, `integer`, `double`, `date`\r\n- String fields:\r\n - Set `choiceList` to an array of allowed values if applicable, else `null`\r\n - All`choiceList` values should be written in the detected User Query language unless specifically requested otherwise\r\n - Set an appropriate `length`. When setting a default length use 256 instead of 255.\r\n- Non-string fields:\r\n - `choiceList` and `length` should be set to `null`\r\n - Existing string fields can be changed to a non-string field when requested \r\n- Boolean values must be implemented as:\r\n - `string` with a two-value `choiceList`\r\n - The two values should be localized to the detected User Query language unless specifically requested otherwise\r\n - Preserve meaning equivalent to \u201CYes\u201D and \u201CNo\u201D (affirmative/negative)\r\n- No duplicate field names within the same layer\r\n\r\n# Current Solution Design\r\n{currentDesign}\r\n\r\n# User Query\r\n{query}';export{e as default};
2
+ import"./EXBEKVP5.js";var e='# Your Role\r\nYou are a solution designer for the ArcGIS Solutions assistant. Your job is to update an existing solution design based on the User Query by producing a minimal set of RFC 6902\u2013compliant JSON Patch operations.\r\n\r\nYou must follow all rules below at all times. If a request conflicts with these rules, prioritize the rules and adapt the design accordingly.\r\n\r\n# Your Task\r\n- Analyze the User Query, Current Solution Design, and chat history\r\n- Produce the fewest possible JSON Patch operations required to satisfy the request\r\n- Never modify, remove, or replace sections unrelated to the request\r\n- Use chat history to reconstruct prior changes when needed and as context for the current requested change\r\n\r\n# Response Guidelines\r\n- Populate `response` with a concise explanation of exactly what you changed\r\n- Refer to yourself as \u201CI\u201D or \u201Cwe\u201D.\r\n- If a request conflicts with these rules:\r\n - Do not suggest enabling features, changing configuration, or alternative designs to bypass restrictions\r\n - Politely decline in `response` and return an empty `patches` array\r\n- Do not partially fulfill a request if any part of it violates the rules\r\n- The `response` must describe changes using UI-visible concepts only.\r\n- NEVER refer to internal JSON property names, schema terms, or implementation details in `response`.\r\n - This includes (but is not limited to): `choiceList`, `type`, `length`, `id`, `_idx`, `featureLayer`, `layers`, `customFields`.\r\n- When explaining changes:\r\n - Use UI terms such as \u201Cfield\u201D, \u201Coptions\u201D, \u201Callowed values\u201D, "domain", \u201Cchoice list\u201D, \u201Cname\u201D, or \u201Cdescription\u201D.\r\n- Avoid technical or system-oriented terms such as \u201Cconfigured\u201D, \u201Csetting\u201D, or \u201Cproperty\u201D in the response\r\n- Always refer to custom fields as just fields. Do NOT include the word custom\r\n\r\n# Language and Localization Rules\r\n- Detect the primary language of the User Query\r\n- Use that language consistently for all user-facing strings unless explicitly prohibited\r\n\r\n# JSON Patch Rules\r\n\r\n## Array Indexing with `_idx`\r\n- Every array element includes a read-only `_idx`\r\n- Always use `_idx` values in patch paths\r\n- Never calculate array positions manually\r\n- Never include `_idx` itself in any patch path or value\r\n- When removing multiple elements from the same array, order those `remove` operations from highest `_idx` to lowest. This prevents index-shifting from making later removals target the wrong element.\r\n\r\n## Patch Minimization\r\n- Prefer updating the most specific path possible\r\n- Do not replace an entire object when a child property can be updated\r\n- Do not combine unrelated changes into a single operation\r\n\r\n## Encoding the `value` Field\r\n- The `value` field must always be a JSON-encoded string (as if passed to `JSON.stringify`).\r\n- `remove` operations must not include a `value`\r\n\r\nExamples:\r\n- Replace the alias of a custom field whose `_idx` is `2` in layer `_idx: 0` of the feature layer:\r\n `{{ "op": "replace", "path": "/featureLayer/layers/0/customFields/2/alias", "value": "\\"New Alias\\"" }}`\r\n- Append a new custom field to layer `_idx: 1` of the feature layer:\r\n `{{ "op": "add", "path": "/featureLayer/layers/1/customFields/-", "value": "{{\\"name\\":\\"my_field\\",\\"type\\":\\"string\\",\\"alias\\":\\"My Field\\",\\"description\\":\\"...\\",\\"choiceList\\":null,\\"length\\":255}}" }}`\r\n- Remove a custom field whose `_idx` is `3`:\r\n `{{ "op": "remove", "path": "/featureLayer/layers/0/customFields/3" }}`\r\n- Update the solution title:\r\n `{{ "op": "replace", "path": "/solution/title", "value": "\\"Updated Title\\"" }}`\r\n- Update tags:\r\n `{{ "op": "replace", "path": "/solution/tags", "value": "[\\"tag1\\",\\"tag2\\",\\"tag3\\"]" }}`\r\n- Update an item description (item `_idx: 1`):\r\n `{{ "op": "replace", "path": "/items/1/description", "value": "\\"New description.\\"" }}`\r\n\r\nDo NOT include `_idx` itself in any patch operation path or value\r\n\r\n# Design Rules\r\n\r\n## Solution\r\n- Only `title`, `description`, and `tags` may be updated\r\n- When modifying the `title`, update the `description` to replace references to the previous title with the new title.\r\n- Only modify values. Do not add or remove properties\r\n\r\n## Strings\r\n- Only `value` may be updated\r\n- `key` and `description` are immutable\r\n- Always return the same number of strings\r\n\r\n## Items\r\n- Only `title` and `description` may be updated\r\n- When modifying the `title`, update the `description` of any items that reference the previous title to replace it with the new title.\r\n- `id` and `type` are immutable\r\n- Items cannot be added or removed\r\n\r\n## Feature Layers\r\n- Supported layer types: `Point`, `Polyline`, `Polygon`, `Table`\r\n\r\n### Layer Naming Rules\r\n- Layer `name` values should be written in Title Case unless specifically requested otherwise\r\n- Layer names should be localized to the detected User Query language unless specifically requested otherwise\r\n\r\n### Add Layers Rule\r\n- If `addLayers: false`:\r\n - Layers can NOT be added or removed\r\n - Layer `id` values are immutable\r\n- If `addLayers: true`:\r\n - Layers may be added or removed\r\n - Each new layer must receive a unique `id` starting at 0\r\n- Regardless of `addLayers`:\r\n - Fields within a layer or table may be modified according to the Required Fields and Custom Fields rules.\r\n - Custom fields may be added or removed when explicitly requested.\r\n\r\n### Layer Type Mutability Rule\r\n- Never edit the `typeMutable` property\r\n- If `typeMutable: true`:\r\n - The layer type must be chosen: `Point`, `Polyline`, `Polygon`, `Table`\r\n - The layer type may be changed without restriction\r\n- If `typeMutable: false`:\r\n - The layer type may never be changed\r\n - Requests to change the layer type should be rejected\r\n\r\n### Required Fields\r\n- Required fields are protected:\r\n - Cannot be removed\r\n - Cannot be moved\r\n - `name`, `type`, `length`, and `choiceList` are immutable\r\n - `alias` and `description` can be modified\r\n\r\n### Custom Fields\r\n- Custom fields may be added, modified, or removed\r\n - All properties of the field can be modified\r\n- Field names:\r\n - must be 31 characters or fewer\r\n - lowercase in the detected User Query language when that language has letter case\r\n - contain letters from any writing system (Unicode letters are allowed, e.g., `\xE4`, `\xF1`, `\u540D`, `\u3042`)\r\n - do not contain special characters other than underscores (`_`)\r\n - do not start with a number or underscore\r\n- Localize the field `name` to the detected User Query language\r\n- Valid types: `string`, `integer`, `double`, `date`\r\n- String fields:\r\n - Set `choiceList` to an array of allowed values if applicable, else `null`\r\n - All`choiceList` values should be written in the detected User Query language unless specifically requested otherwise\r\n - Set an appropriate `length`. When setting a default length use 256 instead of 255.\r\n- Non-string fields:\r\n - `choiceList` and `length` should be set to `null`\r\n - Existing string fields can be changed to a non-string field when requested \r\n- Boolean values must be implemented as:\r\n - `string` with a two-value `choiceList`\r\n - The two values should be localized to the detected User Query language unless specifically requested otherwise\r\n - Preserve meaning equivalent to \u201CYes\u201D and \u201CNo\u201D (affirmative/negative)\r\n- No duplicate field names within the same layer\r\n\r\n# Current Solution Design\r\n{currentDesign}\r\n\r\n# User Query\r\n{query}';export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b}from"./2I5LGZNX.js";import{E as h,F as c,G as _,I as w,h as m,i as s,q as o,t as C}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([f,{b:d},{d:y}])=>{var B=m`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,p=class extends _{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._createAndBackBtnDisabled=!1,this._translations=g({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=o(),this.backFromCreateWorkFlow=o(),this.featureOrRecordSubmitted=o(),this.featuresCopied=o(),this.featuresPasted=o(),this.disablePaste=o(),this._handleCreateAndBackBtn=e=>{this._createFeatureEditor&&(this._createAndBackBtnDisabled=e)},this._featuresAdded=()=>{this._pasteComponent.value&&this._resetPasteWorkflow()},this._initCreateComponent=()=>{this._showCreateFeatureComponent=!0},this._createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this._createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this._pasteComponentReady=async()=>{let e=this._pasteComponent.value;if(e&&this.mapComponentId&&e.referenceElement===void 0){let t=document.getElementById(this.mapComponentId);await t.viewOnReady(),e.referenceElement=t}e&&!this._clipboardWatchHandle&&(this._clipboardWatchHandle=f.watch(()=>e.clipboard.hasItems,t=>{t||this.disablePaste.emit()}))},this._applyPasteCommand=async e=>{let t=new Promise((a,n)=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available."),a();return}try{e.detail.applySet?this._pasteComponent.value.writeChanges(e.detail.applySet).then(()=>{this._resetPasteWorkflow(),a()}).catch(i=>{console.log(i),n(i)}):a()}catch(i){n(i),console.error("Paste failed:",i)}});e.detail.completionCallback=t},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded),this.listenOn(window,"initCreateComponent",this._initCreateComponent),this.listenOn(window,"createFeatureEditorInitialized",this._createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this._createFeatureEditorClosed),this.listenOn(window,"continueEditing",()=>this._handleCreateAndBackBtn(!1)),this.listenOn(window,"beforeLayerSelectionChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeMapInfoChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeFeatureSelectionChange",()=>this._handleCreateAndBackBtn(!0))}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_createAndBackBtnDisabled:16,_translations:16}}static{this.styles=B}static{this.shadowRootOptions=C}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 y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,n=await d(t,a,[],!0,this.mapView?.spatialReference),i=[];n.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};i.push(l)}),this._pasteComponent.value.clipboard.setData(i),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.layerOrTable?.isTable||await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(this._pasteComponent.value)try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._pasteComponent.value.closed=!0}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}disconnectedCallback(){super.disconnectedCallback(),this._clipboardWatchHandle?.remove(),this._clipboardWatchHandle=void 0}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",n=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",i=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.editingEnabled&&this.layerOrTable?.capabilities?.operations?.supportsAdd,u=this.createBtnLabel?this.createBtnLabel:i?this._translations.createRecord:this._translations.createFeature,F=!this.layerOrTable,v=this.enableSnapping&&!this.layerOrTable?.isTable,$=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],k=!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${v} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${n}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${F} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${u}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${u}><calcite-action class="back-button hydrated" .disabled=${this._createAndBackBtnDisabled} icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._createAndBackBtnDisabled} @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${w(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${$} .view=${this.mapView} ${c(this._pasteComponent)}>${k&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @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} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await d(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this._handleCreateAndBackBtn(!1),this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeatureEditor&&await this._validateActiveEdits()&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit(),this._showSubmitBtn=!1,this._handleCreateAndBackBtn(!1))}async _validateActiveEdits(){let e=!0;if(this._createFeatureEditor&&this._hasPendingEdits()){let t=!1;try{this._handleCreateAndBackBtn(!0),this._createFeatureEditor.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){t=a?.name==="workflow:cancel-denied"}t&&(this._handleCreateAndBackBtn(!1),e=!1)}return e}_hasPendingEdits(){return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit()}};b("card-manager",p);return p},"core/reactiveUtils",a,d)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as In}from"./S37TPZAO.js";import{b as gn,c as yn}from"./RPBIUBGZ.js";import a from"./IEAOGMAM.js";import{b as Po}from"./2B4SGB3I.js";import{b as yo}from"./I2NTSKBD.js";import{$ as Qe,$a as gr,$b as Mt,A as Oo,Aa as Zo,Ab as Ar,B as Ro,Ba as Qo,Bb as Ur,C as Ie,Ca as Yo,Cb as Mr,D as M,Da as kt,E as Co,Ea as Ot,Eb as Nr,F as Je,Fa as Xo,G as _e,Ga as er,Gb as $r,H as S,Ha as ye,Hb as Wr,I as Et,Ia as Rt,Ib as Lr,J as Ao,Ja as tr,Jb as Vr,K as p,Ka as or,Kb as ne,L as Uo,La as rr,Lb as Br,Ma as nr,Mb as zr,N as Te,Na as ir,Nb as jr,O as b,Oa as sr,Ob as Dr,P as ve,Pa as ar,Pb as Gr,Q as Mo,Qa as mr,Qb as Kr,R as _t,Ra as cr,Rb as Hr,S as Tt,Sa as dr,Sb as qr,T as Ze,Ta as pr,Tb as Jr,U as q,Ua as lr,Ub as Zr,V as No,Va as ur,Vb as Qr,W as $o,Wa as fr,Wb as Yr,X as Wo,Xa as Ct,Xb as Xr,Y as B,Ya as tt,Yb as en,Z as Lo,Za as hr,Zb as tn,_ as D,_a as Ir,_b as on,a as Le,aa as Vo,ab as re,ac as rt,ba as vt,bb as yr,bc as Nt,c as W,ca as oe,cb as Pr,cc as ke,da as w,db as wr,dc as nt,e as ee,ea as _,eb as Sr,ec as rn,f as Eo,fa as Y,fb as xr,fc as nn,g as me,ga as Ye,gb as br,gc as sn,h as u,ha as Bo,hb as Er,hc as an,i as xt,ia as zo,ib as _r,ic as mn,j as le,ja as Ft,jb as Tr,jc as cn,k as je,ka as jo,kb as vr,kc as dn,l as fe,lb as Fe,lc as Oe,m as De,ma as Do,mb as F,mc as it,n as Ge,na as Go,nb as ot,nc as st,o as bt,oa as Ko,oc as pn,p as To,pa as Ho,pc as at,qa as qo,qb as Fr,qc as ln,r as Ke,ra as C,rb as kr,s as vo,sa as ge,sb as z,t as He,ta as J,tb as Or,u as qe,ub as Pe,v as te,va as Xe,vb as Z,w as Fo,wa as et,wb as Rr,x as he,xa as Jo,xb as At,y as ko,yb as Cr,z as I,zb as Ut}from"./MSUQVQBX.js";import{a as go}from"./XF5N3NI5.js";import{a as ue,g as Ee}from"./IHG7KTNC.js";import{a as L}from"./ZCU2WWVN.js";import{a as H,b as Ve,c as Be,d as ze}from"./KOIDWEP3.js";import{e as K,f as xo,j as Ne,l as $e,o as bo,s as We}from"./AYSQIO6L.js";import{b as wo,h as So}from"./YQHYMLC7.js";import{a as _o}from"./5O53T3SW.js";import{a as V}from"./AJZDBHB6.js";import{b as Io}from"./2I5LGZNX.js";import{E as Me,F as be,G as fo,K as ho,h as uo,i as G,q as pe}from"./FFF5HUPM.js";import{c as $}from"./QPIMTXPL.js";export default $arcgis.t(([{g:un,h:fn,i:hn}])=>{function we(e,t="application/octet-stream"){if(typeof Blob<"u"){let o=[];for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);let r=new Uint8Array(o);return new Blob([r],{type:t})}else throw new Error("stringToBlob is not currently supported on Node")}function Pn(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var mt={};$(mt,{_mostRecentlyEditedLayer:()=>$t,convertItemToTemplate:()=>ss,createItemFromTemplate:()=>as,postProcess:()=>ms});function ss(e,t,o,r){return new Promise((n,i)=>{let s=D(e);Tr(e.groupDesignations)?rr(s,o).then(m=>n(m),m=>i(S(m))):(s.estimatedDeploymentCostFactor=10,J(s.item.id,o).then(m=>{s.data=m,br(s,o).then(c=>{c.item.modified=Math.max(c.item.modified,$t(s.properties.layers),$t(s.properties.tables)),wr(c,o).then(d=>{c.dependencies=d.map(l=>l.id),n(Xo(c,d,!1,r))},d=>i(S(d)))},c=>i(S(c)))}))})}function as(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),delete i.item.thumbnail,Je(i,"properties.service.size");let s=er(i.data);gr(i,o,t).then(a=>{a.success?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.serviceItemId)?(i=Rt(i,t,a),sr(i,t,s,o).then(()=>{i=Rt(i,t,a),Pe({...i.item,url:void 0},i.data,o,e.item.thumbnail,void 0,t).then(()=>{r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,a.serviceItemId)?C(i.itemId,o).then(m=>{i.item=m,p(i,"item.url")&&!i.item.url.endsWith("/")&&(i.item.url+="/"),n({item:i,id:a.serviceItemId,type:i.type,postProcess:oe({item:i.item,data:i.data})||Ct(i)})},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(r(e.itemId,u.Cancelled,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(r(e.itemId,u.Cancelled,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}function ms(e,t,o,r,n,i,s){return new Promise((a,m)=>{Z(e,i,s).then(c=>{Ct(r)?(r=w(r,i),tt(r,s,r.item.url,i).then(a,m)):a(c)},m)})}function $t(e){let t=0;return e.forEach(o=>{t=o.editingInfo?.lastEditDate?Math.max(t,o.editingInfo.lastEditDate):t}),t}var f={};$(f,{convertItemToTemplate:()=>cs,createItemFromTemplate:()=>ds});function cs(e,t,o){return new Promise(r=>{let n=D(e);n.item.id=_(n.item.id,n.item.id,".itemId");let i=new Promise(a=>{ge(n.itemId,n.item.name,o).then(m=>{!m||m.size===0?a(null):a(m)})}),s=Promise.resolve({});Promise.all([i,s]).then(a=>{let[m]=a;if(m){let c=rn(m,n.item.name);n.properties[c.filename]=c.mimeType;let d=nt(n.itemId,c.blob.name,1,c.blob.name===c.filename?ke.data:ke.fakezip),l={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=l,n.resources.push(d.folder+"/"+d.filename),r(n)}else r(n)})})}function ds(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),e.item.thumbnail&&(i.item.thumbnail=e.item.thumbnail),re(i.item,i.data,o,t.folderId).then(s=>{r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,s.id)?(i.itemId=s.id,t[e.itemId]={itemId:s.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,s.id),n({item:i,id:s.id,type:i.type,postProcess:!1})):(r(e.itemId,u.Cancelled,0),F(s.id,o).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}var Xt={};$(Xt,{_getFormDataFilename:()=>ri,_replaceFeatureServiceURLs:()=>Zn,_replaceItemIds:()=>Qn,_replacePortalBaseUrls:()=>Yn,_replaceWorkflowManagerBaseUrls:()=>Xn,_updateZipObjectTextContent:()=>ei,convertItemToTemplate:()=>Ks,createItemFromTemplate:()=>Hs,postProcess:()=>oi,postProcessFormItems:()=>Js,swizzleFormObject:()=>Qt,templatizeFormData:()=>Yt});function xn(e,t){return ps(e,t)}function ps(e,t){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(r=>{let n=p(e,r);Array.isArray(n)&&n.forEach(i=>{i.type==="mapWidget"&&(e.dependencies.indexOf(i.itemId)<0&&e.dependencies.push(i.itemId),i.itemId=_(i.itemId,i.itemId,".itemId")),Array.isArray(i.datasets)&&ls(i,e,t)})}),e}function ls(e,t,o){e.datasets.forEach(r=>{if(p(r,"dataSource.type")!=="arcadeDataSource"){let i=p(r,"dataSource.itemId");if(i){t.dependencies.indexOf(i)<0&&t.dependencies.push(i);let s=p(r,"dataSource.layerId");ye(s?.toString(),i,"",o),r.dataSource.itemId=_(i,i,".itemId")}}})}function bn(e,t){let o=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return o.forEach(r=>{let n=p(e,r);us(n,t)}),o.forEach(r=>{fs(e,r,t)}),e}function us(e,t){e&&Array.isArray(e)&&e.forEach(o=>{Array.isArray(o.datasets)&&o.datasets.forEach(r=>{let n=_t(p(r,"dataSource.itemId"));if(n){let i=Tt(p(r,"dataSource.layerId"));t.some(s=>s.itemId===n&&s.layerId===i?(Sn(s,o.id),!0):!1)}else{let i=p(r,"dataSource.id");if(i){let s=i.split("#")[1];t.some(a=>a.ids.indexOf(s)>-1?(Sn(a,o.id),!0):!1)}}})})}function fs(e,t,o){let r=p(e,t);r&&b(e,t,hs(r,o))}function hs(e,t){return Array.isArray(e)?e.map(o=>{let r=o;return Array.isArray(r.events)&&(r.events=r.events.map(n=>{let i=n;return Array.isArray(i.actions)&&(i.actions=i.actions.map(s=>{let a=s;if(a.fieldMap&&a.targetId&&a.targetId.indexOf("#")>-1){let m=wn(a,t);if(m){let c=p(m,"fields"),d=p(m,"basePath");Array.isArray(c)&&d&&(a.fieldMap=a.fieldMap.map(l=>{let h=l;return h.targetName=Y(h.targetName,c,d),h}))}}return a})),i})),Array.isArray(r.datasets)&&(r.datasets=r.datasets.map(n=>{let i=n;if(i.type==="serviceDataset"){let s=wn(n,t);if(s){let a=p(s,"fields"),m=p(s,"basePath");Array.isArray(a)&&m&&(r=Y(r,a,m),i=Y(i,a,m))}}return i})),r}):e}function wn(e,t){let o,r=p(e,"dataSource.id")||p(e,"targetId");if(r){let n=r.split("#")[1];if(!t.some(i=>(o=i.ids.indexOf(n)>-1?i:o,i.ids.indexOf(n)>-1))){let i=r.split("#")[0];t.some(s=>{let m=(s.references||[]).indexOf(i)>-1;return o=m?s:o,m})}}else{let n=_t(p(e,"dataSource.itemId")),i=Tt(p(e,"dataSource.layerId"));n&&t.some(s=>{let a=n===s.itemId&&i===s.layerId;return o=a?s:o,a})}return o}function Sn(e,t){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(t)<0&&e.references.push(t)}var Se={};$(Se,{convertItemToTemplate:()=>_s,convertNotebookToTemplate:()=>Ht,createItemFromTemplate:()=>Ts,deleteProps:()=>Un,fineTuneCreatedItem:()=>Kt,postProcess:()=>Fs,postProcessNotebookTemplates:()=>vs});function Tn(e,t,o,r){return new Promise((n,i)=>{let s="";if(e.item.url){let a=e.item.url,m=a.indexOf("//");e.item.url=B(q)+a.substring(a.indexOf("/",m+2),a.lastIndexOf("=")+1)+e.item.id,s=a.replace(a.substring(a.indexOf("/",m+2)),"")}e.dependencies=ys(e),b(e,"data.folderId","{{folderId}}"),Ss(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Fn(e,"data.appItemId",e.itemId),Dt(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],B(q)),b(e,"data.geometryService",B(No)),Is(e,o,s,r).then(()=>{_n(e,o,s,"data.widgetPool.widgets").then(a=>{_n(a,o,s,"data.widgetOnScreen.widgets",!0).then(m=>{gs(m,o,s,"data.values").then(c=>{n(c)},c=>i(S(c)))},m=>i(S(m)))},a=>i(S(a)))},a=>i(S(a)))})}function Is(e,t,o,r){return new Promise((n,i)=>{let s=p(e,"data.dataSource.dataSources");if(s&&Object.keys(s).length>0){let a=new Array;Object.keys(s).forEach(m=>{let c=s[m];b(c,"portalUrl",B(q));let d=p(c,"itemId");if(p(c,"url")){if(d){let h=c.url.substr(c.url.lastIndexOf("/")+1);ye(h.toString(),d,c.url,r),c.itemId=_(d,d,".layer"+h+".itemId")}let l=jt(c.url,o,[],[],t);a.push(new Promise((h,g)=>{zt(l.serviceRequests,l.requestUrls,l.testString).then(P=>{c.url=P,h()},P=>g(S(P)))}))}else d&&(c.itemId=_(d,d,".itemId"))}),Promise.all(a).then(()=>n(e),m=>i(S(m)))}else n(e)})}function _n(e,t,o,r,n=!1){return new Promise((i,s)=>{let a=p(e,r)||[],m=[],c=[];if(a.forEach(d=>{!n&&p(d,"icon")&&Dt(d,["icon"],B(q));let l=d.config;if(l){let h=JSON.stringify(l),g=jt(h,o,c,m,t);d.config=JSON.parse(g.testString),m=g.serviceRequests,c=g.requestUrls}}),m.length>0){let d=JSON.stringify(a);zt(m,c,d).then(l=>{b(e,r,JSON.parse(l)),i(e)},l=>s(S(l)))}else i(e)})}function gs(e,t,o,r){return new Promise((n,i)=>{let s=p(e,r),a=[],m=[];if(s){p(s,"icon")&&Dt(s,["icon"],B(q));let c=JSON.stringify(s),d=jt(c,o,m,a,t);s=JSON.parse(d.testString),a=d.serviceRequests,m=d.requestUrls}if(a.length>0){let c=JSON.stringify(s);zt(a,m,c).then(d=>{b(e,r,JSON.parse(d)),n(e)},d=>i(S(d)))}else n(e)})}function zt(e,t,o){return new Promise((r,n)=>{if(e&&e.length>0){let i=0;Promise.all(e).then(s=>{s.forEach(a=>{if(p(a,"serviceItemId")){let m="{{"+a.serviceItemId+(a.hasOwnProperty("id")?".layer"+a.id:"")+".url}}";o=ct(o,t[i],m,!0)}i++}),r(o)},s=>n(S(s)))}else r(o)})}function jt(e,t,o,r,n){let i={f:"json",authentication:n},s=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return s&&s.length&&s.forEach(a=>{a.indexOf("NAServer")>-1?e=ct(e,a,B(Wo)):a.indexOf("GeocodeServer")>-1?e=ct(e,a,B($o)):t&&a.indexOf(t)>-1?e=ct(e,t,B(q)):a.indexOf("FeatureServer")>-1&&o.indexOf(a)===-1&&(o.push(a),r.push(W(a,i)))}),{testString:e,requestUrls:o,serviceRequests:r}}function ct(e,t,o,r=!1){let n=r&&e.indexOf('"')>-1,i=new RegExp(n?'"'+t+'"':t,"gmi");return e.replace(i,n?'"'+o+'"':o)}function Dt(e,t,o){t.forEach(r=>{let n=p(e,r);if(n){let i=n.substring(n.indexOf("/",n.indexOf("//")+2));b(e,r,i!==n?o+i:o)}})}function vn(e,t,o,r){return new Promise(n=>{if(ve(e,["WAB2D","WAB3D","Web AppBuilder"])){let i={id:t.itemId,url:t.item.url,data:t.data},s=z(i,r),a={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:t.itemId,url:qe(w(B(q),o))+"sharing/rest/content/items/"+t.itemId+"/package"},m=re(a,{},r,o.folderId);Promise.all([s,m]).then(()=>n(null),()=>n(null))}else n(null)})}function ys(e){let t=Ps;return ve(e,["WAB2D","WAB3D","Web AppBuilder"])&&(t=ws),t(e)}function Ps(e){return Uo(e,["data.values.webmap","data.values.group"])}function ws(e){let t=[],o=p(e,"data.map.itemId");o&&t.push(o);let r=p(e,"data.dataSource.dataSources");return r&&Object.keys(r).forEach(n=>{let i=r[n];i.itemId&&t.push(i.itemId)}),t}function Ss(e,t){t.forEach(o=>{let r=p(e,o);Fn(e,o,r)})}function Fn(e,t,o){b(e,t,_(o,o,".itemId"))}function kn(e,t){let o=p(e,"data.dataSource.dataSources");o&&Object.keys(o).length>0&&(Object.keys(o).forEach(i=>{let s=o[i];o[i]=Vt(s,t)}),b(e,"data.dataSource.dataSources",o)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(i=>{let s=p(e,i);s&&b(e,i,xs(s,t))});let n=p(e,"data.values");return n&&b(e,"data.values",Vt(n,t)),e}function Vt(e,t,o=!1){return e=Es(e,t,o),bs(e,t).forEach(n=>{e=Y(e,n.fields,n.basePath,o)}),e}function xs(e,t){let o=["SmartEditor","Screening"];return e.map(r=>{if(r.config){let n=o.indexOf(r.name)>-1;r.config=Vt(r.config,t,n)}return r})}function bs(e,t){let o=JSON.stringify(e);return t.filter(n=>Lt(n,o)<4).sort((n,i)=>Lt(n,o)-Lt(i,o))}function Lt(e,t){let o=e.url,r=e.itemId,n=e.layerId,i;return o&&!isNaN(n)&&(i=new RegExp(o.replace(/[.]/,".layer"+n+"."),"gm")),i&&i.test(t)||e.ids.length>0&&e.ids.some(s=>new RegExp(s,"gm").test(t))?1:o&&new RegExp(o,"gm").test(t)?2:r&&new RegExp(r,"gm").test(t)?3:4}function Es(e,t,o){let r=JSON.stringify(e),n=t.filter(i=>{let s;i.url&&!isNaN(i.layerId)&&(s=new RegExp(i.url.replace(/[.]/,".layer"+i.layerId+"."),"gm"));let a=!1;if(i.ids.length>0&&(a=i.ids.some(m=>new RegExp(m,"gm").test(r))),a||s&&s.test(r))return i});return n.length>0&&n.forEach(i=>{e=Bt(e,i,o),i.ids.length>0&&i.ids.forEach(s=>{e=dt(e,i,s,o)})}),e}function Bt(e,t,o){let r={},n=t.url,i=t.layerId,s;if(n&&!isNaN(i)&&(s=new RegExp(n.replace(/[.]/,".layer"+i+"."),"gm")),Array.isArray(e))r=e.map(a=>Bt(a,t,o));else if(typeof e=="object")for(let a in e)e[a]!=null&&typeof e[a]=="object"?r[a]=Bt(e[a],t,o):(s&&s.test(e[a])&&(e=Y(e,t.fields,t.basePath,o)),r[a]=e[a]);else r=e;return r}function dt(e,t,o,r){let n={},i=new RegExp(o,"gm");if(Array.isArray(e))n=e.map(s=>dt(s,t,o,r));else if(typeof e=="object")for(let s in e)if(e[s]!==null){let a;try{a=JSON.parse(e[s])}catch{a=void 0}a&&typeof a=="object"?n[s]=JSON.stringify(dt(a,t,o,r)):typeof e[s]=="object"?(i.test(s)&&r&&(e[s]=Y(e[s],t.fields,t.basePath,r)),n[s]=dt(e[s],t,o,r)):(i.test(e[s])&&(e=Y(e,t.fields,t.basePath,r)),n[s]=e[s])}else n[s]=e[s];else n=e;return n}function On(e,t,o,r){return fr(e,o,r)}function Rn(e,t,o){return tt(e,t,"",o)}function Q(e,t,o,r,n){return new Promise((i,s)=>{function a(){n&&n.signal.aborted&&s(new Error("Operation was cancelled"))}if(a(),!r(e.itemId,u.Started,0))r(e.itemId,u.Ignored,0),i(I(e.type));else{let m=M(e);m=w(m,t);let c;e.type==="Web Mapping Application"&&e.data?m=JSON.parse(w(JSON.stringify(m),t)):e.type==="QuickCapture Project"&&e.data&&(c=JSON.stringify(m.data.application),delete m.data),e.item.thumbnail&&(m.item.thumbnail=e.item.thumbnail),re(m.item,m.data,o,t.folderId).then(d=>{if(a(),!r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,d.id))r(e.itemId,u.Cancelled,0),F(d.id,o).then(()=>i(I(e.type)),()=>i(I(e.type)));else{t[e.itemId]={itemId:d.id,itemUrl:t.portalBaseUrl+"/sharing/rest/content/items/"+d.id},m.itemId=d.id,m.type==="Web Mapping Application"&&e.data&&b(m,"data.appItemId",d.id);let l=oe(m.data),h=m.item.url;m=w(m,t),a();let g=Promise.resolve([]);if(m.relatedItems){let x=w(Ye(m.relatedItems),t);g=hr(m.itemId,x,o)}a();let P;if(e.type==="Web Mapping Application"&&e.data&&ve(e,["WAB2D","WAB3D","Web AppBuilder"]))P=vn(e,m,t,o);else if(e.type==="Workforce Project")P=Rn(m,o,t);else if(e.type==="QuickCapture Project"){if(c){let x=Ie(w(JSON.parse(c),t),"qc.project.json");P=dn(x,m.itemId,"",x.name,o)}}else e.type==="Notebook"?P=Kt(e,m,t,o):h!==m.item.url?(a(),P=new Promise((x,y)=>{Rr(d.id,m.item.url,o).then(()=>x(),y)})):P=Promise.resolve(null);a(),Promise.all([g,P]).then(()=>{r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,d.id)?i({item:m,id:d.id,type:m.type,postProcess:l}):(r(e.itemId,u.Cancelled,0),F(d.id,o).then(()=>i(I(e.type)),()=>i(I(e.type))))},()=>{r(e.itemId,u.Failed,0),i(I(e.type))})}},()=>{r(e.itemId,u.Failed,0),i(I(e.type))})}})}function _s(e,t,o,r){return X(e,t,o,r)}function Ts(e,t,o,r){return Q(e,t,o,r)}function Ht(e){return new Promise(t=>{Un(e.data),t(e)})}function vs(e,t){if(e.some(r=>r.type==="Notebook")){let r=Object.keys(t).filter(i=>i.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((i,s)=>(i=[...new Set([...i,...s.dependencies,s.itemId])],i),[]);e=e.map(i=>{if(i.type==="Notebook"){let s=i.data&&JSON.stringify(i.data);return n.forEach(a=>{new RegExp(a,"gim").test(s)&&(s=s.replace(a,"{{"+a+".itemId}}"),i.dependencies.indexOf(a)<0&&i.dependencies.push(a))}),r.forEach(a=>{let m=new RegExp(a,"gim");if(m.test(s)){let c=t[a];s=s.replace(m,c);let d=/[0-9A-F]{32}/gim,l=c.match(d)[0];i.dependencies.indexOf(l)<0&&i.dependencies.push(l)}}),i.data=JSON.parse(s),i}})}return e}function Un(e){if(e){let t=["metadata.interpreter","metadata.papermill"];_e(e,t),(e.cells||[]).forEach(o=>{_e(o,t)})}}function Kt(e,t,o,r){return new Promise((n,i)=>{let s={id:t.itemId,url:t.item.url,data:Ie(t.data,t.itemId+".ipynb")};z(s,r).then(()=>n(null),i)})}function Fs(e,t,o,r,n,i,s){return Z(e,i,s)}function Nn(e,t,o){return new Promise((r,n)=>{ks(e,o).then(i=>{e.dependencies=i.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=Mn(e.data.properties.ServiceURL,i.urlHash),e.data.properties.OverviewURL=Mn(e.data.properties.OverviewURL,i.urlHash)),r(e)},i=>n(S(i)))})}function ks(e,t){return new Promise((o,r)=>{let n=[];if(e.data?.properties){let i=[];e.data.properties.ServiceURL&&i.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&i.push(e.data.properties.OverviewURL),Os(i,n,t).then(s=>{o(s)},s=>r(S(s)))}else o({dependencies:n,urlHash:{}})})}function Os(e,t,o){return new Promise((r,n)=>{let i={},s={f:"json",authentication:o},a=[],m={},c=e.filter(d=>{if(d){let l=/.+FeatureServer/g.exec(d),h=Array.isArray(l)&&l.length>0?l[0]:void 0;return h?(Object.keys(m).indexOf(h)<0&&(m[h]=W(d,s)),a.push(m[h]),!0):!1}else return!1});a.length>0?Promise.all(a).then(d=>{d.forEach((l,h)=>{if(p(l,"serviceItemId")){let g=l.serviceItemId;t.indexOf(g)<0&&t.push(g),i[c[h]]=g}}),r({dependencies:t,urlHash:i})},d=>n(S(d))):r({dependencies:t,urlHash:i})})}function Mn(e,t){let o=e;if(e){let r=t[e];if(r){let n=e.substr(e.lastIndexOf("/")+1);o=_(r,r,".layer"+n+".url")}o=Ye(o.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return o}var Re={};$(Re,{_templatizeAdminEmail:()=>Ln,_templatizeApplication:()=>Wn,_templatizeId:()=>qt,_templatizeUrl:()=>Bn,_updateDependencies:()=>Vn,convertItemToTemplate:()=>Cs,convertQuickCaptureToTemplate:()=>Jt,createItemFromTemplate:()=>As});function Cs(e,t,o,r){return X(e,t,o,r)}function Jt(e){return b(e,"data.application",Wn(e.data.application,e)),e}function Wn(e,t){qt(e,"itemId"),Ln(e);let o=e?.dataSources;return o&&Array.isArray(o)&&o.forEach(r=>{let n=r.featureServiceItemId;n&&(Vn(n,t),Bn(r,"featureServiceItemId","url"),qt(r,"featureServiceItemId"))}),e}function Ln(e){p(e,"preferences.adminEmail")&&b(e,"preferences.adminEmail","{{user.email}}")}function Vn(e,t){t.dependencies.indexOf(e)===-1&&t.dependencies.push(e)}function Bn(e,t,o){let r=p(e,t),n=p(e,o);if(n){let i=n.substr(n.lastIndexOf("/")+1);b(e,o,_(r,r,".layer"+i+".url"))}}function qt(e,t){let o=p(e,t);o&&b(e,t,_(o,o,".itemId"))}function As(e,t,o,r){return Q(e,t,o,r)}var Us="home/webmap/viewer.html?webmap=";function zn(e,t,o,r){return new Promise((n,i)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?qe(B(q))+Us+e.item.id:e.item.url),Ms(e,o).then(s=>{e.dependencies=s.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Zt(e.data.baseMap.baseMapLayers,s.urlHash,r),e.data.operationalLayers&&Zt(e.data.operationalLayers,s.urlHash,r),Zt(e.data.tables,s.urlHash,r),Ns(e.data)),n(e)},s=>i(S(s)))})}function Ms(e,t){return new Promise((o,r)=>{let n=[];if(e.data){let i=e.data.baseMap?.baseMapLayers||[],s=e.data.operationalLayers||[],a=e.data.tables||[],m=i.concat(s).concat(a);$s(m,n,t).then(c=>{o(c)},c=>r(S(c)))}else o({dependencies:n,urlHash:{}})})}function Ns(e){Je(e,"initialState")}function $s(e,t,o){return new Promise((r,n)=>{let i={},s={f:"json",authentication:o},a=[],m={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return a.push(C(d.itemId,o)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let l=/.+FeatureServer/g.exec(d.url),h=Array.isArray(l)&&l.length>0?l[0]:void 0;return h?(Object.keys(m).indexOf(h)<0&&(m[h]=W(d.url,s)),a.push(m[h]),!0):!1}else return!1});a.length>0?Promise.all(a).then(d=>{d.forEach((l,h)=>{if(c[h].layerType==="VectorTileLayer"){let g=p(l,"typeKeywords");if(g&&g.includes("Vector Tile Style Editor")){t.indexOf(l.id)<0&&t.push(l.id),c[h].templatizeId=!0;let P=c[h].styleUrl.indexOf(l.id)+l.id.length;c[h].styleUrl=_(c[h].styleUrl.replace(c[h].styleUrl.substring(0,P),l.id),l.id,".itemUrl")}}else if(p(l,"serviceItemId")){let g=l.serviceItemId;t.indexOf(g)<0&&t.push(g),i[c[h].url]=g}}),r({dependencies:t,urlHash:i})},d=>n(S(d))):r({dependencies:t,urlHash:i})})}function Zt(e=[],t,o){e.forEach(r=>{if(r.itemId&&r.layerType==="VectorTileLayer")r.templatizeId&&(r.itemId=_(r.itemId,r.itemId,".itemId"),delete r.templatizeId);else if(r.url){let n=r.url.substr(r.url.lastIndexOf("/")+1),i=Object.keys(t).indexOf(r.url)>-1?t[r.url]:void 0;i&&(ye(n,i,r.url,o),r.url=_(i,i,".layer"+n+".url"),r.itemId=_(i,i,".layer"+n+".itemId"))}})}function jn(e,t){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(r=>Ws(e,t,r)),e}function Ws(e,t,o){let r=p(e,o);r&&b(e,o,Ls(r,t))}function Ls(e,t){return e.forEach(o=>{let r=Vs(o,t);if(r){let n=r.fields.map(s=>s.name);cr(o,r,r.basePath,r.itemId,n),pr(o,r.basePath,n),o.layerDefinition&&(ur(o.layerDefinition,r.basePath,n),lr(o.layerDefinition,r.basePath,n));let i=p(o,"field.name");i&&b(o,"field.name",dr(i,o,r.itemId,r.basePath))}}),e}function Vs(e,t){let o;return t.some(r=>r.ids.indexOf(e.id)>-1?(o=r,!0):!1),o}function X(e,t,o,r){return new Promise((n,i)=>{let s=D(e);s.item.id=_(s.item.id,s.item.id,".itemId");let a=Xe(s.itemId,"forward",o),m=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":m=new Promise(d=>{J(s.itemId,o).then(l=>d(l))});break;case"Form":m=ge(s.itemId,s.item.name,o);break;case"QuickCapture Project":c=et(s.itemId,o);break}Promise.all([m,a,c]).then(d=>{let[l,h,g]=d;ln(s,r),s.data=at(l,e.type,r);let P=h;s.dependencies=[],s.relatedItems=[],P.forEach(y=>{y.relationshipType!=="WMA2Code"&&(s.relatedItems.push(y),y.relatedItemIds.forEach(T=>{s.dependencies.indexOf(T)<0&&s.dependencies.push(T)}))}),e.type==="Data Pipeline"&&(s.dependencies=s.dependencies.concat(Bs(l)));let x=Promise.resolve(s);switch(e.type){case"Dashboard":xn(s,r);break;case"Notebook":x=Ht(s);break;case"Oriented Imagery Catalog":x=Nn(s,t,o);break;case"QuickCapture Project":s.resources=g,x=new Promise(async y=>{let T=null,E=-1;g&&(g.some((ce,ie)=>{let se=ce.name==="qc.project.json";return se&&(T=ce,E=ie),se}),E>=0&&g.splice(E,1)),T&&(s.data={application:{...await He(T)},name:"qc.project.json"}),s.data.application?.basemap?.type==="Web Map"&&s.dependencies.push(s.data.application.basemap.itemId);let j=Jt(s);y(j)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":x=zn(s,t,o,r);break;case"Web Mapping Application":l&&(x=Tn(s,t,o,r));break;case"Workforce Project":x=On(s,t,o,r);break}x.then(n,y=>i(S(y)))})})}function Bs(e){let t=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(r=>{if(r.type==="FeatureServiceSource"||r.type==="FeatureServiceSink"){let n=p(r,"parameters.layer.value.itemId");n&&t.push(n)}}),t}var O={};$(O,{convertItemToTemplate:()=>zs,createItemFromTemplate:()=>js,postProcess:()=>Gs,postProcessFieldReferences:()=>Ds});function zs(e,t,o,r){return X(e,t,o,r)}function js(e,t,o,r,n){return n?Q(e,t,o,r,n):Q(e,t,o,r)}function Ds(e,t,o){switch(o){case"Web Mapping Application":kn(e,t);break;case"Dashboard":bn(e,t);break;case"Web Map":jn(e,t);break}return e}async function Gs(e,t,o,r,n,i,s){if(t==="Web Map"&&r.resources.some(a=>a.indexOf(me)>-1)){let a=sn(`${i.portalBaseUrl}/sharing/rest`,r.itemId,me),m={httpMethod:"GET",authentication:s,params:{f:"json"},headers:{Accept:"application/json",Authorization:`Bearer ${s.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${s.token}`}};await W(a,m).then(async c=>{let d=JSON.stringify(c),l=w(d,i);if(d!==l){let h=JSON.parse(l),g={id:e,resource:Ie(h,me),name:me,authentication:s,params:{}};await Eo(g)}})}return Z(e,i,s)}function Ks(e,t,o,r){return O.convertItemToTemplate(e,t,o,r)}function pt(e){return!!p(e,"properties.services")}function Kn(e,t="https://survey123.arcgis.com"){let o=`${t}/api/survey/create`,r={credentials:"same-origin",method:"POST",body:wo({f:"json",...e},!0)};return fetch(o,r).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Hn=function(t){let o=M(t),r=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(s,a)=>(s&&s[a]&&(s[a]=encodeURIComponent(s[a])),s);r.forEach(([s,a])=>n(o[s],a));let i=s=>n(s,"description");return o.questions=(o.questions||[]).map(s=>s.questions?{...s,questions:s.questions.map(i)}:i(s)),o};function qn(e,t,o){let{item:{title:r,description:n,tags:i,typeKeywords:s},properties:{form:a}}=e,{user:{username:m},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:l}}}=t,{token:h}=o.toCredential();return Zo(d,l,o).then(g=>{let P="Survey-",x=Mo(`${P}${r}`,t,"user.folders").replace(P,"");if(a.questions){let T=E=>(E.maps&&(E.maps=E.maps.map(j=>({...j,itemId:g.id}))),E);a.questions=a.questions.map(E=>E.questions?{...E,questions:E.questions.map(T)}:T(E))}let y=Hn(a);return{description:n,form:y,portalUrl:c,tags:i,title:x,token:h,typeKeywords:s,username:m}})}function Jn(e,t,o,r){let n=w(e,t),{survey123Url:i}=t;return qn(n,t,o).then(s=>Kn(s,i)).then(s=>{let{formId:a,featureServiceId:m}=s,c=Promise.resolve(null);return e.item.thumbnail&&(c=Pe({id:a},null,o,e.item.thumbnail)),c.then(()=>C(a,o)).then(d=>(t[n.itemId]={itemId:a},t[n.properties.info.serviceInfo.itemId]={itemId:m},r(n.itemId,u.Finished,n.estimatedDeploymentCostFactor,a),{item:{...e,item:d,itemId:a},id:a,type:"Form",postProcess:!0}))}).catch(s=>{throw r(n.itemId,u.Failed,0),s})}function Hs(e,t,o,r){return pt(e)?Jn(e,t,o,r):O.createItemFromTemplate(e,t,o,r)}async function Qt(e,t){let o=await Ut(e),r=new Date;return r=new Date(r.valueOf()-864e5-r.getTimezoneOffset()*1e3*60),o.forEach(n=>{if(typeof n.content=="string"){let i=ei(n,t);e.file(n.file,i,{date:r})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:r})}),Promise.resolve(e)}async function Yt(e,t){return(await Ut(e)).forEach(r=>{if(r.file.endsWith(".info")||r.file.endsWith(".itemInfo")||r.file.endsWith(".json")||r.file.endsWith(".webform")||r.file.endsWith(".xml")){let n=r.content,i=/\b([0-9A-Fa-f]){32}_type/g;n=Qn(n,t,i),n=Zn(n,t,i),n=Yn(n,t),n=Xn(n,t),e.file(r.file,n)}}),Promise.resolve(e)}function Zn(e,t,o){let r=e;return Object.keys(t).filter(i=>i.match(o)&&t[i].type==="Feature Service").forEach(i=>{let s=t[i].url,a=t[s];a&&(r=r.replace(new RegExp(s,"g"),a))}),r}function Qn(e,t,o){let r=e;return Object.keys(t).filter(i=>i.match(o)&&t[i].type!=="Feature Service").map(i=>i.replace("_type","")).forEach(i=>{r=r.replace(new RegExp(i,"g"),`{{${i}.itemId}}`)}),r}function Yn(e,t){let o=e;return t.portalBaseUrl&&(o=o.replace(new RegExp(t.portalBaseUrl,"g"),"{{portalBaseUrl}}")),o}function Xn(e,t){let o=e;return t.workflowBaseUrl&&(o=o.replace(new RegExp(t.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),o}function ei(e,t){let o=Oo(),r=e.content;return r=w(e.content,t),he(r.match(o)??[]).forEach(i=>{let s=t[i];typeof s?.itemId=="string"&&(r=r.replace(new RegExp(i,"g"),`${s.itemId}`))}),r}function ti(e,t,o,r,n,i,s){let a=r.properties.info.serviceInfo.itemId,{itemId:m}=i[a],c=w(r,i);return C(m,s).then(d=>{let l=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:m,extent:c.item.extent,typeKeywords:[`source-${a}`].concat(d.typeKeywords)}],h=P=>z(P,s),g=l.map(h);return Promise.all(g).then(()=>{let P=[e,m],x=T=>K({itemId:T,folderId:i.folderId,authentication:s}),y=P.map(x);return Promise.all(y)}).then(()=>vr(d.ownerFolder,s)).then(()=>{let P=D(d);return n.push(P),r.dependencies.push(d.id),!0})})}async function oi(e,t,o,r,n,i,s){let a=await ge(e,"Form",s);if(a){let m=await At(a),c=await Qt(m,i);rt(c,e,s)}else return await ko(5e3),oi(e,t,o,r,n,i,s);return pt(r)?ti(e,t,o,r,n,i,s):Z(e,i,s)}async function Js(e,t){for(let o of e)if(o.type==="Form"){let r=o.data;if(o.data=null,r){let n=await At(r);n=await Yt(n,t),o.item.name=ri(o.item.name,r.name,`${o.itemId}.zip`);let i=await Ar(n,o.item.name),s=nt(o.itemId,o.item.name,1,ke.data),a={itemId:o.itemId,file:i,folder:s.folder,filename:o.item.name};o.dataFile=a,o.resources.push(s.folder+"/"+s.filename)}}return Promise.resolve(e)}function ri(e,t,o){let r=e||t;return r&&r!=="undefined"?r:o}var eo={};$(eo,{_initializeNewGroup:()=>ni,convertItemToTemplate:()=>Zs,createItemFromTemplate:()=>Qs,postProcess:()=>Ys});function Zs(e,t,o){return new Promise(r=>{let n=Lo(e);n.item.id=_(n.item.id,n.item.id,".itemId"),qo(e.id,o).then(i=>{n.type="Group",Ho(e.id,o).then(s=>{s.id=n.item.id,n.item={...s,type:"Group"},n.dependencies=i.concat(Ao(s.tags)),r(n)},()=>r(n))},()=>r(n))})}function Qs(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),i.item.thumbnail=e.item.thumbnail;let s=ni(i.item);Pr(s.title,s,t,o,Ot(i)?t.locationTracking.owner:void 0).then(a=>{if(a.success)if(!r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id))r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(i.itemId=a.group.id,t[e.itemId]={itemId:a.group.id},i=w(i,t),t[e.itemId].itemId=a.group.id,!r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,a.group.id))r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(Ot(i)){let m=t.locationTracking.owner;Fr(a.group.id,m,o).then(c=>{c.success?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id)?kr(a.group.id,[o.username],o).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id)?n({item:i,id:a.group.id,type:i.type,postProcess:oe(i)}):(r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))}):(r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))})}else n({item:i,id:a.group.id,type:i.type,postProcess:oe(i)});else r(e.itemId,u.Failed,0),n(I(e.type))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}function Ys(e,t,o,r,n,i,s){let a=Promise.resolve({success:!0});return o.some(m=>{if(m.id===e){let c=m.item.item;return oe(c)&&(c=w(c,i),a=Or(c,s)),!0}}),a}function ni(e){let t={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(r=>{e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Ce={};$(Ce,{convertItemToTemplate:()=>Xs,createItemFromTemplate:()=>ea,isAPage:()=>oa,postProcess:()=>ta});function ii(e,t,o,r){return e=fe(e,o,{}),Dr(e,{...r,allowList:[]}).then(()=>!0)}function lt(e){let t=H(e);return(e.dependencies||[]).forEach(r=>{let n=new RegExp(r,"g"),i=`{{${r}.itemId}}`;t.item=le(t.item,n,i),t.data=le(t.data,n,i),e.properties&&(t.properties=le(t.properties,n,i))}),t}function ut(e,t,o){let r=L(K,{success:!0}),n=[r({itemId:e.item.id,folderId:t,authentication:o})];return V(e,"item.properties.parentInitiativeId")&&n.push(r({itemId:e.item.properties.parentInitiativeId,folderId:t,authentication:o})),Promise.all(n)}function Xs(e,t,o=null){let r=0,n=0;return Promise.all([Ee(e.id,{authentication:t}),ne(t)]).then(([i,s])=>(r=i.item.created,n=i.item.modified,Kr(i,s))).then(i=>(i.item.created=r,i.item.modified=n,i.item.typeKeywords=Ve(i.item.typeKeywords,"doNotDelete"),i.groups=[],i.estimatedDeploymentCostFactor=2,i.resources=[],V(i,"properties")||(i.properties={}),i=lt(i),i))}function ea(e,t,o,r){if(!r(e.itemId,u.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,t.solutionItemExtent){let c=t.solutionItemExtent.split(",");t.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let i={},s,a,m=e.item.thumbnail;return ne(o,t).then(c=>(a=c,Hr(e,t,i,a))).then(c=>{let d=c,l={assets:d.assets||[]};return Gr(d,l,a)}).then(c=>(s=c,ut(c,t.folderId,o))).then(()=>{let c={item:{id:s.item.id},params:{thumbnail:m},authentication:o};return ee(c)}).then(()=>{if(t[e.itemId]={itemId:s.item.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,s.item.id)){let d={item:{...e,...te(s)},id:s.item.id,type:e.type,postProcess:!0};return d.item.itemId=s.item.id,d}else return L(jr,{success:!0})(s,a).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw r(e.itemId,u.Failed,0),c})}function ta(e,t,o,r,n,i,s){let a;return ne(s).then(m=>(a=m,Ee(e,{authentication:s}))).then(m=>ii(m,o,i,a))}function oa(e){let t=!1;return(e==="Hub Page"||e==="Site Page")&&(t=!0),t}var Ae={};$(Ae,{convertItemToTemplate:()=>ra,createItemFromTemplate:()=>na,isASite:()=>sa,postProcess:()=>ia});function si(e,t,o){let r=t.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(r.map(n=>Ee(n,o))).then(n=>tn(e,n,o))}function ai(e,t,o,r){let n=t.filter(m=>m.id!==e.item.id),i=n.map(m=>({item:{id:m.id,type:m.type}})),s=[];s=s.concat(en(e,i,r)),s=s.concat(si(e,n,r));let a=n.map(m=>m.id);return e.item.properties.children=a,e=Qr(e,o,{}),s.push(qr(e,{...r,allowList:void 0})),Promise.all(s).then(()=>!0)}function ra(e,t,o=null){let r=0,n=0,i,s,a;return ne(t).then(m=>(a=m,bt(e.id,a))).then(m=>(r=m.item.created,n=m.item.modified,i=m.item.title,s=m.data.values.title,Xr(m,a))).then(m=>(m.item.created=r,m.item.modified=n,m.item.title=i,m.item.typeKeywords=Ve(m.item.typeKeywords,"doNotDelete"),m.data.values.title=s,m.groups=[],m.estimatedDeploymentCostFactor=2,m.resources=[],p(m,"properties")||(m.properties={}),m.dependencies=he(m.dependencies),m=lt(m),m))}function na(e,t,o,r){if(!r(e.itemId,u.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,t.solution||(t.solution={}),t.solution.title=t.title;let i={},s,a,m=e.item.thumbnail;return ne(o,t).then(c=>(a=c,Yr(e,t,i,a))).then(c=>{let d={assets:c.assets||[]};return Zr(c,d,a)}).then(c=>(s=c,ut(c,t.folderId,o))).then(()=>{let c={item:{id:s.item.id},params:{thumbnail:m},authentication:o};return ee(c)}).then(()=>{if(t[e.itemId]={itemId:s.item.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,s.item.id)){let d={item:{...e,...te(s)},id:s.item.id,type:e.type,postProcess:!0};return d.item.itemId=s.item.id,d}else return L(Jr,{success:!0})(s,a).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw r(e.itemId,u.Failed,0),c})}function ia(e,t,o,r,n,i,s){let a;return ne(s,i).then(m=>(a=m,bt(e,a))).then(m=>ai(m,o,i,a)).then(()=>Promise.resolve(!0))}function sa(e){let t=!1;return(e==="Hub Site Application"||e==="Site Application")&&(t=!0),t}var ht={};$(ht,{convertItemToTemplate:()=>ca,createItemFromTemplate:()=>da,isAStoryMap:()=>pa});function mi(e={}){let t=0;return Object.keys(e).reduce((o,r)=>(V(e,`${r}.type`)==="webmap"&&r!==`webmap${t}`&&(o.push({original:r,updated:`webmap${t}`}),t++),o),[])}function ci(e){let t=V(e,"data.resources")||{};return Object.keys(t).reduce((o,r)=>(V(t,`${r}.type`)==="webmap"&&o.push(V(t,`${r}.data.itemId`)),o),[])}function pi(e){let t=Qe(e.item.id,e.item.type);t.key=`${je(e.item.title)}_${Be("i")}`;let o=H(e);t.data=o.data;let r=o.item.created,n=o.item.modified;return t.item=Ge(o.item),t.item.created=r,t.item.modified=n,t.item.url="{{storyMapTemplateUrl}}",mi(t.data.resources).forEach(a=>{t.data.resources[a.updated]=H(t.data.resources[a.original]),delete t.data.resources[a.original],t.data.nodes=le(t.data.nodes,a.original,a.updated)}),t.item.typeKeywords.indexOf(di)!==-1&&(t.item.typeKeywords=[aa].concat(t.item.typeKeywords.filter(a=>a!==di))),t.properties={},t.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(t.properties,ma),t.dependencies=ci(e),Promise.resolve(t)}var di="smstatusunpublishedchanges",aa="smstatuspublished",ma={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ import{a as In}from"./S37TPZAO.js";import{b as gn,c as yn}from"./TLY6ZEKN.js";import a from"./PYPVVSIX.js";import{b as Po}from"./2B4SGB3I.js";import{b as yo}from"./I2NTSKBD.js";import{$ as Qe,$a as gr,$b as Mt,A as Oo,Aa as Zo,Ab as Ar,B as Ro,Ba as Qo,Bb as Ur,C as Ie,Ca as Yo,Cb as Mr,D as M,Da as kt,E as Co,Ea as Ot,Eb as Nr,F as Je,Fa as Xo,G as _e,Ga as er,Gb as $r,H as S,Ha as ye,Hb as Wr,I as Et,Ia as Rt,Ib as Lr,J as Ao,Ja as tr,Jb as Vr,K as p,Ka as or,Kb as ne,L as Uo,La as rr,Lb as Br,Ma as nr,Mb as zr,N as Te,Na as ir,Nb as jr,O as b,Oa as sr,Ob as Dr,P as ve,Pa as ar,Pb as Gr,Q as Mo,Qa as mr,Qb as Kr,R as _t,Ra as cr,Rb as Hr,S as Tt,Sa as dr,Sb as qr,T as Ze,Ta as pr,Tb as Jr,U as q,Ua as lr,Ub as Zr,V as No,Va as ur,Vb as Qr,W as $o,Wa as fr,Wb as Yr,X as Wo,Xa as Ct,Xb as Xr,Y as B,Ya as tt,Yb as en,Z as Lo,Za as hr,Zb as tn,_ as D,_a as Ir,_b as on,a as Le,aa as Vo,ab as re,ac as rt,ba as vt,bb as yr,bc as Nt,c as W,ca as oe,cb as Pr,cc as ke,da as w,db as wr,dc as nt,e as ee,ea as _,eb as Sr,ec as rn,f as Eo,fa as Y,fb as xr,fc as nn,g as me,ga as Ye,gb as br,gc as sn,h as u,ha as Bo,hb as Er,hc as an,i as xt,ia as zo,ib as _r,ic as mn,j as le,ja as Ft,jb as Tr,jc as cn,k as je,ka as jo,kb as vr,kc as dn,l as fe,lb as Fe,lc as Oe,m as De,ma as Do,mb as F,mc as it,n as Ge,na as Go,nb as ot,nc as st,o as bt,oa as Ko,oc as pn,p as To,pa as Ho,pc as at,qa as qo,qb as Fr,qc as ln,r as Ke,ra as C,rb as kr,s as vo,sa as ge,sb as z,t as He,ta as J,tb as Or,u as qe,ub as Pe,v as te,va as Xe,vb as Z,w as Fo,wa as et,wb as Rr,x as he,xa as Jo,xb as At,y as ko,yb as Cr,z as I,zb as Ut}from"./ACTJS4TX.js";import{a as go}from"./XF5N3NI5.js";import{a as ue,g as Ee}from"./IHG7KTNC.js";import{a as L}from"./ZCU2WWVN.js";import{a as H,b as Ve,c as Be,d as ze}from"./KOIDWEP3.js";import{e as K,f as xo,j as Ne,l as $e,o as bo,s as We}from"./AYSQIO6L.js";import{b as wo,h as So}from"./YQHYMLC7.js";import{a as _o}from"./5O53T3SW.js";import{a as V}from"./AJZDBHB6.js";import{b as Io}from"./2I5LGZNX.js";import{E as Me,F as be,G as fo,K as ho,h as uo,i as G,q as pe}from"./FFF5HUPM.js";import{c as $}from"./EXBEKVP5.js";export default $arcgis.t(([{g:un,h:fn,i:hn}])=>{function we(e,t="application/octet-stream"){if(typeof Blob<"u"){let o=[];for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);let r=new Uint8Array(o);return new Blob([r],{type:t})}else throw new Error("stringToBlob is not currently supported on Node")}function Pn(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var mt={};$(mt,{_mostRecentlyEditedLayer:()=>$t,convertItemToTemplate:()=>ss,createItemFromTemplate:()=>as,postProcess:()=>ms});function ss(e,t,o,r){return new Promise((n,i)=>{let s=D(e);Tr(e.groupDesignations)?rr(s,o).then(m=>n(m),m=>i(S(m))):(s.estimatedDeploymentCostFactor=10,J(s.item.id,o).then(m=>{s.data=m,br(s,o).then(c=>{c.item.modified=Math.max(c.item.modified,$t(s.properties.layers),$t(s.properties.tables)),wr(c,o).then(d=>{c.dependencies=d.map(l=>l.id),n(Xo(c,d,!1,r))},d=>i(S(d)))},c=>i(S(c)))}))})}function as(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),delete i.item.thumbnail,Je(i,"properties.service.size");let s=er(i.data);gr(i,o,t).then(a=>{a.success?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.serviceItemId)?(i=Rt(i,t,a),sr(i,t,s,o).then(()=>{i=Rt(i,t,a),Pe({...i.item,url:void 0},i.data,o,e.item.thumbnail,void 0,t).then(()=>{r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,a.serviceItemId)?C(i.itemId,o).then(m=>{i.item=m,p(i,"item.url")&&!i.item.url.endsWith("/")&&(i.item.url+="/"),n({item:i,id:a.serviceItemId,type:i.type,postProcess:oe({item:i.item,data:i.data})||Ct(i)})},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(r(e.itemId,u.Cancelled,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{r(e.itemId,u.Failed,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(r(e.itemId,u.Cancelled,0),F(a.serviceItemId,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}function ms(e,t,o,r,n,i,s){return new Promise((a,m)=>{Z(e,i,s).then(c=>{Ct(r)?(r=w(r,i),tt(r,s,r.item.url,i).then(a,m)):a(c)},m)})}function $t(e){let t=0;return e.forEach(o=>{t=o.editingInfo?.lastEditDate?Math.max(t,o.editingInfo.lastEditDate):t}),t}var f={};$(f,{convertItemToTemplate:()=>cs,createItemFromTemplate:()=>ds});function cs(e,t,o){return new Promise(r=>{let n=D(e);n.item.id=_(n.item.id,n.item.id,".itemId");let i=new Promise(a=>{ge(n.itemId,n.item.name,o).then(m=>{!m||m.size===0?a(null):a(m)})}),s=Promise.resolve({});Promise.all([i,s]).then(a=>{let[m]=a;if(m){let c=rn(m,n.item.name);n.properties[c.filename]=c.mimeType;let d=nt(n.itemId,c.blob.name,1,c.blob.name===c.filename?ke.data:ke.fakezip),l={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=l,n.resources.push(d.folder+"/"+d.filename),r(n)}else r(n)})})}function ds(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),e.item.thumbnail&&(i.item.thumbnail=e.item.thumbnail),re(i.item,i.data,o,t.folderId).then(s=>{r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,s.id)?(i.itemId=s.id,t[e.itemId]={itemId:s.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,s.id),n({item:i,id:s.id,type:i.type,postProcess:!1})):(r(e.itemId,u.Cancelled,0),F(s.id,o).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}var Xt={};$(Xt,{_getFormDataFilename:()=>ri,_replaceFeatureServiceURLs:()=>Zn,_replaceItemIds:()=>Qn,_replacePortalBaseUrls:()=>Yn,_replaceWorkflowManagerBaseUrls:()=>Xn,_updateZipObjectTextContent:()=>ei,convertItemToTemplate:()=>Ks,createItemFromTemplate:()=>Hs,postProcess:()=>oi,postProcessFormItems:()=>Js,swizzleFormObject:()=>Qt,templatizeFormData:()=>Yt});function xn(e,t){return ps(e,t)}function ps(e,t){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(r=>{let n=p(e,r);Array.isArray(n)&&n.forEach(i=>{i.type==="mapWidget"&&(e.dependencies.indexOf(i.itemId)<0&&e.dependencies.push(i.itemId),i.itemId=_(i.itemId,i.itemId,".itemId")),Array.isArray(i.datasets)&&ls(i,e,t)})}),e}function ls(e,t,o){e.datasets.forEach(r=>{if(p(r,"dataSource.type")!=="arcadeDataSource"){let i=p(r,"dataSource.itemId");if(i){t.dependencies.indexOf(i)<0&&t.dependencies.push(i);let s=p(r,"dataSource.layerId");ye(s?.toString(),i,"",o),r.dataSource.itemId=_(i,i,".itemId")}}})}function bn(e,t){let o=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return o.forEach(r=>{let n=p(e,r);us(n,t)}),o.forEach(r=>{fs(e,r,t)}),e}function us(e,t){e&&Array.isArray(e)&&e.forEach(o=>{Array.isArray(o.datasets)&&o.datasets.forEach(r=>{let n=_t(p(r,"dataSource.itemId"));if(n){let i=Tt(p(r,"dataSource.layerId"));t.some(s=>s.itemId===n&&s.layerId===i?(Sn(s,o.id),!0):!1)}else{let i=p(r,"dataSource.id");if(i){let s=i.split("#")[1];t.some(a=>a.ids.indexOf(s)>-1?(Sn(a,o.id),!0):!1)}}})})}function fs(e,t,o){let r=p(e,t);r&&b(e,t,hs(r,o))}function hs(e,t){return Array.isArray(e)?e.map(o=>{let r=o;return Array.isArray(r.events)&&(r.events=r.events.map(n=>{let i=n;return Array.isArray(i.actions)&&(i.actions=i.actions.map(s=>{let a=s;if(a.fieldMap&&a.targetId&&a.targetId.indexOf("#")>-1){let m=wn(a,t);if(m){let c=p(m,"fields"),d=p(m,"basePath");Array.isArray(c)&&d&&(a.fieldMap=a.fieldMap.map(l=>{let h=l;return h.targetName=Y(h.targetName,c,d),h}))}}return a})),i})),Array.isArray(r.datasets)&&(r.datasets=r.datasets.map(n=>{let i=n;if(i.type==="serviceDataset"){let s=wn(n,t);if(s){let a=p(s,"fields"),m=p(s,"basePath");Array.isArray(a)&&m&&(r=Y(r,a,m),i=Y(i,a,m))}}return i})),r}):e}function wn(e,t){let o,r=p(e,"dataSource.id")||p(e,"targetId");if(r){let n=r.split("#")[1];if(!t.some(i=>(o=i.ids.indexOf(n)>-1?i:o,i.ids.indexOf(n)>-1))){let i=r.split("#")[0];t.some(s=>{let m=(s.references||[]).indexOf(i)>-1;return o=m?s:o,m})}}else{let n=_t(p(e,"dataSource.itemId")),i=Tt(p(e,"dataSource.layerId"));n&&t.some(s=>{let a=n===s.itemId&&i===s.layerId;return o=a?s:o,a})}return o}function Sn(e,t){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(t)<0&&e.references.push(t)}var Se={};$(Se,{convertItemToTemplate:()=>_s,convertNotebookToTemplate:()=>Ht,createItemFromTemplate:()=>Ts,deleteProps:()=>Un,fineTuneCreatedItem:()=>Kt,postProcess:()=>Fs,postProcessNotebookTemplates:()=>vs});function Tn(e,t,o,r){return new Promise((n,i)=>{let s="";if(e.item.url){let a=e.item.url,m=a.indexOf("//");e.item.url=B(q)+a.substring(a.indexOf("/",m+2),a.lastIndexOf("=")+1)+e.item.id,s=a.replace(a.substring(a.indexOf("/",m+2)),"")}e.dependencies=ys(e),b(e,"data.folderId","{{folderId}}"),Ss(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Fn(e,"data.appItemId",e.itemId),Dt(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],B(q)),b(e,"data.geometryService",B(No)),Is(e,o,s,r).then(()=>{_n(e,o,s,"data.widgetPool.widgets").then(a=>{_n(a,o,s,"data.widgetOnScreen.widgets",!0).then(m=>{gs(m,o,s,"data.values").then(c=>{n(c)},c=>i(S(c)))},m=>i(S(m)))},a=>i(S(a)))},a=>i(S(a)))})}function Is(e,t,o,r){return new Promise((n,i)=>{let s=p(e,"data.dataSource.dataSources");if(s&&Object.keys(s).length>0){let a=new Array;Object.keys(s).forEach(m=>{let c=s[m];b(c,"portalUrl",B(q));let d=p(c,"itemId");if(p(c,"url")){if(d){let h=c.url.substr(c.url.lastIndexOf("/")+1);ye(h.toString(),d,c.url,r),c.itemId=_(d,d,".layer"+h+".itemId")}let l=jt(c.url,o,[],[],t);a.push(new Promise((h,g)=>{zt(l.serviceRequests,l.requestUrls,l.testString).then(P=>{c.url=P,h()},P=>g(S(P)))}))}else d&&(c.itemId=_(d,d,".itemId"))}),Promise.all(a).then(()=>n(e),m=>i(S(m)))}else n(e)})}function _n(e,t,o,r,n=!1){return new Promise((i,s)=>{let a=p(e,r)||[],m=[],c=[];if(a.forEach(d=>{!n&&p(d,"icon")&&Dt(d,["icon"],B(q));let l=d.config;if(l){let h=JSON.stringify(l),g=jt(h,o,c,m,t);d.config=JSON.parse(g.testString),m=g.serviceRequests,c=g.requestUrls}}),m.length>0){let d=JSON.stringify(a);zt(m,c,d).then(l=>{b(e,r,JSON.parse(l)),i(e)},l=>s(S(l)))}else i(e)})}function gs(e,t,o,r){return new Promise((n,i)=>{let s=p(e,r),a=[],m=[];if(s){p(s,"icon")&&Dt(s,["icon"],B(q));let c=JSON.stringify(s),d=jt(c,o,m,a,t);s=JSON.parse(d.testString),a=d.serviceRequests,m=d.requestUrls}if(a.length>0){let c=JSON.stringify(s);zt(a,m,c).then(d=>{b(e,r,JSON.parse(d)),n(e)},d=>i(S(d)))}else n(e)})}function zt(e,t,o){return new Promise((r,n)=>{if(e&&e.length>0){let i=0;Promise.all(e).then(s=>{s.forEach(a=>{if(p(a,"serviceItemId")){let m="{{"+a.serviceItemId+(a.hasOwnProperty("id")?".layer"+a.id:"")+".url}}";o=ct(o,t[i],m,!0)}i++}),r(o)},s=>n(S(s)))}else r(o)})}function jt(e,t,o,r,n){let i={f:"json",authentication:n},s=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return s&&s.length&&s.forEach(a=>{a.indexOf("NAServer")>-1?e=ct(e,a,B(Wo)):a.indexOf("GeocodeServer")>-1?e=ct(e,a,B($o)):t&&a.indexOf(t)>-1?e=ct(e,t,B(q)):a.indexOf("FeatureServer")>-1&&o.indexOf(a)===-1&&(o.push(a),r.push(W(a,i)))}),{testString:e,requestUrls:o,serviceRequests:r}}function ct(e,t,o,r=!1){let n=r&&e.indexOf('"')>-1,i=new RegExp(n?'"'+t+'"':t,"gmi");return e.replace(i,n?'"'+o+'"':o)}function Dt(e,t,o){t.forEach(r=>{let n=p(e,r);if(n){let i=n.substring(n.indexOf("/",n.indexOf("//")+2));b(e,r,i!==n?o+i:o)}})}function vn(e,t,o,r){return new Promise(n=>{if(ve(e,["WAB2D","WAB3D","Web AppBuilder"])){let i={id:t.itemId,url:t.item.url,data:t.data},s=z(i,r),a={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:t.itemId,url:qe(w(B(q),o))+"sharing/rest/content/items/"+t.itemId+"/package"},m=re(a,{},r,o.folderId);Promise.all([s,m]).then(()=>n(null),()=>n(null))}else n(null)})}function ys(e){let t=Ps;return ve(e,["WAB2D","WAB3D","Web AppBuilder"])&&(t=ws),t(e)}function Ps(e){return Uo(e,["data.values.webmap","data.values.group"])}function ws(e){let t=[],o=p(e,"data.map.itemId");o&&t.push(o);let r=p(e,"data.dataSource.dataSources");return r&&Object.keys(r).forEach(n=>{let i=r[n];i.itemId&&t.push(i.itemId)}),t}function Ss(e,t){t.forEach(o=>{let r=p(e,o);Fn(e,o,r)})}function Fn(e,t,o){b(e,t,_(o,o,".itemId"))}function kn(e,t){let o=p(e,"data.dataSource.dataSources");o&&Object.keys(o).length>0&&(Object.keys(o).forEach(i=>{let s=o[i];o[i]=Vt(s,t)}),b(e,"data.dataSource.dataSources",o)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(i=>{let s=p(e,i);s&&b(e,i,xs(s,t))});let n=p(e,"data.values");return n&&b(e,"data.values",Vt(n,t)),e}function Vt(e,t,o=!1){return e=Es(e,t,o),bs(e,t).forEach(n=>{e=Y(e,n.fields,n.basePath,o)}),e}function xs(e,t){let o=["SmartEditor","Screening"];return e.map(r=>{if(r.config){let n=o.indexOf(r.name)>-1;r.config=Vt(r.config,t,n)}return r})}function bs(e,t){let o=JSON.stringify(e);return t.filter(n=>Lt(n,o)<4).sort((n,i)=>Lt(n,o)-Lt(i,o))}function Lt(e,t){let o=e.url,r=e.itemId,n=e.layerId,i;return o&&!isNaN(n)&&(i=new RegExp(o.replace(/[.]/,".layer"+n+"."),"gm")),i&&i.test(t)||e.ids.length>0&&e.ids.some(s=>new RegExp(s,"gm").test(t))?1:o&&new RegExp(o,"gm").test(t)?2:r&&new RegExp(r,"gm").test(t)?3:4}function Es(e,t,o){let r=JSON.stringify(e),n=t.filter(i=>{let s;i.url&&!isNaN(i.layerId)&&(s=new RegExp(i.url.replace(/[.]/,".layer"+i.layerId+"."),"gm"));let a=!1;if(i.ids.length>0&&(a=i.ids.some(m=>new RegExp(m,"gm").test(r))),a||s&&s.test(r))return i});return n.length>0&&n.forEach(i=>{e=Bt(e,i,o),i.ids.length>0&&i.ids.forEach(s=>{e=dt(e,i,s,o)})}),e}function Bt(e,t,o){let r={},n=t.url,i=t.layerId,s;if(n&&!isNaN(i)&&(s=new RegExp(n.replace(/[.]/,".layer"+i+"."),"gm")),Array.isArray(e))r=e.map(a=>Bt(a,t,o));else if(typeof e=="object")for(let a in e)e[a]!=null&&typeof e[a]=="object"?r[a]=Bt(e[a],t,o):(s&&s.test(e[a])&&(e=Y(e,t.fields,t.basePath,o)),r[a]=e[a]);else r=e;return r}function dt(e,t,o,r){let n={},i=new RegExp(o,"gm");if(Array.isArray(e))n=e.map(s=>dt(s,t,o,r));else if(typeof e=="object")for(let s in e)if(e[s]!==null){let a;try{a=JSON.parse(e[s])}catch{a=void 0}a&&typeof a=="object"?n[s]=JSON.stringify(dt(a,t,o,r)):typeof e[s]=="object"?(i.test(s)&&r&&(e[s]=Y(e[s],t.fields,t.basePath,r)),n[s]=dt(e[s],t,o,r)):(i.test(e[s])&&(e=Y(e,t.fields,t.basePath,r)),n[s]=e[s])}else n[s]=e[s];else n=e;return n}function On(e,t,o,r){return fr(e,o,r)}function Rn(e,t,o){return tt(e,t,"",o)}function Q(e,t,o,r,n){return new Promise((i,s)=>{function a(){n&&n.signal.aborted&&s(new Error("Operation was cancelled"))}if(a(),!r(e.itemId,u.Started,0))r(e.itemId,u.Ignored,0),i(I(e.type));else{let m=M(e);m=w(m,t);let c;e.type==="Web Mapping Application"&&e.data?m=JSON.parse(w(JSON.stringify(m),t)):e.type==="QuickCapture Project"&&e.data&&(c=JSON.stringify(m.data.application),delete m.data),e.item.thumbnail&&(m.item.thumbnail=e.item.thumbnail),re(m.item,m.data,o,t.folderId).then(d=>{if(a(),!r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,d.id))r(e.itemId,u.Cancelled,0),F(d.id,o).then(()=>i(I(e.type)),()=>i(I(e.type)));else{t[e.itemId]={itemId:d.id,itemUrl:t.portalBaseUrl+"/sharing/rest/content/items/"+d.id},m.itemId=d.id,m.type==="Web Mapping Application"&&e.data&&b(m,"data.appItemId",d.id);let l=oe(m.data),h=m.item.url;m=w(m,t),a();let g=Promise.resolve([]);if(m.relatedItems){let x=w(Ye(m.relatedItems),t);g=hr(m.itemId,x,o)}a();let P;if(e.type==="Web Mapping Application"&&e.data&&ve(e,["WAB2D","WAB3D","Web AppBuilder"]))P=vn(e,m,t,o);else if(e.type==="Workforce Project")P=Rn(m,o,t);else if(e.type==="QuickCapture Project"){if(c){let x=Ie(w(JSON.parse(c),t),"qc.project.json");P=dn(x,m.itemId,"",x.name,o)}}else e.type==="Notebook"?P=Kt(e,m,t,o):h!==m.item.url?(a(),P=new Promise((x,y)=>{Rr(d.id,m.item.url,o).then(()=>x(),y)})):P=Promise.resolve(null);a(),Promise.all([g,P]).then(()=>{r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,d.id)?i({item:m,id:d.id,type:m.type,postProcess:l}):(r(e.itemId,u.Cancelled,0),F(d.id,o).then(()=>i(I(e.type)),()=>i(I(e.type))))},()=>{r(e.itemId,u.Failed,0),i(I(e.type))})}},()=>{r(e.itemId,u.Failed,0),i(I(e.type))})}})}function _s(e,t,o,r){return X(e,t,o,r)}function Ts(e,t,o,r){return Q(e,t,o,r)}function Ht(e){return new Promise(t=>{Un(e.data),t(e)})}function vs(e,t){if(e.some(r=>r.type==="Notebook")){let r=Object.keys(t).filter(i=>i.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((i,s)=>(i=[...new Set([...i,...s.dependencies,s.itemId])],i),[]);e=e.map(i=>{if(i.type==="Notebook"){let s=i.data&&JSON.stringify(i.data);return n.forEach(a=>{new RegExp(a,"gim").test(s)&&(s=s.replace(a,"{{"+a+".itemId}}"),i.dependencies.indexOf(a)<0&&i.dependencies.push(a))}),r.forEach(a=>{let m=new RegExp(a,"gim");if(m.test(s)){let c=t[a];s=s.replace(m,c);let d=/[0-9A-F]{32}/gim,l=c.match(d)[0];i.dependencies.indexOf(l)<0&&i.dependencies.push(l)}}),i.data=JSON.parse(s),i}})}return e}function Un(e){if(e){let t=["metadata.interpreter","metadata.papermill"];_e(e,t),(e.cells||[]).forEach(o=>{_e(o,t)})}}function Kt(e,t,o,r){return new Promise((n,i)=>{let s={id:t.itemId,url:t.item.url,data:Ie(t.data,t.itemId+".ipynb")};z(s,r).then(()=>n(null),i)})}function Fs(e,t,o,r,n,i,s){return Z(e,i,s)}function Nn(e,t,o){return new Promise((r,n)=>{ks(e,o).then(i=>{e.dependencies=i.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=Mn(e.data.properties.ServiceURL,i.urlHash),e.data.properties.OverviewURL=Mn(e.data.properties.OverviewURL,i.urlHash)),r(e)},i=>n(S(i)))})}function ks(e,t){return new Promise((o,r)=>{let n=[];if(e.data?.properties){let i=[];e.data.properties.ServiceURL&&i.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&i.push(e.data.properties.OverviewURL),Os(i,n,t).then(s=>{o(s)},s=>r(S(s)))}else o({dependencies:n,urlHash:{}})})}function Os(e,t,o){return new Promise((r,n)=>{let i={},s={f:"json",authentication:o},a=[],m={},c=e.filter(d=>{if(d){let l=/.+FeatureServer/g.exec(d),h=Array.isArray(l)&&l.length>0?l[0]:void 0;return h?(Object.keys(m).indexOf(h)<0&&(m[h]=W(d,s)),a.push(m[h]),!0):!1}else return!1});a.length>0?Promise.all(a).then(d=>{d.forEach((l,h)=>{if(p(l,"serviceItemId")){let g=l.serviceItemId;t.indexOf(g)<0&&t.push(g),i[c[h]]=g}}),r({dependencies:t,urlHash:i})},d=>n(S(d))):r({dependencies:t,urlHash:i})})}function Mn(e,t){let o=e;if(e){let r=t[e];if(r){let n=e.substr(e.lastIndexOf("/")+1);o=_(r,r,".layer"+n+".url")}o=Ye(o.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return o}var Re={};$(Re,{_templatizeAdminEmail:()=>Ln,_templatizeApplication:()=>Wn,_templatizeId:()=>qt,_templatizeUrl:()=>Bn,_updateDependencies:()=>Vn,convertItemToTemplate:()=>Cs,convertQuickCaptureToTemplate:()=>Jt,createItemFromTemplate:()=>As});function Cs(e,t,o,r){return X(e,t,o,r)}function Jt(e){return b(e,"data.application",Wn(e.data.application,e)),e}function Wn(e,t){qt(e,"itemId"),Ln(e);let o=e?.dataSources;return o&&Array.isArray(o)&&o.forEach(r=>{let n=r.featureServiceItemId;n&&(Vn(n,t),Bn(r,"featureServiceItemId","url"),qt(r,"featureServiceItemId"))}),e}function Ln(e){p(e,"preferences.adminEmail")&&b(e,"preferences.adminEmail","{{user.email}}")}function Vn(e,t){t.dependencies.indexOf(e)===-1&&t.dependencies.push(e)}function Bn(e,t,o){let r=p(e,t),n=p(e,o);if(n){let i=n.substr(n.lastIndexOf("/")+1);b(e,o,_(r,r,".layer"+i+".url"))}}function qt(e,t){let o=p(e,t);o&&b(e,t,_(o,o,".itemId"))}function As(e,t,o,r){return Q(e,t,o,r)}var Us="home/webmap/viewer.html?webmap=";function zn(e,t,o,r){return new Promise((n,i)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?qe(B(q))+Us+e.item.id:e.item.url),Ms(e,o).then(s=>{e.dependencies=s.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Zt(e.data.baseMap.baseMapLayers,s.urlHash,r),e.data.operationalLayers&&Zt(e.data.operationalLayers,s.urlHash,r),Zt(e.data.tables,s.urlHash,r),Ns(e.data)),n(e)},s=>i(S(s)))})}function Ms(e,t){return new Promise((o,r)=>{let n=[];if(e.data){let i=e.data.baseMap?.baseMapLayers||[],s=e.data.operationalLayers||[],a=e.data.tables||[],m=i.concat(s).concat(a);$s(m,n,t).then(c=>{o(c)},c=>r(S(c)))}else o({dependencies:n,urlHash:{}})})}function Ns(e){Je(e,"initialState")}function $s(e,t,o){return new Promise((r,n)=>{let i={},s={f:"json",authentication:o},a=[],m={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return a.push(C(d.itemId,o)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let l=/.+FeatureServer/g.exec(d.url),h=Array.isArray(l)&&l.length>0?l[0]:void 0;return h?(Object.keys(m).indexOf(h)<0&&(m[h]=W(d.url,s)),a.push(m[h]),!0):!1}else return!1});a.length>0?Promise.all(a).then(d=>{d.forEach((l,h)=>{if(c[h].layerType==="VectorTileLayer"){let g=p(l,"typeKeywords");if(g&&g.includes("Vector Tile Style Editor")){t.indexOf(l.id)<0&&t.push(l.id),c[h].templatizeId=!0;let P=c[h].styleUrl.indexOf(l.id)+l.id.length;c[h].styleUrl=_(c[h].styleUrl.replace(c[h].styleUrl.substring(0,P),l.id),l.id,".itemUrl")}}else if(p(l,"serviceItemId")){let g=l.serviceItemId;t.indexOf(g)<0&&t.push(g),i[c[h].url]=g}}),r({dependencies:t,urlHash:i})},d=>n(S(d))):r({dependencies:t,urlHash:i})})}function Zt(e=[],t,o){e.forEach(r=>{if(r.itemId&&r.layerType==="VectorTileLayer")r.templatizeId&&(r.itemId=_(r.itemId,r.itemId,".itemId"),delete r.templatizeId);else if(r.url){let n=r.url.substr(r.url.lastIndexOf("/")+1),i=Object.keys(t).indexOf(r.url)>-1?t[r.url]:void 0;i&&(ye(n,i,r.url,o),r.url=_(i,i,".layer"+n+".url"),r.itemId=_(i,i,".layer"+n+".itemId"))}})}function jn(e,t){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(r=>Ws(e,t,r)),e}function Ws(e,t,o){let r=p(e,o);r&&b(e,o,Ls(r,t))}function Ls(e,t){return e.forEach(o=>{let r=Vs(o,t);if(r){let n=r.fields.map(s=>s.name);cr(o,r,r.basePath,r.itemId,n),pr(o,r.basePath,n),o.layerDefinition&&(ur(o.layerDefinition,r.basePath,n),lr(o.layerDefinition,r.basePath,n));let i=p(o,"field.name");i&&b(o,"field.name",dr(i,o,r.itemId,r.basePath))}}),e}function Vs(e,t){let o;return t.some(r=>r.ids.indexOf(e.id)>-1?(o=r,!0):!1),o}function X(e,t,o,r){return new Promise((n,i)=>{let s=D(e);s.item.id=_(s.item.id,s.item.id,".itemId");let a=Xe(s.itemId,"forward",o),m=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":m=new Promise(d=>{J(s.itemId,o).then(l=>d(l))});break;case"Form":m=ge(s.itemId,s.item.name,o);break;case"QuickCapture Project":c=et(s.itemId,o);break}Promise.all([m,a,c]).then(d=>{let[l,h,g]=d;ln(s,r),s.data=at(l,e.type,r);let P=h;s.dependencies=[],s.relatedItems=[],P.forEach(y=>{y.relationshipType!=="WMA2Code"&&(s.relatedItems.push(y),y.relatedItemIds.forEach(T=>{s.dependencies.indexOf(T)<0&&s.dependencies.push(T)}))}),e.type==="Data Pipeline"&&(s.dependencies=s.dependencies.concat(Bs(l)));let x=Promise.resolve(s);switch(e.type){case"Dashboard":xn(s,r);break;case"Notebook":x=Ht(s);break;case"Oriented Imagery Catalog":x=Nn(s,t,o);break;case"QuickCapture Project":s.resources=g,x=new Promise(async y=>{let T=null,E=-1;g&&(g.some((ce,ie)=>{let se=ce.name==="qc.project.json";return se&&(T=ce,E=ie),se}),E>=0&&g.splice(E,1)),T&&(s.data={application:{...await He(T)},name:"qc.project.json"}),s.data.application?.basemap?.type==="Web Map"&&s.dependencies.push(s.data.application.basemap.itemId);let j=Jt(s);y(j)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":x=zn(s,t,o,r);break;case"Web Mapping Application":l&&(x=Tn(s,t,o,r));break;case"Workforce Project":x=On(s,t,o,r);break}x.then(n,y=>i(S(y)))})})}function Bs(e){let t=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(r=>{if(r.type==="FeatureServiceSource"||r.type==="FeatureServiceSink"){let n=p(r,"parameters.layer.value.itemId");n&&t.push(n)}}),t}var O={};$(O,{convertItemToTemplate:()=>zs,createItemFromTemplate:()=>js,postProcess:()=>Gs,postProcessFieldReferences:()=>Ds});function zs(e,t,o,r){return X(e,t,o,r)}function js(e,t,o,r,n){return n?Q(e,t,o,r,n):Q(e,t,o,r)}function Ds(e,t,o){switch(o){case"Web Mapping Application":kn(e,t);break;case"Dashboard":bn(e,t);break;case"Web Map":jn(e,t);break}return e}async function Gs(e,t,o,r,n,i,s){if(t==="Web Map"&&r.resources.some(a=>a.indexOf(me)>-1)){let a=sn(`${i.portalBaseUrl}/sharing/rest`,r.itemId,me),m={httpMethod:"GET",authentication:s,params:{f:"json"},headers:{Accept:"application/json",Authorization:`Bearer ${s.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${s.token}`}};await W(a,m).then(async c=>{let d=JSON.stringify(c),l=w(d,i);if(d!==l){let h=JSON.parse(l),g={id:e,resource:Ie(h,me),name:me,authentication:s,params:{}};await Eo(g)}})}return Z(e,i,s)}function Ks(e,t,o,r){return O.convertItemToTemplate(e,t,o,r)}function pt(e){return!!p(e,"properties.services")}function Kn(e,t="https://survey123.arcgis.com"){let o=`${t}/api/survey/create`,r={credentials:"same-origin",method:"POST",body:wo({f:"json",...e},!0)};return fetch(o,r).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Hn=function(t){let o=M(t),r=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(s,a)=>(s&&s[a]&&(s[a]=encodeURIComponent(s[a])),s);r.forEach(([s,a])=>n(o[s],a));let i=s=>n(s,"description");return o.questions=(o.questions||[]).map(s=>s.questions?{...s,questions:s.questions.map(i)}:i(s)),o};function qn(e,t,o){let{item:{title:r,description:n,tags:i,typeKeywords:s},properties:{form:a}}=e,{user:{username:m},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:l}}}=t,{token:h}=o.toCredential();return Zo(d,l,o).then(g=>{let P="Survey-",x=Mo(`${P}${r}`,t,"user.folders").replace(P,"");if(a.questions){let T=E=>(E.maps&&(E.maps=E.maps.map(j=>({...j,itemId:g.id}))),E);a.questions=a.questions.map(E=>E.questions?{...E,questions:E.questions.map(T)}:T(E))}let y=Hn(a);return{description:n,form:y,portalUrl:c,tags:i,title:x,token:h,typeKeywords:s,username:m}})}function Jn(e,t,o,r){let n=w(e,t),{survey123Url:i}=t;return qn(n,t,o).then(s=>Kn(s,i)).then(s=>{let{formId:a,featureServiceId:m}=s,c=Promise.resolve(null);return e.item.thumbnail&&(c=Pe({id:a},null,o,e.item.thumbnail)),c.then(()=>C(a,o)).then(d=>(t[n.itemId]={itemId:a},t[n.properties.info.serviceInfo.itemId]={itemId:m},r(n.itemId,u.Finished,n.estimatedDeploymentCostFactor,a),{item:{...e,item:d,itemId:a},id:a,type:"Form",postProcess:!0}))}).catch(s=>{throw r(n.itemId,u.Failed,0),s})}function Hs(e,t,o,r){return pt(e)?Jn(e,t,o,r):O.createItemFromTemplate(e,t,o,r)}async function Qt(e,t){let o=await Ut(e),r=new Date;return r=new Date(r.valueOf()-864e5-r.getTimezoneOffset()*1e3*60),o.forEach(n=>{if(typeof n.content=="string"){let i=ei(n,t);e.file(n.file,i,{date:r})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:r})}),Promise.resolve(e)}async function Yt(e,t){return(await Ut(e)).forEach(r=>{if(r.file.endsWith(".info")||r.file.endsWith(".itemInfo")||r.file.endsWith(".json")||r.file.endsWith(".webform")||r.file.endsWith(".xml")){let n=r.content,i=/\b([0-9A-Fa-f]){32}_type/g;n=Qn(n,t,i),n=Zn(n,t,i),n=Yn(n,t),n=Xn(n,t),e.file(r.file,n)}}),Promise.resolve(e)}function Zn(e,t,o){let r=e;return Object.keys(t).filter(i=>i.match(o)&&t[i].type==="Feature Service").forEach(i=>{let s=t[i].url,a=t[s];a&&(r=r.replace(new RegExp(s,"g"),a))}),r}function Qn(e,t,o){let r=e;return Object.keys(t).filter(i=>i.match(o)&&t[i].type!=="Feature Service").map(i=>i.replace("_type","")).forEach(i=>{r=r.replace(new RegExp(i,"g"),`{{${i}.itemId}}`)}),r}function Yn(e,t){let o=e;return t.portalBaseUrl&&(o=o.replace(new RegExp(t.portalBaseUrl,"g"),"{{portalBaseUrl}}")),o}function Xn(e,t){let o=e;return t.workflowBaseUrl&&(o=o.replace(new RegExp(t.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),o}function ei(e,t){let o=Oo(),r=e.content;return r=w(e.content,t),he(r.match(o)??[]).forEach(i=>{let s=t[i];typeof s?.itemId=="string"&&(r=r.replace(new RegExp(i,"g"),`${s.itemId}`))}),r}function ti(e,t,o,r,n,i,s){let a=r.properties.info.serviceInfo.itemId,{itemId:m}=i[a],c=w(r,i);return C(m,s).then(d=>{let l=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:m,extent:c.item.extent,typeKeywords:[`source-${a}`].concat(d.typeKeywords)}],h=P=>z(P,s),g=l.map(h);return Promise.all(g).then(()=>{let P=[e,m],x=T=>K({itemId:T,folderId:i.folderId,authentication:s}),y=P.map(x);return Promise.all(y)}).then(()=>vr(d.ownerFolder,s)).then(()=>{let P=D(d);return n.push(P),r.dependencies.push(d.id),!0})})}async function oi(e,t,o,r,n,i,s){let a=await ge(e,"Form",s);if(a){let m=await At(a),c=await Qt(m,i);rt(c,e,s)}else return await ko(5e3),oi(e,t,o,r,n,i,s);return pt(r)?ti(e,t,o,r,n,i,s):Z(e,i,s)}async function Js(e,t){for(let o of e)if(o.type==="Form"){let r=o.data;if(o.data=null,r){let n=await At(r);n=await Yt(n,t),o.item.name=ri(o.item.name,r.name,`${o.itemId}.zip`);let i=await Ar(n,o.item.name),s=nt(o.itemId,o.item.name,1,ke.data),a={itemId:o.itemId,file:i,folder:s.folder,filename:o.item.name};o.dataFile=a,o.resources.push(s.folder+"/"+s.filename)}}return Promise.resolve(e)}function ri(e,t,o){let r=e||t;return r&&r!=="undefined"?r:o}var eo={};$(eo,{_initializeNewGroup:()=>ni,convertItemToTemplate:()=>Zs,createItemFromTemplate:()=>Qs,postProcess:()=>Ys});function Zs(e,t,o){return new Promise(r=>{let n=Lo(e);n.item.id=_(n.item.id,n.item.id,".itemId"),qo(e.id,o).then(i=>{n.type="Group",Ho(e.id,o).then(s=>{s.id=n.item.id,n.item={...s,type:"Group"},n.dependencies=i.concat(Ao(s.tags)),r(n)},()=>r(n))},()=>r(n))})}function Qs(e,t,o,r){return new Promise(n=>{if(!r(e.itemId,u.Started,0)){r(e.itemId,u.Ignored,0),n(I(e.type));return}let i=M(e);i=w(i,t),i.item.thumbnail=e.item.thumbnail;let s=ni(i.item);Pr(s.title,s,t,o,Ot(i)?t.locationTracking.owner:void 0).then(a=>{if(a.success)if(!r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id))r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(i.itemId=a.group.id,t[e.itemId]={itemId:a.group.id},i=w(i,t),t[e.itemId].itemId=a.group.id,!r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,a.group.id))r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(Ot(i)){let m=t.locationTracking.owner;Fr(a.group.id,m,o).then(c=>{c.success?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id)?kr(a.group.id,[o.username],o).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?r(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,a.group.id)?n({item:i,id:a.group.id,type:i.type,postProcess:oe(i)}):(r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))}):(r(e.itemId,u.Cancelled,0),Fe(a.group.id,o).then(()=>n(I(e.type)),()=>n(I(e.type)))):(r(e.itemId,u.Failed,0),n(I(e.type)))})}else n({item:i,id:a.group.id,type:i.type,postProcess:oe(i)});else r(e.itemId,u.Failed,0),n(I(e.type))},()=>{r(e.itemId,u.Failed,0),n(I(e.type))})})}function Ys(e,t,o,r,n,i,s){let a=Promise.resolve({success:!0});return o.some(m=>{if(m.id===e){let c=m.item.item;return oe(c)&&(c=w(c,i),a=Or(c,s)),!0}}),a}function ni(e){let t={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(r=>{e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Ce={};$(Ce,{convertItemToTemplate:()=>Xs,createItemFromTemplate:()=>ea,isAPage:()=>oa,postProcess:()=>ta});function ii(e,t,o,r){return e=fe(e,o,{}),Dr(e,{...r,allowList:[]}).then(()=>!0)}function lt(e){let t=H(e);return(e.dependencies||[]).forEach(r=>{let n=new RegExp(r,"g"),i=`{{${r}.itemId}}`;t.item=le(t.item,n,i),t.data=le(t.data,n,i),e.properties&&(t.properties=le(t.properties,n,i))}),t}function ut(e,t,o){let r=L(K,{success:!0}),n=[r({itemId:e.item.id,folderId:t,authentication:o})];return V(e,"item.properties.parentInitiativeId")&&n.push(r({itemId:e.item.properties.parentInitiativeId,folderId:t,authentication:o})),Promise.all(n)}function Xs(e,t,o=null){let r=0,n=0;return Promise.all([Ee(e.id,{authentication:t}),ne(t)]).then(([i,s])=>(r=i.item.created,n=i.item.modified,Kr(i,s))).then(i=>(i.item.created=r,i.item.modified=n,i.item.typeKeywords=Ve(i.item.typeKeywords,"doNotDelete"),i.groups=[],i.estimatedDeploymentCostFactor=2,i.resources=[],V(i,"properties")||(i.properties={}),i=lt(i),i))}function ea(e,t,o,r){if(!r(e.itemId,u.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,t.solutionItemExtent){let c=t.solutionItemExtent.split(",");t.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let i={},s,a,m=e.item.thumbnail;return ne(o,t).then(c=>(a=c,Hr(e,t,i,a))).then(c=>{let d=c,l={assets:d.assets||[]};return Gr(d,l,a)}).then(c=>(s=c,ut(c,t.folderId,o))).then(()=>{let c={item:{id:s.item.id},params:{thumbnail:m},authentication:o};return ee(c)}).then(()=>{if(t[e.itemId]={itemId:s.item.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,s.item.id)){let d={item:{...e,...te(s)},id:s.item.id,type:e.type,postProcess:!0};return d.item.itemId=s.item.id,d}else return L(jr,{success:!0})(s,a).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw r(e.itemId,u.Failed,0),c})}function ta(e,t,o,r,n,i,s){let a;return ne(s).then(m=>(a=m,Ee(e,{authentication:s}))).then(m=>ii(m,o,i,a))}function oa(e){let t=!1;return(e==="Hub Page"||e==="Site Page")&&(t=!0),t}var Ae={};$(Ae,{convertItemToTemplate:()=>ra,createItemFromTemplate:()=>na,isASite:()=>sa,postProcess:()=>ia});function si(e,t,o){let r=t.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(r.map(n=>Ee(n,o))).then(n=>tn(e,n,o))}function ai(e,t,o,r){let n=t.filter(m=>m.id!==e.item.id),i=n.map(m=>({item:{id:m.id,type:m.type}})),s=[];s=s.concat(en(e,i,r)),s=s.concat(si(e,n,r));let a=n.map(m=>m.id);return e.item.properties.children=a,e=Qr(e,o,{}),s.push(qr(e,{...r,allowList:void 0})),Promise.all(s).then(()=>!0)}function ra(e,t,o=null){let r=0,n=0,i,s,a;return ne(t).then(m=>(a=m,bt(e.id,a))).then(m=>(r=m.item.created,n=m.item.modified,i=m.item.title,s=m.data.values.title,Xr(m,a))).then(m=>(m.item.created=r,m.item.modified=n,m.item.title=i,m.item.typeKeywords=Ve(m.item.typeKeywords,"doNotDelete"),m.data.values.title=s,m.groups=[],m.estimatedDeploymentCostFactor=2,m.resources=[],p(m,"properties")||(m.properties={}),m.dependencies=he(m.dependencies),m=lt(m),m))}function na(e,t,o,r){if(!r(e.itemId,u.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,t.solution||(t.solution={}),t.solution.title=t.title;let i={},s,a,m=e.item.thumbnail;return ne(o,t).then(c=>(a=c,Yr(e,t,i,a))).then(c=>{let d={assets:c.assets||[]};return Zr(c,d,a)}).then(c=>(s=c,ut(c,t.folderId,o))).then(()=>{let c={item:{id:s.item.id},params:{thumbnail:m},authentication:o};return ee(c)}).then(()=>{if(t[e.itemId]={itemId:s.item.id},r(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,s.item.id)){let d={item:{...e,...te(s)},id:s.item.id,type:e.type,postProcess:!0};return d.item.itemId=s.item.id,d}else return L(Jr,{success:!0})(s,a).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw r(e.itemId,u.Failed,0),c})}function ia(e,t,o,r,n,i,s){let a;return ne(s,i).then(m=>(a=m,bt(e,a))).then(m=>ai(m,o,i,a)).then(()=>Promise.resolve(!0))}function sa(e){let t=!1;return(e==="Hub Site Application"||e==="Site Application")&&(t=!0),t}var ht={};$(ht,{convertItemToTemplate:()=>ca,createItemFromTemplate:()=>da,isAStoryMap:()=>pa});function mi(e={}){let t=0;return Object.keys(e).reduce((o,r)=>(V(e,`${r}.type`)==="webmap"&&r!==`webmap${t}`&&(o.push({original:r,updated:`webmap${t}`}),t++),o),[])}function ci(e){let t=V(e,"data.resources")||{};return Object.keys(t).reduce((o,r)=>(V(t,`${r}.type`)==="webmap"&&o.push(V(t,`${r}.data.itemId`)),o),[])}function pi(e){let t=Qe(e.item.id,e.item.type);t.key=`${je(e.item.title)}_${Be("i")}`;let o=H(e);t.data=o.data;let r=o.item.created,n=o.item.modified;return t.item=Ge(o.item),t.item.created=r,t.item.modified=n,t.item.url="{{storyMapTemplateUrl}}",mi(t.data.resources).forEach(a=>{t.data.resources[a.updated]=H(t.data.resources[a.original]),delete t.data.resources[a.original],t.data.nodes=le(t.data.nodes,a.original,a.updated)}),t.item.typeKeywords.indexOf(di)!==-1&&(t.item.typeKeywords=[aa].concat(t.item.typeKeywords.filter(a=>a!==di))),t.properties={},t.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(t.properties,ma),t.dependencies=ci(e),Promise.resolve(t)}var di="smstatusunpublishedchanges",aa="smstatuspublished",ma={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
3
3
  <oembed>
4
4
  <version>1.0</version>
5
5
  <type>rich</type>
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./QPIMTXPL.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};
2
+ import"./EXBEKVP5.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,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./QUG6GIG2.js";import"./S37TPZAO.js";import"./RPBIUBGZ.js";import a from"./IEAOGMAM.js";import"./2B4SGB3I.js";import"./I2NTSKBD.js";import"./MSUQVQBX.js";import"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./2I5LGZNX.js";import"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
2
+ import b from"./MJ6JD7WX.js";import"./S37TPZAO.js";import"./TLY6ZEKN.js";import a from"./PYPVVSIX.js";import"./2B4SGB3I.js";import"./I2NTSKBD.js";import"./ACTJS4TX.js";import"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./2I5LGZNX.js";import"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)