@esri/solutions-components 1.2.0-next.25 → 1.2.0-next.27
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/README.md +2 -59
- package/dist/cdn/{LJOG53B6.js → 2LW7NVHK.js} +2 -2
- package/dist/cdn/{F6M3XWTD.js → 2NWOTAMJ.js} +2 -2
- package/dist/cdn/{ZRNE7ON4.js → 2OJLNFOC.js} +2 -2
- package/dist/cdn/{RDASDC76.js → 2WWHEMQL.js} +1 -1
- package/dist/cdn/{47LITZGW.js → 2XDSKSGJ.js} +2 -2
- package/dist/cdn/{T7WZEKVF.js → 2ZSQENNS.js} +2 -2
- package/dist/cdn/{KY5MN2T4.js → 3CA3JXHN.js} +2 -2
- package/dist/cdn/3F3JNAWC.js +18 -0
- package/dist/cdn/{LDHQ34KV.js → 3GFQQTP2.js} +2 -2
- package/dist/cdn/{EH2FJOGU.js → 3IZNC363.js} +2 -2
- package/dist/cdn/{VMLHXPSN.js → 3KE7PZFV.js} +2 -2
- package/dist/cdn/{CNI6KQHC.js → 3T6UJW63.js} +2 -2
- package/dist/cdn/{33CKROVW.js → 3VLEZH43.js} +2 -2
- package/dist/cdn/47YBTWTG.js +4 -0
- package/dist/cdn/4C7FIPD4.js +4 -0
- package/dist/cdn/{MVL3MXJS.js → 4CNT64MN.js} +2 -2
- package/dist/cdn/{LRQZMD7I.js → 4HXD2CQA.js} +2 -2
- package/dist/cdn/{TKIB7NRH.js → 4MLE52CH.js} +2 -2
- package/dist/cdn/{CR3Y76NS.js → 4NYPSKCK.js} +1 -1
- package/dist/cdn/{Z3INPQ3P.js → 4PVCOMMR.js} +2 -2
- package/dist/cdn/{HUJ6PAV5.js → 4UJ6XH72.js} +2 -2
- package/dist/cdn/{EAVQ5FCN.js → 53A7XA32.js} +2 -2
- package/dist/cdn/{5I3656PD.js → 54XXKO7H.js} +2 -2
- package/dist/cdn/{VSVGR3WH.js → 5567QGBC.js} +2 -2
- package/dist/cdn/{BXCKPKDO.js → 56WEHTDO.js} +2 -2
- package/dist/cdn/{YUK5EJDR.js → 5CZLOUWA.js} +1 -1
- package/dist/cdn/{XEUITAUW.js → 5PUUTEBP.js} +1 -1
- package/dist/cdn/5QHUCKG3.js +18 -0
- package/dist/cdn/{6TKZARJO.js → 5UHAP33V.js} +2 -2
- package/dist/cdn/{5MVJVO5P.js → 5ZHVK45Z.js} +2 -2
- package/dist/cdn/{NH4QW36Q.js → 62NBYZU7.js} +2 -2
- package/dist/cdn/{HF6SJRK7.js → 6DJIUZYO.js} +2 -2
- package/dist/cdn/{TA22B3PN.js → 6EVG5JZ2.js} +2 -2
- package/dist/cdn/{R4NGPN22.js → 6GUJVOMW.js} +2 -2
- package/dist/cdn/{JPFMUBPN.js → 6HGA2IXC.js} +2 -2
- package/dist/cdn/{2HSHTUIQ.js → 6HT5KOFQ.js} +2 -2
- package/dist/cdn/{NGXX4YBY.js → 6I6EDSRP.js} +2 -2
- package/dist/cdn/{BSKJHSLD.js → 6IQAXJN6.js} +2 -2
- package/dist/cdn/{QBUPFG4V.js → 6LSKWWBU.js} +2 -2
- package/dist/cdn/{MTJYX32S.js → 6OJ5VVP3.js} +2 -2
- package/dist/cdn/{V2Y4GO6L.js → 6OUFJM6Z.js} +2 -2
- package/dist/cdn/{2PRJJVOV.js → 6RBDKRJT.js} +2 -2
- package/dist/cdn/{IKTBJIKZ.js → 6UJCNZRR.js} +2 -2
- package/dist/cdn/{KXRDDOMY.js → 6V2AY63L.js} +1 -1
- package/dist/cdn/{3G2ORHX5.js → 77YQ4IOR.js} +2 -2
- package/dist/cdn/{KTOTBTIB.js → 7ITVFNDV.js} +2 -2
- package/dist/cdn/{C2H742OR.js → 7N6EFGAQ.js} +2 -2
- package/dist/cdn/{CCDEGHR5.js → 7OY3BJB2.js} +2 -2
- package/dist/cdn/{5F66JCHM.js → 7SH4N3P4.js} +1 -1
- package/dist/cdn/{6B3LITRW.js → 7XVLQSPS.js} +1 -1
- package/dist/cdn/{OEYVI2ZO.js → 7XWQI5NJ.js} +1 -1
- package/dist/cdn/{MM7HTB74.js → A63RZIQZ.js} +2 -2
- package/dist/cdn/{VJW7W56T.js → ACUG7TJ4.js} +2 -2
- package/dist/cdn/{JULUVIZZ.js → AFABFCHW.js} +2 -2
- package/dist/cdn/{55OXSM7F.js → AGOVBYGM.js} +2 -2
- package/dist/cdn/{AQ4DO73M.js → AIRWOYED.js} +2 -2
- package/dist/cdn/{D3GW7DPE.js → AJ46YBCQ.js} +2 -2
- package/dist/cdn/{C5FEFWP7.js → AN55WAUL.js} +2 -2
- package/dist/cdn/{DK6ZOLTA.js → AQ3QXPVB.js} +2 -2
- package/dist/cdn/{SPK5KP7G.js → ARDUW4TV.js} +2 -2
- package/dist/cdn/{NL3W622Y.js → ARMD7TYE.js} +1 -1
- package/dist/cdn/{QSDAU6XO.js → AS4NQ6GV.js} +2 -2
- package/dist/cdn/{3S5YMQNC.js → ASRWDVSI.js} +2 -2
- package/dist/cdn/{ZUOFTXZA.js → AUCNJWPD.js} +2 -2
- package/dist/cdn/{FCEGEP53.js → AVD47HI4.js} +2 -2
- package/dist/cdn/{M6UH6Z5C.js → AYUP3ART.js} +2 -2
- package/dist/cdn/{LIWWQNG7.js → AYWQC6IW.js} +2 -2
- package/dist/cdn/{AZ5NWSFJ.js → B2X5O5CH.js} +2 -2
- package/dist/cdn/{UMOF3JJN.js → B3SBH7LM.js} +2 -2
- package/dist/cdn/{SUSD34WI.js → B4YOY6JV.js} +2 -2
- package/dist/cdn/{OLX2TCKA.js → B6OFQRRZ.js} +2 -2
- package/dist/cdn/{WXOAB4RS.js → B7722XA2.js} +2 -2
- package/dist/cdn/{TND7L4TG.js → B7V6UCY6.js} +2 -2
- package/dist/cdn/{73L6SXQT.js → BC5YZKFA.js} +2 -2
- package/dist/cdn/{QFU7UBJX.js → BGXO43WL.js} +1 -1
- package/dist/cdn/{UFOHEGEB.js → BIT5QCOQ.js} +2 -2
- package/dist/cdn/{ELYG6CH5.js → BJOWKVFS.js} +2 -2
- package/dist/cdn/{AGTUYAIF.js → BK4OUH4R.js} +2 -2
- package/dist/cdn/{IN5SSIXG.js → BM4UDJI5.js} +2 -2
- package/dist/cdn/{2WOROUAI.js → BMBWQ3FT.js} +2 -2
- package/dist/cdn/{M47E3HSB.js → BQ4G4BGB.js} +2 -2
- package/dist/cdn/{6RUMIMNG.js → BUPD4EQQ.js} +2 -2
- package/dist/cdn/{Z4HAQW7C.js → BUYJP3CZ.js} +2 -2
- package/dist/cdn/{MYL46HPR.js → BWTLES3N.js} +2 -2
- package/dist/cdn/{ALYZCHUT.js → BZQ7ROZZ.js} +2 -2
- package/dist/cdn/{5SL4YU5J.js → C225H4G7.js} +2 -2
- package/dist/cdn/{SGSS7BTV.js → C6J3S4AR.js} +2 -2
- package/dist/cdn/{4V7AT3AA.js → CDOWCE6N.js} +2 -2
- package/dist/cdn/{JDWBEXFG.js → CGSGF5VQ.js} +2 -2
- package/dist/cdn/{ZPQHS32Z.js → CHIHJQHO.js} +2 -2
- package/dist/cdn/{DRULXPQW.js → CIZCKWI3.js} +2 -2
- package/dist/cdn/CKMMXJAT.js +4 -0
- package/dist/cdn/{2TQEX4B7.js → CNQK74GX.js} +2 -2
- package/dist/cdn/{AKWICKZH.js → CRJ3Z2P7.js} +2 -2
- package/dist/cdn/{BZYNOZRI.js → CTPQITHT.js} +2 -2
- package/dist/cdn/{RE424GHE.js → CXJDISBE.js} +2 -2
- package/dist/cdn/{HBLU4NNH.js → CZI2E3EU.js} +2 -2
- package/dist/cdn/{7F33ZVRA.js → D7KPNSVV.js} +1 -1
- package/dist/cdn/{6F753QZS.js → DE5RAN6T.js} +2 -2
- package/dist/cdn/DHOITY72.js +18 -0
- package/dist/cdn/{L3KYVSGX.js → DIDWJ4LI.js} +1 -1
- package/dist/cdn/{FKTPY2PG.js → DIYJNIMX.js} +2 -2
- package/dist/cdn/{TNXXPVD3.js → DQOIDWNV.js} +2 -2
- package/dist/cdn/{GIRT7FSE.js → DT6D5FAQ.js} +2 -2
- package/dist/cdn/{FCSALOKB.js → DVBXDOWK.js} +2 -2
- package/dist/cdn/{OOILB3XG.js → E46WTWFT.js} +2 -2
- package/dist/cdn/{OSICGOI4.js → E4GW4CJX.js} +2 -2
- package/dist/cdn/{CR2GM5TB.js → E4OJTFXU.js} +1 -1
- package/dist/cdn/{7LU2BDQN.js → E6R24VYL.js} +2 -2
- package/dist/cdn/{AAA6LMGT.js → EBV4XDQJ.js} +2 -2
- package/dist/cdn/{DSCMJ63Y.js → EEMEZMYB.js} +2 -2
- package/dist/cdn/{4L3TXAHQ.js → EKVVRX4F.js} +2 -2
- package/dist/cdn/{UZYJBWAL.js → EOXS7Z3I.js} +3 -3
- package/dist/cdn/{NV7R5AHR.js → EQJ7S4R6.js} +2 -2
- package/dist/cdn/{7VSEOVSU.js → EQLGWU7W.js} +1 -1
- package/dist/cdn/{GBUQQPYG.js → ES237MC6.js} +1 -1
- package/dist/cdn/{SQQALD75.js → ESIUFPKB.js} +2 -2
- package/dist/cdn/{UJ2HNPRI.js → EU37QLEM.js} +2 -2
- package/dist/cdn/{E6O4CC2T.js → EXW26AMV.js} +1 -1
- package/dist/cdn/{OSOP5UDV.js → EZ6TIG5F.js} +2 -2
- package/dist/cdn/{KX7RN2HN.js → F5PKW3KM.js} +2 -2
- package/dist/cdn/{LH4OLQ34.js → FFIEB2ES.js} +2 -2
- package/dist/cdn/{KJ5763CL.js → FFZXZKI6.js} +2 -2
- package/dist/cdn/{BXIJJQ7I.js → FGQE3LYW.js} +2 -2
- package/dist/cdn/{LOR4HLCD.js → FHGTPJL2.js} +2 -2
- package/dist/cdn/{7EF6XSGW.js → FKQVSGXA.js} +2 -2
- package/dist/cdn/{IXPZNMCD.js → FXLC3BQU.js} +2 -2
- package/dist/cdn/{O4FNQ6WI.js → FXXGE3XT.js} +2 -2
- package/dist/cdn/{2YWTZAMT.js → G4RZFS26.js} +2 -2
- package/dist/cdn/G5BTG2N3.js +18 -0
- package/dist/cdn/{NWMLIPGH.js → GBSPSSNW.js} +2 -2
- package/dist/cdn/{RDXF2NUP.js → GDLO2XB3.js} +2 -2
- package/dist/cdn/{F2GASC36.js → GFRBVTSN.js} +2 -2
- package/dist/cdn/{M3J7WFCT.js → GGANMMJ4.js} +2 -2
- package/dist/cdn/{VOCKL66I.js → GM5BS5JP.js} +2 -2
- package/dist/cdn/{IUMQQRBH.js → GMVPIVMJ.js} +2 -2
- package/dist/cdn/{KZ3UTDYW.js → GOHMP5IG.js} +2 -2
- package/dist/cdn/{6VC6BOD3.js → GPVUSIMQ.js} +2 -2
- package/dist/cdn/GTQT77PZ.js +18 -0
- package/dist/cdn/{BFF5G777.js → GVB7IXC4.js} +2 -2
- package/dist/cdn/{VJKKQU2K.js → H4A4QHWF.js} +2 -2
- package/dist/cdn/{BTWGA4N5.js → H5FATKUW.js} +2 -2
- package/dist/cdn/{P4GU4NJL.js → H74I475C.js} +2 -2
- package/dist/cdn/{VGOUD4LG.js → HC564NZR.js} +2 -2
- package/dist/cdn/{NGGKWS4K.js → HDE34PB4.js} +2 -2
- package/dist/cdn/{VOYZKLLZ.js → HGKGD3L2.js} +2 -2
- package/dist/cdn/{6DNBPW3K.js → HH4BD4EO.js} +2 -2
- package/dist/cdn/{4LD25VZ6.js → HILMCNKS.js} +2 -2
- package/dist/cdn/{TXM5UUEF.js → HKKSX6WE.js} +2 -2
- package/dist/cdn/{H6EC52KA.js → HKSDQM2S.js} +2 -2
- package/dist/cdn/{I2NS6RAC.js → HL2TYLXU.js} +2 -2
- package/dist/cdn/{POXK5JYF.js → HL525PM4.js} +2 -2
- package/dist/cdn/{6UEXK7QG.js → HNHP65I5.js} +2 -2
- package/dist/cdn/{Q65LQ4DS.js → HPWAT524.js} +2 -2
- package/dist/cdn/{T4S5GHIX.js → HRI7RWIK.js} +2 -2
- package/dist/cdn/{EV7CDQQX.js → HUXN5B5L.js} +2 -2
- package/dist/cdn/{V63RSPHR.js → I2I2MVYM.js} +1 -1
- package/dist/cdn/{KBDQPISA.js → I2UXWKCC.js} +2 -2
- package/dist/cdn/{6W73UJJY.js → I4K3IVK7.js} +1 -1
- package/dist/cdn/{X7GANTPZ.js → IAIWBDCQ.js} +2 -2
- package/dist/cdn/{TE3EPYCD.js → IGCVNORF.js} +2 -2
- package/dist/cdn/{YKVIFE2T.js → IMUGAIVC.js} +2 -2
- package/dist/cdn/{5IR2J2MU.js → ISYQ7BUD.js} +2 -2
- package/dist/cdn/J2ZWR2GQ.js +4 -0
- package/dist/cdn/{U5REIPGX.js → J7E2QW2D.js} +2 -2
- package/dist/cdn/{4JRBLZYN.js → JGVPZEWE.js} +2 -2
- package/dist/cdn/{CRL5EWVF.js → JKECM7I2.js} +2 -2
- package/dist/cdn/{AF4HG5KQ.js → JRRP7PGD.js} +1 -1
- package/dist/cdn/{BDHPB663.js → JVMO4HFB.js} +2 -2
- package/dist/cdn/{G5ZAVHW6.js → K63IORJD.js} +2 -2
- package/dist/cdn/{ZNHJLN3B.js → KAG6RO3G.js} +2 -2
- package/dist/cdn/{URQ5DYLW.js → KECJSCJG.js} +2 -2
- package/dist/cdn/KG5B6CXB.js +4 -0
- package/dist/cdn/{ZRXPHGWK.js → KJWSGRZ3.js} +2 -2
- package/dist/cdn/{XFOJ2YTI.js → KTIAIKTT.js} +2 -2
- package/dist/cdn/{BYY527IH.js → KVV5EWQA.js} +2 -2
- package/dist/cdn/{I6F7SK7X.js → KZVZFGE7.js} +2 -2
- package/dist/cdn/{RCCI6MDJ.js → L6PYFP5M.js} +2 -2
- package/dist/cdn/{GUAMRG2A.js → L6X4KGKR.js} +2 -2
- package/dist/cdn/{J6P2QRWD.js → LBBA73EF.js} +2 -2
- package/dist/cdn/{H35DFLHL.js → LBHXU6YV.js} +2 -2
- package/dist/cdn/{EEKC5HMJ.js → LDUTJ73Y.js} +2 -2
- package/dist/cdn/{4TNZ7VPX.js → LHWX65OJ.js} +2 -2
- package/dist/cdn/{F6HXDR37.js → LJCGAKR6.js} +2 -2
- package/dist/cdn/{AWTULYQZ.js → LLBBO6IX.js} +2 -2
- package/dist/cdn/{3KS7ECJI.js → LNDZ63CO.js} +2 -2
- package/dist/cdn/{227OKUOP.js → LOVULZ45.js} +2 -2
- package/dist/cdn/{DKQV43MA.js → LQ7FPNV7.js} +2 -2
- package/dist/cdn/{BUGTCHMJ.js → LSZZ2EWQ.js} +2 -2
- package/dist/cdn/{LQ2RKGNR.js → LVJURNWC.js} +1 -1
- package/dist/cdn/{DPMOOEJX.js → LZ2QQBEJ.js} +2 -2
- package/dist/cdn/{PWDGPR5X.js → M2TDXEAD.js} +2 -2
- package/dist/cdn/{37VDTBSA.js → MCVSXCX3.js} +2 -2
- package/dist/cdn/{2HIB2G57.js → ML2BZCXH.js} +2 -2
- package/dist/cdn/{SR6U5ITN.js → MLCEASYL.js} +1 -1
- package/dist/cdn/{KQ5G7HVB.js → MNPSY7UH.js} +2 -2
- package/dist/cdn/{XKYABGIY.js → MUEEPIGW.js} +2 -2
- package/dist/cdn/MYNA7Y3G.js +18 -0
- package/dist/cdn/{RGM4NZOR.js → N4A6F2ZB.js} +2 -2
- package/dist/cdn/{TB26F4TS.js → N75OPA2W.js} +2 -2
- package/dist/cdn/{LBWBQTWE.js → NF2RYWNV.js} +1 -1
- package/dist/cdn/{AOJ5FYFL.js → NIXSGP56.js} +1 -1
- package/dist/cdn/{Q6KR2MGM.js → NLPZ6EBZ.js} +2 -2
- package/dist/cdn/{X65UTRJF.js → NPOLHW6K.js} +2 -2
- package/dist/cdn/{ZEKYDTVV.js → NWYBXZJM.js} +2 -2
- package/dist/cdn/{6RRQQGSF.js → NXKJYP3B.js} +2 -2
- package/dist/cdn/{5H7XMH3U.js → O4NSXTKA.js} +2 -2
- package/dist/cdn/{Y7PX6YNW.js → O7IECAXA.js} +2 -2
- package/dist/cdn/{FBODKGEY.js → OD7536D5.js} +2 -2
- package/dist/cdn/{JBVOLK4R.js → OG42ZS54.js} +1 -1
- package/dist/cdn/{FOHFIU2Q.js → OG4RDLXY.js} +2 -2
- package/dist/cdn/{TNYM6PF6.js → OK2PLRPF.js} +1 -1
- package/dist/cdn/{A44QWUNI.js → OKJGNTTP.js} +2 -2
- package/dist/cdn/OTBTEZZC.js +4 -0
- package/dist/cdn/{3SQXJURM.js → OTHXTD24.js} +2 -2
- package/dist/cdn/{GXL4PA3D.js → OYGGDF2B.js} +2 -2
- package/dist/cdn/{ZSOICD7A.js → P377HOWA.js} +2 -2
- package/dist/cdn/{ZWIILL33.js → P5IWH4H7.js} +1 -1
- package/dist/cdn/{WYFCB3NO.js → P646MTO3.js} +1 -1
- package/dist/cdn/{Q75J5FSF.js → P6JRZP22.js} +2 -2
- package/dist/cdn/{NJEFWFEN.js → PALHO537.js} +2 -2
- package/dist/cdn/{DXWM5SOG.js → PEJXEBPK.js} +2 -2
- package/dist/cdn/{PM5ELFQG.js → PEPHF4HW.js} +2 -2
- package/dist/cdn/{YSC2HFLQ.js → PFJZ6WDZ.js} +2 -2
- package/dist/cdn/{IVPONNZR.js → PHHQNTYX.js} +1 -1
- package/dist/cdn/{NWUKK5A6.js → PKZFTGNR.js} +2 -2
- package/dist/cdn/{LPW522QH.js → PLYQLRIV.js} +2 -2
- package/dist/cdn/PMRY2AEE.js +4 -0
- package/dist/cdn/{Q35B4TVR.js → PMZA33VX.js} +2 -2
- package/dist/cdn/{T3QNUX7F.js → PNG6HYHU.js} +2 -2
- package/dist/cdn/{TCDTWQMN.js → PNMRFYJE.js} +2 -2
- package/dist/cdn/{Y7RAV3DP.js → PO2YUT4A.js} +2 -2
- package/dist/cdn/{PGYWV3NX.js → PPSJ2AKI.js} +2 -2
- package/dist/cdn/{TEC4FZSJ.js → PQGK3ADP.js} +2 -2
- package/dist/cdn/PSBHDKJY.js +18 -0
- package/dist/cdn/{VCB2O536.js → PVKFVSRG.js} +2 -2
- package/dist/cdn/{J5AOMIJN.js → PVPSOZTL.js} +2 -2
- package/dist/cdn/PXF26HHP.js +18 -0
- package/dist/cdn/{ASKWOQAJ.js → Q2MGXFNR.js} +2 -2
- package/dist/cdn/{W65FI6JK.js → Q3DA6P2Z.js} +2 -2
- package/dist/cdn/{6XW66PF7.js → QAVVXEYM.js} +2 -2
- package/dist/cdn/{6LAMGJ6U.js → QPCEXF5F.js} +2 -2
- package/dist/cdn/{5IGYCZUX.js → QQ3QUYQL.js} +2 -2
- package/dist/cdn/{NZOYC75S.js → QRBOAXS3.js} +2 -2
- package/dist/cdn/{XGRYQZ2O.js → QSJF6F72.js} +2 -2
- package/dist/cdn/{GBNNHDBN.js → QTOR422E.js} +2 -2
- package/dist/cdn/{PTP3YNB4.js → QVWCNJDG.js} +2 -2
- package/dist/cdn/{5QBB4PGR.js → QZOROVXN.js} +2 -2
- package/dist/cdn/{JY7CESFO.js → R2DUPZYS.js} +2 -2
- package/dist/cdn/{3QKECYXX.js → RAECULIP.js} +3 -3
- package/dist/cdn/{WPAY2RXR.js → RAKO4FAG.js} +2 -2
- package/dist/cdn/{CEJWVVDW.js → RARW43CO.js} +2 -2
- package/dist/cdn/{Q37G5WQQ.js → RCQBX3JW.js} +2 -2
- package/dist/cdn/{SRGTODED.js → REVMBJ5T.js} +2 -2
- package/dist/cdn/{5V5732QI.js → RKJ7LCIR.js} +1 -1
- package/dist/cdn/{6GTTRESX.js → RMT4J5DE.js} +2 -2
- package/dist/cdn/{HYJAUXZR.js → ROJJRLLV.js} +2 -2
- package/dist/cdn/{KDFFHJCE.js → RQKCLIYL.js} +2 -2
- package/dist/cdn/{4CDBID3T.js → RWSZ36QL.js} +1 -1
- package/dist/cdn/{PMDK5BSC.js → RYJZQKLH.js} +2 -2
- package/dist/cdn/{QYLZ7QMQ.js → RZBUUTWX.js} +2 -2
- package/dist/cdn/{X5CUQYP2.js → S2PRPGAP.js} +2 -2
- package/dist/cdn/{NGCSRMGK.js → S6CDMQ2J.js} +2 -2
- package/dist/cdn/{K3PSKBFT.js → SUOPXDQS.js} +2 -2
- package/dist/cdn/{X5BGIPQE.js → SXARTPK6.js} +1 -1
- package/dist/cdn/{IARKQB6L.js → SYTQPHM4.js} +2 -2
- package/dist/cdn/{22W4RE5H.js → T2MKJFVO.js} +2 -2
- package/dist/cdn/{Y3Y2DGLC.js → T3RZSR4P.js} +2 -2
- package/dist/cdn/{R6NUZOUH.js → T72FD7BK.js} +2 -2
- package/dist/cdn/{6SPFZVPR.js → TCG7AG7R.js} +3 -3
- package/dist/cdn/{RR3CV4NP.js → TFQEN3VI.js} +2 -2
- package/dist/cdn/{6DG5GYU6.js → TJAJZH5X.js} +1 -1
- package/dist/cdn/{R5E4K7RK.js → TRYAPVTV.js} +2 -2
- package/dist/cdn/{5FG7JIL6.js → TTWS32CH.js} +1 -1
- package/dist/cdn/{ZJBXIMRS.js → TUXWR4NG.js} +1 -1
- package/dist/cdn/{TOEUWHX7.js → TV3GDADI.js} +2 -2
- package/dist/cdn/{UGDU3FHG.js → TWY6JTFJ.js} +2 -2
- package/dist/cdn/{PTEWBNCV.js → UG7AZKLP.js} +2 -2
- package/dist/cdn/{66PCARXT.js → ULPZP6IH.js} +2 -2
- package/dist/cdn/{QRTCQKT7.js → UM7KKCJY.js} +1 -1
- package/dist/cdn/{JRFE64QB.js → USZNPD5I.js} +2 -2
- package/dist/cdn/{ZK6M2PX2.js → UUIGIDOP.js} +2 -2
- package/dist/cdn/{Y3UAZV7T.js → UVHJBCFV.js} +2 -2
- package/dist/cdn/{GXXNGMWJ.js → UZPFU54B.js} +2 -2
- package/dist/cdn/{J2XPTQU2.js → V4XBCISY.js} +2 -2
- package/dist/cdn/{GWCKLSTR.js → V6FJOOIH.js} +2 -2
- package/dist/cdn/{Z6AVKFEG.js → VCUAR7TU.js} +2 -2
- package/dist/cdn/{YQZK5YIN.js → VELKKXM3.js} +2 -2
- package/dist/cdn/{27CMSLNL.js → VGCF7EHX.js} +2 -2
- package/dist/cdn/{CEU3EJQG.js → VGGKJXIY.js} +2 -2
- package/dist/cdn/{5BFB2DWR.js → VLAYPOVN.js} +2 -2
- package/dist/cdn/{ROF3LNEG.js → VLLXTUKT.js} +2 -2
- package/dist/cdn/{PL2DLTJ3.js → VMLMQHX6.js} +1 -1
- package/dist/cdn/{RXUBLDCK.js → VPE2LVCX.js} +2 -2
- package/dist/cdn/{XIT7U76G.js → VUHX5PDP.js} +2 -2
- package/dist/cdn/{5FO3BEAU.js → VVL6Q3E7.js} +2 -2
- package/dist/cdn/{YDXLB56W.js → VYQU4LHF.js} +2 -2
- package/dist/cdn/{AZ4OSWBB.js → VZ2KAB55.js} +2 -2
- package/dist/cdn/{YWA44B7H.js → VZILYFKI.js} +4 -4
- package/dist/cdn/{WVPQS2SL.js → W2PSNJZ7.js} +2 -2
- package/dist/cdn/{CMJVFQIK.js → WC2L6YOH.js} +2 -2
- package/dist/cdn/{5OUPCMUR.js → WCXMATJA.js} +2 -2
- package/dist/cdn/{DAX6C2RK.js → WEZI5T56.js} +2 -2
- package/dist/cdn/{2RKY4JS6.js → WFU7GICQ.js} +2 -2
- package/dist/cdn/{P3S3CHRK.js → WGBXUPEY.js} +2 -2
- package/dist/cdn/{UCGJMCLN.js → WHB4U5OL.js} +1 -1
- package/dist/cdn/{OFFB46MS.js → WMDT3WYL.js} +2 -2
- package/dist/cdn/{KVGWKRTF.js → WNGSWMFT.js} +2 -2
- package/dist/cdn/{25LXR3FP.js → WNPTLJW6.js} +2 -2
- package/dist/cdn/{JEMU5PFH.js → WPJ5PJ7Q.js} +2 -2
- package/dist/cdn/{W4Q2GGWI.js → WUG63GLG.js} +2 -2
- package/dist/cdn/{HY2YEKX4.js → WZMWD7AD.js} +2 -2
- package/dist/cdn/{2HGUUNMW.js → X34AYMRR.js} +2 -2
- package/dist/cdn/X6MAZTOZ.js +18 -0
- package/dist/cdn/{D5VBWDAK.js → XAQZGNV2.js} +2 -2
- package/dist/cdn/{QKX7N74V.js → XE3EVDYT.js} +2 -2
- package/dist/cdn/{CI6ZSON4.js → XIHNCQGI.js} +2 -2
- package/dist/cdn/{2BVJTFDE.js → XKNZDMSF.js} +2 -2
- package/dist/cdn/{PQD2UKJH.js → XRICT2AN.js} +2 -2
- package/dist/cdn/{P4JDDNDS.js → XT2BWE6J.js} +1 -1
- package/dist/cdn/{OQFR5EBN.js → XTQKCT5L.js} +2 -2
- package/dist/cdn/{WVXU4P7B.js → XTTWRRZ6.js} +2 -2
- package/dist/cdn/{NRAOZEZJ.js → XURZW2K7.js} +2 -2
- package/dist/cdn/XW7Q5535.js +4 -0
- package/dist/cdn/{D5Q2SMLV.js → Y3X63ZO6.js} +2 -2
- package/dist/cdn/{6UB7H5S7.js → YDOKIJDV.js} +2 -2
- package/dist/cdn/{I42BS5RN.js → YKAZ72P2.js} +2 -2
- package/dist/cdn/{5PRG5J4I.js → YMQSQJJG.js} +2 -2
- package/dist/cdn/{VN7CGEIY.js → YTWCZ7FT.js} +2 -2
- package/dist/cdn/{FU3WID6I.js → YZ3XSFVZ.js} +2 -2
- package/dist/cdn/{D7KMXEBV.js → Z57CK6OI.js} +2 -2
- package/dist/cdn/{IAOFW42G.js → Z6YCUBCC.js} +2 -2
- package/dist/cdn/{WO6ZWZSX.js → ZC2J5KMJ.js} +2 -2
- package/dist/cdn/{FOSWULAV.js → ZDSB7BHD.js} +1 -1
- package/dist/cdn/ZH37ALHF.js +18 -0
- package/dist/cdn/{Y6S5MFA2.js → ZHDNV2VV.js} +2 -2
- package/dist/cdn/{7HYXPVC6.js → ZIJKDV73.js} +2 -2
- package/dist/cdn/{A7HUHBZM.js → ZL5ZFIQX.js} +2 -2
- package/dist/cdn/{6HWRE6RG.js → ZNS6MPKA.js} +2 -2
- package/dist/cdn/{OX2XBEMJ.js → ZOL5WGOF.js} +2 -2
- package/dist/cdn/{KUHCBGK5.js → ZU5AMCT4.js} +2 -2
- package/dist/cdn/{DSJ4DCH7.js → ZXKCV2Y2.js} +2 -2
- package/dist/cdn/{DTOU5IAO.js → ZYC3QQF6.js} +2 -2
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +11 -9
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +6 -6
- package/dist/components/solution-deployed-card-panel/customElement.js +16 -16
- package/dist/components/solution-deploying-dialog/customElement.js +11 -9
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +46 -53
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +10 -10
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +2 -2
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +30 -30
- package/dist/components/solutions-all-shell/index.d.ts +1 -1
- package/dist/components/solutions-all-shell/index.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +3 -3
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +2 -1
- package/dist/components/solutions-deploy-app-nav/customElement.js +70 -31
- package/dist/components/solutions-deploy-app-nav/index.d.ts +4 -1
- package/dist/components/solutions-deploy-app-nav/index.js +4 -1
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +12 -15
- package/dist/components/solutions-deployed-shell/index.d.ts +0 -1
- package/dist/components/solutions-deployed-shell/index.js +0 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +1 -1
- package/dist/components/solutions-resources-shell/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +2 -0
- package/dist/components/solutions-searchsort-toolbar/customElement.js +72 -62
- package/dist/components/solutions-searchsort-toolbar/index.d.ts +1 -1
- package/dist/components/solutions-searchsort-toolbar/index.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +22 -3
- package/dist/docs/docs.json +28 -4
- package/dist/docs/vscode.html-custom-data.json +2 -2
- package/dist/docs/web-types.json +13 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/preact10.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/6RSL6JCZ.js +0 -18
- package/dist/cdn/AB7WV42B.js +0 -18
- package/dist/cdn/AIMB7S2N.js +0 -4
- package/dist/cdn/BPD7DNKI.js +0 -18
- package/dist/cdn/F3MXJ7PK.js +0 -18
- package/dist/cdn/FBVK2FLN.js +0 -4
- package/dist/cdn/GEM3SJHZ.js +0 -4
- package/dist/cdn/GTMB2D2L.js +0 -18
- package/dist/cdn/GZSKPM5F.js +0 -4
- package/dist/cdn/H5AUCOST.js +0 -18
- package/dist/cdn/KUQWCT6L.js +0 -4
- package/dist/cdn/NQUVPAJI.js +0 -4
- package/dist/cdn/NUOI2YN5.js +0 -4
- package/dist/cdn/R6HSLJZP.js +0 -18
- package/dist/cdn/SLN637AP.js +0 -18
- package/dist/cdn/WFLBBSMB.js +0 -18
- package/dist/cdn/ZCQJ5AVG.js +0 -4
- package/dist/cdn/ZOT3V2FS.js +0 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as Pn}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as En}from"./6GTTRESX.js";import{E as jn,h as kn,o as In}from"./SR6U5ITN.js";import"./LBWBQTWE.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",Oo="null",xo=function(){},_n="__",So="form",Ao="input",ko="button",Io="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(Oo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,ko);lt(ct,Ao);lt(ct,Io);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function ke(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{a as Pn}from"./YMQSQJJG.js";import"./BM4UDJI5.js";import"./ZYC3QQF6.js";import{b as En}from"./RMT4J5DE.js";import{E as jn,h as kn,o as In}from"./MLCEASYL.js";import"./NF2RYWNV.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",Oo="null",xo=function(){},_n="__",So="form",Ao="input",ko="button",Io="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(Oo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,ko);lt(ct,Ao);lt(ct,Io);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function ke(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e){return Ho(e)||qo(e)||Yr(e)||Ko()}function Q(e){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(e)}function Dn(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){n(c);return}s.done?t(u):Promise.resolve(u).then(r,i)}function se(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Dn(o,r,i,a,s,"next",u)}function s(u){Dn(o,r,i,a,s,"throw",u)}a(void 0)})}}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(r){he(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zr={exports:{}};(function(e){var t=(function(n){var r=Object.prototype,i=r.hasOwnProperty,o,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(h,b,l){return Object.defineProperty(h,b,{value:l,enumerable:!0,configurable:!0,writable:!0}),h[b]}try{d({},"")}catch{d=function(h,b,l){return h[b]=l}}function p(h,b,l,m){var x=b&&b.prototype instanceof w?b:w,I=Object.create(x.prototype),M=new q(m||[]);return I._invoke=C(h,l,M),I}n.wrap=p;function g(h,b,l){try{return{type:"normal",arg:h.call(b,l)}}catch(m){return{type:"throw",arg:m}}}var O="suspendedStart",y="suspendedYield",A="executing",v="completed",f={};function w(){}function j(){}function S(){}var E={};d(E,s,function(){return this});var P=Object.getPrototypeOf,T=P&&P(P(G([])));T&&T!==r&&i.call(T,s)&&(E=T);var L=S.prototype=w.prototype=Object.create(E);j.prototype=S,d(L,"constructor",S),d(S,"constructor",j),j.displayName=d(S,c,"GeneratorFunction");function R(h){["next","throw","return"].forEach(function(b){d(h,b,function(l){return this._invoke(b,l)})})}n.isGeneratorFunction=function(h){var b=typeof h=="function"&&h.constructor;return b?b===j||(b.displayName||b.name)==="GeneratorFunction":!1},n.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,S):(h.__proto__=S,d(h,c,"GeneratorFunction")),h.prototype=Object.create(L),h},n.awrap=function(h){return{__await:h}};function _(h,b){function l(I,M,U,W){var K=g(h[I],h,M);if(K.type==="throw")W(K.arg);else{var H=K.arg,V=H.value;return V&&typeof V=="object"&&i.call(V,"__await")?b.resolve(V.__await).then(function(X){l("next",X,U,W)},function(X){l("throw",X,U,W)}):b.resolve(V).then(function(X){H.value=X,U(H)},function(X){return l("throw",X,U,W)})}}var m;function x(I,M){function U(){return new b(function(W,K){l(I,M,W,K)})}return m=m?m.then(U,U):U()}this._invoke=x}R(_.prototype),d(_.prototype,u,function(){return this}),n.AsyncIterator=_,n.async=function(h,b,l,m,x){x===void 0&&(x=Promise);var I=new _(p(h,b,l,m),x);return n.isGeneratorFunction(b)?I:I.next().then(function(M){return M.done?M.value:I.next()})};function C(h,b,l){var m=O;return function(x,I){if(m===A)throw new Error("Generator is already running");if(m===v){if(x==="throw")throw I;return z()}for(l.method=x,l.arg=I;;){var M=l.delegate;if(M){var U=F(M,l);if(U){if(U===f)continue;return U}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(m===O)throw m=v,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);m=A;var W=g(h,b,l);if(W.type==="normal"){if(m=l.done?v:y,W.arg===f)continue;return{value:W.arg,done:l.done}}else W.type==="throw"&&(m=v,l.method="throw",l.arg=W.arg)}}}function F(h,b){var l=h.iterator[b.method];if(l===o){if(b.delegate=null,b.method==="throw"){if(h.iterator.return&&(b.method="return",b.arg=o,F(h,b),b.method==="throw"))return f;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var m=g(l,h.iterator,b.arg);if(m.type==="throw")return b.method="throw",b.arg=m.arg,b.delegate=null,f;var x=m.arg;if(!x)return b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,f;if(x.done)b[h.resultName]=x.value,b.next=h.nextLoc,b.method!=="return"&&(b.method="next",b.arg=o);else return x;return b.delegate=null,f}R(L),d(L,c,"Generator"),d(L,s,function(){return this}),d(L,"toString",function(){return"[object Generator]"});function $(h){var b={tryLoc:h[0]};1 in h&&(b.catchLoc=h[1]),2 in h&&(b.finallyLoc=h[2],b.afterLoc=h[3]),this.tryEntries.push(b)}function D(h){var b=h.completion||{};b.type="normal",delete b.arg,h.completion=b}function q(h){this.tryEntries=[{tryLoc:"root"}],h.forEach($,this),this.reset(!0)}n.keys=function(h){var b=[];for(var l in h)b.push(l);return b.reverse(),function m(){for(;b.length;){var x=b.pop();if(x in h)return m.value=x,m.done=!1,m}return m.done=!0,m}};function G(h){if(h){var b=h[s];if(b)return b.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var l=-1,m=function x(){for(;++l<h.length;)if(i.call(h,l))return x.value=h[l],x.done=!1,x;return x.value=o,x.done=!0,x};return m.next=m}}return{next:z}}n.values=G;function z(){return{value:o,done:!0}}return q.prototype={constructor:q,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(D),!h)for(var b in this)b.charAt(0)==="t"&&i.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=o)},stop:function(){this.done=!0;var h=this.tryEntries[0],b=h.completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var b=this;function l(W,K){return I.type="throw",I.arg=h,b.next=W,K&&(b.method="next",b.arg=o),!!K}for(var m=this.tryEntries.length-1;m>=0;--m){var x=this.tryEntries[m],I=x.completion;if(x.tryLoc==="root")return l("end");if(x.tryLoc<=this.prev){var M=i.call(x,"catchLoc"),U=i.call(x,"finallyLoc");if(M&&U){if(this.prev<x.catchLoc)return l(x.catchLoc,!0);if(this.prev<x.finallyLoc)return l(x.finallyLoc)}else if(M){if(this.prev<x.catchLoc)return l(x.catchLoc,!0)}else if(U){if(this.prev<x.finallyLoc)return l(x.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(h,b){for(var l=this.tryEntries.length-1;l>=0;--l){var m=this.tryEntries[l];if(m.tryLoc<=this.prev&&i.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var x=m;break}}x&&(h==="break"||h==="continue")&&x.tryLoc<=b&&b<=x.finallyLoc&&(x=null);var I=x?x.completion:{};return I.type=h,I.arg=b,x?(this.method="next",this.next=x.finallyLoc,f):this.complete(I)},complete:function(h,b){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&b&&(this.next=b),f},finish:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.finallyLoc===h)return this.complete(l.completion,l.afterLoc),D(l),f}},catch:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.tryLoc===h){var m=l.completion;if(m.type==="throw"){var x=m.arg;D(l)}return x}}throw new Error("illegal catch attempt")},delegateYield:function(h,b,l){return this.delegate={iterator:G(h),resultName:b,nextLoc:l},this.method==="next"&&(this.arg=o),f}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Zr);var B=Zr.exports,me="function",ue="undefined",ze="reducer",ei="@@redux/",$t=ei+"INIT",Fo=ei+Math.random().toString(36),Ln=(function(){return(typeof Symbol>"u"?"undefined":Q(Symbol))===me&&Symbol.observable||"@@observable"})(),Be=" != "+me;function ti(e,t,n){if(Q(t)===me&&Q(n)===ue&&(n=t,t=void 0),Q(n)!==ue){if(Q(n)!==me)throw new Error("enhancer"+Be);return n(ti)(e,t)}if(Q(e)!==me)throw new Error(ze+Be);var r=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){return i}function d(y){if(Q(y)!==me)throw new Error("Listener"+Be);var A=!0;return u(),a.push(y),function(){if(A){A=!1,u();var v=a.indexOf(y);a.splice(v,1)}}}function p(y){if(!ne(y))throw new Error("Act != obj");if(Q(y.type)===ue)throw new Error("ActType "+ue);if(s)throw new Error("Dispatch in "+ze);try{s=!0,i=r(i,y)}finally{s=!1}for(var A=o=a,v=0;v<A.length;v++){var f=A[v];f()}return y}function g(y){if(Q(y)!==me)throw new Error("next "+ze+Be);r=y,p({type:$t})}function O(){var y=d;return he({subscribe:function(A){if(Q(A)!=="object")throw new TypeError("Observer != obj");function v(){A.next&&A.next(c())}v();var f=y(v);return{unsubscribe:f}}},Ln,function(){return this})}return p({type:$t}),he({dispatch:p,subscribe:d,getState:c,replaceReducer:g},Ln,O)}function Go(e,t){var n=t&&t.type,r=n&&n.toString()||"?";return"action "+r+ze+" "+e+" returns "+ue}function Jo(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:$t});if(Q(r)===ue||Q(n(void 0,{type:Fo}))===ue)throw new Error(ze+" "+t+" "+ue)})}function Xo(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];Q(e[i])===me&&(n[i]=e[i])}var o=Object.keys(n),a;try{Jo(n)}catch(s){a=s}return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(a)throw a;for(var c=!1,d={},p=0;p<o.length;p++){var g=o[p],O=n[g],y=s[g],A=O(y,u);if(Q(A)===ue){var v=Go(g,u);throw new Error(v)}d[g]=A,c=c||A!==y}return c?d:s}}function _e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(i,o,a){var s=r(i,o,a),u=s.dispatch,c=[],d={getState:s.getState,dispatch:function(p){return u(p)}};return c=t.map(function(p){return p(d)}),u=_e.apply(void 0,Re(c))(s.dispatch),k(k({},s),{},{dispatch:u})}}}var ye=Ve+"anon_id",Oe=Ve+"user_id",Ee=Ve+"user_traits",Wt="analytics",ge="userId",Ie="anonymousId",Qo="https://lytics.dev/errors/",ot=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Vt=["name","EVENTS","config","loaded"],Yo={registerPluginType:function(e){return"registerPlugin:".concat(e)},pluginReadyType:function(e){return"ready:".concat(e)}},Zo=ot.reduce(function(e,t){return e[t]=t,e},Yo),N=Zo;function ea(e){return ot.includes(e)}var Rn=/^utm_/,zn=/^an_prop_/,$n=/^an_trait_/;function ta(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===N.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,u=i.initialUser,c=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(ye,a.anonymousId),c||t(Oe,a.userId),u.traits&&t(Ee,k(k({},c&&s.traits?s.traits:{}),u.traits));var d=Object.keys(i.params);if(d.length){var p=o.an_uid,g=o.an_event,O=d.reduce(function(y,A){if(A.match(Rn)||A.match(/^(d|g)clid/)){var v=A.replace(Rn,""),f=v==="campaign"?"name":v;y.campaign[f]=o[A]}return A.match(zn)&&(y.props[A.replace(zn,"")]=o[A]),A.match($n)&&(y.traits[A.replace($n,"")]=o[A]),y},{campaign:{},props:{},traits:{}});n.dispatch(k(k({type:N.params,raw:o},O),p?{userId:p}:{})),p&&setTimeout(function(){return e.identify(p,O.traits)},0),g&&setTimeout(function(){return e.track(g,O.props)},0),Object.keys(O.campaign).length&&n.dispatch({type:N.campaign,campaign:O.campaign})}}return r(i)}}}}function na(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.type===N.setItemEnd){if(n.key===ye)return k(k({},t),{anonymousId:n.value});if(n.key===Oe)return k(k({},t),{userId:n.value})}switch(n.type){case N.identify:return Object.assign({},t,{userId:n.userId,traits:k(k({},t.traits),n.traits)});case N.reset:return[Oe,ye,Ee].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function ni(e){return{userId:e.getItem(Oe),anonymousId:e.getItem(ye),traits:e.getItem(Ee)}}var fn=function(e){return Ve+"TEMP"+Ve+e};function ra(e){return function(t,n,r){var i=n.getState("user")[t];if(i)return i;if(r&&ne(r)&&r[t])return r[t];var o=ni(e)[t];return o||de(fn(t))||null}}function ia(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var u=s.userId,c=s.traits,d=s.options;if(s.type===N.reset&&([Oe,Ee,ye].forEach(function(O){r(O)}),[ge,Ie,"traits"].forEach(function(O){ke(fn(O))})),s.type===N.identify){i(ye)||n(ye,Ae());var p=i(Oe),g=i(Ee)||{};p&&p!==u&&o.dispatch({type:N.userIdChanged,old:{userId:p,traits:g},new:{userId:u,traits:c},options:d}),u&&n(Oe,u),c&&n(Ee,k(k({},g),c))}return a(s)}}}}var Ue={};function ri(e,t){Ue[e]&&ae(Ue[e])&&(Ue[e](t),delete Ue[e])}function ii(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(k(k({},e),{},{queue:!0})):oa(10).then(function(o){return ii(e,t,n-10).then(r,i)})})}function oa(e){return new Promise(function(t){return setTimeout(t,e)})}function oi(e,t,n){var r=t(),i=e.getState(),o=i.plugins,a=i.context,s=i.queue,u=i.user,c=!a.offline;if(c&&s&&s.actions&&s.actions.length){var d=s.actions.reduce(function(g,O,y){var A=o[O.plugin].loaded;return A?(g.process.push(O),g.processIndex.push(y)):(g.requeue.push(O),g.requeueIndex.push(y)),g},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(d.processIndex&&d.processIndex.length){d.processIndex.forEach(function(g){var O=s.actions[g],y=O.plugin,A=O.payload.type,v=r[y][A];if(v&&ae(v)){var f=sa(O.payload,u);v({payload:f,config:o[y].config,instance:n});var w="".concat(A,":").concat(y);e.dispatch(k(k({},f),{},{type:w,_:{called:w,from:"queueDrain"}}))}});var p=s.actions.filter(function(g,O){return!~d.processIndex.indexOf(O)});s.actions=p}}}function aa(e,t,n){return setInterval(function(){return oi(e,t,n)},3e3)}function sa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[ge,Ie].reduce(function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n},e)}function ua(e){if(Array.isArray(e))return e}function ca(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function la(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
6
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fa(e,t){return ua(e)||ca(e,t)||Yr(e,t)||la()}function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(e).filter(function(r){var i=n.plugins||{};return $o(i[r])?i[r]:!(i.all===!1||t[r]&&t[r].enabled===!1)}).map(function(r){return e[r]})}var Ce=/Start$/,Wn=/^bootstrap/,Vn=/^ready/;function pa(e,t,n,r,i){return Ht.apply(this,arguments)}function Ht(){return Ht=se(B.mark(function e(t,n,r,i,o){var a,s,u,c,d,p,g,O,y,A,v;return B.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(a=ae(n)?n():n,s=t.type,u=s.replace(Ce,""),!(t._&&t._.called)){f.next=5;break}return f.abrupt("return",t);case 5:return c=r.getState(),d=da(a,c.plugins,t.options),s===N.initializeStart&&t.fromEnable&&(d=Object.keys(c.plugins).filter(function(w){var j=c.plugins[w];return t.plugins.includes(w)&&!j.initialized}).map(function(w){return a[w]})),p=d.map(function(w){return w.name}),g=ha(s,d),f.next=12,Ot({action:t,data:{exact:g.before,namespaced:g.beforeNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 12:if(O=f.sent,!ai(O,p.length)){f.next=15;break}return f.abrupt("return",O);case 15:if(s!==u){f.next=19;break}y=O,f.next=22;break;case 19:return f.next=21,Ot({action:k(k({},O),{},{type:u}),data:{exact:g.during,namespaced:g.duringNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 21:y=f.sent;case 22:if(!s.match(Ce)){f.next=28;break}return A="".concat(u,"End"),f.next=26,Ot({action:k(k({},y),{},{type:A}),data:{exact:g.after,namespaced:g.afterNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 26:v=f.sent,v.meta&&v.meta.hasCallback&&ri(v.meta.rid,{payload:v});case 28:return f.abrupt("return",O);case 29:case"end":return f.stop()}},e)})),Ht.apply(this,arguments)}function Ot(e){return qt.apply(this,arguments)}function qt(){return qt=se(B.mark(function e(t){var n,r,i,o,a,s,u,c,d,p,g,O,y,A,v,f,w,j;return B.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return n=t.data,r=t.action,i=t.instance,o=t.state,a=t.allPlugins,s=t.allMatches,u=t.store,c=t.EVENTS,d=o.plugins,p=o.context,g=r.type,O=g.match(Ce),y=n.exact.map(function(E){return E.pluginName}),O&&(y=s.during.map(function(E){return E.pluginName})),A=ma(i,y),v=n.exact.reduce(function(E,P){var T=P.pluginName,L=P.methodName,R=!1;return!L.match(/^initialize/)&&!L.match(/^reset/)&&(R=!d[T].loaded),p.offline&&L.match(/^(page|track|identify)/)&&(R=!0),E["".concat(T)]=R,E},{}),S.next=10,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F;return B.wrap(function($){for(;;)switch($.prev=$.next){case 0:return _=L.pluginName,$.next=3,T;case 3:if(C=$.sent,!(n.namespaced&&n.namespaced[_])){$.next=11;break}return $.next=7,n.namespaced[_].reduce((function(){var D=se(B.mark(function q(G,z,h){var b,l,m,x;return B.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return l=function(M,U,W){return function(K,H){var V=W||U;return k(k({},M),{},{abort:{reason:K,plugins:H||[U],caller:g,from:V}})}},I.next=3,G;case 3:if(b=I.sent,!(!z.method||!ae(z.method))){I.next=6;break}return I.abrupt("return",b);case 6:return ba(z.methodName,z.pluginName),I.next=9,z.method({payload:b,instance:i,abort:l(b,_,z.pluginName),config:Hn(z.pluginName,d,a),plugins:d});case 9:return m=I.sent,x=ne(m)?m:{},I.abrupt("return",Promise.resolve(k(k({},b),x)));case 12:case"end":return I.stop()}},q)}));return function(q,G,z){return D.apply(this,arguments)}})(),Promise.resolve(r));case 7:F=$.sent,C[_]=F,$.next=12;break;case 11:C[_]=r;case 12:return $.abrupt("return",Promise.resolve(C));case 13:case"end":return $.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve({}));case 10:return f=S.sent,S.next=13,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F,$,D,q,G,z,h,b,l,m,x;return B.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return _=n.exact.length===R+1,C=L.pluginName,F=a[C],I.next=5,T;case 5:if($=I.sent,D=f[C]?f[C]:{},O&&(D=$),!St(D,C)){I.next=11;break}return xt({data:D,method:g,instance:i,pluginName:C,store:u}),I.abrupt("return",Promise.resolve($));case 11:if(!St($,C)){I.next=14;break}return _&&xt({data:$,method:g,instance:i,store:u}),I.abrupt("return",Promise.resolve($));case 14:if(!(v.hasOwnProperty(C)&&v[C]===!0)){I.next=17;break}return u.dispatch({type:"queue",plugin:C,payload:D,_:{called:"queue",from:"queueMechanism"}}),I.abrupt("return",Promise.resolve($));case 17:return q=A(f[C],a[C]),I.next=20,F[g]({abort:q.abort,payload:D,instance:i,config:Hn(C,d,a),plugins:d});case 20:return G=I.sent,z=ne(G)?G:{},h=k(k({},$),z),b=f[C],St(b,C)?xt({data:b,method:g,instance:i,pluginName:C,store:u}):(l="".concat(g,":").concat(C),m=(l.match(/:/g)||[]).length,m<2&&!g.match(Wn)&&!g.match(Vn)&&(x=O?h:D,i.dispatch(k(k({},x),{},{type:l,_:{called:l,from:"submethod"}})))),I.abrupt("return",Promise.resolve(h));case 26:case"end":return I.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve(r));case 13:if(w=S.sent,!(!g.match(Ce)&&!g.match(/^registerPlugin/)&&!g.match(Vn)&&!g.match(Wn)&&!g.match(/^params/)&&!g.match(/^userIdChanged/))){S.next=21;break}if(c.plugins.includes(g),!(w._&&w._.originalAction===g)){S.next=18;break}return S.abrupt("return",w);case 18:j=k(k({},w),{_:{originalAction:w.type,called:w.type,from:"engineEnd"}}),ai(w,n.exact.length)&&!g.match(/End$/)&&(j=k(k({},j),{type:w.type+"Aborted"})),u.dispatch(j);case 21:return S.abrupt("return",w);case 22:case"end":return S.stop()}},e)})),qt.apply(this,arguments)}function xt(e){var t=e.data,n=e.method;e.instance;var r=e.pluginName,i=e.store,o=r?":"+r:"",a=n+"Aborted"+o;i.dispatch(k(k({},t),{},{type:a,_:{called:a,from:"abort"}}))}function Hn(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function qn(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function ga(e){return e.replace(Ce,"")}function Kn(e,t){var n=ga(e),r=t?":".concat(t):"",i="".concat(e).concat(r),o="".concat(n).concat(r),a="".concat(n,"End").concat(r);return[i,o,a]}function ha(e,t,n){var r=Kn(e),i=r.map(function(o){return qn(o,t)});return t.reduce(function(o,a){var s=a.name,u=Kn(e,s),c=u.map(function(y){return qn(y,t)}),d=fa(c,3),p=d[0],g=d[1],O=d[2];return p.length&&(o.beforeNS[s]=p),g.length&&(o.duringNS[s]=g),O.length&&(o.afterNS[s]=O),o},{before:i[0],beforeNS:{},during:i[1],duringNS:{},after:i[2],afterNS:{}})}function St(e,t){var n=e.abort;return n?n===!0?!0:Fn(n,t)||n&&Fn(n.plugins,t):!1}function ai(e,t){var n=e.abort;if(!n)return!1;if(n===!0||et(n))return!0;var r=n.plugins;return He(n)&&n.length===t||He(r)&&r.length===t}function He(e){return Array.isArray(e)}function Fn(e,t){return!e||!He(e)?!1:e.includes(t)}function ma(e,t){return function(n,r,i){var o=r.config,a=r.name,s="".concat(a,".").concat(n.type);i&&(s=i.event);var u=n.type.match(Ce)?ya(a,s,t,i,n):va(n,s);return{payload:wa(n),instance:e,config:o||{},abort:u}}}function ya(e,t,n,r,i){return function(o,a){var s=r?r.name:e,u=a&&He(a)?a:n;if(r&&(u=a&&He(a)?a:[e],!u.includes(e)||u.length!==1))throw new Error("Method ".concat(t," can only abort ").concat(e," plugin. ").concat(JSON.stringify(u)," input valid"));return k(k({},i),{},{abort:{reason:o,plugins:u,caller:t,_:s}})}}function va(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}function ba(e,t){var n=Gn(e),r=n&&n.name===t;if(r){var i=Gn(n.method),o=i?"or "+i.method:"";throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use ".concat(n.method," ").concat(o," in ").concat(t," plugin insteadof ").concat(e)].join(`
|
|
7
7
|
`))}}function Gn(e){var t=e.match(/(.*):(.*)/);return t?{method:t[1],name:t[2]}:!1}function wa(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(ne(e[n])?t[n]=Object.assign({},e[n]):t[n]=e[n]),t},{})}function Oa(e,t,n){var r={};return function(i){return function(o){return(function(){var a=se(B.mark(function s(u){var c,d,p,g,O,y,A,v,f,w,j,S;return B.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(c=u.type,d=u.abort,p=u.plugins,g=u,!d){E.next=4;break}return E.abrupt("return",o(u));case 4:if(c===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:p,disabled:[],fromEnable:!0,meta:u.meta}),c===N.disablePlugin&&setTimeout(function(){return ri(u.meta.rid,{payload:u})},0),c===N.initializeEnd&&(O=t(),y=Object.keys(O),A=y.filter(function(P){return p.includes(P)}).map(function(P){return O[P]}),v=[],f=[],w=u.disabled,j=A.map(function(P){var T=P.loaded,L=P.name;return ii(P,T,1e4).then(function(R){return r[L]||(i.dispatch({type:N.pluginReadyType(L),name:L,events:Object.keys(P).filter(function(_){return!Vt.includes(_)})}),r[L]=!0),v=v.concat(L),P}).catch(function(R){if(R instanceof Error)throw new Error(R);return f=f.concat(R.name),R})}),Promise.all(j).then(function(P){var T={plugins:v,failed:f,disabled:w};setTimeout(function(){y.length===j.length+w.length&&i.dispatch(k(k({},{type:N.ready}),T))},0)})),c===N.bootstrap){E.next=13;break}return/^ready:([^:]*)$/.test(c)&&setTimeout(function(){return oi(i,t,e)},0),E.next=11,pa(u,t,e,i,n);case 11:return S=E.sent,E.abrupt("return",o(S));case 13:return E.abrupt("return",o(g));case 14:case"end":return E.stop()}},s)}));return function(s){return a.apply(this,arguments)}})()}}}function xa(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===N.setItem||i===N.removeItem){if(r.abort)return n(r);i===N.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}function Sa(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ka=Sa(function e(){var t=this;Aa(this,e),he(this,"before",[]),he(this,"after",[]),he(this,"addMiddleware",function(n,r){t[r]=t[r].concat(n)}),he(this,"removeMiddleware",function(n,r){var i=t[r].findIndex(function(o){return o===n});i!==-1&&(t[r]=[].concat(Re(t[r].slice(0,i)),Re(t[r].slice(i+1))))}),he(this,"dynamicMiddlewares",function(n){return function(r){return function(i){return function(o){var a={getState:r.getState,dispatch:function(u){return r.dispatch(u)}},s=t[n].map(function(u){return u(a)});return _e.apply(void 0,Re(s))(i)(o)}}}})});function Ia(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Jn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled;return r[i]={enabled:a,initialized:a?!o.initialize:!1,loaded:a?!!o.loaded():!1,config:o.config||{}},k(k({},t),r)}if(/^initialize:([^:]*)$/.test(n.type)){var s=Jn(n.type,N.initialize),u=e()[s];return!u||!s?t:(r[s]=k(k({},t[s]),{initialized:!0,loaded:!!u.loaded()}),k(k({},t),r))}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=k(k({},t[n.name]),{loaded:!0}),k(k({},t),r);switch(n.type){case N.disablePlugin:return k(k({},t),Xn(n.plugins,!1,t));case N.enablePlugin:return k(k({},t),Xn(n.plugins,!0,t));default:return t}}}function Jn(e,t){return e.substring(t.length+1,e.length)}function Xn(e,t,n){return e.reduce(function(r,i){return r[i]=k(k({},n[i]),{enabled:t}),r},n)}function si(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var ja={last:{},history:[]};function Ea(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.event,i=t.properties,o=t.options,a=t.meta;switch(n){case N.track:var s=si(k(k({event:r,properties:i},Object.keys(o).length&&{options:o}),{},{meta:a}));return k(k({},e),{last:s,history:e.history.concat(s)});default:return e}}var Pa={actions:[]};function Ta(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"queue":var i;return r&&r.type&&r.type===N.identify?i=[t].concat(e.actions):i=e.actions.concat(t),k(k({},e),{},{actions:i});case"dequeue":return[];default:return e}}var ui=/#.*$/;function Na(){if(fe){for(var e=document.getElementsByTagName("link"),t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}}function _a(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g,n=t.exec(e),r=n&&n[3]?n[3].split("?")[0].replace(ui,""):"";return"/"+r}function Ca(e){var t=Na();return t?t.match(/\?/)?t:t+e:window.location.href.replace(ui,"")}var Ma=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!fe)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,u=o.hash,c=o.search,d=Ca(c),p={title:n,url:d,path:_a(d),hash:u,search:c,width:a,height:s};return r&&r!==""&&(p.referrer=r),k(k({},p),e)},Da={last:{},history:[]};function Ua(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Da,t=arguments.length>1?arguments[1]:void 0,n=t.properties,r=t.options,i=t.meta;switch(t.type){case N.page:var o=si(k({properties:n,meta:i},Object.keys(r).length&&{options:r}));return k(k({},e),{last:o,history:e.history.concat(o)});default:return e}}function La(){if(!fe)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}var ci,li,fi,di;ci=La(),li=fe?document.referrer:null,fi=Uo(),di=Lo();var Bn={initialized:!1,sessionId:Ae(),app:null,version:null,debug:!1,offline:fe?!navigator.onLine:!1,os:{name:ci},userAgent:fe?navigator.userAgent:"node",library:{name:Wt,version:"0.10.22"},timezone:di,locale:fi,campaign:{},referrer:li};function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bn,t=arguments.length>1?arguments[1]:void 0,n=e.initialized,r=t.type,i=t.campaign;switch(r){case N.campaign:return k(k({},e),{campaign:i});case N.offline:return k(k({},e),{offline:!0});case N.online:return k(k({},e),{offline:!1});default:return n?e:k(k(k({},Bn),e),{initialized:!0})}}var za=["plugins","reducers","storage"];function $a(e){return Object.keys(e).reduce(function(t,n){return za.includes(n)||(t[n]=e[n]),t},{})}function Wa(e,t,n){if(fe){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Va(){return Promise.resolve(!navigator.onLine)}function Ha(e){var t=function(r){return Va().then(e)},n=Wa.bind(null,"online offline",t);return n(!0),function(r){return n(!1)}}function pi(){return le(Wt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch,a=function(s){var u=s.action||s;return Ne[Te][Wt].push(u),o(s)};return Object.assign(i,{dispatch:a})}}}function Qn(e){return function(){return _e(_e.apply(null,arguments),pi())}}function At(e){return e?Wo(e)?e:[e]:[]}function qa(e){for(var t=e||Array.prototype.slice.call(arguments),n,r=0;r<t.length;r++)if(ae(t[r])){n=t[r];break}return n}function Ka(){return new Date().getTime()}function Fa(e,t){return function(n){t&&t(n),e(n)}}function Yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=Ae();return t&&(Ue[r]=Fa(t,qa(n))),k(k({},e),{},{rid:r,ts:Ka()},t?{hasCallback:!0}:{})}function Ga(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(l,m){if(ae(m))return l.middlewares=l.middlewares.concat(m),l;if(m.NAMESPACE&&(m.name=m.NAMESPACE),!m.name)throw new Error(Qo+"1");var x=m.EVENTS?Object.keys(m.EVENTS).map(function(H){return m.EVENTS[H]}):[],I=m.enabled!==!1,M=!(m.config&&m.config.enabled===!1);l.pluginEnabled[m.name]=I&&M,delete m.enabled,m.methods&&(l.methods[m.name]=Object.keys(m.methods).reduce(function(H,V){return H[V]=b(m.methods[V]),H},{}),delete m.methods);var U=Object.keys(m),W=U.concat(x),K=new Set(l.events.concat(W));if(l.events=Array.from(K),l.pluginsArray=l.pluginsArray.concat(m),l.plugins[m.name])throw new Error(m.name+"AlreadyLoaded");return l.plugins[m.name]=m,l.plugins[m.name].loaded||(l.plugins[m.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:de,setItem:le,removeItem:ke},o=ra(i),a=r.plugins,s=r.events.filter(function(l){return!Vt.includes(l)}).sort(),u=new Set(s.concat(ot).filter(function(l){return!Vt.includes(l)})),c=Array.from(u).sort(),d=function(){return a},p=new ka,g=p.addMiddleware,O=p.removeMiddleware,y=p.dynamicMiddlewares,A=function(){throw new Error("Abort disabled inListener")},v=Ro(),f=ni(i),w=k(k(k(k({},f),n),v.an_uid?{userId:v.an_uid}:{}),v.an_aid?{anonymousId:v.an_aid}:{});w.anonymousId||(w.anonymousId=Ae());var j=k({enable:function(l,m){return new Promise(function(x){D.dispatch({type:N.enablePlugin,plugins:At(l),_:{originalAction:N.enablePlugin}},x,[m])})},disable:function(l,m){return new Promise(function(x){D.dispatch({type:N.disablePlugin,plugins:At(l),_:{originalAction:N.disablePlugin}},x,[m])})}},r.methods),S={identify:(function(){var l=se(B.mark(function x(I,M,U,W){var K,H,V,X,Ge;return B.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return K=et(I)?I:null,H=ne(I)?I:M,V=U||{},X=S.user(),le(fn(ge),K),Ge=K||H.userId||o(ge,S,H),Je.abrupt("return",new Promise(function(Ji){D.dispatch(k({type:N.identifyStart,userId:Ge,traits:H||{},options:V,anonymousId:X.anonymousId},X.id&&X.id!==K&&{previousId:X.id}),Ji,[M,U,W])}));case 7:case"end":return Je.stop()}},x)}));function m(x,I,M,U){return l.apply(this,arguments)}return m})(),track:(function(){var l=se(B.mark(function x(I,M,U,W){var K,H,V;return B.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(K=ne(I)?I.event:I,!(!K||!et(K))){X.next=3;break}throw new Error("EventMissing");case 3:return H=ne(I)?I:M||{},V=ne(U)?U:{},X.abrupt("return",new Promise(function(Ge){D.dispatch({type:N.trackStart,event:K,properties:H,options:V,userId:o(ge,S,M),anonymousId:o(Ie,S,M)},Ge,[M,U,W])}));case 6:case"end":return X.stop()}},x)}));function m(x,I,M,U){return l.apply(this,arguments)}return m})(),page:(function(){var l=se(B.mark(function x(I,M,U){var W,K;return B.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return W=ne(I)?I:{},K=ne(M)?M:{},H.abrupt("return",new Promise(function(V){D.dispatch({type:N.pageStart,properties:Ma(W),options:K,userId:o(ge,S,W),anonymousId:o(Ie,S,W)},V,[I,M,U])}));case 3:case"end":return H.stop()}},x)}));function m(x,I,M){return l.apply(this,arguments)}return m})(),user:function(l){if(l===ge||l==="id")return o(ge,S);if(l===Ie||l==="anonId")return o(Ie,S);var m=S.getState("user");return l?Nn(m,l):m},reset:function(l){return new Promise(function(m){D.dispatch({type:N.resetStart},m,l)})},ready:function(l){return S.on(N.ready,l)},on:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var x=/Start$|Start:/;if(l==="*"){var I=function(K){return function(H){return function(V){return V.type.match(x)&&m({payload:V,instance:S,plugins:a}),H(V)}}},M=function(K){return function(H){return function(V){return V.type.match(x)||m({payload:V,instance:S,plugins:a}),H(V)}}};return g(I,Qe),g(M,Ye),function(){O(I,Qe),O(M,Ye)}}var U=l.match(x)?Qe:Ye,W=function(K){return function(H){return function(V){return V.type===l&&m({payload:V,instance:S,plugins:a,abort:A}),H(V)}}};return g(W,U),function(){return O(W,U)}},once:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var x=S.on(l,function(I){var M=I.payload;m({payload:M,instance:S,plugins:a,abort:A}),x()});return x},getState:function(l){var m=D.getState();return l?Nn(m,l):Object.assign({},m)},dispatch:function(l){var m=et(l)?{type:l}:l;if(ea(m.type))throw new Error("reserved action "+m.type);var x=l._||{},I=k(k({},m),{},{_:k({originalAction:m.type},x)});D.dispatch(I)},enablePlugin:j.enable,disablePlugin:j.disable,plugins:j,storage:{getItem:i.getItem,setItem:function(l,m,x){D.dispatch({type:N.setItemStart,key:l,value:m,options:x})},removeItem:function(l,m){D.dispatch({type:N.removeItemStart,key:l,options:m})}},setAnonymousId:function(l,m){S.storage.setItem(ye,l,m)},events:{all:c,core:ot,plugins:s}},E=function(l){return function(m){return function(x){return x.meta||(x.meta=Yn()),m(x)}}},P=r.middlewares.concat([E,y(Qe),Oa(S,d,{all:c,plugins:s}),xa(i),ta(S),ia(S),y(Ye)]),T={context:Ra,user:na(i),page:Ua,track:Ea,plugins:Ia(d),queue:Ta},L=_e,R=_e;if(fe&&e.debug){var _=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;_&&(L=_({trace:!0,traceLimit:25})),R=function(){return arguments.length===0?pi():ne(Q(arguments[0]))?Qn():Qn().apply(null,arguments)}}var C=$a(e),F=r.pluginsArray.reduce(function(l,m){var x=m.name,I=m.config,M=m.loaded,U=r.pluginEnabled[x];return l[x]={enabled:U,initialized:U?!m.initialize:!1,loaded:!!M(),config:I||{}},l},{}),$={context:C,user:w,plugins:F},D=ti(Xo(k(k({},T),t)),$,R(L(Bo.apply(void 0,Re(P)))));function q(l){return function(m,x,I){var M=Yn(m.meta,x,At(I)),U=k(k({},m),{meta:M});return l.apply(null,[U])}}D.dispatch=q(D.dispatch);var G=Object.keys(a);D.dispatch({type:N.bootstrap,plugins:G,config:C,params:v,user:w,initialUser:n,persistedUser:f});var z=G.filter(function(l){return r.pluginEnabled[l]}),h=G.filter(function(l){return!r.pluginEnabled[l]});D.dispatch({type:N.registerPlugins,plugins:G,enabled:r.pluginEnabled}),r.pluginsArray.map(function(l,m){var x=l.bootstrap,I=l.config,M=l.name;x&&ae(x)&&x({instance:S,config:I,payload:l}),D.dispatch({type:N.registerPluginType(M),name:M,enabled:r.pluginEnabled[M],plugin:l}),r.pluginsArray.length===m+1&&D.dispatch({type:N.initializeStart,plugins:z,disabled:h})}),Ha(function(l){D.dispatch({type:l?N.offline:N.online})}),aa(D,d,S);function b(l){return function(){for(var m=Array.prototype.slice.call(arguments),x=new Array(l.length),I=0;I<m.length;I++)x[I]=m[I];return x[x.length]=S,l.apply({instance:S},x)}}return S}var Qe="before",Ye="after",xe="cookie",be=mi(),dn=pt,gi=pt;function hi(e){return be?pt(e,"",-1):ke(e)}function mi(){if(be!==void 0)return be;var e=xe+xe;try{pt(e,e),be=document.cookie.indexOf(e)!==-1,hi(e)}catch{be=!1}return be}function pt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return be===!1&&(a?le(e,t):de(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var ce="localStorage",Ja=ft.bind(null,ce),pn=pe(ce,"getItem",de),Xa=pe(ce,"setItem",le),yi=pe(ce,"removeItem",ke),$e="sessionStorage",Ba=ft.bind(null,"sessionStorage");pe("sessionStorage","getItem",de);pe("sessionStorage","setItem",le);pe("sessionStorage","removeItem",ke);var Zn,vi="any",bi="*",Kt=typeof process<"u"?process:{};(Zn=Kt.env)!=null&&Zn.NODE_ENV;var Qa=typeof window<"u";Kt.versions!=null&&Kt.versions.node!=null;typeof Deno<"u"&&Deno.core;Qa&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function gt(e,t){return typeof t===e}gt.bind(null,"function");var Ya=gt.bind(null,"string"),je=gt.bind(null,"undefined");gt.bind(null,"boolean");function Za(e){return e&&(typeof e=="object"||e!==null)}function es(e){if(!Za(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Pe(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(es(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var ts=Ja(),ns=Ba(),rs=mi();function wi(e,t){if(e){var n=gn(t),r=!vn(n),i=hn(n)?Pe(localStorage.getItem(e)):void 0;if(r&&!je(i))return i;var o=mn(n)?Pe(dn(e)):void 0;if(r&&o)return o;var a=yn(n)?Pe(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=de(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function is(e,t,n){if(e&&!je(t)){var r={},i=gn(n),o=JSON.stringify(t),a=!vn(i);return hn(i)&&(r[ce]=Ze(ce,t,Pe(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[ce]:mn(i)&&(r[xe]=Ze(xe,t,Pe(dn(e))),gi(e,o),a)?r[xe]:yn(i)&&(r[$e]=Ze($e,t,Pe(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[$e]:(r[we]=Ze(we,t,de(e)),le(e,t),a?r[we]:r)}}function os(e,t){if(e){var n=gn(t),r=wi(e,bi),i={};return!je(r.localStorage)&&hn(n)&&(localStorage.removeItem(e),i[ce]=r.localStorage),!je(r.cookie)&&mn(n)&&(hi(e),i[xe]=r.cookie),!je(r.sessionStorage)&&yn(n)&&(sessionStorage.removeItem(e),i[$e]=r.sessionStorage),!je(r.global)&&ht(n,we)&&(ke(e),i[we]=r.global),i}}function gn(e){return e?Ya(e)?e:e.storage:vi}function hn(e){return ts&&ht(e,ce)}function mn(e){return rs&&ht(e,xe)}function yn(e){return ns&&ht(e,$e)}function vn(e){return e===bi||e==="all"}function ht(e,t){return e===vi||e===t||vn(e)}function Ze(e,t,n){return{location:e,current:t,previous:n}}var as={setItem:is,getItem:wi,removeItem:os};function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(r){ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:as};return Ga(tr(tr({},t),e))}function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function cs(e,t){if(re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ls(e){var t=cs(e,"string");return re(t)=="symbol"?t:t+""}function bn(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(n),!0).forEach(function(r){bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}},ir={exports:{}},or;function xi(){return or||(or=1,(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ir)),ir.exports}var ar={exports:{}},sr={exports:{}},ur;function Si(){return ur||(ur=1,(function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,u,c,d){function p(g,O){t(s,g,function(y){return this._invoke(g,O,y)})}u?a?a(s,u,{value:c,enumerable:!d,configurable:!d,writable:!d}):s[u]=c:(p("next",0),p("throw",1),p("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sr)),sr.exports}var cr;function Ai(){return cr||(cr=1,(function(e){var t=Si();function n(){var r,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(v,f,w,j){var S=f&&f.prototype instanceof d?f:d,E=Object.create(S.prototype);return t(E,"_invoke",(function(P,T,L){var R,_,C,F=0,$=L||[],D=!1,q={p:0,n:0,v:r,a:G,f:G.bind(r,4),d:function(z,h){return R=z,_=0,C=r,q.n=h,c}};function G(z,h){for(_=z,C=h,i=0;!D&&F&&!b&&i<$.length;i++){var b,l=$[i],m=q.p,x=l[2];z>3?(b=x===h)&&(C=l[(_=l[4])?5:(_=3,3)],l[4]=l[5]=r):l[0]<=m&&((b=z<2&&m<l[1])?(_=0,q.v=h,q.n=l[1]):m<x&&(b=z<3||l[0]>h||h>x)&&(l[4]=z,l[5]=h,q.n=x,_=0))}if(b||z>1)return c;throw D=!0,h}return function(z,h,b){if(F>1)throw TypeError("Generator is already running");for(D&&h===1&&G(h,b),_=h,C=b;(i=_<2?r:C)||!D;){R||(_?_<3?(_>1&&(q.n=-1),G(_,C)):q.n=C:q.v=C);try{if(F=2,R){if(_||(z="next"),i=R[z]){if(!(i=i.call(R,C)))throw TypeError("iterator result is not an object");if(!i.done)return i;C=i.value,_<2&&(_=0)}else _===1&&(i=R.return)&&i.call(R),_<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),_=1);R=r}else if((i=(D=q.n<0)?C:P.call(T,q))!==c)break}catch(l){R=r,_=1,C=l}finally{F=1}}return{value:i,done:D}}})(v,w,j),!0),E}var c={};function d(){}function p(){}function g(){}i=Object.getPrototypeOf;var O=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),y=g.prototype=d.prototype=Object.create(O);function A(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,g):(v.__proto__=g,t(v,s,"GeneratorFunction")),v.prototype=Object.create(y),v}return p.prototype=g,t(y,"constructor",g),t(g,"constructor",p),p.displayName="GeneratorFunction",t(g,s,"GeneratorFunction"),t(y),t(y,s,"Generator"),t(y,a,function(){return this}),t(y,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:u,m:A}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ar)),ar.exports}var lr={exports:{}},fr={exports:{}},dr={exports:{}},pr;function ki(){return pr||(pr=1,(function(e){var t=xi(),n=Si();function r(i,o){function a(u,c,d,p){try{var g=i[u](c),O=g.value;return O instanceof t?o.resolve(O.v).then(function(y){a("next",y,d,p)},function(y){a("throw",y,d,p)}):o.resolve(O).then(function(y){g.value=y,d(g)},function(y){return a("throw",y,d,p)})}catch(y){p(y)}}var s;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(u,c,d){function p(){return new o(function(g,O){a(u,d,g,O)})}return s=s?s.then(p,p):p()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(dr)),dr.exports}var gr;function Ii(){return gr||(gr=1,(function(e){var t=Ai(),n=ki();function r(i,o,a,s,u){return new n(t().w(i,o,a,s),u||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(fr)),fr.exports}var hr;function fs(){return hr||(hr=1,(function(e){var t=Ii();function n(r,i,o,a,s){var u=t(r,i,o,a,s);return u.next().then(function(c){return c.done?c.value:u.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(lr)),lr.exports}var mr={exports:{}},yr;function ds(){return yr||(yr=1,(function(e){function t(n){var r=Object(n),i=[];for(var o in r)i.unshift(o);return function a(){for(;i.length;)if((o=i.pop())in r)return a.value=o,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mr)),mr.exports}var vr={exports:{}},br={exports:{}},wr;function ps(){return wr||(wr=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(br)),br.exports}var Or;function gs(){return Or||(Or=1,(function(e){var t=ps().default;function n(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],o=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(vr)),vr.exports}var xr;function hs(){return xr||(xr=1,(function(e){var t=xi(),n=Ai(),r=fs(),i=Ii(),o=ki(),a=ds(),s=gs();function u(){var c=n(),d=c.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(d):d.__proto__).constructor;function g(A){var v=typeof A=="function"&&A.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")}var O={throw:1,return:2,break:3,continue:3};function y(A){var v,f;return function(w){v||(v={stop:function(){return f(w.a,2)},catch:function(){return w.v},abrupt:function(j,S){return f(w.a,O[j],S)},delegateYield:function(j,S,E){return v.resultName=S,f(w.d,s(j),E)},finish:function(j){return f(w.f,j)}},f=function(j,S,E){w.p=v.prev,w.n=v.next;try{return j(S,E)}finally{v.next=w.n}}),v.resultName&&(v[v.resultName]=w.v,v.resultName=void 0),v.sent=w.v,v.next=w.n;try{return A.call(this,v)}finally{w.p=v.prev,w.n=v.next}}}return(e.exports=u=function(){return{wrap:function(A,v,f,w){return c.w(y(A),v,f,w&&w.reverse())},isGeneratorFunction:g,mark:c.m,awrap:function(A,v){return new t(A,v)},AsyncIterator:o,async:function(A,v,f,w,j){return(g(v)?i:r)(y(A),v,f,w,j)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports})(rr)),rr.exports}var kt,Sr;function ms(){if(Sr)return kt;Sr=1;var e=hs()();kt=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return kt}var ys=ms(),J=Oi(ys);function Ar(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Ar(o,r,i,a,s,"next",u)}function s(u){Ar(o,r,i,a,s,"throw",u)}a(void 0)})}}var kr=function(){};function vs(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,u=t.onEmpty||kr,c=t.onPause||kr;function d(g){clearInterval(n);var O=o.splice(0,a);return O.length&&e(O,o),o.length?g?d():p():(i=!1,u(o))}function p(){i=!0,n=setInterval(d,s)}return o.length&&p(),{flush:function(g){d(g)},resume:d,push:function(g){return(r=o.push(g))>=a&&!t.throttle&&d(),i||p(),r},size:function(){return o.length},pause:function(g){g&&d(),clearInterval(n),i=!1,c(o)}}}var mt="sessionStorage";ft.bind(null,mt);var bs=pe(mt,"getItem",de),ws=pe(mt,"setItem",le);pe(mt,"removeItem",ke);var tt="__",yt="session",ji=tt+yt,Ei="page",Ir=["id","createdAt","created"];function Ft(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function Pi(){var e=Ft(),t=e[0],n=e[1];return{id:Ae(),created:n,createdAt:t}}var Os={session:[bs,ws],page:[de,le]};function vt(e,t){for(var n=Os[e],r=n[0],i=n[1],o=Pi(),a=!1,s={},u=0;u<Ir.length;u++){var c=Ir[u],d=tt+e+tt+yt+tt+c,p=r(d);a=t||!p,(t||!t&&!p)&&i(d,o[c]);var g=p&&!t?p:o[c],O=c!=="created"?g:Number(g);s[c]=O}return wn(s,a)}function wn(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function qe(e,t){e===void 0&&(e=30);var n=dn(ji),r=n?JSON.parse(n):at(e);return t?r:wn(r,!n)}function at(e,t,n){e===void 0&&(e=30);var r=n?qe(e,!0):Pi(),i=60*e,o=r.created;if(n){var a=Ft(),s=a[0],u=a[1];r.modified=u,r.modifiedAt=s,o=u}var c=Ft(o+1e3*i),d=c[0];return r.expires=c[1],r.expiresAt=d,r.duration=1e3*i,t&&(r=Object.assign(r,t)),gi(ji,JSON.stringify(r),i),wn(r,!n)}var xs=function(e,t){return at(e,t,!0)},Ti=vt.bind(null,yt),Ss=vt.bind(null,yt,!0),On=vt.bind(null,Ei),jr=vt.bind(null,Ei,!0),Se=typeof window<"u";function As(e){return typeof e=="string"}function Er(e){return typeof e=="boolean"}var It,Pr;function ks(){if(Pr)return It;Pr=1;var e=function(f){return t(f)&&!n(f)};function t(f){return!!f&&typeof f=="object"}function n(f){var w=Object.prototype.toString.call(f);return w==="[object RegExp]"||w==="[object Date]"||o(f)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(f){return f.$$typeof===i}function a(f){return Array.isArray(f)?[]:{}}function s(f,w){return w.clone!==!1&&w.isMergeableObject(f)?A(a(f),f,w):f}function u(f,w,j){return f.concat(w).map(function(S){return s(S,j)})}function c(f,w){if(!w.customMerge)return A;var j=w.customMerge(f);return typeof j=="function"?j:A}function d(f){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(f).filter(function(w){return Object.propertyIsEnumerable.call(f,w)}):[]}function p(f){return Object.keys(f).concat(d(f))}function g(f,w){try{return w in f}catch{return!1}}function O(f,w){return g(f,w)&&!(Object.hasOwnProperty.call(f,w)&&Object.propertyIsEnumerable.call(f,w))}function y(f,w,j){var S={};return j.isMergeableObject(f)&&p(f).forEach(function(E){S[E]=s(f[E],j)}),p(w).forEach(function(E){O(f,E)||(g(f,E)&&j.isMergeableObject(w[E])?S[E]=c(E,j)(f[E],w[E],j):S[E]=s(w[E],j))}),S}function A(f,w,j){j=j||{},j.arrayMerge=j.arrayMerge||u,j.isMergeableObject=j.isMergeableObject||e,j.cloneUnlessOtherwiseSpecified=s;var S=Array.isArray(w),E=Array.isArray(f),P=S===E;return P?S?j.arrayMerge(f,w,j):y(f,w,j):s(w,j)}A.all=function(f,w){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(j,S){return A(j,S,w)},{})};var v=A;return It=v,It}var Is=ks(),js=Oi(Is);var Gt=new TextEncoder,Es={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},Ps=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Jt=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:u}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=u||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:u}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=u!=null&&s.has("X-Amz-Content-Sha256")?u:await t.clone().arrayBuffer()),t=a}let r=new Xt(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Xt=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:u,region:c,cache:d,datetime:p,signQuery:g,appendSessionToken:O,allHeaders:y,singleEncode:A}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let v,f;(!u||!c)&&([v,f]=Ts(this.url,this.headers)),this.service=u||v||"",this.region=c||f||"us-east-1",this.cache=d||new Map,this.datetime=p||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=g,this.appendSessionToken=O||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let w=this.signQuery?this.url.searchParams:this.headers;if(w.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&w.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(S=>y||!Ps.has(S)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(S=>S+":"+(S==="host"?this.url.host:(this.headers.get(S)||"").replace(/\s+/g," "))).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
4
|
var o={user:"user",group:"group",groupAdmin:"group-admin",org:"org",orgAdmin:"org-admin",authenticated:"authenticated",anonymous:"anonymous",owner:"owner"};export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{A as T,B as y,C as A,D as w,E,F as G,n as t,q as d,r as m,s as b,t as k,u as h,v as f,w as O,x as M,y as g,z as P}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{A as T,B as y,C as A,D as w,E,F as G,n as t,q as d,r as m,s as b,t as k,u as h,v as f,w as O,x as M,y as g,z as P}from"./2WWHEMQL.js";function K(a,r,e){let s=a.templates.map(o=>o.type),i=[];i.push(m),s.indexOf("Group")>=0&&(i.push(b),i.push(g)),s.indexOf("Feature Service")>=0&&i.push(h);let n=s.indexOf("Feed")>-1;n&&i.push(f);let l=s.indexOf("Big Data Analytic")>-1;l&&i.push(k);let u=s.indexOf("Real Time Analytic")>-1;u&&i.push(M),(n||l||u)&&i.push(E),s.indexOf("Workflow")>-1&&(i.push(b),i.push(h),i.push(g),i.push(G)),s.indexOf("Geoprocessing Service")>-1&&(i.push(O),e.IsEnterprisePortal&&i.push(T));let p=a.templates.reduce((o,x)=>o.concat(x.item.typeKeywords||[]),[]);return I(i,p,e),R(i,r),S(i,a),i}function S(a,r){r.templates.some(e=>e.type==="Group"&&e.item?.membershipAccess==="collaboration")&&a.push(d)}function I(a,r,e){let s=B(e),i=F(e);["Location Tracking View"].some(n=>r.indexOf(n)>-1)&&(!s&&!i?a.push(y):s&&!i?a.push(A):!s&&i&&a.push(w))}function R(a,r){["HubPremium"].some(e=>r.indexOf(e)>-1)&&a.push(P)}function B(a){let r=a.PortalUserSubset;return r?.role==="org_admin"&&!r?.hasOwnProperty("roleId")}function F(a){return a.PortalSubset?.locationTrackingEnabled||!1}function N(a,r){let e={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},s=[t.NOTEBOOK,t.VELOCITY,t.HUBPREMIUM,t.WORKFLOW,t.TRACKINGBASE],i=c(a,r,t.VELOCITY);i&&e.leadingMessages.push(i);let n=c(a,r,t.NOTEBOOK);n&&e.leadingMessages.push(n);let l=c(a,r,t.HUBPREMIUM);l&&e.leadingMessages.push(l);let u=c(a,r,t.WORKFLOW);u&&e.leadingMessages.push(u),r=r.filter(o=>s.indexOf(o)<0),r.forEach(o=>{e.bulletedMessages.push(v(a,o))});let p=c(a,r,t.TRACKINGBASE);return p&&e.trailingMessages.push(p),(e.leadingMessages.length>0||e.trailingMessages.length>0)&&e.trailingMessages.push(a.missingPrivilegesPopup.suggestedProblemRemedyMessage),e}function c(a,r,e){return r.filter(s=>s.includes(e)).length>0?v(a,e):""}function v(a,r){let e=a.missingPrivilegesPopup.requiredPrivilegesList,s="";switch(r){case"portal:user:createItem":s=e.createItem;break;case"portal:publisher:publishFeatures":s=e.publishFeatures;break;case"portal:user:createGroup":s=e.createGroup;break;case"portal:user:shareToGroup":s=e.shareToGroup;break;case"portal:user:addExternalMembersToGroup":s=e.addMembers;break;case"portal:publisher:publishFeeds":s=e.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":s=e.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":s=e.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":s=e.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":s=e.requiresLocationTracking;break;case"solutions:locationtracking:admin":s=e.requiresAdmin;break;case"solutions:hubPremium":s=e.hubPremium;break;case"solutions:workflowManager":s=e.workflowManager;break;case"solutions:velocity":s=e.velocity;break;case"solutions:notebook":s=e.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":s=e.publishGPServices;break;case"writable:Enterprise":s=e.writableEnterprise;break;case"writable:Online":s=e.writableOnline;break}return s}export{K as a,B as b,N as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import"./NF2RYWNV.js";var e="Du har ikke credits nok til at udf\xF8re denne handling. Kontakt din ArcGIS-systemadministrator for at f\xE5 hj\xE6lp.",r="Dette v\xE6rkt\xF8j blev publiceret fra en notesbog. Adgang til ArcGIS Notebooks er blokeret for din organisation. Kontakt din administrator for at justere indstillingen.",a="${ dataPath } m\xE5 ikke have ${ additionalProperty }.",t="${ dataPath } skal matche skemaet fra en af disse: ${ schemaOptions }.",i="Pr\xF8v at gemme kortet igen.",n="Credit-beregning mislykkedes. Rul ned, ret fejlene, og beregn credits igen.",l="Der opstod en fejl under k\xF8rsel af analyse.",s="${ dataPath } skal v\xE6re lig med en af disse tilladte v\xE6rdier: ${ allowedValues }.",o="Kunne ikke gemme analysehistorik",d="Historiklager er fuldt. Fjern nogle elementer fra analysehistorikken, og pr\xF8v at gemme igen.",g="Tjenestenavnet indeholder et eller flere ugyldige tegn.",k="Lagringen af det midlertidige lag som et hostet objektlag blev ikke fuldf\xF8rt.",m="Kunne ikke f\xE5 n\xF8gleegenskaberne.",u="Kunne ikke indl\xE6se laget.",f="Lag er ikke tilg\xE6ngeligt.",c="${ dataPath } m\xE5 ikke have flere end ${ limit } elementer.",v="Der opstod en fejl under lagring af modellen. Pr\xF8v at lagre igen.",h="${ dataPath } m\xE5 ikke have f\xE6rre end ${ limit } elementer.",y="${ dataPath } skal ikke v\xE6re kortere end ${ limit } tegn.",p="Kunne ikke indl\xE6se model-elementet: S\xF8rg for, at modellen findes, og at der er blevet givet adgangstilladelse.",E="Kunne ikke fuldf\xF8re anmodning.",P="Du har ikke tilladelse til at k\xF8re dette v\xE6rkt\xF8j. <calcite-link target='_blank' href='${ docLink }'>F\xE5 flere oplysninger</calcite-link>",b="Kunne ikke logge p\xE5 portal.",S="Kunne ikke l\xE6se inputdata.",F="${ dataPath } mangler en egenskab med navnet ${ missingProperty }.",$="Der findes allerede et resultatlag med dette navn. Resultatlag skal v\xE6re entydige i hele organisationen. Brug et andet navn.",I="Outputnavnet indeholder et eller flere ugyldige tegn. <a href='${docLink}' target='_blank'>F\xE5 mere at vide.</a>",j="Udgivelse af det midlertidige lag som et hostet lag mislykkedes p\xE5 grund af et eller flere ugyldige felter. K\xF8r v\xE6rkt\xF8jet igen for at oprette et lag med gyldige felter.",L="Jobafsendelse mislykkedes. Rul ned, ret fejlene, og k\xF8r analysen igen.",T="${ dataPath } skal have mindst et tegn, der ikke er et mellemrumstegn.",K={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:a,anyOfValues:t,cannotWriteToItemResource:i,creditEstimationError:n,defaultError:l,enumValues:s,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:g,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:m,layerLoadFailure:u,layerUnavailable:f,maxItems:c,mbFailedToSave:v,minItems:h,minLength:y,modelNotFound:p,networkError:E,noPermissionToAccessTool:P,portalLoadError:b,queryFeaturesError:S,requiredProperty:F,serviceNameExistsError:$,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:j,toolValidationError:L,whiteSpacePattern:T};export{e as InsufficientCreditsError,r as accessBlocked,a as additionalProperty,t as anyOfValues,i as cannotWriteToItemResource,n as creditEstimationError,K as default,l as defaultError,s as enumValues,o as failedToSaveHistory,d as fullSessionStorage,g as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,u as layerLoadFailure,f as layerUnavailable,c as maxItems,v as mbFailedToSave,h as minItems,y as minLength,p as modelNotFound,E as networkError,P as noPermissionToAccessTool,b as portalLoadError,S as queryFeaturesError,F as requiredProperty,$ as serviceNameExistsError,I as specialCharactersInServiceNameError,j as temporaryLayerFieldsError,L as toolValidationError,T as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{e as c}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{e as c}from"./VZILYFKI.js";import{b as l}from"./OG42ZS54.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import"./NF2RYWNV.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import j from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import j from"./OYGGDF2B.js";import e from"./WNPTLJW6.js";import{b as C}from"./4PVCOMMR.js";import b from"./3CA3JXHN.js";import{a as g,c as y,d as f}from"./TTWS32CH.js";import a from"./O4NSXTKA.js";import{b as r}from"./ZNS6MPKA.js";import"./MUEEPIGW.js";import"./HPWAT524.js";import"./VMLMQHX6.js";import"./2XDSKSGJ.js";import"./LNDZ63CO.js";import"./NLPZ6EBZ.js";import"./TJAJZH5X.js";import"./6V2AY63L.js";import"./2OJLNFOC.js";import"./ARMD7TYE.js";import"./UM7KKCJY.js";import"./P646MTO3.js";import"./ZOL5WGOF.js";import"./3VLEZH43.js";import"./KZVZFGE7.js";import"./TUXWR4NG.js";import"./LVJURNWC.js";import"./B7V6UCY6.js";import"./DIDWJ4LI.js";import"./JRRP7PGD.js";import{m as u,o}from"./2WWHEMQL.js";import{a as m}from"./YMQSQJJG.js";import"./BM4UDJI5.js";import"./ZYC3QQF6.js";import{b as _}from"./RMT4J5DE.js";import{D as d,E as p,h as l,i as s,j as h,l as c,o as i}from"./MLCEASYL.js";import"./NF2RYWNV.js";export default $arcgis.t(([,,a,w])=>{var T=l`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{e,f as t}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{e,f as t}from"./E4OJTFXU.js";import"./NF2RYWNV.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
4
|
var l=e=>({labelKey:`${e}.fields.slug.label`,scope:"/properties/_slug",type:"Control",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.slug.patternError`},{type:"ERROR",keyword:"isUniqueSlug",icon:!0,labelKey:`${e}.fields.slug.isUniqueError`}]}});export{l as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
4
|
async function h(r,e){let t=[],n=r?r.map(s=>b(s,e)):[Promise.resolve()];return(await Promise.all(n)).forEach(s=>{t=[...t,...s||[]]}),t}async function m(r,e,t,n,s,o){let a=e.capabilities?.query.maxRecordCount||1e3,y=0;r.length===0&&(r=await e.queryObjectIds());let c=e.createQuery();if(c.returnGeometry=n,c.objectIds=r.slice(y,a),s&&(c.outSpatialReference=s),o){let d=e.fields.map(u=>u.name.toLowerCase());c.outFields=o.filter(u=>d.indexOf(u.toLowerCase())>-1)}let f=await e.queryFeatures(c);t=t.concat(f.features);let l=r.slice(a,r.length);return l.length>0?m(l,e,t,n,s,o):Promise.resolve(t)}async function q(r,e){let t=e.globalIdField;if(!t)return[];let n=e.createQuery();return n.returnGeometry=!1,n.outFields=[e.objectIdField],n.where=r.map(s=>`${t} = '${s}'`).join(" or "),(await e.queryFeatures(n)).features}async function p(r,e,t,n){let s=e.capabilities?.query.maxRecordCount||1e3,o=e.createQuery();o.start=r,o.num=s,o.geometry=t;let a=await e.queryFeatures(o);return n[e.id]=n[e.id].concat(a.features),a.exceededTransferLimit?p(r+=s,e,t,n):Promise.resolve(n)}async function g(r,e){let t=e.createQuery();return t.objectIds=r,e.queryExtent(t)}function w(r,e){let t=[],n=i(r,"polygon",e);n&&t.push(n);let s=i(r,"polyline",e);s&&t.push(s);let o=i(r,"point",e);return o&&t.push(o),t}function i(r,e,t){let n=(r||[]).filter(s=>s.type===e);return n.length<=1?n[0]:t.executeMany(n)}async function b(r,e){let t=e.createQuery();return t.spatialRelationship="intersects",t.geometry=r,e.queryObjectIds(t)}export{h as a,m as b,q as c,p as d,g as e,w as f};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{b as y}from"./TTWS32CH.js";import{b as S}from"./ZNS6MPKA.js";import{Cb as w}from"./MUEEPIGW.js";import"./HPWAT524.js";import"./VMLMQHX6.js";import"./2XDSKSGJ.js";import"./LNDZ63CO.js";import"./NLPZ6EBZ.js";import"./TJAJZH5X.js";import"./6V2AY63L.js";import"./2OJLNFOC.js";import"./ARMD7TYE.js";import"./UM7KKCJY.js";import"./P646MTO3.js";import"./ZOL5WGOF.js";import"./3VLEZH43.js";import"./KZVZFGE7.js";import{g as d}from"./TUXWR4NG.js";import"./LVJURNWC.js";import"./B7V6UCY6.js";import"./DIDWJ4LI.js";import"./JRRP7PGD.js";import{a as v}from"./YMQSQJJG.js";import"./BM4UDJI5.js";import"./ZYC3QQF6.js";import{b as f}from"./RMT4J5DE.js";import{C as o,D as l,E as I,I as r,h as g,i as n,j as b,o as u}from"./MLCEASYL.js";import"./NF2RYWNV.js";export default $arcgis.t(([c,C,M])=>{var m=class{constructor(t,e,i){this._credential=null,this._isEnterprise=!1,this._locale="en",this._portalSubset=null,this._portalUserSubset=null,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._credential=c.findCredential(this._portalRestUrl),this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get RestUserSession(){let t=c.findServerInfo(this._portalRestUrl),e=this._credential?d.fromCredential(this._credential,t):new d({});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,c.destroyCredentials()}async signIn(t=""){c.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let s=i.split("?"),a=s[0],h="";if(s[1]){let p=new URLSearchParams(s[1]);p.append("signInParam",t),h="?"+p.toString()}e.authorizeParams.redirect_uri=a+h}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await c.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){c.destroyCredentials(),this.destroy(),window.location.reload()}refreshSession(){let t=this.RestUserSession;return!t||!this.IsSignedIn?null:t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(){let t=new C({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});c.registerOAuthInfos([t]);try{let e=await c.checkAppAccess(this._portalUrl,this._clientId);(typeof e.valid<"u"&&!e.valid||e.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=e.credential}catch(e){if(e.name==="identity-manager:not-authenticated")return this;this.destroy(),window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal=new M({url:this._portalUrl}),this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await w(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let s=t[i];if(s==null)return"";let a=encodeURIComponent(i)+"=",h=e&&e[i];return h?a+encodeURIComponent(h(s)):Array.isArray(s)?s.map(p=>this._isSerializable(p)?a+encodeURIComponent(JSON.stringify(p)):a+encodeURIComponent(p)).join("&"):this._isSerializable(s)?a+encodeURIComponent(JSON.stringify(s)):a+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var R=g`/** @license
|
|
5
|
+
* Copyright 2025 Esri
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/.esri-global-nav__title{margin-block-start:0;position:relative;margin-bottom:0;font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-medium);padding-inline-end:var(--calcite-spacing-xxl);align-self:center}.esri-global-nav__logo-link{color:var(--calcite-color-text-1);text-decoration:unset;margin-block-start:0px;position:relative;margin-bottom:0;align-self:center}.cursor-pointer{cursor:pointer}.side{border-right:solid 1px;color:var(--calcite-color-text-1)}.display-flex{display:flex}.align-self-center{align-self:center}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.margin-start-end-1{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-start-end-1-5{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}calcite-menu{--calcite-color-focus: transparent}calcite-button{--calcite-color-focus: transparent}.sign-in{display:flex;vertical-align:middle;align-items:center;height:100%}.height-full{height:100%}.user-label{--calcite-label-margin-bottom: 0px}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-normal{font-weight:var(--calcite-font-weight-normal)}.logo-padding{padding-inline-start:var(--calcite-spacing-none)}@media(max-width:800px){.logo-padding{padding-inline-start:var(--calcite-spacing-lg)}}.signin-padding{padding-inline-end:var(--calcite-spacing-none)}@media(max-width:800px){.signin-padding{padding-inline-end:var(--calcite-spacing-lg)}}calcite-action{--calcite-font-size-0: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: var(--calcite-spacing-lg)}calcite-navigation{--calcite-color-border-3: transparent}`,_=class extends I{constructor(){super(...arguments),this.useLocalAppConfig=!1,this._isMobile=!1,this._logoFill="",this._translations=v({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._dropdownRef=o(),this._dropdownItemAll=o(),this._dropdownItemMy=o(),this._dropdownItemResources=o(),this._isMobileContextConsumer=S({context:y,subscribe:!0,callback:t=>this._isMobile=t}),this._menuRef=o(),this._menuItemAll=o(),this._menuItemMy=o(),this._menuItemResources=o(),this.authInit=u(),this.navTabSelected=u(),this.tokenRefreshed=u()}static{this.properties={appConfig:1,useLocalAppConfig:5,_isMobile:16,_logoFill:16,_translations:16}}static{this.styles=R}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(t,e=!1){let i,s;switch(t){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break}i&&s&&this._handleMenuClick(t,i,s,e)}async connectedCallback(){super.connectedCallback();let t=new d({username:"",password:""});this._userSession=t}async load(){let t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",h=>this._logoFill=this._getLogoFill(h.matches)),this._logoFill=this._getLogoFill(t.matches),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value);let e="en";this.useLocalAppConfig&&(e=this.appConfig.locale);let i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,a=this.appConfig.primarySolutionsGroupId;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new m(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize())),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this._setRefreshInterval(),this.authInit.emit({allCards:[],authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,locale:e||"en",orgUrl:i,portalUrl:s,primarySolutionsGroupId:a,solutionsUrlMarker:this.appConfig.solutionsUrlMarker,userSession:this._userSession}),this._portal=await this._userSession?.getPortal()}render(){return n`<calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation>`}updated(t){t.has("_isMobile")&&this.activateMenuItem(this._activeTab,!0)}_getSignInOut(){return n`<div slot=user>${this._authentication?.IsSignedIn?this._getUserAvatar():n`<calcite-button appearance=transparent class="sign-in" kind=neutral scale=l @click=${this._handleSignIn}>${this._translations.signIn}</calcite-button>`}</div>`}_getDropdown(){let t=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return n`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${l(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${e=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(e)}}>${t}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources],!0)} ${l(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item>${this._authentication?.IsSignedIn?n`<calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources],!0)} ${l(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item>`:""}<calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy],!0)} ${l(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return n`<calcite-menu label slot=content-start ${l(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} .text=${this._translations.allSolutions} ${l(this._menuItemAll)}></calcite-menu-item>${this._authentication?.IsSignedIn?n`<calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} .text=${this._translations.myDeployments} ${l(this._menuItemMy)}></calcite-menu-item>`:""}<calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} .text=${this._translations.solutionResources} ${l(this._menuItemResources)}></calcite-menu-item></calcite-menu>`}_setRefreshInterval(){}_getHeading(){return n`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??r} class="esri-global-nav__logo-link" href=https://www.esri.com rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??r}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${b`<path fill=${this._logoFill??r} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??r} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??r}>${this._translations.arcgisSolutions}</a></div></div>`}_getLogoFill(t){return t?"#FFFFFF":"#141414"}_handleMenuClick(t,e,i,s){i.forEach(a=>{a.value&&(this._isMobile?a.value.selected=!1:a.value.active=!1)}),e.value&&(this._isMobile?e.value.selected=!0:e.value.active=!0),this._activeTab=t,s&&this.navTabSelected.emit({tabType:t})}_getUserAvatar(){let t=this._portal.user,e=this._authentication?.PortalUserSubset,i=t?.id??t?.sourceJSON?.id;return n`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-avatar class="align-self-center" id=instant-apps-sign-in-user-button scale=l .thumbnail=${t?.thumbnailUrl??e?.thumbnailUrl??""} full-name=${t?.fullName??r} .username=${t?.username} user-id=${i??r}></calcite-avatar></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><div class="margin-start-end-1 padding-top-1"><calcite-label class="user-label font-bold padding-bottom-1" scale=l>${t.fullName??e?.fullName}<calcite-label class="user-label font-normal" scale=m>${t.username??e?.username}</calcite-label></calcite-label></div><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_signOut(){this._portal.credential?.destroy(),this._portal.authMode="anonymous",this._portal.credential=null,this._authentication?.signOut()}_handleSignIn(t){t.preventDefault(),this._authentication?.signIn().then(()=>{}).catch(e=>{console.error("Error creating global nav header:",e)})}};f("solutions-deploy-app-nav",_);return _},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as n}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{a as n}from"./5CZLOUWA.js";import{a as s}from"./VZ2KAB55.js";import"./2OJLNFOC.js";import"./ARMD7TYE.js";import"./UM7KKCJY.js";import"./P646MTO3.js";import{a as r,b as a}from"./S2PRPGAP.js";import"./VUHX5PDP.js";import"./ZOL5WGOF.js";import"./3VLEZH43.js";import{a as o}from"./AGOVBYGM.js";import{a as i}from"./JKECM7I2.js";import"./KZVZFGE7.js";import"./TUXWR4NG.js";import"./LVJURNWC.js";import"./B7V6UCY6.js";import"./DIDWJ4LI.js";import"./WZMWD7AD.js";import"./OTHXTD24.js";import"./B2X5O5CH.js";import"./EXW26AMV.js";import"./TWY6JTFJ.js";import"./7SH4N3P4.js";import"./RWSZ36QL.js";import"./CRJ3Z2P7.js";import"./JRRP7PGD.js";import"./REVMBJ5T.js";import"./7OY3BJB2.js";import"./SYTQPHM4.js";import"./6RBDKRJT.js";import"./XURZW2K7.js";import"./VGGKJXIY.js";import"./YDOKIJDV.js";import"./6HT5KOFQ.js";import"./LJCGAKR6.js";import"./L6PYFP5M.js";import"./AQ3QXPVB.js";import"./D7KPNSVV.js";import"./E4OJTFXU.js";import"./WHB4U5OL.js";import"./NF2RYWNV.js";var d=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[n(e)]:[],{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(l.location,t.hubRequestOptions),options:await a(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import"./NF2RYWNV.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as c,b as n,c as y}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{a as c,b as n,c as y}from"./RKJ7LCIR.js";import{b as d}from"./RMT4J5DE.js";import{C as a,D as s,E as m,h as u,i as t,o as p}from"./MLCEASYL.js";import"./NF2RYWNV.js";var h=u`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as h}from"./CR3Y76NS.js";import{a as U}from"./X5BGIPQE.js";import{b as m}from"./U5REIPGX.js";import{b as t,d as l,e as d}from"./GBUQQPYG.js";import{a as N}from"./QFU7UBJX.js";import{c as A}from"./AF4HG5KQ.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{a as h}from"./4NYPSKCK.js";import{a as U}from"./SXARTPK6.js";import{b as m}from"./J7E2QW2D.js";import{b as t,d as l,e as d}from"./ES237MC6.js";import{a as N}from"./BGXO43WL.js";import{c as A}from"./JRRP7PGD.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{d as l}from"./
|
|
3
|
+
v1.2.0-next.27 */
|
|
4
|
+
import{d as l}from"./TTWS32CH.js";import{b as r}from"./ZNS6MPKA.js";import{a as o}from"./YMQSQJJG.js";import"./BM4UDJI5.js";import"./ZYC3QQF6.js";import{b as c}from"./RMT4J5DE.js";import{E as n,h as a,i as s}from"./MLCEASYL.js";import"./NF2RYWNV.js";var u=a`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|