@esri/hub-web-components 0.37.2 → 0.38.0
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.
- package/dist/cdn/236HAGEK.js +2 -0
- package/dist/cdn/24WHEGS7.js +2 -0
- package/dist/cdn/25LZMJQW.js +2 -0
- package/dist/cdn/2BWJP4KH.js +2 -0
- package/dist/cdn/2DUPJPOK.js +2 -0
- package/dist/cdn/2EE4427F.js +2 -0
- package/dist/cdn/2EQH4CNE.js +2 -0
- package/dist/cdn/2EW2MAGT.js +2 -0
- package/dist/cdn/2H3NL2VR.js +2 -0
- package/dist/cdn/2ILIJZDY.js +2 -0
- package/dist/cdn/2JB3S3J4.js +2 -0
- package/dist/cdn/2LVSW3ED.js +2 -0
- package/dist/cdn/2OWGC2HG.js +2 -0
- package/dist/cdn/2RDZQFBD.js +2 -0
- package/dist/cdn/2TXGBFPG.js +2 -0
- package/dist/cdn/2WDM2VJM.js +2 -0
- package/dist/cdn/2WECGEBX.js +2 -0
- package/dist/cdn/2ZIJNDHQ.js +2 -0
- package/dist/cdn/2ZXVJSBO.js +2 -0
- package/dist/cdn/32UA342W.js +2 -0
- package/dist/cdn/32XX3F4E.js +2 -0
- package/dist/cdn/3BR5KKQ7.js +2 -0
- package/dist/cdn/3CHF3GEJ.js +2 -0
- package/dist/cdn/3CY6I4EO.js +2 -0
- package/dist/cdn/3FJHYATI.js +2 -0
- package/dist/cdn/3GDGENCS.js +2 -0
- package/dist/cdn/3GKXMAXM.js +2 -0
- package/dist/cdn/3HVIG2SK.js +2 -0
- package/dist/cdn/3JKXA4Q3.js +2 -0
- package/dist/cdn/3JODVSTM.js +2 -0
- package/dist/cdn/3KHULCZO.js +2 -0
- package/dist/cdn/3LBQDCLR.js +2 -0
- package/dist/cdn/3M5VO5CS.js +2 -0
- package/dist/cdn/3OVLI4PU.js +9 -0
- package/dist/cdn/3OWO3OYZ.js +2 -0
- package/dist/cdn/3PZNRYMF.js +2 -0
- package/dist/cdn/3QTUUB7M.js +2 -0
- package/dist/cdn/3UW2TBEZ.js +2 -0
- package/dist/cdn/3UXE5BF3.js +2 -0
- package/dist/cdn/3VUHOWXT.js +2 -0
- package/dist/cdn/3WXL3KU4.js +2 -0
- package/dist/cdn/3XPQULRS.js +2 -0
- package/dist/cdn/45CLNG4V.js +2 -0
- package/dist/cdn/45V63GZB.js +2 -0
- package/dist/cdn/45Z5LSII.js +2 -0
- package/dist/cdn/46JROUMF.js +2 -0
- package/dist/cdn/4D3KDOGU.js +2 -0
- package/dist/cdn/4E7UX35B.js +2 -0
- package/dist/cdn/4GF4O5CD.js +2 -0
- package/dist/cdn/4KOILCWX.js +2 -0
- package/dist/cdn/4LSDKVY5.js +2 -0
- package/dist/cdn/4MK7XIAZ.js +2 -0
- package/dist/cdn/4QLO26TU.js +2 -0
- package/dist/cdn/4RF57BXA.js +2 -0
- package/dist/cdn/4RW76P4G.js +3 -0
- package/dist/cdn/4WFBSXCD.js +2 -0
- package/dist/cdn/4YKJQWLZ.js +2 -0
- package/dist/cdn/52EXRWO7.js +2 -0
- package/dist/cdn/546UMMXC.js +4 -0
- package/dist/cdn/564WTIUK.js +2 -0
- package/dist/cdn/5AQLELE7.js +2 -0
- package/dist/cdn/5AY5O6NA.js +2 -0
- package/dist/cdn/5BFO4SMC.js +23 -0
- package/dist/cdn/5BNQ7WYV.js +2 -0
- package/dist/cdn/5BSBS5SB.js +2 -0
- package/dist/cdn/5DW6FQAN.js +2 -0
- package/dist/cdn/5IE6W375.js +2 -0
- package/dist/cdn/5KW2QPZC.js +2 -0
- package/dist/cdn/5MLRZJVF.js +2 -0
- package/dist/cdn/5PCBOJUL.js +2 -0
- package/dist/cdn/5PGWPW32.js +2 -0
- package/dist/cdn/5PWUXR6C.js +2 -0
- package/dist/cdn/5T2V664O.js +2 -0
- package/dist/cdn/5VOM4C4C.js +2 -0
- package/dist/cdn/5XEIW7CT.js +2 -0
- package/dist/cdn/634MHX5H.js +2 -0
- package/dist/cdn/63S2PXLQ.js +2 -0
- package/dist/cdn/677XOGDW.js +2 -0
- package/dist/cdn/6ANGFMIE.js +2 -0
- package/dist/cdn/6CHWESL2.js +2 -0
- package/dist/cdn/6EVJFJHR.js +2 -0
- package/dist/cdn/6GKOYJ5G.js +2 -0
- package/dist/cdn/6HR5VJ5Z.js +2 -0
- package/dist/cdn/6PGSCXG5.js +3 -0
- package/dist/cdn/6PP6S4SR.js +2 -0
- package/dist/cdn/6PXXMBGG.js +101 -0
- package/dist/cdn/6QTH3TK4.js +2 -0
- package/dist/cdn/6SBBIF36.js +2 -0
- package/dist/cdn/6UI543V2.js +2 -0
- package/dist/cdn/6WWLOLK2.js +2 -0
- package/dist/cdn/72JEALD6.js +2 -0
- package/dist/cdn/73VGDY64.js +2 -0
- package/dist/cdn/76PBLDOW.js +2 -0
- package/dist/cdn/76VGL2OG.js +2 -0
- package/dist/cdn/77X4MPIK.js +2 -0
- package/dist/cdn/7ASFWI7S.js +2 -0
- package/dist/cdn/7G2NGRSE.js +2 -0
- package/dist/cdn/7GI2O7DN.js +2 -0
- package/dist/cdn/7IGM7SZV.js +2 -0
- package/dist/cdn/7J23Y6UZ.js +2 -0
- package/dist/cdn/7JJRW4NC.js +2 -0
- package/dist/cdn/7LZEINS7.js +2 -0
- package/dist/cdn/7M6WAN4F.js +2 -0
- package/dist/cdn/7NHQNVMM.js +2 -0
- package/dist/cdn/7OKY7BOU.js +2 -0
- package/dist/cdn/7QXOPKDR.js +2 -0
- package/dist/cdn/7YFSWA6Y.js +2 -0
- package/dist/cdn/7ZNOM7XH.js +2 -0
- package/dist/cdn/A5ALDCCE.js +2 -0
- package/dist/cdn/A5DE26HL.js +5468 -0
- package/dist/cdn/A6MK5ZPP.js +2 -0
- package/dist/cdn/A7UTEGFQ.js +2 -0
- package/dist/cdn/ACFPNLIK.js +2 -0
- package/dist/cdn/ADYIOWEG.js +2 -0
- package/dist/cdn/AH23WNQW.js +2 -0
- package/dist/cdn/AHSJJDVA.js +2 -0
- package/dist/cdn/AJHFVXHK.js +2 -0
- package/dist/cdn/AJR3J6MJ.js +2 -0
- package/dist/cdn/AMGCL5N6.js +2 -0
- package/dist/cdn/AOJJIJRH.js +2 -0
- package/dist/cdn/AOSFOFZC.js +2 -0
- package/dist/cdn/AS6M5YBE.js +2 -0
- package/dist/cdn/AT75BQVI.js +2 -0
- package/dist/cdn/B4SFNUJX.js +2 -0
- package/dist/cdn/B7A7RSZ4.js +2 -0
- package/dist/cdn/B7XZZQM4.js +2 -0
- package/dist/cdn/BDCNWDSM.js +2 -0
- package/dist/cdn/BE4JSUS6.js +2 -0
- package/dist/cdn/BGUBTLON.js +2 -0
- package/dist/cdn/BIAMJNHV.js +2 -0
- package/dist/cdn/BK6XX2AU.js +2 -0
- package/dist/cdn/BMPXQTR3.js +2 -0
- package/dist/cdn/BN2OLK73.js +2 -0
- package/dist/cdn/BNGN57J7.js +2 -0
- package/dist/cdn/BOV2P5AR.js +2 -0
- package/dist/cdn/BOXLFPBZ.js +2 -0
- package/dist/cdn/BREHLWWL.js +2 -0
- package/dist/cdn/BRRV3DOR.js +22 -0
- package/dist/cdn/BRTJWWHS.js +2 -0
- package/dist/cdn/BTELCOY5.js +2 -0
- package/dist/cdn/BWE2I5AG.js +2 -0
- package/dist/cdn/BWUAY2LE.js +2 -0
- package/dist/cdn/BZAKLMBW.js +2 -0
- package/dist/cdn/C5YJ666N.js +2 -0
- package/dist/cdn/C67HM5IZ.js +2 -0
- package/dist/cdn/C6J22WJW.js +2 -0
- package/dist/cdn/CDLDZD7A.js +57 -0
- package/dist/cdn/CFPF74RM.js +2 -0
- package/dist/cdn/CGY4TVMV.js +2 -0
- package/dist/cdn/CHENEYUV.js +2 -0
- package/dist/cdn/CL6SOVSI.js +2 -0
- package/dist/cdn/CSGFPAKT.js +2 -0
- package/dist/cdn/CSWPB3OX.js +2 -0
- package/dist/cdn/CSYFGNUQ.js +2 -0
- package/dist/cdn/CU5WQBOB.js +2 -0
- package/dist/cdn/CWFJZAPU.js +2 -0
- package/dist/cdn/CWYD5K4S.js +2 -0
- package/dist/cdn/CXTLB2JC.js +2 -0
- package/dist/cdn/D2FW5KKG.js +2 -0
- package/dist/cdn/D2PJNXW6.js +2 -0
- package/dist/cdn/D3BILNAQ.js +2 -0
- package/dist/cdn/D3R4UBO6.js +2 -0
- package/dist/cdn/D55X5MXF.js +2 -0
- package/dist/cdn/DAVFVKTV.js +2 -0
- package/dist/cdn/DAX4IQBA.js +2 -0
- package/dist/cdn/DB7GEQTR.js +2 -0
- package/dist/cdn/DBRFT7B4.js +2 -0
- package/dist/cdn/DBXBA6HT.js +2 -0
- package/dist/cdn/DCDDWF2I.js +2 -0
- package/dist/cdn/DDJLRFBZ.js +2 -0
- package/dist/cdn/DDQO772J.js +2 -0
- package/dist/cdn/DEDRO7EB.js +2 -0
- package/dist/cdn/DF7ABV7W.js +2 -0
- package/dist/cdn/DFJJV4QP.js +2 -0
- package/dist/cdn/DHG3VO5E.js +2 -0
- package/dist/cdn/DN2VD27M.js +2 -0
- package/dist/cdn/DQTK57GS.js +2 -0
- package/dist/cdn/DR5DLTDD.js +2 -0
- package/dist/cdn/DUUDWZXE.js +2 -0
- package/dist/cdn/DUXSX52F.js +49 -0
- package/dist/cdn/DVL64T57.js +2 -0
- package/dist/cdn/DXTZVNWA.js +3 -0
- package/dist/cdn/DZN62VYN.js +2 -0
- package/dist/cdn/DZYZIET6.js +2 -0
- package/dist/cdn/E4CJ5ZNU.js +2 -0
- package/dist/cdn/E7JK3E34.js +2 -0
- package/dist/cdn/EAHWXQSY.js +2 -0
- package/dist/cdn/EBGADEP4.js +2 -0
- package/dist/cdn/ECVIS6PA.js +2 -0
- package/dist/cdn/EDJVOECM.js +2 -0
- package/dist/cdn/EH5WKZDX.js +2 -0
- package/dist/cdn/EIJD2PFU.js +2 -0
- package/dist/cdn/EJKK6I5R.js +2 -0
- package/dist/cdn/EKJB7MLI.js +2 -0
- package/dist/cdn/ENWVIHLH.js +2 -0
- package/dist/cdn/EP5J4JOX.js +2 -0
- package/dist/cdn/EPA7NLL3.js +2 -0
- package/dist/cdn/EPITUUL4.js +2 -0
- package/dist/cdn/EQZAUOXD.js +2 -0
- package/dist/cdn/ETNEKEKW.js +2 -0
- package/dist/cdn/EVEBEV3F.js +2 -0
- package/dist/cdn/EWAU66TF.js +2 -0
- package/dist/cdn/EXQCLQJD.js +2 -0
- package/dist/cdn/F3QYJUVR.js +2 -0
- package/dist/cdn/F4W62LF6.js +2 -0
- package/dist/cdn/F5MRLCKP.js +2 -0
- package/dist/cdn/F67HAQPI.js +2 -0
- package/dist/cdn/FCWCW2DB.js +2 -0
- package/dist/cdn/FELT6CWD.js +2 -0
- package/dist/cdn/FGXWNIN4.js +4 -0
- package/dist/cdn/FII3RW6D.js +10 -0
- package/dist/cdn/FLLYEIGM.js +2 -0
- package/dist/cdn/FNKBHO4M.js +2 -0
- package/dist/cdn/FO7JXNJA.js +2 -0
- package/dist/cdn/FONOHWD4.js +2 -0
- package/dist/cdn/FQ67NRY3.js +2 -0
- package/dist/cdn/FQTSRTTQ.js +2 -0
- package/dist/cdn/FR67HD5Q.js +2 -0
- package/dist/cdn/FUJECPFL.js +2 -0
- package/dist/cdn/G2VRBYFE.js +2 -0
- package/dist/cdn/G2VZF3XU.js +2 -0
- package/dist/cdn/G5LBL73C.js +2 -0
- package/dist/cdn/G6H6YQAR.js +2 -0
- package/dist/cdn/GFRFAB56.js +2 -0
- package/dist/cdn/GHNVBIZM.js +2 -0
- package/dist/cdn/GMWP6LCV.js +2 -0
- package/dist/cdn/GQCVJRFN.js +2 -0
- package/dist/cdn/GQEOGWRS.js +2 -0
- package/dist/cdn/GQJNXTQT.js +2 -0
- package/dist/cdn/GUVU7ZKH.js +2 -0
- package/dist/cdn/GWE7MB6R.js +2 -0
- package/dist/cdn/GXN2DYTV.js +2 -0
- package/dist/cdn/GY557TE4.js +2 -0
- package/dist/cdn/H22LIWN5.js +2 -0
- package/dist/cdn/H2OV5BRE.js +2 -0
- package/dist/cdn/H4KV7MLW.js +2 -0
- package/dist/cdn/H6RS3MWN.js +2 -0
- package/dist/cdn/HAVGOHEF.js +2 -0
- package/dist/cdn/HFGNOB7X.js +2 -0
- package/dist/cdn/HFO5EQR7.js +2 -0
- package/dist/cdn/HHG5BEOE.js +2 -0
- package/dist/cdn/HKZINVVZ.js +2 -0
- package/dist/cdn/HM3XWGWB.js +2 -0
- package/dist/cdn/HS5U6SAB.js +2 -0
- package/dist/cdn/HT6X7J7I.js +2 -0
- package/dist/cdn/HUBM7ZHQ.js +2 -0
- package/dist/cdn/HWJYICV2.js +2 -0
- package/dist/cdn/HX2ANNLW.js +2 -0
- package/dist/cdn/HXAEGJHA.js +2 -0
- package/dist/cdn/HZZPNHJD.js +2 -0
- package/dist/cdn/HZZT4ENK.js +39 -0
- package/dist/cdn/I6NM57PS.js +2 -0
- package/dist/cdn/IEFGEXRM.js +2 -0
- package/dist/cdn/IIVZDUOO.js +2 -0
- package/dist/cdn/ILA26VYV.js +2 -0
- package/dist/cdn/INL22W2K.js +2 -0
- package/dist/cdn/IPB6I32R.js +2 -0
- package/dist/cdn/IQKUMB36.js +2 -0
- package/dist/cdn/IRDXKWHN.js +2 -0
- package/dist/cdn/IRK5TOIL.js +2 -0
- package/dist/cdn/ISFIYPYM.js +50 -0
- package/dist/cdn/ISKLXQSB.js +2 -0
- package/dist/cdn/IT7YVVDI.js +2 -0
- package/dist/cdn/ITUDVJWT.js +2 -0
- package/dist/cdn/J3IYBH53.js +2 -0
- package/dist/cdn/J43Y4A2N.js +2 -0
- package/dist/cdn/J5GHLLAB.js +2 -0
- package/dist/cdn/JAM7T5PB.js +4 -0
- package/dist/cdn/JBSROA2H.js +2 -0
- package/dist/cdn/JC6ZBDVV.js +2 -0
- package/dist/cdn/JDLEH54P.js +2 -0
- package/dist/cdn/JH4TZ3IY.js +2 -0
- package/dist/cdn/JKGOCFVC.js +2 -0
- package/dist/cdn/JKK5LJAI.js +2 -0
- package/dist/cdn/JMUGY3OJ.js +2 -0
- package/dist/cdn/JN6YHOUS.js +2 -0
- package/dist/cdn/JNSS6JH3.js +2 -0
- package/dist/cdn/JOX32ZKP.js +2 -0
- package/dist/cdn/JR6CWQ3R.js +2 -0
- package/dist/cdn/JSSFWJCY.js +2 -0
- package/dist/cdn/JUIATBR3.js +2 -0
- package/dist/cdn/JUNOFH56.js +2 -0
- package/dist/cdn/JXP5MO3J.js +2 -0
- package/dist/cdn/JYIVT4P3.js +2 -0
- package/dist/cdn/JYREZGPA.js +2 -0
- package/dist/cdn/K2D5G22Z.js +2 -0
- package/dist/cdn/K5HZ2G74.js +2 -0
- package/dist/cdn/K6AMDRTV.js +2 -0
- package/dist/cdn/K6CWANHE.js +2 -0
- package/dist/cdn/K7BNQOOW.js +2 -0
- package/dist/cdn/KBNCRVPP.js +2 -0
- package/dist/cdn/KGGAN2FF.js +2 -0
- package/dist/cdn/KLMBAQIW.js +2 -0
- package/dist/cdn/KNLJ2Y2L.js +2 -0
- package/dist/cdn/KQHNHQIC.js +6 -0
- package/dist/cdn/KRXEHAAE.js +2 -0
- package/dist/cdn/KTRB3474.js +2 -0
- package/dist/cdn/KUUU37O7.js +2 -0
- package/dist/cdn/KWAQZHYD.js +2 -0
- package/dist/cdn/KYWSYVJC.js +2 -0
- package/dist/cdn/L2PPM2B2.js +2 -0
- package/dist/cdn/L3E7MHJD.js +2 -0
- package/dist/cdn/L4JCSXPA.js +2 -0
- package/dist/cdn/L5EFE534.js +2 -0
- package/dist/cdn/L6JOUO4R.js +2 -0
- package/dist/cdn/L6KTWLZO.js +2 -0
- package/dist/cdn/LAGV6T2P.js +2 -0
- package/dist/cdn/LAPB4R6P.js +2 -0
- package/dist/cdn/LLPWCLVS.js +2 -0
- package/dist/cdn/LN5YCGL5.js +2 -0
- package/dist/cdn/LNSWRA2E.js +2 -0
- package/dist/cdn/LQLM5UFO.js +2 -0
- package/dist/cdn/LRLKKT6E.js +2 -0
- package/dist/cdn/LST2TEQ7.js +2 -0
- package/dist/cdn/LT5EGN2B.js +2 -0
- package/dist/cdn/LV543PTH.js +2 -0
- package/dist/cdn/LZC3KVDN.js +2 -0
- package/dist/cdn/M6WEQLC4.js +2 -0
- package/dist/cdn/M7PXGKUN.js +2 -0
- package/dist/cdn/MA4PQFDN.js +2 -0
- package/dist/cdn/MDGTCFT7.js +2 -0
- package/dist/cdn/MIV7EHSX.js +2 -0
- package/dist/cdn/MK64YJZT.js +2 -0
- package/dist/cdn/MKFRUSCH.js +2 -0
- package/dist/cdn/MKK63VCT.js +2 -0
- package/dist/cdn/MLZ3XGVR.js +2 -0
- package/dist/cdn/MOFQMUCX.js +2 -0
- package/dist/cdn/MPUNYAO6.js +2 -0
- package/dist/cdn/MS7HEOST.js +2 -0
- package/dist/cdn/MSDIL3V2.js +2 -0
- package/dist/cdn/MUNTT3ZX.js +2 -0
- package/dist/cdn/MX2LFKDN.js +2 -0
- package/dist/cdn/MZPEHZQ6.js +2 -0
- package/dist/cdn/MZTSQFVF.js +2 -0
- package/dist/cdn/N5GAHY3Z.js +2 -0
- package/dist/cdn/N5Q4VONY.js +2 -0
- package/dist/cdn/N6YCTEBM.js +2 -0
- package/dist/cdn/NA26EC7V.js +2 -0
- package/dist/cdn/NEIM3TBD.js +2 -0
- package/dist/cdn/NGHDJBY5.js +2 -0
- package/dist/cdn/NHJYS2PI.js +2 -0
- package/dist/cdn/NIAU4VO5.js +2 -0
- package/dist/cdn/NIJNUESB.js +2 -0
- package/dist/cdn/NK3ILYT4.js +2 -0
- package/dist/cdn/NKTEP5PG.js +2 -0
- package/dist/cdn/NMDYCBFW.js +2 -0
- package/dist/cdn/NQU3EFLX.js +2 -0
- package/dist/cdn/NZKEUWJO.js +2 -0
- package/dist/cdn/O24TJJIA.js +2 -0
- package/dist/cdn/OB5VPFBQ.js +2 -0
- package/dist/cdn/OCROULRG.js +2 -0
- package/dist/cdn/ODWK4PGO.js +2 -0
- package/dist/cdn/OEYT6KBR.js +2 -0
- package/dist/cdn/OGW276HU.js +2 -0
- package/dist/cdn/OHDLPBUL.js +2 -0
- package/dist/cdn/OKPRBA73.js +2 -0
- package/dist/cdn/OLIXHQ45.js +2 -0
- package/dist/cdn/OM6RXTNE.js +2 -0
- package/dist/cdn/OMUDX3KZ.js +2 -0
- package/dist/cdn/ONB5KTQJ.js +2 -0
- package/dist/cdn/OODAGA7S.js +2 -0
- package/dist/cdn/OQ2B5D7H.js +2 -0
- package/dist/cdn/OT6SCCRW.js +2 -0
- package/dist/cdn/OU5H6LGW.js +2 -0
- package/dist/cdn/OY4XFH6U.js +2 -0
- package/dist/cdn/P2RUPXUY.js +2 -0
- package/dist/cdn/P6CKD2GP.js +2 -0
- package/dist/cdn/PBJKVPW5.js +2 -0
- package/dist/cdn/PE2YQIC4.js +2 -0
- package/dist/cdn/PG7E7354.js +2 -0
- package/dist/cdn/PIFGTBYR.js +2 -0
- package/dist/cdn/PJNURHKH.js +2 -0
- package/dist/cdn/PPTPAJVV.js +2 -0
- package/dist/cdn/PR4YIRMU.js +2 -0
- package/dist/cdn/PRO345O5.js +2 -0
- package/dist/cdn/PTRRO6WN.js +2 -0
- package/dist/cdn/PUUASAJ2.js +2 -0
- package/dist/cdn/PUUPBPMV.js +2 -0
- package/dist/cdn/PVBRAWDN.js +2 -0
- package/dist/cdn/PVJYYXFI.js +2 -0
- package/dist/cdn/PX2LKSL6.js +2 -0
- package/dist/cdn/Q26WYPCD.js +2 -0
- package/dist/cdn/Q4DVCEF3.js +2 -0
- package/dist/cdn/Q67H57WZ.js +2 -0
- package/dist/cdn/Q6BO676X.js +2 -0
- package/dist/cdn/Q6PGP3ZV.js +2 -0
- package/dist/cdn/Q7LIRPNK.js +2 -0
- package/dist/cdn/QBXTRM4A.js +2 -0
- package/dist/cdn/QFB257DG.js +2 -0
- package/dist/cdn/QHE543NP.js +2 -0
- package/dist/cdn/QLBQIWYL.js +2 -0
- package/dist/cdn/QLXCZ3NE.js +2 -0
- package/dist/cdn/QN2SIA7O.js +2 -0
- package/dist/cdn/QN6BOKR7.js +2 -0
- package/dist/cdn/QNV4N454.js +2 -0
- package/dist/cdn/QO2PWUWM.js +2 -0
- package/dist/cdn/QQLO6W5R.js +2 -0
- package/dist/cdn/QQNCKFBK.js +2 -0
- package/dist/cdn/QREJXP7C.js +2 -0
- package/dist/cdn/QRPVQBFD.js +2 -0
- package/dist/cdn/QUDAZ77Y.js +2 -0
- package/dist/cdn/QUEMC3AN.js +2 -0
- package/dist/cdn/QYJYDEZE.js +2 -0
- package/dist/cdn/QYPLXIBB.js +2 -0
- package/dist/cdn/QYQIPUGM.js +2 -0
- package/dist/cdn/R3GQKIJ5.js +2 -0
- package/dist/cdn/R7C6MNQH.js +2 -0
- package/dist/cdn/RBGNUTQK.js +2 -0
- package/dist/cdn/RC5E7RLU.js +2 -0
- package/dist/cdn/RCP7UO3I.js +2 -0
- package/dist/cdn/REWZLA3K.js +2 -0
- package/dist/cdn/RGXVBRFC.js +2 -0
- package/dist/cdn/RN7HGMZW.js +6 -0
- package/dist/cdn/RQIJVACD.js +2 -0
- package/dist/cdn/RUVOYVVB.js +2 -0
- package/dist/cdn/RXEDODJY.js +2 -0
- package/dist/cdn/RY3BOHEX.js +2 -0
- package/dist/cdn/S4F4TUDC.js +2 -0
- package/dist/cdn/S5UG2OK3.js +2 -0
- package/dist/cdn/S652H4VN.js +2 -0
- package/dist/cdn/SADDC2DK.js +2 -0
- package/dist/cdn/SDQL72GW.js +2 -0
- package/dist/cdn/SEJFEDAL.js +2 -0
- package/dist/cdn/SERXR2LG.js +2 -0
- package/dist/cdn/SEXTYSOH.js +2 -0
- package/dist/cdn/SR3XA2A2.js +3 -0
- package/dist/cdn/SRE3UGET.js +2 -0
- package/dist/cdn/SRMTUU32.js +2 -0
- package/dist/cdn/SSUMP2NE.js +2 -0
- package/dist/cdn/ST3YYA5D.js +2 -0
- package/dist/cdn/SVRAUC4L.js +2 -0
- package/dist/cdn/SWVXW2PZ.js +2 -0
- package/dist/cdn/T64QL6SH.js +2 -0
- package/dist/cdn/T74ADXHD.js +2 -0
- package/dist/cdn/T7QPSQ6X.js +2 -0
- package/dist/cdn/TE3YDUFZ.js +2 -0
- package/dist/cdn/TEMTRFHO.js +2 -0
- package/dist/cdn/TH2B62CH.js +2 -0
- package/dist/cdn/TIXP2JWX.js +2 -0
- package/dist/cdn/TJH2CAQN.js +2 -0
- package/dist/cdn/TJNCJLFE.js +2 -0
- package/dist/cdn/TOY6PXDP.js +2 -0
- package/dist/cdn/TRW2D3YU.js +2 -0
- package/dist/cdn/TTL4NSLD.js +2 -0
- package/dist/cdn/TVV2X45U.js +2 -0
- package/dist/cdn/TVX5SDUH.js +2 -0
- package/dist/cdn/TWWDY4C3.js +2 -0
- package/dist/cdn/TZXHHOXC.js +10 -0
- package/dist/cdn/U5GGWHZO.js +2 -0
- package/dist/cdn/U5V2PMFO.js +2 -0
- package/dist/cdn/U7DDSGRI.js +2 -0
- package/dist/cdn/UDP7EENP.js +2 -0
- package/dist/cdn/UHJI2POJ.js +2 -0
- package/dist/cdn/UHMRHQSA.js +2 -0
- package/dist/cdn/UJLWEMLF.js +2 -0
- package/dist/cdn/ULND2AHT.js +3 -0
- package/dist/cdn/UMTI4ASY.js +2 -0
- package/dist/cdn/UOFMXXCF.js +2 -0
- package/dist/cdn/UPJ5YFB3.js +2 -0
- package/dist/cdn/UPQGR6XZ.js +2 -0
- package/dist/cdn/UQFU44VU.js +2 -0
- package/dist/cdn/USNKSSNY.js +2 -0
- package/dist/cdn/UTYIY6RX.js +2 -0
- package/dist/cdn/UUBB3CRW.js +2 -0
- package/dist/cdn/UVZ42TD3.js +2 -0
- package/dist/cdn/UWIAJV2I.js +2 -0
- package/dist/cdn/UWUNHI7L.js +2 -0
- package/dist/cdn/UXXI3SQO.js +2 -0
- package/dist/cdn/UZV5ZDGJ.js +2 -0
- package/dist/cdn/V2I47N23.js +2 -0
- package/dist/cdn/V6NN26QF.js +2 -0
- package/dist/cdn/V7NGWJV5.js +2 -0
- package/dist/cdn/VJKJWIVW.js +2 -0
- package/dist/cdn/VNEAUDVI.js +2 -0
- package/dist/cdn/VQOZUBFA.js +2 -0
- package/dist/cdn/VQXRDNZT.js +2 -0
- package/dist/cdn/VTCPJ62B.js +2 -0
- package/dist/cdn/VTQYNCAR.js +2 -0
- package/dist/cdn/VURQPTCW.js +2 -0
- package/dist/cdn/VVLYSGUR.js +2 -0
- package/dist/cdn/VWAVVQJJ.js +2 -0
- package/dist/cdn/VXTU6DWN.js +2 -0
- package/dist/cdn/W5EQWPZT.js +2 -0
- package/dist/cdn/W6CIIV4Z.js +2 -0
- package/dist/cdn/W6YU4GHY.js +2 -0
- package/dist/cdn/W75PS2IE.js +2 -0
- package/dist/cdn/WBSLYVPQ.js +2 -0
- package/dist/cdn/WCDWD2B6.js +2 -0
- package/dist/cdn/WE2BDIRX.js +7 -0
- package/dist/cdn/WIS2JCU5.js +2 -0
- package/dist/cdn/WJFSSYRR.js +2 -0
- package/dist/cdn/WJVYYTL2.js +2 -0
- package/dist/cdn/WMNYXLEQ.js +2 -0
- package/dist/cdn/WNHQOQRJ.js +2 -0
- package/dist/cdn/WOGIQMDO.js +2 -0
- package/dist/cdn/WOPCBDZP.js +2 -0
- package/dist/cdn/WPYXFHC7.js +2 -0
- package/dist/cdn/WU3HBTHL.js +2 -0
- package/dist/cdn/WUEDA64M.js +2 -0
- package/dist/cdn/WUNRRAKS.js +2 -0
- package/dist/cdn/WUZQBPV4.js +2 -0
- package/dist/cdn/X3WMLB6V.js +2 -0
- package/dist/cdn/X5G7VGWH.js +2 -0
- package/dist/cdn/X65V22WZ.js +2 -0
- package/dist/cdn/XAYV7IBF.js +2 -0
- package/dist/cdn/XCFQMY4U.js +2 -0
- package/dist/cdn/XEYOWJGY.js +14 -0
- package/dist/cdn/XFCHMSR7.js +2 -0
- package/dist/cdn/XI6X55QD.js +2 -0
- package/dist/cdn/XKBY6EJC.js +2 -0
- package/dist/cdn/XLHG5W2O.js +2 -0
- package/dist/cdn/XRGUZJA3.js +2 -0
- package/dist/cdn/XWSO2EDX.js +2 -0
- package/dist/cdn/Y2JIY5K6.js +2 -0
- package/dist/cdn/Y3GRFUW3.js +2 -0
- package/dist/cdn/Y6Q6ENTP.js +2 -0
- package/dist/cdn/Y6Y62AIY.js +2 -0
- package/dist/cdn/YAJEJUPD.js +2 -0
- package/dist/cdn/YDJH3ZVL.js +2 -0
- package/dist/cdn/YEIHJDUB.js +2 -0
- package/dist/cdn/YHDGXQY6.js +2 -0
- package/dist/cdn/YIM7DW7Q.js +2 -0
- package/dist/cdn/YL3CSDPR.js +2 -0
- package/dist/cdn/YMACXVV6.js +2 -0
- package/dist/cdn/YMTAIN3S.js +2 -0
- package/dist/cdn/YO2Z7OX4.js +2 -0
- package/dist/cdn/YPCQEKG3.js +2 -0
- package/dist/cdn/YS3WYU6Q.js +2 -0
- package/dist/cdn/YSXFXSDF.js +2 -0
- package/dist/cdn/YUMQIDHT.js +2 -0
- package/dist/cdn/YWYHMMVI.js +2 -0
- package/dist/cdn/YZ6PJ4WA.js +2 -0
- package/dist/cdn/YZGO6EXJ.js +2 -0
- package/dist/cdn/Z7DMCQET.js +2 -0
- package/dist/cdn/Z7XRFVR2.js +2 -0
- package/dist/cdn/ZAXWIIVO.js +2 -0
- package/dist/cdn/ZCZVGMIV.js +2 -0
- package/dist/cdn/ZDKCRMXL.js +2 -0
- package/dist/cdn/ZHGSLQOD.js +2 -0
- package/dist/cdn/ZLIWQVLB.js +2 -0
- package/dist/cdn/ZMRTK5JK.js +2 -0
- package/dist/cdn/ZN44BYAC.js +2 -0
- package/dist/cdn/ZNBJRJBQ.js +2 -0
- package/dist/cdn/ZOHGPFJY.js +2 -0
- package/dist/cdn/ZSGSUGWJ.js +2 -0
- package/dist/cdn/ZV3N2SYE.js +2 -0
- package/dist/cdn/ZVJUBUUM.js +2 -0
- package/dist/cdn/ZZBJZPDW.js +2 -0
- package/dist/cdn/ZZRKDSLS.js +2 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/findColumnAndNodeIndex.js +1 -1
- package/dist/chunks/getResponsiveClasses.js +1 -1
- package/dist/chunks/interpolate-translations.js +1 -1
- package/dist/chunks/isNodeVisible.js +1 -1
- package/dist/chunks/layoutContext.js +1 -1
- package/dist/chunks/migrateTextCard.js +1 -1
- package/dist/chunks/processLayout.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/state.js +1 -1
- package/dist/chunks/typeGuards.js +1 -1
- package/dist/chunks/useGlobalContext.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/util.js +1 -1
- package/dist/components/arcgis-chat-shell/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +1 -1
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-associations-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-status-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-view-layout/customElement.d.ts +4 -10
- package/dist/components/arcgis-hub-entity-view-layout/customElement.js +684 -665
- package/dist/components/arcgis-layout/customElement.js +1 -1
- package/dist/components/arcgis-layout-column/customElement.js +1 -1
- package/dist/components/arcgis-layout-container/customElement.d.ts +3 -3
- package/dist/components/arcgis-layout-container/customElement.js +275 -258
- package/dist/components/arcgis-layout-editor-toolbar/customElement.js +14 -14
- package/dist/components/arcgis-layout-node-controls/customElement.js +28 -28
- package/dist/components/arcgis-layout-node-editor/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-wrapper/customElement.js +32 -32
- package/dist/components/arcgis-layout-row/customElement.js +1 -1
- package/dist/components/arcgis-layout-section/customElement.js +1 -1
- package/dist/components/arcgis-nav-card/customElement.js +1 -1
- package/dist/components/arcgis-text-card/customElement.js +1 -1
- package/dist/components/layouts/components/layout-node/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/embed-config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +55 -54
- package/dist/cdn/24SIYWED.js +0 -2
- package/dist/cdn/25TYOHZS.js +0 -2
- package/dist/cdn/26WZVQ5A.js +0 -2
- package/dist/cdn/2B273BBV.js +0 -2
- package/dist/cdn/2B6D4MGZ.js +0 -2
- package/dist/cdn/2C25X57H.js +0 -2
- package/dist/cdn/2DD3P2GE.js +0 -2
- package/dist/cdn/2DPSKE3B.js +0 -2
- package/dist/cdn/2GV5ZJVP.js +0 -2
- package/dist/cdn/2GWRW6YG.js +0 -2
- package/dist/cdn/2KUCG2EL.js +0 -2
- package/dist/cdn/2NJPYBHN.js +0 -2
- package/dist/cdn/2PUMWMNI.js +0 -2
- package/dist/cdn/2SYN4GLC.js +0 -2
- package/dist/cdn/2TYW7KEN.js +0 -2
- package/dist/cdn/2W2UGJLH.js +0 -2
- package/dist/cdn/2WQEISGF.js +0 -2
- package/dist/cdn/2YBIU2GX.js +0 -2
- package/dist/cdn/377TGY4P.js +0 -2
- package/dist/cdn/37IO4VH2.js +0 -2
- package/dist/cdn/3BJZIUVK.js +0 -2
- package/dist/cdn/3C4D6M7U.js +0 -2
- package/dist/cdn/3CQWO3Y4.js +0 -2
- package/dist/cdn/3J67YE6G.js +0 -2
- package/dist/cdn/3LB3CYSI.js +0 -2
- package/dist/cdn/3MGFA2AN.js +0 -2
- package/dist/cdn/3PBVJ3CK.js +0 -2
- package/dist/cdn/3SHBZF4M.js +0 -2
- package/dist/cdn/3WN3ZWUP.js +0 -2
- package/dist/cdn/3ZHXUPIY.js +0 -2
- package/dist/cdn/3ZMBKQ2H.js +0 -2
- package/dist/cdn/425VBETO.js +0 -2
- package/dist/cdn/42CWBYSM.js +0 -2
- package/dist/cdn/42NTJTRV.js +0 -2
- package/dist/cdn/44KVKET3.js +0 -2
- package/dist/cdn/46NFE3O2.js +0 -2
- package/dist/cdn/47ZOSUE6.js +0 -2
- package/dist/cdn/4BGLQILZ.js +0 -2
- package/dist/cdn/4BRNZPNW.js +0 -2
- package/dist/cdn/4DPYGRIJ.js +0 -2
- package/dist/cdn/4EWTHNEV.js +0 -2
- package/dist/cdn/4KSDWTJW.js +0 -2
- package/dist/cdn/4PQFUUUG.js +0 -2
- package/dist/cdn/4QDRXQMV.js +0 -2
- package/dist/cdn/4QEFMWHF.js +0 -2
- package/dist/cdn/4ST5ERWK.js +0 -2
- package/dist/cdn/4ZRQCNU2.js +0 -2
- package/dist/cdn/53V23CCM.js +0 -2
- package/dist/cdn/56OZPWMC.js +0 -2
- package/dist/cdn/5E5J7S54.js +0 -49
- package/dist/cdn/5FBDGDSL.js +0 -2
- package/dist/cdn/5GNQYAFV.js +0 -2
- package/dist/cdn/5H44EM56.js +0 -2
- package/dist/cdn/5IANXD5L.js +0 -2
- package/dist/cdn/5IZIKW4H.js +0 -2
- package/dist/cdn/5J32RGDU.js +0 -2
- package/dist/cdn/5KNXEVQR.js +0 -2
- package/dist/cdn/5LEP3IWV.js +0 -2
- package/dist/cdn/5LJT6UGG.js +0 -2
- package/dist/cdn/5NJXZL7F.js +0 -2
- package/dist/cdn/5NZ5IS7D.js +0 -2
- package/dist/cdn/5ORZPL23.js +0 -2
- package/dist/cdn/5TU3W6P3.js +0 -2
- package/dist/cdn/5V53QYYF.js +0 -2
- package/dist/cdn/635V3Q2N.js +0 -2
- package/dist/cdn/65DPLBLL.js +0 -2
- package/dist/cdn/66HUEQL5.js +0 -2
- package/dist/cdn/6762DBBI.js +0 -2
- package/dist/cdn/6F3NCMF3.js +0 -2
- package/dist/cdn/6FPKPREN.js +0 -2
- package/dist/cdn/6GJMQB5A.js +0 -2
- package/dist/cdn/6IRHI22W.js +0 -9
- package/dist/cdn/6LDEVQEO.js +0 -2
- package/dist/cdn/6LZU7UCO.js +0 -2
- package/dist/cdn/6M5DP7YF.js +0 -2
- package/dist/cdn/6P7RNVD7.js +0 -2
- package/dist/cdn/6R5V3EGL.js +0 -2
- package/dist/cdn/6SPPONRY.js +0 -2
- package/dist/cdn/6SSTOHH4.js +0 -2
- package/dist/cdn/6TZEJNM7.js +0 -2
- package/dist/cdn/6VA6IJMP.js +0 -2
- package/dist/cdn/6VE4Q3FO.js +0 -2
- package/dist/cdn/6WUAXFQV.js +0 -2
- package/dist/cdn/6YRKIUVP.js +0 -2
- package/dist/cdn/72R6GI5S.js +0 -2
- package/dist/cdn/733IZVMO.js +0 -3
- package/dist/cdn/74ZD6Q4N.js +0 -2
- package/dist/cdn/75EIUMLW.js +0 -2
- package/dist/cdn/77R2C3NY.js +0 -2
- package/dist/cdn/7CZUONP3.js +0 -2
- package/dist/cdn/7GTUV67W.js +0 -2
- package/dist/cdn/7J2N6ILF.js +0 -2
- package/dist/cdn/7JWWAXIQ.js +0 -2
- package/dist/cdn/7LNSUWQP.js +0 -2
- package/dist/cdn/7MGY3JJQ.js +0 -2
- package/dist/cdn/7SELLYRO.js +0 -2
- package/dist/cdn/7SOJDYGK.js +0 -2
- package/dist/cdn/7UDDAIEI.js +0 -2
- package/dist/cdn/A36IL72A.js +0 -2
- package/dist/cdn/A6FB2POK.js +0 -2
- package/dist/cdn/ACG7WDUT.js +0 -2
- package/dist/cdn/AE6NCYFW.js +0 -2
- package/dist/cdn/AEPE3IDB.js +0 -2
- package/dist/cdn/AG22T6F4.js +0 -2
- package/dist/cdn/AHZOMFUT.js +0 -2
- package/dist/cdn/AJKLRRS4.js +0 -2
- package/dist/cdn/AJOXWMDO.js +0 -2
- package/dist/cdn/AKTKIQXI.js +0 -2
- package/dist/cdn/AL7OLCOX.js +0 -2
- package/dist/cdn/ALUW2GDJ.js +0 -2
- package/dist/cdn/AM4QVJ44.js +0 -2
- package/dist/cdn/AOSKEGOL.js +0 -2
- package/dist/cdn/ARGXJJIR.js +0 -2
- package/dist/cdn/AUG7ESKO.js +0 -2
- package/dist/cdn/AYFB34A7.js +0 -2
- package/dist/cdn/AYK4IBDR.js +0 -2
- package/dist/cdn/AZ3MRUIU.js +0 -2
- package/dist/cdn/AZKQPOHN.js +0 -2
- package/dist/cdn/B5FN4TVW.js +0 -2
- package/dist/cdn/B6CP7FIT.js +0 -2
- package/dist/cdn/B7DFSP27.js +0 -2
- package/dist/cdn/BASDWRBA.js +0 -2
- package/dist/cdn/BCAWS3NJ.js +0 -2
- package/dist/cdn/BFNODBIF.js +0 -2
- package/dist/cdn/BHYFMWFH.js +0 -10
- package/dist/cdn/BMRPHSYL.js +0 -2
- package/dist/cdn/BPSQ3CGL.js +0 -2
- package/dist/cdn/BU6RNCBS.js +0 -2
- package/dist/cdn/BZKD5DHH.js +0 -2
- package/dist/cdn/C27C7ZCS.js +0 -101
- package/dist/cdn/C3RZCB5I.js +0 -2
- package/dist/cdn/CBIG4EMI.js +0 -2
- package/dist/cdn/CCX2K4AC.js +0 -2
- package/dist/cdn/CCXXOCUE.js +0 -2
- package/dist/cdn/CD6LKEQL.js +0 -2
- package/dist/cdn/CD736SN3.js +0 -2
- package/dist/cdn/CH532URJ.js +0 -2
- package/dist/cdn/CHXKFI5R.js +0 -2
- package/dist/cdn/CNZGOCEQ.js +0 -2
- package/dist/cdn/CP5CMZPK.js +0 -2
- package/dist/cdn/CQ5TAYO5.js +0 -2
- package/dist/cdn/CU2TSBCT.js +0 -2
- package/dist/cdn/CWML23HX.js +0 -2
- package/dist/cdn/CXKNNQK7.js +0 -2
- package/dist/cdn/D2RDQCR6.js +0 -2
- package/dist/cdn/D4NLBWYJ.js +0 -2
- package/dist/cdn/D4XKOLDN.js +0 -2
- package/dist/cdn/DAN7ZYNO.js +0 -2
- package/dist/cdn/DBFWM3C6.js +0 -2
- package/dist/cdn/DCLYV35L.js +0 -2
- package/dist/cdn/DCXY72PD.js +0 -2
- package/dist/cdn/DD6UFQOQ.js +0 -2
- package/dist/cdn/DELUZ744.js +0 -2
- package/dist/cdn/DEVEFEZB.js +0 -2
- package/dist/cdn/DFSIBYHN.js +0 -2
- package/dist/cdn/DH2QF3YA.js +0 -2
- package/dist/cdn/DIAOUTLA.js +0 -2
- package/dist/cdn/DIQDWGSW.js +0 -2
- package/dist/cdn/DJ3H7LZE.js +0 -2
- package/dist/cdn/DKMYTCOT.js +0 -2
- package/dist/cdn/DLGNRZAS.js +0 -2
- package/dist/cdn/DMWDEJZX.js +0 -2
- package/dist/cdn/DOER2ALA.js +0 -2
- package/dist/cdn/DOOSTAKT.js +0 -2
- package/dist/cdn/DPDYPCY7.js +0 -2
- package/dist/cdn/DSFT4TPF.js +0 -2
- package/dist/cdn/DSULDCNU.js +0 -2
- package/dist/cdn/DSUO5O7O.js +0 -2
- package/dist/cdn/DYGPQ2O2.js +0 -2
- package/dist/cdn/DZCEYSVA.js +0 -2
- package/dist/cdn/DZSQQ3ZC.js +0 -2
- package/dist/cdn/E2O5UVKQ.js +0 -2
- package/dist/cdn/E2RL5I2B.js +0 -2
- package/dist/cdn/E2TALV72.js +0 -2
- package/dist/cdn/E6QW4CZ3.js +0 -3
- package/dist/cdn/E7RQDZEF.js +0 -2
- package/dist/cdn/EIMMNTTE.js +0 -2
- package/dist/cdn/EOF2UXV6.js +0 -2
- package/dist/cdn/EONYH67A.js +0 -2
- package/dist/cdn/EOUHIRVU.js +0 -2
- package/dist/cdn/ERN7BZFG.js +0 -2
- package/dist/cdn/ETC47ZTE.js +0 -2
- package/dist/cdn/ETZTDOJJ.js +0 -2
- package/dist/cdn/EXVLM3LY.js +0 -2
- package/dist/cdn/F4PVRAMX.js +0 -2
- package/dist/cdn/F56NG6UR.js +0 -2
- package/dist/cdn/FCTOGFDS.js +0 -7
- package/dist/cdn/FDDXGLRF.js +0 -2
- package/dist/cdn/FFNG2BKG.js +0 -2
- package/dist/cdn/FJLYCKFY.js +0 -2
- package/dist/cdn/FKDTJXGG.js +0 -2
- package/dist/cdn/FLC2JTMP.js +0 -2
- package/dist/cdn/FM3HYPTZ.js +0 -2
- package/dist/cdn/FMBEHWFY.js +0 -2
- package/dist/cdn/FMSRANRD.js +0 -2
- package/dist/cdn/FOYZAUE2.js +0 -2
- package/dist/cdn/FPFWOG6D.js +0 -2
- package/dist/cdn/FQQX35FA.js +0 -2
- package/dist/cdn/FS2LVAOJ.js +0 -2
- package/dist/cdn/FY3KPATI.js +0 -2
- package/dist/cdn/FZ7ZK37I.js +0 -2
- package/dist/cdn/FZCPWCBD.js +0 -2
- package/dist/cdn/FZNKGW4A.js +0 -2
- package/dist/cdn/G22UXAIP.js +0 -2
- package/dist/cdn/G3DW5HI6.js +0 -2
- package/dist/cdn/G4YSKUJY.js +0 -2
- package/dist/cdn/GEQLOXC6.js +0 -2
- package/dist/cdn/GEUS66D2.js +0 -2
- package/dist/cdn/GI572WEZ.js +0 -2
- package/dist/cdn/GJINUBO7.js +0 -2
- package/dist/cdn/GJIZO3BY.js +0 -2
- package/dist/cdn/GJRBKC6D.js +0 -2
- package/dist/cdn/GL6QTMXS.js +0 -2
- package/dist/cdn/GLK5OMGB.js +0 -2
- package/dist/cdn/GMWTEYRI.js +0 -2
- package/dist/cdn/GQUZD452.js +0 -2
- package/dist/cdn/GRUKKSRF.js +0 -2
- package/dist/cdn/GS3XIBLN.js +0 -2
- package/dist/cdn/GSGLH4CM.js +0 -2
- package/dist/cdn/GTMYGR72.js +0 -2
- package/dist/cdn/GVF26EON.js +0 -2
- package/dist/cdn/GVWJBDZW.js +0 -2
- package/dist/cdn/GZOH7TH2.js +0 -2
- package/dist/cdn/H2EOGBZS.js +0 -2
- package/dist/cdn/H2V2RZ6M.js +0 -2
- package/dist/cdn/H3CSIYXV.js +0 -2
- package/dist/cdn/H5FX7Z53.js +0 -2
- package/dist/cdn/HA3MYKR7.js +0 -2
- package/dist/cdn/HEPYE6RX.js +0 -2
- package/dist/cdn/HETF33XY.js +0 -2
- package/dist/cdn/HF75SET4.js +0 -2
- package/dist/cdn/HH5PXKUQ.js +0 -2
- package/dist/cdn/HH7X5PFK.js +0 -2
- package/dist/cdn/HIJBZFJC.js +0 -2
- package/dist/cdn/HINK5GJN.js +0 -2
- package/dist/cdn/HITR5JF7.js +0 -2
- package/dist/cdn/HM2SQ34E.js +0 -2
- package/dist/cdn/HPOK6EKK.js +0 -2
- package/dist/cdn/HSFPILSC.js +0 -2
- package/dist/cdn/HSKNYFFN.js +0 -2
- package/dist/cdn/HSYH2RF2.js +0 -2
- package/dist/cdn/HTQGWSTE.js +0 -2
- package/dist/cdn/HTY7ODQW.js +0 -2
- package/dist/cdn/HTYDCXX6.js +0 -2
- package/dist/cdn/HUVYHMSC.js +0 -2
- package/dist/cdn/HUZVX2LX.js +0 -2
- package/dist/cdn/HV466M4A.js +0 -2
- package/dist/cdn/HWUCFNAD.js +0 -2
- package/dist/cdn/HYUPDCJS.js +0 -2
- package/dist/cdn/HZHPBMYE.js +0 -2
- package/dist/cdn/I3DM7WYF.js +0 -2
- package/dist/cdn/I3LGHXIN.js +0 -2
- package/dist/cdn/I6XITM7G.js +0 -14
- package/dist/cdn/I6ZBOCIY.js +0 -2
- package/dist/cdn/ICFGB4YA.js +0 -2
- package/dist/cdn/IDHZRKXF.js +0 -2
- package/dist/cdn/IEDSJLNB.js +0 -2
- package/dist/cdn/IGSOBBXK.js +0 -2
- package/dist/cdn/II3OUQDN.js +0 -2
- package/dist/cdn/IIAM2J7I.js +0 -2
- package/dist/cdn/IKDCKYJ5.js +0 -2
- package/dist/cdn/ILLXAWCL.js +0 -2
- package/dist/cdn/IONZ3SDQ.js +0 -2
- package/dist/cdn/IS7DQMPO.js +0 -2
- package/dist/cdn/ISFEEC67.js +0 -2
- package/dist/cdn/ISLB62MU.js +0 -2
- package/dist/cdn/IU5YH2S4.js +0 -2
- package/dist/cdn/IV7AWQ4I.js +0 -2
- package/dist/cdn/IXINH2FU.js +0 -2
- package/dist/cdn/IZ43EVPH.js +0 -2
- package/dist/cdn/J2P53GWU.js +0 -2
- package/dist/cdn/J4D2HORK.js +0 -2
- package/dist/cdn/J7JW6ADT.js +0 -2
- package/dist/cdn/JASFUUT6.js +0 -2
- package/dist/cdn/JBND67XM.js +0 -2
- package/dist/cdn/JEQW7KPC.js +0 -2
- package/dist/cdn/JG22JJ4C.js +0 -2
- package/dist/cdn/JI5AIZ2W.js +0 -2
- package/dist/cdn/JSOZV4HA.js +0 -2
- package/dist/cdn/JTE4CLWD.js +0 -2
- package/dist/cdn/JWQCCXL5.js +0 -2
- package/dist/cdn/JZB5X2MB.js +0 -2
- package/dist/cdn/K2DF2MZK.js +0 -2
- package/dist/cdn/K33RVKQD.js +0 -2
- package/dist/cdn/K3HMF5GC.js +0 -2
- package/dist/cdn/K4VVZ2OR.js +0 -2
- package/dist/cdn/K5O2OVOP.js +0 -2
- package/dist/cdn/K672BF4Z.js +0 -2
- package/dist/cdn/KA2RH2XA.js +0 -2
- package/dist/cdn/KBPJADC7.js +0 -57
- package/dist/cdn/KBYHLIWL.js +0 -2
- package/dist/cdn/KI2RNLIW.js +0 -2
- package/dist/cdn/KI6QCKOX.js +0 -2
- package/dist/cdn/KIEYQKES.js +0 -2
- package/dist/cdn/KKON6KFT.js +0 -2
- package/dist/cdn/KNZCVIQZ.js +0 -2
- package/dist/cdn/KQGFPGAG.js +0 -2
- package/dist/cdn/KUB4GMLQ.js +0 -2
- package/dist/cdn/KVTXAGQO.js +0 -2
- package/dist/cdn/KXGSUPO6.js +0 -2
- package/dist/cdn/KZOKH7DH.js +0 -2
- package/dist/cdn/L3H4QXUA.js +0 -2
- package/dist/cdn/L4D75PLE.js +0 -50
- package/dist/cdn/L4XSNBXO.js +0 -2
- package/dist/cdn/L6IQ6LTS.js +0 -2
- package/dist/cdn/LA2OL44Q.js +0 -2
- package/dist/cdn/LDJN5446.js +0 -2
- package/dist/cdn/LEVMADAS.js +0 -2
- package/dist/cdn/LG3VZTHJ.js +0 -2
- package/dist/cdn/LG5BO6HC.js +0 -2
- package/dist/cdn/LK454DSU.js +0 -2
- package/dist/cdn/LLGS7DKU.js +0 -2
- package/dist/cdn/LLX4O2ZL.js +0 -2
- package/dist/cdn/LNVYZ53G.js +0 -2
- package/dist/cdn/LPMAR4KQ.js +0 -2
- package/dist/cdn/LQ4GVKBA.js +0 -2
- package/dist/cdn/LVCMKKG7.js +0 -2
- package/dist/cdn/LY5D6DDL.js +0 -2
- package/dist/cdn/M3ZUOUC3.js +0 -6
- package/dist/cdn/M5TH54YS.js +0 -3
- package/dist/cdn/MAKNOF2E.js +0 -2
- package/dist/cdn/MBDZ6CTU.js +0 -2
- package/dist/cdn/MBJNG2TV.js +0 -2
- package/dist/cdn/MCXCKUVJ.js +0 -2
- package/dist/cdn/ME6P5KK5.js +0 -2
- package/dist/cdn/MGC3EC3F.js +0 -2
- package/dist/cdn/MIGVC3YS.js +0 -2
- package/dist/cdn/MILBEJO3.js +0 -2
- package/dist/cdn/MKMW2OIY.js +0 -2
- package/dist/cdn/MPHKEKH4.js +0 -2
- package/dist/cdn/MS3RNOP5.js +0 -2
- package/dist/cdn/MTV6GBRX.js +0 -2
- package/dist/cdn/MUN2QI43.js +0 -2
- package/dist/cdn/MUVLHU4H.js +0 -2
- package/dist/cdn/MWFTBYF7.js +0 -22
- package/dist/cdn/MYXIS5RQ.js +0 -2
- package/dist/cdn/N2SCAU7I.js +0 -2
- package/dist/cdn/N6GGGJDB.js +0 -2
- package/dist/cdn/N7CJXIRA.js +0 -2
- package/dist/cdn/NABNAFFZ.js +0 -2
- package/dist/cdn/NC3HXMKH.js +0 -2
- package/dist/cdn/NCTESU3D.js +0 -2
- package/dist/cdn/NE7SMAEP.js +0 -2
- package/dist/cdn/NFD3QJ6J.js +0 -2
- package/dist/cdn/NFY3ASEY.js +0 -2
- package/dist/cdn/NPWIO5CS.js +0 -2
- package/dist/cdn/NQJLGBVK.js +0 -2
- package/dist/cdn/NR4ANSZX.js +0 -2
- package/dist/cdn/NSMWYS6Z.js +0 -2
- package/dist/cdn/NUH2IEG5.js +0 -2
- package/dist/cdn/NW2YTW26.js +0 -2
- package/dist/cdn/NYFFZ52T.js +0 -2
- package/dist/cdn/NZG4KZHV.js +0 -2
- package/dist/cdn/O247GUBF.js +0 -2
- package/dist/cdn/OAFVLHOP.js +0 -2
- package/dist/cdn/OAR2EXND.js +0 -2
- package/dist/cdn/OB5GUG4Q.js +0 -2
- package/dist/cdn/OF3K6ILR.js +0 -2
- package/dist/cdn/OGP4ICMS.js +0 -2
- package/dist/cdn/OHGAZBGC.js +0 -2
- package/dist/cdn/OHHSI5BP.js +0 -2
- package/dist/cdn/OHRPOEMD.js +0 -2
- package/dist/cdn/OLBIGEZV.js +0 -2
- package/dist/cdn/OQNAOTWQ.js +0 -2
- package/dist/cdn/OQOFL4GS.js +0 -2
- package/dist/cdn/OYSFOPFK.js +0 -2
- package/dist/cdn/OZDJZBGR.js +0 -2
- package/dist/cdn/P32YXLHN.js +0 -2
- package/dist/cdn/P4SQ46RJ.js +0 -2
- package/dist/cdn/P5C64FCP.js +0 -2
- package/dist/cdn/P7D42LBQ.js +0 -2
- package/dist/cdn/PJFE4OSA.js +0 -2
- package/dist/cdn/PM6CSPJD.js +0 -2
- package/dist/cdn/PMG4LRKI.js +0 -2
- package/dist/cdn/PTT753DR.js +0 -2
- package/dist/cdn/PUDNBWDK.js +0 -2
- package/dist/cdn/PVUKIX2R.js +0 -2
- package/dist/cdn/PWESAKVV.js +0 -6
- package/dist/cdn/PXIEZUFC.js +0 -2
- package/dist/cdn/Q4GV7FFJ.js +0 -2
- package/dist/cdn/Q5A7L43T.js +0 -2
- package/dist/cdn/Q5LOYC24.js +0 -2
- package/dist/cdn/QA5B2Y37.js +0 -2
- package/dist/cdn/QFSHQXGM.js +0 -2
- package/dist/cdn/QK2OPJGK.js +0 -2
- package/dist/cdn/QK4D6OMO.js +0 -2
- package/dist/cdn/QMYN3FVH.js +0 -2
- package/dist/cdn/QQRKMUCB.js +0 -2
- package/dist/cdn/QQS6Z4FZ.js +0 -5468
- package/dist/cdn/QTIJHBJB.js +0 -2
- package/dist/cdn/QTKEVJG2.js +0 -2
- package/dist/cdn/QVFTGLEP.js +0 -2
- package/dist/cdn/QW4LROIM.js +0 -2
- package/dist/cdn/QWOHM2SY.js +0 -2
- package/dist/cdn/QYHIY3ME.js +0 -2
- package/dist/cdn/QYIYNECI.js +0 -2
- package/dist/cdn/R4PTOUBU.js +0 -2
- package/dist/cdn/R7CH3OBE.js +0 -2
- package/dist/cdn/R7OW7BC6.js +0 -2
- package/dist/cdn/RBHMRIVU.js +0 -2
- package/dist/cdn/RGKBSVQD.js +0 -2
- package/dist/cdn/RGTW5L2M.js +0 -2
- package/dist/cdn/RIMWN7PN.js +0 -4
- package/dist/cdn/RL2IUUBA.js +0 -2
- package/dist/cdn/RLTWZY2Y.js +0 -2
- package/dist/cdn/ROWHAGC5.js +0 -2
- package/dist/cdn/RPCTY5PP.js +0 -2
- package/dist/cdn/RPW6M2RS.js +0 -2
- package/dist/cdn/RTTSVKW2.js +0 -2
- package/dist/cdn/RTUW32PG.js +0 -2
- package/dist/cdn/RXVVMKTZ.js +0 -2
- package/dist/cdn/S2TL4ARK.js +0 -2
- package/dist/cdn/S57GAUCL.js +0 -3
- package/dist/cdn/S6DY4JGI.js +0 -2
- package/dist/cdn/S6XQNPGY.js +0 -2
- package/dist/cdn/SCTDVE2P.js +0 -2
- package/dist/cdn/SD326B2E.js +0 -2
- package/dist/cdn/SDXNFZ6Q.js +0 -2
- package/dist/cdn/SDZ7AXWI.js +0 -2
- package/dist/cdn/SEZVVM5Z.js +0 -2
- package/dist/cdn/SGM4YRBH.js +0 -2
- package/dist/cdn/SMQJD2L6.js +0 -2
- package/dist/cdn/SNHGQLES.js +0 -2
- package/dist/cdn/SNSHV52T.js +0 -2
- package/dist/cdn/SR3IHWFL.js +0 -2
- package/dist/cdn/SVAOM6PB.js +0 -2
- package/dist/cdn/SZJPVJS6.js +0 -2
- package/dist/cdn/T3M236GE.js +0 -2
- package/dist/cdn/TARH5FST.js +0 -2
- package/dist/cdn/TBD7PFFA.js +0 -2
- package/dist/cdn/TC2QNSUN.js +0 -2
- package/dist/cdn/TCBYBEBE.js +0 -2
- package/dist/cdn/TCCZ5S2A.js +0 -2
- package/dist/cdn/TFMTKJFO.js +0 -2
- package/dist/cdn/TGK6L2ZE.js +0 -2
- package/dist/cdn/TH5ZUUV3.js +0 -2
- package/dist/cdn/THLIDOGM.js +0 -2
- package/dist/cdn/TJLG5Q5Y.js +0 -2
- package/dist/cdn/TJMJIAXA.js +0 -2
- package/dist/cdn/TO5XR7VA.js +0 -2
- package/dist/cdn/TQ5M7ABM.js +0 -2
- package/dist/cdn/TVZTOZL7.js +0 -2
- package/dist/cdn/TWLLLMPH.js +0 -2
- package/dist/cdn/TXQQV57A.js +0 -2
- package/dist/cdn/U2H7HOIC.js +0 -2
- package/dist/cdn/U7SPPU37.js +0 -2
- package/dist/cdn/UA2PWQXW.js +0 -2
- package/dist/cdn/UADY5XO7.js +0 -2
- package/dist/cdn/UAGYDOBI.js +0 -2
- package/dist/cdn/UC7PCLBG.js +0 -2
- package/dist/cdn/UCBTNECN.js +0 -2
- package/dist/cdn/UCNRE4DW.js +0 -23
- package/dist/cdn/UCUSWPVC.js +0 -2
- package/dist/cdn/UEMRCQKF.js +0 -2
- package/dist/cdn/UGI23J3C.js +0 -2
- package/dist/cdn/UGPEDWIJ.js +0 -4
- package/dist/cdn/UJKN7G7W.js +0 -2
- package/dist/cdn/UJZ32HDH.js +0 -2
- package/dist/cdn/UMST4RFY.js +0 -2
- package/dist/cdn/UN6MRXZW.js +0 -2
- package/dist/cdn/UOAJQR2X.js +0 -2
- package/dist/cdn/UR5INQGU.js +0 -2
- package/dist/cdn/USNX342T.js +0 -2
- package/dist/cdn/UTLMCJD2.js +0 -2
- package/dist/cdn/UTQMJRMF.js +0 -2
- package/dist/cdn/UUGPYRMY.js +0 -2
- package/dist/cdn/UWA2UA4S.js +0 -2
- package/dist/cdn/UXDEAKSF.js +0 -2
- package/dist/cdn/UYYBCR75.js +0 -2
- package/dist/cdn/V33D2RRV.js +0 -2
- package/dist/cdn/V3U3RRL7.js +0 -2
- package/dist/cdn/V6SKJ43C.js +0 -2
- package/dist/cdn/V76BJGGX.js +0 -2
- package/dist/cdn/V7H25Z5U.js +0 -2
- package/dist/cdn/V7PXTC6I.js +0 -2
- package/dist/cdn/VANWWSL3.js +0 -2
- package/dist/cdn/VCGND4NR.js +0 -2
- package/dist/cdn/VFVNN33U.js +0 -2
- package/dist/cdn/VHIRPM4L.js +0 -2
- package/dist/cdn/VIC2IR7N.js +0 -2
- package/dist/cdn/VJ4I63OO.js +0 -2
- package/dist/cdn/VJWEGXQY.js +0 -2
- package/dist/cdn/VPJ4NGJ5.js +0 -2
- package/dist/cdn/VT5NU2WH.js +0 -2
- package/dist/cdn/VXJI546E.js +0 -2
- package/dist/cdn/W2VLXDRD.js +0 -39
- package/dist/cdn/W37GIL2C.js +0 -2
- package/dist/cdn/W57XOSMI.js +0 -2
- package/dist/cdn/W5FA4IWP.js +0 -10
- package/dist/cdn/W6BMVYH7.js +0 -2
- package/dist/cdn/W6GBJ4BL.js +0 -2
- package/dist/cdn/WBUC7HJI.js +0 -2
- package/dist/cdn/WEJLZVU6.js +0 -2
- package/dist/cdn/WFV47RA4.js +0 -4
- package/dist/cdn/WFWIIWQC.js +0 -2
- package/dist/cdn/WGUAKT5I.js +0 -2
- package/dist/cdn/WJED2YG7.js +0 -2
- package/dist/cdn/WJFIZ6DL.js +0 -2
- package/dist/cdn/WL6CGZLR.js +0 -2
- package/dist/cdn/WMNWHF5U.js +0 -2
- package/dist/cdn/WN7GK2WG.js +0 -2
- package/dist/cdn/WPADWRCH.js +0 -2
- package/dist/cdn/WTEVUXDK.js +0 -2
- package/dist/cdn/WTJOWA2D.js +0 -2
- package/dist/cdn/WTTSGDHM.js +0 -2
- package/dist/cdn/WU3HYV7B.js +0 -2
- package/dist/cdn/WVZNJMRA.js +0 -2
- package/dist/cdn/X5GRVXSY.js +0 -2
- package/dist/cdn/XGOWY36W.js +0 -2
- package/dist/cdn/XI72UBIK.js +0 -2
- package/dist/cdn/XIWVNNXH.js +0 -2
- package/dist/cdn/XKQTJFVJ.js +0 -2
- package/dist/cdn/XKUKAFLE.js +0 -2
- package/dist/cdn/XLV625TR.js +0 -2
- package/dist/cdn/XN55PVRJ.js +0 -2
- package/dist/cdn/XP6ZXTST.js +0 -2
- package/dist/cdn/XX3BCLUI.js +0 -2
- package/dist/cdn/XYUMPZMT.js +0 -2
- package/dist/cdn/XZDHV5BV.js +0 -2
- package/dist/cdn/Y7N6UKCC.js +0 -2
- package/dist/cdn/YBDFIKTN.js +0 -2
- package/dist/cdn/YCEXTCZD.js +0 -2
- package/dist/cdn/YDWT2GP5.js +0 -2
- package/dist/cdn/YHO7A5RX.js +0 -2
- package/dist/cdn/YKYTSHP4.js +0 -2
- package/dist/cdn/YLRR2XFD.js +0 -2
- package/dist/cdn/YMX7NNEY.js +0 -3
- package/dist/cdn/YQMHCSXF.js +0 -2
- package/dist/cdn/YRCBIK2Y.js +0 -2
- package/dist/cdn/YVXHYFKJ.js +0 -2
- package/dist/cdn/YWXDWRYJ.js +0 -2
- package/dist/cdn/YXKNVWVS.js +0 -2
- package/dist/cdn/Z2Z5RGR2.js +0 -2
- package/dist/cdn/Z3TOG5XS.js +0 -2
- package/dist/cdn/Z756THCU.js +0 -2
- package/dist/cdn/Z7Q6BWC3.js +0 -2
- package/dist/cdn/ZC36M5LD.js +0 -2
- package/dist/cdn/ZCQJ26PE.js +0 -2
- package/dist/cdn/ZFP6AZG7.js +0 -2
- package/dist/cdn/ZKXOPB4E.js +0 -2
- package/dist/cdn/ZM3EAORZ.js +0 -2
- package/dist/cdn/ZNEDALBA.js +0 -2
- package/dist/cdn/ZQPTNYU6.js +0 -2
- package/dist/cdn/ZR5F7KBC.js +0 -2
- package/dist/cdn/ZT74OVX5.js +0 -2
- package/dist/cdn/ZUFDLSS7.js +0 -2
- package/dist/cdn/ZVGAVULD.js +0 -2
- package/dist/cdn/ZX3NL6MQ.js +0 -2
- package/dist/cdn/ZXTOK4AF.js +0 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{i as S}from"./JKGOCFVC.js";var u=class{source;flags;constructor(e,t=""){this.source=e.source,this.flags=t}setGroup(e,t){let n=typeof t=="string"?t:t.source;return n=n.replace(/(^|[^\[])\^/g,"$1"),this.source=this.source.replace(e,n),this}getRegexp(){return new RegExp(this.source,this.flags)}};var y=/[&<>"']/,L=/[&<>"']/g,G={"&":"&","<":"<",">":">",'"':""","'":"'"},_=/[<>"']|&(?!#?\w+;)/,E=/[<>"']|&(?!#?\w+;)/g;function B(r,e){if(e){if(y.test(r))return r.replace(L,t=>G[t])}else if(_.test(r))return r.replace(E,t=>G[t]);return r}function I(r){return r.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var o;(function(r){r[r.space=1]="space",r[r.text=2]="text",r[r.paragraph=3]="paragraph",r[r.heading=4]="heading",r[r.listStart=5]="listStart",r[r.listEnd=6]="listEnd",r[r.looseItemStart=7]="looseItemStart",r[r.looseItemEnd=8]="looseItemEnd",r[r.listItemStart=9]="listItemStart",r[r.listItemEnd=10]="listItemEnd",r[r.blockquoteStart=11]="blockquoteStart",r[r.blockquoteEnd=12]="blockquoteEnd",r[r.code=13]="code",r[r.table=14]="table",r[r.html=15]="html",r[r.hr=16]="hr"})(o||(o={}));var $=class{gfm=!0;tables=!0;breaks=!1;pedantic=!1;sanitize=!1;sanitizer;mangle=!0;smartLists=!1;silent=!1;highlight;langPrefix="lang-";smartypants=!1;headerPrefix="";renderer;xhtml=!1;escape=B;unescape=I;isNoP};var k=class{options;constructor(e){this.options=e||g.options}code(e,t,n,s){if(this.options.highlight){let a=this.options.highlight(e,t);a!=null&&a!==e&&(n=!0,e=a)}let i=n?e:this.options.escape(e,!0);return t?`
|
|
3
|
+
<pre><code class="${this.options.langPrefix+this.options.escape(t,!0)}">${i}
|
|
4
|
+
</code></pre>
|
|
5
|
+
`:`
|
|
6
|
+
<pre><code>${i}
|
|
7
|
+
</code></pre>
|
|
8
|
+
`}blockquote(e){return`<blockquote>
|
|
9
|
+
${e}</blockquote>
|
|
10
|
+
`}html(e){return e}heading(e,t,n){let s=this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-");return`<h${t} id="${s}">${e}</h${t}>
|
|
11
|
+
`}hr(){return this.options.xhtml?`<hr/>
|
|
12
|
+
`:`<hr>
|
|
13
|
+
`}list(e,t){let n=t?"ol":"ul";return`
|
|
14
|
+
<${n}>
|
|
15
|
+
${e}</${n}>
|
|
16
|
+
`}listitem(e){return"<li>"+e+`</li>
|
|
17
|
+
`}paragraph(e){return"<p>"+e+`</p>
|
|
18
|
+
`}table(e,t){return`
|
|
19
|
+
<table>
|
|
20
|
+
<thead>
|
|
21
|
+
${e}</thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
${t}</tbody>
|
|
24
|
+
</table>
|
|
25
|
+
`}tablerow(e){return`<tr>
|
|
26
|
+
`+e+`</tr>
|
|
27
|
+
`}tablecell(e,t){let n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+`>
|
|
28
|
+
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(this.options.sanitize){let i;try{i=decodeURIComponent(this.options.unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return n}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return n}let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+n+"</a>",s}image(e,t,n){let s='<img src="'+e+'" alt="'+n+'"';return t&&(s+=' title="'+t+'"'),s+=this.options.xhtml?"/>":">",s}text(e){return e}};var f=class{staticThis;links;options;static rulesBase=null;static rulesPedantic=null;static rulesGfm=null;static rulesBreaks=null;rules;renderer;inLink;hasRulesGfm;ruleCallbacks;constructor(e,t,n=g.options,s){if(this.staticThis=e,this.links=t,this.options=n,this.renderer=s||this.options.renderer||new k(this.options),!this.links)throw new Error("InlineLexer requires 'links' parameter.");this.setRules()}static output(e,t,n){return new this(this,t,n).output(e)}static getRulesBase(){if(this.rulesBase)return this.rulesBase;let e={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ <>]+(@|:\/)[^ <>]+)>/,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^<'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)([\s\S]*?[^`])\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,_inside:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,_href:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};return e.link=new u(e.link).setGroup("inside",e._inside).setGroup("href",e._href).getRegexp(),e.reflink=new u(e.reflink).setGroup("inside",e._inside).getRegexp(),this.rulesBase=e}static getRulesPedantic(){return this.rulesPedantic?this.rulesPedantic:this.rulesPedantic={...this.getRulesBase(),strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}}static getRulesGfm(){if(this.rulesGfm)return this.rulesGfm;let e=this.getRulesBase(),t=new u(e.escape).setGroup("])","~|])").getRegexp(),n=new u(e.text).setGroup("]|","~]|").setGroup("|","|https?://|").getRegexp();return this.rulesGfm={...e,escape:t,url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:n}}static getRulesBreaks(){if(this.rulesBreaks)return this.rulesBreaks;let e=this.getRulesGfm(),t=this.getRulesGfm();return this.rulesBreaks={...t,br:new u(e.br).setGroup("{2,}","*").getRegexp(),text:new u(t.text).setGroup("{2,}","*").getRegexp()}}setRules(){this.options.gfm?this.options.breaks?this.rules=this.staticThis.getRulesBreaks():this.rules=this.staticThis.getRulesGfm():this.options.pedantic?this.rules=this.staticThis.getRulesPedantic():this.rules=this.staticThis.getRulesBase(),this.hasRulesGfm=this.rules.url!==void 0}output(e){let t,n="";for(;e;){if(t=this.rules.escape.exec(e)){e=e.substring(t[0].length),n+=t[1];continue}if(t=this.rules.autolink.exec(e)){let s,i;e=e.substring(t[0].length),t[2]==="@"?(s=this.options.escape(t[1].charAt(6)===":"?this.mangle(t[1].substring(7)):this.mangle(t[1])),i=this.mangle("mailto:")+s):(s=this.options.escape(t[1]),i=s),n+=this.renderer.link(i,null,s);continue}if(!this.inLink&&this.hasRulesGfm&&(t=this.rules.url.exec(e))){e=e.substring(t[0].length);let s=this.options.escape(t[1]),i=s;n+=this.renderer.link(i,null,s);continue}if(t=this.rules.tag.exec(e)){!this.inLink&&/^<a /i.test(t[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(t[0])&&(this.inLink=!1),e=e.substring(t[0].length),n+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):this.options.escape(t[0]):t[0];continue}if(t=this.rules.link.exec(e)){e=e.substring(t[0].length),this.inLink=!0,n+=this.outputLink(t,{href:t[2],title:t[3]}),this.inLink=!1;continue}if((t=this.rules.reflink.exec(e))||(t=this.rules.nolink.exec(e))){e=e.substring(t[0].length);let s=(t[2]||t[1]).replace(/\s+/g," "),i=this.links[s.toLowerCase()];if(!i||!i.href){n+=t[0].charAt(0),e=t[0].substring(1)+e;continue}this.inLink=!0,n+=this.outputLink(t,i),this.inLink=!1;continue}if(t=this.rules.strong.exec(e)){e=e.substring(t[0].length),n+=this.renderer.strong(this.output(t[2]||t[1]));continue}if(t=this.rules.em.exec(e)){e=e.substring(t[0].length),n+=this.renderer.em(this.output(t[2]||t[1]));continue}if(t=this.rules.code.exec(e)){e=e.substring(t[0].length),n+=this.renderer.codespan(this.options.escape(t[2].trim(),!0));continue}if(t=this.rules.br.exec(e)){e=e.substring(t[0].length),n+=this.renderer.br();continue}if(this.hasRulesGfm&&(t=this.rules.del.exec(e))){e=e.substring(t[0].length),n+=this.renderer.del(this.output(t[1]));continue}if(t=this.rules.text.exec(e)){e=e.substring(t[0].length),n+=this.renderer.text(this.options.escape(this.smartypants(t[0])));continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return n}outputLink(e,t){let n=this.options.escape(t.href),s=t.title?this.options.escape(t.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(n,s,this.output(e[1])):this.renderer.image(n,s,this.options.escape(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/([{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/([{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):e}mangle(e){if(!this.options.mangle)return e;let t="",n=e.length;for(let s=0;s<n;s++){let i;Math.random()>.5&&(i="x"+e.charCodeAt(s).toString(16)),t+="&#"+i+";"}return t}};var m=class{simpleRenderers=[];tokens;token;inlineLexer;options;renderer;line=0;constructor(e){this.tokens=[],this.token=null,this.options=e||g.options,this.renderer=this.options.renderer||new k(this.options)}static parse(e,t,n){return new this(n).parse(t,e)}parse(e,t){this.inlineLexer=new f(f,e,this.options,this.renderer),this.tokens=t.reverse();let n="";for(;this.next();)n+=this.tok();return n}debug(e,t){this.inlineLexer=new f(f,e,this.options,this.renderer),this.tokens=t.reverse();let n="";for(;this.next();){let s=this.tok();this.token.line=this.line+=s.split(`
|
|
29
|
+
`).length-1,n+=s}return n}next(){return this.token=this.tokens.pop()}getNextElement(){return this.tokens[this.tokens.length-1]}parseText(){let e=this.token.text,t;for(;(t=this.getNextElement())&&t.type==o.text;)e+=`
|
|
30
|
+
`+this.next().text;return this.inlineLexer.output(e)}tok(){switch(this.token.type){case o.space:return"";case o.paragraph:return this.renderer.paragraph(this.inlineLexer.output(this.token.text));case o.text:return this.options.isNoP?this.parseText():this.renderer.paragraph(this.parseText());case o.heading:return this.renderer.heading(this.inlineLexer.output(this.token.text),this.token.depth,this.token.text);case o.listStart:{let e="",t=this.token.ordered;for(;this.next().type!=o.listEnd;)e+=this.tok();return this.renderer.list(e,t)}case o.listItemStart:{let e="";for(;this.next().type!=o.listItemEnd;)e+=this.token.type==o.text?this.parseText():this.tok();return this.renderer.listitem(e)}case o.looseItemStart:{let e="";for(;this.next().type!=o.listItemEnd;)e+=this.tok();return this.renderer.listitem(e)}case o.code:return this.renderer.code(this.token.text,this.token.lang,this.token.escaped,this.token.meta);case o.table:{let e="",t="",n;n="";for(let s=0;s<this.token.header.length;s++){let i={header:!0,align:this.token.align[s]},l=this.inlineLexer.output(this.token.header[s]);n+=this.renderer.tablecell(l,i)}e+=this.renderer.tablerow(n);for(let s of this.token.cells){n="";for(let i=0;i<s.length;i++)n+=this.renderer.tablecell(this.inlineLexer.output(s[i]),{header:!1,align:this.token.align[i]});t+=this.renderer.tablerow(n)}return this.renderer.table(e,t)}case o.blockquoteStart:{let e="";for(;this.next().type!=o.blockquoteEnd;)e+=this.tok();return this.renderer.blockquote(e)}case o.hr:return this.renderer.hr();case o.html:{let e=!this.token.pre&&!this.options.pedantic?this.inlineLexer.output(this.token.text):this.token.text;return this.renderer.html(e)}default:{if(this.simpleRenderers.length){for(let t=0;t<this.simpleRenderers.length;t++)if(this.token.type=="simpleRule"+(t+1))return this.simpleRenderers[t].call(this.renderer,this.token.execArr)}let e=`Token with "${this.token.type}" type was not found.`;if(this.options.silent)console.log(e);else throw new Error(e)}}}};var g=class{static options=new $;static simpleRenderers=[];static setOptions(e){return Object.assign(this.options,e),this}static setBlockRule(e,t=()=>""){return x.simpleRules.push(e),this.simpleRenderers.push(t),this}static parse(e,t){try{t={...this.options,...t};let{tokens:n,links:s}=this.callBlockLexer(e,t);return this.callParser(n,s,t)}catch(n){return this.callMe(n)}}static debug(e,t=this.options){let{tokens:n,links:s}=this.callBlockLexer(e,t),i=n.slice(),l=new m(t);l.simpleRenderers=this.simpleRenderers;let a=l.debug(s,n);return i=i.map(h=>{h.type=o[h.type]||h.type;let d=h.line;return delete h.line,d?{line:d,...h}:h}),{tokens:i,links:s,result:a}}static callBlockLexer(e="",t){if(typeof e!="string")throw new Error(`Expected that the 'src' parameter would have a 'string' type, got '${typeof e}'`);return e=e.replace(/\r\n|\r/g,`
|
|
31
|
+
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
|
|
32
|
+
`).replace(/^ +$/gm,""),x.lex(e,t,!0)}static callParser(e,t,n){if(this.simpleRenderers.length){let s=new m(n);return s.simpleRenderers=this.simpleRenderers,s.parse(t,e)}else return m.parse(e,t,n)}static callMe(e){if(e.message+=`
|
|
33
|
+
Please report this to https://github.com/ts-stack/markdown`,this.options.silent)return"<p>An error occured:</p><pre>"+this.options.escape(e.message+"",!0)+"</pre>";throw e}};var x=class{staticThis;static simpleRules=[];static rulesBase=null;static rulesGfm=null;static rulesTables=null;rules;options;links={};tokens=[];hasRulesGfm;hasRulesTables;constructor(e,t){this.staticThis=e,this.options=t||g.options,this.setRules()}static lex(e,t,n,s){return new this(this,t).getTokens(e,n,s)}static getRulesBase(){if(this.rulesBase)return this.rulesBase;let e={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};e.item=new u(e.item,"gm").setGroup(/bull/g,e.bullet).getRegexp(),e.list=new u(e.list).setGroup(/bull/g,e.bullet).setGroup("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))").setGroup("def","\\n+(?="+e.def.source+")").getRegexp();let t="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";return e.html=new u(e.html).setGroup("comment",/<!--[\s\S]*?-->/).setGroup("closed",/<(tag)[\s\S]+?<\/\1>/).setGroup("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/).setGroup(/tag/g,t).getRegexp(),e.paragraph=new u(e.paragraph).setGroup("hr",e.hr).setGroup("heading",e.heading).setGroup("lheading",e.lheading).setGroup("blockquote",e.blockquote).setGroup("tag","<"+t).setGroup("def",e.def).getRegexp(),this.rulesBase=e}static getRulesGfm(){if(this.rulesGfm)return this.rulesGfm;let e=this.getRulesBase(),t={...e,fences:/^ *(`{3,}|~{3,})[ \.]*((\S+)? *[^\n]*)\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/},n=t.fences.source.replace("\\1","\\2"),s=e.list.source.replace("\\1","\\3");return t.paragraph=new u(e.paragraph).setGroup("(?!",`(?!${n}|${s}|`).getRegexp(),this.rulesGfm=t}static getRulesTable(){return this.rulesTables?this.rulesTables:this.rulesTables={...this.getRulesGfm(),nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}}setRules(){this.options.gfm?this.options.tables?this.rules=this.staticThis.getRulesTable():this.rules=this.staticThis.getRulesGfm():this.rules=this.staticThis.getRulesBase(),this.hasRulesGfm=this.rules.fences!==void 0,this.hasRulesTables=this.rules.table!==void 0}getTokens(e,t,n){let s=e,i;e:for(;s;){if((i=this.rules.newline.exec(s))&&(s=s.substring(i[0].length),i[0].length>1&&this.tokens.push({type:o.space})),i=this.rules.code.exec(s)){s=s.substring(i[0].length);let l=i[0].replace(/^ {4}/gm,"");this.tokens.push({type:o.code,text:this.options.pedantic?l:l.replace(/\n+$/,"")});continue}if(this.hasRulesGfm&&(i=this.rules.fences.exec(s))){s=s.substring(i[0].length),this.tokens.push({type:o.code,meta:i[2],lang:i[3],text:i[4]||""});continue}if(i=this.rules.heading.exec(s)){s=s.substring(i[0].length),this.tokens.push({type:o.heading,depth:i[1].length,text:i[2]});continue}if(t&&this.hasRulesTables&&(i=this.rules.nptable.exec(s))){s=s.substring(i[0].length);let l={type:o.table,header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:[]};for(let h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;let a=i[3].replace(/\n$/,"").split(`
|
|
34
|
+
`);for(let h=0;h<a.length;h++)l.cells[h]=a[h].split(/ *\| */);this.tokens.push(l);continue}if(i=this.rules.lheading.exec(s)){s=s.substring(i[0].length),this.tokens.push({type:o.heading,depth:i[2]==="="?1:2,text:i[1]});continue}if(i=this.rules.hr.exec(s)){s=s.substring(i[0].length),this.tokens.push({type:o.hr});continue}if(i=this.rules.blockquote.exec(s)){s=s.substring(i[0].length),this.tokens.push({type:o.blockquoteStart});let l=i[0].replace(/^ *> ?/gm,"");this.getTokens(l),this.tokens.push({type:o.blockquoteEnd});continue}if(i=this.rules.list.exec(s)){s=s.substring(i[0].length);let l=i[2];this.tokens.push({type:o.listStart,ordered:l.length>1});let a=i[0].match(this.rules.item),h=a.length,d=!1,w,R,b;for(let p=0;p<h;p++){let c=a[p];w=c.length,c=c.replace(/^ *([*+-]|\d+\.) +/,""),c.indexOf(`
|
|
35
|
+
`)!==-1&&(w-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+w+"}","gm"),"")),this.options.smartLists&&p!==h-1&&(R=this.staticThis.getRulesBase().bullet.exec(a[p+1])[0],l!==R&&!(l.length>1&&R.length>1)&&(s=a.slice(p+1).join(`
|
|
36
|
+
`)+s,p=h-1)),b=d||/\n\n(?!\s*$)/.test(c),p!==h-1&&(d=c.charAt(c.length-1)===`
|
|
37
|
+
`,b||(b=d)),this.tokens.push({type:b?o.looseItemStart:o.listItemStart}),this.getTokens(c,!1,n),this.tokens.push({type:o.listItemEnd})}this.tokens.push({type:o.listEnd});continue}if(i=this.rules.html.exec(s)){s=s.substring(i[0].length);let l=i[1],a=l==="pre"||l==="script"||l==="style";this.tokens.push({type:this.options.sanitize?o.paragraph:o.html,pre:!this.options.sanitizer&&a,text:i[0]});continue}if(t&&(i=this.rules.def.exec(s))){s=s.substring(i[0].length),this.links[i[1].toLowerCase()]={href:i[2],title:i[3]};continue}if(t&&this.hasRulesTables&&(i=this.rules.table.exec(s))){s=s.substring(i[0].length);let l={type:o.table,header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:[]};for(let h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;let a=i[3].replace(/(?: *\| *)?\n$/,"").split(`
|
|
38
|
+
`);for(let h=0;h<a.length;h++)l.cells[h]=a[h].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l);continue}if(this.staticThis.simpleRules.length){let l=this.staticThis.simpleRules;for(let a=0;a<l.length;a++)if(i=l[a].exec(s)){s=s.substring(i[0].length);let h="simpleRule"+(a+1);this.tokens.push({type:h,execArr:i});continue e}}if(t&&(i=this.rules.paragraph.exec(s))){s=s.substring(i[0].length),i[1].slice(-1)===`
|
|
39
|
+
`?this.tokens.push({type:o.paragraph,text:i[1].slice(0,-1)}):this.tokens.push({type:this.tokens.length>0?o.paragraph:o.text,text:i[1]});continue}if(i=this.rules.text.exec(s)){s=s.substring(i[0].length),this.tokens.push({type:o.text,text:i[0]});continue}if(s)throw new Error("Infinite loop on byte: "+s.charCodeAt(0)+`, near text '${s.slice(0,30)}...'`)}return{tokens:this.tokens,links:this.links}}};var q=r=>{let e=/https?:\/\/[^\s]+[^. ]/gu;return r.replace(e,"<a href='$&' target='_new'>$&</a>")},N=r=>{if(!r)return"";let e=r.replace(/(?:\r\n|\r|\n|\\n)/gu,"<br>");return e=e.replace(/(\\")/gu,"'"),e=e.replace(/(")/gu,""),e=e.replace(/AI: /gu,""),e=g.parse(e),e.match(/href/u)||(e=q(e)),e=e.replace(/<a href=/gu,'<a target="_new" href='),e},z=(r,e)=>{switch(!0){case r.type.includes("Site"):return r.url;case r.type.includes("Page"):return`https://${e}/pages/${r.id}`;case r.type.includes("Service"):return`https://${e}/maps/${r.id}`;case r.type.includes("Document"):return`https://${e}/documents/${r.id}`;default:return`https://${e}/content/${r.id}`}};function F(r){let e=["Feature Service","FeatureLayer","Feature Layer","Map Service","Image Service","KML","WMS","WMTS","WFS","OGCFeatureServer"],t=!1;return r&&e.includes(r)&&(t=!0),t}var O=async(r,e)=>await Promise.all(r.map(async t=>await C(t,e))),C=async(r,e)=>{let t=structuredClone(r);try{let n=await S(r.id,{authentication:e});return t.thumbnail=n.thumbnail,t.url=n.url,t.type=n.type,t}catch{console.error("Could not enrich:",r)}return t};function j(r){return!!r&&typeof r=="object"&&"kind"in r&&r.kind==="FinderResponse"}function W(r,e){let t=e?Number.parseInt(e):NaN;return r.find(n=>!!n.messageId&&n.messageId===t)}function D(r){let e=["loadingMessage1","loadingMessage2","loadingMessage3","loadingMessage4","loadingMessage5","loadingMessage6","loadingMessage7"],t=Math.floor(Math.random()*e.length),n=e[t];return r[n]}export{N as a,z as b,F as c,O as d,j as e,W as f,D as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as $}from"./QUDAZ77Y.js";import{c as w}from"./MIV7EHSX.js";import{a as M}from"./KRXEHAAE.js";import{a as D}from"./MX2LFKDN.js";import{a as _}from"./VNEAUDVI.js";import{b}from"./DXTZVNWA.js";import"./ULND2AHT.js";import{a as g}from"./UXXI3SQO.js";import"./PVJYYXFI.js";import{g as v}from"./D3BILNAQ.js";import"./FO7JXNJA.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as f}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import{a as y}from"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import{j as m,s as p}from"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as h}from"./RUVOYVVB.js";import{b as n,c,d as I,h as l,i as u}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:T}])=>{var k=":host{display:flex}iframe{border:none;width:100%;overflow:hidden}.scrollable{overflow:scroll}",L=k,S=class{constructor(t){u(this,t),this.src=void 0,this.iframeTitle=void 0,this.height=150,this.isScrollable=!1,this.autoplay=!1,this.camera=!1,this.clipboardRead=!1,this.clipboardWrite=!1,this.displayCapture=!1,this.fullscreen=!1,this.geolocation=!1,this.microphone=!1}get _context(){return T()}get _allow(){let t=["local-network-access;"];try{let e=new URL(this.src).origin;this.autoplay&&t.push(`autoplay ${e};`),this.camera&&t.push(`camera ${e};`),this.clipboardRead&&t.push(`clipboard-read ${e};`),this.clipboardWrite&&t.push(`clipboard-write ${e};`),this.displayCapture&&t.push(`display-capture ${e};`),this.fullscreen&&t.push(`fullscreen ${e};`),this.geolocation&&t.push(`geolocation ${e};`),this.microphone&&t.push(`microphone ${e};`)}catch(e){h.warn(e)}return t.join(" ")}get _iframeSrc(){return w(this.src)?this.src:void 0}get embeddedAuthSrc(){var t,e;return $(this._iframeSrc,(t=this._context)===null||t===void 0?void 0:t.portalUrl,window.location.origin,(e=this._context)===null||e===void 0?void 0:e.session)}renderIframe(){return this._iframeSrc&&n("iframe",{allow:this._allow,class:{scrollable:this.isScrollable},"data-src":this.embeddedAuthSrc,height:this.height,src:this.embeddedAuthSrc,title:this.iframeTitle})}render(){return n(c,{key:"f5a80a43e8cd3cf79b5439ba23b962ac114aca24","data-element":"embed"},this.renderIframe())}};S.style=L;var F=':host{display:block}.metadata-list-header{font-size:1.125rem;font-weight:600}.entity-metadata-list{list-style:none;padding:0}.metadata-item{margin-top:1.25rem;display:grid;gap:1rem;grid-template-areas:"icon text-column";grid-template-columns:auto 1fr}calcite-avatar,calcite-icon{grid-area:icon;align-self:center}.metadata-item-text-column{display:flex;flex-direction:column;gap:0.25rem;min-width:0;width:100%;grid-area:text-column}.metadata-item-title,.metadata-item-description{display:block;min-width:0;width:100%}.metadata-item-title{font-size:1rem;line-height:1rem;font-weight:600}.metadata-item-description{font-size:1rem;line-height:1rem;font-weight:400}',R=F,x=function(t,e,i,a){var s=arguments.length,r=s<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,i):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,i,a);else for(var d=t.length-1;d>=0;d--)(o=t[d])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},C=class{constructor(t){u(this,t),this.defaultMetadataList=["owner","access","createdDate","updatedDate","location"],this.templateMetadataList=["type","updatedDate","createdDate","access","license"],this.initiativeTemplateMetadataList=["type","updatedDate","createdDate","access","license"],this.groupMetadataList=["access","members","createdDate"],this.userMetadataList=["createdDate","access"],this.surveyMetadataList=["type","updatedDate","createdDate","access","license"],this.eventMetadataList=["dateRange","access"],this.entity=void 0,this.exclude=[],this.additionalMetadata=[],this.listHeader=void 0,this.headingLevel=2,this.hasMapFooterSlot=!1,this.openModal=void 0}async componentWillLoad(){this.intl=await f.loadIntlForComponent(this.element),this.hasMapFooterSlot=!!this.element.querySelector(".content-media")}formatMetadataDate(t,e){let i=new Date(t),s={year:{year:"numeric"},month:{month:"short",year:"numeric"},day:{year:"numeric",month:"short",day:"numeric"},time:{month:"short",day:"numeric",year:"numeric",minute:"numeric",hour:"numeric",second:"numeric",timeZoneName:"short"}}[e]||{year:"numeric",month:"short",day:"numeric"};return this.intl.formatDate(i,s)}get licenseModal(){return{id:"20241115-entity-metadata-license-modal",configuration:{noticeType:"modal",kind:"info",scale:"m"},title:"License",message:b(this.entity.licenseInfo||"")}}get _entityType(){return this.entity.type==="team"?"group":this.entity.type==="user"?"user":this.entity.type==="survey"?"content":y(this.entity)}get accessMetadataItem(){var t;let e=(t=this.entity)===null||t===void 0?void 0:t.access,i=this.intl.t(`access.description.${e}.default`);return e?{icon:M(e),title:this.intl.t(`access.label.${e}`),description:{value:this.intl.t(`access.description.${e}.${this._entityType}`,void 0,{fallback:i})},type:"access"}:void 0}get createdDateMetadataItem(){var t,e;let i=((t=this.entity)===null||t===void 0?void 0:t.createdDate)||((e=this.entity)===null||e===void 0?void 0:e.created);return i?{icon:"calendar",title:this.formatMetadataDate(i,"time"),description:{value:this.intl.t(`${this._entityType==="user"?"joinedDate":"createdDate"}.description`)},type:"createdDate"}:void 0}get updatedDateMetadataItem(){var t,e;let i=((t=this.entity)===null||t===void 0?void 0:t.updatedDate)||((e=this.entity)===null||e===void 0?void 0:e.modified);if(!i)return;let a,s,{updateFrequency:r}=this.entity,o=this.formatMetadataDate(i,"time");return r?(a=this.intl.t(`updateFrequency.${r}`),s=this.intl.t("updatedDate.descriptionWithFrequency",{updatedDateFormatted:o})):(a=o,s=this.intl.t("updatedDate.description")),{icon:"clock-forward",title:a,description:{value:s},type:"updatedDate"}}get ownerMetadataItem(){var t;let e=(t=this.entity)===null||t===void 0?void 0:t.owner;return e?{icon:"owner",title:e,description:{value:this.intl.t("owner.description")},type:"owner"}:void 0}get typeMetadataItem(){let t=this.entity.type,e=this.intl.t(`type.${m(t)}`);return e.includes("arcgis-hub-entity-metadata")&&(e=this.intl.t(`type.fallback.${this._entityType}`)),t?{icon:v(t),title:e,description:{value:p(t)},type:"type"}:void 0}get licenseMetadataItem(){let t=D(this.entity.licenseInfo),e,i;if(t.type==="none")e=this.intl.t("license.unset.title"),i={value:this.intl.t("license.unset.description.value")};else if(t.type==="custom")e=this.intl.t("license.set.customTitle"),i={value:this.intl.t("license.set.description.value"),modal:this.licenseModal};else{let a=t.type.split("-").reverse()[0];e=this.intl.t("license.set.title",{license:t?.abbr.endsWith(a)?t.abbr:`${t.abbr} ${a}`}),i={value:this.intl.t("license.set.description.value"),link:{url:t.url,target:"_blank",iconEnd:"launch"}}}return t?{icon:"lock",title:e,description:i,tooltip:this.intl.t("license.tooltip"),type:"license"}:void 0}get locationMetadataItem(){var t,e,i,a,s;let r=(e=(t=this.entity.location)===null||t===void 0?void 0:t.name)!==null&&e!==void 0?e:(s=(a=(i=this.entity.item)===null||i===void 0?void 0:i.properties)===null||a===void 0?void 0:a.location)===null||s===void 0?void 0:s.name;return r?{icon:"pin",title:r,description:{value:this.intl.t("location.description")},type:"location"}:void 0}get sizeMetadataItem(){let t=this.entity.size;return t?{title:_(t),description:{value:this.intl.t("size.description.value")},icon:"file",type:"size"}:void 0}get membersMetadataItem(){let t=this.entity.memberCount,e;return t===0?e=this.intl.t("members.noMember"):t===1?e=this.intl.t("members.oneMember"):e=this.intl.t("members.members",{count:t}),{title:e,description:{value:this.intl.t("members.description.value"),link:{url:`/groups/${this.entity.id}/members`}},icon:"users",type:"members"}}get recordCountMetadataItem(){let t=this.entity.recordCount;return t!=null?{title:this.intl.t("recordCount.title",{count:t}),description:{value:this.intl.t("recordCount.description.value"),link:{url:`/datasets/${this.entity.id}/explore?showTable=true`}},icon:"tables",type:"recordCount"}:void 0}get metadataModifiedMetadataItem(){let{metadataUpdatedDate:t,metadataUpdateFrequency:e}=this.entity,i=this.formatMetadataDate(t,"time");if(!i)return;let a=this.intl.t("metadataModified.description.defaultValue");return e?{title:this.intl.t(`updateFrequency.${e}`),description:{value:this.intl.t("metadataModified.description.dynamicValue",{lastUpdated:i})},icon:"information",type:"metadataModified"}:{title:i,description:{value:a},icon:"information",type:"metadataModified"}}get dateRangeMetadataItem(){let{startDateTime:t,endDateTime:e,isAllDay:i}=this.entity;return i?{icon:"calendar",title:this.intl.t("dateRange.allDay",{dateString:this.intl.formatDateTimeRange(t,e,{dateStyle:"full"})}),description:{value:this.intl.t("dateRange.description.value")},type:"dateRange"}:{icon:"calendar",title:this.intl.formatDateTimeRange(t,e,{dateStyle:"full",timeStyle:"long"}),description:{value:this.intl.t("dateRange.description.value")},type:"dateRange"}}get contentMetadataList(){switch(this.entity.family){case"document":return["type","updatedDate","createdDate","size","access","license"];case"dataset":return["type","metadataModified","updatedDate","createdDate","recordCount","access","license"];case"team":return this.groupMetadataList;case"map":default:return["type","updatedDate","createdDate","access","license"]}}get metadata(){var t;let e=this[`${this._entityType}MetadataList`]||this.defaultMetadataList,i=!((t=this.exclude)===null||t===void 0)&&t.length?this.exclude:[];return e.reduce((a,s)=>{if(!i.includes(s)){let r=this[`${s}MetadataItem`];r&&a.push(r)}return a},[])}renderIcon(t){var e;return t.icon==="owner"?n("calcite-avatar",{scale:"s",username:(e=this.entity)===null||e===void 0?void 0:e.owner}):n("calcite-icon",{icon:t?.icon,scale:"m"})}renderDescription(t){var e,i;if(t?.description){if(!((e=t.description)===null||e===void 0)&&e.link)return n("calcite-link",{class:`metadata-item-description ${t?.type}`,href:t.description.link.url,iconEnd:t.description.link.iconEnd,iconStart:t.description.link.iconStart,target:t.description.link.target},t.description.value);if(!((i=t.description)===null||i===void 0)&&i.modal){let a=()=>{this.openModal=t.description.modal.id},s=()=>{this.openModal=void 0};return n(l,null,n("calcite-link",{class:`metadata-item-description ${t?.type}`,onClick:a},t.description.value),n("arcgis-wormhole",null,n("calcite-dialog",{heading:t.description.modal.title,modal:!0,onCalciteDialogClose:s,open:this.openModal===t.description.modal.id},t.description.modal.message&&n("div",{innerHTML:t.description.modal.message}))))}else return n("span",{class:`metadata-item-description ${t?.type}`},t.description.value)}else return}renderTitle(t){return n("div",{class:`metadata-item-title ${t?.type}`},t.title)}renderMetadataItem(t,e){return n(l,null,t.tooltip&&n("calcite-tooltip",{label:this.intl.t("tooltip.label"),"reference-element":`metadata-item-${e}`},n("span",null,t.tooltip)),n("li",{class:"metadata-item","data-test":`metadata-item-${e}`,id:`metadata-item-${e}`,key:e},this.renderIcon(t),n("div",{class:"metadata-item-text-column"},this.renderTitle(t),this.renderDescription(t))))}renderFooter(){return n(l,null,this.hasMapFooterSlot&&this.renderMetadataItem({title:this.intl.t("relevantArea.title"),icon:"pin"},"map-footer"),n("slot",{name:"map-footer"}))}render(){let t=`h${this.headingLevel}`,e=[...this.metadata,...this.additionalMetadata];return n(c,{key:"77adaa1f553737d54045184f013353b733b702a2","data-element":"entity-metadata"},this.listHeader&&n(t,{class:"metadata-list-header"},this.listHeader),n("ul",{key:"54e505ae4af248092c385fde5e6801d2464f269e",class:"entity-metadata-list"},n("slot",{key:"45b21ce969e2929d1504370db2814e0920f8271d"}),e.map((i,a)=>this.renderMetadataItem(i,a)),this.renderFooter()))}static get assetsDirs(){return["locales"]}get element(){return I(this)}};x([g("entity.startDateTime","entity.endDateTime","entity.isAllDay","intl.locale")],C.prototype,"dateRangeMetadataItem",null);C.style=R;return{arcgis_hub_embed:S,arcgis_hub_entity_metadata:C}},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as r}from"./2WDM2VJM.js";import{a as i}from"./MZPEHZQ6.js";import{b as t}from"./VXTU6DWN.js";import{b as s,c as a,d as n,i as o}from"./CHENEYUV.js";import"./AT75BQVI.js";var h=":host{display:block;width:100%}:host(.group-thumbnail)>img{display:block;aspect-ratio:200 / 133;object-fit:cover}:host(.content-thumbnail)>img{aspect-ratio:200 / 133;object-fit:cover;object-position:center}img{display:block;width:100%}.rounded-corners{border-radius:0.75rem}:host(.image-thumbnail)>img{height:16rem;width:100%;object-fit:cover}",c=h,l=class{get _imageUrl(){let e=this.src;return this.src||(e=this.fallback),this.hasError&&(e=this.fallback),this.lazy&&!this.inViewport&&(e=void 0),e}constructor(e){o(this,e),this.src=void 0,this.alt=void 0,this.fallback=void 0,this.lazy=!1,this.corners=t.square,this.hasError=!1,this.inViewport=!1,i(this,"setImageEl","handleIntersection")}componentWillLoad(){this.lazy&&this.observe()}disconnectedCallback(){this.lazy&&this.unobserve()}observe(){r.addHandler(this.element,this.handleIntersection)}unobserve(){r.unobserve(this.element)}srcUpdated(){this.hasError=!1}handleIntersection(){this.inViewport=!0,this.unobserve()}setImageEl(e){this.imageEl=e}componentDidRender(){if(this.imageEl){let e=()=>{this.hasError=!0,this.imageEl.removeEventListener("error",e)};this.imageEl.addEventListener("error",e)}}renderImage(){return this._imageUrl&&s("img",{alt:this.alt,class:{"rounded-corners":this.corners===t.round},ref:this.setImageEl,src:this._imageUrl})}render(){return s(a,{key:"69a4635e709c03ded33d7fc218e044c29451f949","data-element":"image"},this.renderImage())}get element(){return n(this)}static get watchers(){return{src:["srcUpdated"]}}};l.style=c;export{l as arcgis_hub_image};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as s}from"./4E7UX35B.js";var e={ACTIVE:"active",HOVER:"hover",DEFAULT:"default"};function M(o,t=3.5){return o.resolution*t}function u(o,t=s.callout,n){let{backgroundColor:i,textColor:y,hoverColor:l,activeColor:r,width:f,isOffset:a,is3D:c}=t,C=n+1,m=[255,255,255];return o===e.HOVER?m=l:o===e.ACTIVE&&(m=r),{type:"cim",data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,size:30,frame:{xmin:-4,ymin:-4,xmax:4,ymax:4},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:a?4.5:4,y:a?c?9:11:4},symbol:{type:"CIMTextSymbol",fontFamilyName:"Sans Serif",fontStyleName:"Bold",height:3.25,horizontalAlignment:"Center",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[...y,255]}]},verticalAlignment:"Center"},textString:C>99?"99+":`${C}`}],scaleSymbolsProportionally:!0},{type:"CIMVectorMarker",enable:!0,size:30,frame:{xmin:a?-5:-4,ymin:a?c?-9:-11:-4,xmax:a?3:4,ymax:a?c?-1:-3:4},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,0],[4,0],[4.35,.02],[4.69,.06],[5.04,.14],[5.37,.24],[5.69,.37],[6,.54],[6.29,.72],[6.57,.94],[6.83,1.17],[7.06,1.43],[7.28,1.71],[7.46,2],[7.63,2.31],[7.76,2.63],[7.86,2.96],[7.94,3.31],[7.98,3.65],[8,4],[7.98,4.35],[7.94,4.69],[7.86,5.04],[7.76,5.37],[7.63,5.69],[7.46,6],[7.28,6.29],[7.06,6.57],[6.83,6.83],[6.57,7.06],[6.29,7.28],[6,7.46],[5.69,7.63],[5.37,7.76],[5.04,7.86],[4.69,7.94],[4.35,7.98],[4,8],[3.65,7.98],[3.31,7.94],[2.96,7.86],[2.63,7.76],[2.31,7.63],[2,7.46],[1.71,7.28],[1.43,7.06],[1.17,6.83],[.94,6.57],[.72,6.29],[.54,6],[.37,5.69],[.24,5.37],[.14,5.04],[.06,4.69],[.02,4.35],[0,4],[0,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:10,width:f,color:[...m,255]},{type:"CIMSolidFill",enable:!0,color:[...i,255]}]}}]}]}}}}function b(o=e.DEFAULT,t=s.point){let{activeColor:n,color:i,hoverColor:y}=t,l=i;return o===e.HOVER?l=y:o===e.ACTIVE&&(l=n),{type:"text",color:[...l,.9],text:"\uE61D",font:{size:24,family:"CalciteWebCoreIcons"}}}function S(o=e.DEFAULT,t=s.polyline){let{activeColor:n,color:i,hoverColor:y,width:l}=t,r=i;return o===e.HOVER?r=y:o===e.ACTIVE&&(r=n),{color:[...r,1],width:l,style:"solid"}}function p(o=e.DEFAULT,t=s.polygon){let{activeColor:n,color:i,hoverColor:y,width:l}=t,r=i;return o===e.HOVER?r=y:o===e.ACTIVE&&(r=n),{type:"simple-fill",color:[...i,.15],outline:{color:[...r,1],width:l}}}var d={callout:u,extent:p,point:b,polyline:S,polygon:p};export{e as a,M as b,d as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{h as y}from"./UWUNHI7L.js";import{a as c}from"./K6AMDRTV.js";var E=t=>{let[[n,e],[r,o]]=t;return f(n,e,r,o)},S=t=>t.map(n=>n.join(", ")).join(", ");function f(t,n,e,r,o=4326){return{xmin:t,ymin:n,xmax:e,ymax:r,spatialReference:{wkid:o}}}function l(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var x={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function u(t){let n=t.portalSelf,e=n.defaultExtent,r=c(n,"helperServices.geometry.url");if(!r||!e)return Promise.resolve(x);let o=`${r}/project`,a={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[e]}),transformForward:!1,transformation:"",inSR:e.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(a.authentication=t.authentication),y(o,a).then(i=>{let m=i.geometries[0];return{xmin:m.xmin,ymin:m.ymin,xmax:m.xmax,ymax:m.ymax,spatialReference:{wkid:4326}}}).catch(i=>x)}function B(t){return u(t).then(n=>l(n))}var g=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);function p(t){return["xmin","ymin","xmax","ymax"].every(n=>typeof t[n]=="number")}function P(t){return!!t&&[g,p].some(n=>n(t))}var T=t=>{let{xmin:n,ymin:e,xmax:r,ymax:o,spatialReference:s}=t;return{rings:[[[n,o],[r,o],[r,e],[n,e],[n,o]]],spatialReference:s}},A=t=>{let{xmin:n,ymin:e,xmax:r,ymax:o,spatialReference:s}=t,a=(r-n)/2+n,i=(o-e)/2+e;return{x:a,y:i,spatialReference:s}},v=t=>{let n=[].concat(...t);for(let e=0;e<n.length;e+=2){let[r,o]=[n[e],n[e+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},R=t=>{let n=1/0,e=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[a,i]of s)n=Math.min(n,a),e=Math.min(e,i),r=Math.max(r,a),o=Math.max(o,i);return[[n,e],[r,o]]};export{E as a,S as b,f as c,l as d,x as e,u as f,B as g,g as h,P as i,T as j,A as k,v as l,R as m};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as f}from"./5XEIW7CT.js";import"./5AY5O6NA.js";import{b}from"./OLIXHQ45.js";import{a as g}from"./A7UTEGFQ.js";import"./UUBB3CRW.js";import"./73VGDY64.js";import"./QYQIPUGM.js";import"./BK6XX2AU.js";import"./MKK63VCT.js";import"./GQJNXTQT.js";import"./OT6SCCRW.js";import"./FQTSRTTQ.js";import"./45V63GZB.js";import"./M7PXGKUN.js";import"./HWJYICV2.js";import"./G6H6YQAR.js";import"./TVX5SDUH.js";import"./PUUASAJ2.js";import"./H4KV7MLW.js";import"./FR67HD5Q.js";import"./RQIJVACD.js";import"./BIAMJNHV.js";import"./L4JCSXPA.js";import"./3XPQULRS.js";import"./JOX32ZKP.js";import"./4MK7XIAZ.js";import"./A6MK5ZPP.js";import"./SRE3UGET.js";import"./3CHF3GEJ.js";import"./VQXRDNZT.js";import"./3UXE5BF3.js";import"./EBGADEP4.js";import"./Y2JIY5K6.js";import"./ODWK4PGO.js";import"./JBSROA2H.js";import"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DFJJV4QP.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./BDCNWDSM.js";import"./PVJYYXFI.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./L6KTWLZO.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import{a as h}from"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as u}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as d}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import{a as y}from"./K5HZ2G74.js";import{a as p}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import{c as s}from"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import{a as c}from"./ITUDVJWT.js";import{a as l}from"./K6AMDRTV.js";import{a as m}from"./RUVOYVVB.js";import{b as e,c as w,d as k,e as n,i as S}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:T,d:E}])=>{var F=".sc-arcgis-hub-entity-followers-h{display:block;height:100%}arcgis-hub-workspace-pane.sc-arcgis-hub-entity-followers{--arcgis-configuration-form-footer-max-width:800px;--arcgis-configuration-form-footer-scalable-padding:0.5rem}.entity-followers__tab.sc-arcgis-hub-entity-followers{display:flex;flex-direction:column;gap:2rem}calcite-tabs.sc-arcgis-hub-entity-followers{height:-moz-fit-content;height:fit-content;width:100%;gap:0px}",G=F,a={FOLLOWERS:"Followers",SETTINGS:"Followers Settings"},D=class{async init(){await this.fetchFollowersGroup()}constructor(t){S(this,t),this.hubTelemetry=n(this,"hubTelemetry",7),this.arcgisHubWorkspaceEntityChange=n(this,"arcgisHubWorkspaceEntityChange",7),this.handleTabActivated=i=>{i.preventDefault(),i.stopImmediatePropagation();let o=i.target;if(this.isDirty){this.attemptedClick={tab:o.tab,clickEvent:i};return}else this.activeTab=i.target.tab,this.hubTelemetry.emit(Object.assign(Object.assign({},p.dictionary.category.navigation.action.view),{label:this.activeTab}))},this.handleFollowersGroupCreation=async i=>{let o=i.detail,r=c(this.entity);try{await this._context.refreshUser(),E(this._context),this.workspacePaneEl.toggleLoading(!0,{headingRows:1,rows:3,showHeading:!0}),h("followersGroupId",o.id,r),await g(this.entityType,r,this._context),this.arcgisHubWorkspaceEntityChange.emit({entity:r,isDirty:!1})}catch(C){m.error(`There was an error creating a followers group: ${C}`),this.arcgisHubWorkspaceEntityChange.emit({entity:r,isDirty:!0})}finally{this.workspacePaneEl.toggleLoading(!1)}},this.entity=void 0,this.isMobile=!1,this.activeTab=a.FOLLOWERS,this.followersCount=void 0,this.newFollowersCount=void 0,this.footerSlotEl=void 0,this.isUserPickerOpen=!1,this.groupMembersSelected=[],this.isDirty=!1,this.attemptedClick=void 0,u(this,"handleEditorChanged","handleEditorSaved","handleTabActivated","handleFollowersGroupCreation","handlePrimaryTabKeyDown","handleDirtyStateModalClosed")}async componentWillLoad(){await this.loadTranslations(),this.followersGroupId&&this.init()}async loadTranslations(){this.intl=await d.loadIntlForComponent(this.element)}get _context(){return T()}get entityType(){return y(this.entity)}get isMember(){return s("hub:site:workspace:followers:member",this._context,this.entity).access}get canCreateFollowersGroup(){return s("hub:site:workspace:followers:create",this._context,this.entity).access}get followersGroupId(){return l(this.entity,"followersGroupId")}get tabConfigurations(){let t=["hub:site:workspace:followers:member"],i=["hub:site:workspace:followers:manager"];return[{title:this.intl.t("tabs.followers"),key:a.FOLLOWERS,permissions:t,content:this.renderFollowersTab()},{title:this.intl.t("tabs.settings"),key:a.SETTINGS,permissions:i,content:this.renderSettingsTab()}].filter(o=>o.permissions.every(r=>s(r,this._context,this.entity).access))}async fetchFollowersGroup(){this.followersGroup=(await f.fetch(this.followersGroupId,this._context)).toJson()}handlePrimaryTabKeyDown(t){switch(t.key){case" ":case"Enter":this.handleTabActivated(t);return}}handleDirtyStateModalClosed(t){t.detail?this.attemptedClick=null:(this.isDirty=!1,this.activeTab=this.attemptedClick.tab,this.attemptedClick=null)}renderTabs(){return e("calcite-tabs",null,e("calcite-tab-nav",{slot:"title-group"},this.tabConfigurations.map(t=>e("calcite-tab-title",{key:t.key,onClick:this.handleTabActivated,onKeyDown:this.handlePrimaryTabKeyDown,selected:this.activeTab===t.key,tab:t.key},t.title))),this.tabConfigurations.map(t=>e("calcite-tab",{class:"content-tab-container",key:t.key,selected:this.activeTab===t.key,tab:t.key},t.content)))}get shouldShowDirtyStateModal(){return!!this.attemptedClick}renderDirtyStateModal(){return this.shouldShowDirtyStateModal?e("arcgis-hub-workspace-dirty-state-modal",{"is-open":!0}):null}handleEntityChange(t){this.isDirty=t.detail.isDirty}renderFollowersTab(){return e("div",{class:"entity-followers__tab"},e("arcgis-hub-group-members-manager",{groupId:this.followersGroupId,isMobile:this.isMobile,showGalleryFacets:!1}))}handleEditorChanged(t){t.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:t.detail.values,isDirty:!0})}handleEditorSaved(t){t.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:t.detail.entity,isDirty:!t.detail.isSuccess})}renderSettingsTab(){return e("arcgis-hub-entity-editor",{editorType:`hub:${this.entityType}:followers`,entity:this.entity,footerSlotRef:this.footerSlotEl,include:["followersGroup.access AS _followers.groupAccess"],onArcgisHubEntityEditorChange:this.handleEditorChanged,onArcgisHubEntityEditorSaved:this.handleEditorSaved,variant:b.workspace})}renderEmptyState(){return e("arcgis-hub-help-state",{icon:"walking",message:this.intl.t("emptyState.message"),slot:"help-state"},this.canCreateFollowersGroup&&e("arcgis-hub-new-content",{"button-appearance":"outline-fill",entityConfigs:[{key:"group",editorType:"hub:group:create:followers",label:this.intl.t("emptyState.action"),description:this.intl.t("createFollowersGroup.formDescription"),defaults:{name:`${this.entity.name} ${this.intl.t("followers")}`,summary:this.intl.t("createFollowersGroup.defaultSummary"),access:"public",isViewOnly:!0,autoJoin:!0}}],onArcgisHubNewContentSuccess:this.handleFollowersGroupCreation,slot:"actions"}))}renderRestrictedAccessState(){return e("arcgis-hub-help-state",{icon:"walking",message:this.intl.t("restrictedAccessState.message"),slot:"help-state"})}render(){return e(w,{key:"88758aab97d934c125a5d0c781d716d02b550d92","data-element":"entity-followers"},e("arcgis-hub-workspace-pane",{key:"245f5371383bacc13565a507f0dd7fec9d6cc6bb",isMobile:this.isMobile,ref:t=>{this.workspacePaneEl=t},stickyFooter:!0},e("h1",{key:"65d989fa54d1d33786b2777fdf4fcb2d92f17748",slot:"title"},this.intl.t("followers")),this.followersGroupId?this.isMember?this.renderTabs():this.renderRestrictedAccessState():this.renderEmptyState(),this.activeTab===a.SETTINGS&&e("div",{ref:t=>{this.footerSlotEl=t},slot:"footer"})),this.renderDirtyStateModal())}static get assetsDirs(){return["locales"]}get element(){return k(this)}static get watchers(){return{entity:["init"]}}};D.style=G;return D},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{b as r}from"./7G2NGRSE.js";import{b as e}from"./CHENEYUV.js";function l(t,i,n){let o=r(t,i,"options.helperText");return e("calcite-input-message",{class:"helper-text"}," ",e("div",{id:n,innerHTML:o})," ")}export{l as a};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as d,b as o,c as r}from"./BMPXQTR3.js";import{b as n}from"./FO7JXNJA.js";import{a as l}from"./MZPEHZQ6.js";import{a as s}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import"./RUVOYVVB.js";import{b as e,c as h,d as b,e as c,i as f}from"./CHENEYUV.js";import"./AT75BQVI.js";var i="arcgis-hub-license-picker-modal",m=`
|
|
3
|
+
${i} {
|
|
4
|
+
--calcite-font-size--1: 1rem;
|
|
5
|
+
--calcite-font-size--2: 1rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
${i} calcite-dialog .license-picker-dialog-content {
|
|
9
|
+
height: 50vh;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
${i} calcite-dialog calcite-tabs {
|
|
13
|
+
min-height: 100%
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
${i} calcite-dialog calcite-tab {
|
|
17
|
+
height: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
${i} calcite-dialog .custom-editor {
|
|
21
|
+
height: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
${i} calcite-dialog arcgis-hub-rich-text {
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${i} calcite-dialog .ck.ck-editor {
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
${i} calcite-dialog .ck.ck-editor__main {
|
|
37
|
+
flex-grow: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
${i} calcite-dialog .ck.ck-editor__editable {
|
|
41
|
+
height: 100%;
|
|
42
|
+
min-height: 12rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media screen and (max-width: 816px) {
|
|
46
|
+
${i} calcite-dialog .license-picker-dialog-content {
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`,I=class{get structuredLicense(){return n(this.licenseInfo)}constructor(t){f(this,t),this.arcgisHubLicensePickerModalApply=c(this,"arcgisHubLicensePickerModalApply",7),this.arcgisHubLicensePickerModalCancel=c(this,"arcgisHubLicensePickerModalCancel",7),this.licenseChoiceAbbrs=["CC0","CC BY","CC BY-SA","CC BY-ND","CC BY-NC","CC BY-NC-SA","CC BY-NC-ND","PDDL","ODbL","ODC BY"],this.modalIsOpen=!1,this.licenseInfo=void 0,this.wasCustomLicense=void 0,this.wasStructuredLicense=void 0,l(this,"handleApply","handleCancel","handleLicenseSelection","handleOpenLink","handleTextChange","setRichTextEditor")}async componentWillLoad(){this.intl=await s.loadIntlForComponent(this.element),this.licenseChoices=d(this.licenseChoiceAbbrs)}handleLicenseSelection(t){let a=t.target;if(!a)return;let u=a.value,p=this.licenseChoices.find(g=>g.abbr===u);this.licenseInfo=p.abbr||""}handleTextChange(t){this.licenseInfo=t.target.value}handleApply(){this.wasCustomLicense&&!r(this.structuredLicense.type)&&!confirm(this.intl.t("overwriteWarning"))||this.arcgisHubLicensePickerModalApply.emit(this.licenseInfo)}handleCancel(){this.arcgisHubLicensePickerModalCancel.emit()}handleOpenLink(t){window.open(t.target.dataset.url)}setRichTextEditor(t){this.richTextEditor=t}render(){return e(h,{key:"a95f2de1c2f466f869df65a8388f53464d901600","data-element":"license-picker-modal"},e("style",{key:"aa824061fc5ea1fcaed2449963237308cc69edd7"},m),e("calcite-dialog",{key:"218ade1e2c1dc77ea27c3b73908dafb2ec8d7b6a","aria-labelledby":"license-picker-dialog",heading:this.intl.t("title"),headingLevel:3,modal:!0,open:this.modalIsOpen},e("div",{key:"1ddc3bd956972b0f0ffa7f6ab8462c0b871fdfa1",class:"license-picker-dialog-content"},e("calcite-tabs",{key:"1f6210c22875d82b2a27079571a3f44affbc22e3",layout:"center",scale:"m"},e("calcite-tab-nav",{key:"e2d24f1371c4e184fd0e1af80c8f44f51a35c197",slot:"title-group"},e("calcite-tab-title",{key:"3bf53a6dd6868fb9520b4d1118be3032a8fbbd56",selected:!0},this.intl.t("chooseTabTitle")),e("calcite-tab-title",{key:"92445ec82dbe280ed0a92965e1ac474f7d8f2eaa"},this.intl.t("editTabTitle"))),e("calcite-tab",{key:"0bd724f7efff2be4ed9a293e4b7cfe8ccf49c658",selected:!0},e("calcite-label",{key:"6449114a72f1f2014f95a61a9746960649a217a8",class:"choose-picker-label",for:"license-picker"},this.intl.t("chooseTabPickerLabel")),e("calcite-notice",{key:"b8d6491442638a1158910602cc3b4073164c71f9",kind:"warning",open:this.wasCustomLicense},e("div",{key:"7ebdafefdf0213775cec08c55ff3fd992068fcce",slot:"title"},this.intl.t("overwriteCustomLicenseTitle")),e("div",{key:"8b1b244078d65b742bbc5dfd03be1e1881d9b121",slot:"link"},this.intl.t("overwriteCustomLicenseLinkMessage",{a:(...t)=>e("a",{href:"https://doc.arcgis.com/en/hub/content/add-and-manage-groups.htm#ESRI_SECTION1_879A381A9C8C42D59018947CB2509CB2"},t)}))),e("calcite-list",{key:"431d95779331a1613261c9659f87b50f9f6116b7",class:"license-picker"},this.licenseChoices.map(t=>e("calcite-list-item",{description:o(this.intl,t.type),key:t.type,label:t.abbr,selected:t.type===this.structuredLicense.type,value:t.abbr},e("calcite-action",{"aria-label":this.intl.t("licenseInfoButtonAriaLabel"),"aria-labelledby":t.abbr,"data-url":t.url,icon:"information",onClick:this.handleOpenLink,slot:"actions-end",text:""}))))),e("calcite-tab",{key:"f4d60d685c4e2a16da21bd2f31c65ede2bf33f83"},e("div",{key:"e6c106a868583e98e89b189c1d915bbcc17405fa",class:"custom-editor"},e("calcite-notice",{key:"6e1a93d8367e9690416c587d3be6ddea533a0f17",kind:"warning",open:this.wasStructuredLicense},e("div",{key:"07dda1daaa6350cf235e4f67d5f44f4353a76302",slot:"title"},this.intl.t("overwriteStructuredLicenseTitle")),e("div",{key:"9d41e89d28121c289386d82fd36523f21ccc6366",slot:"message"},this.intl.t("overwriteStructuredLicenseMessage")),e("div",{key:"0a32311146e1fb5b7fea41558cf11bf86e426f3b",slot:"link"},this.intl.t("overwriteStructuredLicenseLinkMessage",{a:(...t)=>e("a",{href:"https://doc.arcgis.com/en/hub/content/add-and-manage-groups.htm#ESRI_SECTION1_879A381A9C8C42D59018947CB2509CB2"},t)}))),e("arcgis-hub-rich-text",{key:"5ca8989463f9799f21cb8ec1ce997b549c45c633",label:this.intl.t("editTabEditorLabel"),name:this.intl.t("editTabEditorLabel"),placeholder:this.intl.t("editTabEditorPlaceholder"),ref:this.setRichTextEditor,toolbar:"heading,|,bold,italic,link,|,undo,redo",value:this.licenseInfo}))))),e("calcite-button",{key:"5b1cef21836409185470d97dae2b294be3f1722c",appearance:"outline",class:"cancel-button",onClick:this.handleCancel,slot:"footer-end"},this.intl.t("cancelButton")),e("calcite-button",{key:"e5553a9d681375118959709c39aa9537714dc288",appearance:"solid",class:"apply-button",onClick:this.handleApply,slot:"footer-end"},this.intl.t("applyButton"))))}static get assetsDirs(){return["locales"]}get element(){return b(this)}};export{I as arcgis_hub_license_picker_modal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as r,b as s}from"./3CHF3GEJ.js";import{q as o}from"./LLPWCLVS.js";function E(e,n){let t=e.split("-"),a=t[t.length-1];return o(Object.assign({eventId:a,data:{include:"associations"}},n)).then(c=>i(c)).catch(()=>{throw new Error("Failed to fetch event.")})}async function i(e,n){let t=new s(r());return Promise.resolve(t.storeToEntity(e,{}))}export{E as a,i as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as c}from"./K6AMDRTV.js";function s(e){let n={};if(Array.isArray(e))n=e.map(s);else if(typeof e=="object"){if(e===null)return e;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];r!=null&&typeof r=="object"?r instanceof Date?n[t]=new Date(r.getTime()):typeof Blob<"u"&&r instanceof Blob?n[t]=new Blob([r],{type:r.type}):n[t]=s(r):n[t]=r}}else n=e;return n}function d(e,n){return e.reduce((t,r)=>(t[c(r,n)]=r,t),{})}function y(e,n="id"){return Object.keys(e).reduce((r,u)=>(e[u][n]=u,r.push(s(e[u])),r),[])}function h(e,n,t){return e?e.reduce((u,i)=>(c(i,n)===t&&(u=i),u),null):null}function m(e,n){return e.filter(r=>r!==n)}function w(...e){return e.reduce((n,t)=>(...r)=>n(t(...r)))}function A(e="i"){return`${e}${Math.random().toString(36).substr(2,8)}`}function _(e,n,t){return n!=null&&(t=s(t),t[e]=n),t}function f(e,n){return e!=null&&(n=s(n),n.push(e)),n}function g(e){e=e.toLowerCase(),e=e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi," ");let n=/(\-|\_|\.|\s)+(.)?/g,t=/(^|\/)([A-Z])/g;return e.replace(n,function(r,u,i){return i?i.toUpperCase():""}).replace(t,function(r){return r.toLowerCase()})}function p(e,n,t){return t.indexOf(e)===n}function E(e,n){return e.reduce((t,r)=>{let u=i=>c(i,n)===c(r,n);return f(t.find(u)?null:r,t)},[])}function D(e){return e[e.length-1]}function O(e,n,t){return e.filter(r=>c(r,n)===t)}function o(e,n,t=!0){let r=s(e);return Object.keys(n).reduce((u,i)=>{if(n[i]!==null&&n[i]!==void 0){let a=s(n[i]);Array.isArray(a)?u[i]=a:t&&typeof a=="object"?u[i]=o(u[i]||{},a,t):u[i]=a}return u},r)}function I(e,n){try{let t=new Date(e);return new Date(t.setDate(t.getDate()+n)).toISOString().split("T")[0]}catch{throw new Error("Invalid Date")}}function S(e,n){let t=[],r=0;for(;r<e.length;)t.push(e.slice(r,r+n)),r+=n;return t}var B=e=>e==null,C=e=>{let n=Array.from(e);return n.length&&(n[0]=n[0].toUpperCase()),n.join("")};function T(e){return e.reduce((n,t)=>n.concat(t),[])}export{s as a,d as b,y as c,h as d,m as e,w as f,A as g,_ as h,f as i,g as j,p as k,E as l,D as m,O as n,o,I as p,S as q,B as r,C as s,T as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as S}from"./76PBLDOW.js";import{a as H}from"./N5Q4VONY.js";import{a as D}from"./EAHWXQSY.js";import{a as W}from"./32XX3F4E.js";import{a as g,d as P}from"./DBXBA6HT.js";import{a as u}from"./JMUGY3OJ.js";import{n as m}from"./NQU3EFLX.js";import"./ISKLXQSB.js";import"./JOX32ZKP.js";import"./4MK7XIAZ.js";import"./A6MK5ZPP.js";import"./SRE3UGET.js";import"./3CHF3GEJ.js";import"./VQXRDNZT.js";import"./3UXE5BF3.js";import"./LV543PTH.js";import"./EBGADEP4.js";import"./Y2JIY5K6.js";import"./ODWK4PGO.js";import"./JBSROA2H.js";import"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DFJJV4QP.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./PVJYYXFI.js";import"./ZCZVGMIV.js";import"./Y6Q6ENTP.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import{g as w}from"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as E}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as p}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import{a as d}from"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import{c as l}from"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as C}from"./RUVOYVVB.js";import{b as n,c as y,d as b,e as c,i as f}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:k,j:M}])=>{var F=".sc-arcgis-hub-entity-breadcrumbs-h{display:block}",L=F,I=class{constructor(t){f(this,t),this.breadcrumbs=[],this.path=void 0,this.breadcrumbEntries=[]}get _context(){return k()}async componentWillLoad(){this.intl=await p.loadIntlForComponent(this.element)}async componentWillRender(){this.breadcrumbs.length>0?this.breadcrumbEntries=await this.buildBreadcrumbsFromArray(this.breadcrumbs,this._context):this.path?this.breadcrumbEntries=await this.buildBreadcrumbsFromPath(this.path,this._context):this.breadcrumbEntries=[]}async buildBreadcrumbsFromPath(t,e){let i=this.constructCrumbsFromPath(t);return await this.buildBreadcrumbsFromArray(i,e)}async buildBreadcrumbsFromArray(t,e){let i=await this.fetchCrumbEntities(t,e);return this.constructBreadcrumbs(i)}async fetchCrumbEntities(t,e){return t=await Promise.all(t.map(async i=>{if(i.entity)return Promise.resolve(i);{let s=await m(i.type,i.identifier,e);return Object.assign(Object.assign({},i),{entity:s})}}))}constructCrumbsFromPath(t){let e=[],i=P(t);for(let s=0;s<i.parts.length;s+=2){let a=g[i.parts[s]];e.push({identifier:i.parts[s+1],type:a})}return e}getEntityPathFromTypeAndId(t,e){return`/${Object.entries(g).reduce((s,a)=>{let[r,o]=a;return s[o]=r,s},{})[t]}/${e}`}constructBreadcrumbs(t){let e="";return t.map((i,s,a)=>{var r,o;let x=w(i.entity.type),h=(r=i.entity.links)===null||r===void 0?void 0:r.siteRelative;if(s>1&&s<a.length-1){let _=a[s-1];e=`${e}${this.getEntityPathFromTypeAndId(_.type,_.identifier)}`,h=`${h}?path=${e}`}let v=i.entity.name||i.identifier,A=i.entity.name||i.identifier;return i.type==="site"&&(h=(o=i.entity.links)===null||o===void 0?void 0:o.self,window.location.port&&(h=`${h}:${window.location.port}`),v=this.intl.t("home")),{label:A,icon:x,link:h,title:v}})}renderBreadcrumbs(){return this.breadcrumbEntries.length===0?null:n(y,{"data-element":"entity-breadcrumbs"},n("calcite-menu",{slot:"content-start"},n(H,{breadcrumbs:this.breadcrumbEntries})))}render(){return null}static get assetsDirs(){return["locales"]}get element(){return b(this)}};I.style=L;var z=".sc-arcgis-hub-workspace-h{position:relative;display:block;height:100vh}.workspace__navigation.sc-arcgis-hub-workspace{border-right:1px solid var(--calcite-color-border-1)}.workspace__pane.sc-arcgis-hub-workspace{height:100%;background-color:var(--calcite-color-background)}.skip-nav.sc-arcgis-hub-workspace{position:absolute;top:-60px;left:64px;z-index:-1;background-color:#fff;padding:15px 10px;box-shadow:0 0 2px 2px #333;opacity:0;transition:top 0.5s ease}.skip-nav.sc-arcgis-hub-workspace:focus{opacity:1.0;top:64px;z-index:1036}.workspace__navigation.sc-arcgis-hub-workspace{z-index:2}",R=z;function B(t){return n("arcgis-hub-workspace-pane",{isMobile:t.isMobile,key:t.key},n("h1",{slot:"title"},t.pane),n("h3",{slot:"subtitle"},'Requested pane "',t.pane,'" does not have an associated component.'))}var O=class{connectedCallback(){M(this),u.addHandler(this.element,this.handleResize)}disconnectedCallback(){this.disconnectContext(),u.unobserve(this.element)}async handleResize(){this.element.clientWidth>0&&(this.isMobile=this.element.clientWidth<S.SMALL)}dispatchInitializedEvent(){if(this._entity&&this.intl){let t;switch(this._type){case"user":let e=this._context.portal.name;t=this.intl.t("pageTitle.user",{orgName:e});break;case"group":let i=this._entity.name;t=this.intl.t("pageTitle.group",{groupName:i});break;default:let s=this._entity.name;t=this.intl.t("pageTitle.default",{entityName:s})}this.arcgisHubWorkspaceInitialized.emit({entity:this._entity,meta:[],title:t})}}handleWorkspaceEntityDelete(t){this.arcgisHubWorkspaceEntityDelete.emit(t.detail)}handleWorkspaceLinkClicked(t){t.stopImmediatePropagation();let{detail:e,target:i}=t;i.tagName==="ARCGIS-HUB-WORKSPACE-DIRTY-STATE-MODAL"&&(this.isDirty=!1,this.attemptedClick=null);let a=!1;if(this.isDirty)a=!0,this.attemptedClick=e,["arcgisHubCardTitleLinkClick","arcgisHubGalleryLinkClick"].includes(t.type)&&(t.detail.clickEvent=t.detail.event,this.attemptedClick.href=t.detail.clickEvent.target.href);else{let{pane:r}=e,o=this.arcgisHubWorkspaceNavigate.emit(e);r&&(o.defaultPrevented||(this.pane=r),a=!0),this.shouldFocusPaneContainer=!0}if(a){let{clickEvent:r}=e;r.preventDefault(),r.stopPropagation()}}handlePaneInitialized(){this.shouldFocusPaneContainer&&(this.paneContainer&&this.paneContainer.focus(),this.shouldFocusPaneContainer=!1)}handleEntityChanged(t){t.stopImmediatePropagation(),!t.detail.isDirty?this._isSelfFetching?this.fetchEntity():this.arcgisHubWorkspaceEntitySave.emit():this.isDirty=!0}onSignout(){this.arcgisHubWorkspaceSignOut.emit()}onDirtyStateModalClosed(){this.attemptedClick=null}async handleFetchingPropsChanged(){this._context&&!this.entity&&this.identifier&&(await this.fetchEntity({showLoading:!0}),this.dispatchInitializedEvent())}async fetchEntity(t={}){t.showLoading&&(this.isLoading=!0);try{m(this.type,this.identifier,this._context).then(e=>{this._entity=Object.assign(e)})}catch(e){C.error(`Error fetching entity ${this.identifier}: ${e}`)}finally{t.showLoading&&(this.isLoading=!1)}}handleEntityChange(){this._entity=this.entity,this.dispatchInitializedEvent()}handle_EntityChange(){this.isDirty=!1}checkEntityAccess(){if(this._context&&this._entity){let t=d(this._entity),e=l(`hub:${t}:manage`,this._context,this._entity);if(!e.access)this.arcgisHubWorkspaceAccessDenied.emit(e);else if(!["project","discussion"].includes(t)){let i=l("hub:feature:workspace",this._context);i.access||this.arcgisHubWorkspaceAccessDenied.emit(i)}}}constructor(t){f(this,t),this.arcgisHubWorkspaceAccessDenied=c(this,"arcgisHubWorkspaceAccessDenied",7),this.arcgisHubWorkspaceSignOut=c(this,"arcgisHubWorkspaceSignOut",7),this.arcgisHubWorkspaceEntityDelete=c(this,"arcgisHubWorkspaceEntityDelete",7),this.arcgisHubWorkspaceEntitySave=c(this,"arcgisHubWorkspaceEntitySave",7),this.arcgisHubWorkspaceNavigate=c(this,"arcgisHubWorkspaceNavigate",7),this.arcgisHubWorkspaceInitialized=c(this,"arcgisHubWorkspaceInitialized",7),this.shouldFocusPaneContainer=!1,this._setPaneContainer=e=>{this.paneContainer=e},this._context=k(),this.isMobile=!1,this.layout="default",this.entity=void 0,this.identifier=void 0,this.pane="overview",this.site=void 0,this.type=void 0,this.isLoading=void 0,this._entity=void 0,this.isDirty=!1,this.attemptedClick=void 0,E(this,"handleWorkspaceLinkClicked","_setPaneContainer","handlePaneInitialized","handleResize")}async componentWillLoad(){this.intl=await p.loadIntlForComponent(this.element),this.handleEntityChange(),this.handleFetchingPropsChanged()}get _type(){return this.type||d(this.entity)}get defaultPaneComponents(){return{details:"arcgis-hub-entity-details",settings:"arcgis-hub-entity-settings"}}get paneComponent(){if(!W.includes(this.pane))return;let t=D(this._type),e=s=>{var a;for(let r of s){if(r.pane===this.pane)return r;if(!((a=r.children)===null||a===void 0)&&a.length){let o=e(r.children);if(o)return o}}return null},i=e(t);if(!(i?.permissions&&!i.permissions.every(a=>l(a,this._context,this._entity).access)))return i?.component||this.defaultPaneComponents[this.pane]}get shouldShowDirtyStateModal(){return!!this.attemptedClick}get _isSelfFetching(){return!this.entity&&!!this.identifier}renderHeader(){return n("arcgis-hub-workspace-header",{class:"workspace__header",entity:this._entity,isMobile:this.isMobile,layout:this.layout,site:this.site,slot:"header"})}renderNavigation(){return n("div",{class:"workspace__navigation",slot:"panel-start"},n("slot",{name:"workspace-navigation"},n("arcgis-hub-workspace-navigation",{activePane:this.pane,entity:this._entity,isMobile:this.isMobile})))}renderPane(){let t=this.paneComponent||B;return n("div",{class:"workspace__pane",id:"workspace-pane",ref:this._setPaneContainer,role:"group",tabindex:-1},n(t,{entity:this._entity,isMobile:this.isMobile,key:this.pane,pane:this.pane}))}renderFooter(){if(!this.isMobile)return n("arcgis-hub-product-footer",{isMobile:this.isMobile,slot:"footer"})}renderDirtyStateModal(){var t,e;return this.shouldShowDirtyStateModal?n("arcgis-hub-workspace-dirty-state-modal",{href:(t=this.attemptedClick)===null||t===void 0?void 0:t.href,"is-open":!0,pane:(e=this.attemptedClick)===null||e===void 0?void 0:e.pane}):null}render(){return this.isLoading||!this._entity?n("arcgis-skeleton-loader",{active:!0,class:"workspace__loader",rows:3,"show-heading":"true"}):n(y,{"data-element":"workspace",unthemed:!0},n("a",{class:"skip-nav",href:"#workspace-pane"},this.intl.t("skipNav")),n("calcite-shell",null,this.renderHeader(),this.renderNavigation(),this.renderPane(),this.renderFooter()),this.renderDirtyStateModal())}static get assetsDirs(){return["locales"]}get element(){return b(this)}static get watchers(){return{identifier:["handleFetchingPropsChanged"],_context:["handleFetchingPropsChanged","checkEntityAccess"],entity:["handleFetchingPropsChanged","handleEntityChange"],_entity:["handle_EntityChange","checkEntityAccess"]}}};O.style=R;return{arcgis_hub_entity_breadcrumbs:I,arcgis_hub_workspace:O}},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as g}from"./TH2B62CH.js";import{a as b}from"./EH5WKZDX.js";import"./2RDZQFBD.js";import{n as c}from"./EWAU66TF.js";import"./OHDLPBUL.js";import"./UDP7EENP.js";import"./Q67H57WZ.js";import"./LV543PTH.js";import"./ODWK4PGO.js";import"./JBSROA2H.js";import{F as u,t as d,u as h,v as p,w as m}from"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./PVJYYXFI.js";import"./ZCZVGMIV.js";import"./Y6Q6ENTP.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as r}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as l}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import"./K5HZ2G74.js";import{a as s}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as n,c as f,d as y,e as C,i as v}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:k}])=>{var x=":host{display:block}calcite-dialog{z-index:1030}section{display:grid;gap:1rem}calcite-notice{display:none}calcite-notice[active]{display:block}calcite-stepper-item calcite-notice{margin-top:1rem}address{display:flex;gap:1rem}address div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0.125rem}address b{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);font-style:normal;color:var(--calcite-color-text-1)}address span{font-size:var(--calcite-font-size--1);line-height:1rem;font-style:normal;color:var(--calcite-color-text-2)}div{display:flex;align-items:center;justify-content:space-between}",D=x,T=class{get _context(){return k()}get isMember(){return!!this.channel&&b(this.channel,this._context.currentUser)}constructor(i){v(this,i),this.hubTelemetry=C(this,"hubTelemetry",7),this.channelId=void 0,this.open=void 0,this.channel=void 0,this.saving=!1,this.postTotal=void 0,this.activeStepIndex=void 0,this.notifications=void 0,this.activity=!0,this.notices=[],r(this,"handleStepperItemSelected","handleCancelButtonClicked","handleSaveButtonClicked","handleDialogClosed","handleTileSelect","handleNoticeClosed")}async componentWillLoad(){let[i,t]=await Promise.all([d(Object.assign({channelId:this.channelId},this._context.hubRequestOptions)).catch(()=>null),g({channelId:this.channelId},this._context.hubRequestOptions),this.loadIntl()]);this.notifications=!i,this.channel=t.channel,this.postTotal=await this.fetchTotalPosts(),this.activeStepIndex=this.isMember?0:1}async loadIntl(){this.intl=await l.loadIntlForComponent(this.element)}get stepItems(){let{isMember:i,intl:t,notifications:e,activity:a}=this;return[{name:"notifications",description:i?"":t.t("notificationsDisabled"),disabled:!i,heading:t.t("notifications"),options:[{checked:e,description:t.t("receiveDesc"),heading:t.t("receive"),icon:"email-address",value:!0},{checked:!e,description:t.t("stopDesc"),heading:t.t("stop"),icon:"circle-disallowed",value:!1}],notice:{title:t.t("stopNotice"),message:t.t("stopNoticeMessage"),link:t.t("noticeLink"),url:"https://doc.arcgis.com/en/hub/team/how-discussions-work.htm"}},{name:"activity",disabled:!1,heading:t.t("activity"),options:[{checked:a,description:t.t("keepDesc"),heading:t.t("keep"),icon:"speech-bubble-check",value:!0},{checked:!a,description:t.t("deleteDesc"),heading:t.t("delete"),icon:"trash",value:!1}],notice:{kind:"danger",title:t.t("deleteNotice"),message:t.t("deleteNoticeMessage"),link:t.t("noticeLink"),url:"https://doc.arcgis.com/en/hub/team/how-discussions-work.htm"}}]}async fetchTotalPosts(){let{channelId:i,_context:{hubRequestOptions:t,currentUser:e}}=this,{total:a}=await u(Object.assign({data:{start:1,num:1,channels:[i],creator:e.username}},t));return a}handleStepperItemSelected(i){let t=i.currentTarget,{activeStepIndex:e,stepItems:a}=this,o=a[e];if(!t.disabled&&t.dataset.name!==o.name){let O=t.dataset.name==="notifications"?"emailNotifications":"postActivity";this.hubTelemetry.emit(s.dictionary.category.interaction.action.open.label.stepper.details[O]),this.activeStepIndex=a.findIndex(({name:S})=>S===t.dataset.name)}}handleCancelButtonClicked(){this.open=!1}async removeChannelActivity(){let{channelId:i,intl:t,_context:e}=this;try{await m(Object.assign({channelId:i},e.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.content.action.delete.details.allPosts),{response:s.constants.response.SUCCESS})),this.postTotal=await this.fetchTotalPosts()}catch{this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.content.action.delete.details.allPosts),{response:s.constants.response.FAILURE})),this.notices=[...this.notices,{kind:"danger",title:t.t("deleteError"),message:t.t("deleteErrorMessage")}]}}async createChannelNotificationOptOut(){let{channelId:i,intl:t,_context:e}=this;try{await h(Object.assign({channelId:i},e.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.users.action.update.label.notifications.details.disabled),{response:s.constants.response.SUCCESS}))}catch{this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.users.action.update.label.notifications.details.disabled),{response:s.constants.response.FAILURE})),this.notices=[...this.notices,{kind:"danger",title:t.t("stopError"),message:t.t("stopErrorMessage")}]}}async removeChannelNotificationOptOut(){let{channelId:i,intl:t,_context:e}=this;try{await p(Object.assign({channelId:i},e.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.users.action.update.label.notifications.details.enabled),{response:s.constants.response.SUCCESS}))}catch{this.hubTelemetry.emit(Object.assign(Object.assign({},s.dictionary.category.users.action.update.label.notifications.details.enabled),{response:s.constants.response.FAILURE})),this.notices=[...this.notices,{kind:"danger",title:t.t("receiveError"),message:t.t("receiveErrorMessage")}]}}handleSaveButtonClicked(){this.saving=!0,this.notices=[];let i=[];this.activity||i.push(this.removeChannelActivity()),i.push(this.notifications?this.removeChannelNotificationOptOut():this.createChannelNotificationOptOut()),Promise.all(i).then(()=>{this.saving=!1,this.notices.length||(this.notices=[{title:this.intl.t("updated"),message:this.intl.t("updatedMessage")}])})}handleDialogClosed(){this.hubTelemetry.emit(s.dictionary.category.interaction.action.close.label.modal.details.managePreferences)}handleTileSelect(i){let t=i.target;this[t.dataset.name]=t.dataset.value==="true"}handleNoticeClosed(){this.notices=[]}renderMetadata(){let{channel:i,postTotal:t,intl:e}=this;return n("address",null,n("calcite-avatar",{fullName:c(i,e.t("unnamedChannel")),scale:"l"}),n("div",null,n("b",null,c(i,e.t("unnamedChannel"))),n("span",null,t===1?e.t("totalPostsSingular"):e.t("totalPostsPlural",{count:t}))))}renderChannelDetails(){return n("calcite-card",null,n("div",null,this.renderMetadata()))}renderContent(){let{activeStepIndex:i,isMember:t}=this;return n("section",null,t&&this.renderChannelDetails(),n("calcite-stepper",{layout:"vertical"},this.stepItems.map((e,a)=>n("calcite-stepper-item",{"data-name":e.name,description:e.description,disabled:e.disabled,heading:e.heading,key:e.heading,onClick:this.handleStepperItemSelected,selected:a===i},n("calcite-tile-group",{selectionMode:"single"},e.options.map(o=>n("calcite-tile",{"data-name":e.name,"data-value":o.value.toString(),description:o.description,heading:o.heading,icon:o.icon,key:o.icon,onCalciteTileSelect:this.handleTileSelect,selected:o.checked}))),e.options[1].checked&&n("calcite-notice",{kind:e.notice.kind,open:!0,width:"full"},n("p",{slot:"title"},e.notice.title),n("p",{slot:"message"},e.notice.message),n("calcite-link",{href:e.notice.url,slot:"link"},e.notice.link))))),this.renderNotice())}renderNotice(){let{notices:i,intl:t}=this,e=i.length>1?{kind:"danger",title:t.t("multipleError"),message:t.t("multipleErrorMessage")}:i[0];if(e)return n("calcite-notice",{closable:!0,kind:e.kind,onCalciteNoticeClose:this.handleNoticeClosed,open:!0,width:"full"},n("p",{slot:"title"},e.title),n("p",{slot:"message"},e.message))}renderDialog(){let{intl:i,saving:t,open:e}=this;return n("calcite-dialog",{closeDisabled:t,escapeDisabled:t,heading:i.t("header"),loading:t,modal:!0,onCalciteDialogClose:this.handleDialogClosed,open:e,outsideCloseDisabled:!0,placement:"center",scale:"l"},this.renderContent(),n("calcite-button",{appearance:"outline",disabled:t,onClick:this.handleCancelButtonClicked,round:!0,scale:"l",slot:"footer-end"},i.t("cancel")),n("calcite-button",{disabled:t,loading:t,onClick:this.handleSaveButtonClicked,round:!0,scale:"l",slot:"footer-end"},i.t("save")))}render(){return n(f,{key:"0973dc52be7eb9abac08a47304f2bbbfa0361e94","data-element":"discussions-channel-settings-editor"},this.renderDialog())}static get assetsDirs(){return["locales"]}get element(){return y(this)}};T.style=D;return T},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import m from"./RC5E7RLU.js";import l from"./L3E7MHJD.js";import k from"./MKFRUSCH.js";import j from"./V2I47N23.js";import i from"./GXN2DYTV.js";import h from"./S4F4TUDC.js";import g from"./W6CIIV4Z.js";import f from"./WMNYXLEQ.js";import e from"./2JB3S3J4.js";import d from"./C6J22WJW.js";import c from"./REWZLA3K.js";import b from"./6PGSCXG5.js";import a from"./6PXXMBGG.js";import"./UPQGR6XZ.js";import"./YEIHJDUB.js";import"./3UW2TBEZ.js";import"./DUUDWZXE.js";import"./GMWP6LCV.js";import"./K6AMDRTV.js";import"./RUVOYVVB.js";import"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,,{D:w,Ja:s,Z:n,a:_,ia:x,y:k},{O:p,R:f},,,,,,,,,{Q:l,S:b,T:I,U:v},{b:S,d:c,f:d,h:y,j:g,t:u},F])=>{var L=Object.defineProperty,j=Object.getOwnPropertyDescriptor,D=(a,i,r,t)=>{for(var e=j(i,r),o=a.length-1,h;o>=0;o--)(h=a[o])&&(e=h(i,r,e)||e);return e&&L(i,r,e),e},m=class extends v{constructor(){super(...arguments),this._chartType=_.RadarSeries}async setup(i){await this.loadConfigFromLayer(i),this.setupLocalProps(),i.config!==void 0&&await this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let i=x(this.commonStrings);return i.series=[n({commonStrings:this.commonStrings,objectIDField:s(this.layerInfo.layer).idField})],i}initDefaultSeries(){this.defaultSeries=n({commonStrings:this.commonStrings,objectIDField:s(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let i=0;i<this.seriesLength;i+=1){let r=w({colorIndex:i,opacity:k});if(I(r,i,this._config),d(r,i,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(i),e=l({config:this._config,seriesIndex:i,layerInfo:this.layerInfo,commonStrings:this.commonStrings});e!==s(this.layerInfo.layer).idField&&b(e??t,i,this._config)}S(this.defaultSeries?.lineSymbol?.style,i,this._config),c(this.defaultSeries?.lineSymbol?.width,i,this._config),y(this.defaultSeries?.markerSymbol?.style,i,this._config),g(this.defaultSeries?.markerSymbol?.size,i,this._config)}this._config.colorMatch=!0}resetAvailable(){let i=!this.colorMatch,r=!1;if(!i)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let e=l({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(t);e!==void 0&&e!==s(this.layerInfo.layer).idField&&e!==o&&(r=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){r=!0;break}}return i||r}};D([f],m.prototype,"resetSeriesStyling");var M=[u,F];p(m,M);return m},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","rest/support/FeatureSet","applications/Components/reactiveUtils",a,b,c,d,e,f,g,h,i,j,k,l,m)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as C}from"./3JODVSTM.js";import{a as f,b as u,c as m,d as g}from"./52EXRWO7.js";import{a as p}from"./MZPEHZQ6.js";import{a as r}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import{a as l}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import{g as y}from"./ITUDVJWT.js";import"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as t,c as o,d as h,e as c,h as b,i as d}from"./CHENEYUV.js";import"./AT75BQVI.js";var S=":host([type='textarea']) .copy-button{flex-shrink:1;align-self:flex-end;min-width:7rem}:host([type='textarea']) calcite-label{display:flex;flex-direction:column;min-width:-moz-fit-content;min-width:fit-content}.copy-button{height:2rem}",x=S,v=class{constructor(e){d(this,e),this.arcgisHubCopyButtonClicked=c(this,"arcgisHubCopyButtonClicked",7),this.type="text",this.label=void 0,this.placeholder=void 0,this.buttonText=void 0,this.value=void 0,this.readonly=!1,this.disabled=!1,p(this,"onCopyButtonClick","handleCalciteInputInput")}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element),this.type==="textarea"&&(this.buttonText=this.buttonText||this.intl.t("copyCode"))}handleCalciteInputInput(e){this.value=e.target.value}onCopyButtonClick(){this.arcgisHubCopyButtonClicked.emit(this.value),C(this.value)}renderCopyButton(e,a,i){return t("calcite-button",{class:"copy-button",disabled:this.disabled,iconStart:a,label:this.intl.t("copyButtonLabel"),onClick:this.onCopyButtonClick,slot:i},e)}renderCalciteInput(){return t("calcite-input",{disabled:this.disabled,onCalciteInputInput:this.handleCalciteInputInput,placeholder:this.placeholder,readOnly:this.readonly,type:"text",value:this.value},this.renderCopyButton(null,"copy-to-clipboard","action"))}renderCalciteTextArea(){return t(b,null,t("calcite-text-area",{disabled:this.disabled,onCalciteTextAreaInput:this.handleCalciteInputInput,placeholder:this.placeholder,readOnly:this.readonly,resize:"none",rows:1,scale:"l",value:this.value}),this.renderCopyButton(this.buttonText))}render(){let e=this.type==="text";return t(o,{key:"89b62213a57837532c43357b1b3ab6240b83e6e2"},t("calcite-label",{key:"86f4c461405315ea29255383c774121d91d8034d"},t("slot",{key:"9f7b48d736648a014f22f39eb4e6d2d6091aa3a4",name:"label"},this.label),e?this.renderCalciteInput():this.renderCalciteTextArea()))}static get assetsDirs(){return["locales"]}get element(){return h(this)}};v.style=x;var B="5.422.0-next.0",I=":host{display:block}",k=I,R=class{get linkUrl(){let e=new URL(location.href),{origin:a,pathname:i,search:n,hash:s}=this;return a&&(e=new URL(a)),i&&(e.pathname=i,e.search=""),n&&(e.search=n),e.hash=s??"",e.href}async getCardState(){let e=this.referenceElement;return e.getState?await e.getState():f(this.referenceElement)}getSnippetByVal(e){if(this.referenceElement&&this.shareableByValue){let{domId:a,referenceElement:i}=this,n=u(B),s=m(i,Object.assign(Object.assign({},e),{id:a}));return`${n}
|
|
3
|
+
${s}`}}getSnippetByRef(){let{referenceElement:e}=this;if(e&&this.shareableByReference){let a=u(B),i=g(e);return`${a}
|
|
4
|
+
${i}>`}}async updateSnippets(){let{referenceElement:e}=this;if(e&&(this.shareableByReference||this.shareableByValue)){await customElements.whenDefined(e.tagName.toLowerCase());let a=await this.getCardState();this.snippetByVal=this.getSnippetByVal(a),this.snippetByRef=this.getSnippetByRef()}}constructor(e){d(this,e),this.hubTelemetry=c(this,"hubTelemetry",7),this.origin=void 0,this.pathname=void 0,this.search=void 0,this.hash=void 0,this.shareable=!1,this.shareableByValue=!1,this.shareableByReference=!1,this.referenceElement=void 0,this.domId=void 0,this.snippetByVal=void 0,this.snippetByRef=void 0,this.domId=y()}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element)}componentWillRender(){this.updateSnippets()}onCopyButtonClicked(e){e.stopPropagation();let a=Object.assign(Object.assign({},l.dictionary.category.interaction.action.share.label.link),{details:e.detail});this.hubTelemetry.emit(a)}render(){return t(o,{key:"21db56690a6014544dadcc1c9a85c98f47a736b2","data-element":"share"},this.shareable&&t("arcgis-copyable-input",{label:this.intl.t("copyLinkLabel"),readonly:!0,type:"text",value:this.linkUrl}),this.shareableByValue&&t("arcgis-copyable-input",{label:this.intl.t("copySnippetByValLabel"),readonly:!0,type:"textarea",value:this.snippetByVal}),this.shareableByReference&&t("arcgis-copyable-input",{label:this.intl.t("copySnippetByRefLabel"),readonly:!0,type:"textarea",value:this.snippetByRef}))}static get assetsDirs(){return["locales"]}get element(){return h(this)}};R.style=k;var E=':host{display:flex;height:100%;flex-direction:column}calcite-fab{justify-content:flex-end}:host([shareable-on-hover]){position:relative}:host([shareable-on-hover]) calcite-fab{pointer-events:none;position:absolute;top:100%;right:0px;left:0px;z-index:10;opacity:0;transition:opacity 150ms ease-out 2000ms}:host([shareable-on-hover]:hover) calcite-fab,:host([shareable-on-hover]:focus) calcite-fab{pointer-events:auto;opacity:1;transition:opacity 250ms ease-in 100ms}calcite-tooltip[aria-hidden="true"]{pointer-events:none}',O=E,T=class{get isShareable(){let{shareable:e,referenceElement:a}=this;return e&&!!a?.id}get shouldRender(){let{isShareable:e,shareableByValue:a,shareableByReference:i}=this;return e||a||i}get _messageOverrides(){return{close:this.intl.t("modalClose")}}onModalClose(){this.modalIsOpen=!1;let e=Object.assign({},l.dictionary.category.interaction.action.close.label.modal.details.share);this.hubTelemetry.emit(e)}onOpenModalButtonClick(){this.modalIsOpen=!0;let e=Object.assign({},l.dictionary.category.interaction.action.open.label.popover.details.share);this.hubTelemetry.emit(e)}constructor(e){d(this,e),this.hubTelemetry=c(this,"hubTelemetry",7),this.shareable=!1,this.shareableByValue=!1,this.shareableByReference=!1,this.referenceElement=void 0,this.shareableOnHover=!1,this.showShareUi=!0,this.modalIsOpen=!1,p(this,"onModalClose","onOpenModalButtonClick")}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element)}componentDidLoad(){if(!this.referenceElement){let e=this.element.shadowRoot.querySelector("slot");this.referenceElement=e.assignedElements()[0]}}renderSharingUi(){if(this.shouldRender)return t(b,null,t("calcite-fab",{appearance:"outline-fill",icon:"share",kind:"brand",label:this.intl.t("shareableTooltip"),onClick:this.onOpenModalButtonClick,text:this.intl.t("shareableTooltip"),textEnabled:!0}),t("arcgis-wormhole",null,t("calcite-dialog",{heading:this.intl.t("modalHeading"),messageOverrides:this._messageOverrides,modal:!0,onCalciteDialogClose:this.onModalClose,open:this.modalIsOpen,scale:"s"},this.modalIsOpen&&t("arcgis-share",{hash:this.referenceElement&&this.referenceElement.id,referenceElement:this.referenceElement,shareable:this.shareable,shareableByReference:this.shareableByReference,shareableByValue:this.shareableByValue}))))}render(){return t(o,{key:"c401d0ced78a7844fd526f4c4a9759450eeaa8e6","data-element":"shareable-card",tabindex:this.shouldRender&&this.shareableOnHover?"0":void 0},t("slot",{key:"8026d11d919eb2c171cf0ee8b4af836b0888576b"}),this.showShareUi&&this.renderSharingUi())}static get assetsDirs(){return["locales"]}get element(){return h(this)}};T.style=O;export{v as arcgis_copyable_input,R as arcgis_share,T as arcgis_shareable_card};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as m,b as y}from"./WUZQBPV4.js";import{a as p}from"./K5HZ2G74.js";async function I(a,e,l){return(await Promise.all(a.map(async n=>await Promise.all(e.map(async r=>{let o={id:r.id,groupId:n.id,status:"success"};try{await y(r,[n.id],l)}catch{o.status="fail"}return o}))))).flat()}async function P(a,e,l){let i=(await Promise.all(a.map(async t=>await Promise.all(e.map(async c=>{let u={id:c.id,groupId:t.id,status:"success"};try{await m(c,[t.id],l)}catch{u.status="fail"}return u}))))).flat(),n=p(e[0]),r=["group","event"].includes(n)?n:"item",o=i.some(t=>t.status==="fail")?"fail":"success",d=a.map(t=>{let c=i.filter(s=>s.groupId===t.id&&s.status==="success").map(s=>s.id),u=i.filter(s=>s.groupId===t.id&&s.status==="fail").map(s=>s.id);return{group:t,targetEntity:r,success:c,successQuery:f(r,c),fail:u,failQuery:f(r,u)}});return{overallStatus:o,groups:a,entities:e,results:i,receipts:d}}function f(a,e){return{targetEntity:a,filters:[{predicates:[{id:e}]}]}}export{I as a,P as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as n}from"./K6CWANHE.js";import{b as r,k as o}from"./FII3RW6D.js";import"./JKGOCFVC.js";import{B as m,H as c,a as s,b as a}from"./546UMMXC.js";import"./DUUDWZXE.js";import"./AT75BQVI.js";var l=s`:host{display:grid;gap:2rem;grid-template-columns:repeat(2,minmax(20rem,1fr))}arcgis-hub-metric-card{min-height:15rem;height:100%}@media only screen and (width<=992px){:host{grid-template-columns:unset}}`,e=class extends m{static{this.properties={entity:0}}static{this.styles=l}get _metricDisplays(){return r(this.entity||{},"view.metricDisplays",[]).filter(t=>t.visibility===o.featured)}render(){return this._metricDisplays.map(t=>{let i=r(this.entity||{},"metrics",[]).find(d=>d.id===t.metricId);return i&&n(i.id,a`<arcgis-hub-metric-card .cardConfig=${{...t,scale:"m",border:!0}} .metric=${i}></arcgis-hub-metric-card>`)||""}).filter(Boolean)}};c("arcgis-hub-entity-metrics-card",e);export{e as ArcgisHubEntityMetricsCard};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as f,b as w}from"./2WECGEBX.js";import{a as A}from"./W75PS2IE.js";import{a as g,b as F,c as _}from"./ILA26VYV.js";import{b as M,c as S}from"./EPITUUL4.js";import{a as O}from"./4E7UX35B.js";import{a as b}from"./JMUGY3OJ.js";import{a as P}from"./FUJECPFL.js";import"./3PZNRYMF.js";import{a as v,d as E}from"./INL22W2K.js";import{a as C}from"./U7DDSGRI.js";import d from"./4KOILCWX.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./CXTLB2JC.js";import{a as k}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import{a as D}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import c from"./DB7GEQTR.js";import"./K5HZ2G74.js";import{a as y}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import{a as m}from"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as a,c as I,d as R,e as u,h as x,i as H}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([,,{f:j,g:p,h:T,n:W,s:G}])=>{var z=e=>{let{hasNoGeometries:t,locationNameRequired:i}=e,o=[];return i&&o.push("name"),t?{type:"object"}:{type:"object",required:o,properties:{name:{type:"string"}}}},U=e=>{let{hasNoGeometries:t}=e;return t?{type:"Layout",elements:[]}:{type:"Layout",elements:[{scope:"/properties/name",type:"Control",label:"{{locationName.label:translate}}",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,label:"{{locationName.error:translate}}"}]}}]}},q=({text:e="",position:t="bottom",type:i="info"})=>a("div",{class:`map-fixed-position-tooltip map-${i} ${t}`},e),B=".sc-arcgis-hub-location-picker-h{display:block;--calcite-action-pad-corner-radius:0;--floating-tool-z-index:901}.row.sc-arcgis-hub-location-picker{display:flex;flex-direction:column}@media (min-width: 768px){.row.sc-arcgis-hub-location-picker{flex-direction:row}}arcgis-hub-map-view.sc-arcgis-hub-location-picker{position:relative;margin-bottom:1rem;height:430px;width:100%}@media (min-width: 768px){arcgis-hub-map-view.sc-arcgis-hub-location-picker{margin-bottom:0px}}.hide.sc-arcgis-hub-location-picker{display:none}arcgis-hub-map-view.sc-arcgis-hub-location-picker .arcgis-location-picker-map-overlay.sc-arcgis-hub-location-picker{position:absolute;top:0px;left:0px;z-index:10;display:flex;height:100%;width:100%;flex-direction:column;justify-content:center;background-color:#0000004d;color:var(--calcite-color-text-inverse)}.arcgis-location-picker-none-message.sc-arcgis-hub-location-picker{text-align:center}.draw-popover.sc-arcgis-hub-location-picker{width:max-content}.draw-popover.sc-arcgis-hub-location-picker>p.sc-arcgis-hub-location-picker{margin:0px;padding:0.75rem}.location-picker__sidepanel.sc-arcgis-hub-location-picker{box-sizing:border-box;display:flex;width:100%;flex-direction:column;justify-content:space-between;background-color:var(--calcite-color-foreground-3);padding:1rem}@media (min-width: 768px){.location-picker__sidepanel.sc-arcgis-hub-location-picker{max-width:20rem}}calcite-list.sc-arcgis-hub-location-picker{margin-bottom:1rem;width:100%;background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-3)}@media (min-width: 768px){calcite-list.sc-arcgis-hub-location-picker{max-width:20rem}}calcite-notice.sc-arcgis-hub-location-picker{width:100%}@media (min-width: 768px){calcite-notice.sc-arcgis-hub-location-picker{max-width:20rem}}calcite-popover[open].sc-arcgis-hub-location-picker+calcite-tooltip.sc-arcgis-hub-location-picker{display:none}calcite-popover.sc-arcgis-hub-location-picker{pointer-events:auto}arcgis-search.sc-arcgis-hub-location-picker{margin-bottom:0px}calcite-dropdown.sc-arcgis-hub-location-picker{width:240px}calcite-dropdown[open].sc-arcgis-hub-location-picker{height:1px}.lp-geometry-warning-notice.sc-arcgis-hub-location-picker{position:absolute;left:10px;z-index:var(--floating-tool-z-index);bottom:calc(var(--map-tooltip-height) + 10px)}",$=B,N=function(e,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(s<3?l(n):s>3?l(t,i,n):l(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},V=1.5,J=["point","polyline","polygon","rectangle"],L=class{constructor(e){H(this,e),this.arcgisHubLocationPickerUpdate=u(this,"arcgisHubLocationPickerUpdate",7),this.arcgisHubMapPopoverOpen=u(this,"arcgisHubMapPopoverOpen",7),this.arcgisHubMapPopoverClear=u(this,"arcgisHubMapPopoverClear",7),this.hubTelemetry=u(this,"hubTelemetry",7),this._defaultMapTooltip="",this.handles=[],this._drawToolIcons={point:"pin",polyline:"freehand",polygon:"freehand-area",rectangle:"rectangle-area"},this._lastSearchResult=null,this.handleLocationEditorChange=t=>{t.stopPropagation();let{values:i}=t.detail;this._selected=Object.assign(Object.assign({},this._selected),{location:Object.assign(Object.assign({},this._selected.location),i)}),this.arcgisHubLocationPickerUpdate.emit(this._selected.location)},this.translationFunc=(t,i,o)=>this.intl.t(t,i,o),this.options=void 0,this.extent=void 0,this.mapTools=J,this.theme={},this.resetDrawingToolsOnDisconnect=!0,this.maxVerticesCount=60,this.maxFeaturesCount=10,this.locationNameRequired=void 0,this.noticeTitleElementAriaLevel=void 0,this.enableInvalidGeometryWarning=!1,this.isGeometryCollectionInvalid=!1,this._selected=void 0,this._view=void 0,this._editingGraphic=void 0,this._isEditing=!1,this._currentDrawTools=this.mapTools,this._currentActiveDrawTool=void 0,this.customLocationDrawActionRef=void 0,this.isMobile=void 0,this.activeDrawingTooltip={text:this._defaultMapTooltip,isGeometryValid:!0},k(this,"_setMapDrawElement","handleViewPointerMoveOrDown","handleViewPointerLeave","editFeature","removeFeature","renderEditOptions","clearEditState","checkIsMobile","handleTileGroupSelect")}get _selectedType(){var e,t;return(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.type}get _shouldEditFeatures(){return["custom"].includes(this._selectedType)}get _selectedOption(){var e;return(e=this.options)===null||e===void 0?void 0:e.find(t=>t.selected)}get _showExtent(){return["item","org"].find(e=>e===this._selectedType)}get _selectedExtentGraphic(){var e,t,i,o;return[{symbol:j(),geometry:Object.assign({type:"extent",spatialReference:(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.spatialReference},v((o=(i=this._selected)===null||i===void 0?void 0:i.location)===null||o===void 0?void 0:o.extent))}]}get _selectedGraphics(){if(this._showExtent)return this._selectedExtentGraphic}get _schema(){var e,t,i;return z({hasNoGeometries:this._selectedType==="none"||this._shouldEditFeatures&&!(!((i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0)&&i.length),locationNameRequired:this.locationNameRequired})}get _uiSchema(){var e,t,i;return P(this.intl,U({hasNoGeometries:this._selectedType==="none"||this._shouldEditFeatures&&!(!((i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0)&&i.length)}))}_setMapDrawElement(e){this._mapDrawToolsEl=e}get themeWithDefaults(){let{theme:e}=this,t={};return["extent","point","polyline","polygon"].forEach(i=>{t[i]=Object.assign(Object.assign({},O[i]),e[i])}),t}async componentWillLoad(){this.intl=await D.loadIntlForComponent(this.el),this.onOptionsUpdate(),this.addWatchHandles(),this._defaultMapTooltip=this.intl.t("defaultTooltip"),this.activeDrawingTooltip.text=this._defaultMapTooltip}async componentDidLoad(){this.arcgis=await import("./LRLKKT6E.js").then(m=>m.default)}connectedCallback(){this.addWatchHandles(),b.addHandler(globalThis.document.body,this.checkIsMobile)}disconnectedCallback(){G(this.handles),b.removeHandler(globalThis.document.body,this.checkIsMobile)}addWatchHandles(){let{_view:e,handles:t}=this;e&&(t.push(this._view.on(["pointer-move","pointer-down"],this.handleViewPointerMoveOrDown)),t.push(this._view.on("pointer-leave",this.handleViewPointerLeave)))}checkIsMobile(){this._checkIsMobile()}_checkIsMobile(){let{matches:e}=globalThis.matchMedia("(max-width: 768px");this.isMobile=e}handleViewChange(e,t){e&&e!==t&&(G(this.handles),this.addWatchHandles())}async onOptionsUpdate(){var e,t;this._selected=Object.assign({},this._selectedOption),this._shouldEditFeatures?await this._initializeGraphicsLayer():this._showExtent&&(!(!((e=this._selected.location)===null||e===void 0)&&e.geometries)||!(!((t=this._selected.location)===null||t===void 0)&&t.geometries.length))&&(this._updateSelectedLocationExtentToGeometry(),this._emitLocationWithFallback())}async handleMapViewReady(e){e.stopPropagation();let{detail:{view:t}}=e;this._view=t,this._shouldEditFeatures&&await this._initializeGraphicsLayer()}async handleTileGroupSelect(e){e.stopPropagation();let t=e.target.selectedItems[0].getAttribute("value"),i=this.options[t];i.location.type!==this._selectedType&&(this._shouldEditFeatures&&(this._destroyLayers(),this.arcgisHubMapPopoverClear.emit(),this._mapDrawToolsEl.forceReset(),this._resetToolsAndEditState(!0)),this._selected=Object.assign(Object.assign({},i),{selected:!0}),this._shouldEditFeatures&&await this._initializeGraphicsLayer(),this._showExtent&&this._updateSelectedLocationExtentToGeometry(),this._emitLocationWithFallback(),this.hubTelemetry.emit(Object.assign(Object.assign({},y.dictionary.category.interaction.action.select),{label:i.label})))}async handleGraphicsChange(e){let{detail:{graphics:t,save:i,unsaved:o,canceled:s}}=e,{executeGeneralize:n,normalizeCentralMeridian:l}=this.arcgis,r=t.getItemAt(0),c=r.geometry.clone();r.geometry=c.type==="extent"?c:n(c,F(this._view));let d=await l(r.geometry);if(d?.length&&(r.geometry=d[0]),o||i){let h=_[r.geometry.type](g.DEFAULT,this.themeWithDefaults[r.geometry.type]);this.isGeometrySelfIntersecting(r.geometry)&&(h=r.geometry.type==="polygon"?w():f()),r.symbol=h,this._addGraphic(r)}else s&&(this._mapDrawToolsEl.forceReset(),this._addGraphicsToGraphicsLayer(this.geometryGraphicsLayer,[this._editingGraphic]),this.arcgisHubMapPopoverClear.emit(),this.arcgisHubLocationPickerUpdate.emit(this._selected.location),this._resetToolsAndEditState());this.validateGeometryCollection()}handleDrawToolSelection(e){e.preventDefault();let t=e.detail;this._isEditing=!0,t&&(this._currentDrawTools=[t],this._currentActiveDrawTool=t)}handleMapTooltipClear(){this.activeDrawingTooltip={text:this._defaultMapTooltip,isGeometryValid:!0}}handleMapTooltipUpdated(e){e.stopPropagation(),this.activeDrawingTooltip={text:e.detail.text,isGeometryValid:e.detail.isGeometryValid}}handleSelectSearchResult(e){var t;if(e.stopPropagation(),!this._searchActionDropdown)return;this._lastSearchResult=e.detail.result;let i=p((t=this._selected)===null||t===void 0?void 0:t.location)<this.maxVerticesCount&&this._getCurrentFeaturesCount<this.maxFeaturesCount&&this._selectedType==="custom";this._searchActionDropdown.open=i,e.target.clear()}handleDropdownSelect(e){e.stopPropagation();let{Graphic:t}=this.arcgis;if(!this._lastSearchResult)return;let i=this._searchActionDropdown.selectedItems[0],o=i?.getAttribute("value"),s=null;switch(o){case"point":s=m(this._lastSearchResult,"feature.geometry");break;case"extent":s=m(this._lastSearchResult,"extent");break}if(s){let l=_[s.type](g.DEFAULT,this.themeWithDefaults[s.type]),r=new t({geometry:s,symbol:l});this._addGraphic(r);let c=T(o);this._currentDrawTools=[c],this._currentActiveDrawTool=c}let n=m(this._lastSearchResult,"name");n&&(this._selected.location.name=n),i.selected=!1}handleViewPointerMoveOrDown(e){let{_view:t,geometryGraphicsLayer:i}=this;this._shouldEditFeatures&&t.hitTest(e,{include:i}).then(o=>{let s=W(o.results);s&&!this._isEditing&&(this._editingGraphic=s.graphic,this.arcgisHubMapPopoverOpen.emit({source:"location-picker-options",geometry:s.graphic.geometry,view:t,render:this.renderEditOptions}))})}handleViewPointerLeave(e){var t;e.stopPropagation(),((t=e.native.relatedTarget)===null||t===void 0?void 0:t.tagName)!=="ARCGIS-HUB-MAP-POPOVER"&&this.arcgisHubMapPopoverClear.emit()}_addGraphic(e){var t;this._mapDrawToolsEl.forceReset(),this._addGraphicsToGraphicsLayer(this.geometryGraphicsLayer,[e]),this._updateSelectedLocation(),p((t=this._selected)===null||t===void 0?void 0:t.location)<=this.maxVerticesCount&&this.arcgisHubLocationPickerUpdate.emit(this._selected.location),this.arcgisHubMapPopoverClear.emit(),this._resetToolsAndEditState(),this._isEditing=!1}_updateSelectedLocation(){let{project:e}=this.arcgis;this.validateGeometryCollection(),this.isGeometryCollectionInvalid||(this._selected.location=Object.assign(Object.assign({},this._selected.location),{geometries:this.geometryGraphicsLayer.graphics.clone().toArray().map(t=>{var i,o;let s=!((i=this._selected.location)===null||i===void 0)&&i.spatialReference?e(t.geometry,(o=this._selected.location)===null||o===void 0?void 0:o.spatialReference):t.geometry;return Object.assign(Object.assign({},s.toJSON()),{type:s.type})}),extent:this._getExtentForAllGraphics}))}get _getCurrentFeaturesCount(){var e,t,i;return((i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0?void 0:i.length)||0}_updateSelectedLocationExtentToGeometry(){var e,t,i,o,s;let{Polygon:n}=this.arcgis,l=new n({spatialReference:{wkid:(i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.spatialReference)===null||i===void 0?void 0:i.wkid}}),{xmin:r,ymin:c,xmax:d,ymax:h}=v((s=(o=this._selected)===null||o===void 0?void 0:o.location)===null||s===void 0?void 0:s.extent);l.addRing([[r,c],[r,h],[d,h],[d,c],[r,c]]),this._selected.location.geometries=[Object.assign(Object.assign({},l.toJSON()),{type:"polygon"})]}async _initializeGraphicsLayer(e=!0){var t,i,o,s;let{_view:n}=this;if(n){await n.when();let{Graphic:l}=this.arcgis;if(this._destroyLayers(),this.addGeometryGraphicsLayer(),!((t=this._selected.location)===null||t===void 0)&&t.geometries){if(this._addGraphicsToGraphicsLayer(this.geometryGraphicsLayer,this._selected.location.geometries.map(r=>{let c=_[r.type](g.DEFAULT,this.themeWithDefaults[r.type]);return this.isGeometrySelfIntersecting(r)&&(c=r.type==="polygon"?w():f()),new l({geometry:r,symbol:c})})),e){let r=T((s=(o=(i=this._selected)===null||i===void 0?void 0:i.location)===null||o===void 0?void 0:o.geometries[0])===null||s===void 0?void 0:s.type);this._currentDrawTools=[r],this._currentActiveDrawTool=r}this._selectedType==="custom"&&this.geometryGraphicsLayer.graphics.length&&(await this._view.goTo(this.geometryGraphicsLayer.graphics.toArray(),{animate:!1}),this._view.extent=this._view.extent.expand(V))}this.validateGeometryCollection()}}addGeometryGraphicsLayer(){let{GraphicsLayer:e}=this.arcgis;this.geometryGraphicsLayer=new e({graphics:[],elevationInfo:{mode:"on-the-ground"}}),this._view.map.add(this.geometryGraphicsLayer)}_addGraphicsToGraphicsLayer(e,t){e.addMany(t)}_destroyLayers(){[this.geometryGraphicsLayer].forEach(e=>{e&&(e.removeAll(),e.destroy())})}get _getExtentForAllGraphics(){let{geometryGraphicsLayer:e}=this,{project:t}=this.arcgis,i;return e.graphics.forEach(o=>{var s,n;let l=t(o.geometry,(n=(s=this._selected)===null||s===void 0?void 0:s.location)===null||n===void 0?void 0:n.spatialReference)||o.geometry,r=l.extent;l.type==="point"&&(!i||!i.contains(l))&&(r=this.pointToExtent(l)),r&&(i=i?i.union(r):r)}),i?E(i):void 0}pointToExtent(e,t=.0025){let{Extent:i}=this.arcgis,{x:o,y:s,spatialReference:n}=e;return new i({xmin:o-t,ymin:s-t,xmax:o+t,ymax:s+t,spatialReference:n})}_resetToolsAndEditState(e=!1){var t,i;this._isEditing=!1,this._mapDrawToolsEl.disableEditOptions=!0,this._mapDrawToolsEl.disablePrimaryOptions=!0,this._editingGraphic=null,(!(!((i=(t=this._selected.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0)&&i.length)&&!this.isGeometryCollectionInvalid||e)&&(this._currentDrawTools=this.mapTools,this._currentActiveDrawTool=void 0)}editFeature(){this._isEditing=!0,this._mapDrawToolsEl.geometry=this._editingGraphic.geometry,this._mapDrawToolsEl.disableEditOptions=!1,this._mapDrawToolsEl.disablePrimaryOptions=!1,this.geometryGraphicsLayer.remove(this._editingGraphic),this.arcgisHubMapPopoverClear.emit()}removeFeature(){this._mapDrawToolsEl.forceReset(),this.geometryGraphicsLayer.remove(this._editingGraphic),this.geometryGraphicsLayer.graphics.length||(this._selected.location.name=void 0),this._updateSelectedLocation(),this._emitLocationWithFallback(),this.arcgisHubMapPopoverClear.emit(),this._resetToolsAndEditState()}_emitLocationWithFallback(){var e,t,i;let o=this._shouldEditFeatures&&!(!((i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0)&&i.length)&&!this.isGeometryCollectionInvalid;this.arcgisHubLocationPickerUpdate.emit(o?{type:"none"}:this._selected.location)}async clearEditState(){this._destroyLayers(),this.arcgisHubMapPopoverClear.emit(),this._mapDrawToolsEl.forceReset(),this._resetToolsAndEditState(!0),this._selected.location=Object.assign(Object.assign({},this._selected.location),{geometries:[],name:void 0}),await this._initializeGraphicsLayer(!1),this._emitLocationWithFallback(),this.hubTelemetry.emit(y.dictionary.category.interaction.action.remove.label.location.details.clearAll)}renderEditOptions(){let e=this.intl.t("edit"),t=this.intl.t("delete");return a("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal"},a("calcite-action",{appearance:"solid",icon:"pencil",onClick:this.editFeature,text:e}),a("calcite-action",{appearance:"solid",icon:"trash",onClick:this.removeFeature,text:t}))}renderPopovers(){return a("arcgis-wormhole",{styles:{position:"absolute",top:0,left:0}},a("arcgis-hub-map-popover",{target:"location-picker-options",unthemed:!0}))}renderNotice(){var e,t,i,o,s,n;if(this._shouldEditFeatures&&!this.isGeometryCollectionInvalid){let l=!(!((i=(t=(e=this._selected)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.geometries)===null||i===void 0)&&i.length),r=this._getCurrentFeaturesCount>=this.maxFeaturesCount,c=p((o=this._selected)===null||o===void 0?void 0:o.location)>this.maxVerticesCount,d=((s=this._selected)===null||s===void 0?void 0:s.entityType)||"content",h=l||r||c;return a("div",{"aria-live":"polite",class:"notice-status-wrapper",role:"status"},a("calcite-notice",{icon:h?"exclamation-mark-triangle":"information",kind:h?"warning":"info",open:!0},a("div",{"aria-level":this.noticeTitleElementAriaLevel,role:this.noticeTitleElementAriaLevel?"heading":null,slot:"title"},l?this.intl.t("emptyLocation.title"):r?this.intl.t("maximumLocations.title"):c?this.intl.t("maximumPoints.title",{currentCount:p((n=this._selected)===null||n===void 0?void 0:n.location),maxLocations:this.maxVerticesCount}):this.intl.t("populatedLocation.title")),a("div",{slot:"message"},l?this.intl.t("emptyLocation.message",{entityType:this.intl.t(`entityTypes.${d}`)}):r?this.intl.t("maximumLocations.message"):c?this.intl.t("maximumPoints.message"):this.intl.t("populatedLocation.message",{maxLocations:this.maxFeaturesCount}))))}}get locationActionTypes(){return this._currentDrawTools.map(e=>({type:e==="rectangle"?"extent":e,icon:this._drawToolIcons[e]}))}validateGeometryCollection(){let{geometryGraphicsLayer:e}=this;e.graphics.toArray().map(o=>o.geometry).filter(o=>this.isGeometrySelfIntersecting(o)).length>0?(this.isGeometryCollectionInvalid=!0,this._selected.location.geometries=[],this._selected.location.name=void 0):this.isGeometryCollectionInvalid=!1}isGeometrySelfIntersecting(e){let{Polyline:t,executeCrosses:i}=this.arcgis;if(!this.enableInvalidGeometryWarning)return!1;switch(e.type){case"polygon":return M(e,this.arcgis.simplifyOperatorIsSimple);case"polyline":return S(e,t,i)}return!1}get _shouldHideMapWidgetDraw(){var e;return!this._shouldEditFeatures||p((e=this._selected)===null||e===void 0?void 0:e.location)>this.maxVerticesCount||this._getCurrentFeaturesCount>=this.maxFeaturesCount}renderMap(){let e=this._selectedType==="none",t=this._selectedType==="custom";return a("arcgis-hub-map-view",{class:{"map-border":t&&this.activeDrawingTooltip.isGeometryValid,"map-border-danger":t&&!this.activeDrawingTooltip.isGeometryValid},expand:e?V:void 0,extent:e?this.extent:void 0,graphics:this._selectedGraphics,hideZoom:!0,mouseWheel:"zoom",inert:e},a("div",{class:{hide:!t}},a(q,{position:"bottom",text:this.activeDrawingTooltip.text,type:this.activeDrawingTooltip.isGeometryValid?"info":"danger"})),a("arcgis-expand",{"collapse-icon":"search","expand-icon":"search",expanded:t,mode:"floating",placement:"left",slot:"top-right","top-layer-disabled":!0},a("arcgis-search",{"popup-disabled":!0,"result-graphic-disabled":!0,view:this._view}),a("calcite-dropdown",{"overlay-positioning":"fixed",ref:i=>this._searchActionDropdown=i},a("div",{slot:"trigger"}),a("calcite-dropdown-group",null,this._currentDrawTools.includes("point")&&a("calcite-dropdown-item",{value:"point"},this.intl.t("searchActions.point")),this._currentDrawTools.includes("rectangle")&&a("calcite-dropdown-item",{value:"extent"},this.intl.t("searchActions.rectangle")),a("calcite-dropdown-item",{value:"draw"},this.intl.t("searchActions.draw"))))),a("arcgis-zoom",{slot:"top-right"}),a("arcgis-hub-map-widget-container",{class:{hide:!t},scale:"s",slot:"top-right",view:this._view},a("arcgis-hub-map-widget-draw",{class:{hide:this._shouldHideMapWidgetDraw},"disable-edit-options":!0,"disable-primary-options":!0,disabled:this._isEditing,"enable-map-tips":!0,enableInvalidGeometryWarning:this.enableInvalidGeometryWarning,"hide-draw-tooltip":!0,ref:this._setMapDrawElement,resetOnDisconnect:this.resetDrawingToolsOnDisconnect,scale:"s",tools:this._currentDrawTools,unthemed:!0,view:this._view}),a("arcgis-hub-map-widget-generic",{class:{hide:!this._getCurrentFeaturesCount&&!this._currentActiveDrawTool},"data-type":"reset",icon:"x-circle",onClick:this.clearEditState,scale:"s",text:this.intl.t("drawLocationPopover.clear")})),t&&this.isGeometryCollectionInvalid&&a("calcite-notice",{class:"lp-geometry-warning-notice",kind:"danger",open:!0},a("div",{slot:"title"},this.intl.t("invalidGeometry.title")),a("div",{slot:"message"},this._currentActiveDrawTool==="polyline"?this.intl.t("invalidGeometry.polyline.selfIntersecting"):this.intl.t("invalidGeometry.polygon.selfIntersecting"))),e?a("div",{class:"arcgis-location-picker-map-overlay"},a("div",{class:"arcgis-location-picker-none-message"},this.intl.t("noneMessage"))):null)}renderOptionsList(){return a("div",{class:"location-picker__sidepanel"},a("calcite-tile-group",{layout:"vertical",onCalciteTileGroupSelect:this.handleTileGroupSelect,selectionMode:"single-persist"},this.options.map((e,t)=>a("calcite-tile",{description:e.description,heading:e.label,key:t,label:e.label,selected:e.selected,value:t}))),a("arcgis-configuration-editor",{onArcgisConfigurationEditorChange:this.handleLocationEditorChange,schema:this._schema,t:this.translationFunc,uiSchema:this._uiSchema,values:this._selected.location}),this.renderNotice())}renderMobileLayout(){return a(x,null,this.renderMap(),this.renderOptionsList())}renderLayout(){return a(x,null,this.renderOptionsList(),this.renderMap())}render(){return a(I,{key:"e6e1f7a2c76602af671bc4a75941e0c1dac7a715","data-element":"location-picker",unthemed:!0},a("div",{key:"4b5909dade495ddcdee77c295ecdfaea1dbd4687",class:"row"},this.isMobile?this.renderMobileLayout():this.renderLayout()),this.renderPopovers())}static get assetsDirs(){return["locales"]}get el(){return R(this)}static get watchers(){return{_view:["handleViewChange"],options:["onOptionsUpdate"]}}};N([C({timeout:250})],L.prototype,"checkIsMobile",null);N([A({when(){return this._view}})],L.prototype,"renderPopovers",null);L.style=$;return L},"config",c,d)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
function se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function K(e){return Object.keys(e).some(t=>{let r=e[t];if(!r)return!1;switch(r&&r.toParam&&(r=r.toParam()),r.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function O(e){let t={};return Object.keys(e).forEach(r=>{var n,o;let i=e[r];if(i&&i.toParam&&(i=i.toParam()),!i&&i!==0&&typeof i!="boolean"&&typeof i!="string")return;let s=i.constructor.name,c;switch(s){case"Array":let m=(o=(n=i[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;c=m==="Array"?i:m==="Object"?JSON.stringify(i):i.join(",");break;case"Object":c=JSON.stringify(i);break;case"Date":c=i.valueOf();break;case"Function":c=null;break;case"Boolean":c=i+"";break;default:c=i;break}(c||c===0||typeof c=="string"||Array.isArray(c))&&(t[r]=c)}),t}function ae(e,t){return Array.isArray(t)&&t[0]&&Array.isArray(t[0])?t.map(r=>ae(e,r)).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(t)}function v(e){let t=O(e);return Object.keys(t).map(r=>ae(r,t[r])).join("&")}var ce=globalThis.FormData,Ye=globalThis.File,Qe=globalThis.Blob;function ue(e,t){let r=K(e)||t,n=O(e);if(r){let o=new ce;return Object.keys(n).forEach(i=>{if(typeof Blob<"u"&&n[i]instanceof Blob){let s=n.fileName||n[i].name||i;o.append(i,n[i],s)}else o.append(i,n[i])}),o}else return v(e)}var k=class extends Error{constructor(t,r,n,o,i){super(t);let s=new.target.prototype;Object.setPrototypeOf(this,s),t=t||"UNKNOWN_ERROR",r=r||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=r==="UNKNOWN_ERROR_CODE"?t:`${r}: ${t}`,this.originalMessage=t,this.code=r,this.response=n,this.url=o,this.options=i}};var je={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},X="ARCGIS_REST_JS_NO_CORS";globalThis[X]||(globalThis[X]=Object.assign({},je));var w=globalThis[X];function le(e){let t=new URL(e);e=t.origin+t.pathname,t.search.includes("f=json")&&(e+="?f=json");let r=t.origin;return w.pendingNoCorsRequests[r]?w.pendingNoCorsRequests[r]:(w.pendingNoCorsRequests[r]=fetch(e,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r),w.crossOriginNoCorsDomains[r.toLowerCase()]=Date.now(),delete w.pendingNoCorsRequests[r]}).catch(n=>(delete w.pendingNoCorsRequests[r],Promise.reject(new Error(`no-cors request to ${r} failed`)))),w.pendingNoCorsRequests[r])}function me(e){e.forEach(t=>{t=t.toLowerCase(),/^https?:\/\//.test(t)?Z(t):(Z("http://"+t),Z("https://"+t))})}function Z(e){let r=new URL(e).origin;w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r)}function q(e){let t=!1;if(w.noCorsDomains.length){let r=new URL(e).origin.toLowerCase();t=w.noCorsDomains.some(n=>r.includes(n))}return t}function he(e){let t=!1;if(q(e)){let r=new URL(e).origin.toLowerCase(),n=w.crossOriginNoCorsDomains[r]||0;Date.now()-60*6e4>n&&(t=!0)}return t}function R(e){console&&console.warn&&console.warn.apply(console,[e])}function fe(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function pe(e,t){var r;if(!t&&!window||!e)return!1;{t=t||window;let n=(r=t.location)===null||r===void 0?void 0:r.origin;return e.startsWith(n)}}var ee="@esri/arcgis-rest-js";function Ue(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(t="AUTHENTICATION_ERROR",r="AUTHENTICATION_ERROR_CODE",n,o,i){super(t,r,n,o,i),this.name="ArcGISAuthError",this.message=r==="AUTHENTICATION_ERROR_CODE"?t:`${r}: ${t}`;let s=new.target.prototype;Object.setPrototypeOf(this,s)}retry(t,r=1){let n=0,o=(i,s)=>{n=n+1,t(this.url,this.options).then(c=>{let m=Object.assign(Object.assign({},this.options),{authentication:c});return de(this.url,m)}).then(c=>{i(c)}).catch(c=>{c.name==="ArcGISAuthError"&&n<r?o(i,s):c.name===this.name&&c.message===this.message&&n>=r?s(this):s(c)})};return new Promise((i,s)=>{o(i,s)})}};function Pe(e,t,r,n,o){if(e.code>=400){let{message:i,code:s}=e;throw new k(i,s,e,t,n)}if(e.error){let{message:i,code:s,messageCode:c}=e.error,m=c||s||"UNKNOWN_ERROR_CODE";throw s===498||s===499?o||new A(i,m,e,t,n):new k(i,m,e,t,n)}if(e.status==="failed"||e.status==="failure"){let i,s="UNKNOWN_ERROR_CODE";try{i=JSON.parse(e.statusMessage).message,s=JSON.parse(e.statusMessage).code}catch{i=e.statusMessage||e.message}throw new k(i,s,e,t,n)}return e}function de(e,t){let r=Ue(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},r),t),{params:Object.assign(Object.assign({},r.params),t.params),headers:Object.assign(Object.assign({},r.headers),t.headers)}),{httpMethod:o,rawResponse:i}=n,s=Object.assign({f:"json"},n.params),c=null,m={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};q(e)&&(m.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&e.indexOf("/oauth2/platformSelf")>-1&&(m.credentials="include");let y;if(typeof n.authentication=="string"){let l=n.authentication;y={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(l)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AAPT")&&!n.authentication.startsWith("AATK")&&!n.authentication.startsWith("AAST")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(R("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else y=n.authentication;let p=e,g=!1;typeof window<"u"&&(g=pe(e));let $=!g&&he(e);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&e.indexOf("/oauth2/platformSelf")>-1&&(m.credentials="include");let j=Promise.resolve();return $&&(m.credentials="include",j=le(e)),j.then(()=>y?y.getToken(e).catch(l=>(l.url=e,l.options=n,c=l,Promise.resolve(""))):Promise.resolve("")).then(l=>{l.length&&(s.token=l),y&&y.getDomainCredentials&&(m.credentials=y.getDomainCredentials(e));let h={};if(m.method==="GET"){s.token&&n.hideToken&&typeof window>"u"&&(h["X-Esri-Authorization"]=`Bearer ${s.token}`,delete s.token);let I=v(s)===""?e:e+"?"+v(s);n.maxUrlLength&&I.length>n.maxUrlLength||!n.maxUrlLength&&I.length>2e3||s.token&&n.hideToken?(m.method="POST",l.length&&n.hideToken&&(s.token=l,delete h["X-Esri-Authorization"])):e=I}let x=new RegExp("/items/.+/updateResources").test(e);return m.method==="POST"&&(m.body=ue(s,x)),m.headers=Object.assign(Object.assign({},h),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!m.headers.referer&&(m.headers.referer=ee),!K(s)&&!x&&(m.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(e,m):fe().then(({fetch:f})=>f(e,m))}).then(l=>{if(!l.ok)return l.json().then(h=>{let{status:x,statusText:f}=l,{message:I,details:D}=h.error,P=`${I}. ${D?D.join(" "):""}`.trim();throw new k(P,`HTTP ${x} ${f}`,h,e,n)}).catch(h=>{if(h.name==="ArcGISRequestError")throw h;let{status:x,statusText:f}=l;throw new k(f,`HTTP ${x}`,l,e,n)});if(i)return l;switch(s.f){case"json":return l.json();case"geojson":return l.json();case"html":return l.text();case"text":return l.text();default:return l.blob()}}).then(l=>{if((s.f==="json"||s.f==="geojson")&&!i){let h=Pe(l,p,s,n,c);if(l&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(e)&&Array.isArray(l.authorizedCrossOriginNoCorsDomains)&&me(l.authorizedCrossOriginNoCorsDomains),c){let x=e.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[x]={token:[],expires:new Date(Date.now()+86400*1e3)},c=null}return h}else return l})}function a(e,t={params:{f:"json"}}){let{request:r}=t,n=se(t,["request"]);return r?r(e,n):de(e,n).catch(o=>o instanceof A&&t.authentication&&typeof t.authentication!="string"&&t.authentication.canRefresh&&t.authentication.refreshCredentials?o.retry(()=>t.authentication.refreshCredentials(),1):Promise.reject(o))}function U(e,t,r){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},r),e);return o.params=t.reduce((i,s)=>((e[s]||typeof e[s]=="boolean"||typeof e[s]=="number"&&e[s]===0)&&(i[s]=e[s]),i),o.params),n.reduce((i,s)=>(o[s]&&(i[s]=o[s]),i),{})}var E;(function(e){e.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",e.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",e.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",e.NOT_FEDERATED="NOT_FEDERATED",e.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(E||(E={}));var T=class extends Error{constructor(t="UNKNOWN_ERROR",r=E.UNKNOWN_ERROR_CODE,n,o,i){super(t);let s=new.target.prototype;Object.setPrototypeOf(this,s),this.name="ArcGISTokenRequestError",this.message=`${r}: ${t}`,this.originalMessage=t,this.code=r,this.response=n,this.url=o,this.options=i}};var L=class extends Error{constructor(){super("The user has denied your authorization request.");let r=new.target.prototype;Object.setPrototypeOf(this,r),this.name="ArcGISAccessDeniedError"}};function d(e){return typeof e!="string"||(e=e.trim(),e[e.length-1]==="/"&&(e=e.slice(0,-1))),e}function Ae(e){let[t,r]=e.split("=");return{key:decodeURIComponent(t),value:decodeURIComponent(r)}}function ge(e){return!e||e.length<=0?{}:e.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((t,r)=>{let{key:n,value:o}=Ae(r);return t[n]=o,t},{})}var xe;(function(e){e.ArcGISRequestError="ArcGISRequestError",e.ArcGISAuthError="ArcGISAuthError",e.ArcGISAccessDeniedError="ArcGISAccessDeniedError",e.ArcGISTokenRequestError="ArcGISTokenRequestError"})(xe||(xe={}));var be=300*1e3;function N(e,t){let r=t;return r.rawResponse=!1,a(e,r).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:t.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-be),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-be)),o})}var G=class{constructor(t){this.portal=t.portal?d(t.portal):"https://www.arcgis.com/sharing/rest",this._username=t.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(t=>t.username)}getUser(t){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let r=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingUserRequest=a(r,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var V=/^https?:\/\/(\S+)\.arcgis\.com.+/;function we(e){return V.test(e)}function Ce(e){if(!V.test(e))return e;switch(te(e)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function te(e){if(!V.test(e))return null;let r=e.match(V)[1].split(".").pop();return r.includes("dev")?"dev":r.includes("qa")?"qa":"production"}function ye(e,t){let r=d(Ce(t)).replace(/https?:\/\//,""),n=d(e).replace(/https?:\/\//,"");return new RegExp(n,"i").test(r)}function Ee(e,t){let r=we(e),n=we(t),o=te(e),i=te(t);return!!(r&&n&&o===i)}function _e(e,t,r="https://www.arcgis.com/sharing/rest"){let n=`${r}/oauth2/validateAppAccess`;return a(n,{method:"POST",params:{f:"json",client_id:t,token:e}})}function Te(e){let t=`${d(e.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,r=e.token,n=e.clientId;delete e.portal,delete e.clientId,delete e.token;let o=Object.assign(Object.assign({},e),{httpMethod:"POST",params:{client_id:n,auth_token:r}});return a(t,o).then(i=>{if(!i.success)throw new k("Unable to revoke token",500,i,t,o);return i})}function B(e,t=window){return!t&&window&&(t=window),t.btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Ie(e,t=window){if(!t&&window&&(t=window),e&&t.isSecureContext&&t.crypto&&t.crypto.subtle){let n=new t.TextEncoder().encode(e);return t.crypto.subtle.digest("SHA-256",n).then(o=>B(new Uint8Array(o),t))}return Promise.resolve(null)}function Y(e){!e&&window&&(e=window);let t=e.crypto.getRandomValues(new Uint8Array(32));return B(t)}function ke(e,t){return typeof e=="string"?e:typeof e=="object"?e.id:Y(t)}function Re(e,t,r){return JSON.stringify(typeof t=="string"||!t?{id:e,originalUrl:r}:Object.assign({id:e},t))}function De(e){return typeof e.userId=="string"||typeof e.expires=="number"}var S=class e extends G{constructor(t){if(super(t),this.clientId=t.clientId,this._refreshToken=t.refreshToken,this._refreshTokenExpires=t.refreshTokenExpires,this.password=t.password,this._token=t.token,this._tokenExpires=t.tokenExpires,this.portal=t.portal?d(t.portal):"https://www.arcgis.com/sharing/rest",this.ssl=t.ssl,this.provider=t.provider||"arcgis",this.tokenDuration=t.tokenDuration||20160,this.redirectUri=t.redirectUri,this.server=t.server,this.referer=t.referer,this.state=t.state,this.federatedServers={},this.trustedDomains=[],t.server){let r=this.getServerRootUrl(t.server);this.federatedServers[r]={token:t.token,expires:t.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(t,r){!r&&window&&(r=window);let{portal:n,provider:o,clientId:i,expiration:s,redirectUri:c,popup:m,popupWindowFeatures:y,locale:p,params:g,style:$,pkce:j,state:l}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},t),h=ke(l,r),x=`ARCGIS_REST_JS_AUTH_STATE_${i}`;r.localStorage.setItem(x,h);let f=`${d(n)}/oauth2/authorize`,I={client_id:i,response_type:j?"code":"token",expiration:s,redirect_uri:c,state:Re(h,l,r.location.href),locale:p,style:$};o!=="arcgis"&&(f=`${d(n)}/oauth2/social/authorize`,I.socialLoginProviderName=o,I.autoAccountCreateForSocial=!0);let D;if(j){let P=Y(r),H=`ARCGIS_REST_JS_CODE_VERIFIER_${i}`;r.localStorage.setItem(H,P),D=Ie(P,r).then(function(b){I.code_challenge_method=b?"S256":"plain",I.code_challenge=b||P})}else D=Promise.resolve();return D.then(()=>{if(f=`${f}?${v(I)}`,g&&(f=`${f}&${v(g)}`),m)return new Promise((P,H)=>{r.addEventListener(`arcgis-rest-js-popup-auth-${i}`,b=>{if(b.detail.error==="access_denied"){let F=new L;return H(F),F}if(b.detail.errorMessage){let F=new A(b.detail.errorMessage,b.detail.error);return H(F),F}P(new e({clientId:i,portal:n,ssl:b.detail.ssl,token:b.detail.token,tokenExpires:b.detail.expires,username:b.detail.username,refreshToken:b.detail.refreshToken,refreshTokenExpires:b.detail.refreshTokenExpires,redirectUri:c,state:b.detail.state}))},{once:!0}),r.open(f,"oauth-window",y),r.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});r.location.href=f})}static completeOAuth2(t,r){!r&&window&&(r=window);let{portal:n,clientId:o,popup:i,pkce:s,redirectUri:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},t),m=`ARCGIS_REST_JS_AUTH_STATE_${o}`,y=r.localStorage.getItem(m),p=ge(s?r.location.search.replace(/^\?/,""):r.location.hash.replace(/^#/,"")),g=p&&p.state?JSON.parse(p.state):void 0;function $(l,h,x){if(r.localStorage.removeItem(m),i&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:h,errorMessage:l}})),r.close();return}return x&&r.history.replaceState(r.history.state,"",x),h==="access_denied"?Promise.reject(new L):Promise.reject(new A(l,h))}function j(l,h){if(r.localStorage.removeItem(m),i&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign(Object.assign({},l),{state:h})})),r.close();return}return h.originalUrl&&r.history.replaceState(r.history.state,"",h.originalUrl),new e({clientId:o,portal:n,ssl:l.ssl,token:l.token,tokenExpires:l.expires,username:l.username,refreshToken:l.refreshToken,refreshTokenExpires:l.refreshTokenExpires,redirectUri:c||location.href.replace(location.search,""),state:h})}if(!y||!g)return $("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(g.id!==y)return $("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let l=p.error,h=p.error_description||"Unknown error";return $(h,l,g.originalUrl)}if(s&&p.code){let l=d(`${n}/oauth2/token/`),h=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,x=r.localStorage.getItem(h);return r.localStorage.removeItem(h),N(l,{httpMethod:"POST",params:{client_id:o,code_verifier:x,grant_type:"authorization_code",redirect_uri:c||location.href.replace(location.search,""),code:p.code}}).then(f=>j(Object.assign(Object.assign({},f),g),g)).catch(f=>$(f.originalMessage,f.code,g.originalUrl))}return!s&&p.access_token?Promise.resolve(j(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},g),g)):$("Unknown error","oauth-error",g.originalUrl)}static fromParent(t,r){!r&&window&&(r=window);let n;return new Promise((o,i)=>{n=s=>{if(s.source===r.parent&&s.data)try{return o(e.parentMessageHandler(s))}catch(c){return i(c)}},r.addEventListener("message",n,!1),r.parent.postMessage({type:"arcgis:auth:requestCredential"},t)}).then(o=>(r.removeEventListener("message",n,!1),o))}static authorize(t,r){let{portal:n,clientId:o,expiration:i,redirectUri:s,state:c}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},t),m={client_id:o,expiration:i,response_type:"code",redirect_uri:s};c&&(m.state=c);let y=`${n}/oauth2/authorize?${v(m)}`;r.writeHead(301,{Location:y}),r.end()}static exchangeAuthorizationCode(t,r){let{portal:n,clientId:o,redirectUri:i}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},t);return N(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:i,code:r}}).then(s=>new e({clientId:o,portal:n,ssl:s.ssl,redirectUri:i,refreshToken:s.refreshToken,refreshTokenExpires:s.refreshTokenExpires,token:s.token,tokenExpires:s.expires,username:s.username})).catch(s=>{throw new T(s.message,E.REFRESH_TOKEN_EXCHANGE_FAILED,s.response,s.url,s.options)})}static deserialize(t){let r=JSON.parse(t);return new e({clientId:r.clientId,refreshToken:r.refreshToken,refreshTokenExpires:r.refreshTokenExpires?new Date(r.refreshTokenExpires):void 0,username:r.username,password:r.password,token:r.token,tokenExpires:r.tokenExpires?new Date(r.tokenExpires):void 0,portal:r.portal,ssl:r.ssl,tokenDuration:r.tokenDuration,redirectUri:r.redirectUri,server:r.server})}static fromCredential(t,r){let n=typeof t.ssl<"u"?t.ssl:!0,o=t.expires||Date.now()+72e5;return r.hasServer?new e({server:t.server,ssl:n,token:t.token,username:t.userId,tokenExpires:new Date(o)}):new e({portal:d(t.server.includes("sharing/rest")?t.server:t.server+"/sharing/rest"),ssl:n,token:t.token,username:t.userId,tokenExpires:new Date(o)})}static parentMessageHandler(t){if(t.data.type==="arcgis:auth:credential"){let r=t.data.credential;return De(r)?e.fromCredential(r,{hasPortal:!0,hasServer:!1,server:r.server}):new e(r)}if(t.data.type==="arcgis:auth:error"){let r=new Error(t.data.error.message);throw r.name=t.data.error.name,r}else throw new Error("Unknown message type.")}static destroy(t){return Te({clientId:t.clientId,portal:t.portal,token:t.refreshToken||t.token})}static fromToken(t){let r=new e(t);return r.getUser().then(()=>r)}static signIn(t){let r=new e(t);return r.getUser().then(()=>r)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(t){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let r=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingPortalRequest=a(r,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(t,r){return Ee(this.portal,t)?this.getFreshToken(r):new RegExp(this.portal,"i").test(t)?this.getFreshToken(r):this.getTokenForServer(t,r)}validateAppAccess(t){return this.getToken(this.portal).then(r=>_e(r,t))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(t,r){!r&&window&&(r=window),this._hostHandler=this.createPostMessageHandler(t),r.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(t){!t&&window&&(t=window),t.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(t){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(t):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new T("Unable to refresh token. No refresh token or password present.",E.TOKEN_REFRESH_FAILED))}getServerRootUrl(t){let[r]=d(t).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,i]=r.match(/(https?:\/\/)(.+)/),[s,...c]=i.split("/");return`${o}${s.toLowerCase()}/${c.join("/")}`}getDomainCredentials(t){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(t=t.toLowerCase(),this.trustedDomains.some(r=>t.startsWith(r.toLowerCase()))?"include":"same-origin")}signOut(){return e.destroy(this)}createPostMessageHandler(t){return r=>{let n=t.indexOf(r.origin)>-1,o=r.data.type==="arcgis:auth:requestCredential",i=this.tokenExpires.getTime()>Date.now();if(n&&o){let s={};if(i){let c=this.toCredential();c.server=c.server.replace("/sharing/rest",""),s={type:"arcgis:auth:credential",credential:c}}else s={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};r.source.postMessage(s,r.origin)}}}getTokenForServer(t,r){let n=this.getServerRootUrl(t),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>a(`${n}/rest/info`,{credentials:this.getDomainCredentials(t)}).then(i=>{if(i.owningSystemUrl){if(ye(i.owningSystemUrl,this.portal))return a(`${i.owningSystemUrl}/sharing/rest/info`,r);throw new T(`${t} is not federated with ${this.portal}.`,E.NOT_FEDERATED)}else{if(i.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:i.authInfo});throw new T(`${t} is not federated with any portal and is not explicitly trusted.`,E.NOT_FEDERATED)}}).then(i=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(i.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(i.authInfo.tokenServicesUrl,n)).then(i=>(this.federatedServers[n]=i,delete this._pendingTokenRequests[n],i.token))),this._pendingTokenRequests[n])}generateTokenForServer(t,r){return a(t,{params:{token:this.token,serverUrl:r,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new T(n.message,E.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(t){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(t).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(t){let r={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:ee};return(this.server?a(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>a(n.authInfo.tokenServicesUrl,Object.assign({params:r},t))):a(`${this.portal}/generateToken`,Object.assign({params:r},t))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new T(n.message,E.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(t){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(t);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},t);return N(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new T(o.message,E.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(t,r){return this._token=t,this._tokenExpires=r,this}exchangeRefreshToken(t){let r=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},t);return N(`${this.portal}/oauth2/token`,r).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new T(n.message,E.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(t=>(t.authorizedCrossOriginDomains&&t.authorizedCrossOriginDomains.length&&(this.trustedDomains=t.authorizedCrossOriginDomains.filter(r=>!r.startsWith("http://")).map(r=>r.startsWith("https://")?r:`https://${r}`)),this))}};function C(e){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new S(e)}C.beginOAuth2=function(...e){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),S.beginOAuth2(...e)};C.completeOAuth2=function(...e){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),e.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),S.completeOAuth2(...e)};C.fromParent=function(...e){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),S.fromParent(...e)};C.authorize=function(...e){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),S.authorize(...e)};C.exchangeAuthorizationCode=function(...e){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),S.exchangeAuthorizationCode(...e)};C.fromCredential=function(...e){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),S.fromCredential(...e)};C.deserialize=function(...e){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),S.deserialize(...e)};var re;(function(e){e.Success="Succeeded",e.Failed="Failed",e.Waiting="Waiting",e.Cancelled="Cancelled",e.Cancelling="Cancelling",e.New="New",e.Executing="Executing",e.Submitted="Submitted",e.Failure="Failure",e.TimedOut="TimedOut",e.Error="Error",e.Status="Etatus",e.Unknown="Unknown"})(re||(re={}));function u(e={}){return e.portal?d(e.portal):e.authentication&&typeof e.authentication!="string"?e.authentication.portal:"https://www.arcgis.com/sharing/rest"}var Ne=/[\x00-\x1F\x7F-\x9F\xA0]/g;function Se(e){return e.replace(Ne,"")}function _(e){return e.owner?Promise.resolve(e.owner):e.item&&e.item.owner?Promise.resolve(e.item.owner):e.authentication&&e.authentication.getUsername?e.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function ne(e){return Array.isArray(e)&&Array.isArray(e[0])&&Array.isArray(e[1])}function oe(e){return e.join(",")}function Q(e,t,r){if(!e)return e;let n=null;return typeof e.thumbnail=="string"&&(n=`${t}/content/items/${e.id}/info/${e.thumbnail}`,n&&e.access!=="public"&&r&&(n+=`?${r}`)),Object.assign(Object.assign({},e),n?{thumbnailUrl:n}:{})}function Pn(e,t){let r=z(e,t),n=Object.assign({httpMethod:"GET"},t);return a(r,n).then(async o=>{let i=t?.portal||u(t),s;return t?.authentication&&typeof t.authentication!="string"&&o.access!=="public"&&(s=await t.authentication.getToken(r)),Q(o,i,s)})}var z=(e,t)=>`${typeof t=="string"?t:u(t)}/content/items/${e}`;function An(e,t){let r=`${z(e,t)}/data`,n=Object.assign({httpMethod:"GET",params:{}},t);return n.file&&(n.params.f=null),a(r,n).catch(o=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(o.message))throw o})}function Cn(e,t){let r=`${z(e,t)}/resources`,n=Object.assign({},t);return n.params=Object.assign({num:1e3},n.params),a(r,n)}function Dn(e,t){let r=t.readAs||"blob";return $e(e,`/resources/${t.fileName}`,r,t)}function Nn(e,t){let r=`${z(e,t)}/groups`;return a(r,t)}function Ge(e,t){let{fileName:r="iteminfo.xml",readAs:n="text"}=t||{},o=Object.assign({httpMethod:"GET"},t);return $e(e,`/info/${r}`,n,o)}function Gn(e,t){let r=Object.assign(Object.assign({},t),{fileName:"metadata/metadata.xml"});return Ge(e,r)}function $e(e,t,r,n){let o=`${z(e,n)}${t}`,i=Object.assign({params:{}},n),s=i.rawResponse;return i.rawResponse=!0,i.params.f=null,a(o,i).then(c=>s?c:r!=="json"?c[r]():c.text().then(m=>JSON.parse(Se(m))))}function Me(e){return _(e).then(t=>{let r=e.folderId?`${u(e)}/content/users/${t}/${e.folderId}/items/${e.item.id}/update`:`${u(e)}/content/users/${t}/items/${e.item.id}/update`;e.params=Object.assign(Object.assign({},e.params),e.item),e.params.extent&&ne(e.params.extent)&&(e.params.extent=oe(e.params.extent));let n=u(e),o=Q(Object.assign(Object.assign({},e.item),{access:e.item.access}),n),i=e.params.thumbnailUrl;return typeof o.thumbnailUrl=="string"&&typeof i=="string"&&o.thumbnailUrl.split("?")[0]===i.split("?")[0]&&delete e.params.thumbnailUrl,a(r,e)})}function Jn(e){return _(e).then(t=>{let r=`${u(e)}/content/users/${t}/items/${e.id}/updateResources`;return e.params=Object.assign({file:e.resource,fileName:e.name,resourcesPrefix:e.prefix,text:e.content},e.params),typeof e.private<"u"&&(e.params.access=e.private?"private":"inherit"),a(r,e)})}function Bn(e){return _(e).then(t=>{let r=`${u(e)}/content/users/${t}/items/${e.id}/addResources`;return e.params=Object.assign({file:e.resource,fileName:e.name,resourcesPrefix:e.prefix,text:e.content,access:e.private?"private":"inherit"},e.params),a(r,e)})}function Fe(e,t){let r=`${u(t)}/community/groups/${e}`,n=Object.assign({httpMethod:"GET"},t);return a(r,n)}function Ro(e){return _(e).then(t=>{let r=`${u(e)}/content/users/${t}/items/${e.id}/removeResources`;return e.params=Object.assign(Object.assign({},e.params),{resource:e.resource}),typeof e.deleteAll<"u"&&(e.params.deleteAll=e.deleteAll),a(r,e)})}var M=class e{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let r=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(R(`${r} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(R("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(R('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(R('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new e(this.q+"")}addModifier(t){return this.currentModifer?(R(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(R(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(R(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&R("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function J(e,t){let r;typeof e=="string"||e instanceof M?r={httpMethod:"GET",params:{q:e}}:r=U(e,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let n;switch(t){case"item":n="/search";break;case"group":n="/community/groups";break;case"groupContent":if(typeof e!="string"&&!(e instanceof M)&&e.groupId)n=`/content/groups/${e.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":n="/community/users";break;default:n="/portals/self/users/search";break}let o=u(r)+n;return a(o,r).then(i=>(i.nextStart&&i.nextStart!==-1&&(i.nextPage=function(){let s;return typeof e=="string"||e instanceof M?s={q:e,start:i.nextStart}:(s=e,s.start=i.nextStart),J(s,t)}),i))}function ze(e){return J(e,"item")}function di(e){let t=`${u(e)}/community/groups/${e.group.id}/update`;return e.params=Object.assign(Object.assign({},e.params),e.group),a(t,e)}async function W(e){var t;if(e.username)return encodeURIComponent(e.username);if(!((t=e.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(e.authentication.username);if(e.authentication)return e.authentication.getUsername().then(encodeURIComponent)}async function ve(e){let t,r={httpMethod:"GET"};if(typeof e=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${e}`;else{let n=await W(e);t=`${u(e)}/community/users/${n}`,r=Object.assign(Object.assign({},e),r)}return a(t,r)}function Ds(e){return He(null,e)}function He(e,t){let r=e||"self",n=`${u(t)}/portals/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(n,o)}export{se as a,a as b,U as c,d,u as e,Me as f,Jn as g,Bn as h,Pn as i,An as j,Cn as k,Dn as l,Nn as m,Gn as n,Fe as o,Ro as p,ze as q,di as r,ve as s,Ds as t,He as u};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as c}from"./76VGL2OG.js";import{b as l}from"./YS3WYU6Q.js";import{h as a}from"./UWUNHI7L.js";function t(e){return c(e).then(r=>{let m=`${l(e)}/content/users/${r}/items/${e.id}/delete`;return a(m,e)})}function f(e){return c(e).then(r=>{let m=`${l(e)}/content/users/${r}/items/${e.id}/removeResources`;return e.params=Object.assign(Object.assign({},e.params),{resource:e.resource}),typeof e.deleteAll<"u"&&(e.params.deleteAll=e.deleteAll),a(m,e)})}export{t as a,f as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
var h=class t{constructor(){this.resizeObserver=new ResizeObserver(this.onResize.bind(this)),this.handlers=new WeakMap}static create(){return t.instance||(t.instance=new t),t.instance}static addHandler(s,e){this.create(),this.instance.addHandler(s,e)}static removeHandler(s,e){this.instance&&this.instance.removeHandler(s,e)}static unobserve(s){this.instance&&this.instance.unobserve(s)}addHandler(s,e){this.handlers.has(s)||(this.handlers.set(s,[]),this.resizeObserver.observe(s));let i=this.handlers.get(s);i.includes(e)||i.push(e)}removeHandler(s,e){if(this.handlers.has(s)){let i=this.handlers.get(s),r=i.indexOf(e),n=i.filter((a,d)=>d!==r);n.length?this.handlers.set(s,n):(this.handlers.delete(s),this.resizeObserver.unobserve(s))}}unobserve(s){this.handlers.has(s)&&(this.handlers.delete(s),this.resizeObserver.unobserve(s))}onResize(s){requestAnimationFrame(e=>{s.forEach(i=>{var r;((r=this.handlers.get(i.target))!==null&&r!==void 0?r:[]).forEach(a=>a())})})}};export{h as a};
|