@esri/solutions-components 5.1.0-next.87 → 5.1.0-next.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{5IIGQVJO.js → 26K4UTAF.js} +1 -1
- package/dist/cdn/{UWU7WKT4.js → 2AO55DUN.js} +1 -1
- package/dist/cdn/2HUG6L4M.js +2 -0
- package/dist/cdn/{5MAO5XLB.js → 2PM224B6.js} +1 -1
- package/dist/cdn/{O5CIRNTW.js → 32YZXXMV.js} +1 -1
- package/dist/cdn/{X7GJCPNX.js → 34EUIYLN.js} +1 -1
- package/dist/cdn/{GF4QELNV.js → 3FMOO3PJ.js} +1 -1
- package/dist/cdn/{YKB6256M.js → 3IHLJADI.js} +1 -1
- package/dist/cdn/{76PFFHQQ.js → 3JGLETSR.js} +1 -1
- package/dist/cdn/3PT5ULE3.js +2 -0
- package/dist/cdn/{ZUM2PBNR.js → 3RUGNS6K.js} +1 -1
- package/dist/cdn/{AJZDBHB6.js → 45M33Q5G.js} +1 -1
- package/dist/cdn/{5O53T3SW.js → 4HFHJOS3.js} +1 -1
- package/dist/cdn/{MH4GMDK7.js → 4J3ETN35.js} +1 -1
- package/dist/cdn/{LXI55MKX.js → 4LXH3MTT.js} +1 -1
- package/dist/cdn/{Y4WHK65W.js → 4QJK4LPR.js} +1 -1
- package/dist/cdn/{QMPT2LSN.js → 4ZKGHGGU.js} +1 -1
- package/dist/cdn/{MOK7GNOH.js → 55PTISQ7.js} +1 -1
- package/dist/cdn/{ATWINUVK.js → 5A7H4LVR.js} +1 -1
- package/dist/cdn/{A4NILC27.js → 5ADMCIGY.js} +1 -1
- package/dist/cdn/{GURBVBZQ.js → 5AVH2R6T.js} +1 -1
- package/dist/cdn/{RJ35WJNP.js → 5CW67X4G.js} +1 -1
- package/dist/cdn/{UNJV2PKC.js → 5EBHORLK.js} +1 -1
- package/dist/cdn/{2LBDG4TO.js → 5EYS2CH4.js} +1 -1
- package/dist/cdn/{ZV6TCDGB.js → 5JLXNBOA.js} +1 -1
- package/dist/cdn/{IZT3JCS7.js → 5NPISZEN.js} +1 -1
- package/dist/cdn/{QX5WB6H3.js → 5RTR3NSC.js} +1 -1
- package/dist/cdn/{BQVD2BBH.js → 64Y5CQSL.js} +1 -1
- package/dist/cdn/6DCCVJMZ.js +2 -0
- package/dist/cdn/{J5GPIJHD.js → 6IIMJC5D.js} +1 -1
- package/dist/cdn/{JNREEHT7.js → 6MP2RVUK.js} +1 -1
- package/dist/cdn/{JR5GBFT2.js → 6O3XSKQY.js} +1 -1
- package/dist/cdn/{HJJK5IEH.js → 6PFEFNQM.js} +1 -1
- package/dist/cdn/{GQ4DWI5G.js → 6WQK4DHL.js} +1 -1
- package/dist/cdn/{BSBNPUTI.js → 6XELM7OM.js} +1 -1
- package/dist/cdn/{DV6MFL2N.js → 73YLLTLN.js} +1 -1
- package/dist/cdn/{LRZBOUPX.js → 74PV6PZ3.js} +1 -1
- package/dist/cdn/{6SADY7KT.js → 76APML4N.js} +1 -1
- package/dist/cdn/{VRSBUIGV.js → 7CJQI7VH.js} +1 -1
- package/dist/cdn/{KG6FSDWT.js → 7EF5FK2O.js} +1 -1
- package/dist/cdn/{QLOWHDGX.js → 7JEVFHRJ.js} +1 -1
- package/dist/cdn/{C4IFGE7P.js → 7TCHZME4.js} +1 -1
- package/dist/cdn/A7PEA2YP.js +2 -0
- package/dist/cdn/{6RTR35JT.js → AFZETCUL.js} +1 -1
- package/dist/cdn/AIQEYNZE.js +2 -0
- package/dist/cdn/{FFMJQJUP.js → AL2DDBXW.js} +1 -1
- package/dist/cdn/{YFXSWGXE.js → ALSK2SPM.js} +1 -1
- package/dist/cdn/{EUPJV6QI.js → AM5URNYD.js} +1 -1
- package/dist/cdn/{JCQ5JRVZ.js → B67TTSQO.js} +1 -1
- package/dist/cdn/{5G5LMAT4.js → B7AQR2UD.js} +1 -1
- package/dist/cdn/BBNWDMCK.js +2 -0
- package/dist/cdn/{JBNWEBAG.js → BMBNSJZQ.js} +1 -1
- package/dist/cdn/BRQJSGIX.js +2 -0
- package/dist/cdn/{3OCYAA4P.js → BU5PIAGS.js} +1 -1
- package/dist/cdn/{CR7KUQQF.js → BVWAUO73.js} +1 -1
- package/dist/cdn/{FEQDFENU.js → C3ZGM4K7.js} +1 -1
- package/dist/cdn/{SMNWKCWR.js → CZKXDUOH.js} +1 -1
- package/dist/cdn/{RQRAFBVO.js → DJOOB7YP.js} +1 -1
- package/dist/cdn/DLH53PYM.js +7 -0
- package/dist/cdn/{ZJ3PH44C.js → DQWJUYMM.js} +1 -1
- package/dist/cdn/{ERCI6HI5.js → DUZ4KXB3.js} +1 -1
- package/dist/cdn/{QK5IXICV.js → DWEIHGFT.js} +1 -1
- package/dist/cdn/{Y3CYPNEY.js → EBRCBPEM.js} +1 -1
- package/dist/cdn/{B3BR2NG5.js → ELD2UQO4.js} +1 -1
- package/dist/cdn/{TMYE7YBP.js → ELPH6EFW.js} +1 -1
- package/dist/cdn/{JUCL7I6N.js → ET32EBBO.js} +3 -3
- package/dist/cdn/{I33PCNP7.js → FGWGYIBZ.js} +1 -1
- package/dist/cdn/{TJNO7ZMF.js → FMHXFW3E.js} +1 -1
- package/dist/cdn/{I53PAKKW.js → FN2NSVLO.js} +1 -1
- package/dist/cdn/{AZ4JB3M3.js → GEXLEGOL.js} +1 -1
- package/dist/cdn/{NPUZIHVP.js → GM772Z5U.js} +1 -1
- package/dist/cdn/H5E6ISYP.js +4 -0
- package/dist/cdn/{5MVIKBSS.js → H5TWIMN3.js} +1 -1
- package/dist/cdn/{SPUZEM7P.js → HKVSZTWH.js} +1 -1
- package/dist/cdn/{JUWJNZMD.js → HMKJYAVE.js} +1 -1
- package/dist/cdn/{3MEDCOT3.js → HNVWONX2.js} +1 -1
- package/dist/cdn/{6TCJ2NKA.js → HOLASUOX.js} +1 -1
- package/dist/cdn/I33B45EZ.js +2 -0
- package/dist/cdn/{SNR6ZHKZ.js → I6H42GYO.js} +1 -1
- package/dist/cdn/{UOGOGQ2H.js → IV4U4XB5.js} +1 -1
- package/dist/cdn/{E7Y745EK.js → J5FYHTE4.js} +1 -1
- package/dist/cdn/J75MHJID.js +4 -0
- package/dist/cdn/{XRZHHEBP.js → J7IFAEYK.js} +1 -1
- package/dist/cdn/{3PUFU3VY.js → JC5EXPFH.js} +1 -1
- package/dist/cdn/{D66IBZZA.js → JDVVMD4S.js} +1 -1
- package/dist/cdn/{A73LPATI.js → JDX6K42U.js} +132 -149
- package/dist/cdn/{3FOUGCWY.js → JMU5KKZH.js} +1 -1
- package/dist/cdn/{XYG3Z7ZY.js → JWGDDEVT.js} +1 -1
- package/dist/cdn/JZ472WDS.js +2 -0
- package/dist/cdn/{7UVBIBQS.js → K3DQKY7V.js} +1 -1
- package/dist/cdn/K6PW4IX6.js +2 -0
- package/dist/cdn/{63QOJNSI.js → KCEVE53E.js} +1 -1
- package/dist/cdn/{5Z43RSKO.js → KEZAVYJU.js} +1 -1
- package/dist/cdn/{3OLSNMWN.js → KHHT54BU.js} +1 -1
- package/dist/cdn/{JSJYFWT6.js → KIUBUHVM.js} +1 -1
- package/dist/cdn/{E4GB5Z4R.js → KOHVDHPZ.js} +1 -1
- package/dist/cdn/{LRRFLTS7.js → L33BENH7.js} +1 -1
- package/dist/cdn/{SGK4AMN6.js → L342GSW5.js} +1 -1
- package/dist/cdn/{L6QVMYXE.js → LCERYSRG.js} +1 -1
- package/dist/cdn/{QKKYYRVF.js → LCPWL74J.js} +1 -1
- package/dist/cdn/{N2XIWSCG.js → LDK4C3VJ.js} +1 -1
- package/dist/cdn/{SNE4DYFB.js → LNLCO244.js} +1 -1
- package/dist/cdn/{N2KSPEVT.js → LPBP7CBN.js} +1 -1
- package/dist/cdn/{KP3AJBAI.js → LPJHRY3Y.js} +1 -1
- package/dist/cdn/{FUAPM3ST.js → LVOTTNTF.js} +1 -1
- package/dist/cdn/{CQIP3CFN.js → M6HNHWAM.js} +1 -6
- package/dist/cdn/{BWTT7T3L.js → MBBG3S5B.js} +1 -1
- package/dist/cdn/{ULZKT76M.js → MKHDEHCO.js} +1 -1
- package/dist/cdn/{K5MMGZY2.js → MPJRP2QO.js} +1 -1
- package/dist/cdn/{AGMFVUEV.js → MVGX2AGG.js} +1 -1
- package/dist/cdn/{URLISIUW.js → MVYIHKFK.js} +1 -1
- package/dist/cdn/{D5Y4JMF7.js → MZY3G7B5.js} +1 -1
- package/dist/cdn/{JZUDCYGF.js → N3F6RUT6.js} +1 -1
- package/dist/cdn/{LCWGF752.js → NBQ5MMHE.js} +1 -1
- package/dist/cdn/{SNBTGG5B.js → NH5526ON.js} +1 -1
- package/dist/cdn/{OR5M4R6K.js → NP7POZTI.js} +1 -1
- package/dist/cdn/{ZDTDI643.js → NPOHA56R.js} +1 -1
- package/dist/cdn/NSJAGP7T.js +18 -0
- package/dist/cdn/NSKVOAA7.js +2 -0
- package/dist/cdn/{6GSCRFFW.js → NUD23X7L.js} +1 -1
- package/dist/cdn/NV3RC3FX.js +2 -0
- package/dist/cdn/{Q2WAWIFY.js → O2L7DY23.js} +1 -1
- package/dist/cdn/{WUJQ6R2U.js → O3O4EPB6.js} +1 -1
- package/dist/cdn/{N7CI3FRD.js → O4E54ZIL.js} +1 -1
- package/dist/cdn/{SQVN3YNK.js → OBKT6Y6H.js} +1 -1
- package/dist/cdn/{JM44ZPIE.js → OIRNHTN3.js} +1 -1
- package/dist/cdn/{MYPJ63EE.js → OPWB5U5Y.js} +1 -1
- package/dist/cdn/OV4IBBDL.js +2 -0
- package/dist/cdn/{C5AR5K23.js → P2YLMWCT.js} +1 -1
- package/dist/cdn/{ECFYA6DN.js → PAMG6BC2.js} +1 -1
- package/dist/cdn/{3S5XSBME.js → PHIGRQ7V.js} +1 -1
- package/dist/cdn/PP2SFAFD.js +2 -0
- package/dist/cdn/PRXFYNIG.js +19 -0
- package/dist/cdn/{HT55AVL4.js → QAMVNRII.js} +1 -1
- package/dist/cdn/{QX742MCD.js → QO2RC46D.js} +1 -1
- package/dist/cdn/{J72FZDMP.js → QPNIPE5H.js} +1 -1
- package/dist/cdn/{23CGFV6D.js → QQN472YW.js} +1 -1
- package/dist/cdn/QSBVJLYZ.js +2 -0
- package/dist/cdn/QYDGCI2P.js +2 -0
- package/dist/cdn/{SCZI2MJN.js → QZRJRLYA.js} +1 -1
- package/dist/cdn/R3TKXDOE.js +6 -0
- package/dist/cdn/{HO5JGUUI.js → R67EKKSL.js} +1 -1
- package/dist/cdn/{EWUZF57U.js → RIM6ODUZ.js} +1 -1
- package/dist/cdn/{TMSMQA7C.js → RJFWIPOY.js} +1 -1
- package/dist/cdn/{FDQE4EO7.js → RKBDZ7GR.js} +1 -1
- package/dist/cdn/{TW7HOOK6.js → ROKVOX7R.js} +1 -1
- package/dist/cdn/{XZ65OHYC.js → RUZVGWHQ.js} +1 -1
- package/dist/cdn/{ACINVVFD.js → RWGEJGAH.js} +1 -1
- package/dist/cdn/{SHAQ3O3Z.js → RX7HKQ7Y.js} +1 -1
- package/dist/cdn/{C5QZMZX7.js → S7MMEM3H.js} +1 -1
- package/dist/cdn/{QUWHB36D.js → SB3EADQF.js} +1 -1
- package/dist/cdn/{BXNDQ2JH.js → SBTQKPQR.js} +1 -1
- package/dist/cdn/{CGFMGQ3A.js → SFM524YL.js} +1 -1
- package/dist/cdn/{HWOOHVH5.js → SGBMDDAS.js} +1 -1
- package/dist/cdn/{XV7A4KNT.js → SUK3BLEW.js} +1 -1
- package/dist/cdn/{JTIMMQ6K.js → SWAMKTGK.js} +1 -1
- package/dist/cdn/SWWDYNJE.js +2 -0
- package/dist/cdn/SXVCHOTK.js +79 -0
- package/dist/cdn/{LR57LX6P.js → TILX2YPV.js} +1 -1
- package/dist/cdn/{JFJRHOAG.js → TM3CBSWO.js} +1 -1
- package/dist/cdn/{CGZDUJRA.js → TMKYG3QB.js} +1 -1
- package/dist/cdn/{NLOASWJ3.js → UDBUSMCV.js} +1 -1
- package/dist/cdn/{V52O7WYV.js → UDGR2GC5.js} +1 -1
- package/dist/cdn/{XY65IFHL.js → UHVJUD6J.js} +1 -1
- package/dist/cdn/{7D5KMJGC.js → UJLDLGTN.js} +1 -1
- package/dist/cdn/{MCZXYUMV.js → ULTK7DMM.js} +1 -1
- package/dist/cdn/{GIANH6D4.js → UYYYSJL4.js} +1 -1
- package/dist/cdn/V3YTRV33.js +2 -0
- package/dist/cdn/{WOBPKAC2.js → VHOYM5MD.js} +1 -1
- package/dist/cdn/{KXGN75L6.js → VPDMT4CY.js} +1 -1
- package/dist/cdn/{AUNFZODL.js → VWPOKKOE.js} +1 -1
- package/dist/cdn/{RU3J7KVD.js → W6E3DYEQ.js} +1 -1
- package/dist/cdn/{DPSP2HYG.js → WAW43L2Y.js} +1 -1
- package/dist/cdn/WDHXTOWG.js +102 -0
- package/dist/cdn/{AE4OV2XZ.js → WEAC3FS7.js} +2 -2
- package/dist/cdn/{G3CCK7KY.js → WHS5LXKB.js} +1 -1
- package/dist/cdn/{XMOI3PP6.js → WLXO44M4.js} +1 -1
- package/dist/cdn/WQGGCG6M.js +2 -0
- package/dist/cdn/{C2CJFQ6Q.js → WSPAWPSL.js} +1 -1
- package/dist/cdn/{MGAKD4WY.js → WUM5AKBT.js} +1 -1
- package/dist/cdn/WVZM6LEZ.js +2 -0
- package/dist/cdn/{2HIYREV6.js → X25OZSS4.js} +1 -1
- package/dist/cdn/{R4CW26PN.js → X5EABWHE.js} +1 -1
- package/dist/cdn/{PX2KKGLQ.js → XN2JVOOR.js} +1 -1
- package/dist/cdn/{GWSB6X4X.js → XPIAEAK5.js} +1 -1
- package/dist/cdn/{CQRK2NYK.js → XVXOCPOT.js} +1 -1
- package/dist/cdn/{X26QOEYN.js → XXQKFENH.js} +1 -1
- package/dist/cdn/{RLHHGWT4.js → XXT542UR.js} +1 -1
- package/dist/cdn/{RH47YGDG.js → Y2ORH4QJ.js} +1 -1
- package/dist/cdn/{CKNELMMH.js → YHACLWMU.js} +1 -1
- package/dist/cdn/{TFINIJHF.js → YKQDHR27.js} +1 -1
- package/dist/cdn/{U727H4NV.js → YN7SGJOG.js} +1 -1
- package/dist/cdn/{FWWWKZLH.js → YOAGUXW6.js} +1 -1
- package/dist/cdn/{IPIK53AM.js → ZBET72YB.js} +1 -1
- package/dist/cdn/{DVXR45DO.js → ZDLTST3A.js} +1 -1
- package/dist/cdn/{U3ZZOP55.js → ZKELOWSS.js} +1 -1
- package/dist/cdn/ZONXYZVU.js +2 -0
- package/dist/cdn/{BXOH6SN4.js → ZR4T2HGR.js} +1 -1
- package/dist/cdn/{2LV7NQMM.js → ZYCAAXQF.js} +1 -1
- package/dist/cdn/{TJDAE43J.js → ZYRNI524.js} +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/description.js +1 -6
- package/dist/chunks/designSolution.js +105 -0
- package/dist/chunks/findExistingSolution.js +22 -0
- package/dist/chunks/get-portal-url.js +345 -0
- package/dist/chunks/initialAssessment.js +82 -0
- package/dist/chunks/solution-deploy-dialog.js +7 -17
- package/dist/chunks/updateDesign.js +5 -0
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +16 -38
- package/dist/components/arcgis-solutions-assistant/customElement.js +10205 -10519
- package/dist/components/consent-manager/customElement.js +638 -609
- package/dist/components/solution-builder-assistant/customElement.d.ts +12 -2
- package/dist/components/solution-builder-assistant/customElement.js +87 -87
- package/dist/components/solution-builder-assistant/index.js +0 -4
- package/dist/components/solution-deploy-dialog/index.js +0 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +7 -0
- package/dist/components/solutions-deploy-app/customElement.js +346 -27
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +25 -24
- package/dist/cdn/46C7TV4N.js +0 -10
- package/dist/cdn/4TL66G66.js +0 -9
- package/dist/cdn/67YHFNNT.js +0 -2
- package/dist/cdn/7FKMQ3QO.js +0 -2
- package/dist/cdn/AODE5TBO.js +0 -2
- package/dist/cdn/B4Y2UZHO.js +0 -2
- package/dist/cdn/BDKWDKBM.js +0 -7
- package/dist/cdn/CIG6UPFZ.js +0 -35
- package/dist/cdn/D4VZQUOX.js +0 -2
- package/dist/cdn/EJQKVRSG.js +0 -2
- package/dist/cdn/HE2XAIDT.js +0 -4
- package/dist/cdn/HQE4ABPK.js +0 -53
- package/dist/cdn/IRRMUFW7.js +0 -2
- package/dist/cdn/IVFBBPSY.js +0 -2
- package/dist/cdn/JAITP34E.js +0 -2
- package/dist/cdn/JSXNTE4I.js +0 -2
- package/dist/cdn/KNGBLBV7.js +0 -2
- package/dist/cdn/KQBIVJ7H.js +0 -36
- package/dist/cdn/LYDP7VMM.js +0 -2
- package/dist/cdn/MRGCC5C4.js +0 -4
- package/dist/cdn/NTOQES4U.js +0 -41
- package/dist/cdn/NUVTCMAW.js +0 -9
- package/dist/cdn/NYWSGPCD.js +0 -18
- package/dist/cdn/O3G7OWBQ.js +0 -164
- package/dist/cdn/OFM2G4BH.js +0 -2
- package/dist/cdn/QHHYNSCP.js +0 -2
- package/dist/cdn/RF2W2PD4.js +0 -7
- package/dist/cdn/RYETW3AF.js +0 -6
- package/dist/cdn/SY5KYHF4.js +0 -2
- package/dist/cdn/TV7TG34E.js +0 -2
- package/dist/cdn/WFHPQFNH.js +0 -2
- package/dist/cdn/WROPXUSZ.js +0 -2
- package/dist/cdn/X7ZFLHUP.js +0 -2
- package/dist/cdn/XFG55QXT.js +0 -2
- package/dist/cdn/YSLCWEDP.js +0 -2
- package/dist/chunks/create_design_prompt.js +0 -5
- package/dist/chunks/create_user_query.js +0 -12
- package/dist/chunks/extract-template.js +0 -44
- package/dist/chunks/extract-use-case.js +0 -38
- package/dist/chunks/get.js +0 -387
- package/dist/chunks/matching_solution_prompt.js +0 -12
- package/dist/chunks/prompts.js +0 -13
- package/dist/chunks/review_use_case_prompt.js +0 -10
- package/dist/chunks/system_prompt.js +0 -167
- package/dist/chunks/valid_tempates.js +0 -39
- package/dist/chunks/workflow_1_step_4.js +0 -56
|
@@ -1,22 +1,51 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { css as
|
|
2
|
+
import { c as si } from "../../chunks/runtime.js";
|
|
3
|
+
import { g as $e, r as cn, _ as ln, a as fn } from "../../chunks/get-portal-url.js";
|
|
4
|
+
import { u as oi } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as ui, createEvent as ci } from "@arcgis/lumina";
|
|
6
|
+
import { css as li } from "lit";
|
|
7
|
+
function fi(t) {
|
|
8
|
+
return t.owner ? Promise.resolve(t.owner) : t.item && t.item.owner ? Promise.resolve(t.item.owner) : t.authentication && t.authentication.getUsername ? t.authentication.getUsername() : Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."));
|
|
9
|
+
}
|
|
10
|
+
function di(t) {
|
|
11
|
+
return Array.isArray(t) && Array.isArray(t[0]) && Array.isArray(t[1]);
|
|
12
|
+
}
|
|
13
|
+
function pi(t) {
|
|
14
|
+
return t.join(",");
|
|
15
|
+
}
|
|
16
|
+
function dn(t, e, r) {
|
|
17
|
+
if (!t)
|
|
18
|
+
return t;
|
|
19
|
+
let n = null;
|
|
20
|
+
return typeof t.thumbnail == "string" && (n = `${e}/content/items/${t.id}/info/${t.thumbnail}`, n && t.access !== "public" && r && (n += `?${r}`)), Object.assign(Object.assign({}, t), n ? { thumbnailUrl: n } : {});
|
|
21
|
+
}
|
|
7
22
|
function gi(t) {
|
|
8
|
-
return
|
|
9
|
-
const r = t.folderId ? `${
|
|
10
|
-
t.params = Object.assign(Object.assign({}, t.params), t.item), t.params.extent &&
|
|
11
|
-
const n =
|
|
12
|
-
return typeof i.thumbnailUrl == "string" && typeof s == "string" && i.thumbnailUrl.split("?")[0] === s.split("?")[0] && delete t.params.thumbnailUrl,
|
|
23
|
+
return fi(t).then((e) => {
|
|
24
|
+
const r = t.folderId ? `${$e(t)}/content/users/${e}/${t.folderId}/items/${t.item.id}/update` : `${$e(t)}/content/users/${e}/items/${t.item.id}/update`;
|
|
25
|
+
t.params = Object.assign(Object.assign({}, t.params), t.item), t.params.extent && di(t.params.extent) && (t.params.extent = pi(t.params.extent));
|
|
26
|
+
const n = $e(t), i = dn(Object.assign(Object.assign({}, t.item), { access: t.item.access }), n), s = t.params.thumbnailUrl;
|
|
27
|
+
return typeof i.thumbnailUrl == "string" && typeof s == "string" && i.thumbnailUrl.split("?")[0] === s.split("?")[0] && delete t.params.thumbnailUrl, cn(r, t);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function pn(t, e) {
|
|
31
|
+
const r = hi(t, e), n = Object.assign({ httpMethod: "GET" }, e);
|
|
32
|
+
return cn(r, n).then(async (i) => {
|
|
33
|
+
const s = e?.portal || $e(e);
|
|
34
|
+
let a;
|
|
35
|
+
if (e?.authentication && typeof e.authentication != "string" && i.access !== "public")
|
|
36
|
+
try {
|
|
37
|
+
a = await e.authentication.getToken(r);
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
return dn(i, s, a);
|
|
13
41
|
});
|
|
14
42
|
}
|
|
15
|
-
|
|
43
|
+
const hi = (t, e) => `${typeof e == "string" ? e : $e(e)}/content/items/${t}`;
|
|
44
|
+
function mi() {
|
|
16
45
|
var t;
|
|
17
46
|
return !!(!((t = window?.navigator) === null || t === void 0) && t.globalPrivacyControl);
|
|
18
47
|
}
|
|
19
|
-
function
|
|
48
|
+
function vi(t = {}) {
|
|
20
49
|
const { disabled: e, portal: r, requireConsent: n, userPrivacySettings: i } = t;
|
|
21
50
|
if (n)
|
|
22
51
|
if (i?.accepted) {
|
|
@@ -27,19 +56,19 @@ function mi(t = {}) {
|
|
|
27
56
|
return (
|
|
28
57
|
// if accepted were false, it would mean that the user didn't actually deny these, just that they have not made a selection
|
|
29
58
|
// so we only pay attention to functional, performance, and targeting if accepted is true
|
|
30
|
-
i?.accepted === !0 && i?.functional === !1 && i?.performance === !1 && i?.targeting === !1 || e || r?.eueiEnabled === !1 ||
|
|
59
|
+
i?.accepted === !0 && i?.functional === !1 && i?.performance === !1 && i?.targeting === !1 || e || r?.eueiEnabled === !1 || mi() ? !0 : !(!r || yi(r) || bi(r) || wi(r))
|
|
31
60
|
);
|
|
32
61
|
}
|
|
33
|
-
function
|
|
62
|
+
function yi(t) {
|
|
34
63
|
return t.eueiEnabled && t.user && t.user.orgId === t.id;
|
|
35
64
|
}
|
|
36
|
-
function
|
|
65
|
+
function bi(t) {
|
|
37
66
|
return t.user && !t.user.orgId && t.ipCntryCode === "US";
|
|
38
67
|
}
|
|
39
|
-
function
|
|
68
|
+
function wi(t) {
|
|
40
69
|
return !t.user && t.ipCntryCode === "US";
|
|
41
70
|
}
|
|
42
|
-
const
|
|
71
|
+
const Ce = {
|
|
43
72
|
storage: {},
|
|
44
73
|
memory: !0,
|
|
45
74
|
get(t) {
|
|
@@ -73,25 +102,25 @@ const $e = {
|
|
|
73
102
|
this.memory || (console.error("setting local storage failed, falling back to in-memory storage"), this.memory = !0), delete this.storage[t];
|
|
74
103
|
}
|
|
75
104
|
}
|
|
76
|
-
},
|
|
77
|
-
function
|
|
105
|
+
}, gn = "esri-telemetry";
|
|
106
|
+
function Si(t) {
|
|
78
107
|
return new Promise((r, n) => {
|
|
79
|
-
t.onload = r, t.onerror = n, (!
|
|
108
|
+
t.onload = r, t.onerror = n, (!Ii(t) || t.body) && r();
|
|
80
109
|
});
|
|
81
110
|
}
|
|
82
|
-
function
|
|
111
|
+
function Ei(t) {
|
|
83
112
|
const { id: e, dataAttribute: r } = t;
|
|
84
|
-
return !!document.getElementById(e) || !!document.querySelector(`[data-${
|
|
113
|
+
return !!document.getElementById(e) || !!document.querySelector(`[data-${gn}="${r}"]`);
|
|
85
114
|
}
|
|
86
|
-
function
|
|
115
|
+
function Ii(t) {
|
|
87
116
|
const { body: e, src: r, id: n, dataAttribute: i, section: s = "body", type: a = "text/javascript", async: o = !1, defer: u = !1, onload: l, onerror: f } = t;
|
|
88
117
|
if (typeof window > "u")
|
|
89
|
-
throw new
|
|
90
|
-
if (
|
|
118
|
+
throw new hn("Window is undefined: Cannot add script element.");
|
|
119
|
+
if (Ei(t)) {
|
|
91
120
|
console.log(`script (${n || i}) is already present, skipping`);
|
|
92
121
|
return;
|
|
93
122
|
}
|
|
94
|
-
const p =
|
|
123
|
+
const p = Ai({
|
|
95
124
|
id: n,
|
|
96
125
|
dataAttribute: i,
|
|
97
126
|
type: a,
|
|
@@ -104,13 +133,13 @@ function Ei(t) {
|
|
|
104
133
|
});
|
|
105
134
|
return s === "body" ? document.body.appendChild(p) : document.head.appendChild(p);
|
|
106
135
|
}
|
|
107
|
-
class
|
|
136
|
+
class hn extends Error {
|
|
108
137
|
}
|
|
109
|
-
function
|
|
138
|
+
function Ai({ id: t, dataAttribute: e, type: r, async: n, defer: i, body: s, src: a, onload: o, onerror: u }) {
|
|
110
139
|
const l = document.createElement("script");
|
|
111
|
-
return t && (l.id = t), e && l.setAttribute(`data-${
|
|
140
|
+
return t && (l.id = t), e && l.setAttribute(`data-${gn}`, e), a && (l.src = a), s && (l.innerText = s), l.type = r, l.async = n, l.defer = i, o && (l.onload = o), u && (l.onerror = u), l;
|
|
112
141
|
}
|
|
113
|
-
function
|
|
142
|
+
function Pi(t) {
|
|
114
143
|
return t.map((e) => {
|
|
115
144
|
const r = [];
|
|
116
145
|
return ["src", "id", "dataAttribute", "type"].forEach((n) => {
|
|
@@ -144,7 +173,7 @@ const Oi = [
|
|
|
144
173
|
"esriitalia.it",
|
|
145
174
|
"esri.pl"
|
|
146
175
|
];
|
|
147
|
-
class
|
|
176
|
+
class xi {
|
|
148
177
|
constructor(e) {
|
|
149
178
|
var r, n, i;
|
|
150
179
|
this.trackers = [], this.options = e, this.debug = e.debug, this.suppressDisabledWarnings = e.suppressDisabledWarnings, this.logger = e.logger || console, e.userPrivacySettings && (this._userPrivacySettings = e.userPrivacySettings), e.requireConsent && !e.userPrivacySettings && (this._userPrivacySettings = {
|
|
@@ -152,9 +181,9 @@ class Pi {
|
|
|
152
181
|
performance: !1,
|
|
153
182
|
targeting: !1,
|
|
154
183
|
functional: !1,
|
|
155
|
-
id:
|
|
184
|
+
id: ji(),
|
|
156
185
|
timestamp: Date.now()
|
|
157
|
-
}, e.userPrivacySettings = this._userPrivacySettings), this.disabled =
|
|
186
|
+
}, e.userPrivacySettings = this._userPrivacySettings), this.disabled = vi(e), this.disabled && !this.suppressDisabledWarnings && this.logger.info("Telemetry Disabled");
|
|
158
187
|
const s = ((r = e.portal) === null || r === void 0 ? void 0 : r.user) || e.user;
|
|
159
188
|
s && this.setUser(s, (i = (n = e.portal) === null || n === void 0 ? void 0 : n.subscriptionInfo) === null || i === void 0 ? void 0 : i.type), this.disabled || this.initializeTrackers();
|
|
160
189
|
}
|
|
@@ -257,7 +286,7 @@ class Pi {
|
|
|
257
286
|
this.logWorkflow(n);
|
|
258
287
|
}
|
|
259
288
|
getWorkflow(e) {
|
|
260
|
-
const r =
|
|
289
|
+
const r = Ce.get(`TELEMETRY-WORKFLOW:${e}`);
|
|
261
290
|
if (r) {
|
|
262
291
|
const n = Date.now() - r.start, i = 1800 * 1e3;
|
|
263
292
|
if (n < i)
|
|
@@ -266,10 +295,10 @@ class Pi {
|
|
|
266
295
|
}
|
|
267
296
|
}
|
|
268
297
|
saveWorkflow(e) {
|
|
269
|
-
|
|
298
|
+
Ce.set(`TELEMETRY-WORKFLOW:${e.name}`, e);
|
|
270
299
|
}
|
|
271
300
|
deleteWorkflow(e) {
|
|
272
|
-
|
|
301
|
+
Ce.delete(`TELEMETRY-WORKFLOW:${e.name}`);
|
|
273
302
|
}
|
|
274
303
|
logWorkflow(e = {}) {
|
|
275
304
|
e = this.preProcess(e);
|
|
@@ -294,7 +323,7 @@ class Pi {
|
|
|
294
323
|
userSince: this.user.created,
|
|
295
324
|
internalUser: this.user.internalUser || !1,
|
|
296
325
|
accountType: this.user.accountType
|
|
297
|
-
}), Object.entries(Object.assign(Object.assign({}, e), n)).reduce(
|
|
326
|
+
}), Object.entries(Object.assign(Object.assign({}, e), n)).reduce(Ti(r.omitComplexData, this.logger), {});
|
|
298
327
|
}
|
|
299
328
|
/**
|
|
300
329
|
* Disable all configured trackers. This does not deterministically unload
|
|
@@ -332,21 +361,21 @@ class Pi {
|
|
|
332
361
|
n && !n.hasError && (n.disabled = !1, (r = n.enable) === null || r === void 0 || r.call(n));
|
|
333
362
|
}
|
|
334
363
|
}
|
|
335
|
-
function
|
|
364
|
+
function Ti(t, e) {
|
|
336
365
|
return function(r, [n, i]) {
|
|
337
|
-
return
|
|
366
|
+
return ki(i) ? r[n] = i : t || (e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`), r[n] = i), r;
|
|
338
367
|
};
|
|
339
368
|
}
|
|
340
|
-
function
|
|
369
|
+
function ki(t) {
|
|
341
370
|
return ["string", "number", "boolean", "undefined"].includes(typeof t) || t && typeof t.valueOf() == "string";
|
|
342
371
|
}
|
|
343
|
-
function
|
|
372
|
+
function ji() {
|
|
344
373
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
345
374
|
const e = Math.random() * 16 | 0;
|
|
346
375
|
return (t === "x" ? e : e & 3 | 8).toString(16);
|
|
347
376
|
});
|
|
348
377
|
}
|
|
349
|
-
class
|
|
378
|
+
class Ni {
|
|
350
379
|
constructor(e) {
|
|
351
380
|
var r;
|
|
352
381
|
if (this.name = "googleAnalytics", this.dimensions = {}, this.metrics = {}, this.isInitialized = !1, typeof window < "u" && !(!((r = e?.measurementIds) === null || r === void 0) && r.length))
|
|
@@ -363,13 +392,13 @@ class ji {
|
|
|
363
392
|
];
|
|
364
393
|
}
|
|
365
394
|
getScriptTags() {
|
|
366
|
-
return
|
|
395
|
+
return Pi(this._getScripts());
|
|
367
396
|
}
|
|
368
397
|
async init() {
|
|
369
398
|
if (!this.isInitialized) {
|
|
370
399
|
if (typeof window > "u")
|
|
371
|
-
throw new
|
|
372
|
-
await Promise.all(this._getScripts().map((e) =>
|
|
400
|
+
throw new hn("Window is undefined: Cannot add script element.");
|
|
401
|
+
await Promise.all(this._getScripts().map((e) => Si(e))), this.injectConfig(), this.isInitialized = !0;
|
|
373
402
|
}
|
|
374
403
|
}
|
|
375
404
|
// we log page views manually, even though ga4 can do so automatically for pages now
|
|
@@ -378,7 +407,7 @@ class ji {
|
|
|
378
407
|
return window.gtag("event", "page_view", i), !0;
|
|
379
408
|
}
|
|
380
409
|
logEvent(e) {
|
|
381
|
-
let { action: r } = e, n =
|
|
410
|
+
let { action: r } = e, n = ln(e, ["action"]);
|
|
382
411
|
const i = r || "other", s = this.buildCustomParams(n);
|
|
383
412
|
return window.gtag("event", i, s), !0;
|
|
384
413
|
}
|
|
@@ -441,9 +470,9 @@ class ji {
|
|
|
441
470
|
}
|
|
442
471
|
}
|
|
443
472
|
const ar = "TELEMETRY_COGNITO_CREDENTIALS";
|
|
444
|
-
function
|
|
473
|
+
function Mi(t, e = {}) {
|
|
445
474
|
const n = `https://cognito-identity${e.fips === !0 ? "-fips" : ""}.us-east-1.amazonaws.com/`;
|
|
446
|
-
let i =
|
|
475
|
+
let i = Ce.get(ar);
|
|
447
476
|
if (i && Date.now() / 1e3 < i.Expiration)
|
|
448
477
|
return Promise.resolve(i);
|
|
449
478
|
const s = {
|
|
@@ -472,39 +501,39 @@ function Ni(t, e = {}) {
|
|
|
472
501
|
if (!a.ok)
|
|
473
502
|
throw new Error(a.statusText);
|
|
474
503
|
return a.json();
|
|
475
|
-
}).then(({ Credentials: a }) => (
|
|
504
|
+
}).then(({ Credentials: a }) => (Ce.set(ar, a), a));
|
|
476
505
|
}
|
|
477
|
-
function
|
|
506
|
+
function mn({ telemetryData: t, dimensionLookup: e = {}, excludeKeys: r = [] }) {
|
|
478
507
|
return Object.keys(t).filter((n) => !r.includes(n)).map((n) => e[n] ? {
|
|
479
|
-
key:
|
|
508
|
+
key: Ci(e, n),
|
|
480
509
|
value: t[n]
|
|
481
510
|
} : {
|
|
482
511
|
key: n,
|
|
483
|
-
value:
|
|
512
|
+
value: $i(t, n)
|
|
484
513
|
}).reduce((n, { key: i, value: s }) => (n[i] = s, n), {});
|
|
485
514
|
}
|
|
486
|
-
function
|
|
515
|
+
function $i(t, e) {
|
|
487
516
|
return e === "json" ? t[e] ? JSON.stringify(t[e]) : "null" : t[e] === void 0 ? "null" : t[e].toString();
|
|
488
517
|
}
|
|
489
|
-
function
|
|
518
|
+
function Ci(t, e) {
|
|
490
519
|
return `dimension${t[e]}`;
|
|
491
520
|
}
|
|
492
|
-
const
|
|
493
|
-
function
|
|
494
|
-
return Object.keys(t).filter((r) => e[r] ||
|
|
495
|
-
key:
|
|
521
|
+
const _i = ["size", "duration", "position", "number", "count"];
|
|
522
|
+
function vn(t, e = {}) {
|
|
523
|
+
return Object.keys(t).filter((r) => e[r] || _i.includes(r)).map((r) => e[r] ? {
|
|
524
|
+
key: Di(e, r),
|
|
496
525
|
value: t[r]
|
|
497
526
|
} : {
|
|
498
527
|
key: r,
|
|
499
528
|
value: t[r]
|
|
500
529
|
}).reduce((r, { key: n, value: i }) => (r[n] = i, r), {});
|
|
501
530
|
}
|
|
502
|
-
function
|
|
531
|
+
function Di(t, e) {
|
|
503
532
|
return `metric${t[e]}`;
|
|
504
533
|
}
|
|
505
|
-
function
|
|
534
|
+
function Ui({ event: t = {}, dimensionLookup: e = {}, metricLookup: r = {} }) {
|
|
506
535
|
var n, i;
|
|
507
|
-
const { pathname: s, eventType: a = "other" } = t, o =
|
|
536
|
+
const { pathname: s, eventType: a = "other" } = t, o = vn(t, r), u = mn({
|
|
508
537
|
telemetryData: Object.assign({ eventType: a }, t),
|
|
509
538
|
dimensionLookup: e,
|
|
510
539
|
excludeKeys: [
|
|
@@ -517,7 +546,7 @@ function Di({ event: t = {}, dimensionLookup: e = {}, metricLookup: r = {} }) {
|
|
|
517
546
|
return typeof document < "u" && document.referrer && (l.referrer = document.referrer), typeof window < "u" && !l.hostname && (l.hostname = (n = window.location) === null || n === void 0 ? void 0 : n.hostname), l.path = typeof window < "u" && window.location.pathname ? (i = window.location) === null || i === void 0 ? void 0 : i.pathname : s, l;
|
|
518
547
|
}
|
|
519
548
|
function Ri({ page: t, previousPage: e = {}, options: r = {}, dimensionLookup: n = {}, metricLookup: i = {} }) {
|
|
520
|
-
const s =
|
|
549
|
+
const s = vn(r, i), a = mn({
|
|
521
550
|
telemetryData: r,
|
|
522
551
|
dimensionLookup: n,
|
|
523
552
|
excludeKeys: [
|
|
@@ -541,84 +570,84 @@ function sr(t, e, r, n, i) {
|
|
|
541
570
|
for (e = e.split ? e.split(".") : e, n = 0; n < e.length; n++) t = t ? t[e[n]] : i;
|
|
542
571
|
return t === i ? r : t;
|
|
543
572
|
}
|
|
544
|
-
var
|
|
545
|
-
},
|
|
546
|
-
|
|
573
|
+
var zi = "function", Vi = "string", te = "undefined", Li = "boolean", Be = "object", Wi = "array", Hi = "number", Ki = "symbol", Gi = "null", Fi = function() {
|
|
574
|
+
}, yn = "any", bn = "*", ye = "__", Bi = "form", qi = "input", Yi = "button", Xi = "select", qe = typeof process !== te ? process : {};
|
|
575
|
+
qe.env && qe.env.NODE_ENV;
|
|
547
576
|
var Q = typeof document !== te;
|
|
548
|
-
|
|
577
|
+
qe.versions != null && qe.versions.node != null;
|
|
549
578
|
typeof Deno !== te && Deno.core;
|
|
550
579
|
Q && window.name === "nodejs" || typeof navigator !== te && typeof navigator.userAgent !== te && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
|
|
551
|
-
function
|
|
580
|
+
function wn(t, e) {
|
|
552
581
|
return e.charAt(0)[t]() + e.slice(1);
|
|
553
582
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
556
|
-
return
|
|
583
|
+
var Ji = wn.bind(null, "toUpperCase"), Qi = wn.bind(null, "toLowerCase");
|
|
584
|
+
function Zi(t) {
|
|
585
|
+
return Sn(t) ? Ji(Gi) : typeof t === Be ? na(t) : Object.prototype.toString.call(t).slice(8, -1);
|
|
557
586
|
}
|
|
558
|
-
function
|
|
587
|
+
function Ye(t, e) {
|
|
559
588
|
e === void 0 && (e = !0);
|
|
560
|
-
var r =
|
|
561
|
-
return e ?
|
|
589
|
+
var r = Zi(t);
|
|
590
|
+
return e ? Qi(r) : r;
|
|
562
591
|
}
|
|
563
592
|
function Re(t, e) {
|
|
564
593
|
return typeof e === t;
|
|
565
594
|
}
|
|
566
|
-
var Z = Re.bind(null,
|
|
567
|
-
Re.bind(null,
|
|
568
|
-
function
|
|
595
|
+
var Z = Re.bind(null, zi), ce = Re.bind(null, Vi), we = Re.bind(null, te), ea = Re.bind(null, Li);
|
|
596
|
+
Re.bind(null, Ki);
|
|
597
|
+
function Sn(t) {
|
|
569
598
|
return t === null;
|
|
570
599
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
600
|
+
function ta(t) {
|
|
601
|
+
return Ye(t) === Hi && !isNaN(t);
|
|
573
602
|
}
|
|
574
|
-
function
|
|
575
|
-
return
|
|
603
|
+
function En(t) {
|
|
604
|
+
return Ye(t) === Wi;
|
|
576
605
|
}
|
|
577
606
|
function J(t) {
|
|
578
|
-
if (!
|
|
607
|
+
if (!ra(t)) return !1;
|
|
579
608
|
for (var e = t; Object.getPrototypeOf(e) !== null; ) e = Object.getPrototypeOf(e);
|
|
580
609
|
return Object.getPrototypeOf(t) === e;
|
|
581
610
|
}
|
|
582
|
-
function ta(t) {
|
|
583
|
-
return t && (typeof t === Ge || t !== null);
|
|
584
|
-
}
|
|
585
611
|
function ra(t) {
|
|
586
|
-
return
|
|
612
|
+
return t && (typeof t === Be || t !== null);
|
|
587
613
|
}
|
|
588
614
|
function na(t) {
|
|
589
|
-
return
|
|
615
|
+
return Z(t.constructor) ? t.constructor.name : null;
|
|
616
|
+
}
|
|
617
|
+
function ia(t) {
|
|
618
|
+
return t instanceof Error || ce(t.message) && t.constructor && ta(t.constructor.stackTraceLimit);
|
|
590
619
|
}
|
|
591
|
-
function
|
|
592
|
-
if (typeof e != "object" ||
|
|
620
|
+
function In(t, e) {
|
|
621
|
+
if (typeof e != "object" || Sn(e)) return !1;
|
|
593
622
|
if (e instanceof t) return !0;
|
|
594
|
-
var r =
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
623
|
+
var r = Ye(new t(""));
|
|
624
|
+
if (ia(e)) for (; e; ) {
|
|
625
|
+
if (Ye(e) === r) return !0;
|
|
597
626
|
e = Object.getPrototypeOf(e);
|
|
598
627
|
}
|
|
599
628
|
return !1;
|
|
600
629
|
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
function
|
|
630
|
+
In.bind(null, TypeError);
|
|
631
|
+
In.bind(null, SyntaxError);
|
|
632
|
+
function Qe(t, e) {
|
|
604
633
|
var r = t instanceof Element || t instanceof HTMLDocument;
|
|
605
|
-
return r && e ?
|
|
634
|
+
return r && e ? aa(t, e) : r;
|
|
606
635
|
}
|
|
607
|
-
function
|
|
636
|
+
function aa(t, e) {
|
|
608
637
|
return e === void 0 && (e = ""), t && t.nodeName === e.toUpperCase();
|
|
609
638
|
}
|
|
610
|
-
function
|
|
639
|
+
function Ze(t) {
|
|
611
640
|
var e = [].slice.call(arguments, 1);
|
|
612
641
|
return function() {
|
|
613
642
|
return t.apply(void 0, [].slice.call(arguments).concat(e));
|
|
614
643
|
};
|
|
615
644
|
}
|
|
616
|
-
Qe
|
|
617
|
-
Qe
|
|
618
|
-
Qe
|
|
619
|
-
Qe
|
|
620
|
-
function
|
|
621
|
-
return t ?
|
|
645
|
+
Ze(Qe, Bi);
|
|
646
|
+
Ze(Qe, Yi);
|
|
647
|
+
Ze(Qe, qi);
|
|
648
|
+
Ze(Qe, Xi);
|
|
649
|
+
function sa(t) {
|
|
650
|
+
return t ? En(t) ? t : [t] : [];
|
|
622
651
|
}
|
|
623
652
|
function or(t) {
|
|
624
653
|
try {
|
|
@@ -627,19 +656,19 @@ function or(t) {
|
|
|
627
656
|
return null;
|
|
628
657
|
}
|
|
629
658
|
}
|
|
630
|
-
function
|
|
659
|
+
function oa() {
|
|
631
660
|
if (Q) {
|
|
632
661
|
var t = navigator, e = t.languages;
|
|
633
662
|
return t.userLanguage || (e && e.length ? e[0] : t.language);
|
|
634
663
|
}
|
|
635
664
|
}
|
|
636
|
-
function
|
|
665
|
+
function ua() {
|
|
637
666
|
try {
|
|
638
667
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
639
668
|
} catch {
|
|
640
669
|
}
|
|
641
670
|
}
|
|
642
|
-
function
|
|
671
|
+
function ca(t) {
|
|
643
672
|
return (function(e) {
|
|
644
673
|
for (var r, n = /* @__PURE__ */ Object.create(null), i = /([^&=]+)=?([^&]*)/g; r = i.exec(e); ) {
|
|
645
674
|
var s = or(r[1]), a = or(r[2]);
|
|
@@ -650,7 +679,7 @@ function ua(t) {
|
|
|
650
679
|
}
|
|
651
680
|
for (var u in n) {
|
|
652
681
|
var l = u.split("[");
|
|
653
|
-
l.length > 1 && (
|
|
682
|
+
l.length > 1 && (la(n, l.map(function(f) {
|
|
654
683
|
return f.replace(/[?[\]\\ ]/g, "");
|
|
655
684
|
}), n[u]), delete n[u]);
|
|
656
685
|
}
|
|
@@ -659,7 +688,7 @@ function ua(t) {
|
|
|
659
688
|
return Q && window.location.search.substring(1);
|
|
660
689
|
})());
|
|
661
690
|
}
|
|
662
|
-
function
|
|
691
|
+
function la(t, e, r) {
|
|
663
692
|
for (var n = e.length - 1, i = 0; i < n; ++i) {
|
|
664
693
|
var s = e[i];
|
|
665
694
|
if (s === "__proto__" || s === "constructor") break;
|
|
@@ -674,15 +703,15 @@ function be() {
|
|
|
674
703
|
}
|
|
675
704
|
return t;
|
|
676
705
|
}
|
|
677
|
-
var ge = "global",
|
|
706
|
+
var ge = "global", Pe = ye + ge + ye, Oe = typeof self === Be && self.self === self && self || typeof global === Be && global[ge] === global && global || void 0;
|
|
678
707
|
function fe(t) {
|
|
679
|
-
return Pe
|
|
708
|
+
return Oe[Pe][t];
|
|
680
709
|
}
|
|
681
710
|
function de(t, e) {
|
|
682
|
-
return Pe
|
|
711
|
+
return Oe[Pe][t] = e;
|
|
683
712
|
}
|
|
684
713
|
function Te(t) {
|
|
685
|
-
delete Pe
|
|
714
|
+
delete Oe[Pe][t];
|
|
686
715
|
}
|
|
687
716
|
function ke(t, e, r) {
|
|
688
717
|
var n;
|
|
@@ -695,17 +724,17 @@ function ke(t, e, r) {
|
|
|
695
724
|
}
|
|
696
725
|
return n || r;
|
|
697
726
|
}
|
|
698
|
-
Pe
|
|
699
|
-
var
|
|
727
|
+
Oe[Pe] || (Oe[Pe] = {});
|
|
728
|
+
var Ve = {};
|
|
700
729
|
function Kt(t) {
|
|
701
|
-
if (typeof
|
|
730
|
+
if (typeof Ve[t] !== te) return Ve[t];
|
|
702
731
|
try {
|
|
703
732
|
var e = window[t];
|
|
704
733
|
e.setItem(te, te), e.removeItem(te);
|
|
705
734
|
} catch {
|
|
706
|
-
return
|
|
735
|
+
return Ve[t] = !1;
|
|
707
736
|
}
|
|
708
|
-
return
|
|
737
|
+
return Ve[t] = !0;
|
|
709
738
|
}
|
|
710
739
|
function N() {
|
|
711
740
|
return N = Object.assign ? Object.assign.bind() : function(t) {
|
|
@@ -716,16 +745,16 @@ function N() {
|
|
|
716
745
|
return t;
|
|
717
746
|
}, N.apply(null, arguments);
|
|
718
747
|
}
|
|
719
|
-
var ue = "function", ie = "undefined",
|
|
748
|
+
var ue = "function", ie = "undefined", _e = "reducer", An = "@@redux/", kt = An + "INIT", fa = An + Math.random().toString(36), ur = /* @__PURE__ */ (function() {
|
|
720
749
|
return typeof Symbol === ue && Symbol.observable || "@@observable";
|
|
721
|
-
})(),
|
|
722
|
-
function
|
|
750
|
+
})(), Le = " != " + ue;
|
|
751
|
+
function Pn(t, e, r) {
|
|
723
752
|
var n;
|
|
724
753
|
if (typeof e === ue && typeof r === ie && (r = e, e = void 0), typeof r !== ie) {
|
|
725
|
-
if (typeof r !== ue) throw new Error("enhancer" +
|
|
726
|
-
return r(
|
|
754
|
+
if (typeof r !== ue) throw new Error("enhancer" + Le);
|
|
755
|
+
return r(Pn)(t, e);
|
|
727
756
|
}
|
|
728
|
-
if (typeof t !== ue) throw new Error(
|
|
757
|
+
if (typeof t !== ue) throw new Error(_e + Le);
|
|
729
758
|
var i = t, s = e, a = [], o = a, u = !1;
|
|
730
759
|
function l() {
|
|
731
760
|
o === a && (o = a.slice());
|
|
@@ -734,7 +763,7 @@ function In(t, e, r) {
|
|
|
734
763
|
return s;
|
|
735
764
|
}
|
|
736
765
|
function p(b) {
|
|
737
|
-
if (typeof b !== ue) throw new Error("Listener" +
|
|
766
|
+
if (typeof b !== ue) throw new Error("Listener" + Le);
|
|
738
767
|
var S = !0;
|
|
739
768
|
return l(), o.push(b), function() {
|
|
740
769
|
if (S) {
|
|
@@ -747,7 +776,7 @@ function In(t, e, r) {
|
|
|
747
776
|
function g(b) {
|
|
748
777
|
if (!J(b)) throw new Error("Act != obj");
|
|
749
778
|
if (typeof b.type === ie) throw new Error("ActType " + ie);
|
|
750
|
-
if (u) throw new Error("Dispatch in " +
|
|
779
|
+
if (u) throw new Error("Dispatch in " + _e);
|
|
751
780
|
try {
|
|
752
781
|
u = !0, s = i(s, b);
|
|
753
782
|
} finally {
|
|
@@ -757,7 +786,7 @@ function In(t, e, r) {
|
|
|
757
786
|
return b;
|
|
758
787
|
}
|
|
759
788
|
return g({ type: kt }), (n = { dispatch: g, subscribe: p, getState: f, replaceReducer: function(b) {
|
|
760
|
-
if (typeof b !== ue) throw new Error("next " +
|
|
789
|
+
if (typeof b !== ue) throw new Error("next " + _e + Le);
|
|
761
790
|
i = b, g({ type: kt });
|
|
762
791
|
} })[ur] = function() {
|
|
763
792
|
var b, S = p;
|
|
@@ -772,9 +801,9 @@ function In(t, e, r) {
|
|
|
772
801
|
}, b;
|
|
773
802
|
}, n;
|
|
774
803
|
}
|
|
775
|
-
function
|
|
804
|
+
function da(t, e) {
|
|
776
805
|
var r = e && e.type;
|
|
777
|
-
return "action " + (r && r.toString() || "?") +
|
|
806
|
+
return "action " + (r && r.toString() || "?") + _e + " " + t + " returns " + ie;
|
|
778
807
|
}
|
|
779
808
|
function xe() {
|
|
780
809
|
var t = [].slice.call(arguments);
|
|
@@ -786,7 +815,7 @@ function xe() {
|
|
|
786
815
|
};
|
|
787
816
|
});
|
|
788
817
|
}
|
|
789
|
-
function
|
|
818
|
+
function pa() {
|
|
790
819
|
var t = arguments;
|
|
791
820
|
return function(e) {
|
|
792
821
|
return function(r, n, i) {
|
|
@@ -799,14 +828,14 @@ function da() {
|
|
|
799
828
|
};
|
|
800
829
|
};
|
|
801
830
|
}
|
|
802
|
-
var le = ye + "anon_id", he = ye + "user_id", Ee = ye + "user_traits", jt = "analytics", oe = "userId", Se = "anonymousId",
|
|
831
|
+
var le = ye + "anon_id", he = ye + "user_id", Ee = ye + "user_traits", jt = "analytics", oe = "userId", Se = "anonymousId", Ge = ["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"], Nt = ["name", "EVENTS", "config", "loaded"], j = Ge.reduce(function(t, e) {
|
|
803
832
|
return t[e] = e, t;
|
|
804
833
|
}, { registerPluginType: function(t) {
|
|
805
834
|
return "registerPlugin:" + t;
|
|
806
835
|
}, pluginReadyType: function(t) {
|
|
807
836
|
return "ready:" + t;
|
|
808
837
|
} }), cr = /^utm_/, lr = /^an_prop_/, fr = /^an_trait_/;
|
|
809
|
-
function
|
|
838
|
+
function ga(t) {
|
|
810
839
|
var e = t.storage.setItem;
|
|
811
840
|
return function(r) {
|
|
812
841
|
return function(n) {
|
|
@@ -835,7 +864,7 @@ function pa(t) {
|
|
|
835
864
|
};
|
|
836
865
|
};
|
|
837
866
|
}
|
|
838
|
-
function
|
|
867
|
+
function ha(t) {
|
|
839
868
|
return function(e, r) {
|
|
840
869
|
if (e === void 0 && (e = {}), r === void 0 && (r = {}), r.type === j.setItemEnd) {
|
|
841
870
|
if (r.key === le) return N({}, e, { anonymousId: r.value });
|
|
@@ -859,7 +888,7 @@ function dr(t) {
|
|
|
859
888
|
var Mt = function(t) {
|
|
860
889
|
return ye + "TEMP" + ye + t;
|
|
861
890
|
};
|
|
862
|
-
function
|
|
891
|
+
function ma(t) {
|
|
863
892
|
var e = t.storage, r = e.setItem, n = e.removeItem, i = e.getItem;
|
|
864
893
|
return function(s) {
|
|
865
894
|
return function(a) {
|
|
@@ -883,19 +912,19 @@ var Me = {};
|
|
|
883
912
|
function pr(t, e) {
|
|
884
913
|
Me[t] && Z(Me[t]) && (Me[t](e), delete Me[t]);
|
|
885
914
|
}
|
|
886
|
-
function
|
|
915
|
+
function On(t, e, r) {
|
|
887
916
|
return new Promise(function(n, i) {
|
|
888
917
|
return e() ? n(t) : r < 1 ? i(N({}, t, { queue: !0 })) : new Promise(function(s) {
|
|
889
918
|
return setTimeout(s, 10);
|
|
890
919
|
}).then(function(s) {
|
|
891
|
-
return
|
|
920
|
+
return On(t, e, r - 10).then(n, i);
|
|
892
921
|
});
|
|
893
922
|
});
|
|
894
923
|
}
|
|
895
|
-
function
|
|
924
|
+
function va(t) {
|
|
896
925
|
return { abort: t };
|
|
897
926
|
}
|
|
898
|
-
function
|
|
927
|
+
function xn(t, e, r) {
|
|
899
928
|
var n = {}, i = e(), s = t.getState(), a = s.plugins, o = s.queue, u = s.user;
|
|
900
929
|
if (!s.context.offline && o && o.actions && o.actions.length) {
|
|
901
930
|
var l = o.actions.reduce(function(p, g, b) {
|
|
@@ -910,7 +939,7 @@ function On(t, e, r) {
|
|
|
910
939
|
return v.hasOwnProperty(x) && m[x] && m[x] !== v[x] && (T[x] = m[x]), T;
|
|
911
940
|
}, v);
|
|
912
941
|
})(g.payload, u), d = n[y.meta.rid];
|
|
913
|
-
if (!d && (w = I({ payload: y, config: a[b].config, instance: r, abort:
|
|
942
|
+
if (!d && (w = I({ payload: y, config: a[b].config, instance: r, abort: va })) && J(w) && w.abort) return void (n[y.meta.rid] = !0);
|
|
914
943
|
if (!d) {
|
|
915
944
|
var E = S + ":" + b;
|
|
916
945
|
t.dispatch(N({}, y, { type: E, _: { called: E, from: "queueDrain" } }));
|
|
@@ -938,17 +967,17 @@ var ut = function(t) {
|
|
|
938
967
|
var m = E.config, T = E.name, x = T + "." + d.type;
|
|
939
968
|
v && (x = v.event);
|
|
940
969
|
var A = d.type.match(Ie) ? /* @__PURE__ */ (function($, k, _, z, V) {
|
|
941
|
-
return function(C,
|
|
942
|
-
var W = z ? z.name : $,
|
|
943
|
-
if (z && (!(
|
|
944
|
-
return N({}, V, { abort: { reason: C, plugins:
|
|
970
|
+
return function(C, P) {
|
|
971
|
+
var W = z ? z.name : $, U = P && De(P) ? P : _;
|
|
972
|
+
if (z && (!(U = P && De(P) ? P : [$]).includes($) || U.length !== 1)) throw new Error("Method " + k + " can only abort " + $ + " plugin. " + JSON.stringify(U) + " input valid");
|
|
973
|
+
return N({}, V, { abort: { reason: C, plugins: U, caller: k, _: W } });
|
|
945
974
|
};
|
|
946
975
|
})(T, x, y, v, d) : /* @__PURE__ */ (function($, k) {
|
|
947
976
|
return function() {
|
|
948
977
|
throw new Error($.type + " action not cancellable. Remove abort in " + k);
|
|
949
978
|
};
|
|
950
979
|
})(d, x);
|
|
951
|
-
return { payload:
|
|
980
|
+
return { payload: ya(d), instance: w, config: m || {}, abort: A };
|
|
952
981
|
};
|
|
953
982
|
})(n, b), I = e.exact.reduce(function(w, y) {
|
|
954
983
|
var d = y.pluginName, E = y.methodName, v = !1;
|
|
@@ -963,18 +992,18 @@ var ut = function(t) {
|
|
|
963
992
|
var T = (function() {
|
|
964
993
|
if (e.namespaced && e.namespaced[E]) return Promise.resolve(e.namespaced[E].reduce(function(x, A, $) {
|
|
965
994
|
return Promise.resolve(x).then(function(k) {
|
|
966
|
-
return A.method && Z(A.method) ? ((function(C,
|
|
995
|
+
return A.method && Z(A.method) ? ((function(C, P) {
|
|
967
996
|
var W = wr(C);
|
|
968
|
-
if (W && W.name ===
|
|
969
|
-
var
|
|
970
|
-
throw new Error([
|
|
997
|
+
if (W && W.name === P) {
|
|
998
|
+
var U = wr(W.method);
|
|
999
|
+
throw new Error([P + " plugin is calling method " + C, "Plugins cant call self", "Use " + W.method + " " + (U ? "or " + U.method : "") + " in " + P + " plugin insteadof " + C].join(`
|
|
971
1000
|
`));
|
|
972
1001
|
}
|
|
973
|
-
})(A.methodName, A.pluginName), Promise.resolve(A.method({ payload: k, instance: n, abort: (_ = k, z = E, V = A.pluginName, function(C,
|
|
974
|
-
return N({}, _, { abort: { reason: C, plugins:
|
|
1002
|
+
})(A.methodName, A.pluginName), Promise.resolve(A.method({ payload: k, instance: n, abort: (_ = k, z = E, V = A.pluginName, function(C, P) {
|
|
1003
|
+
return N({}, _, { abort: { reason: C, plugins: P || [z], caller: p, from: V || z } });
|
|
975
1004
|
}), config: mr(A.pluginName, l, s), plugins: l })).then(function(C) {
|
|
976
|
-
var
|
|
977
|
-
return Promise.resolve(N({}, k,
|
|
1005
|
+
var P = J(C) ? C : {};
|
|
1006
|
+
return Promise.resolve(N({}, k, P));
|
|
978
1007
|
})) : k;
|
|
979
1008
|
var _, z, V;
|
|
980
1009
|
});
|
|
@@ -1012,7 +1041,7 @@ var ut = function(t) {
|
|
|
1012
1041
|
if (!(p.match(Ie) || p.match(/^registerPlugin/) || p.match(hr) || p.match(gr) || p.match(/^params/) || p.match(/^userIdChanged/))) {
|
|
1013
1042
|
if (u.plugins.includes(p), y._ && y._.originalAction === p) return y;
|
|
1014
1043
|
var d = N({}, y, { _: { originalAction: y.type, called: y.type, from: "engineEnd" } });
|
|
1015
|
-
|
|
1044
|
+
Tn(y, e.exact.length) && !p.match(/End$/) && (d = N({}, d, { type: y.type + "Aborted" })), o.dispatch(d);
|
|
1016
1045
|
}
|
|
1017
1046
|
return y;
|
|
1018
1047
|
});
|
|
@@ -1042,29 +1071,29 @@ function lt(t, e) {
|
|
|
1042
1071
|
var r = t.abort;
|
|
1043
1072
|
return !!r && (r === !0 || br(r, e) || r && br(r.plugins, e));
|
|
1044
1073
|
}
|
|
1045
|
-
function
|
|
1074
|
+
function Tn(t, e) {
|
|
1046
1075
|
var r = t.abort;
|
|
1047
1076
|
if (!r) return !1;
|
|
1048
1077
|
if (r === !0 || ce(r)) return !0;
|
|
1049
1078
|
var n = r.plugins;
|
|
1050
|
-
return
|
|
1079
|
+
return De(r) && r.length === e || De(n) && n.length === e;
|
|
1051
1080
|
}
|
|
1052
|
-
function
|
|
1081
|
+
function De(t) {
|
|
1053
1082
|
return Array.isArray(t);
|
|
1054
1083
|
}
|
|
1055
1084
|
function br(t, e) {
|
|
1056
|
-
return !(!t || !
|
|
1085
|
+
return !(!t || !De(t)) && t.includes(e);
|
|
1057
1086
|
}
|
|
1058
1087
|
function wr(t) {
|
|
1059
1088
|
var e = t.match(/(.*):(.*)/);
|
|
1060
1089
|
return !!e && { method: e[1], name: e[2] };
|
|
1061
1090
|
}
|
|
1062
|
-
function
|
|
1091
|
+
function ya(t) {
|
|
1063
1092
|
return Object.keys(t).reduce(function(e, r) {
|
|
1064
1093
|
return r === "type" || (e[r] = J(t[r]) ? Object.assign({}, t[r]) : t[r]), e;
|
|
1065
1094
|
}, {});
|
|
1066
1095
|
}
|
|
1067
|
-
function
|
|
1096
|
+
function ba(t, e, r) {
|
|
1068
1097
|
var n = {};
|
|
1069
1098
|
return function(i) {
|
|
1070
1099
|
return function(s) {
|
|
@@ -1083,7 +1112,7 @@ function ya(t, e, r) {
|
|
|
1083
1112
|
return g[v];
|
|
1084
1113
|
}), I = [], w = [], y = a.disabled, d = S.map(function(v) {
|
|
1085
1114
|
var m = v.loaded, T = v.name, x = v.config;
|
|
1086
|
-
return
|
|
1115
|
+
return On(v, function() {
|
|
1087
1116
|
return m({ config: x });
|
|
1088
1117
|
}, 1e4).then(function(A) {
|
|
1089
1118
|
return n[T] || (i.dispatch({ type: j.pluginReadyType(T), name: T, events: Object.keys(v).filter(function($) {
|
|
@@ -1103,14 +1132,14 @@ function ya(t, e, r) {
|
|
|
1103
1132
|
}
|
|
1104
1133
|
var E = (function() {
|
|
1105
1134
|
if (l !== j.bootstrap) return /^ready:([^:]*)$/.test(l) && setTimeout(function() {
|
|
1106
|
-
return
|
|
1135
|
+
return xn(i, e, t);
|
|
1107
1136
|
}, 0), Promise.resolve((function(v, m, T, x, A) {
|
|
1108
1137
|
try {
|
|
1109
1138
|
var $ = Z(m) ? m() : m, k = v.type, _ = k.replace(Ie, "");
|
|
1110
1139
|
if (v._ && v._.called) return Promise.resolve(v);
|
|
1111
|
-
var z = T.getState(), V = (W = $, (
|
|
1112
|
-
var h =
|
|
1113
|
-
return
|
|
1140
|
+
var z = T.getState(), V = (W = $, (U = z.plugins) === void 0 && (U = {}), (G = v.options) === void 0 && (G = {}), Object.keys(W).filter(function(c) {
|
|
1141
|
+
var h = G.plugins || {};
|
|
1142
|
+
return ea(h[c]) ? h[c] : h.all !== !1 && (!U[c] || U[c].enabled !== !1);
|
|
1114
1143
|
}).map(function(c) {
|
|
1115
1144
|
return W[c];
|
|
1116
1145
|
}));
|
|
@@ -1122,41 +1151,41 @@ function ya(t, e, r) {
|
|
|
1122
1151
|
}));
|
|
1123
1152
|
var C = V.map(function(c) {
|
|
1124
1153
|
return c.name;
|
|
1125
|
-
}),
|
|
1126
|
-
var
|
|
1154
|
+
}), P = (function(c, h) {
|
|
1155
|
+
var O = yr(c).map(function(M) {
|
|
1127
1156
|
return vr(M, h);
|
|
1128
1157
|
});
|
|
1129
|
-
return h.reduce(function(M,
|
|
1130
|
-
var D =
|
|
1158
|
+
return h.reduce(function(M, R) {
|
|
1159
|
+
var D = R.name, q = yr(c, D).map(function(ne) {
|
|
1131
1160
|
return vr(ne, h);
|
|
1132
|
-
}), H =
|
|
1133
|
-
return H.length && (M.beforeNS[D] = H),
|
|
1134
|
-
}, { before:
|
|
1161
|
+
}), H = q[0], F = q[1], L = q[2];
|
|
1162
|
+
return H.length && (M.beforeNS[D] = H), F.length && (M.duringNS[D] = F), L.length && (M.afterNS[D] = L), M;
|
|
1163
|
+
}, { before: O[0], beforeNS: {}, during: O[1], duringNS: {}, after: O[2], afterNS: {} });
|
|
1135
1164
|
})(k, V);
|
|
1136
|
-
return Promise.resolve(ut({ action: v, data: { exact:
|
|
1165
|
+
return Promise.resolve(ut({ action: v, data: { exact: P.before, namespaced: P.beforeNS }, state: z, allPlugins: $, allMatches: P, instance: T, store: x, EVENTS: A })).then(function(c) {
|
|
1137
1166
|
function h() {
|
|
1138
|
-
var
|
|
1139
|
-
if (k.match(Ie)) return Promise.resolve(ut({ action: N({},
|
|
1167
|
+
var R = (function() {
|
|
1168
|
+
if (k.match(Ie)) return Promise.resolve(ut({ action: N({}, O, { type: _ + "End" }), data: { exact: P.after, namespaced: P.afterNS }, state: z, allPlugins: $, allMatches: P, instance: T, store: x, EVENTS: A })).then(function(D) {
|
|
1140
1169
|
D.meta && D.meta.hasCallback && pr(D.meta.rid, { payload: D });
|
|
1141
1170
|
});
|
|
1142
1171
|
})();
|
|
1143
|
-
return
|
|
1172
|
+
return R && R.then ? R.then(function() {
|
|
1144
1173
|
return c;
|
|
1145
1174
|
}) : c;
|
|
1146
1175
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
var
|
|
1149
|
-
if (k !== _) return Promise.resolve(ut({ action: N({}, c, { type: _ }), data: { exact:
|
|
1150
|
-
|
|
1176
|
+
if (Tn(c, C.length)) return c;
|
|
1177
|
+
var O, M = (function() {
|
|
1178
|
+
if (k !== _) return Promise.resolve(ut({ action: N({}, c, { type: _ }), data: { exact: P.during, namespaced: P.duringNS }, state: z, allPlugins: $, allMatches: P, instance: T, store: x, EVENTS: A })).then(function(R) {
|
|
1179
|
+
O = R;
|
|
1151
1180
|
});
|
|
1152
|
-
|
|
1181
|
+
O = c;
|
|
1153
1182
|
})();
|
|
1154
1183
|
return M && M.then ? M.then(h) : h();
|
|
1155
1184
|
});
|
|
1156
1185
|
} catch (c) {
|
|
1157
1186
|
return Promise.reject(c);
|
|
1158
1187
|
}
|
|
1159
|
-
var W,
|
|
1188
|
+
var W, U, G;
|
|
1160
1189
|
})(a, e, t, i, r)).then(function(v) {
|
|
1161
1190
|
var m = s(v);
|
|
1162
1191
|
return o = 1, m;
|
|
@@ -1170,7 +1199,7 @@ function ya(t, e, r) {
|
|
|
1170
1199
|
};
|
|
1171
1200
|
};
|
|
1172
1201
|
}
|
|
1173
|
-
function
|
|
1202
|
+
function wa(t) {
|
|
1174
1203
|
return function(e) {
|
|
1175
1204
|
return function(r) {
|
|
1176
1205
|
return function(n) {
|
|
@@ -1184,7 +1213,7 @@ function ba(t) {
|
|
|
1184
1213
|
};
|
|
1185
1214
|
};
|
|
1186
1215
|
}
|
|
1187
|
-
var
|
|
1216
|
+
var Sa = function() {
|
|
1188
1217
|
var t = this;
|
|
1189
1218
|
this.before = [], this.after = [], this.addMiddleware = function(e, r) {
|
|
1190
1219
|
t[r] = t[r].concat(e);
|
|
@@ -1208,7 +1237,7 @@ var wa = function() {
|
|
|
1208
1237
|
};
|
|
1209
1238
|
};
|
|
1210
1239
|
};
|
|
1211
|
-
function
|
|
1240
|
+
function Ea(t) {
|
|
1212
1241
|
return function(e, r) {
|
|
1213
1242
|
e === void 0 && (e = {});
|
|
1214
1243
|
var n = {};
|
|
@@ -1242,26 +1271,26 @@ function Er(t, e, r) {
|
|
|
1242
1271
|
return n[i] = N({}, r[i], { enabled: e }), n;
|
|
1243
1272
|
}, r);
|
|
1244
1273
|
}
|
|
1245
|
-
function
|
|
1274
|
+
function kn(t) {
|
|
1246
1275
|
try {
|
|
1247
1276
|
return JSON.parse(JSON.stringify(t));
|
|
1248
1277
|
} catch {
|
|
1249
1278
|
}
|
|
1250
1279
|
return t;
|
|
1251
1280
|
}
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1254
|
-
t === void 0 && (t =
|
|
1281
|
+
var Ia = { last: {}, history: [] };
|
|
1282
|
+
function Aa(t, e) {
|
|
1283
|
+
t === void 0 && (t = Ia);
|
|
1255
1284
|
var r = e.options, n = e.meta;
|
|
1256
1285
|
if (e.type === j.track) {
|
|
1257
|
-
var i =
|
|
1286
|
+
var i = kn(N({ event: e.event, properties: e.properties }, Object.keys(r).length && { options: r }, { meta: n }));
|
|
1258
1287
|
return N({}, t, { last: i, history: t.history.concat(i) });
|
|
1259
1288
|
}
|
|
1260
1289
|
return t;
|
|
1261
1290
|
}
|
|
1262
|
-
var
|
|
1291
|
+
var Pa = { actions: [] };
|
|
1263
1292
|
function Oa(t, e) {
|
|
1264
|
-
t === void 0 && (t =
|
|
1293
|
+
t === void 0 && (t = Pa);
|
|
1265
1294
|
var r = e.payload;
|
|
1266
1295
|
switch (e.type) {
|
|
1267
1296
|
case "queue":
|
|
@@ -1273,12 +1302,12 @@ function Oa(t, e) {
|
|
|
1273
1302
|
return t;
|
|
1274
1303
|
}
|
|
1275
1304
|
}
|
|
1276
|
-
var
|
|
1277
|
-
function
|
|
1305
|
+
var jn = /#.*$/;
|
|
1306
|
+
function xa(t) {
|
|
1278
1307
|
var e = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);
|
|
1279
|
-
return "/" + (e && e[3] ? e[3].split("?")[0].replace(
|
|
1308
|
+
return "/" + (e && e[3] ? e[3].split("?")[0].replace(jn, "") : "");
|
|
1280
1309
|
}
|
|
1281
|
-
var
|
|
1310
|
+
var Nn, Mn, $n, Cn, Ta = function(t) {
|
|
1282
1311
|
if (t === void 0 && (t = {}), !Q) return t;
|
|
1283
1312
|
var e = document, r = e.title, n = e.referrer, i = window, s = i.location, a = i.innerWidth, o = i.innerHeight, u = s.hash, l = s.search, f = (function(g) {
|
|
1284
1313
|
var b = (function() {
|
|
@@ -1286,26 +1315,26 @@ var kn, jn, Nn, Mn, xa = function(t) {
|
|
|
1286
1315
|
for (var S, I = document.getElementsByTagName("link"), w = 0; S = I[w]; w++) if (S.getAttribute("rel") === "canonical") return S.getAttribute("href");
|
|
1287
1316
|
}
|
|
1288
1317
|
})();
|
|
1289
|
-
return b ? b.match(/\?/) ? b : b + g : window.location.href.replace(
|
|
1290
|
-
})(l), p = { title: r, url: f, path:
|
|
1318
|
+
return b ? b.match(/\?/) ? b : b + g : window.location.href.replace(jn, "");
|
|
1319
|
+
})(l), p = { title: r, url: f, path: xa(f), hash: u, search: l, width: a, height: o };
|
|
1291
1320
|
return n && n !== "" && (p.referrer = n), N({}, p, t);
|
|
1292
|
-
},
|
|
1293
|
-
function
|
|
1294
|
-
t === void 0 && (t =
|
|
1321
|
+
}, ka = { last: {}, history: [] };
|
|
1322
|
+
function ja(t, e) {
|
|
1323
|
+
t === void 0 && (t = ka);
|
|
1295
1324
|
var r = e.options;
|
|
1296
1325
|
if (e.type === j.page) {
|
|
1297
|
-
var n =
|
|
1326
|
+
var n = kn(N({ properties: e.properties, meta: e.meta }, Object.keys(r).length && { options: r }));
|
|
1298
1327
|
return N({}, t, { last: n, history: t.history.concat(n) });
|
|
1299
1328
|
}
|
|
1300
1329
|
return t;
|
|
1301
1330
|
}
|
|
1302
|
-
|
|
1331
|
+
Nn = (function() {
|
|
1303
1332
|
if (!Q) return !1;
|
|
1304
1333
|
var t = navigator.appVersion;
|
|
1305
1334
|
return ~t.indexOf("Win") ? "Windows" : ~t.indexOf("Mac") ? "MacOS" : ~t.indexOf("X11") ? "UNIX" : ~t.indexOf("Linux") ? "Linux" : "Unknown OS";
|
|
1306
|
-
})(),
|
|
1307
|
-
var Ir = { initialized: !1, sessionId: be(), app: null, version: null, debug: !1, offline: !!Q && !navigator.onLine, os: { name:
|
|
1308
|
-
function
|
|
1335
|
+
})(), Mn = Q ? document.referrer : null, $n = oa(), Cn = ua();
|
|
1336
|
+
var Ir = { initialized: !1, sessionId: be(), app: null, version: null, debug: !1, offline: !!Q && !navigator.onLine, os: { name: Nn }, userAgent: Q ? navigator.userAgent : "node", library: { name: jt, version: "0.13.1" }, timezone: Cn, locale: $n, campaign: {}, referrer: Mn };
|
|
1337
|
+
function Na(t, e) {
|
|
1309
1338
|
t === void 0 && (t = Ir);
|
|
1310
1339
|
var r = t.initialized, n = e.campaign;
|
|
1311
1340
|
switch (e.type) {
|
|
@@ -1319,8 +1348,8 @@ function ja(t, e) {
|
|
|
1319
1348
|
return r ? t : N({}, Ir, t, { initialized: !0 });
|
|
1320
1349
|
}
|
|
1321
1350
|
}
|
|
1322
|
-
var
|
|
1323
|
-
function
|
|
1351
|
+
var Ma = ["plugins", "reducers", "storage"];
|
|
1352
|
+
function $a(t, e, r) {
|
|
1324
1353
|
if (Q) {
|
|
1325
1354
|
var n = window[(r ? "add" : "remove") + "EventListener"];
|
|
1326
1355
|
t.split(" ").forEach(function(i) {
|
|
@@ -1328,33 +1357,33 @@ function Ma(t, e, r) {
|
|
|
1328
1357
|
});
|
|
1329
1358
|
}
|
|
1330
1359
|
}
|
|
1331
|
-
function
|
|
1332
|
-
var e =
|
|
1360
|
+
function Ca(t) {
|
|
1361
|
+
var e = $a.bind(null, "online offline", function(r) {
|
|
1333
1362
|
return Promise.resolve(!navigator.onLine).then(t);
|
|
1334
1363
|
});
|
|
1335
1364
|
return e(!0), function(r) {
|
|
1336
1365
|
return e(!1);
|
|
1337
1366
|
};
|
|
1338
1367
|
}
|
|
1339
|
-
function
|
|
1368
|
+
function _n() {
|
|
1340
1369
|
return de(jt, []), function(t) {
|
|
1341
1370
|
return function(e, r, n) {
|
|
1342
1371
|
var i = t(e, r, n), s = i.dispatch;
|
|
1343
1372
|
return Object.assign(i, { dispatch: function(a) {
|
|
1344
|
-
return Pe
|
|
1373
|
+
return Oe[Pe][jt].push(a.action || a), s(a);
|
|
1345
1374
|
} });
|
|
1346
1375
|
};
|
|
1347
1376
|
};
|
|
1348
1377
|
}
|
|
1349
1378
|
function Ar(t) {
|
|
1350
1379
|
return function() {
|
|
1351
|
-
return xe(xe.apply(null, arguments),
|
|
1380
|
+
return xe(xe.apply(null, arguments), _n());
|
|
1352
1381
|
};
|
|
1353
1382
|
}
|
|
1354
1383
|
function ft(t) {
|
|
1355
|
-
return t ?
|
|
1384
|
+
return t ? En(t) ? t : [t] : [];
|
|
1356
1385
|
}
|
|
1357
|
-
function
|
|
1386
|
+
function Pr(t, e, r) {
|
|
1358
1387
|
t === void 0 && (t = {});
|
|
1359
1388
|
var n, i, s = be();
|
|
1360
1389
|
return e && (Me[s] = (n = e, i = (function(a) {
|
|
@@ -1367,76 +1396,76 @@ function Or(t, e, r) {
|
|
|
1367
1396
|
i && i(a), n(a);
|
|
1368
1397
|
})), N({}, t, { rid: s, ts: (/* @__PURE__ */ new Date()).getTime() }, e ? { hasCallback: !0 } : {});
|
|
1369
1398
|
}
|
|
1370
|
-
function
|
|
1399
|
+
function _a(t) {
|
|
1371
1400
|
t === void 0 && (t = {});
|
|
1372
1401
|
var e = t.reducers || {}, r = t.initialUser || {}, n = (t.plugins || []).reduce(function(c, h) {
|
|
1373
1402
|
if (Z(h)) return c.middlewares = c.middlewares.concat(h), c;
|
|
1374
1403
|
if (h.NAMESPACE && (h.name = h.NAMESPACE), !h.name) throw new Error("https://lytics.dev/errors/1");
|
|
1375
1404
|
h.config || (h.config = {});
|
|
1376
|
-
var
|
|
1405
|
+
var O = h.EVENTS ? Object.keys(h.EVENTS).map(function(D) {
|
|
1377
1406
|
return h.EVENTS[D];
|
|
1378
1407
|
}) : [];
|
|
1379
|
-
c.pluginEnabled[h.name] = !(h.enabled === !1 || h.config.enabled === !1), delete h.enabled, h.methods && (c.methods[h.name] = Object.keys(h.methods).reduce(function(D,
|
|
1408
|
+
c.pluginEnabled[h.name] = !(h.enabled === !1 || h.config.enabled === !1), delete h.enabled, h.methods && (c.methods[h.name] = Object.keys(h.methods).reduce(function(D, q) {
|
|
1380
1409
|
var H;
|
|
1381
|
-
return D[
|
|
1382
|
-
for (var
|
|
1410
|
+
return D[q] = (H = h.methods[q], function() {
|
|
1411
|
+
for (var F = Array.prototype.slice.call(arguments), L = new Array(H.length), ne = 0; ne < F.length; ne++) L[ne] = F[ne];
|
|
1383
1412
|
return L[L.length] = m, H.apply({ instance: m }, L);
|
|
1384
1413
|
}), D;
|
|
1385
1414
|
}, {}), delete h.methods);
|
|
1386
|
-
var M = Object.keys(h).concat(
|
|
1387
|
-
if (c.events = Array.from(
|
|
1415
|
+
var M = Object.keys(h).concat(O), R = new Set(c.events.concat(M));
|
|
1416
|
+
if (c.events = Array.from(R), c.pluginsArray = c.pluginsArray.concat(h), c.plugins[h.name]) throw new Error(h.name + "AlreadyLoaded");
|
|
1388
1417
|
return c.plugins[h.name] = h, c.plugins[h.name].loaded || (c.plugins[h.name].loaded = function() {
|
|
1389
1418
|
return !0;
|
|
1390
1419
|
}), c;
|
|
1391
1420
|
}, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), i = t.storage ? t.storage : { getItem: fe, setItem: de, removeItem: Te }, s = /* @__PURE__ */ (function(c) {
|
|
1392
|
-
return function(h,
|
|
1393
|
-
return
|
|
1421
|
+
return function(h, O, M) {
|
|
1422
|
+
return O.getState("user")[h] || (M && J(M) && M[h] ? M[h] : dr(c)[h] || fe(Mt(h)) || null);
|
|
1394
1423
|
};
|
|
1395
1424
|
})(i), a = n.plugins, o = n.events.filter(function(c) {
|
|
1396
1425
|
return !Nt.includes(c);
|
|
1397
|
-
}).sort(), u = new Set(o.concat(
|
|
1426
|
+
}).sort(), u = new Set(o.concat(Ge).filter(function(c) {
|
|
1398
1427
|
return !Nt.includes(c);
|
|
1399
1428
|
})), l = Array.from(u).sort(), f = function() {
|
|
1400
1429
|
return a;
|
|
1401
|
-
}, p = new
|
|
1430
|
+
}, p = new Sa(), g = p.addMiddleware, b = p.removeMiddleware, S = p.dynamicMiddlewares, I = function() {
|
|
1402
1431
|
throw new Error("Abort disabled inListener");
|
|
1403
|
-
}, w =
|
|
1432
|
+
}, w = ca(), y = dr(i), d = N({}, y, r, w.an_uid ? { userId: w.an_uid } : {}, w.an_aid ? { anonymousId: w.an_aid } : {});
|
|
1404
1433
|
d.anonymousId || (d.anonymousId = be());
|
|
1405
1434
|
var E = N({ enable: function(c, h) {
|
|
1406
|
-
return new Promise(function(
|
|
1407
|
-
|
|
1435
|
+
return new Promise(function(O) {
|
|
1436
|
+
P.dispatch({ type: j.enablePlugin, plugins: ft(c), _: { originalAction: j.enablePlugin } }, O, [h]);
|
|
1408
1437
|
});
|
|
1409
1438
|
}, disable: function(c, h) {
|
|
1410
|
-
return new Promise(function(
|
|
1411
|
-
|
|
1439
|
+
return new Promise(function(O) {
|
|
1440
|
+
P.dispatch({ type: j.disablePlugin, plugins: ft(c), _: { originalAction: j.disablePlugin } }, O, [h]);
|
|
1412
1441
|
});
|
|
1413
|
-
} }, n.methods), v = !1, m = { identify: function(c, h,
|
|
1442
|
+
} }, n.methods), v = !1, m = { identify: function(c, h, O, M) {
|
|
1414
1443
|
try {
|
|
1415
|
-
var
|
|
1416
|
-
de(Mt(oe),
|
|
1417
|
-
var
|
|
1444
|
+
var R = ce(c) ? c : null, D = J(c) ? c : h, q = O || {}, H = m.user();
|
|
1445
|
+
de(Mt(oe), R);
|
|
1446
|
+
var F = R || D.userId || s(oe, m, D);
|
|
1418
1447
|
return Promise.resolve(new Promise(function(L) {
|
|
1419
|
-
|
|
1448
|
+
P.dispatch(N({ type: j.identifyStart, userId: F, traits: D || {}, options: q, anonymousId: H.anonymousId }, H.id && H.id !== R && { previousId: H.id }), L, [h, O, M]);
|
|
1420
1449
|
}));
|
|
1421
1450
|
} catch (L) {
|
|
1422
1451
|
return Promise.reject(L);
|
|
1423
1452
|
}
|
|
1424
|
-
}, track: function(c, h,
|
|
1453
|
+
}, track: function(c, h, O, M) {
|
|
1425
1454
|
try {
|
|
1426
|
-
var
|
|
1427
|
-
if (!
|
|
1428
|
-
var D = J(c) ? c : h || {},
|
|
1455
|
+
var R = J(c) ? c.event : c;
|
|
1456
|
+
if (!R || !ce(R)) throw new Error("EventMissing");
|
|
1457
|
+
var D = J(c) ? c : h || {}, q = J(O) ? O : {};
|
|
1429
1458
|
return Promise.resolve(new Promise(function(H) {
|
|
1430
|
-
|
|
1459
|
+
P.dispatch({ type: j.trackStart, event: R, properties: D, options: q, userId: s(oe, m, h), anonymousId: s(Se, m, h) }, H, [h, O, M]);
|
|
1431
1460
|
}));
|
|
1432
1461
|
} catch (H) {
|
|
1433
1462
|
return Promise.reject(H);
|
|
1434
1463
|
}
|
|
1435
|
-
}, page: function(c, h,
|
|
1464
|
+
}, page: function(c, h, O) {
|
|
1436
1465
|
try {
|
|
1437
|
-
var M = J(c) ? c : {},
|
|
1466
|
+
var M = J(c) ? c : {}, R = J(h) ? h : {};
|
|
1438
1467
|
return Promise.resolve(new Promise(function(D) {
|
|
1439
|
-
|
|
1468
|
+
P.dispatch({ type: j.pageStart, properties: Ta(M), options: R, userId: s(oe, m, M), anonymousId: s(Se, m, M) }, D, [c, h, O]);
|
|
1440
1469
|
}));
|
|
1441
1470
|
} catch (D) {
|
|
1442
1471
|
return Promise.reject(D);
|
|
@@ -1448,7 +1477,7 @@ function Ca(t) {
|
|
|
1448
1477
|
return c ? sr(h, c) : h;
|
|
1449
1478
|
}, reset: function(c) {
|
|
1450
1479
|
return new Promise(function(h) {
|
|
1451
|
-
|
|
1480
|
+
P.dispatch({ type: j.resetStart }, h, c);
|
|
1452
1481
|
});
|
|
1453
1482
|
}, ready: function(c) {
|
|
1454
1483
|
return v && c({ plugins: E, instance: m }), m.on(j.ready, function(h) {
|
|
@@ -1457,148 +1486,148 @@ function Ca(t) {
|
|
|
1457
1486
|
}, on: function(c, h) {
|
|
1458
1487
|
if (!c || !Z(h)) return !1;
|
|
1459
1488
|
if (c === j.bootstrap) throw new Error(".on disabled for " + c);
|
|
1460
|
-
var
|
|
1489
|
+
var O = /Start$|Start:/;
|
|
1461
1490
|
if (c === "*") {
|
|
1462
1491
|
var M = function(H) {
|
|
1463
|
-
return function(
|
|
1492
|
+
return function(F) {
|
|
1464
1493
|
return function(L) {
|
|
1465
|
-
return L.type.match(
|
|
1494
|
+
return L.type.match(O) && h({ payload: L, instance: m, plugins: a }), F(L);
|
|
1466
1495
|
};
|
|
1467
1496
|
};
|
|
1468
|
-
},
|
|
1469
|
-
return function(
|
|
1497
|
+
}, R = function(H) {
|
|
1498
|
+
return function(F) {
|
|
1470
1499
|
return function(L) {
|
|
1471
|
-
return L.type.match(
|
|
1500
|
+
return L.type.match(O) || h({ payload: L, instance: m, plugins: a }), F(L);
|
|
1472
1501
|
};
|
|
1473
1502
|
};
|
|
1474
1503
|
};
|
|
1475
|
-
return g(M,
|
|
1476
|
-
b(M,
|
|
1504
|
+
return g(M, We), g(R, He), function() {
|
|
1505
|
+
b(M, We), b(R, He);
|
|
1477
1506
|
};
|
|
1478
1507
|
}
|
|
1479
|
-
var D = c.match(
|
|
1480
|
-
return function(
|
|
1508
|
+
var D = c.match(O) ? We : He, q = function(H) {
|
|
1509
|
+
return function(F) {
|
|
1481
1510
|
return function(L) {
|
|
1482
|
-
return L.type === c && h({ payload: L, instance: m, plugins: a, abort: I }),
|
|
1511
|
+
return L.type === c && h({ payload: L, instance: m, plugins: a, abort: I }), F(L);
|
|
1483
1512
|
};
|
|
1484
1513
|
};
|
|
1485
1514
|
};
|
|
1486
|
-
return g(
|
|
1487
|
-
return b(
|
|
1515
|
+
return g(q, D), function() {
|
|
1516
|
+
return b(q, D);
|
|
1488
1517
|
};
|
|
1489
1518
|
}, once: function(c, h) {
|
|
1490
1519
|
if (!c || !Z(h)) return !1;
|
|
1491
1520
|
if (c === j.bootstrap) throw new Error(".once disabled for " + c);
|
|
1492
|
-
var
|
|
1493
|
-
h({ payload: M.payload, instance: m, plugins: a, abort: I }),
|
|
1521
|
+
var O = m.on(c, function(M) {
|
|
1522
|
+
h({ payload: M.payload, instance: m, plugins: a, abort: I }), O();
|
|
1494
1523
|
});
|
|
1495
|
-
return
|
|
1524
|
+
return O;
|
|
1496
1525
|
}, getState: function(c) {
|
|
1497
|
-
var h =
|
|
1526
|
+
var h = P.getState();
|
|
1498
1527
|
return c ? sr(h, c) : Object.assign({}, h);
|
|
1499
1528
|
}, dispatch: function(c) {
|
|
1500
1529
|
var h = ce(c) ? { type: c } : c;
|
|
1501
|
-
if (
|
|
1502
|
-
var
|
|
1503
|
-
|
|
1504
|
-
}, enablePlugin: E.enable, disablePlugin: E.disable, plugins: E, storage: { getItem: i.getItem, setItem: function(c, h,
|
|
1505
|
-
|
|
1530
|
+
if (Ge.includes(h.type)) throw new Error("reserved action " + h.type);
|
|
1531
|
+
var O = N({}, h, { _: N({ originalAction: h.type }, c._ || {}) });
|
|
1532
|
+
P.dispatch(O);
|
|
1533
|
+
}, enablePlugin: E.enable, disablePlugin: E.disable, plugins: E, storage: { getItem: i.getItem, setItem: function(c, h, O) {
|
|
1534
|
+
P.dispatch({ type: j.setItemStart, key: c, value: h, options: O });
|
|
1506
1535
|
}, removeItem: function(c, h) {
|
|
1507
|
-
|
|
1536
|
+
P.dispatch({ type: j.removeItemStart, key: c, options: h });
|
|
1508
1537
|
} }, setAnonymousId: function(c, h) {
|
|
1509
1538
|
m.storage.setItem(le, c, h);
|
|
1510
|
-
}, events: { core:
|
|
1539
|
+
}, events: { core: Ge, plugins: o } }, T = n.middlewares.concat([function(c) {
|
|
1511
1540
|
return function(h) {
|
|
1512
|
-
return function(
|
|
1513
|
-
return
|
|
1541
|
+
return function(O) {
|
|
1542
|
+
return O.meta || (O.meta = Pr()), h(O);
|
|
1514
1543
|
};
|
|
1515
1544
|
};
|
|
1516
|
-
}, S(
|
|
1545
|
+
}, S(We), ba(m, f, { all: l, plugins: o }), wa(i), ga(m), ma(m), S(He)]), x = { context: Na, user: ha(i), page: ja, track: Aa, plugins: Ea(f), queue: Oa }, A = xe, $ = xe;
|
|
1517
1546
|
if (Q && t.debug) {
|
|
1518
1547
|
var k = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
1519
1548
|
k && (A = k({ trace: !0, traceLimit: 25 })), $ = function() {
|
|
1520
|
-
return arguments.length === 0 ?
|
|
1549
|
+
return arguments.length === 0 ? _n() : J(typeof arguments[0]) ? Ar() : Ar().apply(null, arguments);
|
|
1521
1550
|
};
|
|
1522
1551
|
}
|
|
1523
1552
|
var _, z = (function(c) {
|
|
1524
|
-
return Object.keys(c).reduce(function(h,
|
|
1525
|
-
return
|
|
1553
|
+
return Object.keys(c).reduce(function(h, O) {
|
|
1554
|
+
return Ma.includes(O) || (h[O] = c[O]), h;
|
|
1526
1555
|
}, {});
|
|
1527
1556
|
})(t), V = n.pluginsArray.reduce(function(c, h) {
|
|
1528
|
-
var
|
|
1529
|
-
return c[
|
|
1530
|
-
}, {}), C = { context: z, user: d, plugins: V },
|
|
1531
|
-
for (var h = Object.keys(c),
|
|
1532
|
-
var
|
|
1533
|
-
typeof c[
|
|
1557
|
+
var O = h.name, M = h.config, R = h.loaded, D = n.pluginEnabled[O];
|
|
1558
|
+
return c[O] = { enabled: D, initialized: !!D && !h.initialize, loaded: !!R({ config: M }), config: M }, c;
|
|
1559
|
+
}, {}), C = { context: z, user: d, plugins: V }, P = Pn((function(c) {
|
|
1560
|
+
for (var h = Object.keys(c), O = {}, M = 0; M < h.length; M++) {
|
|
1561
|
+
var R = h[M];
|
|
1562
|
+
typeof c[R] === ue && (O[R] = c[R]);
|
|
1534
1563
|
}
|
|
1535
|
-
var D,
|
|
1564
|
+
var D, q = Object.keys(O);
|
|
1536
1565
|
try {
|
|
1537
1566
|
(function(H) {
|
|
1538
|
-
Object.keys(H).forEach(function(
|
|
1539
|
-
var L = H[
|
|
1540
|
-
if (typeof L(void 0, { type: kt }) === ie || typeof L(void 0, { type:
|
|
1567
|
+
Object.keys(H).forEach(function(F) {
|
|
1568
|
+
var L = H[F];
|
|
1569
|
+
if (typeof L(void 0, { type: kt }) === ie || typeof L(void 0, { type: fa }) === ie) throw new Error(_e + " " + F + " " + ie);
|
|
1541
1570
|
});
|
|
1542
|
-
})(
|
|
1571
|
+
})(O);
|
|
1543
1572
|
} catch (H) {
|
|
1544
1573
|
D = H;
|
|
1545
1574
|
}
|
|
1546
|
-
return function(H,
|
|
1575
|
+
return function(H, F) {
|
|
1547
1576
|
if (H === void 0 && (H = {}), D) throw D;
|
|
1548
|
-
for (var L = !1, ne = {},
|
|
1549
|
-
var
|
|
1550
|
-
if (typeof
|
|
1551
|
-
var
|
|
1552
|
-
throw new Error(
|
|
1577
|
+
for (var L = !1, ne = {}, st = 0; st < q.length; st++) {
|
|
1578
|
+
var ze = q[st], ir = H[ze], ot = (0, O[ze])(ir, F);
|
|
1579
|
+
if (typeof ot === ie) {
|
|
1580
|
+
var ai = da(ze, F);
|
|
1581
|
+
throw new Error(ai);
|
|
1553
1582
|
}
|
|
1554
|
-
ne[
|
|
1583
|
+
ne[ze] = ot, L = L || ot !== ir;
|
|
1555
1584
|
}
|
|
1556
1585
|
return L ? ne : H;
|
|
1557
1586
|
};
|
|
1558
|
-
})(N({}, x, e)), C, $(A(
|
|
1559
|
-
|
|
1560
|
-
var M = N({}, c, { meta:
|
|
1587
|
+
})(N({}, x, e)), C, $(A(pa.apply(void 0, T))));
|
|
1588
|
+
P.dispatch = (_ = P.dispatch, function(c, h, O) {
|
|
1589
|
+
var M = N({}, c, { meta: Pr(c.meta, h, ft(O)) });
|
|
1561
1590
|
return _.apply(null, [M]);
|
|
1562
1591
|
});
|
|
1563
1592
|
var W = Object.keys(a);
|
|
1564
|
-
|
|
1565
|
-
var
|
|
1593
|
+
P.dispatch({ type: j.bootstrap, plugins: W, config: z, params: w, user: d, initialUser: r, persistedUser: y });
|
|
1594
|
+
var U = W.filter(function(c) {
|
|
1566
1595
|
return n.pluginEnabled[c];
|
|
1567
|
-
}),
|
|
1596
|
+
}), G = W.filter(function(c) {
|
|
1568
1597
|
return !n.pluginEnabled[c];
|
|
1569
1598
|
});
|
|
1570
|
-
return
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1573
|
-
}),
|
|
1574
|
-
|
|
1575
|
-
}), (function(c, h,
|
|
1599
|
+
return P.dispatch({ type: j.registerPlugins, plugins: W, enabled: n.pluginEnabled }), n.pluginsArray.map(function(c, h) {
|
|
1600
|
+
var O = c.bootstrap, M = c.config, R = c.name;
|
|
1601
|
+
O && Z(O) && O({ instance: m, config: M, payload: c }), P.dispatch({ type: j.registerPluginType(R), name: R, enabled: n.pluginEnabled[R], plugin: c }), n.pluginsArray.length === h + 1 && P.dispatch({ type: j.initializeStart, plugins: U, disabled: G });
|
|
1602
|
+
}), Ca(function(c) {
|
|
1603
|
+
P.dispatch({ type: c ? j.offline : j.online });
|
|
1604
|
+
}), (function(c, h, O) {
|
|
1576
1605
|
setInterval(function() {
|
|
1577
|
-
return
|
|
1606
|
+
return xn(c, h, O);
|
|
1578
1607
|
}, 3e3);
|
|
1579
|
-
})(
|
|
1608
|
+
})(P, f, m), m;
|
|
1580
1609
|
}
|
|
1581
|
-
var
|
|
1582
|
-
function
|
|
1583
|
-
return pe ?
|
|
1610
|
+
var We = "before", He = "after", me = "cookie", pe = Rn(), Gt = et, Dn = et;
|
|
1611
|
+
function Un(t) {
|
|
1612
|
+
return pe ? et(t, "", -1) : Te(t);
|
|
1584
1613
|
}
|
|
1585
|
-
function
|
|
1614
|
+
function Rn() {
|
|
1586
1615
|
if (pe !== void 0) return pe;
|
|
1587
1616
|
var t = me + me;
|
|
1588
1617
|
try {
|
|
1589
|
-
|
|
1618
|
+
et(t, t), pe = document.cookie.indexOf(t) !== -1, Un(t);
|
|
1590
1619
|
} catch {
|
|
1591
1620
|
pe = !1;
|
|
1592
1621
|
}
|
|
1593
1622
|
return pe;
|
|
1594
1623
|
}
|
|
1595
|
-
function
|
|
1624
|
+
function et(t, e, r, n, i, s) {
|
|
1596
1625
|
if (typeof window < "u") {
|
|
1597
1626
|
var a = arguments.length > 1;
|
|
1598
1627
|
return pe === !1 && (a ? de(t, e) : fe(t)), a ? document.cookie = t + "=" + encodeURIComponent(e) + (r ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * r).toUTCString() + (n ? "; path=" + n : "") + (i ? "; domain=" + i : "") + (s ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + t + "=")[1] || "").split(";")[0]);
|
|
1599
1628
|
}
|
|
1600
1629
|
}
|
|
1601
|
-
var ae = "localStorage",
|
|
1630
|
+
var ae = "localStorage", Da = Kt.bind(null, ae), Ft = ke(ae, "getItem", fe), Ua = ke(ae, "setItem", de), zn = ke(ae, "removeItem", Te), se = "sessionStorage", Ra = Kt.bind(null, se), za = ke(se, "getItem", fe), Va = ke(se, "setItem", de);
|
|
1602
1631
|
ke(se, "removeItem", Te);
|
|
1603
1632
|
function Ae(t) {
|
|
1604
1633
|
var e = t;
|
|
@@ -1611,12 +1640,12 @@ function Ae(t) {
|
|
|
1611
1640
|
}
|
|
1612
1641
|
if (e !== null && e !== "") return e;
|
|
1613
1642
|
}
|
|
1614
|
-
var
|
|
1615
|
-
function
|
|
1643
|
+
var La = Da(), Wa = Ra(), Ha = Rn();
|
|
1644
|
+
function Vn(t, e) {
|
|
1616
1645
|
if (t) {
|
|
1617
|
-
var r =
|
|
1646
|
+
var r = Bt(e), n = !Jt(r), i = qt(r) ? Ae(localStorage.getItem(t)) : void 0;
|
|
1618
1647
|
if (n && !we(i)) return i;
|
|
1619
|
-
var s = Yt(r) ? Ae(
|
|
1648
|
+
var s = Yt(r) ? Ae(Gt(t)) : void 0;
|
|
1620
1649
|
if (n && s) return s;
|
|
1621
1650
|
var a = Xt(r) ? Ae(sessionStorage.getItem(t)) : void 0;
|
|
1622
1651
|
if (n && a) return a;
|
|
@@ -1624,41 +1653,41 @@ function Un(t, e) {
|
|
|
1624
1653
|
return n ? o : { localStorage: i, sessionStorage: a, cookie: s, global: o };
|
|
1625
1654
|
}
|
|
1626
1655
|
}
|
|
1627
|
-
function
|
|
1656
|
+
function Ka(t, e, r) {
|
|
1628
1657
|
if (t && !we(e)) {
|
|
1629
|
-
var n = {}, i =
|
|
1630
|
-
return
|
|
1658
|
+
var n = {}, i = Bt(r), s = JSON.stringify(e), a = !Jt(i);
|
|
1659
|
+
return qt(i) && (n[ae] = Ke(ae, e, Ae(localStorage.getItem(t))), localStorage.setItem(t, s), a) ? n[ae] : Yt(i) && (n[me] = Ke(me, e, Ae(Gt(t))), Dn(t, s), a) ? n[me] : Xt(i) && (n[se] = Ke(se, e, Ae(sessionStorage.getItem(t))), sessionStorage.setItem(t, s), a) ? n[se] : (n[ge] = Ke(ge, e, fe(t)), de(t, e), a ? n[ge] : n);
|
|
1631
1660
|
}
|
|
1632
1661
|
}
|
|
1633
|
-
function
|
|
1662
|
+
function Ga(t, e) {
|
|
1634
1663
|
if (t) {
|
|
1635
|
-
var r =
|
|
1636
|
-
return !we(n.localStorage) &&
|
|
1664
|
+
var r = Bt(e), n = Vn(t, bn), i = {};
|
|
1665
|
+
return !we(n.localStorage) && qt(r) && (localStorage.removeItem(t), i[ae] = n.localStorage), !we(n.cookie) && Yt(r) && (Un(t), i[me] = n.cookie), !we(n.sessionStorage) && Xt(r) && (sessionStorage.removeItem(t), i[se] = n.sessionStorage), !we(n.global) && tt(r, ge) && (Te(t), i[ge] = n.global), i;
|
|
1637
1666
|
}
|
|
1638
1667
|
}
|
|
1639
|
-
function Ft(t) {
|
|
1640
|
-
return t ? ce(t) ? t : t.storage : mn;
|
|
1641
|
-
}
|
|
1642
1668
|
function Bt(t) {
|
|
1643
|
-
return
|
|
1669
|
+
return t ? ce(t) ? t : t.storage : yn;
|
|
1670
|
+
}
|
|
1671
|
+
function qt(t) {
|
|
1672
|
+
return La && tt(t, ae);
|
|
1644
1673
|
}
|
|
1645
1674
|
function Yt(t) {
|
|
1646
|
-
return
|
|
1675
|
+
return Ha && tt(t, me);
|
|
1647
1676
|
}
|
|
1648
1677
|
function Xt(t) {
|
|
1649
|
-
return
|
|
1678
|
+
return Wa && tt(t, se);
|
|
1650
1679
|
}
|
|
1651
1680
|
function Jt(t) {
|
|
1652
|
-
return t ===
|
|
1681
|
+
return t === bn || t === "all";
|
|
1653
1682
|
}
|
|
1654
|
-
function
|
|
1655
|
-
return t ===
|
|
1683
|
+
function tt(t, e) {
|
|
1684
|
+
return t === yn || t === e || Jt(t);
|
|
1656
1685
|
}
|
|
1657
|
-
function
|
|
1686
|
+
function Ke(t, e, r) {
|
|
1658
1687
|
return { location: t, current: e, previous: r };
|
|
1659
1688
|
}
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1689
|
+
var Fa = { setItem: Ka, getItem: Vn, removeItem: Ga };
|
|
1690
|
+
function Ba(t, e, r) {
|
|
1662
1691
|
return e in t ? Object.defineProperty(t, e, {
|
|
1663
1692
|
value: r,
|
|
1664
1693
|
enumerable: !0,
|
|
@@ -1666,7 +1695,7 @@ function Ga(t, e, r) {
|
|
|
1666
1695
|
writable: !0
|
|
1667
1696
|
}) : t[e] = r, t;
|
|
1668
1697
|
}
|
|
1669
|
-
function
|
|
1698
|
+
function Or(t, e) {
|
|
1670
1699
|
var r = Object.keys(t);
|
|
1671
1700
|
if (Object.getOwnPropertySymbols) {
|
|
1672
1701
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -1679,19 +1708,19 @@ function Pr(t, e) {
|
|
|
1679
1708
|
function xr(t) {
|
|
1680
1709
|
for (var e = 1; e < arguments.length; e++) {
|
|
1681
1710
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
1682
|
-
e % 2 ?
|
|
1683
|
-
|
|
1684
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
1711
|
+
e % 2 ? Or(Object(r), !0).forEach(function(n) {
|
|
1712
|
+
Ba(t, n, r[n]);
|
|
1713
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Or(Object(r)).forEach(function(n) {
|
|
1685
1714
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1686
1715
|
});
|
|
1687
1716
|
}
|
|
1688
1717
|
return t;
|
|
1689
1718
|
}
|
|
1690
|
-
function
|
|
1719
|
+
function qa() {
|
|
1691
1720
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
1692
|
-
storage:
|
|
1721
|
+
storage: Fa
|
|
1693
1722
|
};
|
|
1694
|
-
return
|
|
1723
|
+
return _a(xr(xr({}, e), t));
|
|
1695
1724
|
}
|
|
1696
1725
|
function ee(t) {
|
|
1697
1726
|
"@babel/helpers - typeof";
|
|
@@ -1701,7 +1730,7 @@ function ee(t) {
|
|
|
1701
1730
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1702
1731
|
}, ee(t);
|
|
1703
1732
|
}
|
|
1704
|
-
function
|
|
1733
|
+
function Ya(t, e) {
|
|
1705
1734
|
if (ee(t) != "object" || !t) return t;
|
|
1706
1735
|
var r = t[Symbol.toPrimitive];
|
|
1707
1736
|
if (r !== void 0) {
|
|
@@ -1711,12 +1740,12 @@ function Ba(t, e) {
|
|
|
1711
1740
|
}
|
|
1712
1741
|
return (e === "string" ? String : Number)(t);
|
|
1713
1742
|
}
|
|
1714
|
-
function
|
|
1715
|
-
var e =
|
|
1743
|
+
function Xa(t) {
|
|
1744
|
+
var e = Ya(t, "string");
|
|
1716
1745
|
return ee(e) == "symbol" ? e : e + "";
|
|
1717
1746
|
}
|
|
1718
1747
|
function Qt(t, e, r) {
|
|
1719
|
-
return (e =
|
|
1748
|
+
return (e = Xa(e)) in t ? Object.defineProperty(t, e, {
|
|
1720
1749
|
value: r,
|
|
1721
1750
|
enumerable: !0,
|
|
1722
1751
|
configurable: !0,
|
|
@@ -1733,7 +1762,7 @@ function Tr(t, e) {
|
|
|
1733
1762
|
}
|
|
1734
1763
|
return r;
|
|
1735
1764
|
}
|
|
1736
|
-
function
|
|
1765
|
+
function B(t) {
|
|
1737
1766
|
for (var e = 1; e < arguments.length; e++) {
|
|
1738
1767
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
1739
1768
|
e % 2 ? Tr(Object(r), !0).forEach(function(n) {
|
|
@@ -1745,7 +1774,7 @@ function F(t) {
|
|
|
1745
1774
|
return t;
|
|
1746
1775
|
}
|
|
1747
1776
|
var dt = { exports: {} }, pt = { exports: {} }, kr;
|
|
1748
|
-
function
|
|
1777
|
+
function Ln() {
|
|
1749
1778
|
return kr || (kr = 1, (function(t) {
|
|
1750
1779
|
function e(r, n) {
|
|
1751
1780
|
this.v = r, this.k = n;
|
|
@@ -1754,7 +1783,7 @@ function zn() {
|
|
|
1754
1783
|
})(pt)), pt.exports;
|
|
1755
1784
|
}
|
|
1756
1785
|
var gt = { exports: {} }, ht = { exports: {} }, jr;
|
|
1757
|
-
function
|
|
1786
|
+
function Wn() {
|
|
1758
1787
|
return jr || (jr = 1, (function(t) {
|
|
1759
1788
|
function e(r, n, i, s) {
|
|
1760
1789
|
var a = Object.defineProperty;
|
|
@@ -1781,45 +1810,45 @@ function Vn() {
|
|
|
1781
1810
|
})(ht)), ht.exports;
|
|
1782
1811
|
}
|
|
1783
1812
|
var Nr;
|
|
1784
|
-
function
|
|
1813
|
+
function Hn() {
|
|
1785
1814
|
return Nr || (Nr = 1, (function(t) {
|
|
1786
|
-
var e =
|
|
1815
|
+
var e = Wn();
|
|
1787
1816
|
function r() {
|
|
1788
1817
|
var n, i, s = typeof Symbol == "function" ? Symbol : {}, a = s.iterator || "@@iterator", o = s.toStringTag || "@@toStringTag";
|
|
1789
1818
|
function u(w, y, d, E) {
|
|
1790
1819
|
var v = y && y.prototype instanceof f ? y : f, m = Object.create(v.prototype);
|
|
1791
1820
|
return e(m, "_invoke", (function(T, x, A) {
|
|
1792
|
-
var $, k, _, z = 0, V = A || [], C = !1,
|
|
1821
|
+
var $, k, _, z = 0, V = A || [], C = !1, P = {
|
|
1793
1822
|
p: 0,
|
|
1794
1823
|
n: 0,
|
|
1795
1824
|
v: n,
|
|
1796
1825
|
a: W,
|
|
1797
1826
|
f: W.bind(n, 4),
|
|
1798
|
-
d: function(
|
|
1799
|
-
return $ =
|
|
1827
|
+
d: function(G, c) {
|
|
1828
|
+
return $ = G, k = 0, _ = n, P.n = c, l;
|
|
1800
1829
|
}
|
|
1801
1830
|
};
|
|
1802
|
-
function W(
|
|
1803
|
-
for (k =
|
|
1804
|
-
var c, h = V[i],
|
|
1805
|
-
|
|
1831
|
+
function W(U, G) {
|
|
1832
|
+
for (k = U, _ = G, i = 0; !C && z && !c && i < V.length; i++) {
|
|
1833
|
+
var c, h = V[i], O = P.p, M = h[2];
|
|
1834
|
+
U > 3 ? (c = M === G) && (_ = h[(k = h[4]) ? 5 : (k = 3, 3)], h[4] = h[5] = n) : h[0] <= O && ((c = U < 2 && O < h[1]) ? (k = 0, P.v = G, P.n = h[1]) : O < M && (c = U < 3 || h[0] > G || G > M) && (h[4] = U, h[5] = G, P.n = M, k = 0));
|
|
1806
1835
|
}
|
|
1807
|
-
if (c ||
|
|
1808
|
-
throw C = !0,
|
|
1836
|
+
if (c || U > 1) return l;
|
|
1837
|
+
throw C = !0, G;
|
|
1809
1838
|
}
|
|
1810
|
-
return function(
|
|
1839
|
+
return function(U, G, c) {
|
|
1811
1840
|
if (z > 1) throw TypeError("Generator is already running");
|
|
1812
|
-
for (C &&
|
|
1813
|
-
$ || (k ? k < 3 ? (k > 1 && (
|
|
1841
|
+
for (C && G === 1 && W(G, c), k = G, _ = c; (i = k < 2 ? n : _) || !C; ) {
|
|
1842
|
+
$ || (k ? k < 3 ? (k > 1 && (P.n = -1), W(k, _)) : P.n = _ : P.v = _);
|
|
1814
1843
|
try {
|
|
1815
1844
|
if (z = 2, $) {
|
|
1816
|
-
if (k || (
|
|
1845
|
+
if (k || (U = "next"), i = $[U]) {
|
|
1817
1846
|
if (!(i = i.call($, _))) throw TypeError("iterator result is not an object");
|
|
1818
1847
|
if (!i.done) return i;
|
|
1819
1848
|
_ = i.value, k < 2 && (k = 0);
|
|
1820
|
-
} else k === 1 && (i = $.return) && i.call($), k < 2 && (_ = TypeError("The iterator does not provide a '" +
|
|
1849
|
+
} else k === 1 && (i = $.return) && i.call($), k < 2 && (_ = TypeError("The iterator does not provide a '" + U + "' method"), k = 1);
|
|
1821
1850
|
$ = n;
|
|
1822
|
-
} else if ((i = (C =
|
|
1851
|
+
} else if ((i = (C = P.n < 0) ? _ : T.call(x, P)) !== l) break;
|
|
1823
1852
|
} catch (h) {
|
|
1824
1853
|
$ = n, k = 1, _ = h;
|
|
1825
1854
|
} finally {
|
|
@@ -1862,9 +1891,9 @@ function Ln() {
|
|
|
1862
1891
|
})(gt)), gt.exports;
|
|
1863
1892
|
}
|
|
1864
1893
|
var mt = { exports: {} }, vt = { exports: {} }, yt = { exports: {} }, Mr;
|
|
1865
|
-
function
|
|
1894
|
+
function Kn() {
|
|
1866
1895
|
return Mr || (Mr = 1, (function(t) {
|
|
1867
|
-
var e =
|
|
1896
|
+
var e = Ln(), r = Wn();
|
|
1868
1897
|
function n(i, s) {
|
|
1869
1898
|
function a(u, l, f, p) {
|
|
1870
1899
|
try {
|
|
@@ -1898,9 +1927,9 @@ function Wn() {
|
|
|
1898
1927
|
})(yt)), yt.exports;
|
|
1899
1928
|
}
|
|
1900
1929
|
var $r;
|
|
1901
|
-
function
|
|
1930
|
+
function Gn() {
|
|
1902
1931
|
return $r || ($r = 1, (function(t) {
|
|
1903
|
-
var e =
|
|
1932
|
+
var e = Hn(), r = Kn();
|
|
1904
1933
|
function n(i, s, a, o, u) {
|
|
1905
1934
|
return new r(e().w(i, s, a, o), u || Promise);
|
|
1906
1935
|
}
|
|
@@ -1908,9 +1937,9 @@ function Hn() {
|
|
|
1908
1937
|
})(vt)), vt.exports;
|
|
1909
1938
|
}
|
|
1910
1939
|
var Cr;
|
|
1911
|
-
function
|
|
1940
|
+
function Ja() {
|
|
1912
1941
|
return Cr || (Cr = 1, (function(t) {
|
|
1913
|
-
var e =
|
|
1942
|
+
var e = Gn();
|
|
1914
1943
|
function r(n, i, s, a, o) {
|
|
1915
1944
|
var u = e(n, i, s, a, o);
|
|
1916
1945
|
return u.next().then(function(l) {
|
|
@@ -1921,7 +1950,7 @@ function Xa() {
|
|
|
1921
1950
|
})(mt)), mt.exports;
|
|
1922
1951
|
}
|
|
1923
1952
|
var bt = { exports: {} }, _r;
|
|
1924
|
-
function
|
|
1953
|
+
function Qa() {
|
|
1925
1954
|
return _r || (_r = 1, (function(t) {
|
|
1926
1955
|
function e(r) {
|
|
1927
1956
|
var n = Object(r), i = [];
|
|
@@ -1935,7 +1964,7 @@ function Ja() {
|
|
|
1935
1964
|
})(bt)), bt.exports;
|
|
1936
1965
|
}
|
|
1937
1966
|
var wt = { exports: {} }, St = { exports: {} }, Dr;
|
|
1938
|
-
function
|
|
1967
|
+
function Za() {
|
|
1939
1968
|
return Dr || (Dr = 1, (function(t) {
|
|
1940
1969
|
function e(r) {
|
|
1941
1970
|
"@babel/helpers - typeof";
|
|
@@ -1948,10 +1977,10 @@ function Qa() {
|
|
|
1948
1977
|
t.exports = e, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
1949
1978
|
})(St)), St.exports;
|
|
1950
1979
|
}
|
|
1951
|
-
var
|
|
1952
|
-
function
|
|
1953
|
-
return
|
|
1954
|
-
var e =
|
|
1980
|
+
var Ur;
|
|
1981
|
+
function es() {
|
|
1982
|
+
return Ur || (Ur = 1, (function(t) {
|
|
1983
|
+
var e = Za().default;
|
|
1955
1984
|
function r(n) {
|
|
1956
1985
|
if (n != null) {
|
|
1957
1986
|
var i = n[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], s = 0;
|
|
@@ -1971,10 +2000,10 @@ function Za() {
|
|
|
1971
2000
|
t.exports = r, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
1972
2001
|
})(wt)), wt.exports;
|
|
1973
2002
|
}
|
|
1974
|
-
var
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
1977
|
-
var e =
|
|
2003
|
+
var Rr;
|
|
2004
|
+
function ts() {
|
|
2005
|
+
return Rr || (Rr = 1, (function(t) {
|
|
2006
|
+
var e = Ln(), r = Hn(), n = Ja(), i = Gn(), s = Kn(), a = Qa(), o = es();
|
|
1978
2007
|
function u() {
|
|
1979
2008
|
var l = r(), f = l.m(u), p = (Object.getPrototypeOf ? Object.getPrototypeOf(f) : f.__proto__).constructor;
|
|
1980
2009
|
function g(I) {
|
|
@@ -2044,10 +2073,10 @@ function es() {
|
|
|
2044
2073
|
})(dt)), dt.exports;
|
|
2045
2074
|
}
|
|
2046
2075
|
var Et, zr;
|
|
2047
|
-
function
|
|
2076
|
+
function rs() {
|
|
2048
2077
|
if (zr) return Et;
|
|
2049
2078
|
zr = 1;
|
|
2050
|
-
var t =
|
|
2079
|
+
var t = ts()();
|
|
2051
2080
|
Et = t;
|
|
2052
2081
|
try {
|
|
2053
2082
|
regeneratorRuntime = t;
|
|
@@ -2056,8 +2085,8 @@ function ts() {
|
|
|
2056
2085
|
}
|
|
2057
2086
|
return Et;
|
|
2058
2087
|
}
|
|
2059
|
-
var
|
|
2060
|
-
const K = /* @__PURE__ */
|
|
2088
|
+
var ns = rs();
|
|
2089
|
+
const K = /* @__PURE__ */ fn(ns);
|
|
2061
2090
|
function Vr(t, e, r, n, i, s, a) {
|
|
2062
2091
|
try {
|
|
2063
2092
|
var o = t[s](a), u = o.value;
|
|
@@ -2083,7 +2112,7 @@ function re(t) {
|
|
|
2083
2112
|
}
|
|
2084
2113
|
var Lr = function() {
|
|
2085
2114
|
};
|
|
2086
|
-
function
|
|
2115
|
+
function is(t, e) {
|
|
2087
2116
|
var r, n, i, s = (e = e || {}).initial || [], a = e.max || 1 / 0, o = e.interval || 1e4, u = e.onEmpty || Lr, l = e.onPause || Lr;
|
|
2088
2117
|
function f(g) {
|
|
2089
2118
|
clearInterval(r);
|
|
@@ -2103,19 +2132,19 @@ function ns(t, e) {
|
|
|
2103
2132
|
g && f(), clearInterval(r), i = !1, l(s);
|
|
2104
2133
|
} };
|
|
2105
2134
|
}
|
|
2106
|
-
var
|
|
2135
|
+
var Fe = "__", rt = "session", Fn = Fe + rt, Bn = "page", Wr = ["id", "createdAt", "created"];
|
|
2107
2136
|
function $t(t) {
|
|
2108
2137
|
var e = t ? new Date(t) : /* @__PURE__ */ new Date();
|
|
2109
2138
|
return [e.toISOString(), e.getTime()];
|
|
2110
2139
|
}
|
|
2111
|
-
function
|
|
2140
|
+
function qn() {
|
|
2112
2141
|
var t = $t(), e = t[0], r = t[1];
|
|
2113
2142
|
return { id: be(), created: r, createdAt: e };
|
|
2114
2143
|
}
|
|
2115
|
-
var
|
|
2116
|
-
function
|
|
2117
|
-
for (var r =
|
|
2118
|
-
var l = Wr[u], f =
|
|
2144
|
+
var as = { session: [za, Va], page: [fe, de] };
|
|
2145
|
+
function nt(t, e) {
|
|
2146
|
+
for (var r = as[t], n = r[0], i = r[1], s = qn(), a = !1, o = {}, u = 0; u < Wr.length; u++) {
|
|
2147
|
+
var l = Wr[u], f = Fe + t + Fe + rt + Fe + l, p = n(f);
|
|
2119
2148
|
a = e || !p, (e || !e && !p) && i(f, s[l]);
|
|
2120
2149
|
var g = p && !e ? p : s[l], b = l !== "created" ? g : Number(g);
|
|
2121
2150
|
o[l] = b;
|
|
@@ -2126,34 +2155,34 @@ function Zt(t, e) {
|
|
|
2126
2155
|
var r = Date.now();
|
|
2127
2156
|
return t.elapsed = r - t.created, t.expires && (t.remaining = Math.max(t.expires - r, 0), t.isExpired = t.remaining === 0), t.isNew = e, t;
|
|
2128
2157
|
}
|
|
2129
|
-
function
|
|
2158
|
+
function Ue(t, e) {
|
|
2130
2159
|
t === void 0 && (t = 30);
|
|
2131
|
-
var r =
|
|
2160
|
+
var r = Gt(Fn), n = r ? JSON.parse(r) : Xe(t);
|
|
2132
2161
|
return e ? n : Zt(n, !r);
|
|
2133
2162
|
}
|
|
2134
|
-
function
|
|
2163
|
+
function Xe(t, e, r) {
|
|
2135
2164
|
t === void 0 && (t = 30);
|
|
2136
|
-
var n = r ?
|
|
2165
|
+
var n = r ? Ue(t, !0) : qn(), i = 60 * t, s = n.created;
|
|
2137
2166
|
if (r) {
|
|
2138
2167
|
var a = $t(), o = a[0], u = a[1];
|
|
2139
2168
|
n.modified = u, n.modifiedAt = o, s = u;
|
|
2140
2169
|
}
|
|
2141
2170
|
var l = $t(s + 1e3 * i), f = l[0];
|
|
2142
|
-
return n.expires = l[1], n.expiresAt = f, n.duration = 1e3 * i, e && (n = Object.assign(n, e)),
|
|
2171
|
+
return n.expires = l[1], n.expiresAt = f, n.duration = 1e3 * i, e && (n = Object.assign(n, e)), Dn(Fn, JSON.stringify(n), i), Zt(n, !r);
|
|
2143
2172
|
}
|
|
2144
|
-
var
|
|
2145
|
-
return
|
|
2146
|
-
},
|
|
2147
|
-
function
|
|
2173
|
+
var ss = function(t, e) {
|
|
2174
|
+
return Xe(t, e, !0);
|
|
2175
|
+
}, Yn = nt.bind(null, rt), os = nt.bind(null, rt, !0), er = nt.bind(null, Bn), Hr = nt.bind(null, Bn, !0), ve = typeof window < "u";
|
|
2176
|
+
function us(t) {
|
|
2148
2177
|
return typeof t == "string";
|
|
2149
2178
|
}
|
|
2150
2179
|
function Kr(t) {
|
|
2151
2180
|
return typeof t == "boolean";
|
|
2152
2181
|
}
|
|
2153
|
-
var It,
|
|
2154
|
-
function
|
|
2155
|
-
if (
|
|
2156
|
-
|
|
2182
|
+
var It, Gr;
|
|
2183
|
+
function cs() {
|
|
2184
|
+
if (Gr) return It;
|
|
2185
|
+
Gr = 1;
|
|
2157
2186
|
var t = function(d) {
|
|
2158
2187
|
return e(d) && !r(d);
|
|
2159
2188
|
};
|
|
@@ -2226,9 +2255,9 @@ function us() {
|
|
|
2226
2255
|
var w = I;
|
|
2227
2256
|
return It = w, It;
|
|
2228
2257
|
}
|
|
2229
|
-
var
|
|
2230
|
-
const
|
|
2231
|
-
const Ct = new TextEncoder(),
|
|
2258
|
+
var ls = cs();
|
|
2259
|
+
const fs = /* @__PURE__ */ fn(ls);
|
|
2260
|
+
const Ct = new TextEncoder(), ds = {
|
|
2232
2261
|
appstream2: "appstream",
|
|
2233
2262
|
cloudhsmv2: "cloudhsm",
|
|
2234
2263
|
email: "ses",
|
|
@@ -2239,7 +2268,7 @@ const Ct = new TextEncoder(), fs = {
|
|
|
2239
2268
|
"git-codecommit": "codecommit",
|
|
2240
2269
|
"mturk-requester-sandbox": "mturk-requester",
|
|
2241
2270
|
"personalize-runtime": "personalize"
|
|
2242
|
-
},
|
|
2271
|
+
}, ps = /* @__PURE__ */ new Set([
|
|
2243
2272
|
"authorization",
|
|
2244
2273
|
"content-type",
|
|
2245
2274
|
"content-length",
|
|
@@ -2250,7 +2279,7 @@ const Ct = new TextEncoder(), fs = {
|
|
|
2250
2279
|
"range",
|
|
2251
2280
|
"connection"
|
|
2252
2281
|
]);
|
|
2253
|
-
class
|
|
2282
|
+
class gs {
|
|
2254
2283
|
constructor({ accessKeyId: e, secretAccessKey: r, sessionToken: n, service: i, region: s, cache: a, retries: o, initRetryMs: u }) {
|
|
2255
2284
|
if (e == null) throw new TypeError("accessKeyId is a required option");
|
|
2256
2285
|
if (r == null) throw new TypeError("secretAccessKey is a required option");
|
|
@@ -2261,7 +2290,7 @@ class ps {
|
|
|
2261
2290
|
const { method: s, url: a, headers: o, body: u } = e;
|
|
2262
2291
|
r = Object.assign({ method: s, url: a, headers: o }, r), r.body == null && o.has("Content-Type") && (r.body = u != null && o.has("X-Amz-Content-Sha256") ? u : await e.clone().arrayBuffer()), e = a;
|
|
2263
2292
|
}
|
|
2264
|
-
const n = new
|
|
2293
|
+
const n = new hs(Object.assign({ url: e.toString() }, r, this, r && r.aws)), i = Object.assign({}, r, await n.sign());
|
|
2265
2294
|
delete i.aws;
|
|
2266
2295
|
try {
|
|
2267
2296
|
return new Request(i.url.toString(), i);
|
|
@@ -2284,16 +2313,16 @@ class ps {
|
|
|
2284
2313
|
throw new Error("An unknown error occurred, ensure retries is not negative");
|
|
2285
2314
|
}
|
|
2286
2315
|
}
|
|
2287
|
-
class
|
|
2316
|
+
class hs {
|
|
2288
2317
|
constructor({ method: e, url: r, headers: n, body: i, accessKeyId: s, secretAccessKey: a, sessionToken: o, service: u, region: l, cache: f, datetime: p, signQuery: g, appendSessionToken: b, allHeaders: S, singleEncode: I }) {
|
|
2289
2318
|
if (r == null) throw new TypeError("url is a required option");
|
|
2290
2319
|
if (s == null) throw new TypeError("accessKeyId is a required option");
|
|
2291
2320
|
if (a == null) throw new TypeError("secretAccessKey is a required option");
|
|
2292
2321
|
this.method = e || (i ? "POST" : "GET"), this.url = new URL(r), this.headers = new Headers(n || {}), this.body = i, this.accessKeyId = s, this.secretAccessKey = a, this.sessionToken = o;
|
|
2293
2322
|
let w, y;
|
|
2294
|
-
(!u || !l) && ([w, y] =
|
|
2323
|
+
(!u || !l) && ([w, y] = ms(this.url, this.headers)), this.service = u || w || "", this.region = l || y || "us-east-1", this.cache = f || /* @__PURE__ */ new Map(), this.datetime = p || (/* @__PURE__ */ new Date()).toISOString().replace(/[:-]|\.\d{3}/g, ""), this.signQuery = g, this.appendSessionToken = b || 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");
|
|
2295
2324
|
const d = this.signQuery ? this.url.searchParams : this.headers;
|
|
2296
|
-
if (d.set("X-Amz-Date", this.datetime), this.sessionToken && !this.appendSessionToken && d.set("X-Amz-Security-Token", this.sessionToken), this.signableHeaders = ["host", ...this.headers.keys()].filter((v) => S || !
|
|
2325
|
+
if (d.set("X-Amz-Date", this.datetime), this.sessionToken && !this.appendSessionToken && d.set("X-Amz-Security-Token", this.sessionToken), this.signableHeaders = ["host", ...this.headers.keys()].filter((v) => S || !ps.has(v)).sort(), this.signedHeaders = this.signableHeaders.join(";"), this.canonicalHeaders = this.signableHeaders.map((v) => v + ":" + (v === "host" ? this.url.host : (this.headers.get(v) || "").replace(/\s+/g, " "))).join(`
|
|
2297
2326
|
`), this.credentialString = [this.datetime.slice(0, 8), this.region, this.service, "aws4_request"].join("/"), this.signQuery && (this.service === "s3" && !d.has("X-Amz-Expires") && d.set("X-Amz-Expires", "86400"), d.set("X-Amz-Algorithm", "AWS4-HMAC-SHA256"), d.set("X-Amz-Credential", this.accessKeyId + "/" + this.credentialString), d.set("X-Amz-SignedHeaders", this.signedHeaders)), this.service === "s3")
|
|
2298
2327
|
try {
|
|
2299
2328
|
this.encodedPath = decodeURIComponent(this.url.pathname.replace(/\+/g, " "));
|
|
@@ -2302,7 +2331,7 @@ class gs {
|
|
|
2302
2331
|
}
|
|
2303
2332
|
else
|
|
2304
2333
|
this.encodedPath = this.url.pathname.replace(/\/+/g, "/");
|
|
2305
|
-
I || (this.encodedPath = encodeURIComponent(this.encodedPath).replace(/%2F/g, "/")), this.encodedPath =
|
|
2334
|
+
I || (this.encodedPath = encodeURIComponent(this.encodedPath).replace(/%2F/g, "/")), this.encodedPath = qr(this.encodedPath);
|
|
2306
2335
|
const E = /* @__PURE__ */ new Set();
|
|
2307
2336
|
this.encodedSearch = [...this.url.searchParams].filter(([v]) => {
|
|
2308
2337
|
if (!v) return !1;
|
|
@@ -2311,7 +2340,7 @@ class gs {
|
|
|
2311
2340
|
E.add(v);
|
|
2312
2341
|
}
|
|
2313
2342
|
return !0;
|
|
2314
|
-
}).map((v) => v.map((m) =>
|
|
2343
|
+
}).map((v) => v.map((m) => qr(encodeURIComponent(m)))).sort(([v, m], [T, x]) => v < T ? -1 : v > T ? 1 : m < x ? -1 : m > x ? 1 : 0).map((v) => v.join("=")).join("&");
|
|
2315
2344
|
}
|
|
2316
2345
|
async sign() {
|
|
2317
2346
|
return this.signQuery ? (this.url.searchParams.set("X-Amz-Signature", await this.signature()), this.sessionToken && this.appendSessionToken && this.url.searchParams.set("X-Amz-Security-Token", this.sessionToken)) : this.headers.set("Authorization", await this.authHeader()), {
|
|
@@ -2342,7 +2371,7 @@ class gs {
|
|
|
2342
2371
|
"AWS4-HMAC-SHA256",
|
|
2343
2372
|
this.datetime,
|
|
2344
2373
|
this.credentialString,
|
|
2345
|
-
At(await
|
|
2374
|
+
At(await Fr(await this.canonicalString()))
|
|
2346
2375
|
].join(`
|
|
2347
2376
|
`);
|
|
2348
2377
|
}
|
|
@@ -2363,7 +2392,7 @@ class gs {
|
|
|
2363
2392
|
if (e == null) {
|
|
2364
2393
|
if (this.body && typeof this.body != "string" && !("byteLength" in this.body))
|
|
2365
2394
|
throw new Error("body must be a string, ArrayBuffer or ArrayBufferView, unless you include the X-Amz-Content-Sha256 header");
|
|
2366
|
-
e = At(await
|
|
2395
|
+
e = At(await Fr(this.body || ""));
|
|
2367
2396
|
}
|
|
2368
2397
|
return e;
|
|
2369
2398
|
}
|
|
@@ -2378,23 +2407,23 @@ async function je(t, e) {
|
|
|
2378
2407
|
);
|
|
2379
2408
|
return crypto.subtle.sign("HMAC", r, Ct.encode(e));
|
|
2380
2409
|
}
|
|
2381
|
-
async function
|
|
2410
|
+
async function Fr(t) {
|
|
2382
2411
|
return crypto.subtle.digest("SHA-256", typeof t == "string" ? Ct.encode(t) : t);
|
|
2383
2412
|
}
|
|
2384
|
-
const
|
|
2413
|
+
const Br = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
2385
2414
|
function At(t) {
|
|
2386
2415
|
const e = new Uint8Array(t);
|
|
2387
2416
|
let r = "";
|
|
2388
2417
|
for (let n = 0; n < e.length; n++) {
|
|
2389
2418
|
const i = e[n];
|
|
2390
|
-
r +=
|
|
2419
|
+
r += Br[i >>> 4 & 15], r += Br[i & 15];
|
|
2391
2420
|
}
|
|
2392
2421
|
return r;
|
|
2393
2422
|
}
|
|
2394
|
-
function
|
|
2423
|
+
function qr(t) {
|
|
2395
2424
|
return t.replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase());
|
|
2396
2425
|
}
|
|
2397
|
-
function
|
|
2426
|
+
function ms(t, e) {
|
|
2398
2427
|
const { hostname: r, pathname: n } = t;
|
|
2399
2428
|
if (r.endsWith(".on.aws")) {
|
|
2400
2429
|
const o = r.match(/^[^.]{1,63}\.lambda-url\.([^.]{1,63})\.on\.aws$/);
|
|
@@ -2418,14 +2447,14 @@ function hs(t, e) {
|
|
|
2418
2447
|
const o = (e.get("X-Amz-Target") || "").split(".")[0];
|
|
2419
2448
|
o === "AnyScaleFrontendService" ? s = "application-autoscaling" : o === "AnyScaleScalingPlannerFrontendService" && (s = "autoscaling-plans");
|
|
2420
2449
|
} else a == null && s.startsWith("s3-") ? (a = s.slice(3).replace(/^fips-|^external-1/, ""), s = "s3") : s.endsWith("-fips") ? s = s.slice(0, -5) : a && /-\d$/.test(s) && !/-\d$/.test(a) && ([s, a] = [a, s]);
|
|
2421
|
-
return [
|
|
2450
|
+
return [ds[s] || s, a || ""];
|
|
2422
2451
|
}
|
|
2423
2452
|
var tr = "Event", Yr = tr + "Listener";
|
|
2424
|
-
function
|
|
2453
|
+
function vs(t) {
|
|
2425
2454
|
return function(e, r, n, i) {
|
|
2426
|
-
var s = n ||
|
|
2455
|
+
var s = n || Fi, a = i || !1;
|
|
2427
2456
|
if (!Q) return s;
|
|
2428
|
-
var o =
|
|
2457
|
+
var o = Je(r), u = Je(e, !0);
|
|
2429
2458
|
if (!u.length) throw new Error("noElements");
|
|
2430
2459
|
if (!o.length) throw new Error("no" + tr);
|
|
2431
2460
|
var l = [];
|
|
@@ -2433,15 +2462,15 @@ function ms(t) {
|
|
|
2433
2462
|
p && (l = []);
|
|
2434
2463
|
for (var g = p ? "add" + Yr : "remove" + Yr, b = 0; b < u.length; b++) {
|
|
2435
2464
|
var S = u[b];
|
|
2436
|
-
l[b] = p ? a && a.once ?
|
|
2465
|
+
l[b] = p ? a && a.once ? ys(s) : s : l[b] || s;
|
|
2437
2466
|
for (var I = 0; I < o.length; I++) S[g] ? S["on" + o[I]] = p ? l[b] : null : S[g](o[I], l[b], a);
|
|
2438
2467
|
}
|
|
2439
2468
|
return f.bind(null, !p);
|
|
2440
2469
|
})(t);
|
|
2441
2470
|
};
|
|
2442
2471
|
}
|
|
2443
|
-
function
|
|
2444
|
-
if (ce(t)) return e ?
|
|
2472
|
+
function Je(t, e) {
|
|
2473
|
+
if (ce(t)) return e ? Je(document.querySelectorAll(t)) : (r = t).split(r.indexOf(",") > -1 ? "," : " ").map(function(a) {
|
|
2445
2474
|
return a.trim();
|
|
2446
2475
|
});
|
|
2447
2476
|
var r;
|
|
@@ -2449,30 +2478,30 @@ function Xe(t, e) {
|
|
|
2449
2478
|
for (var n = [], i = t.length >>> 0; i--; ) n[i] = t[i];
|
|
2450
2479
|
return n;
|
|
2451
2480
|
}
|
|
2452
|
-
var s =
|
|
2481
|
+
var s = sa(t);
|
|
2453
2482
|
return e ? s.map(function(a) {
|
|
2454
|
-
return ce(a) ?
|
|
2483
|
+
return ce(a) ? Je(a, !0) : a;
|
|
2455
2484
|
}).flat() : s;
|
|
2456
2485
|
}
|
|
2457
|
-
function
|
|
2486
|
+
function ys(t, e) {
|
|
2458
2487
|
var r;
|
|
2459
2488
|
return function() {
|
|
2460
2489
|
return t && (r = t.apply(this, arguments), t = null), r;
|
|
2461
2490
|
};
|
|
2462
2491
|
}
|
|
2463
|
-
var
|
|
2464
|
-
function
|
|
2492
|
+
var Pt = vs(tr);
|
|
2493
|
+
function Xn(t, e) {
|
|
2465
2494
|
return Q && Z(window[t]) ? (r = window[t], n = e, (i = window) === void 0 && (i = null), Z(r) ? function() {
|
|
2466
2495
|
r.apply(i, arguments), n.apply(i, arguments);
|
|
2467
2496
|
} : n) : window[t] = e;
|
|
2468
2497
|
var r, n, i;
|
|
2469
2498
|
}
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
var
|
|
2473
|
-
function
|
|
2474
|
-
if (
|
|
2475
|
-
var e =
|
|
2499
|
+
Xn.bind(null, "onerror");
|
|
2500
|
+
Xn.bind(null, "onload");
|
|
2501
|
+
var Jn = typeof window > "u", Xr = "hidden";
|
|
2502
|
+
function bs(t) {
|
|
2503
|
+
if (Jn) return !1;
|
|
2504
|
+
var e = ws(), r = "".concat(e.replace(/[H|h]idden/, ""), "visibilitychange"), n = function() {
|
|
2476
2505
|
return t(!!document[e]);
|
|
2477
2506
|
}, i = function() {
|
|
2478
2507
|
return document.addEventListener(r, n);
|
|
@@ -2481,15 +2510,15 @@ function ys(t) {
|
|
|
2481
2510
|
return document.removeEventListener(r, n), i;
|
|
2482
2511
|
};
|
|
2483
2512
|
}
|
|
2484
|
-
function
|
|
2513
|
+
function ws() {
|
|
2485
2514
|
var t = ["webkit", "moz", "ms", "o"];
|
|
2486
|
-
return
|
|
2515
|
+
return Jn || Xr in document ? Xr : t.reduce(function(e, r) {
|
|
2487
2516
|
var n = r + "Hidden";
|
|
2488
2517
|
return !e && n in document ? n : e;
|
|
2489
2518
|
}, null);
|
|
2490
2519
|
}
|
|
2491
|
-
var
|
|
2492
|
-
function
|
|
2520
|
+
var Ss = ["mousemove", "mousedown", "touchmove", "touchstart", "touchend", "keydown"];
|
|
2521
|
+
function Es(t, e) {
|
|
2493
2522
|
e === void 0 && (e = {});
|
|
2494
2523
|
var r = /* @__PURE__ */ (function(a, o) {
|
|
2495
2524
|
var u = this, l = !1;
|
|
@@ -2500,12 +2529,12 @@ function Ss(t, e) {
|
|
|
2500
2529
|
};
|
|
2501
2530
|
})(t, e.throttle || 1e4), n = [];
|
|
2502
2531
|
function i() {
|
|
2503
|
-
var a =
|
|
2532
|
+
var a = bs(function(o) {
|
|
2504
2533
|
o || r({ type: "tabVisible" });
|
|
2505
2534
|
});
|
|
2506
|
-
return n = [a].concat(
|
|
2507
|
-
return
|
|
2508
|
-
})).concat(
|
|
2535
|
+
return n = [a].concat(Ss.map(function(o) {
|
|
2536
|
+
return Pt(document, o, r);
|
|
2537
|
+
})).concat(Pt(window, "load", r)).concat(Pt(window, "scroll", r, { capture: !0, passive: !0 })), s;
|
|
2509
2538
|
}
|
|
2510
2539
|
function s() {
|
|
2511
2540
|
n.map(function(a) {
|
|
@@ -2516,7 +2545,7 @@ function Ss(t, e) {
|
|
|
2516
2545
|
return s(), i;
|
|
2517
2546
|
};
|
|
2518
2547
|
}
|
|
2519
|
-
function
|
|
2548
|
+
function Is(t) {
|
|
2520
2549
|
var e, r, n = t.onIdle, i = t.onWakeUp, s = t.onHeartbeat, a = t.timeout, o = a, u = t.throttle, l = u, f = !1, p = !1, g = /* @__PURE__ */ new Date(), b = function() {
|
|
2521
2550
|
return clearTimeout(e);
|
|
2522
2551
|
};
|
|
@@ -2525,7 +2554,7 @@ function Es(t) {
|
|
|
2525
2554
|
f = !0, n && (r = /* @__PURE__ */ new Date(), n(Ne(g), w));
|
|
2526
2555
|
}, o);
|
|
2527
2556
|
}
|
|
2528
|
-
var I =
|
|
2557
|
+
var I = Es(S, { throttle: l });
|
|
2529
2558
|
return { disable: function() {
|
|
2530
2559
|
p = !0, f = !1, b();
|
|
2531
2560
|
var w = I();
|
|
@@ -2539,7 +2568,7 @@ function Es(t) {
|
|
|
2539
2568
|
function Ne(t, e) {
|
|
2540
2569
|
return e ? 0 : Math.round((/* @__PURE__ */ new Date() - t) / 1e3);
|
|
2541
2570
|
}
|
|
2542
|
-
var
|
|
2571
|
+
var Qn = "object", As = "string", Jr = "?", Y = "name", X = "version", Ps = "", Qr = "function", Os = "undefined", xs = "BlackBerry", Ts = "Chrome", ks = "Firefox", Zr = {
|
|
2543
2572
|
ME: "4.90",
|
|
2544
2573
|
"NT 3.11": "NT3.51",
|
|
2545
2574
|
"NT 4.0": "NT4.0",
|
|
@@ -2551,7 +2580,7 @@ var Xn = "object", Is = "string", Jr = "?", Y = "name", X = "version", As = "",
|
|
|
2551
2580
|
"8.1": "NT 6.3",
|
|
2552
2581
|
10: ["NT 6.4", "NT 10.0"],
|
|
2553
2582
|
RT: "ARM"
|
|
2554
|
-
},
|
|
2583
|
+
}, js = [
|
|
2555
2584
|
[
|
|
2556
2585
|
/* Windows */
|
|
2557
2586
|
// Windows (iTunes)
|
|
@@ -2592,17 +2621,17 @@ var Xn = "object", Is = "string", Jr = "?", Y = "name", X = "version", As = "",
|
|
|
2592
2621
|
[Y, X],
|
|
2593
2622
|
// BlackBerry 10
|
|
2594
2623
|
[/\(bb(10);/i],
|
|
2595
|
-
[X, [Y,
|
|
2624
|
+
[X, [Y, xs]],
|
|
2596
2625
|
// Firefox OS
|
|
2597
2626
|
[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],
|
|
2598
|
-
[X, [Y,
|
|
2627
|
+
[X, [Y, ks + " OS"]],
|
|
2599
2628
|
// WebOS
|
|
2600
2629
|
[/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],
|
|
2601
2630
|
[X, [Y, "webOS"]],
|
|
2602
2631
|
// Google Chromecast
|
|
2603
2632
|
[/crkey\/([\d\.]+)/i],
|
|
2604
2633
|
// Google Chromecast
|
|
2605
|
-
[X, [Y,
|
|
2634
|
+
[X, [Y, Ts + "cast"]],
|
|
2606
2635
|
// Chromium OS
|
|
2607
2636
|
[/(cros) [\w]+ ([\w\.]+\w)/i],
|
|
2608
2637
|
[[Y, "Chromium OS"], X],
|
|
@@ -2621,19 +2650,19 @@ var Xn = "object", Is = "string", Jr = "?", Y = "name", X = "version", As = "",
|
|
|
2621
2650
|
],
|
|
2622
2651
|
[Y, X]
|
|
2623
2652
|
];
|
|
2624
|
-
function
|
|
2653
|
+
function Ns(t, e) {
|
|
2625
2654
|
for (var r = 0, n, i, s, a, o, u; r < e.length && !o; ) {
|
|
2626
2655
|
var l = e[r], f = e[r + 1];
|
|
2627
2656
|
for (n = i = 0; n < l.length && !o; )
|
|
2628
2657
|
if (o = l[n++].exec(t), o)
|
|
2629
2658
|
for (s = 0; s < f.length; s++)
|
|
2630
|
-
u = o[++i], a = f[s], ee(a) ===
|
|
2659
|
+
u = o[++i], a = f[s], ee(a) === Qn && a.length > 0 ? a.length == 2 ? ee(a[1]) == Qr ? this[a[0]] = a[1].call(this, u) : this[a[0]] = a[1] : a.length == 3 ? ee(a[1]) === Qr && !(a[1].exec && a[1].test) ? this[a[0]] = u ? a[1].call(this, u, a[2]) : void 0 : this[a[0]] = u ? u.replace(a[1], a[2]) : void 0 : a.length == 4 && (this[a[0]] = u ? a[3].call(this, u.replace(a[1], a[2])) : void 0) : this[a] = u || void 0;
|
|
2631
2660
|
r += 2;
|
|
2632
2661
|
}
|
|
2633
2662
|
}
|
|
2634
2663
|
function en(t, e) {
|
|
2635
2664
|
for (var r in e)
|
|
2636
|
-
if (ee(e[r]) ===
|
|
2665
|
+
if (ee(e[r]) === Qn && e[r].length > 0) {
|
|
2637
2666
|
for (var n = 0; n < e[r].length; n++)
|
|
2638
2667
|
if (tn(e[r][n], t))
|
|
2639
2668
|
return r === Jr ? void 0 : r;
|
|
@@ -2642,43 +2671,43 @@ function en(t, e) {
|
|
|
2642
2671
|
return t;
|
|
2643
2672
|
}
|
|
2644
2673
|
function tn(t, e) {
|
|
2645
|
-
return ee(t) ===
|
|
2674
|
+
return ee(t) === As ? rn(e).indexOf(rn(t)) !== -1 : !1;
|
|
2646
2675
|
}
|
|
2647
2676
|
function rn(t) {
|
|
2648
2677
|
return t.toLowerCase();
|
|
2649
2678
|
}
|
|
2650
|
-
function
|
|
2651
|
-
var e = (typeof window > "u" ? "undefined" : ee(window)) !== Os && window.navigator && window.navigator.userAgent ? window.navigator.userAgent :
|
|
2652
|
-
return r[Y] = void 0, r[X] = void 0,
|
|
2679
|
+
function Ms(t) {
|
|
2680
|
+
var e = (typeof window > "u" ? "undefined" : ee(window)) !== Os && window.navigator && window.navigator.userAgent ? window.navigator.userAgent : Ps, r = {};
|
|
2681
|
+
return r[Y] = void 0, r[X] = void 0, Ns.call(r, e, js), r;
|
|
2653
2682
|
}
|
|
2654
|
-
var
|
|
2683
|
+
var Zn = "Brave";
|
|
2655
2684
|
function rr() {
|
|
2656
2685
|
if (typeof window > "u")
|
|
2657
2686
|
return {};
|
|
2658
2687
|
if (!window.navigator)
|
|
2659
2688
|
return {};
|
|
2660
|
-
var t = window.navigator, e = t.platform, r = t.product, n = t.vendor, i =
|
|
2689
|
+
var t = window.navigator, e = t.platform, r = t.product, n = t.vendor, i = _s(window.navigator), s = i.type, a = i.version, o = s === Zn ? s : (n || "").split(" ")[0];
|
|
2661
2690
|
return {
|
|
2662
2691
|
platform: e,
|
|
2663
|
-
os:
|
|
2692
|
+
os: Ms(),
|
|
2664
2693
|
make: o || r,
|
|
2665
2694
|
// product always gecko
|
|
2666
2695
|
model: s,
|
|
2667
2696
|
version: a,
|
|
2668
2697
|
name: [s, a].join("/"),
|
|
2669
|
-
language:
|
|
2670
|
-
timezone:
|
|
2698
|
+
language: $s(),
|
|
2699
|
+
timezone: Cs()
|
|
2671
2700
|
};
|
|
2672
2701
|
}
|
|
2673
|
-
function
|
|
2702
|
+
function $s() {
|
|
2674
2703
|
var t = window.navigator, e = t.language, r = t.browserLanguage, n = t.languages;
|
|
2675
2704
|
return (e || r || (n || ["en_US"])[0]).toLowerCase().replace("-", "_");
|
|
2676
2705
|
}
|
|
2677
|
-
function
|
|
2706
|
+
function Cs() {
|
|
2678
2707
|
var t = /\(([A-Za-z\s].*)\)/.exec((/* @__PURE__ */ new Date()).toString());
|
|
2679
2708
|
return t && t[1] || "";
|
|
2680
2709
|
}
|
|
2681
|
-
function
|
|
2710
|
+
function _s(t) {
|
|
2682
2711
|
var e = t.userAgent, r = /.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);
|
|
2683
2712
|
if (r)
|
|
2684
2713
|
return {
|
|
@@ -2701,7 +2730,7 @@ function Cs(t) {
|
|
|
2701
2730
|
if (s) {
|
|
2702
2731
|
var a = t.brave && t.brave.isBrave || !1;
|
|
2703
2732
|
return {
|
|
2704
|
-
type: a ?
|
|
2733
|
+
type: a ? Zn : s[1],
|
|
2705
2734
|
version: s[2]
|
|
2706
2735
|
};
|
|
2707
2736
|
}
|
|
@@ -2723,7 +2752,7 @@ function Cs(t) {
|
|
|
2723
2752
|
version: f[2]
|
|
2724
2753
|
};
|
|
2725
2754
|
}
|
|
2726
|
-
function
|
|
2755
|
+
function Ds(t) {
|
|
2727
2756
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2728
2757
|
return e[t] || t;
|
|
2729
2758
|
}
|
|
@@ -2743,9 +2772,9 @@ function Dt() {
|
|
|
2743
2772
|
f.next = 13;
|
|
2744
2773
|
break;
|
|
2745
2774
|
}
|
|
2746
|
-
return i = f.t1.value, s = Array.isArray(e[i]) ? e[i] : [e[i]], a = r ? s : s[0], f.next = 9,
|
|
2775
|
+
return i = f.t1.value, s = Array.isArray(e[i]) ? e[i] : [e[i]], a = r ? s : s[0], f.next = 9, ti(a, Us);
|
|
2747
2776
|
case 9:
|
|
2748
|
-
o = f.sent,
|
|
2777
|
+
o = f.sent, ri(o) || (n[i] = o), f.next = 3;
|
|
2749
2778
|
break;
|
|
2750
2779
|
case 13:
|
|
2751
2780
|
return f.abrupt("return", n);
|
|
@@ -2756,11 +2785,11 @@ function Dt() {
|
|
|
2756
2785
|
}, t);
|
|
2757
2786
|
})), Dt.apply(this, arguments);
|
|
2758
2787
|
}
|
|
2759
|
-
function
|
|
2760
|
-
return
|
|
2788
|
+
function ei(t) {
|
|
2789
|
+
return Ut.apply(this, arguments);
|
|
2761
2790
|
}
|
|
2762
|
-
function
|
|
2763
|
-
return
|
|
2791
|
+
function Ut() {
|
|
2792
|
+
return Ut = re(/* @__PURE__ */ K.mark(function t(e) {
|
|
2764
2793
|
var r, n;
|
|
2765
2794
|
return K.wrap(function(s) {
|
|
2766
2795
|
for (; ; )
|
|
@@ -2772,7 +2801,7 @@ function Rt() {
|
|
|
2772
2801
|
s.next = 9;
|
|
2773
2802
|
break;
|
|
2774
2803
|
}
|
|
2775
|
-
return n = s.t1.value, s.next = 6,
|
|
2804
|
+
return n = s.t1.value, s.next = 6, ti(e[n], Rs);
|
|
2776
2805
|
case 6:
|
|
2777
2806
|
r[n] = s.sent, s.next = 2;
|
|
2778
2807
|
break;
|
|
@@ -2783,13 +2812,13 @@ function Rt() {
|
|
|
2783
2812
|
return s.stop();
|
|
2784
2813
|
}
|
|
2785
2814
|
}, t);
|
|
2786
|
-
})),
|
|
2815
|
+
})), Ut.apply(this, arguments);
|
|
2787
2816
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2817
|
+
function ti(t, e) {
|
|
2818
|
+
return Rt.apply(this, arguments);
|
|
2790
2819
|
}
|
|
2791
|
-
function
|
|
2792
|
-
return
|
|
2820
|
+
function Rt() {
|
|
2821
|
+
return Rt = re(/* @__PURE__ */ K.mark(function t(e, r) {
|
|
2793
2822
|
return K.wrap(function(i) {
|
|
2794
2823
|
for (; ; )
|
|
2795
2824
|
switch (i.prev = i.next) {
|
|
@@ -2808,36 +2837,36 @@ function Ut() {
|
|
|
2808
2837
|
return i.stop();
|
|
2809
2838
|
}
|
|
2810
2839
|
}, t);
|
|
2811
|
-
})),
|
|
2840
|
+
})), Rt.apply(this, arguments);
|
|
2812
2841
|
}
|
|
2813
|
-
function
|
|
2842
|
+
function Us(t) {
|
|
2814
2843
|
if (t != null)
|
|
2815
|
-
return Array.isArray(t) ? t.filter(
|
|
2844
|
+
return Array.isArray(t) ? t.filter(zs).map(function(e) {
|
|
2816
2845
|
return e.toString();
|
|
2817
|
-
}) :
|
|
2846
|
+
}) : ri(t) ? t : t.toString();
|
|
2818
2847
|
}
|
|
2819
2848
|
function Rs(t) {
|
|
2820
2849
|
return parseFloat(Number(Array.isArray(t) ? t[0] : t));
|
|
2821
2850
|
}
|
|
2822
|
-
function
|
|
2851
|
+
function zs(t) {
|
|
2823
2852
|
return t !== null && typeof t < "u";
|
|
2824
2853
|
}
|
|
2825
|
-
function
|
|
2854
|
+
function ri(t) {
|
|
2826
2855
|
return t == null;
|
|
2827
2856
|
}
|
|
2828
|
-
var zt = "_session.start",
|
|
2829
|
-
function
|
|
2857
|
+
var zt = "_session.start", it = "_session.stop", ni = "pageView";
|
|
2858
|
+
function Vs(t) {
|
|
2830
2859
|
return Vt.apply(this, arguments);
|
|
2831
2860
|
}
|
|
2832
2861
|
function Vt() {
|
|
2833
2862
|
return Vt = re(/* @__PURE__ */ K.mark(function t(e) {
|
|
2834
|
-
var r, n, i, s, a, o, u, l, f, p, g, b, S, I, w, y, d, E, v, m, T, x, A, $, k, _, z, V, C,
|
|
2863
|
+
var r, n, i, s, a, o, u, l, f, p, g, b, S, I, w, y, d, E, v, m, T, x, A, $, k, _, z, V, C, P, W, U = arguments;
|
|
2835
2864
|
return K.wrap(function(c) {
|
|
2836
2865
|
for (; ; )
|
|
2837
2866
|
switch (c.prev = c.next) {
|
|
2838
2867
|
case 0:
|
|
2839
|
-
if (r =
|
|
2840
|
-
}, g =
|
|
2868
|
+
if (r = U.length > 1 && U[1] !== void 0 ? U[1] : {}, n = U.length > 2 && U[2] !== void 0 ? U[2] : {}, i = n.appTitle, s = n.appPackageName, a = n.appVersionCode, o = n.eventMapping, u = n.enrichEventAttributes, l = n.enrichEventMetrics, f = n.debug, p = f ? console.log : function() {
|
|
2869
|
+
}, g = Ds(e, o), b = Ue(), S = r.sessionId || b.id, I = r.sessionStart || b.createdAt, w = r.sessionStart ? new Date(r.sessionStart).getTime() : b.created, p("event sessionData ", JSON.stringify(b)), ve && (y = er(), d = Yn(), p("event pageSessionInfo", JSON.stringify(y)), p("event tabSessionData ", JSON.stringify(d))), E = r.attributes || {}, v = r.eventId || be(), m = r.time ? new Date(r.time) : /* @__PURE__ */ new Date(), T = m.toISOString(), x = m.getTime() - w, A = B({
|
|
2841
2870
|
date: T,
|
|
2842
2871
|
sessionId: S
|
|
2843
2872
|
}, ve ? {
|
|
@@ -2853,7 +2882,7 @@ function Vt() {
|
|
|
2853
2882
|
case 23:
|
|
2854
2883
|
c.t0 = {};
|
|
2855
2884
|
case 24:
|
|
2856
|
-
if ($ = c.t0, k =
|
|
2885
|
+
if ($ = c.t0, k = B(B(B({}, A), $), E), _ = r.metrics || {}, z = {
|
|
2857
2886
|
/* Time of session */
|
|
2858
2887
|
sessionTime: b.elapsed || x,
|
|
2859
2888
|
/* Date metrics */
|
|
@@ -2872,14 +2901,14 @@ function Vt() {
|
|
|
2872
2901
|
case 34:
|
|
2873
2902
|
c.t1 = {};
|
|
2874
2903
|
case 35:
|
|
2875
|
-
return V = c.t1, C =
|
|
2904
|
+
return V = c.t1, C = B(B(B({}, z), V), _), c.next = 39, _t(k);
|
|
2876
2905
|
case 39:
|
|
2877
|
-
return c.t2 = c.sent, c.next = 42,
|
|
2906
|
+
return c.t2 = c.sent, c.next = 42, ei(C);
|
|
2878
2907
|
case 42:
|
|
2879
|
-
return c.t3 = c.sent,
|
|
2908
|
+
return c.t3 = c.sent, P = {
|
|
2880
2909
|
attributes: c.t2,
|
|
2881
2910
|
metrics: c.t3
|
|
2882
|
-
}, p("".concat(v, ":").concat(g)), p("eventAttributes",
|
|
2911
|
+
}, p("".concat(v, ":").concat(g)), p("eventAttributes", P.attributes), p("eventMetrics", P.metrics), ve && p("clientInfo", rr()), W = Qt({}, v, B(B({
|
|
2883
2912
|
/* The name of the event */
|
|
2884
2913
|
EventType: g,
|
|
2885
2914
|
/* The date and time, in ISO 8601 format, when the event occurred. */
|
|
@@ -2892,13 +2921,13 @@ function Vt() {
|
|
|
2892
2921
|
AppVersionCode: a
|
|
2893
2922
|
} : {}), {}, {
|
|
2894
2923
|
/* Event attributes - One or more custom attributes that are associated with the event. */
|
|
2895
|
-
Attributes:
|
|
2924
|
+
Attributes: P.attributes,
|
|
2896
2925
|
/* The version of the SDK that's running on the client device. */
|
|
2897
2926
|
// ClientSdkVersion: 'STRING_VALUE',
|
|
2898
2927
|
/* The name of the SDK that's being used to record the event. */
|
|
2899
2928
|
// SdkName: 'STRING_VALUE',
|
|
2900
2929
|
/* Event metrics - One or more custom metrics that are associated with the event. */
|
|
2901
|
-
Metrics:
|
|
2930
|
+
Metrics: P.metrics,
|
|
2902
2931
|
Session: {
|
|
2903
2932
|
/* SessionId is required */
|
|
2904
2933
|
Id: S,
|
|
@@ -2906,7 +2935,7 @@ function Vt() {
|
|
|
2906
2935
|
StartTimestamp: I
|
|
2907
2936
|
// ISOString
|
|
2908
2937
|
}
|
|
2909
|
-
})), e ===
|
|
2938
|
+
})), e === it && (W[v].Session.Duration = x, W[v].Session.StopTimestamp = T), c.abrupt("return", W);
|
|
2910
2939
|
case 51:
|
|
2911
2940
|
case "end":
|
|
2912
2941
|
return c.stop();
|
|
@@ -2914,9 +2943,9 @@ function Vt() {
|
|
|
2914
2943
|
}, t);
|
|
2915
2944
|
})), Vt.apply(this, arguments);
|
|
2916
2945
|
}
|
|
2917
|
-
var
|
|
2918
|
-
function
|
|
2919
|
-
return "".concat(
|
|
2946
|
+
var Ls = "__endpoint";
|
|
2947
|
+
function at(t) {
|
|
2948
|
+
return "".concat(Ls, ".").concat(t);
|
|
2920
2949
|
}
|
|
2921
2950
|
var nn = "__endpoint", an = !1;
|
|
2922
2951
|
function nr() {
|
|
@@ -2929,9 +2958,9 @@ function Lt() {
|
|
|
2929
2958
|
for (; ; )
|
|
2930
2959
|
switch (A.prev = A.next) {
|
|
2931
2960
|
case 0:
|
|
2932
|
-
return e = T.length > 0 && T[0] !== void 0 ? T[0] : {}, r = T.length > 1 && T[1] !== void 0 ? T[1] : {}, n = r.getUserId, i = r.getEndpointId, s = r.endpointMigration, a =
|
|
2961
|
+
return e = T.length > 0 && T[0] !== void 0 ? T[0] : {}, r = T.length > 1 && T[1] !== void 0 ? T[1] : {}, n = r.getUserId, i = r.getEndpointId, s = r.endpointMigration, a = qs(r), o = a.sessionKey ? a.sessionKey() : "sessions", u = a.pageViewKey ? a.pageViewKey() : "pageViews", ve && (p = rr(), l = er(), f = l.id), g = Ue(), A.next = 10, i();
|
|
2933
2962
|
case 10:
|
|
2934
|
-
if (b = A.sent, an || (an = !0, S =
|
|
2963
|
+
if (b = A.sent, an || (an = !0, S = Ft(nn), S && (Ot(b, S), zn(nn))), I = Ws(b), w = Fs(r), y = Hs(w, p), d = {
|
|
2935
2964
|
Attributes: {},
|
|
2936
2965
|
Demographic: y,
|
|
2937
2966
|
Location: {
|
|
@@ -2952,8 +2981,8 @@ function Lt() {
|
|
|
2952
2981
|
* NONE - Users has not opted out and receives all messages.
|
|
2953
2982
|
*/
|
|
2954
2983
|
// OptOut: 'STRING_VALUE',
|
|
2955
|
-
}, ve && (p.device && p.device.vendor && (d.Attributes.DeviceMake = [p.device.vendor]), p.device && p.device.model && (d.Attributes.DeviceModel = [p.device.model]), p.device && p.device.type && (d.Attributes.DeviceType = [p.device.type])), e =
|
|
2956
|
-
arrayMerge:
|
|
2984
|
+
}, ve && (p.device && p.device.vendor && (d.Attributes.DeviceMake = [p.device.vendor]), p.device && p.device.model && (d.Attributes.DeviceModel = [p.device.model]), p.device && p.device.type && (d.Attributes.DeviceType = [p.device.type])), e = fs.all([I, d, e], {
|
|
2985
|
+
arrayMerge: Bs
|
|
2957
2986
|
// TODO maybe change array merge
|
|
2958
2987
|
}), !(e.User && e.User.UserId)) {
|
|
2959
2988
|
A.next = 23;
|
|
@@ -2981,15 +3010,15 @@ function Lt() {
|
|
|
2981
3010
|
case 32:
|
|
2982
3011
|
return A.next = 34, _t(e.Attributes, !0);
|
|
2983
3012
|
case 34:
|
|
2984
|
-
return e.Attributes = A.sent, A.next = 37,
|
|
3013
|
+
return e.Attributes = A.sent, A.next = 37, ei(e.Metrics);
|
|
2985
3014
|
case 37:
|
|
2986
3015
|
if (e.Metrics = A.sent, e.Metrics[o] || (e.Metrics[o] = 1), e.Metrics[u] || (e.Metrics[u] = 1), s && (e = s(b, e)), m = e.Attributes.lastSession, m) {
|
|
2987
3016
|
A.next = 47;
|
|
2988
3017
|
break;
|
|
2989
3018
|
}
|
|
2990
|
-
return e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], f && (e.Attributes.lastPageSession = [f]), A.abrupt("return",
|
|
3019
|
+
return e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], f && (e.Attributes.lastPageSession = [f]), A.abrupt("return", Ot(b, e));
|
|
2991
3020
|
case 47:
|
|
2992
|
-
return m && m[0] !== g.id && (e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], e.Metrics[o] += 1), e.Attributes && e.Attributes.lastPageSession && Array.isArray(e.Attributes.lastPageSession) && e.Attributes.lastPageSession.length > 0 && e.Attributes.lastPageSession[0] !== f && (e.Attributes.lastPageSession = [f], e.Metrics[u] += 1), A.abrupt("return",
|
|
3021
|
+
return m && m[0] !== g.id && (e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], e.Metrics[o] += 1), e.Attributes && e.Attributes.lastPageSession && Array.isArray(e.Attributes.lastPageSession) && e.Attributes.lastPageSession.length > 0 && e.Attributes.lastPageSession[0] !== f && (e.Attributes.lastPageSession = [f], e.Metrics[u] += 1), A.abrupt("return", Ot(b, e));
|
|
2993
3022
|
case 50:
|
|
2994
3023
|
case "end":
|
|
2995
3024
|
return A.stop();
|
|
@@ -2997,21 +3026,21 @@ function Lt() {
|
|
|
2997
3026
|
}, t);
|
|
2998
3027
|
})), Lt.apply(this, arguments);
|
|
2999
3028
|
}
|
|
3000
|
-
function
|
|
3001
|
-
var r =
|
|
3002
|
-
return
|
|
3029
|
+
function Ot(t, e) {
|
|
3030
|
+
var r = at(t), n = us(e) ? e : JSON.stringify(e);
|
|
3031
|
+
return Ua(r, n), e;
|
|
3003
3032
|
}
|
|
3004
|
-
function
|
|
3033
|
+
function Ws(t) {
|
|
3005
3034
|
try {
|
|
3006
|
-
return JSON.parse(
|
|
3035
|
+
return JSON.parse(Ft(at(t))) || {};
|
|
3007
3036
|
} catch {
|
|
3008
3037
|
}
|
|
3009
3038
|
return {};
|
|
3010
3039
|
}
|
|
3011
|
-
function
|
|
3012
|
-
return ve ?
|
|
3040
|
+
function Hs(t, e) {
|
|
3041
|
+
return ve ? Gs(t, e) : Ks(t);
|
|
3013
3042
|
}
|
|
3014
|
-
function
|
|
3043
|
+
function Ks(t) {
|
|
3015
3044
|
var e = {
|
|
3016
3045
|
AppVersion: t,
|
|
3017
3046
|
Make: "generic server",
|
|
@@ -3020,7 +3049,7 @@ function Hs(t) {
|
|
|
3020
3049
|
};
|
|
3021
3050
|
return e;
|
|
3022
3051
|
}
|
|
3023
|
-
function
|
|
3052
|
+
function Gs(t, e) {
|
|
3024
3053
|
var r = {
|
|
3025
3054
|
// AppTitle/0.0.0. Maps to application.version_name in kinesis stream
|
|
3026
3055
|
AppVersion: t,
|
|
@@ -3042,18 +3071,18 @@ function Ks(t, e) {
|
|
|
3042
3071
|
};
|
|
3043
3072
|
return e.os && e.os.version && (r.PlatformVersion = e.os.version), r;
|
|
3044
3073
|
}
|
|
3045
|
-
function
|
|
3074
|
+
function Fs(t) {
|
|
3046
3075
|
var e = t.appTitle || t.appPackageName || "", r = t.appVersionCode || "0.0.0";
|
|
3047
3076
|
return e ? "".concat(e, "@").concat(r) : r;
|
|
3048
3077
|
}
|
|
3049
|
-
function
|
|
3078
|
+
function Bs(t, e) {
|
|
3050
3079
|
return e;
|
|
3051
3080
|
}
|
|
3052
|
-
function
|
|
3081
|
+
function qs(t) {
|
|
3053
3082
|
var e = t.getContext;
|
|
3054
3083
|
return typeof e == "function" ? e() : e;
|
|
3055
3084
|
}
|
|
3056
|
-
function
|
|
3085
|
+
function Ys(t) {
|
|
3057
3086
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3058
3087
|
return /* @__PURE__ */ (function() {
|
|
3059
3088
|
var r = re(/* @__PURE__ */ K.mark(function i(s) {
|
|
@@ -3062,9 +3091,9 @@ function Bs(t) {
|
|
|
3062
3091
|
for (; ; )
|
|
3063
3092
|
switch (g.prev = g.next) {
|
|
3064
3093
|
case 0:
|
|
3065
|
-
return a = f.length > 1 && f[1] !== void 0 ? f[1] : {}, o = f.length > 2 && f[2] !== void 0 ? f[2] : {}, u = f.length > 3 && f[3] !== void 0 ? f[3] : !1, Kr(a) && (a = {}, u = a), Kr(o) && (o = {}, u = o), g.next = 7,
|
|
3094
|
+
return a = f.length > 1 && f[1] !== void 0 ? f[1] : {}, o = f.length > 2 && f[2] !== void 0 ? f[2] : {}, u = f.length > 3 && f[3] !== void 0 ? f[3] : !1, Kr(a) && (a = {}, u = a), Kr(o) && (o = {}, u = o), g.next = 7, Vs(s, a, e);
|
|
3066
3095
|
case 7:
|
|
3067
|
-
if (l = g.sent, !(Object.entries(o).length || s ===
|
|
3096
|
+
if (l = g.sent, !(Object.entries(o).length || s === ni)) {
|
|
3068
3097
|
g.next = 12;
|
|
3069
3098
|
break;
|
|
3070
3099
|
}
|
|
@@ -3089,8 +3118,8 @@ function Bs(t) {
|
|
|
3089
3118
|
return n;
|
|
3090
3119
|
})();
|
|
3091
3120
|
}
|
|
3092
|
-
var sn,
|
|
3093
|
-
function
|
|
3121
|
+
var sn, Xs = [429, 500], Js = [202], Qs = 400;
|
|
3122
|
+
function Zs(t, e) {
|
|
3094
3123
|
return Wt.apply(this, arguments);
|
|
3095
3124
|
}
|
|
3096
3125
|
function Wt() {
|
|
@@ -3100,11 +3129,11 @@ function Wt() {
|
|
|
3100
3129
|
for (; ; )
|
|
3101
3130
|
switch (x.prev = x.next) {
|
|
3102
3131
|
case 0:
|
|
3103
|
-
return n = r.pinpointRegion, i = r.pinpointAppId, s = r.lambdaArn, a = r.lambdaRegion, o = r.credentials, u = r.getCredentials, l = r.debug, x.next = 3,
|
|
3132
|
+
return n = r.pinpointRegion, i = r.pinpointAppId, s = r.lambdaArn, a = r.lambdaRegion, o = r.credentials, u = r.getCredentials, l = r.debug, x.next = 3, eo(o, u);
|
|
3104
3133
|
case 3:
|
|
3105
3134
|
return f = x.sent, l && console.log("pinpoint auth", f), p = a || n, g = n || a, b = r.fips === !0 ? "-fips" : "", S = "https://lambda.".concat(p, ".amazonaws.com/2015-03-31/functions/").concat(s, "/invocations"), I = "https://pinpoint".concat(b, ".").concat(g, ".amazonaws.com/v1/apps/").concat(i, "/events"), w = s ? S : I, E = {
|
|
3106
3135
|
body: JSON.stringify(e)
|
|
3107
|
-
}, y = new
|
|
3136
|
+
}, y = new gs(f), x.next = 16, y.fetch(w, E).then(function(A) {
|
|
3108
3137
|
return A.json();
|
|
3109
3138
|
});
|
|
3110
3139
|
case 16:
|
|
@@ -3125,7 +3154,7 @@ function Wt() {
|
|
|
3125
3154
|
return d.Results[A];
|
|
3126
3155
|
}), m.forEach(function(A) {
|
|
3127
3156
|
var $ = A.EndpointItemResponse || {}, k = A.EventsItemResponse || {};
|
|
3128
|
-
Object.keys($).length && (
|
|
3157
|
+
Object.keys($).length && (Js.includes($.StatusCode) || Xs.includes($.StatusCode) || to($, Endpoint));
|
|
3129
3158
|
var _ = Object.keys(k);
|
|
3130
3159
|
_.length && _.forEach(function(z) {
|
|
3131
3160
|
});
|
|
@@ -3137,7 +3166,7 @@ function Wt() {
|
|
|
3137
3166
|
}, t);
|
|
3138
3167
|
})), Wt.apply(this, arguments);
|
|
3139
3168
|
}
|
|
3140
|
-
function
|
|
3169
|
+
function eo(t, e) {
|
|
3141
3170
|
return Ht.apply(this, arguments);
|
|
3142
3171
|
}
|
|
3143
3172
|
function Ht() {
|
|
@@ -3172,16 +3201,16 @@ function Ht() {
|
|
|
3172
3201
|
}, t, null, [[2, 8]]);
|
|
3173
3202
|
})), Ht.apply(this, arguments);
|
|
3174
3203
|
}
|
|
3175
|
-
function
|
|
3204
|
+
function to(t, e) {
|
|
3176
3205
|
var r = t.StatusCode, n = t.Message;
|
|
3177
|
-
if (r ===
|
|
3206
|
+
if (r === Qs) {
|
|
3178
3207
|
if (n.startsWith("Missing ChannelType"))
|
|
3179
3208
|
throw new Error("Missing ChannelType");
|
|
3180
3209
|
if (n.startsWith("Exceeded maximum endpoint per user count"))
|
|
3181
3210
|
throw new Error("Exceeded maximum endpoint per user count");
|
|
3182
3211
|
}
|
|
3183
3212
|
}
|
|
3184
|
-
var
|
|
3213
|
+
var ro = [
|
|
3185
3214
|
"PUSH",
|
|
3186
3215
|
"GCM",
|
|
3187
3216
|
"APNS",
|
|
@@ -3195,13 +3224,13 @@ var to = [
|
|
|
3195
3224
|
"BAIDU",
|
|
3196
3225
|
"CUSTOM"
|
|
3197
3226
|
// 'IN_APP' what is this?
|
|
3198
|
-
], xt =
|
|
3227
|
+
], xt = ro.reduce(function(t, e) {
|
|
3199
3228
|
return t[e] = e, t;
|
|
3200
|
-
}, {}),
|
|
3201
|
-
function
|
|
3202
|
-
return
|
|
3229
|
+
}, {}), no = rr(), on = zt, un = it, io = /.+\@.+\..+/;
|
|
3230
|
+
function ao(t) {
|
|
3231
|
+
return io.test(t);
|
|
3203
3232
|
}
|
|
3204
|
-
function
|
|
3233
|
+
function so() {
|
|
3205
3234
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getEndpointId, r = t.debug;
|
|
3206
3235
|
return /* @__PURE__ */ (function() {
|
|
3207
3236
|
var n = re(/* @__PURE__ */ K.mark(function s() {
|
|
@@ -3222,14 +3251,14 @@ function ao() {
|
|
|
3222
3251
|
d.next = 13;
|
|
3223
3252
|
break;
|
|
3224
3253
|
}
|
|
3225
|
-
d.t0 =
|
|
3254
|
+
d.t0 = oo(u), d.next = 16;
|
|
3226
3255
|
break;
|
|
3227
3256
|
case 13:
|
|
3228
3257
|
return d.next = 15, nr(o, t);
|
|
3229
3258
|
case 15:
|
|
3230
3259
|
d.t0 = d.sent;
|
|
3231
3260
|
case 16:
|
|
3232
|
-
return f = d.t0, p = f.ChannelType, f.Address &&
|
|
3261
|
+
return f = d.t0, p = f.ChannelType, f.Address && ao(f.Address) && (p = xt.EMAIL), !p && f.Address && (no.platform === "android" ? p = p || xt.GCM : p = p || xt.APNS), r && (console.log("Endpoint", f), console.log("CHANNEL_TYPE", p)), f.RequestId = be(), f.ChannelType = p, f.Address && (f.OptOut = f.OptOut || "NONE"), g = uo(a), b = co(u, f, g), d.prev = 26, d.next = 29, Zs(b, t);
|
|
3233
3262
|
case 29:
|
|
3234
3263
|
S = d.sent, d.next = 36;
|
|
3235
3264
|
break;
|
|
@@ -3254,24 +3283,24 @@ function ao() {
|
|
|
3254
3283
|
return i;
|
|
3255
3284
|
})();
|
|
3256
3285
|
}
|
|
3257
|
-
function
|
|
3286
|
+
function oo(t) {
|
|
3258
3287
|
try {
|
|
3259
|
-
return JSON.parse(
|
|
3288
|
+
return JSON.parse(Ft(at(t))) || {};
|
|
3260
3289
|
} catch {
|
|
3261
3290
|
}
|
|
3262
3291
|
return {};
|
|
3263
3292
|
}
|
|
3264
|
-
function
|
|
3293
|
+
function uo(t) {
|
|
3265
3294
|
return t.sort(function(e, r) {
|
|
3266
3295
|
var n = e.EventType, i = r.EventType;
|
|
3267
3296
|
if (n == on) return -1;
|
|
3268
3297
|
if (i == on || n == un) return 1;
|
|
3269
3298
|
if (i == un) return -1;
|
|
3270
3299
|
}).reduce(function(e, r) {
|
|
3271
|
-
return
|
|
3300
|
+
return B(B({}, r), e);
|
|
3272
3301
|
}, {});
|
|
3273
3302
|
}
|
|
3274
|
-
function
|
|
3303
|
+
function co(t, e, r) {
|
|
3275
3304
|
return {
|
|
3276
3305
|
BatchItem: Qt({}, t, {
|
|
3277
3306
|
Endpoint: e,
|
|
@@ -3279,17 +3308,17 @@ function uo(t, e, r) {
|
|
|
3279
3308
|
})
|
|
3280
3309
|
};
|
|
3281
3310
|
}
|
|
3282
|
-
var
|
|
3283
|
-
function
|
|
3311
|
+
var lo = it;
|
|
3312
|
+
function ii() {
|
|
3284
3313
|
return {};
|
|
3285
3314
|
}
|
|
3286
|
-
function
|
|
3287
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e =
|
|
3288
|
-
getContext: t.getContext ||
|
|
3315
|
+
function fo() {
|
|
3316
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = B({
|
|
3317
|
+
getContext: t.getContext || ii,
|
|
3289
3318
|
credentials: t.credentials || {},
|
|
3290
3319
|
getEndpointId: t.getEndpointId
|
|
3291
3320
|
}, t), r = e.debug ? console.log : function() {
|
|
3292
|
-
}, n =
|
|
3321
|
+
}, n = so(e), i = is(/* @__PURE__ */ (function() {
|
|
3293
3322
|
var u = re(/* @__PURE__ */ K.mark(function l(f, p) {
|
|
3294
3323
|
var g;
|
|
3295
3324
|
return K.wrap(function(S) {
|
|
@@ -3319,9 +3348,9 @@ function lo() {
|
|
|
3319
3348
|
// Ensure only max is processed at interval
|
|
3320
3349
|
// onPause: (queue) => {},
|
|
3321
3350
|
// onEmpty: () => {}
|
|
3322
|
-
}), s =
|
|
3351
|
+
}), s = Ys(i, e);
|
|
3323
3352
|
nr({}, t);
|
|
3324
|
-
var a =
|
|
3353
|
+
var a = po(s);
|
|
3325
3354
|
function o(u) {
|
|
3326
3355
|
return n([], u);
|
|
3327
3356
|
}
|
|
@@ -3333,23 +3362,23 @@ function lo() {
|
|
|
3333
3362
|
}
|
|
3334
3363
|
};
|
|
3335
3364
|
}
|
|
3336
|
-
function
|
|
3365
|
+
function po(t) {
|
|
3337
3366
|
if (!ve)
|
|
3338
|
-
return
|
|
3339
|
-
var e =
|
|
3367
|
+
return ii;
|
|
3368
|
+
var e = go(t);
|
|
3340
3369
|
return window.addEventListener("beforeunload", e), function() {
|
|
3341
3370
|
return window.removeEventListener("beforeunload", e);
|
|
3342
3371
|
};
|
|
3343
3372
|
}
|
|
3344
|
-
function
|
|
3373
|
+
function go(t) {
|
|
3345
3374
|
return function() {
|
|
3346
|
-
t(
|
|
3375
|
+
t(lo, !0);
|
|
3347
3376
|
};
|
|
3348
3377
|
}
|
|
3349
3378
|
function Tt() {
|
|
3350
3379
|
throw new Error("Pinpoint not loaded");
|
|
3351
3380
|
}
|
|
3352
|
-
function
|
|
3381
|
+
function ho(t) {
|
|
3353
3382
|
return Object.keys(t).reduce(function(e, r) {
|
|
3354
3383
|
var n = t[r];
|
|
3355
3384
|
return typeof n == "number" && (e.metrics[r] = n), (typeof n == "string" || typeof n == "boolean") && (e.attributes[r] = n), e;
|
|
@@ -3358,14 +3387,14 @@ function go(t) {
|
|
|
3358
3387
|
metrics: {}
|
|
3359
3388
|
});
|
|
3360
3389
|
}
|
|
3361
|
-
function
|
|
3390
|
+
function mo(t) {
|
|
3362
3391
|
var e = t.config, r = t.instance;
|
|
3363
3392
|
e && e.disableAnonymousTraffic && !r.user("userId") && r.once("identifyStart", function(n) {
|
|
3364
3393
|
var i = n.plugins, s = i["aws-pinpoint"];
|
|
3365
3394
|
s.loaded() || r.loadPlugin("aws-pinpoint");
|
|
3366
3395
|
});
|
|
3367
3396
|
}
|
|
3368
|
-
var
|
|
3397
|
+
var vo = {
|
|
3369
3398
|
/* Disable anonymous MTU */
|
|
3370
3399
|
disableAnonymousTraffic: !1,
|
|
3371
3400
|
// Pinpoint service region
|
|
@@ -3373,26 +3402,26 @@ var mo = {
|
|
|
3373
3402
|
// Custom event mapping
|
|
3374
3403
|
eventMapping: {}
|
|
3375
3404
|
};
|
|
3376
|
-
function
|
|
3405
|
+
function yo() {
|
|
3377
3406
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e, r, n = !1;
|
|
3378
3407
|
function i() {
|
|
3379
|
-
var a =
|
|
3380
|
-
t.debug && console.log("Stop session", a), e(
|
|
3408
|
+
var a = Ue();
|
|
3409
|
+
t.debug && console.log("Stop session", a), e(it, !0);
|
|
3381
3410
|
}
|
|
3382
3411
|
function s() {
|
|
3383
|
-
var a =
|
|
3412
|
+
var a = Xe(30);
|
|
3384
3413
|
t.debug && console.log("START SESSION", a), e(zt);
|
|
3385
3414
|
}
|
|
3386
3415
|
return {
|
|
3387
3416
|
name: "aws-pinpoint",
|
|
3388
|
-
config:
|
|
3389
|
-
bootstrap:
|
|
3417
|
+
config: B(B({}, vo), t),
|
|
3418
|
+
bootstrap: mo,
|
|
3390
3419
|
initialize: function(o) {
|
|
3391
3420
|
var u = o.config, l = o.instance, f = u.disableAnonymousTraffic, p = u.debug, g = p ? console.log : function() {
|
|
3392
|
-
}, b = l.getState(), S = b.user || {}, I = S.userId, w = S.anonymousId, y = b.context || {}, d = y.app, E = y.version, v = y.campaign, m = er(), T =
|
|
3421
|
+
}, b = l.getState(), S = b.user || {}, I = S.userId, w = S.anonymousId, y = b.context || {}, d = y.app, E = y.version, v = y.campaign, m = er(), T = Yn(), x = Ue();
|
|
3393
3422
|
if (g("initPageSession", m), g("initTabSession", T), g("initSessionData", x), x && x.anonId && x.anonId !== w) {
|
|
3394
|
-
g("anonId different refresh session details"), Hr(),
|
|
3395
|
-
var A =
|
|
3423
|
+
g("anonId different refresh session details"), Hr(), os();
|
|
3424
|
+
var A = Xe(30, {
|
|
3396
3425
|
anonId: w,
|
|
3397
3426
|
userId: I
|
|
3398
3427
|
});
|
|
@@ -3402,7 +3431,7 @@ function vo() {
|
|
|
3402
3431
|
return !1;
|
|
3403
3432
|
var $ = Object.keys(v).reduce(function(V, C) {
|
|
3404
3433
|
return V["utm_".concat(C)] = v[C], V;
|
|
3405
|
-
}, {}), k =
|
|
3434
|
+
}, {}), k = fo(B(B({}, u), {}, {
|
|
3406
3435
|
// The title of the app that's recording the event.
|
|
3407
3436
|
appTitle: u.appTitle || d,
|
|
3408
3437
|
// The package name of the app that's recording the event.
|
|
@@ -3428,7 +3457,7 @@ function vo() {
|
|
|
3428
3457
|
};
|
|
3429
3458
|
},
|
|
3430
3459
|
enrichEventAttributes: function() {
|
|
3431
|
-
return
|
|
3460
|
+
return B({
|
|
3432
3461
|
anonId: l.user("anonymousId"),
|
|
3433
3462
|
userId: l.user("userId"),
|
|
3434
3463
|
hash: window.location.hash,
|
|
@@ -3449,19 +3478,19 @@ function vo() {
|
|
|
3449
3478
|
}));
|
|
3450
3479
|
e = k.recordEvent, r = k.updateEndpoint, x && x.isNew && (g("Start brand new session because cookie not found"), e(zt));
|
|
3451
3480
|
var _ = 18e5, z = _;
|
|
3452
|
-
|
|
3481
|
+
Is({
|
|
3453
3482
|
timeout: z,
|
|
3454
3483
|
throttle: 2e4,
|
|
3455
|
-
onIdle: function(C,
|
|
3484
|
+
onIdle: function(C, P) {
|
|
3456
3485
|
g("Session idle. Active ".concat(C, " seconds")), i();
|
|
3457
3486
|
},
|
|
3458
|
-
onWakeUp: function(C,
|
|
3487
|
+
onWakeUp: function(C, P) {
|
|
3459
3488
|
g("Session wakeup. Idle ".concat(C, " seconds")), s();
|
|
3460
3489
|
},
|
|
3461
|
-
onHeartbeat: function(C,
|
|
3490
|
+
onHeartbeat: function(C, P) {
|
|
3462
3491
|
g("ping session", /* @__PURE__ */ new Date()), g("total active time", C);
|
|
3463
3492
|
var W = l.user();
|
|
3464
|
-
|
|
3493
|
+
ss(30, {
|
|
3465
3494
|
anonId: W.anonymousId,
|
|
3466
3495
|
userId: W.userId
|
|
3467
3496
|
});
|
|
@@ -3471,7 +3500,7 @@ function vo() {
|
|
|
3471
3500
|
page: function(o) {
|
|
3472
3501
|
if (o.payload, o.config, !e)
|
|
3473
3502
|
return Tt();
|
|
3474
|
-
n && Hr(), e(
|
|
3503
|
+
n && Hr(), e(ni), n = !0;
|
|
3475
3504
|
},
|
|
3476
3505
|
/* Track event & update endpoint details */
|
|
3477
3506
|
track: function(o) {
|
|
@@ -3479,7 +3508,7 @@ function vo() {
|
|
|
3479
3508
|
if (o.instance, !e)
|
|
3480
3509
|
return Tt();
|
|
3481
3510
|
if (!(l.disableAnonymousTraffic && !u.userId)) {
|
|
3482
|
-
var f =
|
|
3511
|
+
var f = ho(u.properties);
|
|
3483
3512
|
e(u.event, f);
|
|
3484
3513
|
}
|
|
3485
3514
|
},
|
|
@@ -3493,16 +3522,16 @@ function vo() {
|
|
|
3493
3522
|
},
|
|
3494
3523
|
/* Reset user details */
|
|
3495
3524
|
reset: function(o) {
|
|
3496
|
-
var u = o.instance, l = u.user("anonymousId"), f =
|
|
3497
|
-
|
|
3525
|
+
var u = o.instance, l = u.user("anonymousId"), f = at(l);
|
|
3526
|
+
zn(f);
|
|
3498
3527
|
},
|
|
3499
3528
|
loaded: function() {
|
|
3500
3529
|
return !!e;
|
|
3501
3530
|
}
|
|
3502
3531
|
};
|
|
3503
3532
|
}
|
|
3504
|
-
var
|
|
3505
|
-
function
|
|
3533
|
+
var bo = yo;
|
|
3534
|
+
function wo(t, e, r) {
|
|
3506
3535
|
return r.reduce((n, i) => {
|
|
3507
3536
|
const { action: s, targetProperty: a } = i;
|
|
3508
3537
|
return s === "add" ? n[a] = {
|
|
@@ -3511,10 +3540,10 @@ function bo(t, e, r) {
|
|
|
3511
3540
|
} : s === "remove" && delete n[a], n;
|
|
3512
3541
|
}, e);
|
|
3513
3542
|
}
|
|
3514
|
-
async function
|
|
3515
|
-
const { properties: i = {} } = await
|
|
3543
|
+
async function So({ id: t, authentication: e, username: r, accessChangeset: n }) {
|
|
3544
|
+
const { properties: i = {} } = await pn(t, {
|
|
3516
3545
|
authentication: e
|
|
3517
|
-
}), s = i.telemetry, a = s === void 0 ? {} : s, { arcgis: { access: o = {} } = {} } = a, u =
|
|
3546
|
+
}), s = i.telemetry, a = s === void 0 ? {} : s, { arcgis: { access: o = {} } = {} } = a, u = ln(a, ["arcgis"]), l = wo(r, o, n);
|
|
3518
3547
|
return gi({
|
|
3519
3548
|
item: {
|
|
3520
3549
|
id: t,
|
|
@@ -3525,24 +3554,24 @@ async function wo({ id: t, authentication: e, username: r, accessChangeset: n })
|
|
|
3525
3554
|
authentication: e
|
|
3526
3555
|
});
|
|
3527
3556
|
}
|
|
3528
|
-
async function
|
|
3529
|
-
const { properties: { telemetry: { arcgis: { access: r = {} } = {} } = {} } } = await
|
|
3557
|
+
async function Eo({ id: t, authentication: e }) {
|
|
3558
|
+
const { properties: { telemetry: { arcgis: { access: r = {} } = {} } = {} } } = await pn(t, {
|
|
3530
3559
|
authentication: e
|
|
3531
3560
|
});
|
|
3532
3561
|
return { access: r };
|
|
3533
3562
|
}
|
|
3534
|
-
class
|
|
3563
|
+
class Io {
|
|
3535
3564
|
constructor(e) {
|
|
3536
3565
|
this.name = "amazon", this.isInitialized = !1;
|
|
3537
3566
|
const { app: r = {}, fips: n, userPoolID: i } = e;
|
|
3538
|
-
this.analytics =
|
|
3567
|
+
this.analytics = qa({
|
|
3539
3568
|
app: r.name,
|
|
3540
3569
|
version: r.version,
|
|
3541
3570
|
plugins: [
|
|
3542
|
-
|
|
3571
|
+
bo({
|
|
3543
3572
|
fips: n,
|
|
3544
3573
|
pinpointAppId: r.id,
|
|
3545
|
-
getCredentials: () =>
|
|
3574
|
+
getCredentials: () => Mi(i, { fips: n })
|
|
3546
3575
|
})
|
|
3547
3576
|
]
|
|
3548
3577
|
}), Object.assign(this, e);
|
|
@@ -3552,7 +3581,7 @@ class Eo {
|
|
|
3552
3581
|
return this.isInitialized = !0, Promise.resolve();
|
|
3553
3582
|
}
|
|
3554
3583
|
static async setAccessPermissions({ id: e, authentication: r, username: n, accessChangeset: i }) {
|
|
3555
|
-
return
|
|
3584
|
+
return So({
|
|
3556
3585
|
id: e,
|
|
3557
3586
|
authentication: r,
|
|
3558
3587
|
username: n,
|
|
@@ -3560,7 +3589,7 @@ class Eo {
|
|
|
3560
3589
|
});
|
|
3561
3590
|
}
|
|
3562
3591
|
static async getAccessPermissions({ id: e, authentication: r }) {
|
|
3563
|
-
return
|
|
3592
|
+
return Eo({ id: e, authentication: r });
|
|
3564
3593
|
}
|
|
3565
3594
|
logPageView(e, r) {
|
|
3566
3595
|
const n = Ri({
|
|
@@ -3573,7 +3602,7 @@ class Eo {
|
|
|
3573
3602
|
this.previousPage = { pageUrl: i, pageName: s }, this.analytics.track("pageView", n);
|
|
3574
3603
|
}
|
|
3575
3604
|
logEvent(e = {}) {
|
|
3576
|
-
const r =
|
|
3605
|
+
const r = Ui({
|
|
3577
3606
|
event: e,
|
|
3578
3607
|
dimensionLookup: this.dimensions,
|
|
3579
3608
|
metricLookup: this.metrics
|
|
@@ -3581,16 +3610,16 @@ class Eo {
|
|
|
3581
3610
|
this.analytics.track(n, r);
|
|
3582
3611
|
}
|
|
3583
3612
|
}
|
|
3584
|
-
const
|
|
3585
|
-
class
|
|
3613
|
+
const Ao = li`:host{display:block}`;
|
|
3614
|
+
class Po extends ui {
|
|
3586
3615
|
constructor() {
|
|
3587
|
-
super(...arguments), this.amazonAppId = "", this.amazonAppName = "", this.amazonUserPoolID = "", this.amazonVersion = "", this.firstUseVar = "", this.measurementIds = [], this._open = !1, this._translations =
|
|
3616
|
+
super(...arguments), this.amazonAppId = "", this.amazonAppName = "", this.amazonUserPoolID = "", this.amazonVersion = "", this.firstUseVar = "", this.measurementIds = [], this._open = !1, this._translations = oi({ name: "consent-manager", blocking: !0 }), this._loaded = !1, this.consentGranted = ci();
|
|
3588
3617
|
}
|
|
3589
3618
|
static {
|
|
3590
3619
|
this.properties = { amazonAppId: 1, amazonAppName: 1, amazonUserPoolID: 1, amazonVersion: 1, firstUseVar: 1, measurementIds: 0, portal: 0, _open: 16, _translations: 16 };
|
|
3591
3620
|
}
|
|
3592
3621
|
static {
|
|
3593
|
-
this.styles =
|
|
3622
|
+
this.styles = Ao;
|
|
3594
3623
|
}
|
|
3595
3624
|
async getInstance() {
|
|
3596
3625
|
if (localStorage.getItem(this.firstUseVar) === "true" || this.portal?.eueiEnabled)
|
|
@@ -3621,13 +3650,13 @@ class Ao extends fi {
|
|
|
3621
3650
|
logger: e
|
|
3622
3651
|
};
|
|
3623
3652
|
if (this.measurementIds?.length > 0) {
|
|
3624
|
-
const n = new
|
|
3653
|
+
const n = new Ni({
|
|
3625
3654
|
measurementIds: this.measurementIds
|
|
3626
3655
|
});
|
|
3627
3656
|
r.plugins.push(n);
|
|
3628
3657
|
}
|
|
3629
3658
|
if (this.amazonUserPoolID) {
|
|
3630
|
-
const n = new
|
|
3659
|
+
const n = new Io({
|
|
3631
3660
|
userPoolID: this.amazonUserPoolID,
|
|
3632
3661
|
app: {
|
|
3633
3662
|
name: this.amazonAppName,
|
|
@@ -3637,7 +3666,7 @@ class Ao extends fi {
|
|
|
3637
3666
|
});
|
|
3638
3667
|
r.plugins.push(n);
|
|
3639
3668
|
}
|
|
3640
|
-
this._telemetryInstance = new
|
|
3669
|
+
this._telemetryInstance = new xi(r), await this._telemetryInstance.init(), this._loaded = !0;
|
|
3641
3670
|
}
|
|
3642
3671
|
}
|
|
3643
3672
|
_alertClosed() {
|
|
@@ -3649,7 +3678,7 @@ class Ao extends fi {
|
|
|
3649
3678
|
}), this._open = !1;
|
|
3650
3679
|
}
|
|
3651
3680
|
}
|
|
3652
|
-
|
|
3681
|
+
si("consent-manager", Po);
|
|
3653
3682
|
export {
|
|
3654
|
-
|
|
3683
|
+
Po as ConsentManager
|
|
3655
3684
|
};
|