@revolugo/elements 5.26.2-beta.14 → 5.26.2-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{revolugo.banktransferdetails.DocOw_1c.min.js → revolugo.banktransferdetails.tjpmZWCu.min.js} +11 -11
- package/dist/{revolugo.bdaterangepicker.BfCLnYf4.min.js → revolugo.bdaterangepicker.1BfRFl9n.min.js} +12 -12
- package/dist/{revolugo.bformattedamount.CphqBbVa.min.js → revolugo.bformattedamount.jRDqB-vb.min.js} +3 -3
- package/dist/{revolugo.bhotelroomsdetails.DqGJ2w9u.min.js → revolugo.bhotelroomsdetails.C4sZBusG.min.js} +6 -6
- package/dist/{revolugo.bhotelsearchbar.BK8hTfTf.min.js → revolugo.bhotelsearchbar.cAB1sy0L.min.js} +17 -17
- package/dist/{revolugo.bookingdetailssidebar.DeVlYfpn.min.js → revolugo.bookingdetailssidebar.B60gyDLy.min.js} +13 -13
- package/dist/{revolugo.bookingdetailssidebar.B593LGvp.min.js → revolugo.bookingdetailssidebar.YjbkMSHd.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.CoZl8iLL.min.js → revolugo.bookingmanager.CHMr94ZY.min.js} +22 -22
- package/dist/{revolugo.bphoneinput.BxUu-ijr.min.js → revolugo.bphoneinput.B1Ftczzi.min.js} +5 -5
- package/dist/{revolugo.bpricesummaryskeleton.Dtg-xXRI.min.js → revolugo.bpricesummaryskeleton.BiFHozvG.min.js} +4 -4
- package/dist/{revolugo.breakpoint-service.DOI2pMPe.min.js → revolugo.breakpoint-service.DwfYwy5L.min.js} +3 -3
- package/dist/{revolugo.bstarrating.D3SX-Y_G.min.js → revolugo.bstarrating.DjxoBeJd.min.js} +6 -6
- package/dist/{revolugo.btag.DLJO-aT6.min.js → revolugo.btag.Ei9wFNy1.min.js} +7 -7
- package/dist/{revolugo.cancellationpoliciesbadge.D_0pbCAp.min.js → revolugo.cancellationpoliciesbadge.C9l85_h_.min.js} +7 -7
- package/dist/{revolugo.cancellationpoliciesbadge.C8VP4uTt.min.js → revolugo.cancellationpoliciesbadge.DXP6YDah.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.D1gpvf7i.min.js → revolugo.cancellationpolicieslist.DKzWnFZs.min.js} +3 -3
- package/dist/{revolugo.cancellationpolicieslist.BOgJKzJk.min.js → revolugo.cancellationpolicieslist.DQPYLD1X.min.js} +4 -4
- package/dist/{revolugo.common.CwuM5BCx.min.js → revolugo.common.ovDYv7Pt.min.js} +2 -2
- package/dist/{revolugo.creditcardform.bvLmN2Gb.min.js → revolugo.creditcardform.B_3Czeuh.min.js} +4 -4
- package/dist/{revolugo.creditcardform.CSujLNnM.min.js → revolugo.creditcardform.D7tbFSmL.min.js} +14 -14
- package/dist/{revolugo.creditcardpayment.BEHuehMJ.min.js → revolugo.creditcardpayment.ALQsB7KN.min.js} +15 -15
- package/dist/{revolugo.creditcardpayment.B84JmY-8.min.js → revolugo.creditcardpayment.C4VnI0jA.min.js} +4 -4
- package/dist/{revolugo.currencypicker.CFWpc8HP.min.js → revolugo.currencypicker.VOHpEA1m.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.CTKGs5cu.min.js → revolugo.currencypickerbtn.BDd5PaTp.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.BrWkrEu_.min.js → revolugo.currencypickerbtn.kW_mpe_H.min.js} +9 -9
- package/dist/{revolugo.dialog-attach.UdO3NAXU.min.js → revolugo.dialog-attach.DmW3pVbE.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.BQbWB4Dg.min.js → revolugo.fastbookingflow.DrBXpSea.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.JpT0NatO.min.js → revolugo.fullbookingflow.BKK4s4UB.min.js} +18 -18
- package/dist/{revolugo.hotel-offer.CZKaMpOK.min.js → revolugo.hotel-offer.CNljBQ0B.min.js} +13 -13
- package/dist/{revolugo.hoteldescriptionview.BW-zc1Gb.min.js → revolugo.hoteldescriptionview.CtJqOcXz.min.js} +24 -24
- package/dist/{revolugo.hoteldescriptionview.B9Yn63hn.min.js → revolugo.hoteldescriptionview.DZxXyCN1.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.D9HQ7eD3.min.js → revolugo.hotelofferitemlayout.B762pYrv.min.js} +8 -8
- package/dist/{revolugo.hotelofferlist.DYCl-oA5.min.js → revolugo.hotelofferlist.5Ji9khs_.min.js} +4 -4
- package/dist/revolugo.hotelofferlist.B2R9QfQ0.min.js +3618 -0
- package/dist/{revolugo.hotelofferrequestcreator.CRa8Vkk3.min.js → revolugo.hotelofferrequestcreator.BM-4lOrZ.min.js} +4 -4
- package/dist/{revolugo.hoteloffersearchmenu.Bvy7ThBD.min.js → revolugo.hoteloffersearchmenu.awn72UoS.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.Tvits78R.min.js → revolugo.hoteloffersmap.Coiyiggx.min.js} +18 -18
- package/dist/{revolugo.hoteloffersmap.Be-WCioi.min.js → revolugo.hoteloffersmap.DbBK9ZyF.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.CecgCs3H.min.js → revolugo.hoteloffersview.Bxq0_cw_.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.Brgrm79v.min.js → revolugo.hoteloffersview.D2b4Dz6Z.min.js} +17 -17
- package/dist/{revolugo.hotelroomofferlist.Nd4YwBo_.min.js → revolugo.hotelroomofferlist.Qsx54sYI.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.C8FRyEq_.min.js → revolugo.hotelroomofferlist.itCenyDY.min.js} +28 -28
- package/dist/{revolugo.hotelroomofferrequestcreator.B5lVTZZd.min.js → revolugo.hotelroomofferrequestcreator.BHRtwusf.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersbookingflow.i2t1vPgD.min.js → revolugo.hotelroomoffersbookingflow.qWULA0F-.min.js} +19 -19
- package/dist/{revolugo.hotelroomoffersearchmenu.PApWToHT.min.js → revolugo.hotelroomoffersearchmenu.C2_2xVQu.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.CMsc-CNV.min.js → revolugo.hotelroomoffersearchmenu.DMzh7DMJ.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.Cw6aKuIO.min.js → revolugo.hotelroomoffersview.29UPqTkW.min.js} +12 -12
- package/dist/{revolugo.hotelroomoffersview.2ltsp5_R.min.js → revolugo.hotelroomoffersview.CcSzPtRd.min.js} +4 -4
- package/dist/{revolugo.i18n.BEhtXca3.min.js → revolugo.i18n.USNClftL.min.js} +3 -3
- package/dist/{revolugo.index.Dp01frUM.min.js → revolugo.index.B2N9qsdI.min.js} +2 -2
- package/dist/revolugo.index.BTjlc9ZK.min.js +15 -0
- package/dist/{revolugo.index.CJ17FP0k.min.js → revolugo.index.BluAa6bn.min.js} +5 -5
- package/dist/{revolugo.index.5uzTM8jR.min.js → revolugo.index.BsxLt_mb.min.js} +2 -2
- package/dist/{revolugo.index.B12-gJPR.min.js → revolugo.index.C0OpnCZi.min.js} +7 -7
- package/dist/{revolugo.index.CS2-Q-ND.min.js → revolugo.index.CB7ogzk6.min.js} +6 -6
- package/dist/{revolugo.index.vww3SoWt.min.js → revolugo.index.CSsb0wKA.min.js} +5 -5
- package/dist/{revolugo.index.B8vp5hk7.min.js → revolugo.index.DNtO6t9k.min.js} +3 -3
- package/dist/{revolugo.index.mn1Z4_fN.min.js → revolugo.index.DUPpGirx.min.js} +3 -3
- package/dist/{revolugo.index.B91957iL.min.js → revolugo.index.OcIEgjTb.min.js} +3 -3
- package/dist/{revolugo.index.C8Z7BwW8.min.js → revolugo.index.ap6OVVgC.min.js} +2 -2
- package/dist/{revolugo.index.Dv25a8IA.min.js → revolugo.index.aw1R8MGN.min.js} +4 -4
- package/dist/{revolugo.index.CuzC7huw.min.js → revolugo.index.bu5Te_sP.min.js} +6 -6
- package/dist/{revolugo.index.Bm7Hekqn.min.js → revolugo.index.ihcJPVXG.min.js} +5 -5
- package/dist/{revolugo.langpicker.CBhHqEv3.min.js → revolugo.langpicker.CTsr9ahO.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.CCFKqTpQ.min.js → revolugo.langpickerbtn.3f7krE22.min.js} +10 -10
- package/dist/{revolugo.langpickerbtn.LR2vizK2.min.js → revolugo.langpickerbtn.BuJ5ScZp.min.js} +4 -4
- package/dist/revolugo.min.js +26 -26
- package/dist/{revolugo.parsed-height.DpcziUUJ.min.js → revolugo.parsed-height.D7Bem5XU.min.js} +40 -40
- package/dist/{revolugo.parsed-props.CQJFjK9a.min.js → revolugo.parsed-props.6C6bTcBm.min.js} +3 -3
- package/dist/{revolugo.prebookform.BhFn4px0.min.js → revolugo.prebookform.DF0LLE0h.min.js} +4 -4
- package/dist/{revolugo.prebookform.DGlhRyr3.min.js → revolugo.prebookform.fAmgWZRX.min.js} +18 -18
- package/dist/{revolugo.revolugo-config.Cd_JnGq0.min.js → revolugo.revolugo-config.DPrBbf0u.min.js} +3 -3
- package/dist/{revolugo.roominglisteditor.wX75dXlM.min.js → revolugo.roominglisteditor.Bbv4VkLQ.min.js} +10 -10
- package/dist/{revolugo.roominglisteditor.eWCwVydd.min.js → revolugo.roominglisteditor.CFJCzXSV.min.js} +4 -4
- package/dist/{revolugo.sentry.DqPFRxU3.min.js → revolugo.sentry.tKmu60kY.min.js} +2 -2
- package/dist/{revolugo.store.dZMoiQlF.min.js → revolugo.store.Dzne136x.min.js} +3 -3
- package/dist/{revolugo.storybooktoolbar.DnfXFFIc.min.js → revolugo.storybooktoolbar.CP_6AUAT.min.js} +16 -16
- package/dist/{revolugo.termsandconditions.Dfu_0rOp.min.js → revolugo.termsandconditions.DgblkJ-o.min.js} +6 -6
- package/dist/{revolugo.termsandconditions.DLFKBpfw.min.js → revolugo.termsandconditions.XxH9jt9l.min.js} +4 -4
- package/dist/revolugo.typed-mixins.D7cv-gw1.min.js +8 -0
- package/dist/{revolugo.valert.88ZHPGhT.min.js → revolugo.valert.Ch9tTzUm.min.js} +7 -7
- package/dist/{revolugo.vautocomplete.WFeBr6qP.min.js → revolugo.vautocomplete.C4hhNJvB.min.js} +5 -5
- package/dist/{revolugo.vbadge.COTjzWmJ.min.js → revolugo.vbadge.-u7e2ov4.min.js} +6 -6
- package/dist/{revolugo.vbtn.DO8W7N0r.min.js → revolugo.vbtn.DLby6dZM.min.js} +7 -7
- package/dist/{revolugo.vcard.gQH1l9-J.min.js → revolugo.vcard.w2TZpeTi.min.js} +6 -6
- package/dist/{revolugo.vdialog.B39hW_QQ.min.js → revolugo.vdialog.DvEDArBK.min.js} +7 -7
- package/dist/{revolugo.vexpansionpanelheader.ADoud6DV.min.js → revolugo.vexpansionpanelheader.DLtLqeZW.min.js} +8 -8
- package/dist/{revolugo.vform.721jx4in.min.js → revolugo.vform.D7H_APqS.min.js} +5 -5
- package/dist/{revolugo.vinput.DHB-qqO8.min.js → revolugo.vinput.fh1DpTt_.min.js} +5 -5
- package/dist/{revolugo.vitemgroup.en0tJeuk.min.js → revolugo.vitemgroup.DA8DGKgA.min.js} +5 -5
- package/dist/{revolugo.vlistitem.CUA8VxiW.min.js → revolugo.vlistitem.D7AU-4_k.min.js} +6 -6
- package/dist/{revolugo.vmenu.CM59ObZV.min.js → revolugo.vmenu.DTS8hoIP.min.js} +8 -8
- package/dist/{revolugo.vselect.CZT6j54N.min.js → revolugo.vselect.BDvmVYMM.min.js} +15 -15
- package/dist/{revolugo.vsheet.Ci8EFagN.min.js → revolugo.vsheet.Bmz2rGrG.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.B8WWRpEn.min.js → revolugo.vskeletonloader.CmMbqMPd.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.DZ44OZy2.min.js → revolugo.vslidegroup.CpnnazjF.min.js} +10 -10
- package/dist/{revolugo.vsnackbar.hQQeV8CP.min.js → revolugo.vsnackbar.DKPXGk20.min.js} +5 -5
- package/dist/{revolugo.vtextfield.uC2GWAXb.min.js → revolugo.vtextfield.BEoLwZEZ.min.js} +7 -7
- package/dist/{revolugo.vtoolbar.CKpQ7I-2.min.js → revolugo.vtoolbar.BEyMYKDD.min.js} +5 -5
- package/dist/{revolugo.vtooltip.vt1MeNsi.min.js → revolugo.vtooltip.CTfm4Bzw.min.js} +5 -5
- package/dist/{revolugo.vuetify.CUwfJUZL.min.js → revolugo.vuetify.BEnMa6lA.min.js} +3 -3
- package/dist/{revolugo.watch-list.DZXZ9UBF.min.js → revolugo.watch-list.CTIegeD8.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.BGRSC-LW.min.js → revolugo.webcomponentwrapper.CslhptVC.min.js} +5 -5
- package/package.json +3 -3
- package/dist/revolugo.hotelofferlist.D-RL29DF.min.js +0 -4191
- package/dist/revolugo.index.8asECxdn.min.js +0 -15
- package/dist/revolugo.typed-mixins.CXF5T_Lk.min.js +0 -8
@@ -0,0 +1,3618 @@
|
|
1
|
+
import { s as ji } from "./revolugo.revolugo-config.DPrBbf0u.min.js";
|
2
|
+
import { g as Ae, a as Hi, d as it } from "./revolugo.store.Dzne136x.min.js";
|
3
|
+
import { h as qi, H as Ki } from "./revolugo.hotelofferrequestcreator.BM-4lOrZ.min.js";
|
4
|
+
import { H as Qi, B as zi, p as Vi, b as $i, c as Xi } from "./revolugo.parsed-height.D7Bem5XU.min.js";
|
5
|
+
import { H as yi } from "./revolugo.hotelofferitemlayout.B762pYrv.min.js";
|
6
|
+
import { Y as Wi, V as vi, Z as Qe, a as Yi } from "./revolugo.i18n.USNClftL.min.js";
|
7
|
+
import { B as Ji, _ as Zi } from "./revolugo.bphoneinput.B1Ftczzi.min.js";
|
8
|
+
import { l as Gn, n as Un, _ as yt, a as je, B as eo } from "./revolugo.webcomponentwrapper.CslhptVC.min.js";
|
9
|
+
import { _ as to } from "./revolugo.vform.D7H_APqS.min.js";
|
10
|
+
import { _ as ot } from "./revolugo.vtextfield.BEoLwZEZ.min.js";
|
11
|
+
import { _ as $n } from "./revolugo.vmenu.DTS8hoIP.min.js";
|
12
|
+
import { a as Xn, _ as no } from "./revolugo.bdaterangepicker.1BfRFl9n.min.js";
|
13
|
+
import { _ as jn } from "./revolugo.vbtn.DLby6dZM.min.js";
|
14
|
+
import { b as bi } from "./revolugo.breakpoint-service.DwfYwy5L.min.js";
|
15
|
+
import { _ as xn, p as ro } from "./revolugo.parsed-props.6C6bTcBm.min.js";
|
16
|
+
import { H as io } from "./revolugo.hotelroomofferlist.itCenyDY.min.js";
|
17
|
+
import { B as oo } from "./revolugo.bhotelsearchbar.cAB1sy0L.min.js";
|
18
|
+
import { w as so } from "./revolugo.watch-list.CTIegeD8.min.js";
|
19
|
+
import { t as ao } from "./revolugo.typed-mixins.D7cv-gw1.min.js";
|
20
|
+
import { T as uo } from "./revolugo.termsandconditions.DgblkJ-o.min.js";
|
21
|
+
import { _ as lo } from "./revolugo.index.C0OpnCZi.min.js";
|
22
|
+
const co = {
|
23
|
+
FiltersBar: !0,
|
24
|
+
HotelOfferSearchMenu: !1,
|
25
|
+
TermsAndConditionsFooter: !0,
|
26
|
+
HotelOfferItem: Qi
|
27
|
+
}, fo = {
|
28
|
+
...qi,
|
29
|
+
features: {
|
30
|
+
default: () => co,
|
31
|
+
type: [Object, String]
|
32
|
+
},
|
33
|
+
height: {
|
34
|
+
default: "600px",
|
35
|
+
type: [Number, String]
|
36
|
+
},
|
37
|
+
hotelRoomOffersLimit: {
|
38
|
+
type: Number
|
39
|
+
},
|
40
|
+
loadingBarEnabled: {
|
41
|
+
type: Boolean,
|
42
|
+
default: !0
|
43
|
+
},
|
44
|
+
limit: {
|
45
|
+
type: Number,
|
46
|
+
default: Wi
|
47
|
+
},
|
48
|
+
maxHeight: {
|
49
|
+
default: "90vh",
|
50
|
+
type: [Number, String]
|
51
|
+
},
|
52
|
+
rounded: {
|
53
|
+
type: Boolean,
|
54
|
+
default: !0
|
55
|
+
}
|
56
|
+
};
|
57
|
+
function Ln(e, t) {
|
58
|
+
(t == null || t > e.length) && (t = e.length);
|
59
|
+
for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n];
|
60
|
+
return i;
|
61
|
+
}
|
62
|
+
function N(e, t) {
|
63
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
64
|
+
}
|
65
|
+
function G(e, t, n) {
|
66
|
+
return t && function(i, o) {
|
67
|
+
for (var a = 0; a < o.length; a++) {
|
68
|
+
var u = o[a];
|
69
|
+
u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(i, ki(u.key), u);
|
70
|
+
}
|
71
|
+
}(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
72
|
+
}
|
73
|
+
function un(e, t) {
|
74
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
75
|
+
if (!n) {
|
76
|
+
if (Array.isArray(e) || (n = Hn(e)) || t) {
|
77
|
+
n && (e = n);
|
78
|
+
var i = 0, o = function() {
|
79
|
+
};
|
80
|
+
return { s: o, n: function() {
|
81
|
+
return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] };
|
82
|
+
}, e: function(l) {
|
83
|
+
throw l;
|
84
|
+
}, f: o };
|
85
|
+
}
|
86
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
87
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
88
|
+
}
|
89
|
+
var a, u = !0, s = !1;
|
90
|
+
return { s: function() {
|
91
|
+
n = n.call(e);
|
92
|
+
}, n: function() {
|
93
|
+
var l = n.next();
|
94
|
+
return u = l.done, l;
|
95
|
+
}, e: function(l) {
|
96
|
+
s = !0, a = l;
|
97
|
+
}, f: function() {
|
98
|
+
try {
|
99
|
+
u || n.return == null || n.return();
|
100
|
+
} finally {
|
101
|
+
if (s) throw a;
|
102
|
+
}
|
103
|
+
} };
|
104
|
+
}
|
105
|
+
function r(e, t, n) {
|
106
|
+
return (t = ki(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
107
|
+
}
|
108
|
+
function Ke() {
|
109
|
+
return Ke = Object.assign ? Object.assign.bind() : function(e) {
|
110
|
+
for (var t = 1; t < arguments.length; t++) {
|
111
|
+
var n = arguments[t];
|
112
|
+
for (var i in n) ({}).hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
113
|
+
}
|
114
|
+
return e;
|
115
|
+
}, Ke.apply(null, arguments);
|
116
|
+
}
|
117
|
+
function Wn(e, t) {
|
118
|
+
var n = Object.keys(e);
|
119
|
+
if (Object.getOwnPropertySymbols) {
|
120
|
+
var i = Object.getOwnPropertySymbols(e);
|
121
|
+
t && (i = i.filter(function(o) {
|
122
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
123
|
+
})), n.push.apply(n, i);
|
124
|
+
}
|
125
|
+
return n;
|
126
|
+
}
|
127
|
+
function E(e) {
|
128
|
+
for (var t = 1; t < arguments.length; t++) {
|
129
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
130
|
+
t % 2 ? Wn(Object(n), !0).forEach(function(i) {
|
131
|
+
r(e, i, n[i]);
|
132
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wn(Object(n)).forEach(function(i) {
|
133
|
+
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
|
134
|
+
});
|
135
|
+
}
|
136
|
+
return e;
|
137
|
+
}
|
138
|
+
function ho(e, t) {
|
139
|
+
return function(n) {
|
140
|
+
if (Array.isArray(n)) return n;
|
141
|
+
}(e) || function(n, i) {
|
142
|
+
var o = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
143
|
+
if (o != null) {
|
144
|
+
var a, u, s, l, c = [], d = !0, f = !1;
|
145
|
+
try {
|
146
|
+
if (s = (o = o.call(n)).next, i !== 0) for (; !(d = (a = s.call(o)).done) && (c.push(a.value), c.length !== i); d = !0) ;
|
147
|
+
} catch (p) {
|
148
|
+
f = !0, u = p;
|
149
|
+
} finally {
|
150
|
+
try {
|
151
|
+
if (!d && o.return != null && (l = o.return(), Object(l) !== l)) return;
|
152
|
+
} finally {
|
153
|
+
if (f) throw u;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
return c;
|
157
|
+
}
|
158
|
+
}(e, t) || Hn(e, t) || function() {
|
159
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
160
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
161
|
+
}();
|
162
|
+
}
|
163
|
+
function xe(e) {
|
164
|
+
return function(t) {
|
165
|
+
if (Array.isArray(t)) return Ln(t);
|
166
|
+
}(e) || function(t) {
|
167
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
168
|
+
}(e) || Hn(e) || function() {
|
169
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
170
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
171
|
+
}();
|
172
|
+
}
|
173
|
+
function ki(e) {
|
174
|
+
var t = function(n, i) {
|
175
|
+
if (typeof n != "object" || !n) return n;
|
176
|
+
var o = n[Symbol.toPrimitive];
|
177
|
+
if (o !== void 0) {
|
178
|
+
var a = o.call(n, i);
|
179
|
+
if (typeof a != "object") return a;
|
180
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
181
|
+
}
|
182
|
+
return String(n);
|
183
|
+
}(e, "string");
|
184
|
+
return typeof t == "symbol" ? t : t + "";
|
185
|
+
}
|
186
|
+
function L(e) {
|
187
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
188
|
+
return typeof t;
|
189
|
+
} : function(t) {
|
190
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
191
|
+
}, L(e);
|
192
|
+
}
|
193
|
+
function Hn(e, t) {
|
194
|
+
if (e) {
|
195
|
+
if (typeof e == "string") return Ln(e, t);
|
196
|
+
var n = {}.toString.call(e).slice(8, -1);
|
197
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ln(e, t) : void 0;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
var ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
201
|
+
function me(e) {
|
202
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
203
|
+
}
|
204
|
+
function po(e) {
|
205
|
+
return e && Object.prototype.hasOwnProperty.call(e, "default") && Object.keys(e).length === 1 ? e.default : e;
|
206
|
+
}
|
207
|
+
var Yn, Jn = { exports: {} };
|
208
|
+
function go() {
|
209
|
+
return Yn || (Yn = 1, function(e) {
|
210
|
+
function t(n) {
|
211
|
+
if (n) return function(i) {
|
212
|
+
return Ke(i, t.prototype), i._callbacks = /* @__PURE__ */ new Map(), i;
|
213
|
+
}(n);
|
214
|
+
this._callbacks = /* @__PURE__ */ new Map();
|
215
|
+
}
|
216
|
+
t.prototype.on = function(n, i) {
|
217
|
+
var o, a = (o = this._callbacks.get(n)) !== null && o !== void 0 ? o : [];
|
218
|
+
return a.push(i), this._callbacks.set(n, a), this;
|
219
|
+
}, t.prototype.once = function(n, i) {
|
220
|
+
var o = this, a = function() {
|
221
|
+
o.off(n, a);
|
222
|
+
for (var u = arguments.length, s = new Array(u), l = 0; l < u; l++) s[l] = arguments[l];
|
223
|
+
i.apply(o, s);
|
224
|
+
};
|
225
|
+
return a.fn = i, this.on(n, a), this;
|
226
|
+
}, t.prototype.off = function(n, i) {
|
227
|
+
if (n === void 0 && i === void 0) return this._callbacks.clear(), this;
|
228
|
+
if (i === void 0) return this._callbacks.delete(n), this;
|
229
|
+
var o = this._callbacks.get(n);
|
230
|
+
if (o) {
|
231
|
+
var a, u = un(o.entries());
|
232
|
+
try {
|
233
|
+
for (u.s(); !(a = u.n()).done; ) {
|
234
|
+
var s = ho(a.value, 2), l = s[0], c = s[1];
|
235
|
+
if (c === i || c.fn === i) {
|
236
|
+
o.splice(l, 1);
|
237
|
+
break;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
} catch (d) {
|
241
|
+
u.e(d);
|
242
|
+
} finally {
|
243
|
+
u.f();
|
244
|
+
}
|
245
|
+
o.length === 0 ? this._callbacks.delete(n) : this._callbacks.set(n, o);
|
246
|
+
}
|
247
|
+
return this;
|
248
|
+
}, t.prototype.emit = function(n) {
|
249
|
+
var i = this._callbacks.get(n);
|
250
|
+
if (i) {
|
251
|
+
for (var o = xe(i), a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++) u[s - 1] = arguments[s];
|
252
|
+
var l, c = un(o);
|
253
|
+
try {
|
254
|
+
for (c.s(); !(l = c.n()).done; )
|
255
|
+
l.value.apply(this, u);
|
256
|
+
} catch (d) {
|
257
|
+
c.e(d);
|
258
|
+
} finally {
|
259
|
+
c.f();
|
260
|
+
}
|
261
|
+
}
|
262
|
+
return this;
|
263
|
+
}, t.prototype.listeners = function(n) {
|
264
|
+
var i;
|
265
|
+
return (i = this._callbacks.get(n)) !== null && i !== void 0 ? i : [];
|
266
|
+
}, t.prototype.listenerCount = function(n) {
|
267
|
+
if (n) return this.listeners(n).length;
|
268
|
+
var i, o = 0, a = un(this._callbacks.values());
|
269
|
+
try {
|
270
|
+
for (a.s(); !(i = a.n()).done; )
|
271
|
+
o += i.value.length;
|
272
|
+
} catch (u) {
|
273
|
+
a.e(u);
|
274
|
+
} finally {
|
275
|
+
a.f();
|
276
|
+
}
|
277
|
+
return o;
|
278
|
+
}, t.prototype.hasListeners = function(n) {
|
279
|
+
return this.listenerCount(n) > 0;
|
280
|
+
}, t.prototype.addEventListener = t.prototype.on, t.prototype.removeListener = t.prototype.off, t.prototype.removeEventListener = t.prototype.off, t.prototype.removeAllListeners = t.prototype.off, e.exports = t;
|
281
|
+
}(Jn)), Jn.exports;
|
282
|
+
}
|
283
|
+
var mo = me(go());
|
284
|
+
function F(e) {
|
285
|
+
return e != null && L(e) === "object" && e["@@functional/placeholder"] === !0;
|
286
|
+
}
|
287
|
+
function pe(e) {
|
288
|
+
return function t(n) {
|
289
|
+
return arguments.length === 0 || F(n) ? t : e.apply(this, arguments);
|
290
|
+
};
|
291
|
+
}
|
292
|
+
function ze(e) {
|
293
|
+
return function t(n, i) {
|
294
|
+
switch (arguments.length) {
|
295
|
+
case 0:
|
296
|
+
return t;
|
297
|
+
case 1:
|
298
|
+
return F(n) ? t : pe(function(o) {
|
299
|
+
return e(n, o);
|
300
|
+
});
|
301
|
+
default:
|
302
|
+
return F(n) && F(i) ? t : F(n) ? pe(function(o) {
|
303
|
+
return e(o, i);
|
304
|
+
}) : F(i) ? pe(function(o) {
|
305
|
+
return e(n, o);
|
306
|
+
}) : e(n, i);
|
307
|
+
}
|
308
|
+
};
|
309
|
+
}
|
310
|
+
function qn(e) {
|
311
|
+
return function t(n, i, o) {
|
312
|
+
switch (arguments.length) {
|
313
|
+
case 0:
|
314
|
+
return t;
|
315
|
+
case 1:
|
316
|
+
return F(n) ? t : ze(function(a, u) {
|
317
|
+
return e(n, a, u);
|
318
|
+
});
|
319
|
+
case 2:
|
320
|
+
return F(n) && F(i) ? t : F(n) ? ze(function(a, u) {
|
321
|
+
return e(a, i, u);
|
322
|
+
}) : F(i) ? ze(function(a, u) {
|
323
|
+
return e(n, a, u);
|
324
|
+
}) : pe(function(a) {
|
325
|
+
return e(n, i, a);
|
326
|
+
});
|
327
|
+
default:
|
328
|
+
return F(n) && F(i) && F(o) ? t : F(n) && F(i) ? ze(function(a, u) {
|
329
|
+
return e(a, u, o);
|
330
|
+
}) : F(n) && F(o) ? ze(function(a, u) {
|
331
|
+
return e(a, i, u);
|
332
|
+
}) : F(i) && F(o) ? ze(function(a, u) {
|
333
|
+
return e(n, a, u);
|
334
|
+
}) : F(n) ? pe(function(a) {
|
335
|
+
return e(a, i, o);
|
336
|
+
}) : F(i) ? pe(function(a) {
|
337
|
+
return e(n, a, o);
|
338
|
+
}) : F(o) ? pe(function(a) {
|
339
|
+
return e(n, i, a);
|
340
|
+
}) : e(n, i, o);
|
341
|
+
}
|
342
|
+
};
|
343
|
+
}
|
344
|
+
function It(e, t) {
|
345
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
346
|
+
}
|
347
|
+
var yo = pe(function(e) {
|
348
|
+
return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
349
|
+
});
|
350
|
+
function Zn(e) {
|
351
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
352
|
+
}
|
353
|
+
function Ai(e, t, n) {
|
354
|
+
if (n || (n = new vo()), function(a) {
|
355
|
+
var u = L(a);
|
356
|
+
return a == null || u != "object" && u != "function";
|
357
|
+
}(e)) return e;
|
358
|
+
var i, o = function(a) {
|
359
|
+
var u = n.get(e);
|
360
|
+
if (u) return u;
|
361
|
+
for (var s in n.set(e, a), e) Object.prototype.hasOwnProperty.call(e, s) && (a[s] = Ai(e[s], !0, n));
|
362
|
+
return a;
|
363
|
+
};
|
364
|
+
switch (yo(e)) {
|
365
|
+
case "Object":
|
366
|
+
return o(Object.create(Object.getPrototypeOf(e)));
|
367
|
+
case "Array":
|
368
|
+
return o(Array(e.length));
|
369
|
+
case "Date":
|
370
|
+
return new Date(e.valueOf());
|
371
|
+
case "RegExp":
|
372
|
+
return i = e, new RegExp(i.source, i.flags ? i.flags : (i.global ? "g" : "") + (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.sticky ? "y" : "") + (i.unicode ? "u" : "") + (i.dotAll ? "s" : ""));
|
373
|
+
case "Int8Array":
|
374
|
+
case "Uint8Array":
|
375
|
+
case "Uint8ClampedArray":
|
376
|
+
case "Int16Array":
|
377
|
+
case "Uint16Array":
|
378
|
+
case "Int32Array":
|
379
|
+
case "Uint32Array":
|
380
|
+
case "Float32Array":
|
381
|
+
case "Float64Array":
|
382
|
+
case "BigInt64Array":
|
383
|
+
case "BigUint64Array":
|
384
|
+
return e.slice();
|
385
|
+
default:
|
386
|
+
return e;
|
387
|
+
}
|
388
|
+
}
|
389
|
+
var vo = function() {
|
390
|
+
function e() {
|
391
|
+
this.map = {}, this.length = 0;
|
392
|
+
}
|
393
|
+
return e.prototype.set = function(t, n) {
|
394
|
+
var i = this.hash(t), o = this.map[i];
|
395
|
+
o || (this.map[i] = o = []), o.push([t, n]), this.length += 1;
|
396
|
+
}, e.prototype.hash = function(t) {
|
397
|
+
var n = [];
|
398
|
+
for (var i in t) n.push(Object.prototype.toString.call(t[i]));
|
399
|
+
return n.join();
|
400
|
+
}, e.prototype.get = function(t) {
|
401
|
+
if (this.length <= 180) {
|
402
|
+
for (var n in this.map) for (var i = this.map[n], o = 0; o < i.length; o += 1)
|
403
|
+
if ((u = i[o])[0] === t) return u[1];
|
404
|
+
} else {
|
405
|
+
var a = this.hash(t);
|
406
|
+
if (i = this.map[a]) for (o = 0; o < i.length; o += 1) {
|
407
|
+
var u;
|
408
|
+
if ((u = i[o])[0] === t) return u[1];
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}, e;
|
412
|
+
}(), U = pe(function(e) {
|
413
|
+
return e != null && typeof e.clone == "function" ? e.clone() : Ai(e);
|
414
|
+
}), bo = qn(function(e, t, n) {
|
415
|
+
var i, o = {};
|
416
|
+
for (i in n = n || {}, t = t || {}) It(i, t) && (o[i] = It(i, n) ? e(i, t[i], n[i]) : t[i]);
|
417
|
+
for (i in n) It(i, n) && !It(i, o) && (o[i] = n[i]);
|
418
|
+
return o;
|
419
|
+
}), ko = qn(function e(t, n, i) {
|
420
|
+
return bo(function(o, a, u) {
|
421
|
+
return Zn(a) && Zn(u) ? e(t, a, u) : t(o, a, u);
|
422
|
+
}, n, i);
|
423
|
+
}), Ao = qn(function(e, t, n) {
|
424
|
+
return ko(function(i, o, a) {
|
425
|
+
return e(o, a);
|
426
|
+
}, t, n);
|
427
|
+
}), He = { HS: "HubSpot", GA: "GA", HOTJAR: "Hotjar", GOOGLEADS: "GoogleAds", VWO: "VWO", GTM: "GoogleTagManager", BRAZE: "Braze", INTERCOM: "INTERCOM", KEEN: "Keen", KISSMETRICS: "Kissmetrics", CUSTOMERIO: "CustomerIO", CHARTBEAT: "Chartbeat", FACEBOOK_PIXEL: "FacebookPixel", LOTAME: "Lotame", OPTIMIZELY: "Optimizely", BUGSNAG: "Bugsnag", FULLSTORY: "Fullstory", TVSQUARED: "TVSquared", GA4: "GA4", GA4_V2: "GA4_V2", MOENGAGE: "MoEngage", AM: "Amplitude", PENDO: "Pendo", LYTICS: "Lytics", APPCUES: "Appcues", POSTHOG: "Posthog", KLAVIYO: "Klaviyo", CLEVERTAP: "Clevertap", BINGADS: "BingAds", PINTEREST_TAG: "PinterestTag", ADOBE_ANALYTICS: "AdobeAnalytics", LINKEDIN_INSIGHT_TAG: "LinkedInInsightTag", REDDIT_PIXEL: "RedditPixel", DRIP: "Drip", HEAP: "Heap", CRITEO: "Criteo", MP: "Mixpanel", QUALTRICS: "Qualtrics", PROFITWELL: "ProfitWell", SENTRY: "Sentry", QUANTUMMETRIC: "QuantumMetric", SNAP_PIXEL: "SnapPixel", POST_AFFILIATE_PRO: "PostAffiliatePro", GOOGLE_OPTIMIZE: "GoogleOptimize", LAUNCHDARKLY: "LaunchDarkly", GA360: "GA360", ADROLL: "Adroll", DCM_FLOODLIGHT: "DCMFloodlight", MATOMO: "Matomo", VERO: "Vero", MOUSEFLOW: "Mouseflow", ROCKERBOX: "Rockerbox", CONVERTFLOW: "ConvertFlow", SNAPENGAGE: "SnapEngage", LIVECHAT: "LiveChat", SHYNET: "Shynet", WOOPRA: "Woopra", ROLLBAR: "RollBar", QUORA_PIXEL: "QuoraPixel", JUNE: "June", ENGAGE: "Engage", ITERABLE: "Iterable", YANDEX_METRICA: "YandexMetrica", REFINER: "Refiner", QUALAROO: "Qualaroo", PODSIGHTS: "Podsights", AXEPTIO: "Axeptio", SATISMETER: "Satismeter", MICROSOFT_CLARITY: "MicrosoftClarity", SENDINBLUE: "Sendinblue", OLARK: "Olark", LEMNISK: "Lemnisk", TIKTOK_ADS: "TiktokAds", ACTIVE_CAMPAIGN: "ActiveCampaign", SPRIG: "Sprig", SPOTIFYPIXEL: "SpotifyPixel", COMMANDBAR: "CommandBar", NINETAILED: "Ninetailed", XPIXEL: "XPixel", GAINSIGHT_PX: "Gainsight_PX" }, W = "ACTIVE_CAMPAIGN", Y = "ADOBE_ANALYTICS", Ve = "ADROLL", st = "AM", at = "APPCUES", Et = "AXEPTIO", Ie = "BINGADS", Ot = "BRAZE", _t = "BUGSNAG", $e = "CHARTBEAT", Ct = "CLEVERTAP", Xe = "COMMANDBAR", z = "CONVERTFLOW", St = "CRITEO", We = "CUSTOMERIO", J = "DCM_FLOODLIGHT", wt = "DRIP", Tt = "ENGAGE", Ee = "FACEBOOK_PIXEL", ie = "FULLSTORY", Ye = "GA", Z = "GA360", V = "GA4", $ = "GA4_V2", cn = "GAINSIGHT_PX", oe = "GOOGLE_OPTIMIZE", Be = "GOOGLEADS", Je = "GTM", ut = "HEAP", Ze = "HOTJAR", Fe = "HS", Rt = "INTERCOM", Pt = "ITERABLE", Dt = "JUNE", et = "KEEN", xt = "KISSMETRICS", Lt = "KLAVIYO", Ne = "LAUNCHDARKLY", se = "LEMNISK", Q = "LINKEDIN_INSIGHT_TAG", Oe = "LIVECHAT", Mt = "LOTAME", Bt = "LYTICS", Ft = "MATOMO", ee = "MICROSOFT_CLARITY", _e = "MOENGAGE", te = "MOUSEFLOW", Ge = "MP", lt = "NINETAILED", Nt = "OLARK", Gt = "OPTIMIZELY", Ut = "PENDO", j = "PINTEREST_TAG", ae = "PODSIGHTS", ue = "POST_AFFILIATE_PRO", Ce = "POSTHOG", Se = "PROFITWELL", jt = "QUALAROO", Ht = "QUALTRICS", le = "QUANTUMMETRIC", X = "QUORA_PIXEL", ce = "REDDIT_PIXEL", qt = "REFINER", we = "ROCKERBOX", fe = "ROLLBAR", Kt = "SATISMETER", ct = "SENDINBLUE", Qt = "SENTRY", ne = "SHYNET", de = "SNAP_PIXEL", Te = "SNAPENGAGE", ft = "SPOTIFYPIXEL", zt = "SPRIG", Re = "TIKTOK_ADS", re = "TVSQUARED", Vt = "VERO", he = "VWO", $t = "WOOPRA", tt = "XPIXEL", nt = "YANDEX_METRICA";
|
428
|
+
r({}, "Adobe Analytics", "AdobeAnalytics");
|
429
|
+
var Io = r(r(r(r(r(r({ "Adobe Analytics": Y, ADOBEANALYTICS: Y, "ADOBE ANALYTICS": Y }, Y, Y), "AdobeAnalytics", Y), "adobeanalytics", Y), "adobe analytics", Y), "Adobe analytics", Y), "adobe Analytics", Y);
|
430
|
+
r({}, "Amplitude", "Amplitude");
|
431
|
+
var Eo = r(r(r(r({}, st, st), "AMPLITUDE", st), "Amplitude", st), "am", st);
|
432
|
+
r({}, "Appcues", "Appcues");
|
433
|
+
var Oo = r(r(r(r({}, at, at), "Appcues", at), "App Cues", at), "appcues", at);
|
434
|
+
r({}, "Bing Ads", "BingAds");
|
435
|
+
var _o = r(r(r(r(r(r(r({}, Ie, Ie), "BingAds", Ie), "bingads", Ie), "Bing Ads", Ie), "Bing ads", Ie), "bing Ads", Ie), "bing ads", Ie);
|
436
|
+
r({}, "Braze", "Braze");
|
437
|
+
var Co = r(r(r({}, Ot, Ot), "Braze", Ot), "braze", Ot);
|
438
|
+
r({}, "Bugsnag", "Bugsnag");
|
439
|
+
var So = r(r(r({}, _t, _t), "bugsnag", _t), "Bugsnag", _t);
|
440
|
+
r({}, "Chartbeat", "Chartbeat");
|
441
|
+
var wo = r(r(r(r(r({}, $e, $e), "Chartbeat", $e), "chartbeat", $e), "Chart Beat", $e), "chart beat", $e);
|
442
|
+
r({}, "CleverTap", "Clevertap");
|
443
|
+
var To = r(r(r({}, Ct, Ct), "Clevertap", Ct), "clevertap", Ct);
|
444
|
+
r({}, "Criteo", "Criteo");
|
445
|
+
var Ro = r(r(r({}, St, St), "Criteo", St), "criteo", St);
|
446
|
+
r({}, "Customer IO", "CustomerIO");
|
447
|
+
var Po = r(r(r(r(r({}, We, We), "Customerio", We), "Customer.io", We), "CUSTOMER.IO", We), "customer.io", We);
|
448
|
+
r({}, "Drip", "Drip");
|
449
|
+
var Do = r(r(r({}, wt, wt), "Drip", wt), "drip", wt);
|
450
|
+
r({}, "Facebook Pixel", "FacebookPixel");
|
451
|
+
var xo = r(r(r(r(r(r(r({}, Ee, Ee), "FB Pixel", Ee), "Facebook Pixel", Ee), "facebook pixel", Ee), "fbpixel", Ee), "FBPIXEL", Ee), "FB_PIXEL", Ee);
|
452
|
+
r({}, "Fullstory", "Fullstory");
|
453
|
+
var Lo = r(r(r(r(r(r(r(r({}, ie, ie), "Fullstory", ie), "FullStory", ie), "full Story", ie), "Full Story", ie), "Full story", ie), "full story", ie), "fullstory", ie);
|
454
|
+
r({}, "Google Analytics", "GA");
|
455
|
+
var Mo = r(r(r(r(r({}, Ye, Ye), "Google Analytics", Ye), "GoogleAnalytics", Ye), "GOOGLE ANALYTICS", Ye), "google analytics", Ye);
|
456
|
+
r({}, "Google Analytics 4 (GA4)", "GA4");
|
457
|
+
var Bo = r(r(r(r(r(r(r(r(r(r({}, V, V), "Google Analytics 4", V), "Google analytics 4", V), "google analytics 4", V), "Google Analytics4", V), "Google analytics4", V), "google analytics4", V), "Google Analytics 4 (GA4)", V), "google analytics 4 (ga4)", V), "GoogleAnalytics4", V);
|
458
|
+
r({}, "Google Analytics 4 (GA4) V2", "GA4_V2");
|
459
|
+
var Fo = r(r(r(r(r(r(r(r(r(r({}, $, $), "Google Analytics 4 V2", $), "Google analytics 4 V2", $), "google analytics 4 V2", $), "Google Analytics4 V2", $), "Google analytics4 V2", $), "google analytics4 V2", $), "Google Analytics 4 (GA4) V2", $), "google analytics 4 (ga4) V2", $), "GoogleAnalytics4V2", $);
|
460
|
+
r({}, "Google Ads", "GoogleAds");
|
461
|
+
var No = r(r(r(r(r(r({}, Be, Be), "Google Ads", Be), "GoogleAds", Be), "GOOGLE ADS", Be), "google ads", Be), "googleads", Be);
|
462
|
+
r({}, "Google Optimize", "GoogleOptimize");
|
463
|
+
var Go = r(r(r(r(r(r(r(r({}, oe, oe), "Google Optimize", oe), "GoogleOptimize", oe), "Googleoptimize", oe), "GOOGLEOPTIMIZE", oe), "google optimize", oe), "Google optimize", oe), "GOOGLE OPTIMIZE", oe);
|
464
|
+
r({}, "Google Tag Manager", "GoogleTagManager");
|
465
|
+
var Uo = r(r(r(r(r({}, Je, Je), "Google Tag Manager", Je), "google tag manager", Je), "googletag manager", Je), "googletagmanager", Je);
|
466
|
+
r({}, "Heap.io", "Heap");
|
467
|
+
var jo = r(r(r(r({}, ut, ut), "Heap", ut), "heap", ut), "Heap.io", ut);
|
468
|
+
r({}, "Hotjar", "Hotjar");
|
469
|
+
var Ho = r(r(r(r(r({}, Ze, Ze), "Hotjar", Ze), "hotjar", Ze), "Hot Jar", Ze), "hot jar", Ze);
|
470
|
+
r({}, "HubSpot", "HubSpot");
|
471
|
+
var qo = r(r(r(r(r(r({}, Fe, Fe), "Hubspot", Fe), "HUBSPOT", Fe), "hub spot", Fe), "Hub Spot", Fe), "Hub spot", Fe);
|
472
|
+
r({}, "Intercom", "INTERCOM");
|
473
|
+
var Ko = r(r(r({}, Rt, Rt), "Intercom", Rt), "intercom", Rt);
|
474
|
+
r({}, "Keen", "Keen");
|
475
|
+
var Qo = r(r(r(r(r({}, et, et), "Keen", et), "Keen.io", et), "keen", et), "keen.io", et);
|
476
|
+
r({}, "Kiss Metrics", "Kissmetrics");
|
477
|
+
var zo = r(r(r({}, xt, xt), "Kissmetrics", xt), "kissmetrics", xt);
|
478
|
+
r({}, "Klaviyo", "Klaviyo");
|
479
|
+
var Vo = r(r(r({}, Lt, Lt), "Klaviyo", Lt), "klaviyo", Lt);
|
480
|
+
r({}, "LaunchDarkly", "LaunchDarkly");
|
481
|
+
var er, $o = r(r(r(r(r(r({}, Ne, Ne), "LaunchDarkly", Ne), "Launch_Darkly", Ne), "Launch Darkly", Ne), "launchDarkly", Ne), "launch darkly", Ne);
|
482
|
+
r({}, "Linkedin Insight Tag", "LinkedInInsightTag");
|
483
|
+
var Xo = (r(r(r(r(r(r(r(r(r(r(er = {}, Q, Q), "LinkedIn Insight Tag", Q), "LinkedIn insight tag", Q), "linkedIn insight tag", Q), "Linkedin_insight_tag", Q), "LinkedinInsighttag", Q), "LinkedinInsightTag", Q), "LinkedInInsightTag", Q), "Linkedininsighttag", Q), "LINKEDININSIGHTTAG", Q), r(er, "linkedininsighttag", Q));
|
484
|
+
r({}, "Lotame", "Lotame");
|
485
|
+
var Wo = r(r(r({}, Mt, Mt), "Lotame", Mt), "lotame", Mt);
|
486
|
+
r({}, "Lytics", "Lytics");
|
487
|
+
var Yo = r(r(r({}, Bt, Bt), "Lytics", Bt), "lytics", Bt);
|
488
|
+
r({}, "Mixpanel", "Mixpanel");
|
489
|
+
var Jo = r(r(r(r(r(r({}, Ge, Ge), "MIXPANEL", Ge), "Mixpanel", Ge), "MIX PANEL", Ge), "Mix panel", Ge), "Mix Panel", Ge);
|
490
|
+
r({}, "MoEngage", "MoEngage");
|
491
|
+
var Zo = r(r(r(r(r(r(r({}, _e, _e), "MoEngage", _e), "moengage", _e), "Moengage", _e), "Mo Engage", _e), "mo engage", _e), "Mo engage", _e);
|
492
|
+
r({}, "Optimizely Web", "Optimizely");
|
493
|
+
var es = r(r(r({}, Gt, Gt), "Optimizely", Gt), "optimizely", Gt);
|
494
|
+
r({}, "Pendo", "Pendo");
|
495
|
+
var tr, ts = r(r(r({}, Ut, Ut), "Pendo", Ut), "pendo", Ut);
|
496
|
+
r({}, "Pinterest Tag", "PinterestTag");
|
497
|
+
var ns = (r(r(r(r(r(r(r(r(r(r(tr = {}, j, j), "PinterestTag", j), "Pinterest_Tag", j), "PINTERESTTAG", j), "pinterest", j), "PinterestAds", j), "Pinterest_Ads", j), "Pinterest", j), "Pinterest Tag", j), "Pinterest tag", j), r(r(r(r(tr, "PINTEREST TAG", j), "pinterest tag", j), "Pinterest Ads", j), "Pinterest ads", j));
|
498
|
+
r({}, "Post Affiliate Pro", "PostAffiliatePro");
|
499
|
+
var rs = r(r(r(r(r(r(r(r({}, ue, ue), "PostAffiliatePro", ue), "Post_affiliate_pro", ue), "Post Affiliate Pro", ue), "Post affiliate pro", ue), "post affiliate pro", ue), "postaffiliatepro", ue), "POSTAFFILIATEPRO", ue);
|
500
|
+
r({}, "PostHog", "Posthog");
|
501
|
+
var is = r(r(r(r(r(r(r({}, Ce, Ce), "PostHog", Ce), "Posthog", Ce), "posthog", Ce), "Post Hog", Ce), "Post hog", Ce), "post hog", Ce);
|
502
|
+
r({}, "ProfitWell", "ProfitWell");
|
503
|
+
var os = r(r(r(r(r(r(r({}, Se, Se), "ProfitWell", Se), "profitwell", Se), "Profitwell", Se), "Profit Well", Se), "profit well", Se), "Profit well", Se);
|
504
|
+
r({}, "Qualtrics", "Qualtrics");
|
505
|
+
var ss = r(r(r({}, Ht, Ht), "Qualtrics", Ht), "qualtrics", Ht);
|
506
|
+
r({}, "Quantum Metric", "QuantumMetric");
|
507
|
+
var as = r(r(r(r(r(r(r(r({}, le, le), "Quantum Metric", le), "quantum Metric", le), "quantum metric", le), "QuantumMetric", le), "quantumMetric", le), "quantummetric", le), "Quantum_Metric", le);
|
508
|
+
r({}, "Reddit Pixel", "RedditPixel");
|
509
|
+
var us = r(r(r(r(r(r(r(r({}, ce, ce), "Reddit_Pixel", ce), "RedditPixel", ce), "REDDITPIXEL", ce), "redditpixel", ce), "Reddit Pixel", ce), "REDDIT PIXEL", ce), "reddit pixel", ce);
|
510
|
+
r({}, "Sentry", "Sentry");
|
511
|
+
var ls = r(r(r({}, Qt, Qt), "sentry", Qt), "Sentry", Qt);
|
512
|
+
r({}, "Snap Pixel", "SnapPixel");
|
513
|
+
var cs = r(r(r(r(r(r(r(r({}, de, de), "Snap_Pixel", de), "SnapPixel", de), "SNAPPIXEL", de), "snappixel", de), "Snap Pixel", de), "SNAP PIXEL", de), "snap pixel", de);
|
514
|
+
r({}, "TVSquared", "TVSquared");
|
515
|
+
var fs = r(r(r(r(r(r(r(r(r({}, re, re), "TVSquared", re), "tvsquared", re), "tvSquared", re), "TvSquared", re), "Tvsquared", re), "TV Squared", re), "tv squared", re), "tv Squared", re);
|
516
|
+
r({}, "VWO", "VWO");
|
517
|
+
var ds = r(r(r(r(r(r(r(r({}, he, he), "VisualWebsiteOptimizer", he), "Visualwebsiteoptimizer", he), "visualwebsiteoptimizer", he), "vwo", he), "Visual Website Optimizer", he), "Visual website optimizer", he), "visual website optimizer", he);
|
518
|
+
r({}, "Google Analytics 360", "GA360");
|
519
|
+
var hs = r(r(r(r(r(r(r(r(r({}, Z, Z), "Google Analytics 360", Z), "Google analytics 360", Z), "google analytics 360", Z), "Google Analytics360", Z), "Google analytics360", Z), "google analytics360", Z), "GoogleAnalytics360", Z), "GA 360", Z);
|
520
|
+
r({}, "Adroll", "Adroll");
|
521
|
+
var ps = r(r(r(r(r({}, Ve, Ve), "Adroll", Ve), "Ad roll", Ve), "ad roll", Ve), "adroll", Ve);
|
522
|
+
r({}, "DCM Floodlight", "DCMFloodlight");
|
523
|
+
var gs = r(r(r(r(r(r(r(r(r({}, J, J), "DCM Floodlight", J), "dcm floodlight", J), "Dcm Floodlight", J), "DCMFloodlight", J), "dcmfloodlight", J), "DcmFloodlight", J), "dcm_floodlight", J), "DCM_Floodlight", J);
|
524
|
+
r({}, "Matomo", "Matomo");
|
525
|
+
var ms = r(r(r({}, Ft, Ft), "Matomo", Ft), "matomo", Ft);
|
526
|
+
r({}, "Vero", "Vero");
|
527
|
+
var ys = r(r(r({}, Vt, Vt), "Vero", Vt), "vero", Vt);
|
528
|
+
r({}, "Mouseflow", "Mouseflow");
|
529
|
+
var vs = r(r(r(r(r(r(r(r(r({}, te, te), "Mouseflow", te), "mouseflow", te), "mouseFlow", te), "MouseFlow", te), "Mouse flow", te), "mouse flow", te), "mouse Flow", te), "Mouse Flow", te);
|
530
|
+
r({}, "Rockerbox", "Rockerbox");
|
531
|
+
var bs = r(r(r(r(r(r(r({}, we, we), "Rockerbox", we), "rockerbox", we), "RockerBox", we), "Rocker box", we), "rocker box", we), "Rocker Box", we);
|
532
|
+
r({}, "Convertflow", "ConvertFlow");
|
533
|
+
var ks = r(r(r(r(r(r(r(r(r(r({}, z, z), "Convertflow", z), "convertflow", z), "convertFlow", z), "ConvertFlow", z), "Convert flow", z), "convert flow", z), "convert Flow", z), "Convert Flow", z), "CONVERT FLOW", z);
|
534
|
+
r({}, "SnapEngage", "SnapEngage");
|
535
|
+
var As = r(r(r(r(r(r(r({}, Te, Te), "SnapEngage", Te), "Snap_Engage", Te), "snapengage", Te), "SNAP ENGAGE", Te), "Snap Engage", Te), "snap engage", Te);
|
536
|
+
r({}, "livechat", "LiveChat");
|
537
|
+
var Is = r(r(r(r(r(r(r({}, Oe, Oe), "LiveChat", Oe), "Live_Chat", Oe), "livechat", Oe), "LIVE CHAT", Oe), "Live Chat", Oe), "live chat", Oe);
|
538
|
+
r({}, "Shynet", "Shynet");
|
539
|
+
var Es = r(r(r(r(r(r(r(r(r({}, ne, ne), "shynet", ne), "ShyNet", ne), "shyNet", ne), "Shynet", ne), "shy net", ne), "Shy Net", ne), "shy Net", ne), "Shy net", ne);
|
540
|
+
r({}, "WOOPRA", "Woopra");
|
541
|
+
var Os = r(r(r({}, $t, $t), "Woopra", $t), "woopra", $t);
|
542
|
+
r({}, "rollbar", "RollBar");
|
543
|
+
var _s = r(r(r(r(r(r(r(r({}, fe, fe), "RollBar", fe), "Roll_Bar", fe), "rollbar", fe), "Rollbar", fe), "ROLL BAR", fe), "Roll Bar", fe), "roll bar", fe);
|
544
|
+
r({}, "Quora Pixel", "QuoraPixel");
|
545
|
+
var Cs = r(r(r(r(r(r(r(r(r(r({}, X, X), "Quora Pixel", X), "Quora pixel", X), "QUORA PIXEL", X), "QuoraPixel", X), "Quorapixel", X), "QUORAPIXEL", X), "Quora_Pixel", X), "quora_pixel", X), "Quora", X);
|
546
|
+
r({}, "JUNE", "June");
|
547
|
+
var Ss = r(r(r({}, Dt, Dt), "June", Dt), "june", Dt);
|
548
|
+
r({}, "Engage", "Engage");
|
549
|
+
var ws = r(r(r({}, Tt, Tt), "Engage", Tt), "engage", Tt);
|
550
|
+
r({}, "Iterable", "Iterable");
|
551
|
+
var Ts = r(r(r({}, Pt, Pt), "Iterable", Pt), "iterable", Pt);
|
552
|
+
r({}, "Yandex.Metrica", "YandexMetrica");
|
553
|
+
var Rs = r(r(r(r(r({}, nt, nt), "Yandexmetrica", nt), "yandexmetrica", nt), "yandexMetrica", nt), "YandexMetrica", nt);
|
554
|
+
r({}, "Refiner", "Refiner");
|
555
|
+
var Ps = r(r(r({}, qt, qt), "Refiner", qt), "refiner", qt);
|
556
|
+
r({}, "Qualaroo", "Qualaroo");
|
557
|
+
var Ds = r(r(r({}, jt, jt), "Qualaroo", jt), "qualaroo", jt);
|
558
|
+
r({}, "Podsights", "Podsights");
|
559
|
+
var xs = r(r(r(r(r(r(r(r({}, ae, ae), "Podsights", ae), "PodSights", ae), "pod Sights", ae), "Pod Sights", ae), "pod sights", ae), "POD SIGHTS", ae), "Pod sights", ae);
|
560
|
+
r({}, "Axeptio", "Axeptio");
|
561
|
+
var Ls = r(r(r({}, Et, Et), "Axeptio", Et), "axeptio", Et);
|
562
|
+
r({}, "SatisMeter", "Satismeter");
|
563
|
+
var Ms = r(r(r({}, Kt, Kt), "Satismeter", Kt), "SatisMeter", Kt);
|
564
|
+
r({}, "Microsoft Clarity", "MicrosoftClarity");
|
565
|
+
var Bs = r(r(r(r(r(r(r(r(r({}, ee, ee), "Microsoft Clarity", ee), "Microsoft clarity", ee), "microsoft clarity", ee), "Microsoft_clarity", ee), "MicrosoftClarity", ee), "MICROSOFTCLARITY", ee), "microsoftclarity", ee), "microsoftClarity", ee);
|
566
|
+
r({}, "Sendinblue", "Sendinblue");
|
567
|
+
var Fs = r(r(r(r({}, ct, ct), "Sendinblue", ct), "sendinblue", ct), "SendinBlue", ct);
|
568
|
+
r({}, "Olark", "Olark");
|
569
|
+
var Ns = r(r(r({}, Nt, Nt), "Olark", Nt), "olark", Nt);
|
570
|
+
r({}, "Lemnisk Marketing Automation", "Lemnisk");
|
571
|
+
var Gs = r(r(r(r(r(r(r(r({}, se, se), "LEMNISK_MARKETING_AUTOMATION", se), "Lemnisk Marketing Automation", se), "LemniskMarketingAutomation", se), "lemniskmarketingautomation", se), "lemniskMarketingAutomation", se), "lemnisk", se), "Lemnisk", se);
|
572
|
+
r({}, "TikTok Ads", "TiktokAds");
|
573
|
+
var Us = r(r(r(r(r(r(r({}, Re, Re), "TiktokAds", Re), "Tiktok ads", Re), "Tiktok Ads", Re), "Tik Tok Ads", Re), "tik tok ads", Re), "tiktokads", Re);
|
574
|
+
r({}, "ActiveCampaign", "ActiveCampaign");
|
575
|
+
var js = r(r(r(r(r(r({ ActiveCampaign: W, "Active Campaign": W, "ACTIVE CAMPAIGN": W }, W, W), "activecampaign", W), "active campaign", W), "Active campaign", W), "active Campaign", W), "active_campaign", W);
|
576
|
+
r({}, "Sprig", "Sprig");
|
577
|
+
var Hs = r(r(r({}, zt, zt), "Sprig", zt), "sprig", zt);
|
578
|
+
r({}, "Spotify Pixel", "SpotifyPixel");
|
579
|
+
var qs = r(r(r(r({}, ft, ft), "Spotify Pixel", ft), "spotify pixel", ft), "SPOTIFY_PIXEL", ft);
|
580
|
+
r({}, "CommandBar", "CommandBar");
|
581
|
+
var Ks = r(r(r(r(r({}, Xe, Xe), "Command Bar", Xe), "Commandbar", Xe), "COMMAND_BAR", Xe), "commandbar", Xe);
|
582
|
+
r({}, "Ninetailed", "Ninetailed");
|
583
|
+
var Qs = r(r(r(r({}, lt, lt), "Ninetailed", lt), "ninetailed", lt), "NineTailed", lt);
|
584
|
+
r({}, "XPixel", "XPixel");
|
585
|
+
var zs = r(r(r(r(r({}, tt, tt), "XPixel", tt), "Xpixel", tt), "xpixel", tt), "xPixel", tt);
|
586
|
+
r({}, "Gainsight PX", "Gainsight_PX");
|
587
|
+
var Vs = r(r({}, cn, cn), "Gainsight_PX", cn), Ii = E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E({ All: "All" }, Io), Eo), Oo), _o), Co), So), Ks), wo), To), Ro), Po), Do), xo), Lo), Mo), Bo), Fo), hs), No), Go), Uo), jo), Ho), qo), Ko), Qo), zo), Vo), $o), Xo), Wo), Yo), Jo), Zo), Qs), es), ts), ns), rs), is), os), ss), as), us), ls), cs), fs), ds), ps), gs), ms), ys), vs), ks), As), Is), Es), Os), _s), Cs), Ss), ws), Ts), bs), Rs), Ps), Ds), xs), Ls), Ms), Bs), Fs), Ns), Gs), Us), js), Hs), qs), zs), Vs), Pe = 4, D = { setLogLevel: function(e) {
|
588
|
+
switch (e.toUpperCase()) {
|
589
|
+
case "INFO":
|
590
|
+
Pe = 1;
|
591
|
+
break;
|
592
|
+
case "DEBUG":
|
593
|
+
Pe = 2;
|
594
|
+
break;
|
595
|
+
case "WARN":
|
596
|
+
Pe = 3;
|
597
|
+
break;
|
598
|
+
default:
|
599
|
+
Pe = 4;
|
600
|
+
}
|
601
|
+
}, info: function() {
|
602
|
+
var e;
|
603
|
+
Pe <= 1 && (e = console).info.apply(e, arguments);
|
604
|
+
}, debug: function() {
|
605
|
+
var e;
|
606
|
+
Pe <= 2 && (e = console).log.apply(e, arguments);
|
607
|
+
}, warn: function() {
|
608
|
+
var e;
|
609
|
+
Pe <= 3 && (e = console).warn.apply(e, arguments);
|
610
|
+
}, error: function() {
|
611
|
+
var e;
|
612
|
+
Pe <= 4 && (e = console).error.apply(e, arguments);
|
613
|
+
} }, en = 1e4, Xt = 1e3, Ei = "RS_JS_SDK", Kn = "Request failed with status:", $s = [Kn], Qn = "errorReporting", nr = function(e) {
|
614
|
+
var t, n = (t = window.RudderStackGlobals) === null || t === void 0 ? void 0 : t[Qn];
|
615
|
+
n && e instanceof Error && n.notify(e);
|
616
|
+
}, ge = function(e, t) {
|
617
|
+
try {
|
618
|
+
return JSON.stringify(e, /* @__PURE__ */ function(n) {
|
619
|
+
var i = [];
|
620
|
+
return function(o, a) {
|
621
|
+
if (!n || a != null) {
|
622
|
+
if (L(a) !== "object" || a === null) return a;
|
623
|
+
for (; i.length > 0 && i[i.length - 1] !== this; ) i.pop();
|
624
|
+
return i.includes(a) ? (D.debug("Circular Reference detected for key: ".concat(o)), "[Circular Reference]") : (i.push(a), a);
|
625
|
+
}
|
626
|
+
};
|
627
|
+
}(t));
|
628
|
+
} catch {
|
629
|
+
return D.warn("Failed to convert the value to a JSON string."), null;
|
630
|
+
}
|
631
|
+
}, Xs = function(e, t, n) {
|
632
|
+
var i, o;
|
633
|
+
try {
|
634
|
+
i = typeof e == "string" ? e : e instanceof Error || e.message ? e.message : ge(e);
|
635
|
+
} catch {
|
636
|
+
i = "";
|
637
|
+
}
|
638
|
+
if (L(o = e) === "object" && o !== null && "target" in o) {
|
639
|
+
if (e.target && e.target.localName !== "script" || e.target.dataset && (e.target.dataset.loader !== Ei || e.target.dataset.isnonnativesdk !== "true")) return "";
|
640
|
+
if (i = "error in script loading:: src:: ".concat(e.target.src, " id:: ").concat(e.target.id), e.target.id === "ad-block") return n.page("RudderJS-Initiated", "ad-block page request", { path: "/ad-blocked", title: i }, n.sendAdblockPageOptions), "";
|
641
|
+
}
|
642
|
+
return "[handleError]::".concat(t || "", ' "').concat(i, '"');
|
643
|
+
}, M = function(e, t, n) {
|
644
|
+
var i;
|
645
|
+
try {
|
646
|
+
i = Xs(e, t, n);
|
647
|
+
} catch (o) {
|
648
|
+
D.error("[handleError] Exception:: ", o), D.error("[handleError] Original error:: ", ge(e)), nr(o);
|
649
|
+
}
|
650
|
+
i && (D.error(i), function(o) {
|
651
|
+
return !o.message || !$s.some(function(a) {
|
652
|
+
return o.message.includes(a);
|
653
|
+
});
|
654
|
+
}(e) && nr(e));
|
655
|
+
}, rr = { exports: {} }, ir, or = { exports: {} }, Ws = po(Object.freeze({ __proto__: null, default: {} }));
|
656
|
+
function Le() {
|
657
|
+
return ir || (ir = 1, or.exports = (e = e || function(t, n) {
|
658
|
+
var i;
|
659
|
+
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && ln !== void 0 && ln.crypto && (i = ln.crypto), !i) try {
|
660
|
+
i = Ws;
|
661
|
+
} catch {
|
662
|
+
}
|
663
|
+
var o = function() {
|
664
|
+
if (i) {
|
665
|
+
if (typeof i.getRandomValues == "function") try {
|
666
|
+
return i.getRandomValues(new Uint32Array(1))[0];
|
667
|
+
} catch {
|
668
|
+
}
|
669
|
+
if (typeof i.randomBytes == "function") try {
|
670
|
+
return i.randomBytes(4).readInt32LE();
|
671
|
+
} catch {
|
672
|
+
}
|
673
|
+
}
|
674
|
+
throw new Error("Native crypto module could not be used to get secure random number.");
|
675
|
+
}, a = Object.create || /* @__PURE__ */ function() {
|
676
|
+
function h() {
|
677
|
+
}
|
678
|
+
return function(y) {
|
679
|
+
var k;
|
680
|
+
return h.prototype = y, k = new h(), h.prototype = null, k;
|
681
|
+
};
|
682
|
+
}(), u = {}, s = u.lib = {}, l = s.Base = { extend: function(h) {
|
683
|
+
var y = a(this);
|
684
|
+
return h && y.mixIn(h), y.hasOwnProperty("init") && this.init !== y.init || (y.init = function() {
|
685
|
+
y.$super.init.apply(this, arguments);
|
686
|
+
}), y.init.prototype = y, y.$super = this, y;
|
687
|
+
}, create: function() {
|
688
|
+
var h = this.extend();
|
689
|
+
return h.init.apply(h, arguments), h;
|
690
|
+
}, init: function() {
|
691
|
+
}, mixIn: function(h) {
|
692
|
+
for (var y in h) h.hasOwnProperty(y) && (this[y] = h[y]);
|
693
|
+
h.hasOwnProperty("toString") && (this.toString = h.toString);
|
694
|
+
}, clone: function() {
|
695
|
+
return this.init.prototype.extend(this);
|
696
|
+
} }, c = s.WordArray = l.extend({ init: function(h, y) {
|
697
|
+
h = this.words = h || [], this.sigBytes = y != n ? y : 4 * h.length;
|
698
|
+
}, toString: function(h) {
|
699
|
+
return (h || f).stringify(this);
|
700
|
+
}, concat: function(h) {
|
701
|
+
var y = this.words, k = h.words, g = this.sigBytes, b = h.sigBytes;
|
702
|
+
if (this.clamp(), g % 4) for (var A = 0; A < b; A++) {
|
703
|
+
var I = k[A >>> 2] >>> 24 - A % 4 * 8 & 255;
|
704
|
+
y[g + A >>> 2] |= I << 24 - (g + A) % 4 * 8;
|
705
|
+
}
|
706
|
+
else for (var T = 0; T < b; T += 4) y[g + T >>> 2] = k[T >>> 2];
|
707
|
+
return this.sigBytes += b, this;
|
708
|
+
}, clamp: function() {
|
709
|
+
var h = this.words, y = this.sigBytes;
|
710
|
+
h[y >>> 2] &= 4294967295 << 32 - y % 4 * 8, h.length = t.ceil(y / 4);
|
711
|
+
}, clone: function() {
|
712
|
+
var h = l.clone.call(this);
|
713
|
+
return h.words = this.words.slice(0), h;
|
714
|
+
}, random: function(h) {
|
715
|
+
for (var y = [], k = 0; k < h; k += 4) y.push(o());
|
716
|
+
return new c.init(y, h);
|
717
|
+
} }), d = u.enc = {}, f = d.Hex = { stringify: function(h) {
|
718
|
+
for (var y = h.words, k = h.sigBytes, g = [], b = 0; b < k; b++) {
|
719
|
+
var A = y[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
720
|
+
g.push((A >>> 4).toString(16)), g.push((15 & A).toString(16));
|
721
|
+
}
|
722
|
+
return g.join("");
|
723
|
+
}, parse: function(h) {
|
724
|
+
for (var y = h.length, k = [], g = 0; g < y; g += 2) k[g >>> 3] |= parseInt(h.substr(g, 2), 16) << 24 - g % 8 * 4;
|
725
|
+
return new c.init(k, y / 2);
|
726
|
+
} }, p = d.Latin1 = { stringify: function(h) {
|
727
|
+
for (var y = h.words, k = h.sigBytes, g = [], b = 0; b < k; b++) {
|
728
|
+
var A = y[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
729
|
+
g.push(String.fromCharCode(A));
|
730
|
+
}
|
731
|
+
return g.join("");
|
732
|
+
}, parse: function(h) {
|
733
|
+
for (var y = h.length, k = [], g = 0; g < y; g++) k[g >>> 2] |= (255 & h.charCodeAt(g)) << 24 - g % 4 * 8;
|
734
|
+
return new c.init(k, y);
|
735
|
+
} }, v = d.Utf8 = { stringify: function(h) {
|
736
|
+
try {
|
737
|
+
return decodeURIComponent(escape(p.stringify(h)));
|
738
|
+
} catch {
|
739
|
+
throw new Error("Malformed UTF-8 data");
|
740
|
+
}
|
741
|
+
}, parse: function(h) {
|
742
|
+
return p.parse(unescape(encodeURIComponent(h)));
|
743
|
+
} }, m = s.BufferedBlockAlgorithm = l.extend({ reset: function() {
|
744
|
+
this._data = new c.init(), this._nDataBytes = 0;
|
745
|
+
}, _append: function(h) {
|
746
|
+
typeof h == "string" && (h = v.parse(h)), this._data.concat(h), this._nDataBytes += h.sigBytes;
|
747
|
+
}, _process: function(h) {
|
748
|
+
var y, k = this._data, g = k.words, b = k.sigBytes, A = this.blockSize, I = b / (4 * A), T = (I = h ? t.ceil(I) : t.max((0 | I) - this._minBufferSize, 0)) * A, R = t.min(4 * T, b);
|
749
|
+
if (T) {
|
750
|
+
for (var x = 0; x < T; x += A) this._doProcessBlock(g, x);
|
751
|
+
y = g.splice(0, T), k.sigBytes -= R;
|
752
|
+
}
|
753
|
+
return new c.init(y, R);
|
754
|
+
}, clone: function() {
|
755
|
+
var h = l.clone.call(this);
|
756
|
+
return h._data = this._data.clone(), h;
|
757
|
+
}, _minBufferSize: 0 });
|
758
|
+
s.Hasher = m.extend({ cfg: l.extend(), init: function(h) {
|
759
|
+
this.cfg = this.cfg.extend(h), this.reset();
|
760
|
+
}, reset: function() {
|
761
|
+
m.reset.call(this), this._doReset();
|
762
|
+
}, update: function(h) {
|
763
|
+
return this._append(h), this._process(), this;
|
764
|
+
}, finalize: function(h) {
|
765
|
+
return h && this._append(h), this._doFinalize();
|
766
|
+
}, blockSize: 16, _createHelper: function(h) {
|
767
|
+
return function(y, k) {
|
768
|
+
return new h.init(k).finalize(y);
|
769
|
+
};
|
770
|
+
}, _createHmacHelper: function(h) {
|
771
|
+
return function(y, k) {
|
772
|
+
return new O.HMAC.init(h, k).finalize(y);
|
773
|
+
};
|
774
|
+
} });
|
775
|
+
var O = u.algo = {};
|
776
|
+
return u;
|
777
|
+
}(Math), e)), or.exports;
|
778
|
+
var e;
|
779
|
+
}
|
780
|
+
var sr, ar = { exports: {} };
|
781
|
+
function Ys() {
|
782
|
+
return sr || (sr = 1, ar.exports = (e = Le(), function() {
|
783
|
+
var t = e, n = t.lib.WordArray;
|
784
|
+
function i(o, a, u) {
|
785
|
+
for (var s = [], l = 0, c = 0; c < a; c++) if (c % 4) {
|
786
|
+
var d = u[o.charCodeAt(c - 1)] << c % 4 * 2 | u[o.charCodeAt(c)] >>> 6 - c % 4 * 2;
|
787
|
+
s[l >>> 2] |= d << 24 - l % 4 * 8, l++;
|
788
|
+
}
|
789
|
+
return n.create(s, l);
|
790
|
+
}
|
791
|
+
t.enc.Base64 = { stringify: function(o) {
|
792
|
+
var a = o.words, u = o.sigBytes, s = this._map;
|
793
|
+
o.clamp();
|
794
|
+
for (var l = [], c = 0; c < u; c += 3) for (var d = (a[c >>> 2] >>> 24 - c % 4 * 8 & 255) << 16 | (a[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255) << 8 | a[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, f = 0; f < 4 && c + 0.75 * f < u; f++) l.push(s.charAt(d >>> 6 * (3 - f) & 63));
|
795
|
+
var p = s.charAt(64);
|
796
|
+
if (p) for (; l.length % 4; ) l.push(p);
|
797
|
+
return l.join("");
|
798
|
+
}, parse: function(o) {
|
799
|
+
var a = o.length, u = this._map, s = this._reverseMap;
|
800
|
+
if (!s) {
|
801
|
+
s = this._reverseMap = [];
|
802
|
+
for (var l = 0; l < u.length; l++) s[u.charCodeAt(l)] = l;
|
803
|
+
}
|
804
|
+
var c = u.charAt(64);
|
805
|
+
if (c) {
|
806
|
+
var d = o.indexOf(c);
|
807
|
+
d !== -1 && (a = d);
|
808
|
+
}
|
809
|
+
return i(o, a, s);
|
810
|
+
}, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" };
|
811
|
+
}(), e.enc.Base64)), ar.exports;
|
812
|
+
var e;
|
813
|
+
}
|
814
|
+
var ur, lr = { exports: {} };
|
815
|
+
function Js() {
|
816
|
+
return ur || (ur = 1, lr.exports = (e = Le(), function(t) {
|
817
|
+
var n = e, i = n.lib, o = i.WordArray, a = i.Hasher, u = n.algo, s = [];
|
818
|
+
(function() {
|
819
|
+
for (var v = 0; v < 64; v++) s[v] = 4294967296 * t.abs(t.sin(v + 1)) | 0;
|
820
|
+
})();
|
821
|
+
var l = u.MD5 = a.extend({ _doReset: function() {
|
822
|
+
this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878]);
|
823
|
+
}, _doProcessBlock: function(v, m) {
|
824
|
+
for (var O = 0; O < 16; O++) {
|
825
|
+
var h = m + O, y = v[h];
|
826
|
+
v[h] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8);
|
827
|
+
}
|
828
|
+
var k = this._hash.words, g = v[m + 0], b = v[m + 1], A = v[m + 2], I = v[m + 3], T = v[m + 4], R = v[m + 5], x = v[m + 6], B = v[m + 7], H = v[m + 8], q = v[m + 9], K = v[m + 10], Me = v[m + 11], ye = v[m + 12], ve = v[m + 13], be = v[m + 14], ke = v[m + 15], _ = k[0], w = k[1], C = k[2], S = k[3];
|
829
|
+
_ = c(_, w, C, S, g, 7, s[0]), S = c(S, _, w, C, b, 12, s[1]), C = c(C, S, _, w, A, 17, s[2]), w = c(w, C, S, _, I, 22, s[3]), _ = c(_, w, C, S, T, 7, s[4]), S = c(S, _, w, C, R, 12, s[5]), C = c(C, S, _, w, x, 17, s[6]), w = c(w, C, S, _, B, 22, s[7]), _ = c(_, w, C, S, H, 7, s[8]), S = c(S, _, w, C, q, 12, s[9]), C = c(C, S, _, w, K, 17, s[10]), w = c(w, C, S, _, Me, 22, s[11]), _ = c(_, w, C, S, ye, 7, s[12]), S = c(S, _, w, C, ve, 12, s[13]), C = c(C, S, _, w, be, 17, s[14]), _ = d(_, w = c(w, C, S, _, ke, 22, s[15]), C, S, b, 5, s[16]), S = d(S, _, w, C, x, 9, s[17]), C = d(C, S, _, w, Me, 14, s[18]), w = d(w, C, S, _, g, 20, s[19]), _ = d(_, w, C, S, R, 5, s[20]), S = d(S, _, w, C, K, 9, s[21]), C = d(C, S, _, w, ke, 14, s[22]), w = d(w, C, S, _, T, 20, s[23]), _ = d(_, w, C, S, q, 5, s[24]), S = d(S, _, w, C, be, 9, s[25]), C = d(C, S, _, w, I, 14, s[26]), w = d(w, C, S, _, H, 20, s[27]), _ = d(_, w, C, S, ve, 5, s[28]), S = d(S, _, w, C, A, 9, s[29]), C = d(C, S, _, w, B, 14, s[30]), _ = f(_, w = d(w, C, S, _, ye, 20, s[31]), C, S, R, 4, s[32]), S = f(S, _, w, C, H, 11, s[33]), C = f(C, S, _, w, Me, 16, s[34]), w = f(w, C, S, _, be, 23, s[35]), _ = f(_, w, C, S, b, 4, s[36]), S = f(S, _, w, C, T, 11, s[37]), C = f(C, S, _, w, B, 16, s[38]), w = f(w, C, S, _, K, 23, s[39]), _ = f(_, w, C, S, ve, 4, s[40]), S = f(S, _, w, C, g, 11, s[41]), C = f(C, S, _, w, I, 16, s[42]), w = f(w, C, S, _, x, 23, s[43]), _ = f(_, w, C, S, q, 4, s[44]), S = f(S, _, w, C, ye, 11, s[45]), C = f(C, S, _, w, ke, 16, s[46]), _ = p(_, w = f(w, C, S, _, A, 23, s[47]), C, S, g, 6, s[48]), S = p(S, _, w, C, B, 10, s[49]), C = p(C, S, _, w, be, 15, s[50]), w = p(w, C, S, _, R, 21, s[51]), _ = p(_, w, C, S, ye, 6, s[52]), S = p(S, _, w, C, I, 10, s[53]), C = p(C, S, _, w, K, 15, s[54]), w = p(w, C, S, _, b, 21, s[55]), _ = p(_, w, C, S, H, 6, s[56]), S = p(S, _, w, C, ke, 10, s[57]), C = p(C, S, _, w, x, 15, s[58]), w = p(w, C, S, _, ve, 21, s[59]), _ = p(_, w, C, S, T, 6, s[60]), S = p(S, _, w, C, Me, 10, s[61]), C = p(C, S, _, w, A, 15, s[62]), w = p(w, C, S, _, q, 21, s[63]), k[0] = k[0] + _ | 0, k[1] = k[1] + w | 0, k[2] = k[2] + C | 0, k[3] = k[3] + S | 0;
|
830
|
+
}, _doFinalize: function() {
|
831
|
+
var v = this._data, m = v.words, O = 8 * this._nDataBytes, h = 8 * v.sigBytes;
|
832
|
+
m[h >>> 5] |= 128 << 24 - h % 32;
|
833
|
+
var y = t.floor(O / 4294967296), k = O;
|
834
|
+
m[15 + (h + 64 >>> 9 << 4)] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8), m[14 + (h + 64 >>> 9 << 4)] = 16711935 & (k << 8 | k >>> 24) | 4278255360 & (k << 24 | k >>> 8), v.sigBytes = 4 * (m.length + 1), this._process();
|
835
|
+
for (var g = this._hash, b = g.words, A = 0; A < 4; A++) {
|
836
|
+
var I = b[A];
|
837
|
+
b[A] = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8);
|
838
|
+
}
|
839
|
+
return g;
|
840
|
+
}, clone: function() {
|
841
|
+
var v = a.clone.call(this);
|
842
|
+
return v._hash = this._hash.clone(), v;
|
843
|
+
} });
|
844
|
+
function c(v, m, O, h, y, k, g) {
|
845
|
+
var b = v + (m & O | ~m & h) + y + g;
|
846
|
+
return (b << k | b >>> 32 - k) + m;
|
847
|
+
}
|
848
|
+
function d(v, m, O, h, y, k, g) {
|
849
|
+
var b = v + (m & h | O & ~h) + y + g;
|
850
|
+
return (b << k | b >>> 32 - k) + m;
|
851
|
+
}
|
852
|
+
function f(v, m, O, h, y, k, g) {
|
853
|
+
var b = v + (m ^ O ^ h) + y + g;
|
854
|
+
return (b << k | b >>> 32 - k) + m;
|
855
|
+
}
|
856
|
+
function p(v, m, O, h, y, k, g) {
|
857
|
+
var b = v + (O ^ (m | ~h)) + y + g;
|
858
|
+
return (b << k | b >>> 32 - k) + m;
|
859
|
+
}
|
860
|
+
n.MD5 = a._createHelper(l), n.HmacMD5 = a._createHmacHelper(l);
|
861
|
+
}(Math), e.MD5)), lr.exports;
|
862
|
+
var e;
|
863
|
+
}
|
864
|
+
var cr, fr = { exports: {} }, dr = { exports: {} };
|
865
|
+
function Zs() {
|
866
|
+
return cr || (cr = 1, dr.exports = (s = Le(), t = (e = s).lib, n = t.WordArray, i = t.Hasher, o = e.algo, a = [], u = o.SHA1 = i.extend({ _doReset: function() {
|
867
|
+
this._hash = new n.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
868
|
+
}, _doProcessBlock: function(l, c) {
|
869
|
+
for (var d = this._hash.words, f = d[0], p = d[1], v = d[2], m = d[3], O = d[4], h = 0; h < 80; h++) {
|
870
|
+
if (h < 16) a[h] = 0 | l[c + h];
|
871
|
+
else {
|
872
|
+
var y = a[h - 3] ^ a[h - 8] ^ a[h - 14] ^ a[h - 16];
|
873
|
+
a[h] = y << 1 | y >>> 31;
|
874
|
+
}
|
875
|
+
var k = (f << 5 | f >>> 27) + O + a[h];
|
876
|
+
k += h < 20 ? 1518500249 + (p & v | ~p & m) : h < 40 ? 1859775393 + (p ^ v ^ m) : h < 60 ? (p & v | p & m | v & m) - 1894007588 : (p ^ v ^ m) - 899497514, O = m, m = v, v = p << 30 | p >>> 2, p = f, f = k;
|
877
|
+
}
|
878
|
+
d[0] = d[0] + f | 0, d[1] = d[1] + p | 0, d[2] = d[2] + v | 0, d[3] = d[3] + m | 0, d[4] = d[4] + O | 0;
|
879
|
+
}, _doFinalize: function() {
|
880
|
+
var l = this._data, c = l.words, d = 8 * this._nDataBytes, f = 8 * l.sigBytes;
|
881
|
+
return c[f >>> 5] |= 128 << 24 - f % 32, c[14 + (f + 64 >>> 9 << 4)] = Math.floor(d / 4294967296), c[15 + (f + 64 >>> 9 << 4)] = d, l.sigBytes = 4 * c.length, this._process(), this._hash;
|
882
|
+
}, clone: function() {
|
883
|
+
var l = i.clone.call(this);
|
884
|
+
return l._hash = this._hash.clone(), l;
|
885
|
+
} }), e.SHA1 = i._createHelper(u), e.HmacSHA1 = i._createHmacHelper(u), s.SHA1)), dr.exports;
|
886
|
+
var e, t, n, i, o, a, u, s;
|
887
|
+
}
|
888
|
+
var hr, ea = { exports: {} }, pr;
|
889
|
+
function gr() {
|
890
|
+
return pr || (pr = 1, fr.exports = function(t) {
|
891
|
+
return i = (n = t).lib, o = i.Base, a = i.WordArray, u = n.algo, s = u.MD5, l = u.EvpKDF = o.extend({ cfg: o.extend({ keySize: 4, hasher: s, iterations: 1 }), init: function(c) {
|
892
|
+
this.cfg = this.cfg.extend(c);
|
893
|
+
}, compute: function(c, d) {
|
894
|
+
for (var f, p = this.cfg, v = p.hasher.create(), m = a.create(), O = m.words, h = p.keySize, y = p.iterations; O.length < h; ) {
|
895
|
+
f && v.update(f), f = v.update(c).finalize(d), v.reset();
|
896
|
+
for (var k = 1; k < y; k++) f = v.finalize(f), v.reset();
|
897
|
+
m.concat(f);
|
898
|
+
}
|
899
|
+
return m.sigBytes = 4 * h, m;
|
900
|
+
} }), n.EvpKDF = function(c, d, f) {
|
901
|
+
return l.create(f).compute(c, d);
|
902
|
+
}, t.EvpKDF;
|
903
|
+
var n, i, o, a, u, s, l;
|
904
|
+
}(Le(), Zs(), (hr || (hr = 1, Le(), function() {
|
905
|
+
var t = e, n = t.lib.Base, i = t.enc.Utf8;
|
906
|
+
t.algo.HMAC = n.extend({ init: function(o, a) {
|
907
|
+
o = this._hasher = new o.init(), typeof a == "string" && (a = i.parse(a));
|
908
|
+
var u = o.blockSize, s = 4 * u;
|
909
|
+
a.sigBytes > s && (a = o.finalize(a)), a.clamp();
|
910
|
+
for (var l = this._oKey = a.clone(), c = this._iKey = a.clone(), d = l.words, f = c.words, p = 0; p < u; p++) d[p] ^= 1549556828, f[p] ^= 909522486;
|
911
|
+
l.sigBytes = c.sigBytes = s, this.reset();
|
912
|
+
}, reset: function() {
|
913
|
+
var o = this._hasher;
|
914
|
+
o.reset(), o.update(this._iKey);
|
915
|
+
}, update: function(o) {
|
916
|
+
return this._hasher.update(o), this;
|
917
|
+
}, finalize: function(o) {
|
918
|
+
var a = this._hasher, u = a.finalize(o);
|
919
|
+
return a.reset(), a.finalize(this._oKey.clone().concat(u));
|
920
|
+
} });
|
921
|
+
}()), ea.exports))), fr.exports;
|
922
|
+
var e;
|
923
|
+
}
|
924
|
+
var mr, ta = { exports: {} }, yr, vr, br, na = (yr || (yr = 1, rr.exports = function(e) {
|
925
|
+
return function() {
|
926
|
+
var t = e, n = t.lib.BlockCipher, i = t.algo, o = [], a = [], u = [], s = [], l = [], c = [], d = [], f = [], p = [], v = [];
|
927
|
+
(function() {
|
928
|
+
for (var h = [], y = 0; y < 256; y++) h[y] = y < 128 ? y << 1 : y << 1 ^ 283;
|
929
|
+
var k = 0, g = 0;
|
930
|
+
for (y = 0; y < 256; y++) {
|
931
|
+
var b = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
932
|
+
b = b >>> 8 ^ 255 & b ^ 99, o[k] = b, a[b] = k;
|
933
|
+
var A = h[k], I = h[A], T = h[I], R = 257 * h[b] ^ 16843008 * b;
|
934
|
+
u[k] = R << 24 | R >>> 8, s[k] = R << 16 | R >>> 16, l[k] = R << 8 | R >>> 24, c[k] = R, R = 16843009 * T ^ 65537 * I ^ 257 * A ^ 16843008 * k, d[b] = R << 24 | R >>> 8, f[b] = R << 16 | R >>> 16, p[b] = R << 8 | R >>> 24, v[b] = R, k ? (k = A ^ h[h[h[T ^ A]]], g ^= h[h[g]]) : k = g = 1;
|
935
|
+
}
|
936
|
+
})();
|
937
|
+
var m = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], O = i.AES = n.extend({ _doReset: function() {
|
938
|
+
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
939
|
+
for (var h = this._keyPriorReset = this._key, y = h.words, k = h.sigBytes / 4, g = 4 * ((this._nRounds = k + 6) + 1), b = this._keySchedule = [], A = 0; A < g; A++) A < k ? b[A] = y[A] : (R = b[A - 1], A % k ? k > 6 && A % k == 4 && (R = o[R >>> 24] << 24 | o[R >>> 16 & 255] << 16 | o[R >>> 8 & 255] << 8 | o[255 & R]) : (R = o[(R = R << 8 | R >>> 24) >>> 24] << 24 | o[R >>> 16 & 255] << 16 | o[R >>> 8 & 255] << 8 | o[255 & R], R ^= m[A / k | 0] << 24), b[A] = b[A - k] ^ R);
|
940
|
+
for (var I = this._invKeySchedule = [], T = 0; T < g; T++) {
|
941
|
+
if (A = g - T, T % 4) var R = b[A];
|
942
|
+
else R = b[A - 4];
|
943
|
+
I[T] = T < 4 || A <= 4 ? R : d[o[R >>> 24]] ^ f[o[R >>> 16 & 255]] ^ p[o[R >>> 8 & 255]] ^ v[o[255 & R]];
|
944
|
+
}
|
945
|
+
}
|
946
|
+
}, encryptBlock: function(h, y) {
|
947
|
+
this._doCryptBlock(h, y, this._keySchedule, u, s, l, c, o);
|
948
|
+
}, decryptBlock: function(h, y) {
|
949
|
+
var k = h[y + 1];
|
950
|
+
h[y + 1] = h[y + 3], h[y + 3] = k, this._doCryptBlock(h, y, this._invKeySchedule, d, f, p, v, a), k = h[y + 1], h[y + 1] = h[y + 3], h[y + 3] = k;
|
951
|
+
}, _doCryptBlock: function(h, y, k, g, b, A, I, T) {
|
952
|
+
for (var R = this._nRounds, x = h[y] ^ k[0], B = h[y + 1] ^ k[1], H = h[y + 2] ^ k[2], q = h[y + 3] ^ k[3], K = 4, Me = 1; Me < R; Me++) {
|
953
|
+
var ye = g[x >>> 24] ^ b[B >>> 16 & 255] ^ A[H >>> 8 & 255] ^ I[255 & q] ^ k[K++], ve = g[B >>> 24] ^ b[H >>> 16 & 255] ^ A[q >>> 8 & 255] ^ I[255 & x] ^ k[K++], be = g[H >>> 24] ^ b[q >>> 16 & 255] ^ A[x >>> 8 & 255] ^ I[255 & B] ^ k[K++], ke = g[q >>> 24] ^ b[x >>> 16 & 255] ^ A[B >>> 8 & 255] ^ I[255 & H] ^ k[K++];
|
954
|
+
x = ye, B = ve, H = be, q = ke;
|
955
|
+
}
|
956
|
+
ye = (T[x >>> 24] << 24 | T[B >>> 16 & 255] << 16 | T[H >>> 8 & 255] << 8 | T[255 & q]) ^ k[K++], ve = (T[B >>> 24] << 24 | T[H >>> 16 & 255] << 16 | T[q >>> 8 & 255] << 8 | T[255 & x]) ^ k[K++], be = (T[H >>> 24] << 24 | T[q >>> 16 & 255] << 16 | T[x >>> 8 & 255] << 8 | T[255 & B]) ^ k[K++], ke = (T[q >>> 24] << 24 | T[x >>> 16 & 255] << 16 | T[B >>> 8 & 255] << 8 | T[255 & H]) ^ k[K++], h[y] = ye, h[y + 1] = ve, h[y + 2] = be, h[y + 3] = ke;
|
957
|
+
}, keySize: 8 });
|
958
|
+
t.AES = n._createHelper(O);
|
959
|
+
}(), e.AES;
|
960
|
+
}(Le(), Ys(), Js(), gr(), (mr || (mr = 1, Le(), gr(), vr.lib.Cipher || function(e) {
|
961
|
+
var t = vr, n = t.lib, i = n.Base, o = n.WordArray, a = n.BufferedBlockAlgorithm, u = t.enc;
|
962
|
+
u.Utf8;
|
963
|
+
var s = u.Base64, l = t.algo.EvpKDF, c = n.Cipher = a.extend({ cfg: i.extend(), createEncryptor: function(g, b) {
|
964
|
+
return this.create(this._ENC_XFORM_MODE, g, b);
|
965
|
+
}, createDecryptor: function(g, b) {
|
966
|
+
return this.create(this._DEC_XFORM_MODE, g, b);
|
967
|
+
}, init: function(g, b, A) {
|
968
|
+
this.cfg = this.cfg.extend(A), this._xformMode = g, this._key = b, this.reset();
|
969
|
+
}, reset: function() {
|
970
|
+
a.reset.call(this), this._doReset();
|
971
|
+
}, process: function(g) {
|
972
|
+
return this._append(g), this._process();
|
973
|
+
}, finalize: function(g) {
|
974
|
+
return g && this._append(g), this._doFinalize();
|
975
|
+
}, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() {
|
976
|
+
function g(b) {
|
977
|
+
return typeof b == "string" ? k : h;
|
978
|
+
}
|
979
|
+
return function(b) {
|
980
|
+
return { encrypt: function(A, I, T) {
|
981
|
+
return g(I).encrypt(b, A, I, T);
|
982
|
+
}, decrypt: function(A, I, T) {
|
983
|
+
return g(I).decrypt(b, A, I, T);
|
984
|
+
} };
|
985
|
+
};
|
986
|
+
}() });
|
987
|
+
n.StreamCipher = c.extend({ _doFinalize: function() {
|
988
|
+
return this._process(!0);
|
989
|
+
}, blockSize: 1 });
|
990
|
+
var d = t.mode = {}, f = n.BlockCipherMode = i.extend({ createEncryptor: function(g, b) {
|
991
|
+
return this.Encryptor.create(g, b);
|
992
|
+
}, createDecryptor: function(g, b) {
|
993
|
+
return this.Decryptor.create(g, b);
|
994
|
+
}, init: function(g, b) {
|
995
|
+
this._cipher = g, this._iv = b;
|
996
|
+
} }), p = d.CBC = function() {
|
997
|
+
var g = f.extend();
|
998
|
+
function b(A, I, T) {
|
999
|
+
var R, x = this._iv;
|
1000
|
+
x ? (R = x, this._iv = e) : R = this._prevBlock;
|
1001
|
+
for (var B = 0; B < T; B++) A[I + B] ^= R[B];
|
1002
|
+
}
|
1003
|
+
return g.Encryptor = g.extend({ processBlock: function(A, I) {
|
1004
|
+
var T = this._cipher, R = T.blockSize;
|
1005
|
+
b.call(this, A, I, R), T.encryptBlock(A, I), this._prevBlock = A.slice(I, I + R);
|
1006
|
+
} }), g.Decryptor = g.extend({ processBlock: function(A, I) {
|
1007
|
+
var T = this._cipher, R = T.blockSize, x = A.slice(I, I + R);
|
1008
|
+
T.decryptBlock(A, I), b.call(this, A, I, R), this._prevBlock = x;
|
1009
|
+
} }), g;
|
1010
|
+
}(), v = (t.pad = {}).Pkcs7 = { pad: function(g, b) {
|
1011
|
+
for (var A = 4 * b, I = A - g.sigBytes % A, T = I << 24 | I << 16 | I << 8 | I, R = [], x = 0; x < I; x += 4) R.push(T);
|
1012
|
+
var B = o.create(R, I);
|
1013
|
+
g.concat(B);
|
1014
|
+
}, unpad: function(g) {
|
1015
|
+
var b = 255 & g.words[g.sigBytes - 1 >>> 2];
|
1016
|
+
g.sigBytes -= b;
|
1017
|
+
} };
|
1018
|
+
n.BlockCipher = c.extend({ cfg: c.cfg.extend({ mode: p, padding: v }), reset: function() {
|
1019
|
+
var g;
|
1020
|
+
c.reset.call(this);
|
1021
|
+
var b = this.cfg, A = b.iv, I = b.mode;
|
1022
|
+
this._xformMode == this._ENC_XFORM_MODE ? I.createEncryptor : (I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == g ? this._mode.init(this, A && A.words) : (this._mode = g.call(I, this, A && A.words), this._mode.__creator = g);
|
1023
|
+
}, _doProcessBlock: function(g, b) {
|
1024
|
+
this._mode.processBlock(g, b);
|
1025
|
+
}, _doFinalize: function() {
|
1026
|
+
var g, b = this.cfg.padding;
|
1027
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (b.pad(this._data, this.blockSize), g = this._process(!0)) : (g = this._process(!0), b.unpad(g)), g;
|
1028
|
+
}, blockSize: 4 });
|
1029
|
+
var m = n.CipherParams = i.extend({ init: function(g) {
|
1030
|
+
this.mixIn(g);
|
1031
|
+
}, toString: function(g) {
|
1032
|
+
return (g || this.formatter).stringify(this);
|
1033
|
+
} }), O = (t.format = {}).OpenSSL = { stringify: function(g) {
|
1034
|
+
var b = g.ciphertext, A = g.salt;
|
1035
|
+
return (A ? o.create([1398893684, 1701076831]).concat(A).concat(b) : b).toString(s);
|
1036
|
+
}, parse: function(g) {
|
1037
|
+
var b, A = s.parse(g), I = A.words;
|
1038
|
+
return I[0] == 1398893684 && I[1] == 1701076831 && (b = o.create(I.slice(2, 4)), I.splice(0, 4), A.sigBytes -= 16), m.create({ ciphertext: A, salt: b });
|
1039
|
+
} }, h = n.SerializableCipher = i.extend({ cfg: i.extend({ format: O }), encrypt: function(g, b, A, I) {
|
1040
|
+
I = this.cfg.extend(I);
|
1041
|
+
var T = g.createEncryptor(A, I), R = T.finalize(b), x = T.cfg;
|
1042
|
+
return m.create({ ciphertext: R, key: A, iv: x.iv, algorithm: g, mode: x.mode, padding: x.padding, blockSize: g.blockSize, formatter: I.format });
|
1043
|
+
}, decrypt: function(g, b, A, I) {
|
1044
|
+
return I = this.cfg.extend(I), b = this._parse(b, I.format), g.createDecryptor(A, I).finalize(b.ciphertext);
|
1045
|
+
}, _parse: function(g, b) {
|
1046
|
+
return typeof g == "string" ? b.parse(g, this) : g;
|
1047
|
+
} }), y = (t.kdf = {}).OpenSSL = { execute: function(g, b, A, I, T) {
|
1048
|
+
if (I || (I = o.random(8)), T) R = l.create({ keySize: b + A, hasher: T }).compute(g, I);
|
1049
|
+
else var R = l.create({ keySize: b + A }).compute(g, I);
|
1050
|
+
var x = o.create(R.words.slice(b), 4 * A);
|
1051
|
+
return R.sigBytes = 4 * b, m.create({ key: R, iv: x, salt: I });
|
1052
|
+
} }, k = n.PasswordBasedCipher = h.extend({ cfg: h.cfg.extend({ kdf: y }), encrypt: function(g, b, A, I) {
|
1053
|
+
var T = (I = this.cfg.extend(I)).kdf.execute(A, g.keySize, g.ivSize, I.salt, I.hasher);
|
1054
|
+
I.iv = T.iv;
|
1055
|
+
var R = h.encrypt.call(this, g, b, T.key, I);
|
1056
|
+
return R.mixIn(T), R;
|
1057
|
+
}, decrypt: function(g, b, A, I) {
|
1058
|
+
I = this.cfg.extend(I), b = this._parse(b, I.format);
|
1059
|
+
var T = I.kdf.execute(A, g.keySize, g.ivSize, b.salt, I.hasher);
|
1060
|
+
return I.iv = T.iv, h.decrypt.call(this, g, b, T.key, I);
|
1061
|
+
} });
|
1062
|
+
}()), ta.exports))), rr.exports), Oi = me(na), kr = { exports: {} }, Ar, Ir, Er, Or, ra = (br || (br = 1, kr.exports = function(e) {
|
1063
|
+
return e.enc.Utf8;
|
1064
|
+
}(Le())), kr.exports), ia = me(ra), fn, _r, Cr, Sr, wr, Tr, Rr, oa = function() {
|
1065
|
+
if (Or) return Er;
|
1066
|
+
Or = 1;
|
1067
|
+
var e = Ir ? Ar : (Ir = 1, Ar = function(o) {
|
1068
|
+
return o != null && L(o) === "object" && Array.isArray(o) === !1;
|
1069
|
+
});
|
1070
|
+
function t(o, a, u) {
|
1071
|
+
return typeof u.join == "function" ? u.join(o) : o[0] + a + o[1];
|
1072
|
+
}
|
1073
|
+
function n(o, a, u) {
|
1074
|
+
return typeof u.isValid != "function" || u.isValid(o, a);
|
1075
|
+
}
|
1076
|
+
function i(o) {
|
1077
|
+
return e(o) || Array.isArray(o) || typeof o == "function";
|
1078
|
+
}
|
1079
|
+
return Er = function(o, a, u) {
|
1080
|
+
if (e(u) || (u = { default: u }), !i(o)) return u.default !== void 0 ? u.default : o;
|
1081
|
+
typeof a == "number" && (a = String(a));
|
1082
|
+
var s = Array.isArray(a), l = typeof a == "string", c = u.separator || ".", d = u.joinChar || (typeof c == "string" ? c : ".");
|
1083
|
+
if (!l && !s) return o;
|
1084
|
+
if (l && a in o) return n(a, o, u) ? o[a] : u.default;
|
1085
|
+
var f = s ? a : function(y, k, g) {
|
1086
|
+
return typeof g.split == "function" ? g.split(y) : y.split(k);
|
1087
|
+
}(a, c, u), p = f.length, v = 0;
|
1088
|
+
do {
|
1089
|
+
var m = f[v];
|
1090
|
+
for (typeof m == "number" && (m = String(m)); m && m.slice(-1) === "\\"; ) m = t([m.slice(0, -1), f[++v] || ""], d, u);
|
1091
|
+
if (m in o) {
|
1092
|
+
if (!n(m, o, u)) return u.default;
|
1093
|
+
o = o[m];
|
1094
|
+
} else {
|
1095
|
+
for (var O = !1, h = v + 1; h < p; ) if (O = (m = t([m, f[h++]], d, u)) in o) {
|
1096
|
+
if (!n(m, o, u)) return u.default;
|
1097
|
+
o = o[m], v = h - 1;
|
1098
|
+
break;
|
1099
|
+
}
|
1100
|
+
if (!O) return u.default;
|
1101
|
+
}
|
1102
|
+
} while (++v < p && i(o));
|
1103
|
+
return v === p ? o : u.default;
|
1104
|
+
};
|
1105
|
+
}(), bt = me(oa), dn = { exports: {} };
|
1106
|
+
function sa() {
|
1107
|
+
if (_r) return fn;
|
1108
|
+
_r = 1;
|
1109
|
+
var e = 1e3, t = 60 * e, n = 60 * t, i = 24 * n, o = 7 * i, a = 365.25 * i;
|
1110
|
+
function u(s, l, c, d) {
|
1111
|
+
var f = l >= 1.5 * c;
|
1112
|
+
return Math.round(s / c) + " " + d + (f ? "s" : "");
|
1113
|
+
}
|
1114
|
+
return fn = function(s, l) {
|
1115
|
+
l = l || {};
|
1116
|
+
var c = L(s);
|
1117
|
+
if (c === "string" && s.length > 0) return function(d) {
|
1118
|
+
if (!((d = String(d)).length > 100)) {
|
1119
|
+
var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);
|
1120
|
+
if (f) {
|
1121
|
+
var p = parseFloat(f[1]);
|
1122
|
+
switch ((f[2] || "ms").toLowerCase()) {
|
1123
|
+
case "years":
|
1124
|
+
case "year":
|
1125
|
+
case "yrs":
|
1126
|
+
case "yr":
|
1127
|
+
case "y":
|
1128
|
+
return p * a;
|
1129
|
+
case "weeks":
|
1130
|
+
case "week":
|
1131
|
+
case "w":
|
1132
|
+
return p * o;
|
1133
|
+
case "days":
|
1134
|
+
case "day":
|
1135
|
+
case "d":
|
1136
|
+
return p * i;
|
1137
|
+
case "hours":
|
1138
|
+
case "hour":
|
1139
|
+
case "hrs":
|
1140
|
+
case "hr":
|
1141
|
+
case "h":
|
1142
|
+
return p * n;
|
1143
|
+
case "minutes":
|
1144
|
+
case "minute":
|
1145
|
+
case "mins":
|
1146
|
+
case "min":
|
1147
|
+
case "m":
|
1148
|
+
return p * t;
|
1149
|
+
case "seconds":
|
1150
|
+
case "second":
|
1151
|
+
case "secs":
|
1152
|
+
case "sec":
|
1153
|
+
case "s":
|
1154
|
+
return p * e;
|
1155
|
+
case "milliseconds":
|
1156
|
+
case "millisecond":
|
1157
|
+
case "msecs":
|
1158
|
+
case "msec":
|
1159
|
+
case "ms":
|
1160
|
+
return p;
|
1161
|
+
default:
|
1162
|
+
return;
|
1163
|
+
}
|
1164
|
+
}
|
1165
|
+
}
|
1166
|
+
}(s);
|
1167
|
+
if (c === "number" && isFinite(s)) return l.long ? function(d) {
|
1168
|
+
var f = Math.abs(d);
|
1169
|
+
return f >= i ? u(d, f, i, "day") : f >= n ? u(d, f, n, "hour") : f >= t ? u(d, f, t, "minute") : f >= e ? u(d, f, e, "second") : d + " ms";
|
1170
|
+
}(s) : function(d) {
|
1171
|
+
var f = Math.abs(d);
|
1172
|
+
return f >= i ? Math.round(d / i) + "d" : f >= n ? Math.round(d / n) + "h" : f >= t ? Math.round(d / t) + "m" : f >= e ? Math.round(d / e) + "s" : d + "ms";
|
1173
|
+
}(s);
|
1174
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(s));
|
1175
|
+
}, fn;
|
1176
|
+
}
|
1177
|
+
function zn() {
|
1178
|
+
return wr || (wr = 1, e = dn, (t = dn.exports).formatArgs = function(i) {
|
1179
|
+
if (i[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + i[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff), this.useColors) {
|
1180
|
+
var o = "color: " + this.color;
|
1181
|
+
i.splice(1, 0, o, "color: inherit");
|
1182
|
+
var a = 0, u = 0;
|
1183
|
+
i[0].replace(/%[a-zA-Z%]/g, function(s) {
|
1184
|
+
s !== "%%" && (a++, s === "%c" && (u = a));
|
1185
|
+
}), i.splice(u, 0, o);
|
1186
|
+
}
|
1187
|
+
}, t.save = function(i) {
|
1188
|
+
try {
|
1189
|
+
i ? t.storage.setItem("debug", i) : t.storage.removeItem("debug");
|
1190
|
+
} catch {
|
1191
|
+
}
|
1192
|
+
}, t.load = function() {
|
1193
|
+
var i;
|
1194
|
+
try {
|
1195
|
+
i = t.storage.getItem("debug");
|
1196
|
+
} catch {
|
1197
|
+
}
|
1198
|
+
return !i && typeof process < "u" && "env" in process && (i = process.env.DEBUG), i;
|
1199
|
+
}, t.useColors = function() {
|
1200
|
+
return !(typeof window > "u" || !window.process || window.process.type !== "renderer" && !window.process.__nwjs) || (typeof navigator > "u" || !navigator.userAgent || !navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && (typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
1201
|
+
}, t.storage = function() {
|
1202
|
+
try {
|
1203
|
+
return localStorage;
|
1204
|
+
} catch {
|
1205
|
+
}
|
1206
|
+
}(), t.destroy = (n = !1, function() {
|
1207
|
+
n || (n = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
1208
|
+
}), t.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"], t.log = console.debug || console.log || function() {
|
1209
|
+
}, e.exports = (Sr || (Sr = 1, Cr = function(i) {
|
1210
|
+
function o(s) {
|
1211
|
+
var l, c, d, f = null;
|
1212
|
+
function p() {
|
1213
|
+
for (var v = arguments.length, m = new Array(v), O = 0; O < v; O++) m[O] = arguments[O];
|
1214
|
+
if (p.enabled) {
|
1215
|
+
var h = p, y = Number(/* @__PURE__ */ new Date()), k = y - (l || y);
|
1216
|
+
h.diff = k, h.prev = l, h.curr = y, l = y, m[0] = o.coerce(m[0]), typeof m[0] != "string" && m.unshift("%O");
|
1217
|
+
var g = 0;
|
1218
|
+
m[0] = m[0].replace(/%([a-zA-Z%])/g, function(b, A) {
|
1219
|
+
if (b === "%%") return "%";
|
1220
|
+
g++;
|
1221
|
+
var I = o.formatters[A];
|
1222
|
+
if (typeof I == "function") {
|
1223
|
+
var T = m[g];
|
1224
|
+
b = I.call(h, T), m.splice(g, 1), g--;
|
1225
|
+
}
|
1226
|
+
return b;
|
1227
|
+
}), o.formatArgs.call(h, m), (h.log || o.log).apply(h, m);
|
1228
|
+
}
|
1229
|
+
}
|
1230
|
+
return p.namespace = s, p.useColors = o.useColors(), p.color = o.selectColor(s), p.extend = a, p.destroy = o.destroy, Object.defineProperty(p, "enabled", { enumerable: !0, configurable: !1, get: function() {
|
1231
|
+
return f !== null ? f : (c !== o.namespaces && (c = o.namespaces, d = o.enabled(s)), d);
|
1232
|
+
}, set: function(v) {
|
1233
|
+
f = v;
|
1234
|
+
} }), typeof o.init == "function" && o.init(p), p;
|
1235
|
+
}
|
1236
|
+
function a(s, l) {
|
1237
|
+
var c = o(this.namespace + (l === void 0 ? ":" : l) + s);
|
1238
|
+
return c.log = this.log, c;
|
1239
|
+
}
|
1240
|
+
function u(s) {
|
1241
|
+
return s.toString().substring(2, s.toString().length - 2).replace(/\.\*\?$/, "*");
|
1242
|
+
}
|
1243
|
+
return o.debug = o, o.default = o, o.coerce = function(s) {
|
1244
|
+
return s instanceof Error ? s.stack || s.message : s;
|
1245
|
+
}, o.disable = function() {
|
1246
|
+
var s = [].concat(xe(o.names.map(u)), xe(o.skips.map(u).map(function(l) {
|
1247
|
+
return "-" + l;
|
1248
|
+
}))).join(",");
|
1249
|
+
return o.enable(""), s;
|
1250
|
+
}, o.enable = function(s) {
|
1251
|
+
var l;
|
1252
|
+
o.save(s), o.namespaces = s, o.names = [], o.skips = [];
|
1253
|
+
var c = (typeof s == "string" ? s : "").split(/[\s,]+/), d = c.length;
|
1254
|
+
for (l = 0; l < d; l++) c[l] && ((s = c[l].replace(/\*/g, ".*?"))[0] === "-" ? o.skips.push(new RegExp("^" + s.slice(1) + "$")) : o.names.push(new RegExp("^" + s + "$")));
|
1255
|
+
}, o.enabled = function(s) {
|
1256
|
+
if (s[s.length - 1] === "*") return !0;
|
1257
|
+
var l, c;
|
1258
|
+
for (l = 0, c = o.skips.length; l < c; l++) if (o.skips[l].test(s)) return !1;
|
1259
|
+
for (l = 0, c = o.names.length; l < c; l++) if (o.names[l].test(s)) return !0;
|
1260
|
+
return !1;
|
1261
|
+
}, o.humanize = sa(), o.destroy = function() {
|
1262
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
1263
|
+
}, Object.keys(i).forEach(function(s) {
|
1264
|
+
o[s] = i[s];
|
1265
|
+
}), o.names = [], o.skips = [], o.formatters = {}, o.selectColor = function(s) {
|
1266
|
+
for (var l = 0, c = 0; c < s.length; c++) l = (l << 5) - l + s.charCodeAt(c), l |= 0;
|
1267
|
+
return o.colors[Math.abs(l) % o.colors.length];
|
1268
|
+
}, o.enable(o.load()), o;
|
1269
|
+
}), Cr)(t), e.exports.formatters.j = function(i) {
|
1270
|
+
try {
|
1271
|
+
return JSON.stringify(i);
|
1272
|
+
} catch (o) {
|
1273
|
+
return "[UnexpectedJSONParseError]: " + o.message;
|
1274
|
+
}
|
1275
|
+
}), dn.exports;
|
1276
|
+
var e, t, n;
|
1277
|
+
}
|
1278
|
+
var hn, Pr, pn, Dr, xr, aa = function() {
|
1279
|
+
if (Rr) return Tr;
|
1280
|
+
Rr = 1;
|
1281
|
+
var e = zn()("cookie");
|
1282
|
+
function t() {
|
1283
|
+
var o;
|
1284
|
+
try {
|
1285
|
+
o = document.cookie;
|
1286
|
+
} catch (a) {
|
1287
|
+
return typeof console < "u" && typeof console.error == "function" && console.error(a.stack || a), {};
|
1288
|
+
}
|
1289
|
+
return function(a) {
|
1290
|
+
var u, s = {}, l = a.split(/ *; */);
|
1291
|
+
if (l[0] == "") return s;
|
1292
|
+
for (var c = 0; c < l.length; ++c) s[i((u = l[c].split("="))[0])] = i(u[1]);
|
1293
|
+
return s;
|
1294
|
+
}(o);
|
1295
|
+
}
|
1296
|
+
function n(o) {
|
1297
|
+
try {
|
1298
|
+
return encodeURIComponent(o);
|
1299
|
+
} catch (a) {
|
1300
|
+
e("error `encode(%o)` - %o", o, a);
|
1301
|
+
}
|
1302
|
+
}
|
1303
|
+
function i(o) {
|
1304
|
+
try {
|
1305
|
+
return decodeURIComponent(o);
|
1306
|
+
} catch (a) {
|
1307
|
+
e("error `decode(%o)` - %o", o, a);
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
return Tr = function(o, a, u) {
|
1311
|
+
switch (arguments.length) {
|
1312
|
+
case 3:
|
1313
|
+
case 2:
|
1314
|
+
return function(s, l, c) {
|
1315
|
+
c = c || {};
|
1316
|
+
var d = n(s) + "=" + n(l);
|
1317
|
+
l == null && (c.maxage = -1), c.maxage && (c.expires = new Date(+/* @__PURE__ */ new Date() + c.maxage)), c.path && (d += "; path=" + c.path), c.domain && (d += "; domain=" + c.domain), c.expires && (d += "; expires=" + c.expires.toUTCString()), c.samesite && (d += "; samesite=" + c.samesite), c.secure && (d += "; secure"), document.cookie = d;
|
1318
|
+
}(o, a, u);
|
1319
|
+
case 1:
|
1320
|
+
return function(s) {
|
1321
|
+
return t()[s];
|
1322
|
+
}(o);
|
1323
|
+
default:
|
1324
|
+
return t();
|
1325
|
+
}
|
1326
|
+
};
|
1327
|
+
}(), gn = me(aa), Wt = { exports: {} }, mn, Lr, Mr, ua = function() {
|
1328
|
+
if (xr) return Wt.exports;
|
1329
|
+
xr = 1;
|
1330
|
+
var e = function() {
|
1331
|
+
if (Pr) return hn;
|
1332
|
+
Pr = 1;
|
1333
|
+
var c = Math.max;
|
1334
|
+
return hn = function(d, f) {
|
1335
|
+
var p = f ? f.length : 0;
|
1336
|
+
if (!p) return [];
|
1337
|
+
for (var v = c(Number(d) || 0, 0), m = c(p - v, 0), O = new Array(m), h = 0; h < m; h += 1) O[h] = f[h + v];
|
1338
|
+
return O;
|
1339
|
+
}, hn;
|
1340
|
+
}(), t = function() {
|
1341
|
+
if (Dr) return pn;
|
1342
|
+
Dr = 1;
|
1343
|
+
var c = Math.max;
|
1344
|
+
return pn = function(d) {
|
1345
|
+
if (d == null || !d.length) return [];
|
1346
|
+
for (var f = new Array(c(d.length - 2, 0)), p = 1; p < d.length; p += 1) f[p - 1] = d[p];
|
1347
|
+
return f;
|
1348
|
+
}, pn;
|
1349
|
+
}(), n = Object.prototype.hasOwnProperty, i = Object.prototype.toString, o = function(c) {
|
1350
|
+
return !!c && i.call(c) === "[object Object]";
|
1351
|
+
}, a = function(c, d, f, p) {
|
1352
|
+
return n.call(d, p) && c[p] === void 0 && (c[p] = f), d;
|
1353
|
+
}, u = function(c, d, f, p) {
|
1354
|
+
return n.call(d, p) && (o(c[p]) && o(f) ? c[p] = l(c[p], f) : c[p] === void 0 && (c[p] = f)), d;
|
1355
|
+
}, s = function(c, d) {
|
1356
|
+
if (f = d, !f || L(f) !== "object") return d;
|
1357
|
+
var f;
|
1358
|
+
c = c || a;
|
1359
|
+
for (var p = e(2, arguments), v = 0; v < p.length; v += 1) for (var m in p[v]) c(d, p[v], p[v][m], m);
|
1360
|
+
return d;
|
1361
|
+
}, l = function(c) {
|
1362
|
+
return s.apply(null, [u, c].concat(t(arguments)));
|
1363
|
+
};
|
1364
|
+
return Wt.exports = function(c) {
|
1365
|
+
return s.apply(null, [null, c].concat(t(arguments)));
|
1366
|
+
}, Wt.exports.deep = l, Wt.exports;
|
1367
|
+
}(), _i = me(ua), yn = { exports: {} };
|
1368
|
+
function la() {
|
1369
|
+
if (Lr) return mn;
|
1370
|
+
Lr = 1;
|
1371
|
+
var e = zn()("cookie");
|
1372
|
+
function t() {
|
1373
|
+
var o;
|
1374
|
+
try {
|
1375
|
+
o = document.cookie;
|
1376
|
+
} catch (a) {
|
1377
|
+
return typeof console < "u" && typeof console.error == "function" && console.error(a.stack || a), {};
|
1378
|
+
}
|
1379
|
+
return function(a) {
|
1380
|
+
var u, s = {}, l = a.split(/ *; */);
|
1381
|
+
if (l[0] == "") return s;
|
1382
|
+
for (var c = 0; c < l.length; ++c) s[i((u = l[c].split("="))[0])] = i(u[1]);
|
1383
|
+
return s;
|
1384
|
+
}(o);
|
1385
|
+
}
|
1386
|
+
function n(o) {
|
1387
|
+
try {
|
1388
|
+
return encodeURIComponent(o);
|
1389
|
+
} catch (a) {
|
1390
|
+
e("error `encode(%o)` - %o", o, a);
|
1391
|
+
}
|
1392
|
+
}
|
1393
|
+
function i(o) {
|
1394
|
+
try {
|
1395
|
+
return decodeURIComponent(o);
|
1396
|
+
} catch (a) {
|
1397
|
+
e("error `decode(%o)` - %o", o, a);
|
1398
|
+
}
|
1399
|
+
}
|
1400
|
+
return mn = function(o, a, u) {
|
1401
|
+
switch (arguments.length) {
|
1402
|
+
case 3:
|
1403
|
+
case 2:
|
1404
|
+
return function(s, l, c) {
|
1405
|
+
c = c || {};
|
1406
|
+
var d = n(s) + "=" + n(l);
|
1407
|
+
l == null && (c.maxage = -1), c.maxage && (c.expires = new Date(+/* @__PURE__ */ new Date() + c.maxage)), c.path && (d += "; path=" + c.path), c.domain && (d += "; domain=" + c.domain), c.expires && (d += "; expires=" + c.expires.toUTCString()), c.secure && (d += "; secure"), document.cookie = d;
|
1408
|
+
}(o, a, u);
|
1409
|
+
case 1:
|
1410
|
+
return function(s) {
|
1411
|
+
return t()[s];
|
1412
|
+
}(o);
|
1413
|
+
default:
|
1414
|
+
return t();
|
1415
|
+
}
|
1416
|
+
}, mn;
|
1417
|
+
}
|
1418
|
+
var Br, ca = (Mr || (Mr = 1, function(e, t) {
|
1419
|
+
var n = la();
|
1420
|
+
function i(o) {
|
1421
|
+
for (var a = t.cookie, u = t.levels(o), s = 0; s < u.length; ++s) {
|
1422
|
+
var l = "__tld__", c = u[s], d = { domain: "." + c };
|
1423
|
+
if (a(l, 1, d), a(l)) return a(l, null, d), c;
|
1424
|
+
}
|
1425
|
+
return "";
|
1426
|
+
}
|
1427
|
+
i.levels = function(o) {
|
1428
|
+
var a, u, s = (typeof window.URL != "function" ? (a = o, (u = document.createElement("a")).href = a, u.hostname) : new URL(o).hostname).split("."), l = s[s.length - 1], c = [];
|
1429
|
+
if (s.length === 4 && l === parseInt(l, 10) || s.length <= 1) return c;
|
1430
|
+
for (var d = s.length - 2; d >= 0; --d) c.push(s.slice(d).join("."));
|
1431
|
+
return c;
|
1432
|
+
}, i.cookie = n, t = e.exports = i;
|
1433
|
+
}(yn, yn.exports)), yn.exports), fa = me(ca), ht = new (function() {
|
1434
|
+
return G(function e(t) {
|
1435
|
+
N(this, e), this.cOpts = {}, this.options(t), this.isSupportAvailable = this.checkSupportAvailability();
|
1436
|
+
}, [{ key: "options", value: function() {
|
1437
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1438
|
+
if (arguments.length === 0) return this.cOpts;
|
1439
|
+
var t = ".".concat(fa(window.location.href));
|
1440
|
+
return t === "." && (t = null), this.cOpts = _i(e, { maxage: 31536e6, path: "/", domain: t, samesite: "Lax" }), e.sameDomainCookiesOnly && delete this.cOpts.domain, this.cOpts;
|
1441
|
+
} }, { key: "set", value: function(e, t) {
|
1442
|
+
try {
|
1443
|
+
return gn(e, t, U(this.cOpts)), !0;
|
1444
|
+
} catch (n) {
|
1445
|
+
return D.error(n), !1;
|
1446
|
+
}
|
1447
|
+
} }, { key: "get", value: function(e) {
|
1448
|
+
return gn(e);
|
1449
|
+
} }, { key: "remove", value: function(e) {
|
1450
|
+
try {
|
1451
|
+
return gn(e, null, U(this.cOpts)), !0;
|
1452
|
+
} catch {
|
1453
|
+
return !1;
|
1454
|
+
}
|
1455
|
+
} }, { key: "checkSupportAvailability", value: function() {
|
1456
|
+
var e = "test_rudder_cookie";
|
1457
|
+
return this.set(e, !0), !!this.get(e) && (this.remove(e), !0);
|
1458
|
+
} }]);
|
1459
|
+
}())({}), Fr = { exports: {} }, da = (Br || (Br = 1, Fr.exports = function() {
|
1460
|
+
function e(f) {
|
1461
|
+
return f = JSON.stringify(f), !!/^\{[\s\S]*\}$/.test(f);
|
1462
|
+
}
|
1463
|
+
function t(f) {
|
1464
|
+
return f === void 0 || typeof f == "function" ? f + "" : JSON.stringify(f);
|
1465
|
+
}
|
1466
|
+
function n(f) {
|
1467
|
+
if (typeof f == "string") try {
|
1468
|
+
return JSON.parse(f);
|
1469
|
+
} catch {
|
1470
|
+
return f;
|
1471
|
+
}
|
1472
|
+
}
|
1473
|
+
function i(f) {
|
1474
|
+
return {}.toString.call(f) === "[object Function]";
|
1475
|
+
}
|
1476
|
+
function o(f) {
|
1477
|
+
return Object.prototype.toString.call(f) === "[object Array]";
|
1478
|
+
}
|
1479
|
+
function a(f) {
|
1480
|
+
var p = "_Is_Incognit", v = "yes";
|
1481
|
+
try {
|
1482
|
+
f || (f = window.localStorage), f.setItem(p, v), f.removeItem(p);
|
1483
|
+
} catch {
|
1484
|
+
var m = { _data: {}, setItem: function(h, y) {
|
1485
|
+
return m._data[h] = String(y);
|
1486
|
+
}, getItem: function(h) {
|
1487
|
+
return m._data.hasOwnProperty(h) ? m._data[h] : void 0;
|
1488
|
+
}, removeItem: function(h) {
|
1489
|
+
return delete m._data[h];
|
1490
|
+
}, clear: function() {
|
1491
|
+
return m._data = {};
|
1492
|
+
} };
|
1493
|
+
f = m;
|
1494
|
+
} finally {
|
1495
|
+
f.getItem(p) === v && f.removeItem(p);
|
1496
|
+
}
|
1497
|
+
return f;
|
1498
|
+
}
|
1499
|
+
var u = a();
|
1500
|
+
function s() {
|
1501
|
+
if (!(this instanceof s)) return new s();
|
1502
|
+
}
|
1503
|
+
s.prototype = { set: function(f, p) {
|
1504
|
+
if (f && !e(f)) u.setItem(f, t(p));
|
1505
|
+
else if (e(f)) for (var v in f) this.set(v, f[v]);
|
1506
|
+
return this;
|
1507
|
+
}, get: function(f) {
|
1508
|
+
if (f === void 0) {
|
1509
|
+
var p = {};
|
1510
|
+
return this.forEach(function(k, g) {
|
1511
|
+
return p[k] = g;
|
1512
|
+
}), p;
|
1513
|
+
}
|
1514
|
+
if (f.charAt(0) === "?") return this.has(f.substr(1));
|
1515
|
+
var v = arguments;
|
1516
|
+
if (v.length > 1) {
|
1517
|
+
for (var m = {}, O = 0, h = v.length; O < h; O++) {
|
1518
|
+
var y = n(u.getItem(v[O]));
|
1519
|
+
this.has(v[O]) && (m[v[O]] = y);
|
1520
|
+
}
|
1521
|
+
return m;
|
1522
|
+
}
|
1523
|
+
return n(u.getItem(f));
|
1524
|
+
}, clear: function() {
|
1525
|
+
return u.clear(), this;
|
1526
|
+
}, remove: function(f) {
|
1527
|
+
var p = this.get(f);
|
1528
|
+
return u.removeItem(f), p;
|
1529
|
+
}, has: function(f) {
|
1530
|
+
return {}.hasOwnProperty.call(this.get(), f);
|
1531
|
+
}, keys: function() {
|
1532
|
+
var f = [];
|
1533
|
+
return this.forEach(function(p) {
|
1534
|
+
f.push(p);
|
1535
|
+
}), f;
|
1536
|
+
}, forEach: function(f) {
|
1537
|
+
for (var p = 0, v = u.length; p < v; p++) {
|
1538
|
+
var m = u.key(p);
|
1539
|
+
f(m, this.get(m));
|
1540
|
+
}
|
1541
|
+
return this;
|
1542
|
+
}, search: function(f) {
|
1543
|
+
for (var p = this.keys(), v = {}, m = 0, O = p.length; m < O; m++) p[m].indexOf(f) > -1 && (v[p[m]] = this.get(p[m]));
|
1544
|
+
return v;
|
1545
|
+
}, len: function() {
|
1546
|
+
return u.length;
|
1547
|
+
} };
|
1548
|
+
var l = null;
|
1549
|
+
function c(f, p) {
|
1550
|
+
var v = arguments, m = null;
|
1551
|
+
if (l || (l = s()), v.length === 0) return l.get();
|
1552
|
+
if (v.length === 1) {
|
1553
|
+
if (typeof f == "string") return l.get(f);
|
1554
|
+
if (e(f)) return l.set(f);
|
1555
|
+
}
|
1556
|
+
if (v.length === 2 && typeof f == "string") {
|
1557
|
+
if (!p) return l.remove(f);
|
1558
|
+
if (p && typeof p == "string") return l.set(f, p);
|
1559
|
+
p && i(p) && (m = null, m = p(f, l.get(f)), c.set(f, m));
|
1560
|
+
}
|
1561
|
+
if (v.length === 2 && o(f) && i(p)) for (var O = 0, h = f.length; O < h; O++) m = p(f[O], l.get(f[O])), c.set(f[O], m);
|
1562
|
+
return c;
|
1563
|
+
}
|
1564
|
+
for (var d in s.prototype) c[d] = s.prototype[d];
|
1565
|
+
return c;
|
1566
|
+
}()), Fr.exports), vn = me(da), pt = new (function() {
|
1567
|
+
return G(function e(t) {
|
1568
|
+
N(this, e), this.sOpts = {}, this.enabled = this.checkSupportAvailability(), this.options(t);
|
1569
|
+
}, [{ key: "options", value: function() {
|
1570
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1571
|
+
return arguments.length === 0 || (_i(e, { enabled: !0 }), this.enabled = e.enabled && this.enabled, this.sOpts = e), this.sOpts;
|
1572
|
+
} }, { key: "set", value: function(e, t) {
|
1573
|
+
return vn.set(e, t);
|
1574
|
+
} }, { key: "get", value: function(e) {
|
1575
|
+
return vn.get(e);
|
1576
|
+
} }, { key: "remove", value: function(e) {
|
1577
|
+
return vn.remove(e);
|
1578
|
+
} }, { key: "checkSupportAvailability", value: function() {
|
1579
|
+
try {
|
1580
|
+
var e = "test_rudder_ls";
|
1581
|
+
return this.set(e, !0), !!this.get(e) && (this.remove(e), !0);
|
1582
|
+
} catch {
|
1583
|
+
return !1;
|
1584
|
+
}
|
1585
|
+
} }]);
|
1586
|
+
}())({}), ha = function(e) {
|
1587
|
+
return new TextDecoder().decode((t = e, n = globalThis.atob(t).split("").map(function(i) {
|
1588
|
+
return i.charCodeAt(0);
|
1589
|
+
}), new Uint8Array(n)));
|
1590
|
+
var t, n;
|
1591
|
+
}, bn = "rl_user_id", kn = "rl_trait", An = "rl_anonymous_id", In = "rl_group_id", En = "rl_group_trait", Nr = "rl_page_init_referrer", Gr = "rl_page_init_referring_domain", On = "rl_session", _n = "rl_auth_token", Mn = "RudderEncrypt:", Bn = "RS_ENC_v3_", Ci = "Rudder", Cn = { segment: "ajs_anonymous_id" };
|
1592
|
+
function Si(e) {
|
1593
|
+
return e.replace(/^\s+|\s+$/gm, "");
|
1594
|
+
}
|
1595
|
+
function Ur(e) {
|
1596
|
+
return e && typeof e == "string" && Si(e) !== "" ? e.startsWith(Mn) ? Oi.decrypt(e.substring(Mn.length), Ci).toString(ia) : e.startsWith(Bn) ? ha(e.substring(Bn.length)) : e : e;
|
1597
|
+
}
|
1598
|
+
for (var Yt, pa = function() {
|
1599
|
+
return G(function e() {
|
1600
|
+
N(this, e), ht.isSupportAvailable ? this.storage = ht : (pt.enabled && (this.storage = pt), this.storage || D.error("No storage is available :: initializing the SDK without storage"));
|
1601
|
+
}, [{ key: "options", value: function() {
|
1602
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1603
|
+
this.storage.options(e);
|
1604
|
+
} }, { key: "setItem", value: function(e, t) {
|
1605
|
+
var n = ge(t);
|
1606
|
+
n !== null && this.storage.set(e, function(i) {
|
1607
|
+
return Si(i) === "" ? i : "".concat(Mn).concat(Oi.encrypt(i, Ci).toString());
|
1608
|
+
}(n));
|
1609
|
+
} }, { key: "setStringItem", value: function(e, t) {
|
1610
|
+
typeof t == "string" ? this.setItem(e, t) : D.error("[Storage] ".concat(e, " should be string"));
|
1611
|
+
} }, { key: "setUserId", value: function(e) {
|
1612
|
+
this.setStringItem(bn, e);
|
1613
|
+
} }, { key: "setUserTraits", value: function(e) {
|
1614
|
+
this.setItem(kn, e);
|
1615
|
+
} }, { key: "setGroupId", value: function(e) {
|
1616
|
+
this.setStringItem(In, e);
|
1617
|
+
} }, { key: "setGroupTraits", value: function(e) {
|
1618
|
+
this.setItem(En, e);
|
1619
|
+
} }, { key: "setAnonymousId", value: function(e) {
|
1620
|
+
this.setStringItem(An, e);
|
1621
|
+
} }, { key: "setInitialReferrer", value: function(e) {
|
1622
|
+
this.setItem(Nr, e);
|
1623
|
+
} }, { key: "setInitialReferringDomain", value: function(e) {
|
1624
|
+
this.setItem(Gr, e);
|
1625
|
+
} }, { key: "setSessionInfo", value: function(e) {
|
1626
|
+
this.setItem(On, e);
|
1627
|
+
} }, { key: "setAuthToken", value: function(e) {
|
1628
|
+
this.setItem(_n, e);
|
1629
|
+
} }, { key: "getItem", value: function(e) {
|
1630
|
+
try {
|
1631
|
+
var t = Ur(this.storage.get(e)), n = t ? JSON.parse(t) : null;
|
1632
|
+
return typeof n == "string" && n.startsWith(Bn) && (D.warn(function(i) {
|
1633
|
+
return "The cookie data for ".concat(i, " seems to be corrupted where the underlying unencrypted data seems to be a cookie created by SDK v3. The decryption of the data was attempted again. This can potentially stem from using SDK v3 on other sites or web pages that can share cookies with this webpage. We recommend using the same SDK (v3) version everywhere.");
|
1634
|
+
}(e)), n = (t = Ur(n)) ? JSON.parse(t) : null), n;
|
1635
|
+
} catch (i) {
|
1636
|
+
return D.error(function(o) {
|
1637
|
+
return "Unable to retrieve the cookie data for ".concat(o, ". The data is dropped. This can potentially stem from using SDK v3 on other sites or web pages that can share cookies with this webpage. Please use the same SDK (v3) version everywhere as soon as possible.");
|
1638
|
+
}(e), i), null;
|
1639
|
+
}
|
1640
|
+
} }, { key: "getUserId", value: function() {
|
1641
|
+
return this.getItem(bn);
|
1642
|
+
} }, { key: "getUserTraits", value: function() {
|
1643
|
+
return this.getItem(kn);
|
1644
|
+
} }, { key: "getGroupId", value: function() {
|
1645
|
+
return this.getItem(In);
|
1646
|
+
} }, { key: "getGroupTraits", value: function() {
|
1647
|
+
return this.getItem(En);
|
1648
|
+
} }, { key: "fetchExternalAnonymousId", value: function(e) {
|
1649
|
+
var t, n = e.toLowerCase();
|
1650
|
+
return Object.keys(Cn).includes(n) && n === "segment" && (pt.enabled && (t = pt.get(Cn[n])), !t && ht.isSupportAvailable && (t = ht.get(Cn[n]))), t;
|
1651
|
+
} }, { key: "getAnonymousId", value: function(e) {
|
1652
|
+
var t = this.getItem(An);
|
1653
|
+
if (t) return t;
|
1654
|
+
var n = bt(e, "autoCapture.source");
|
1655
|
+
if (bt(e, "autoCapture.enabled") === !0 && typeof n == "string") {
|
1656
|
+
var i = this.fetchExternalAnonymousId(n);
|
1657
|
+
if (i) return i;
|
1658
|
+
}
|
1659
|
+
return t;
|
1660
|
+
} }, { key: "getInitialReferrer", value: function() {
|
1661
|
+
return this.getItem(Nr);
|
1662
|
+
} }, { key: "getInitialReferringDomain", value: function() {
|
1663
|
+
return this.getItem(Gr);
|
1664
|
+
} }, { key: "getSessionInfo", value: function() {
|
1665
|
+
return this.getItem(On);
|
1666
|
+
} }, { key: "getAuthToken", value: function() {
|
1667
|
+
return this.getItem(_n);
|
1668
|
+
} }, { key: "removeItem", value: function(e) {
|
1669
|
+
return this.storage.remove(e);
|
1670
|
+
} }, { key: "removeSessionInfo", value: function() {
|
1671
|
+
this.removeItem(On);
|
1672
|
+
} }, { key: "clear", value: function(e) {
|
1673
|
+
this.storage.remove(bn), this.storage.remove(kn), this.storage.remove(In), this.storage.remove(En), this.storage.remove(_n), e && this.storage.remove(An);
|
1674
|
+
} }]);
|
1675
|
+
}(), sn = new pa(), tn = function(e, t) {
|
1676
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
1677
|
+
try {
|
1678
|
+
if (document.getElementById(e)) return;
|
1679
|
+
var i = document.createElement("script");
|
1680
|
+
i.src = t, i.async = n.async === void 0 || n.async, i.type = "text/javascript", i.id = e, n.skipDatasetAttributes !== !0 && (i.setAttribute("data-loader", Ei), n.isNonNativeSDK !== void 0 && i.setAttribute("data-isNonNativeSDK", n.isNonNativeSDK));
|
1681
|
+
var o = document.getElementsByTagName("head");
|
1682
|
+
if (o.length > 0) o[0].insertBefore(i, o[0].firstChild);
|
1683
|
+
else {
|
1684
|
+
var a = document.getElementsByTagName("script")[0];
|
1685
|
+
a.parentNode.insertBefore(i, a);
|
1686
|
+
}
|
1687
|
+
} catch (u) {
|
1688
|
+
M(u);
|
1689
|
+
}
|
1690
|
+
}, jr = function(e) {
|
1691
|
+
return e === null;
|
1692
|
+
}, ga = function(e) {
|
1693
|
+
return !jr(e) && function(t) {
|
1694
|
+
return L(t) === "object";
|
1695
|
+
}(e) && !Array.isArray(e);
|
1696
|
+
}, ma = function(e, t) {
|
1697
|
+
if (!Array.isArray(e) || !Array.isArray(t)) return U(t);
|
1698
|
+
var n = U(e);
|
1699
|
+
return t.forEach(function(i, o) {
|
1700
|
+
n[o] = Array.isArray(i) || ga(i) ? gt(n[o], i) : i;
|
1701
|
+
}), n;
|
1702
|
+
}, gt = function(e, t) {
|
1703
|
+
return Ao(ma, e, t);
|
1704
|
+
}, ya = function(e) {
|
1705
|
+
return function(t) {
|
1706
|
+
return !jr(t) && Object.prototype.toString.call(t) === "[object Object]";
|
1707
|
+
}(e) && Object.keys(e).length > 0;
|
1708
|
+
}, qe = 256, nn = []; qe--; ) nn[qe] = (qe + 256).toString(16).substring(1);
|
1709
|
+
for (var Sn, Hr = 4096, rn = [], De = 0; De < 256; De++) rn[De] = (De + 256).toString(16).substring(1);
|
1710
|
+
function va() {
|
1711
|
+
var e;
|
1712
|
+
(!Sn || De + 16 > Hr) && (e = Hr, Sn = crypto.getRandomValues(new Uint8Array(e)), De = 0);
|
1713
|
+
for (var t, n = 0, i = ""; n < 16; n++) t = Sn[De + n], i += n == 6 ? rn[15 & t | 64] : n == 8 ? rn[63 & t | 128] : rn[t], 1 & n && n > 1 && n < 11 && (i += "-");
|
1714
|
+
return De += 16, i;
|
1715
|
+
}
|
1716
|
+
var ba = { All: "All", GA: "Google Analytics", GOOGLEADS: "Google Ads", BRAZE: "Braze", CHARTBEAT: "Chartbeat", CUSTOMERIO: "Customer IO", DCM_Floodlight: "DCM Floodlight", FACEBOOK_PIXEL: "Facebook Pixel", GTM: "Google Tag Manager", HOTJAR: "Hotjar", HS: "HubSpot", INTERCOM: "Intercom", KEEN: "Keen", KISSMETRICS: "Kiss Metrics", LOTAME: "Lotame", VWO: "VWO", OPTIMIZELY: "Optimizely Web", FULLSTORY: "Fullstory", TVSQUARED: "TVSquared", GA4: "Google Analytics 4 (GA4)", GA4_V2: "Google Analytics 4 (GA4) V2", MOENGAGE: "MoEngage", AM: "Amplitude", PENDO: "Pendo", LYTICS: "Lytics", APPCUES: "Appcues", POSTHOG: "PostHog", PROFITWELL: "ProfitWell", KLAVIYO: "Klaviyo", CLEVERTAP: "CleverTap", BINGADS: "Bing Ads", PINTEREST_TAG: "Pinterest Tag", SNAP_PIXEL: "Snap Pixel", LINKEDIN_INSIGHT_TAG: "Linkedin Insight Tag", REDDIT_PIXEL: "Reddit Pixel", DRIP: "Drip", HEAP: "Heap.io", CRITEO: "Criteo", MP: "Mixpanel", QUALTRICS: "Qualtrics", SENTRY: "Sentry", GOOGLE_OPTIMIZE: "Google Optimize", POST_AFFILIATE_PRO: "Post Affiliate Pro", LAUNCHDARKLY: "LaunchDarkly", GA360: "Google Analytics 360", ADROLL: "Adroll", VERO: "Vero", MATOMO: "Matomo", MOUSEFLOW: "Mouseflow", ROCKERBOX: "Rockerbox", CONVERTFLOW: "ConvertFlow", SNAPENGAGE: "SnapEngage", LIVECHAT: "LiveChat", SHYNET: "Shynet", WOOPRA: "Woopra", ROLLBAR: "RollBar", QUORA_PIXEL: "Quora Pixel", JUNE: "June", ENGAGE: "Engage", ITERABLE: "Iterable", YANDEX_METRICA: "Yandex.Metrica", REFINER: "Refiner", QUALAROO: "Qualaroo", PODSIGHTS: "Podsights", AXEPTIO: "Axeptio", SATISMETER: "Satismeter", MICROSOFT_CLARITY: "Microsoft Clarity", SENDINBLUE: "Sendinblue", OLARK: "Olark", LEMNISK: "Lemnisk", TIKTOK_ADS: "TikTok Ads", ACTIVE_CAMPAIGN: "ActiveCampaign", SPRIG: "Sprig", SPOTIFYPIXEL: "Spotify Pixel", COMMANDBAR: "CommandBar", NINETAILED: "Ninetailed", XPIXEL: "XPixel", GAINSIGHT_PX: "Gainsight PX" }, wn = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"], Tn = "https://api.rudderstack.com/sourceConfig/?p=npm&v=2.48.44", wi = "v1.1", Ti = "js-integrations", Ri = "".concat("https://cdn.rudderlabs.com", "/").concat(wi, "/").concat(Ti), qr = "https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=Number.isNaN%2CURL%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CString.prototype.endsWith%2CString.prototype.includes%2CString.prototype.startsWith%2CObject.entries%2CObject.values%2CElement.prototype.dataset%2CString.prototype.replaceAll%2CTextEncoder%2Cnavigator.sendBeacon", ka = ["Lax", "None", "Strict"], Aa = ["US", "EU"], Ia = ["oneTrust", "ketch"], Kr = ["library", "consentManagement"], Ea = ["none", "default", "full"], Oa = { All: !0 };
|
1717
|
+
function kt(e) {
|
1718
|
+
return e != null && e.endsWith("/") ? e.replace(/\/+$/, "") : e;
|
1719
|
+
}
|
1720
|
+
function Pi() {
|
1721
|
+
return window.crypto && typeof window.crypto.getRandomValues == "function" ? va() : function() {
|
1722
|
+
var e, t = 0, n = "";
|
1723
|
+
if (!Yt || qe + 16 > 256) {
|
1724
|
+
for (Yt = Array(t = 256); t--; ) Yt[t] = 256 * Math.random() | 0;
|
1725
|
+
t = qe = 0;
|
1726
|
+
}
|
1727
|
+
for (; t < 16; t++) e = Yt[qe + t], n += t == 6 ? nn[15 & e | 64] : t == 8 ? nn[63 & e | 128] : nn[e], 1 & t && t > 1 && t < 11 && (n += "-");
|
1728
|
+
return qe++, n;
|
1729
|
+
}();
|
1730
|
+
}
|
1731
|
+
function At() {
|
1732
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
1733
|
+
}
|
1734
|
+
function Di(e, t) {
|
1735
|
+
Object.keys(e).forEach(function(n) {
|
1736
|
+
e.hasOwnProperty(n) && (t[n] && (e[t[n]] = e[n]), n !== "All" && t[n] !== void 0 && t[n] !== n && delete e[n]);
|
1737
|
+
});
|
1738
|
+
}
|
1739
|
+
function Rn(e) {
|
1740
|
+
Di(e, Ii);
|
1741
|
+
}
|
1742
|
+
function Qr(e) {
|
1743
|
+
Di(e, ba);
|
1744
|
+
}
|
1745
|
+
function Pn(e, t) {
|
1746
|
+
var n = [];
|
1747
|
+
if (!t || t.length === 0) return n;
|
1748
|
+
var i = !0;
|
1749
|
+
e.All !== void 0 && (i = e.All);
|
1750
|
+
var o = [];
|
1751
|
+
return typeof t[0] == "string" ? t.forEach(function(a) {
|
1752
|
+
o.push({ intgName: a, intObj: a });
|
1753
|
+
}) : L(t[0]) === "object" && t.forEach(function(a) {
|
1754
|
+
o.push({ intgName: a.name, intObj: a });
|
1755
|
+
}), o.forEach(function(a) {
|
1756
|
+
var u = a.intgName, s = a.intObj;
|
1757
|
+
if (i) {
|
1758
|
+
var l = !0;
|
1759
|
+
e[u] !== void 0 && !e[u] && (l = !1), l && n.push(s);
|
1760
|
+
} else e[u] !== void 0 && e[u] && n.push(s);
|
1761
|
+
}), n;
|
1762
|
+
}
|
1763
|
+
var Jt = function(e) {
|
1764
|
+
return typeof e == "string" || e == null ? e : ge(e);
|
1765
|
+
}, zr = function(e) {
|
1766
|
+
return typeof e == "string" && e.trim().length > 0;
|
1767
|
+
}, _a = function(e, t, n) {
|
1768
|
+
try {
|
1769
|
+
var i = e.source.dataplanes || {};
|
1770
|
+
if (Object.keys(i).length > 0) {
|
1771
|
+
var o = function(s) {
|
1772
|
+
var l = s ? s.residencyServer : void 0;
|
1773
|
+
if (l) return typeof l == "string" && Aa.includes(l.toUpperCase()) ? l.toUpperCase() : void D.error("Invalid residencyServer input");
|
1774
|
+
}(n), a = i[o] || i.US;
|
1775
|
+
if (a) {
|
1776
|
+
var u = function(s) {
|
1777
|
+
if (Array.isArray(s) && s.length > 0) {
|
1778
|
+
var l = s.find(function(c) {
|
1779
|
+
return c.default === !0;
|
1780
|
+
});
|
1781
|
+
if (l && zr(l.url)) return l.url;
|
1782
|
+
}
|
1783
|
+
}(a);
|
1784
|
+
if (u) return u;
|
1785
|
+
}
|
1786
|
+
}
|
1787
|
+
if (zr(t)) return t;
|
1788
|
+
throw Error("Unable to load the SDK due to invalid data plane url");
|
1789
|
+
} catch (s) {
|
1790
|
+
throw Error(s);
|
1791
|
+
}
|
1792
|
+
};
|
1793
|
+
function xi() {
|
1794
|
+
var e;
|
1795
|
+
return ((e = document) === null || e === void 0 ? void 0 : e.referrer) || "$direct";
|
1796
|
+
}
|
1797
|
+
function Li(e) {
|
1798
|
+
var t = e.split("/");
|
1799
|
+
return t.length >= 3 ? t[2] : "";
|
1800
|
+
}
|
1801
|
+
function Vr() {
|
1802
|
+
for (var e = document.getElementsByTagName("link"), t = 0; e[t]; t += 1) {
|
1803
|
+
var n = e[t];
|
1804
|
+
if (n.getAttribute("rel") === "canonical") return n.getAttribute("href");
|
1805
|
+
}
|
1806
|
+
}
|
1807
|
+
function $r() {
|
1808
|
+
var e = Vr(), t = window.location.pathname;
|
1809
|
+
if (e) try {
|
1810
|
+
t = new URL(e).pathname;
|
1811
|
+
} catch {
|
1812
|
+
}
|
1813
|
+
var n = window.location, i = n.search, o = n.href, a = document.title, u = function(c) {
|
1814
|
+
var d, f = Vr(), p = (d = f ? f.includes("?") ? f : f + c : window.location.href).indexOf("#");
|
1815
|
+
return p > -1 ? d.slice(0, p) : d;
|
1816
|
+
}(i), s = o, l = xi();
|
1817
|
+
return { path: t, referrer: l, referring_domain: Li(l), search: i, title: a, url: u, tab_url: s, initial_referrer: sn.getInitialReferrer() || "", initial_referring_domain: sn.getInitialReferringDomain() || "" };
|
1818
|
+
}
|
1819
|
+
var Xr, Ca = G(function e() {
|
1820
|
+
N(this, e), this.name = "RudderLabs JavaScript SDK", this.namespace = "com.rudderlabs.javascript", this.version = "2.48.44";
|
1821
|
+
}), Sa = G(function e() {
|
1822
|
+
N(this, e), this.name = "RudderLabs JavaScript SDK", this.version = "2.48.44";
|
1823
|
+
}), wa = G(function e() {
|
1824
|
+
N(this, e), this.name = "", this.version = "";
|
1825
|
+
}), Ta = G(function e() {
|
1826
|
+
N(this, e), this.density = 0, this.width = 0, this.height = 0, this.innerWidth = 0, this.innerHeight = 0;
|
1827
|
+
}), Ra = G(function e() {
|
1828
|
+
var t, n;
|
1829
|
+
N(this, e), this.app = new Ca(), this.traits = null, this.library = new Sa(), this.userAgent = function() {
|
1830
|
+
if (typeof navigator > "u") return null;
|
1831
|
+
var i = navigator.userAgent, o = navigator.brave;
|
1832
|
+
if (o && Object.getPrototypeOf(o).isBrave) {
|
1833
|
+
var a = i.match(/(chrome)\/([\w.]+)/i);
|
1834
|
+
a && (i = "".concat(i, " Brave/").concat(a[2]));
|
1835
|
+
}
|
1836
|
+
return i;
|
1837
|
+
}(), this.device = null, this.network = null, this.os = new wa(), this.locale = typeof navigator > "u" ? null : navigator.language || navigator.browserLanguage, this.screen = (t = new Ta(), typeof window > "u" || (t.width = window.screen.width, t.height = window.screen.height, t.density = window.devicePixelRatio, t.innerWidth = window.innerWidth, t.innerHeight = window.innerHeight), t), this.timezone = (n = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString())) != null && n[1] ? n[1] : "NA";
|
1838
|
+
}), Pa = function() {
|
1839
|
+
return G(function e() {
|
1840
|
+
N(this, e), this.channel = "web", this.context = new Ra(), this.type = null, this.messageId = Pi(), this.originalTimestamp = (/* @__PURE__ */ new Date()).toISOString(), this.anonymousId = null, this.userId = null, this.event = null, this.properties = {};
|
1841
|
+
}, [{ key: "getProperty", value: function(e) {
|
1842
|
+
return this.properties[e];
|
1843
|
+
} }, { key: "addProperty", value: function(e, t) {
|
1844
|
+
this.properties[e] = t;
|
1845
|
+
} }]);
|
1846
|
+
}(), Mi = function() {
|
1847
|
+
return G(function e() {
|
1848
|
+
N(this, e), this.message = new Pa();
|
1849
|
+
}, [{ key: "setType", value: function(e) {
|
1850
|
+
this.message.type = e;
|
1851
|
+
} }, { key: "setProperty", value: function(e) {
|
1852
|
+
this.message.properties = e;
|
1853
|
+
} }, { key: "setUserProperty", value: function(e) {
|
1854
|
+
this.message.user_properties = e;
|
1855
|
+
} }, { key: "setUserId", value: function(e) {
|
1856
|
+
this.message.userId = e;
|
1857
|
+
} }, { key: "setEventName", value: function(e) {
|
1858
|
+
this.message.event = e;
|
1859
|
+
} }, { key: "getElementContent", value: function() {
|
1860
|
+
return this.message;
|
1861
|
+
} }]);
|
1862
|
+
}(), dt = function() {
|
1863
|
+
return G(function e() {
|
1864
|
+
N(this, e), this.rudderProperty = null, this.rudderUserProperty = null, this.event = null, this.userId = null, this.type = null;
|
1865
|
+
}, [{ key: "setType", value: function(e) {
|
1866
|
+
return this.type = e, this;
|
1867
|
+
} }, { key: "build", value: function() {
|
1868
|
+
var e = new Mi();
|
1869
|
+
return e.setUserId(this.userId), e.setType(this.type), e.setEventName(this.event), e.setProperty(this.rudderProperty), e.setUserProperty(this.rudderUserProperty), e;
|
1870
|
+
} }]);
|
1871
|
+
}(), Dn = {};
|
1872
|
+
function Bi() {
|
1873
|
+
if (Xr) return Dn;
|
1874
|
+
Xr = 1;
|
1875
|
+
for (var e, t = 256, n = []; t--; ) n[t] = (t + 256).toString(16).substring(1);
|
1876
|
+
return Dn.v4 = function() {
|
1877
|
+
var i, o = 0, a = "";
|
1878
|
+
if (!e || t + 16 > 256) {
|
1879
|
+
for (e = Array(o = 256); o--; ) e[o] = 256 * Math.random() | 0;
|
1880
|
+
o = t = 0;
|
1881
|
+
}
|
1882
|
+
for (; o < 16; o++) i = e[t + o], a += o == 6 ? n[15 & i | 64] : o == 8 ? n[63 & i | 128] : n[i], 1 & o && o > 1 && o < 11 && (a += "-");
|
1883
|
+
return t++, a;
|
1884
|
+
}, Dn;
|
1885
|
+
}
|
1886
|
+
var Wr, Yr, Jr, Zr, ei, ti, ni, ri, ii, Zt = {};
|
1887
|
+
function Vn() {
|
1888
|
+
if (Yr) return Wr;
|
1889
|
+
Yr = 1;
|
1890
|
+
var e = Object.prototype.hasOwnProperty, t = String.prototype.charAt, n = Object.prototype.toString, i = function(u, s) {
|
1891
|
+
return t.call(u, s);
|
1892
|
+
}, o = function(u, s) {
|
1893
|
+
return e.call(u, s);
|
1894
|
+
}, a = function(u, s) {
|
1895
|
+
s = s || o;
|
1896
|
+
for (var l = [], c = 0, d = u.length; c < d; c += 1) s(u, c) && l.push(String(c));
|
1897
|
+
return l;
|
1898
|
+
};
|
1899
|
+
return Wr = function(u) {
|
1900
|
+
return u == null ? [] : (s = u, n.call(s) === "[object String]" ? a(u, i) : function(l) {
|
1901
|
+
return l != null && typeof l != "function" && typeof l.length == "number";
|
1902
|
+
}(u) ? a(u, o) : function(l, c) {
|
1903
|
+
c = c || o;
|
1904
|
+
var d = [];
|
1905
|
+
for (var f in l) c(l, f) && d.push(String(f));
|
1906
|
+
return d;
|
1907
|
+
}(u));
|
1908
|
+
var s;
|
1909
|
+
};
|
1910
|
+
}
|
1911
|
+
function oi() {
|
1912
|
+
if (Jr) return Zt;
|
1913
|
+
Jr = 1;
|
1914
|
+
var e = Vn(), t = Bi().v4, n = { _data: {}, length: 0, setItem: function(i, o) {
|
1915
|
+
return this._data[i] = o, this.length = e(this._data).length, o;
|
1916
|
+
}, getItem: function(i) {
|
1917
|
+
return i in this._data ? this._data[i] : null;
|
1918
|
+
}, removeItem: function(i) {
|
1919
|
+
return i in this._data && delete this._data[i], this.length = e(this._data).length, null;
|
1920
|
+
}, clear: function() {
|
1921
|
+
this._data = {}, this.length = 0;
|
1922
|
+
}, key: function(i) {
|
1923
|
+
return e(this._data)[i];
|
1924
|
+
} };
|
1925
|
+
return Zt.defaultEngine = function() {
|
1926
|
+
try {
|
1927
|
+
if (!window.localStorage) return !1;
|
1928
|
+
var i = t();
|
1929
|
+
window.localStorage.setItem(i, "test_value");
|
1930
|
+
var o = window.localStorage.getItem(i);
|
1931
|
+
return window.localStorage.removeItem(i), o === "test_value";
|
1932
|
+
} catch {
|
1933
|
+
return !1;
|
1934
|
+
}
|
1935
|
+
}() ? window.localStorage : n, Zt.inMemoryEngine = n, Zt;
|
1936
|
+
}
|
1937
|
+
function Fn() {
|
1938
|
+
if (ei) return Zr;
|
1939
|
+
ei = 1;
|
1940
|
+
var e = Vn(), t = Object.prototype.toString, n = typeof Array.isArray == "function" ? Array.isArray : function(u) {
|
1941
|
+
return t.call(u) === "[object Array]";
|
1942
|
+
}, i = function(u) {
|
1943
|
+
return u != null && (n(u) || u !== "function" && function(s) {
|
1944
|
+
var l = L(s);
|
1945
|
+
return l === "number" || l === "object" && t.call(s) === "[object Number]";
|
1946
|
+
}(u.length));
|
1947
|
+
}, o = function(u, s) {
|
1948
|
+
for (var l = 0; l < s.length && u(s[l], l, s) !== !1; l += 1) ;
|
1949
|
+
}, a = function(u, s) {
|
1950
|
+
for (var l = e(s), c = 0; c < l.length && u(s[l[c]], l[c], s) !== !1; c += 1) ;
|
1951
|
+
};
|
1952
|
+
return Zr = function(u, s) {
|
1953
|
+
return (i(s) ? o : a).call(this, u, s);
|
1954
|
+
};
|
1955
|
+
}
|
1956
|
+
function Da() {
|
1957
|
+
if (ni) return ti;
|
1958
|
+
ni = 1;
|
1959
|
+
var e = oi().defaultEngine, t = oi().inMemoryEngine, n = Fn(), i = Vn(), o = JSON;
|
1960
|
+
function a(s) {
|
1961
|
+
try {
|
1962
|
+
return JSON.stringify(s, (l = [], function(c, d) {
|
1963
|
+
if (L(d) !== "object" || d === null) return d;
|
1964
|
+
for (; l.length > 0 && l[l.length - 1] !== this; ) l.pop();
|
1965
|
+
return l.includes(d) ? "[Circular Reference]" : (l.push(d), d);
|
1966
|
+
}));
|
1967
|
+
} catch {
|
1968
|
+
return null;
|
1969
|
+
}
|
1970
|
+
var l;
|
1971
|
+
}
|
1972
|
+
function u(s, l, c, d) {
|
1973
|
+
this.id = l, this.name = s, this.keys = c || {}, this.engine = d || e, this.originalEngine = this.engine;
|
1974
|
+
}
|
1975
|
+
return u.prototype.set = function(s, l) {
|
1976
|
+
var c = this._createValidKey(s);
|
1977
|
+
if (c) try {
|
1978
|
+
this.engine.setItem(c, a(l));
|
1979
|
+
} catch (d) {
|
1980
|
+
(function(f) {
|
1981
|
+
var p = !1;
|
1982
|
+
if (f.code) switch (f.code) {
|
1983
|
+
case 22:
|
1984
|
+
p = !0;
|
1985
|
+
break;
|
1986
|
+
case 1014:
|
1987
|
+
f.name === "NS_ERROR_DOM_QUOTA_REACHED" && (p = !0);
|
1988
|
+
}
|
1989
|
+
else f.number === -2147024882 && (p = !0);
|
1990
|
+
return p;
|
1991
|
+
})(d) && (this._swapEngine(), this.set(s, l));
|
1992
|
+
}
|
1993
|
+
}, u.prototype.get = function(s) {
|
1994
|
+
try {
|
1995
|
+
var l = this.engine.getItem(this._createValidKey(s));
|
1996
|
+
return l === null ? null : o.parse(l);
|
1997
|
+
} catch {
|
1998
|
+
return null;
|
1999
|
+
}
|
2000
|
+
}, u.prototype.getOriginalEngine = function() {
|
2001
|
+
return this.originalEngine;
|
2002
|
+
}, u.prototype.remove = function(s) {
|
2003
|
+
this.engine.removeItem(this._createValidKey(s));
|
2004
|
+
}, u.prototype._createValidKey = function(s) {
|
2005
|
+
var l, c = this.name, d = this.id;
|
2006
|
+
return i(this.keys).length ? (n(function(f) {
|
2007
|
+
f === s && (l = [c, d, s].join("."));
|
2008
|
+
}, this.keys), l) : [c, d, s].join(".");
|
2009
|
+
}, u.prototype._swapEngine = function() {
|
2010
|
+
var s = this;
|
2011
|
+
n(function(l) {
|
2012
|
+
var c = s.get(l);
|
2013
|
+
t.setItem([s.name, s.id, l].join("."), c), s.remove(l);
|
2014
|
+
}, this.keys), this.engine = t;
|
2015
|
+
}, ti = u;
|
2016
|
+
}
|
2017
|
+
var si, ai, ui, li = { exports: {} };
|
2018
|
+
function xa() {
|
2019
|
+
return si || (si = 1, function(e) {
|
2020
|
+
function t(n) {
|
2021
|
+
if (n) return function(i) {
|
2022
|
+
for (var o in t.prototype) i[o] = t.prototype[o];
|
2023
|
+
return i;
|
2024
|
+
}(n);
|
2025
|
+
}
|
2026
|
+
li.exports = t, t.prototype.on = t.prototype.addEventListener = function(n, i) {
|
2027
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + n] = this._callbacks["$" + n] || []).push(i), this;
|
2028
|
+
}, t.prototype.once = function(n, i) {
|
2029
|
+
function o() {
|
2030
|
+
this.off(n, o), i.apply(this, arguments);
|
2031
|
+
}
|
2032
|
+
return o.fn = i, this.on(n, o), this;
|
2033
|
+
}, t.prototype.off = t.prototype.removeListener = t.prototype.removeAllListeners = t.prototype.removeEventListener = function(n, i) {
|
2034
|
+
if (this._callbacks = this._callbacks || {}, arguments.length == 0) return this._callbacks = {}, this;
|
2035
|
+
var o, a = this._callbacks["$" + n];
|
2036
|
+
if (!a) return this;
|
2037
|
+
if (arguments.length == 1) return delete this._callbacks["$" + n], this;
|
2038
|
+
for (var u = 0; u < a.length; u++) if ((o = a[u]) === i || o.fn === i) {
|
2039
|
+
a.splice(u, 1);
|
2040
|
+
break;
|
2041
|
+
}
|
2042
|
+
return a.length === 0 && delete this._callbacks["$" + n], this;
|
2043
|
+
}, t.prototype.emit = function(n) {
|
2044
|
+
this._callbacks = this._callbacks || {};
|
2045
|
+
for (var i = new Array(arguments.length - 1), o = this._callbacks["$" + n], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
2046
|
+
if (o) {
|
2047
|
+
a = 0;
|
2048
|
+
for (var u = (o = o.slice(0)).length; a < u; ++a) o[a].apply(this, i);
|
2049
|
+
}
|
2050
|
+
return this;
|
2051
|
+
}, t.prototype.listeners = function(n) {
|
2052
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + n] || [];
|
2053
|
+
}, t.prototype.hasListeners = function(n) {
|
2054
|
+
return !!this.listeners(n).length;
|
2055
|
+
};
|
2056
|
+
}()), li.exports;
|
2057
|
+
}
|
2058
|
+
var La = function() {
|
2059
|
+
if (ui) return ai;
|
2060
|
+
ui = 1;
|
2061
|
+
var e = Bi().v4, t = Da(), n = Fn(), i = function() {
|
2062
|
+
if (ii) return ri;
|
2063
|
+
ii = 1;
|
2064
|
+
var s = Fn(), l = { setTimeout: function(p, v) {
|
2065
|
+
return window.setTimeout(p, v);
|
2066
|
+
}, clearTimeout: function(p) {
|
2067
|
+
return window.clearTimeout(p);
|
2068
|
+
}, Date: window.Date }, c = l, d = { ASAP: 1, RESCHEDULE: 2, ABANDON: 3 };
|
2069
|
+
function f() {
|
2070
|
+
this.tasks = {}, this.nextId = 1;
|
2071
|
+
}
|
2072
|
+
return f.prototype.now = function() {
|
2073
|
+
return +new c.Date();
|
2074
|
+
}, f.prototype.run = function(p, v, m) {
|
2075
|
+
var O = this.nextId++;
|
2076
|
+
return this.tasks[O] = c.setTimeout(this._handle(O, p, v, m || d.ASAP), v), O;
|
2077
|
+
}, f.prototype.cancel = function(p) {
|
2078
|
+
this.tasks[p] && (c.clearTimeout(this.tasks[p]), delete this.tasks[p]);
|
2079
|
+
}, f.prototype.cancelAll = function() {
|
2080
|
+
s(c.clearTimeout, this.tasks), this.tasks = {};
|
2081
|
+
}, f.prototype._handle = function(p, v, m, O) {
|
2082
|
+
var h = this, y = h.now();
|
2083
|
+
return function() {
|
2084
|
+
if (delete h.tasks[p], !(O >= d.RESCHEDULE && y + 2 * m < h.now())) return v();
|
2085
|
+
O === d.RESCHEDULE && h.run(v, m, O);
|
2086
|
+
};
|
2087
|
+
}, f.setClock = function(p) {
|
2088
|
+
c = p;
|
2089
|
+
}, f.resetClock = function() {
|
2090
|
+
c = l;
|
2091
|
+
}, f.Modes = d, ri = f;
|
2092
|
+
}(), o = zn()("localstorage-retry");
|
2093
|
+
function a(s, l) {
|
2094
|
+
return function() {
|
2095
|
+
return s.apply(l, arguments);
|
2096
|
+
};
|
2097
|
+
}
|
2098
|
+
function u(s, l, c) {
|
2099
|
+
typeof l == "function" && (c = l), this.name = s, this.id = e(), this.fn = c, this.maxItems = l.maxItems || 1 / 0, this.maxAttempts = l.maxAttempts || 1 / 0, this.backoff = { MIN_RETRY_DELAY: l.minRetryDelay || 1e3, MAX_RETRY_DELAY: l.maxRetryDelay || 3e4, FACTOR: l.backoffFactor || 2, JITTER: l.backoffJitter || 0 }, this.timeouts = { ACK_TIMER: 1e3, RECLAIM_TIMER: 3e3, RECLAIM_TIMEOUT: 1e4, RECLAIM_WAIT: 500 }, this.keys = { IN_PROGRESS: "inProgress", QUEUE: "queue", RECLAIM_START: "reclaimStart", RECLAIM_END: "reclaimEnd", ACK: "ack" }, this._schedule = new i(), this._processId = 0, this._store = new t(this.name, this.id, this.keys), this._store.set(this.keys.IN_PROGRESS, {}), this._store.set(this.keys.QUEUE, []), this._ack = a(this._ack, this), this._checkReclaim = a(this._checkReclaim, this), this._processHead = a(this._processHead, this), this._running = !1;
|
2100
|
+
}
|
2101
|
+
return xa()(u.prototype), u.prototype.start = function() {
|
2102
|
+
this._running && this.stop(), this._running = !0, this._ack(), this._checkReclaim(), this._processHead();
|
2103
|
+
}, u.prototype.stop = function() {
|
2104
|
+
this._schedule.cancelAll(), this._running = !1;
|
2105
|
+
}, u.prototype.shouldRetry = function(s, l) {
|
2106
|
+
return !(l > this.maxAttempts);
|
2107
|
+
}, u.prototype.getDelay = function(s) {
|
2108
|
+
var l = this.backoff.MIN_RETRY_DELAY * Math.pow(this.backoff.FACTOR, s);
|
2109
|
+
if (this.backoff.JITTER) {
|
2110
|
+
var c = Math.random(), d = Math.floor(c * this.backoff.JITTER * l);
|
2111
|
+
Math.floor(10 * c) < 5 ? l -= d : l += d;
|
2112
|
+
}
|
2113
|
+
return Number(Math.min(l, this.backoff.MAX_RETRY_DELAY).toPrecision(1));
|
2114
|
+
}, u.prototype.addItem = function(s) {
|
2115
|
+
this._enqueue({ item: s, attemptNumber: 0, time: this._schedule.now(), id: e() });
|
2116
|
+
}, u.prototype.requeue = function(s, l, c, d) {
|
2117
|
+
this.shouldRetry(s, l, c) ? this._enqueue({ item: s, attemptNumber: l, time: this._schedule.now() + this.getDelay(l), id: d || e() }) : this.emit("discard", s, l);
|
2118
|
+
}, u.prototype._enqueue = function(s) {
|
2119
|
+
var l = this._store.get(this.keys.QUEUE) || [];
|
2120
|
+
(l = l.slice(-(this.maxItems - 1))).push(s), l = l.sort(function(c, d) {
|
2121
|
+
return c.time - d.time;
|
2122
|
+
}), this._store.set(this.keys.QUEUE, l), this._running && this._processHead();
|
2123
|
+
}, u.prototype._processHead = function() {
|
2124
|
+
var s = this, l = this._store;
|
2125
|
+
this._schedule.cancel(this._processId);
|
2126
|
+
var c = l.get(this.keys.QUEUE) || [], d = l.get(this.keys.IN_PROGRESS) || {}, f = this._schedule.now(), p = [];
|
2127
|
+
function v(y, k) {
|
2128
|
+
p.push({ item: y.item, done: function(g, b) {
|
2129
|
+
var A = l.get(s.keys.IN_PROGRESS) || {};
|
2130
|
+
delete A[k], l.set(s.keys.IN_PROGRESS, A), s.emit("processed", g, b, y.item), g && s.requeue(y.item, y.attemptNumber + 1, g, y.id);
|
2131
|
+
} });
|
2132
|
+
}
|
2133
|
+
for (var m = Object.keys(d).length; c.length && c[0].time <= f && m++ < s.maxItems; ) {
|
2134
|
+
var O = c.shift(), h = e();
|
2135
|
+
d[h] = { item: O.item, attemptNumber: O.attemptNumber, time: s._schedule.now() }, v(O, h);
|
2136
|
+
}
|
2137
|
+
l.set(this.keys.QUEUE, c), l.set(this.keys.IN_PROGRESS, d), n(function(y) {
|
2138
|
+
try {
|
2139
|
+
s.fn(y.item, y.done);
|
2140
|
+
} catch (k) {
|
2141
|
+
o("Process function threw error: " + k);
|
2142
|
+
}
|
2143
|
+
}, p), c = l.get(this.keys.QUEUE) || [], this._schedule.cancel(this._processId), c.length > 0 && (this._processId = this._schedule.run(this._processHead, c[0].time - f, i.Modes.ASAP));
|
2144
|
+
}, u.prototype._ack = function() {
|
2145
|
+
this._store.set(this.keys.ACK, this._schedule.now()), this._store.set(this.keys.RECLAIM_START, null), this._store.set(this.keys.RECLAIM_END, null), this._schedule.run(this._ack, this.timeouts.ACK_TIMER, i.Modes.ASAP);
|
2146
|
+
}, u.prototype._checkReclaim = function() {
|
2147
|
+
var s = this;
|
2148
|
+
n(function(l) {
|
2149
|
+
l.id !== s.id && (s._schedule.now() - l.get(s.keys.ACK) < s.timeouts.RECLAIM_TIMEOUT || function(c) {
|
2150
|
+
c.set(s.keys.RECLAIM_START, s.id), c.set(s.keys.ACK, s._schedule.now()), s._schedule.run(function() {
|
2151
|
+
c.get(s.keys.RECLAIM_START) === s.id && (c.set(s.keys.RECLAIM_END, s.id), s._schedule.run(function() {
|
2152
|
+
c.get(s.keys.RECLAIM_END) === s.id && c.get(s.keys.RECLAIM_START) === s.id && s._reclaim(c.id);
|
2153
|
+
}, s.timeouts.RECLAIM_WAIT, i.Modes.ABANDON));
|
2154
|
+
}, s.timeouts.RECLAIM_WAIT, i.Modes.ABANDON);
|
2155
|
+
}(l));
|
2156
|
+
}, function(l) {
|
2157
|
+
for (var c = [], d = s._store.getOriginalEngine(), f = 0; f < d.length; f++) {
|
2158
|
+
var p = d.key(f);
|
2159
|
+
if (p !== null) {
|
2160
|
+
var v = p.split(".");
|
2161
|
+
v.length === 3 && v[0] === l && v[2] === "ack" && c.push(new t(l, v[1], s.keys));
|
2162
|
+
}
|
2163
|
+
}
|
2164
|
+
return c;
|
2165
|
+
}(this.name)), this._schedule.run(this._checkReclaim, this.timeouts.RECLAIM_TIMER, i.Modes.RESCHEDULE);
|
2166
|
+
}, u.prototype._reclaim = function(s) {
|
2167
|
+
var l = this, c = new t(this.name, s, this.keys), d = { queue: this._store.get(this.keys.QUEUE) || [] }, f = { inProgress: c.get(this.keys.IN_PROGRESS) || {}, queue: c.get(this.keys.QUEUE) || [] }, p = [], v = function(m, O) {
|
2168
|
+
n(function(h) {
|
2169
|
+
var y = h.id || e();
|
2170
|
+
p.indexOf(y) >= 0 ? l.emit("duplication", h.item, h.attemptNumber) : (d.queue.push({ item: h.item, attemptNumber: h.attemptNumber + O, time: l._schedule.now(), id: y }), p.push(y));
|
2171
|
+
}, m);
|
2172
|
+
};
|
2173
|
+
v(f.queue, 0), v(f.inProgress, 1), d.queue = d.queue.sort(function(m, O) {
|
2174
|
+
return m.time - O.time;
|
2175
|
+
}), this._store.set(this.keys.QUEUE, d.queue);
|
2176
|
+
try {
|
2177
|
+
this._clearOtherQueue(c, 1);
|
2178
|
+
} catch (m) {
|
2179
|
+
if (m.name === "NS_ERROR_STORAGE_BUSY" || m.code === "NS_ERROR_STORAGE_BUSY" || m.code === 2153971713) try {
|
2180
|
+
this._clearOtherQueue(c, 40);
|
2181
|
+
} catch (O) {
|
2182
|
+
console.error(O);
|
2183
|
+
}
|
2184
|
+
else console.error(m);
|
2185
|
+
}
|
2186
|
+
this._processHead();
|
2187
|
+
}, u.prototype._clearOtherQueue = function(s, l) {
|
2188
|
+
var c = this;
|
2189
|
+
setTimeout(function() {
|
2190
|
+
s.remove(c.keys.IN_PROGRESS), setTimeout(function() {
|
2191
|
+
s.remove(c.keys.QUEUE), setTimeout(function() {
|
2192
|
+
s.remove(c.keys.RECLAIM_START), setTimeout(function() {
|
2193
|
+
s.remove(c.keys.RECLAIM_END), setTimeout(function() {
|
2194
|
+
s.remove(c.keys.ACK);
|
2195
|
+
}, l);
|
2196
|
+
}, l);
|
2197
|
+
}, l);
|
2198
|
+
}, l);
|
2199
|
+
}, l);
|
2200
|
+
}, ai = u;
|
2201
|
+
}(), Fi = me(La), ci = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 10, maxItems: 100 }, Ma = function() {
|
2202
|
+
return G(function e() {
|
2203
|
+
N(this, e), this.url = "", this.writeKey = "";
|
2204
|
+
}, [{ key: "init", value: function(e, t, n) {
|
2205
|
+
var i = this;
|
2206
|
+
this.url = t, this.writeKey = e, n && Ke(ci, n), this.payloadQueue = new Fi("rudder", ci, function(o, a) {
|
2207
|
+
o.message.sentAt = At(), i.processQueueElement(o.url, o.headers, o.message, 3e4, function(u, s) {
|
2208
|
+
if (u) return a(u);
|
2209
|
+
a(null, s);
|
2210
|
+
});
|
2211
|
+
}), this.payloadQueue.start();
|
2212
|
+
} }, { key: "processQueueElement", value: function(e, t, n, i, o) {
|
2213
|
+
try {
|
2214
|
+
var a = new XMLHttpRequest();
|
2215
|
+
for (var u in a.open("POST", e, !0), t) a.setRequestHeader(u, t[u]);
|
2216
|
+
a.timeout = i, a.ontimeout = o, a.onerror = o, a.onreadystatechange = function() {
|
2217
|
+
if (a.readyState === 4) if (a.status === 429 || a.status >= 500 && a.status < 600) {
|
2218
|
+
var l = "".concat(Kn, ' "').concat(a.status, '" status text: "').concat(a.statusText, '" for URL: "').concat(e, '"'), c = new Error(l);
|
2219
|
+
M(c), o(c);
|
2220
|
+
} else o(null, a.status);
|
2221
|
+
};
|
2222
|
+
var s = ge(n, !0);
|
2223
|
+
s ? a.send(s) : D.error("Invalid payload: Event dropped");
|
2224
|
+
} catch (l) {
|
2225
|
+
o(l);
|
2226
|
+
}
|
2227
|
+
} }, { key: "enqueue", value: function(e, t) {
|
2228
|
+
var n = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(this.writeKey, ":"))), AnonymousId: btoa(e.anonymousId) };
|
2229
|
+
this.payloadQueue.addItem({ url: "".concat(this.url, "/v1/").concat(t), headers: n, message: e });
|
2230
|
+
} }]);
|
2231
|
+
}(), Ba = "queue", Fa = 64e3, Na = function() {
|
2232
|
+
return G(function e() {
|
2233
|
+
N(this, e), this.storage = pt, this.maxItems = 10, this.flushQueueTimeOut = void 0, this.timeOutActive = !1, this.flushQueueTimeOutInterval = 6e5, this.url = "", this.writekey = "", this.queueName = "".concat(Ba, ".").concat(Date.now());
|
2234
|
+
}, [{ key: "sendQueueDataForBeacon", value: function() {
|
2235
|
+
this.sendDataFromQueueAndDestroyQueue();
|
2236
|
+
} }, { key: "init", value: function(e, t, n) {
|
2237
|
+
this.url = t, this.writekey = e, n.maxItems && (this.maxItems = n.maxItems), n.flushQueueInterval && (this.flushQueueTimeOutInterval = n.flushQueueInterval), this.sendQueueDataForBeacon = this.sendQueueDataForBeacon.bind(this), this.attachListeners();
|
2238
|
+
} }, { key: "attachListeners", value: function() {
|
2239
|
+
var e = this;
|
2240
|
+
window.addEventListener("visibilitychange", function() {
|
2241
|
+
document.visibilityState === "hidden" && e.sendQueueDataForBeacon();
|
2242
|
+
});
|
2243
|
+
} }, { key: "getQueue", value: function() {
|
2244
|
+
return this.storage.get(this.queueName);
|
2245
|
+
} }, { key: "setQueue", value: function(e) {
|
2246
|
+
this.storage.set(this.queueName, e);
|
2247
|
+
} }, { key: "enqueue", value: function(e) {
|
2248
|
+
var t = this.getQueue() || [];
|
2249
|
+
(t = t.slice(-(this.maxItems - 1))).push(e);
|
2250
|
+
var n = t.slice(0), i = { batch: n, sentAt: At() }, o = ge(i, !0);
|
2251
|
+
o && o.length > Fa && (n = t.slice(0, t.length - 1), this.flushQueue(n), (t = this.getQueue()).push(e)), this.setQueue(t), this.setTimer(), t.length === this.maxItems && this.flushQueue(n);
|
2252
|
+
} }, { key: "sendDataFromQueueAndDestroyQueue", value: function() {
|
2253
|
+
this.sendDataFromQueue(), this.storage.remove(this.queueName);
|
2254
|
+
} }, { key: "sendDataFromQueue", value: function() {
|
2255
|
+
var e = this.getQueue();
|
2256
|
+
if (e && e.length > 0) {
|
2257
|
+
var t = e.slice(0, e.length);
|
2258
|
+
this.flushQueue(t);
|
2259
|
+
}
|
2260
|
+
} }, { key: "flushQueue", value: function(e) {
|
2261
|
+
if (e && e.length > 0) {
|
2262
|
+
var t = At();
|
2263
|
+
e.forEach(function(a) {
|
2264
|
+
a.sentAt = t;
|
2265
|
+
});
|
2266
|
+
var n = ge({ batch: e, sentAt: t }, !0);
|
2267
|
+
if (n !== null) {
|
2268
|
+
var i = new Blob([n], { type: "text/plain" }), o = "".concat(this.url, "?writeKey=").concat(this.writekey);
|
2269
|
+
try {
|
2270
|
+
typeof navigator.sendBeacon != "function" && M(new Error("Beacon API is not supported by browser")), navigator.sendBeacon(o, i) || M(new Error("Unable to queue data to browser's beacon queue"));
|
2271
|
+
} catch (a) {
|
2272
|
+
a.message = "".concat(a.message, " - While sending Beacon data to: ").concat(o), M(a);
|
2273
|
+
}
|
2274
|
+
} else D.error("Invalid payload: Event dropped");
|
2275
|
+
}
|
2276
|
+
this.setQueue([]), this.clearTimer();
|
2277
|
+
} }, { key: "setTimer", value: function() {
|
2278
|
+
this.timeOutActive || (this.flushQueueTimeOut = setTimeout(this.sendDataFromQueue.bind(this), this.flushQueueTimeOutInterval), this.timeOutActive = !0);
|
2279
|
+
} }, { key: "clearTimer", value: function() {
|
2280
|
+
this.timeOutActive && (clearTimeout(this.flushQueueTimeOut), this.timeOutActive = !1);
|
2281
|
+
} }]);
|
2282
|
+
}(), Ga = function() {
|
2283
|
+
return G(function e() {
|
2284
|
+
N(this, e), this.queue = void 0;
|
2285
|
+
}, [{ key: "initialize", value: function(e, t, n) {
|
2286
|
+
var i = {}, o = kt(t);
|
2287
|
+
n != null && n.useBeacon && navigator.sendBeacon ? (n.beaconQueueOptions && n.beaconQueueOptions != null && L(n.beaconQueueOptions) === "object" && (i = n.beaconQueueOptions), o = "".concat(o, "/beacon/v1/batch"), this.queue = new Na()) : (n != null && n.useBeacon && D.info("[EventRepository] sendBeacon feature not available in this browser :: fallback to XHR"), n != null && n.queueOptions && n.queueOptions != null && L(n.queueOptions) === "object" && (i = n.queueOptions), this.queue = new Ma()), this.queue.init(e, o, i);
|
2288
|
+
} }, { key: "enqueue", value: function(e, t) {
|
2289
|
+
var n = e.getElementContent();
|
2290
|
+
n.originalTimestamp = n.originalTimestamp || At(), n.sentAt = At();
|
2291
|
+
var i = ge(n, !0);
|
2292
|
+
i && i.length > 32e3 && D.error("[EventRepository] enqueue:: message length greater 32 Kb ", n), this.queue.enqueue(n, t);
|
2293
|
+
} }]);
|
2294
|
+
}(), Ua = new Ga(), fi = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 1 / 0 }, ja = function() {
|
2295
|
+
return G(function e() {
|
2296
|
+
N(this, e), this.callback = void 0, this.processQueueElements = !1;
|
2297
|
+
}, [{ key: "init", value: function(e, t) {
|
2298
|
+
var n = this;
|
2299
|
+
e && Ke(fi, e), t && (this.callback = t), this.payloadQueue = new Fi("rs_events", fi, function(i, o) {
|
2300
|
+
n.processQueueElement(i.type, i.rudderElement, function(a, u) {
|
2301
|
+
if (a) return o(a);
|
2302
|
+
o(null, u);
|
2303
|
+
});
|
2304
|
+
}), this.payloadQueue.start();
|
2305
|
+
} }, { key: "activateProcessor", value: function() {
|
2306
|
+
this.processQueueElements = !0;
|
2307
|
+
} }, { key: "processQueueElement", value: function(e, t, n) {
|
2308
|
+
try {
|
2309
|
+
this.processQueueElements ? (Object.setPrototypeOf(t, Mi.prototype), this.callback(e, t), n(null)) : n(new Error("The queue elements are not ready to be processed yet"));
|
2310
|
+
} catch (i) {
|
2311
|
+
n(i);
|
2312
|
+
}
|
2313
|
+
} }, { key: "enqueue", value: function(e, t) {
|
2314
|
+
this.payloadQueue.addItem({ type: e, rudderElement: t });
|
2315
|
+
} }]);
|
2316
|
+
}(), Ha = function(e) {
|
2317
|
+
for (var t = function() {
|
2318
|
+
for (var o, a = [], u = 0; u < 256; u++) {
|
2319
|
+
o = u;
|
2320
|
+
for (var s = 0; s < 8; s++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
2321
|
+
a[u] = o;
|
2322
|
+
}
|
2323
|
+
return a;
|
2324
|
+
}(), n = -1, i = 0; i < e.length; i++) n = n >>> 8 ^ t[255 & (n ^ e.charCodeAt(i))];
|
2325
|
+
return ~n >>> 0;
|
2326
|
+
}, di = { getUserLanguage: function() {
|
2327
|
+
return navigator && navigator.language;
|
2328
|
+
}, getUserAgent: function() {
|
2329
|
+
return navigator && navigator.userAgent;
|
2330
|
+
} };
|
2331
|
+
function qa() {
|
2332
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
2333
|
+
return e = e.endsWith("..") ? e.substr(0, e.length - 2) : e, decodeURIComponent(atob(e).split("").map(function(t) {
|
2334
|
+
return "%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2));
|
2335
|
+
}).join(""));
|
2336
|
+
}
|
2337
|
+
var Ka = /^[\w.-]+$/, Qa = 1, za = 1, vt = "*";
|
2338
|
+
function Va(e, t, n, i) {
|
2339
|
+
var o = function(s, l) {
|
2340
|
+
return [s, (/* @__PURE__ */ new Date()).getTimezoneOffset(), l].join(vt);
|
2341
|
+
}(n, i), a = t || 0, u = Math.floor(Date.now() / 6e4) - a;
|
2342
|
+
return Ha([o, u, e].join(vt)).toString(36);
|
2343
|
+
}
|
2344
|
+
function $a(e) {
|
2345
|
+
var t = function(o) {
|
2346
|
+
var a = o.split(vt), u = a.length % 2 == 0;
|
2347
|
+
return a.length < 4 || !u || Number(a.shift()) !== za ? null : { checksum: a.shift(), serializedIds: a.join(vt) };
|
2348
|
+
}(e);
|
2349
|
+
if (!t) return null;
|
2350
|
+
var n = t.checksum, i = t.serializedIds;
|
2351
|
+
return function(o, a) {
|
2352
|
+
for (var u = di.getUserAgent(), s = di.getUserLanguage(), l = 0; l <= Qa; l += 1) if (Va(o, l, u, s) === a) return !0;
|
2353
|
+
return !1;
|
2354
|
+
}(i, n) ? function(o) {
|
2355
|
+
for (var a = {}, u = o.split(vt), s = 0; s < u.length; s += 2) {
|
2356
|
+
var l = u[s];
|
2357
|
+
if (Ka.test(l)) {
|
2358
|
+
var c = qa(u[s + 1]);
|
2359
|
+
a[l] = c;
|
2360
|
+
}
|
2361
|
+
}
|
2362
|
+
return a;
|
2363
|
+
}(i) : null;
|
2364
|
+
}
|
2365
|
+
var Xa = function() {
|
2366
|
+
return G(function e() {
|
2367
|
+
var t = this;
|
2368
|
+
if (N(this, e), r(this, "isInitialized", !1), window.OneTrust && window.OnetrustActiveGroups) {
|
2369
|
+
this.userSetConsentGroupIds = window.OnetrustActiveGroups.split(",").filter(function(i) {
|
2370
|
+
return i;
|
2371
|
+
});
|
2372
|
+
var n = window.OneTrust.GetDomainData().Groups;
|
2373
|
+
this.userSetConsentGroupNames = [], this.userDeniedConsentGroupIds = [], n.forEach(function(i) {
|
2374
|
+
var o = i.CustomGroupId, a = i.GroupName;
|
2375
|
+
t.userSetConsentGroupIds.includes(o) ? t.userSetConsentGroupNames.push(a.toUpperCase().trim()) : t.userDeniedConsentGroupIds.push(o);
|
2376
|
+
}), this.userSetConsentGroupIds = this.userSetConsentGroupIds.map(function(i) {
|
2377
|
+
return i.toUpperCase();
|
2378
|
+
}), this.isInitialized = !0;
|
2379
|
+
} else D.error("OneTrust resources are not accessible.");
|
2380
|
+
}, [{ key: "isEnabled", value: function(e) {
|
2381
|
+
var t = this;
|
2382
|
+
try {
|
2383
|
+
if (!this.isInitialized) return !0;
|
2384
|
+
var n = e.oneTrustCookieCategories;
|
2385
|
+
if (!n) return !0;
|
2386
|
+
var i = n.map(function(o) {
|
2387
|
+
return o.oneTrustCookieCategory;
|
2388
|
+
}).filter(function(o) {
|
2389
|
+
return o;
|
2390
|
+
});
|
2391
|
+
return i.every(function(o) {
|
2392
|
+
return t.userSetConsentGroupIds.includes(o.toUpperCase().trim()) || t.userSetConsentGroupNames.includes(o.toUpperCase().trim());
|
2393
|
+
});
|
2394
|
+
} catch (o) {
|
2395
|
+
return D.error("Error during onetrust cookie consent management ".concat(o)), !0;
|
2396
|
+
}
|
2397
|
+
} }, { key: "getDeniedList", value: function() {
|
2398
|
+
return this.isInitialized ? this.userDeniedConsentGroupIds : [];
|
2399
|
+
} }]);
|
2400
|
+
}(), Wa = function() {
|
2401
|
+
return G(function e() {
|
2402
|
+
var t = this;
|
2403
|
+
if (N(this, e), r(this, "updatePurposes", function(i) {
|
2404
|
+
i && Object.entries(i).forEach(function(o) {
|
2405
|
+
var a = o[0];
|
2406
|
+
o[1] ? t.userConsentedPurposes.push(a) : t.userDeniedPurposes.push(a);
|
2407
|
+
});
|
2408
|
+
}), this.userConsentedPurposes = [], this.userDeniedPurposes = [], window.updateKetchConsent = function(i) {
|
2409
|
+
i && (t.userConsentedPurposes = [], t.userDeniedPurposes = [], t.updatePurposes(i));
|
2410
|
+
}, window.getKetchUserConsentedPurposes = function() {
|
2411
|
+
return t.userConsentedPurposes.slice();
|
2412
|
+
}, window.getKetchUserDeniedPurposes = function() {
|
2413
|
+
return t.userDeniedPurposes.slice();
|
2414
|
+
}, window.ketchConsent) this.updatePurposes(window.ketchConsent);
|
2415
|
+
else {
|
2416
|
+
var n = this.getConsent();
|
2417
|
+
this.updatePurposes(n);
|
2418
|
+
}
|
2419
|
+
}, [{ key: "isEnabled", value: function(e) {
|
2420
|
+
var t = this;
|
2421
|
+
try {
|
2422
|
+
var n = e.ketchConsentPurposes;
|
2423
|
+
if (!n || n.length === 0) return !0;
|
2424
|
+
var i = n.map(function(o) {
|
2425
|
+
return o.purpose;
|
2426
|
+
}).filter(function(o) {
|
2427
|
+
return o;
|
2428
|
+
});
|
2429
|
+
return i.some(function(o) {
|
2430
|
+
return t.userConsentedPurposes.includes(o.trim());
|
2431
|
+
});
|
2432
|
+
} catch (o) {
|
2433
|
+
return D.error("Error occured checking ketch consent state ".concat(o)), !0;
|
2434
|
+
}
|
2435
|
+
} }, { key: "getDeniedList", value: function() {
|
2436
|
+
return this.userDeniedPurposes;
|
2437
|
+
} }, { key: "getConsent", value: function() {
|
2438
|
+
var e = ht.get("_ketch_consent_v1_");
|
2439
|
+
if (e) {
|
2440
|
+
var t;
|
2441
|
+
try {
|
2442
|
+
t = JSON.parse(atob(e));
|
2443
|
+
} catch (i) {
|
2444
|
+
return void D.error("Error occurred while parsing consent cookie ".concat(i));
|
2445
|
+
}
|
2446
|
+
if (t) {
|
2447
|
+
var n = {};
|
2448
|
+
return Object.entries(t).forEach(function(i) {
|
2449
|
+
var o = i[0], a = i[1];
|
2450
|
+
a != null && a.status && (n[o] = a.status === "granted");
|
2451
|
+
}), n;
|
2452
|
+
}
|
2453
|
+
}
|
2454
|
+
} }]);
|
2455
|
+
}(), Ya = function(e) {
|
2456
|
+
var t, n;
|
2457
|
+
return e != null && (t = e.oneTrust) !== null && t !== void 0 && t.enabled ? new Xa() : e != null && (n = e.ketch) !== null && n !== void 0 && n.enabled ? new Wa() : null;
|
2458
|
+
}, Ja = function() {
|
2459
|
+
return G(function e() {
|
2460
|
+
N(this, e), this.storage = sn, this.timeout = 18e5, this.sessionInfo = this.storage.getSessionInfo() || { autoTrack: !0 };
|
2461
|
+
}, [{ key: "initialize", value: function(e) {
|
2462
|
+
try {
|
2463
|
+
var t;
|
2464
|
+
if (this.sessionInfo.autoTrack = !((e == null || (t = e.sessions) === null || t === void 0 ? void 0 : t.autoTrack) === !1 || this.sessionInfo.manualTrack), e != null && e.sessions && !isNaN(e.sessions.timeout)) {
|
2465
|
+
var n = e.sessions.timeout;
|
2466
|
+
n === 0 && (D.warn("[Session]:: Provided timeout value 0 will disable the auto session tracking feature."), this.sessionInfo.autoTrack = !1), n > 0 && n < 1e4 && D.warn('[Session]:: It is not advised to set "timeout" less than 10 seconds'), this.timeout = n;
|
2467
|
+
}
|
2468
|
+
this.sessionInfo.autoTrack ? this.startAutoTracking() : this.sessionInfo.autoTrack !== !1 || this.sessionInfo.manualTrack || this.end();
|
2469
|
+
} catch (i) {
|
2470
|
+
M(i);
|
2471
|
+
}
|
2472
|
+
} }, { key: "isValidSession", value: function(e) {
|
2473
|
+
return e <= this.sessionInfo.expiresAt;
|
2474
|
+
} }, { key: "generateSessionId", value: function() {
|
2475
|
+
return Date.now();
|
2476
|
+
} }, { key: "startAutoTracking", value: function() {
|
2477
|
+
var e = Date.now();
|
2478
|
+
this.isValidSession(e) || (this.sessionInfo = {}, this.sessionInfo.id = e, this.sessionInfo.expiresAt = e + this.timeout, this.sessionInfo.sessionStart = !0, this.sessionInfo.autoTrack = !0), this.storage.setSessionInfo(this.sessionInfo);
|
2479
|
+
} }, { key: "validateSessionId", value: function(e) {
|
2480
|
+
if (typeof e == "number" && e % 1 == 0) {
|
2481
|
+
var t;
|
2482
|
+
if (!(((t = e) ? t.toString().length : 0) < 10)) return e;
|
2483
|
+
D.error('[Session]:: "sessionId" should at least be "'.concat(10, '" digits long'));
|
2484
|
+
} else D.error('[Session]:: "sessionId" should only be a positive integer');
|
2485
|
+
} }, { key: "start", value: function(e) {
|
2486
|
+
var t = e ? this.validateSessionId(e) : this.generateSessionId();
|
2487
|
+
this.sessionInfo = { id: t || this.generateSessionId(), sessionStart: !0, manualTrack: !0 }, this.storage.setSessionInfo(this.sessionInfo);
|
2488
|
+
} }, { key: "getSessionId", value: function() {
|
2489
|
+
return this.sessionInfo.autoTrack && this.isValidSession(Date.now()) || this.sessionInfo.manualTrack ? this.sessionInfo.id : null;
|
2490
|
+
} }, { key: "end", value: function() {
|
2491
|
+
this.sessionInfo = {}, this.storage.removeSessionInfo();
|
2492
|
+
} }, { key: "getSessionInfo", value: function() {
|
2493
|
+
var e = {};
|
2494
|
+
if (this.sessionInfo.autoTrack || this.sessionInfo.manualTrack) {
|
2495
|
+
if (this.sessionInfo.autoTrack) {
|
2496
|
+
var t = Date.now();
|
2497
|
+
this.isValidSession(t) ? this.sessionInfo.expiresAt = t + this.timeout : this.startAutoTracking();
|
2498
|
+
}
|
2499
|
+
this.sessionInfo.sessionStart && (e.sessionStart = !0, this.sessionInfo.sessionStart = !1), e.sessionId = this.sessionInfo.id, this.storage.setSessionInfo(this.sessionInfo);
|
2500
|
+
}
|
2501
|
+
return e;
|
2502
|
+
} }, { key: "reset", value: function() {
|
2503
|
+
var e = this.sessionInfo, t = e.manualTrack;
|
2504
|
+
e.autoTrack ? (this.sessionInfo = {}, this.startAutoTracking()) : t && this.start();
|
2505
|
+
} }]);
|
2506
|
+
}(), Za = new Ja(), hi = ["integrations", "anonymousId", "originalTimestamp"], eu = function(e, t, n) {
|
2507
|
+
var i = "";
|
2508
|
+
if (n) {
|
2509
|
+
if (!(i = kt(n))) {
|
2510
|
+
var o = "CDN base URL for integrations is not valid";
|
2511
|
+
throw M({ message: "[Analytics] load:: ".concat(o) }), Error("Failed to load Rudder SDK: ".concat(o));
|
2512
|
+
}
|
2513
|
+
return i;
|
2514
|
+
}
|
2515
|
+
var a = function() {
|
2516
|
+
for (var s, l = document.getElementsByTagName("script"), c = 0; c < l.length; c += 1) {
|
2517
|
+
var d = kt(l[c].getAttribute("src"));
|
2518
|
+
if (d && d.match(/^.*rudder-analytics?(\.min)?\.js$/)) {
|
2519
|
+
s = d;
|
2520
|
+
break;
|
2521
|
+
}
|
2522
|
+
}
|
2523
|
+
return { sdkURL: s };
|
2524
|
+
}(), u = a.sdkURL;
|
2525
|
+
return i = u ? u.split("/").slice(0, -1).concat(Ti).join("/") : Ri, t && (i = i.replace(wi, e)), i;
|
2526
|
+
}, an = "rs-bugsnag", on = "bugsnag", tu = ["Bugsnag", on], Nn = "0d96a60df267f4a13f808bbaa54e535c", nu = ["rudder-analytics.min.js", "rudder-analytics.js"].concat(xe(Object.keys(He).map(function(e) {
|
2527
|
+
return "".concat(He[e], ".min.js");
|
2528
|
+
})), xe(Object.keys(He).map(function(e) {
|
2529
|
+
return "".concat(He[e], ".js");
|
2530
|
+
}))), pi = function(e) {
|
2531
|
+
var t, n = e == null || (t = e._client) === null || t === void 0 || (t = t._notifier) === null || t === void 0 ? void 0 : t.version;
|
2532
|
+
if (!n) {
|
2533
|
+
var i, o = e({ apiKey: Nn, releaseStage: "version-test", beforeSend: function() {
|
2534
|
+
return !1;
|
2535
|
+
} });
|
2536
|
+
n = (i = o.notifier) === null || i === void 0 ? void 0 : i.version, o = void 0;
|
2537
|
+
}
|
2538
|
+
return n && n.charAt(0) === "6";
|
2539
|
+
}, ru = function(e) {
|
2540
|
+
tu.every(function(t) {
|
2541
|
+
return !function(n, i) {
|
2542
|
+
if (n == null) throw new TypeError("Cannot convert undefined or null to object");
|
2543
|
+
return Object.prototype.hasOwnProperty.call(Object(n), i);
|
2544
|
+
}(window, t);
|
2545
|
+
}) && tn(e, "https://d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js", { isNonNativeSDK: "true", skipDatasetAttributes: !0 });
|
2546
|
+
}, iu = function() {
|
2547
|
+
return G(function e(t, n, i) {
|
2548
|
+
N(this, e), this.pluginName = an, this.sourceId = t, this.writeKey = n, this.onClientReady = i, this.initClientOnLibReadyInterval = void 0, this.init();
|
2549
|
+
}, [{ key: "init", value: function() {
|
2550
|
+
var e, t = this;
|
2551
|
+
if (((e = window.RudderStackGlobals) === null || e === void 0 || !e[Qn]) && !Nn.match(/{{.+}}/)) {
|
2552
|
+
ru(this.pluginName);
|
2553
|
+
var n = window[on];
|
2554
|
+
typeof n != "function" ? (this.initClientOnLibReadyInterval = setInterval(function() {
|
2555
|
+
var i = window[on];
|
2556
|
+
typeof i == "function" && (pi(i) && t.initClient(), clearInterval(t.initClientOnLibReadyInterval));
|
2557
|
+
}, 100), setTimeout(function() {
|
2558
|
+
clearInterval(t.initClientOnLibReadyInterval);
|
2559
|
+
}, en)) : pi(n) && this.initClient();
|
2560
|
+
}
|
2561
|
+
} }, { key: "initClient", value: function() {
|
2562
|
+
var e, t = window[on];
|
2563
|
+
this.client = t({ apiKey: Nn, appVersion: "2.48.44", metaData: { SDK: { name: "JS", installType: "npm" } }, beforeSend: this.onError(), autoTrackSessions: !1, collectUserIp: !1, enabledBreadcrumbTypes: ["error", "log", "user"], maxEvents: 100, releaseStage: (e = window.location.hostname, e && ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"].includes(e) ? "development" : "production"), networkBreadcrumbsEnabled: !1, user: { id: this.writeKey } }), this.onClientReady();
|
2564
|
+
} }, { key: "onError", value: function() {
|
2565
|
+
var e = this.sourceId;
|
2566
|
+
return function(t) {
|
2567
|
+
try {
|
2568
|
+
return !!function(n) {
|
2569
|
+
var i = bt(n, "stacktrace.0.file");
|
2570
|
+
if (!i || typeof i != "string") return !1;
|
2571
|
+
var o = i.substring(i.lastIndexOf("/") + 1);
|
2572
|
+
return nu.includes(o);
|
2573
|
+
}(t) && (function(n, i) {
|
2574
|
+
n.updateMetaData("source", { metadataSource: i });
|
2575
|
+
var o = n.errorMessage;
|
2576
|
+
n.context = o, o.includes("error in script loading") && (n.context = "Script load failures"), n.severity = "error";
|
2577
|
+
}(t, e), !0);
|
2578
|
+
} catch {
|
2579
|
+
return !1;
|
2580
|
+
}
|
2581
|
+
};
|
2582
|
+
} }, { key: "notify", value: function(e) {
|
2583
|
+
this.client && this.client.notify(e);
|
2584
|
+
} }, { key: "leaveBreadcrumb", value: function(e) {
|
2585
|
+
this.client && this.client.leaveBreadcrumb(e);
|
2586
|
+
} }]);
|
2587
|
+
}(), gi = an, mi = [an], ou = function() {
|
2588
|
+
return G(function e(t) {
|
2589
|
+
N(this, e), this.isEnabled = !1, this.providerName = gi, this.provider = void 0, this.logger = t, this.onClientReady = this.onClientReady.bind(this), this.exposeToGlobal = this.exposeToGlobal.bind(this);
|
2590
|
+
}, [{ key: "init", value: function(e, t, n) {
|
2591
|
+
e && t ? function(i) {
|
2592
|
+
return bt(i, "statsCollection.errors.enabled") || !1;
|
2593
|
+
}(e) === !0 ? (this.enable(), this.setProviderName(function(i) {
|
2594
|
+
return bt(i, "statsCollection.errors.provider");
|
2595
|
+
}(e)), this.initProvider(e, t, n)) : this.disable() : this.logger.error("[Analytics] ErrorReporting :: Invalid configuration or missing source id provided.");
|
2596
|
+
} }, { key: "enable", value: function() {
|
2597
|
+
this.isEnabled = !0;
|
2598
|
+
} }, { key: "disable", value: function() {
|
2599
|
+
this.isEnabled = !1;
|
2600
|
+
} }, { key: "setProviderName", value: function(e) {
|
2601
|
+
e ? !e || mi.includes(e) ? this.providerName = e : this.logger.error("[Analytics] ErrorReporting :: Invalid error reporting provider value. Value should be one of: ".concat(mi.join(","))) : this.providerName = gi;
|
2602
|
+
} }, { key: "initProvider", value: function(e, t, n) {
|
2603
|
+
this.providerName === an && (this.provider = new iu(t, n, this.onClientReady));
|
2604
|
+
} }, { key: "onClientReady", value: function() {
|
2605
|
+
this.exposeToGlobal();
|
2606
|
+
} }, { key: "exposeToGlobal", value: function() {
|
2607
|
+
window.RudderStackGlobals || (window.RudderStackGlobals = {}), window.RudderStackGlobals[Qn] = this;
|
2608
|
+
} }, { key: "leaveBreadcrumb", value: function(e) {
|
2609
|
+
if (this.provider) try {
|
2610
|
+
this.provider.leaveBreadcrumb(e);
|
2611
|
+
} catch (t) {
|
2612
|
+
this.logger.error("[Analytics] ErrorReporting :: leaveBreadcrumb method ".concat(t.toString()));
|
2613
|
+
}
|
2614
|
+
} }, { key: "notify", value: function(e) {
|
2615
|
+
if (this.provider) try {
|
2616
|
+
this.provider.notify(e);
|
2617
|
+
} catch (t) {
|
2618
|
+
this.logger.error("[Analytics] ErrorReporting :: notify method ".concat(t.toString()));
|
2619
|
+
}
|
2620
|
+
} }]);
|
2621
|
+
}(), su = new (function() {
|
2622
|
+
return G(function e() {
|
2623
|
+
N(this, e), this.retryAttempt = 3, this.queue = [], this.isTransformationProcessing = !1, this.authToken = null;
|
2624
|
+
}, [{ key: "init", value: function(e, t, n) {
|
2625
|
+
this.dataPlaneUrl = kt(t), this.writeKey = e, this.authToken = n || this.authToken, this.start();
|
2626
|
+
} }, { key: "enqueue", value: function(e, t, n) {
|
2627
|
+
this.queue.push({ event: e, destinationIds: t, cb: n });
|
2628
|
+
} }, { key: "sendEventForTransformation", value: function(e, t) {
|
2629
|
+
var n = this;
|
2630
|
+
return new Promise(function(i, o) {
|
2631
|
+
var a = "".concat(n.dataPlaneUrl, "/transform"), u = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(n.writeKey, ":"))) };
|
2632
|
+
try {
|
2633
|
+
var s = new XMLHttpRequest();
|
2634
|
+
s.open("POST", a, !0), Object.keys(u).forEach(function(c) {
|
2635
|
+
return s.setRequestHeader(c, u[c]);
|
2636
|
+
}), s.timeout = 1e4, s.onreadystatechange = function() {
|
2637
|
+
if (s.readyState === 4) try {
|
2638
|
+
var c = s.status, d = s.response;
|
2639
|
+
switch (c) {
|
2640
|
+
case 200:
|
2641
|
+
return d = JSON.parse(d), void i({ status: c, transformedPayload: d.transformedBatch });
|
2642
|
+
case 400:
|
2643
|
+
var f = d ? "".concat(d) : "Invalid request payload";
|
2644
|
+
return void i({ status: c, errorMessage: f });
|
2645
|
+
case 404:
|
2646
|
+
return void i({ status: c });
|
2647
|
+
default:
|
2648
|
+
if (t > 0) {
|
2649
|
+
var p = t - 1;
|
2650
|
+
setTimeout(function() {
|
2651
|
+
return n.sendEventForTransformation(e, p).then(i).catch(o);
|
2652
|
+
}, 500 * Math.pow(2, n.retryAttempt - p));
|
2653
|
+
} else i({ status: c, errorMessage: "Retries exhausted" });
|
2654
|
+
}
|
2655
|
+
} catch (v) {
|
2656
|
+
o(v);
|
2657
|
+
}
|
2658
|
+
};
|
2659
|
+
var l = ge(e, !0);
|
2660
|
+
l ? s.send(l) : D.error("Invalid payload: Event dropped");
|
2661
|
+
} catch (c) {
|
2662
|
+
o(c);
|
2663
|
+
}
|
2664
|
+
});
|
2665
|
+
} }, { key: "checkQueueLengthAndProcess", value: function() {
|
2666
|
+
this.queue.length > 0 && this.process();
|
2667
|
+
} }, { key: "process", value: function() {
|
2668
|
+
var e = this;
|
2669
|
+
this.isTransformationProcessing = !0;
|
2670
|
+
var t, n, i = this.queue.shift(), o = (t = i.event, n = i.destinationIds, { metadata: { "Custom-Authorization": this.authToken }, batch: [{ orderNo: Date.now(), destinationIds: n, event: t.message }] });
|
2671
|
+
this.sendEventForTransformation(o, this.retryAttempt).then(function(a) {
|
2672
|
+
e.isTransformationProcessing = !1, i.cb(a), e.checkQueueLengthAndProcess();
|
2673
|
+
}).catch(function(a) {
|
2674
|
+
M(typeof a == "string" ? a : a.message), e.isTransformationProcessing = !1, i.cb({ status: 0 }), e.checkQueueLengthAndProcess();
|
2675
|
+
});
|
2676
|
+
} }, { key: "start", value: function() {
|
2677
|
+
var e = this;
|
2678
|
+
setInterval(function() {
|
2679
|
+
e.isTransformationProcessing || e.checkQueueLengthAndProcess();
|
2680
|
+
}, 100);
|
2681
|
+
} }, { key: "setAuthToken", value: function(e) {
|
2682
|
+
this.authToken = e;
|
2683
|
+
} }]);
|
2684
|
+
}())(), au = function() {
|
2685
|
+
return G(function e() {
|
2686
|
+
N(this, e), this.initialized = !1, this.clientIntegrations = [], this.loadOnlyIntegrations = {}, this.clientIntegrationObjects = void 0, this.successfullyLoadedIntegration = [], this.failedToBeLoadedIntegration = [], this.toBeProcessedArray = [], this.toBeProcessedByIntegrationArray = [], this.storage = sn, this.eventRepository = Ua, this.preProcessQueue = new ja(), this.sendAdblockPage = !1, this.sendAdblockPageOptions = {}, this.clientSuppliedCallbacks = {}, this.readyCallbacks = [], this.methodToCallbackMapping = { syncPixel: "syncPixelCallback" }, this.loaded = !1, this.loadIntegration = !0, this.bufferDataPlaneEventsUntilReady = !1, this.dataPlaneEventsBufferTimeout = 1e4, this.integrationsData = {}, this.dynamicallyLoadedIntegrations = {}, this.destSDKBaseURL = Ri, this.cookieConsentOptions = {}, this.logLevel = void 0, this.clientIntegrationsReady = !1, this.uSession = Za, this.version = "2.48.44", this.lockIntegrationsVersion = !1, this.errorReporting = new ou(D), this.deniedConsentIds = [], this.transformationHandler = su;
|
2687
|
+
}, [{ key: "initializeUser", value: function(e) {
|
2688
|
+
this.userId = this.storage.getUserId() || "", this.storage.setUserId(this.userId), this.userTraits = {};
|
2689
|
+
var t = this.storage.getUserTraits();
|
2690
|
+
t === null || L(t) !== "object" || Array.isArray(t) || (this.userTraits = t), this.storage.setUserTraits(this.userTraits), this.groupId = this.storage.getGroupId() || "", this.storage.setGroupId(this.groupId), this.groupTraits = {};
|
2691
|
+
var n = this.storage.getGroupTraits();
|
2692
|
+
n === null || L(n) !== "object" || Array.isArray(n) || (this.groupTraits = n), this.storage.setGroupTraits(this.groupTraits), this.anonymousId = this.getAnonymousId(e), this.storage.setAnonymousId(this.anonymousId);
|
2693
|
+
} }, { key: "setInitialPageProperties", value: function() {
|
2694
|
+
if (this.storage.getInitialReferrer() == null && this.storage.getInitialReferringDomain() == null) {
|
2695
|
+
var e = xi();
|
2696
|
+
this.storage.setInitialReferrer(e), this.storage.setInitialReferringDomain(Li(e));
|
2697
|
+
}
|
2698
|
+
} }, { key: "allModulesInitialized", value: function() {
|
2699
|
+
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
2700
|
+
return new Promise(function(n) {
|
2701
|
+
e.clientIntegrations.every(function(i) {
|
2702
|
+
return e.dynamicallyLoadedIntegrations["".concat(He[i.name]).concat("_RS")] != null;
|
2703
|
+
}) || t >= 2e4 ? n(e) : e.pause(Xt).then(function() {
|
2704
|
+
return e.allModulesInitialized(t + Xt).then(n);
|
2705
|
+
});
|
2706
|
+
});
|
2707
|
+
} }, { key: "executeReadyCallback", value: function() {
|
2708
|
+
this.readyCallbacks.forEach(function(e) {
|
2709
|
+
return e();
|
2710
|
+
});
|
2711
|
+
} }, { key: "integrationSDKLoaded", value: function(e, t) {
|
2712
|
+
var n;
|
2713
|
+
return ((n = window[e]) === null || n === void 0 || (n = n[t]) === null || n === void 0 ? void 0 : n.prototype) && window[e][t].prototype.constructor !== void 0;
|
2714
|
+
} }, { key: "processResponse", value: function(e, t) {
|
2715
|
+
var n, i = this;
|
2716
|
+
try {
|
2717
|
+
var o = t;
|
2718
|
+
try {
|
2719
|
+
if (typeof t == "string" && (o = JSON.parse(t)), !o || L(o) !== "object" || Array.isArray(o)) return void D.error("Invalid source configuration");
|
2720
|
+
} catch (s) {
|
2721
|
+
return void M(s);
|
2722
|
+
}
|
2723
|
+
try {
|
2724
|
+
(n = window.chrome) !== null && n !== void 0 && (n = n.runtime) !== null && n !== void 0 && n.id || this.errorReporting.init(o.source.config, o.source.id, this.writeKey);
|
2725
|
+
} catch (s) {
|
2726
|
+
M(s);
|
2727
|
+
}
|
2728
|
+
if (this.serverUrl = _a(o, this.serverUrl, this.options), this.eventRepository.initialize(this.writeKey, this.serverUrl, this.options), this.transformationHandler.init(this.writeKey, this.serverUrl, this.storage.getAuthToken()), o.source.destinations.forEach(function(s) {
|
2729
|
+
s.enabled && this.clientIntegrations.push({ name: s.destinationDefinition.name, config: s.config, destinationInfo: { shouldApplyDeviceModeTransformation: s.shouldApplyDeviceModeTransformation || !1, propagateEventsUntransformedOnError: s.propagateEventsUntransformedOnError || !1, destinationId: s.id } });
|
2730
|
+
}, this), this.clientIntegrations = Pn(this.loadOnlyIntegrations, this.clientIntegrations), Object.keys(this.cookieConsentOptions).length > 0) try {
|
2731
|
+
var a = Ya(this.cookieConsentOptions);
|
2732
|
+
this.deniedConsentIds = a == null ? void 0 : a.getDeniedList(), this.clientIntegrations = this.clientIntegrations.filter(function(s) {
|
2733
|
+
return !a || a && a.isEnabled(s.config);
|
2734
|
+
});
|
2735
|
+
} catch (s) {
|
2736
|
+
M(s);
|
2737
|
+
}
|
2738
|
+
this.loaded = !0, this.options && typeof this.options.onLoaded == "function" && this.options.onLoaded(this), function(s) {
|
2739
|
+
if (s.toBeProcessedArray.length > 0) for (; s.toBeProcessedArray.length > 0; ) {
|
2740
|
+
var l = xe(s.toBeProcessedArray[0]);
|
2741
|
+
s.toBeProcessedArray.shift();
|
2742
|
+
var c = l[0];
|
2743
|
+
l.shift(), s[c].apply(s, xe(l));
|
2744
|
+
}
|
2745
|
+
}(this), this.clientIntegrations = this.clientIntegrations.filter(function(s) {
|
2746
|
+
return !!He[s.name] || (D.error("[Analytics] Integration:: ".concat(s.name, " not available for initialization")), !1);
|
2747
|
+
}), this.bufferDataPlaneEventsUntilReady && setTimeout(function() {
|
2748
|
+
i.processBufferedCloudModeEvents();
|
2749
|
+
}, this.dataPlaneEventsBufferTimeout), this.errorReporting.leaveBreadcrumb("Starting device-mode initialization"), this.clientIntegrations.forEach(function(s) {
|
2750
|
+
var l = He[s.name], c = "".concat(l).concat("_RS"), d = "".concat(i.destSDKBaseURL, "/").concat(l, ".min.js");
|
2751
|
+
window.hasOwnProperty(c) || tn(c, d, { isNonNativeSDK: !0 });
|
2752
|
+
var f = i, p = setInterval(function() {
|
2753
|
+
if (f.integrationSDKLoaded(c, l)) {
|
2754
|
+
var v, m = window[c];
|
2755
|
+
clearInterval(p);
|
2756
|
+
try {
|
2757
|
+
var O = "[Analytics] processResponse :: trying to initialize integration name:: ".concat(c);
|
2758
|
+
i.errorReporting.leaveBreadcrumb(O), (v = new m[l](s.config, f, s.destinationInfo)).init(), f.isInitialized(v).then(function() {
|
2759
|
+
f.dynamicallyLoadedIntegrations[c] = m[l];
|
2760
|
+
});
|
2761
|
+
} catch (y) {
|
2762
|
+
var h = "[Analytics] 'integration.init()' failed :: ".concat(c, " :: ").concat(y.message);
|
2763
|
+
M(y, h), f.failedToBeLoadedIntegration.push(v);
|
2764
|
+
}
|
2765
|
+
}
|
2766
|
+
}, 100);
|
2767
|
+
setTimeout(function() {
|
2768
|
+
clearInterval(p);
|
2769
|
+
}, en);
|
2770
|
+
});
|
2771
|
+
var u = this;
|
2772
|
+
this.allModulesInitialized().then(function() {
|
2773
|
+
if (!u.clientIntegrations || u.clientIntegrations.length === 0) return i.clientIntegrationsReady = !0, i.executeReadyCallback(), void (i.toBeProcessedByIntegrationArray = []);
|
2774
|
+
u.replayEvents(u);
|
2775
|
+
});
|
2776
|
+
} catch (s) {
|
2777
|
+
M(s);
|
2778
|
+
}
|
2779
|
+
} }, { key: "sendDataToDestination", value: function(e, t, n) {
|
2780
|
+
try {
|
2781
|
+
if (e[n]) {
|
2782
|
+
var i = U(t);
|
2783
|
+
e[n](i);
|
2784
|
+
}
|
2785
|
+
} catch (a) {
|
2786
|
+
var o = "[sendToNative]:: [Destination: ".concat(e.name, "]:: ");
|
2787
|
+
M(a, o);
|
2788
|
+
}
|
2789
|
+
} }, { key: "sendTransformedDataToDestination", value: function(e, t, n) {
|
2790
|
+
var i = this;
|
2791
|
+
try {
|
2792
|
+
Qr(t.message.integrations);
|
2793
|
+
var o = e.map(function(a) {
|
2794
|
+
return a.destinationId;
|
2795
|
+
});
|
2796
|
+
this.transformationHandler.enqueue(t, o, function(a) {
|
2797
|
+
var u = a.status, s = a.transformedPayload, l = a.errorMessage;
|
2798
|
+
e.forEach(function(c) {
|
2799
|
+
try {
|
2800
|
+
switch (u) {
|
2801
|
+
case 200:
|
2802
|
+
var d = s.find(function(p) {
|
2803
|
+
return p.id === c.destinationId;
|
2804
|
+
}), f = [];
|
2805
|
+
d == null || d.payload.forEach(function(p) {
|
2806
|
+
if (p.status === "200") f.push(p);
|
2807
|
+
else {
|
2808
|
+
var v = '[DMT]:: Event transformation unsuccessful for destination "'.concat(c.name, '". Reason: '), m = "Unknown";
|
2809
|
+
p.status === "410" && (m = "Transformation is not available");
|
2810
|
+
var O = "Dropping the event", h = D.error;
|
2811
|
+
c.propagateEventsUntransformedOnError === !0 && (O = "Sending untransformed event to the destination", h = D.warn, f.push({ event: t.message })), h("".concat(v, " ").concat(m, ". ").concat(O, "."));
|
2812
|
+
}
|
2813
|
+
}), f == null || f.forEach(function(p) {
|
2814
|
+
ya(p.event) && i.sendDataToDestination(c, { message: p.event }, n);
|
2815
|
+
});
|
2816
|
+
break;
|
2817
|
+
case 404:
|
2818
|
+
D.warn("[DMT]:: Transformation server access is denied. The configuration data seems to be out of sync. Sending untransformed event to the destination."), i.sendDataToDestination(c, t, n);
|
2819
|
+
break;
|
2820
|
+
default:
|
2821
|
+
c.propagateEventsUntransformedOnError === !0 ? (D.warn("[DMT]::[Destination: ".concat(c.name, "] :: Transformation request failed with status: ").concat(u, " ").concat(l, ". Sending untransformed event.")), i.sendDataToDestination(c, t, n)) : D.error("[DMT]::[Destination: ".concat(c.name, "] :: Transformation request failed with status: ").concat(u, " ").concat(l, ". Dropping the event."));
|
2822
|
+
}
|
2823
|
+
} catch (p) {
|
2824
|
+
p instanceof Error && (p.message = "[DMT]::[Destination:".concat(c.name, "]:: ").concat(p.message)), M(p);
|
2825
|
+
}
|
2826
|
+
});
|
2827
|
+
});
|
2828
|
+
} catch (a) {
|
2829
|
+
a instanceof Error && (a.message = "[DMT]:: ".concat(a.message)), M(a);
|
2830
|
+
}
|
2831
|
+
} }, { key: "processAndSendEventsToDeviceMode", value: function(e, t, n) {
|
2832
|
+
var i = this, o = [], a = [];
|
2833
|
+
e.forEach(function(u) {
|
2834
|
+
try {
|
2835
|
+
!i.IsEventBlackListed(t.message.event, u.name) && (u.shouldApplyDeviceModeTransformation ? a.push(u) : o.push(u));
|
2836
|
+
} catch (s) {
|
2837
|
+
M(s);
|
2838
|
+
}
|
2839
|
+
}), o.forEach(function(u) {
|
2840
|
+
i.sendDataToDestination(u, t, n);
|
2841
|
+
}), a.length > 0 && this.sendTransformedDataToDestination(a, t, n);
|
2842
|
+
} }, { key: "queueEventForDataPlane", value: function(e, t) {
|
2843
|
+
var n = t.message.integrations || { All: !0 };
|
2844
|
+
t.message.integrations = function(i, o) {
|
2845
|
+
var a = U(i), u = Object.keys(o).filter(function(s) {
|
2846
|
+
return !(o[s] === !0 && a[s]);
|
2847
|
+
}).reduce(function(s, l) {
|
2848
|
+
return s[l] = o[l], s;
|
2849
|
+
}, {});
|
2850
|
+
return gt(a, u);
|
2851
|
+
}(this.integrationsData, n), this.eventRepository.enqueue(t, e);
|
2852
|
+
} }, { key: "processBufferedCloudModeEvents", value: function() {
|
2853
|
+
this.bufferDataPlaneEventsUntilReady && this.preProcessQueue.activateProcessor();
|
2854
|
+
} }, { key: "replayEvents", value: function(e) {
|
2855
|
+
var t, n, i, o = this;
|
2856
|
+
this.errorReporting.leaveBreadcrumb("Started replaying buffered events"), e.clientIntegrationObjects = [], e.clientIntegrationObjects = e.successfullyLoadedIntegration;
|
2857
|
+
try {
|
2858
|
+
e.clientIntegrationObjects.every(function(a) {
|
2859
|
+
return !a.isReady || a.isReady();
|
2860
|
+
}) && (this.integrationsData = (t = this.integrationsData, n = e.clientIntegrationObjects, i = U(t), n.forEach(function(a) {
|
2861
|
+
if (a.getDataForIntegrationsObject) try {
|
2862
|
+
i = gt(i, a.getDataForIntegrationsObject());
|
2863
|
+
} catch (u) {
|
2864
|
+
D.debug("[Analytics: prepareDataForIntegrationsObj]", u);
|
2865
|
+
}
|
2866
|
+
}), i), e.clientIntegrationsReady = !0, e.executeReadyCallback());
|
2867
|
+
} catch (a) {
|
2868
|
+
M(a, "Replay buffered cloud mode events");
|
2869
|
+
}
|
2870
|
+
this.processBufferedCloudModeEvents(), e.toBeProcessedByIntegrationArray.forEach(function(a) {
|
2871
|
+
var u = a[0];
|
2872
|
+
a.shift(), Object.keys(a[0].message.integrations).length > 0 && Rn(a[0].message.integrations);
|
2873
|
+
var s = Pn(a[0].message.integrations, e.clientIntegrationObjects);
|
2874
|
+
o.processAndSendEventsToDeviceMode(s, a[0], u);
|
2875
|
+
}), e.toBeProcessedByIntegrationArray = [];
|
2876
|
+
} }, { key: "pause", value: function(e) {
|
2877
|
+
return new Promise(function(t) {
|
2878
|
+
setTimeout(t, e);
|
2879
|
+
});
|
2880
|
+
} }, { key: "isInitialized", value: function(e) {
|
2881
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
2882
|
+
return new Promise(function(i) {
|
2883
|
+
e.isLoaded() ? (t.successfullyLoadedIntegration.push(e), i(t)) : n >= en ? (t.failedToBeLoadedIntegration.push(e), i(t)) : t.pause(Xt).then(function() {
|
2884
|
+
return t.isInitialized(e, n + Xt).then(i);
|
2885
|
+
});
|
2886
|
+
});
|
2887
|
+
} }, { key: "page", value: function(e, t, n, i, o) {
|
2888
|
+
if (this.errorReporting.leaveBreadcrumb("Page event"), this.loaded) {
|
2889
|
+
typeof i == "function" && (o = i, i = null), typeof n == "function" && (o = n, i = n = null), typeof t == "function" && (o = t, i = n = t = null), typeof e == "function" && (o = e, i = n = t = e = null), L(e) === "object" && e != null && e != null && (i = t, n = e, t = e = null), L(t) === "object" && t != null && t != null && (i = n, n = t, t = null), typeof e == "string" && typeof t != "string" && (t = e, e = null), this.sendAdblockPage && e !== "RudderJS-Initiated" && this.sendSampleRequest();
|
2890
|
+
var a = U(n), u = U(i), s = new dt().setType("page").build();
|
2891
|
+
a || (a = {}), t && (s.message.name = a.name = t), e && (s.message.category = a.category = e), s.message.properties = this.getPageProperties(a), this.processAndSendDataToDestinations("page", s, u, o);
|
2892
|
+
} else this.toBeProcessedArray.push(["page"].concat(Array.prototype.slice.call(arguments)));
|
2893
|
+
} }, { key: "track", value: function(e, t, n, i) {
|
2894
|
+
if (this.errorReporting.leaveBreadcrumb("Track event"), this.loaded) {
|
2895
|
+
typeof n == "function" && (i = n, n = null), typeof t == "function" && (i = t, n = null, t = null);
|
2896
|
+
var o = U(t), a = U(n), u = new dt().setType("track").build();
|
2897
|
+
e && u.setEventName(e), u.setProperty(o || {}), this.processAndSendDataToDestinations("track", u, a, i);
|
2898
|
+
} else this.toBeProcessedArray.push(["track"].concat(Array.prototype.slice.call(arguments)));
|
2899
|
+
} }, { key: "identify", value: function(e, t, n, i) {
|
2900
|
+
if (this.errorReporting.leaveBreadcrumb("Identify event"), this.loaded) {
|
2901
|
+
typeof n == "function" && (i = n, n = null), typeof t == "function" && (i = t, n = null, t = null), L(e) === "object" && (n = t, t = e, e = this.userId);
|
2902
|
+
var o = Jt(e);
|
2903
|
+
o && this.userId && o !== this.userId && this.reset(), this.userId = o, this.storage.setUserId(this.userId);
|
2904
|
+
var a = U(t), u = U(n);
|
2905
|
+
if (a) {
|
2906
|
+
for (var s in a) this.userTraits[s] = a[s];
|
2907
|
+
this.storage.setUserTraits(this.userTraits);
|
2908
|
+
}
|
2909
|
+
var l = new dt().setType("identify").build();
|
2910
|
+
this.processAndSendDataToDestinations("identify", l, u, i);
|
2911
|
+
} else this.toBeProcessedArray.push(["identify"].concat(Array.prototype.slice.call(arguments)));
|
2912
|
+
} }, { key: "alias", value: function(e, t, n, i) {
|
2913
|
+
if (this.errorReporting.leaveBreadcrumb("Alias event"), this.loaded) {
|
2914
|
+
typeof n == "function" && (i = n, n = null), typeof t == "function" && (i = t, n = null, t = null), typeof e == "function" && (i = e, n = null, t = null, e = null), L(t) === "object" && (n = t, t = null), L(e) === "object" && (n = e, t = null, e = null);
|
2915
|
+
var o = new dt().setType("alias").build();
|
2916
|
+
o.message.previousId = Jt(t) || (this.userId ? this.userId : this.getAnonymousId()), o.message.userId = Jt(e);
|
2917
|
+
var a = U(n);
|
2918
|
+
this.processAndSendDataToDestinations("alias", o, a, i);
|
2919
|
+
} else this.toBeProcessedArray.push(["alias"].concat(Array.prototype.slice.call(arguments)));
|
2920
|
+
} }, { key: "group", value: function(e, t, n, i) {
|
2921
|
+
if (this.errorReporting.leaveBreadcrumb("Group event"), this.loaded) {
|
2922
|
+
if (arguments.length !== 0) {
|
2923
|
+
typeof n == "function" && (i = n, n = null), typeof t == "function" && (i = t, n = null, t = null), L(e) === "object" && (n = t, t = e, e = this.groupId), typeof e == "function" && (i = e, n = null, t = null, e = this.groupId), this.groupId = Jt(e), this.storage.setGroupId(this.groupId);
|
2924
|
+
var o = U(t), a = U(n), u = new dt().setType("group").build();
|
2925
|
+
if (o) for (var s in o) this.groupTraits[s] = o[s];
|
2926
|
+
else this.groupTraits = {};
|
2927
|
+
this.storage.setGroupTraits(this.groupTraits), this.processAndSendDataToDestinations("group", u, a, i);
|
2928
|
+
}
|
2929
|
+
} else this.toBeProcessedArray.push(["group"].concat(Array.prototype.slice.call(arguments)));
|
2930
|
+
} }, { key: "IsEventBlackListed", value: function(e, t) {
|
2931
|
+
if (!e || typeof e != "string") return !1;
|
2932
|
+
var n = Ii[t], i = this.clientIntegrations.find(function(l) {
|
2933
|
+
return l.name === n;
|
2934
|
+
}).config, o = i.blacklistedEvents, a = i.whitelistedEvents, u = i.eventFilteringOption;
|
2935
|
+
if (!u) return !1;
|
2936
|
+
var s = e.trim().toUpperCase();
|
2937
|
+
switch (u) {
|
2938
|
+
case "disable":
|
2939
|
+
default:
|
2940
|
+
return !1;
|
2941
|
+
case "blacklistedEvents":
|
2942
|
+
return !!Array.isArray(o) && o.some(function(l) {
|
2943
|
+
return l.eventName.trim().toUpperCase() === s;
|
2944
|
+
});
|
2945
|
+
case "whitelistedEvents":
|
2946
|
+
return !Array.isArray(a) || !a.some(function(l) {
|
2947
|
+
return l.eventName.trim().toUpperCase() === s;
|
2948
|
+
});
|
2949
|
+
}
|
2950
|
+
} }, { key: "shouldUseGlobalIntegrationsConfigInEvents", value: function() {
|
2951
|
+
return this.useGlobalIntegrationsConfigInEvents && this.loadOnlyIntegrations && Object.keys(this.loadOnlyIntegrations).length > 0;
|
2952
|
+
} }, { key: "processAndSendDataToDestinations", value: function(e, t, n, i) {
|
2953
|
+
try {
|
2954
|
+
this.anonymousId || this.setAnonymousId(), this.errorReporting.leaveBreadcrumb("Started sending data to destinations"), t.message.context.traits = E({}, this.userTraits), t.message.anonymousId = this.anonymousId, t.message.userId = t.message.userId ? t.message.userId : this.userId, e == "group" && (this.groupId && (t.message.groupId = this.groupId), this.groupTraits && (t.message.traits = E({}, this.groupTraits)));
|
2955
|
+
try {
|
2956
|
+
var o = this.uSession.getSessionInfo(), a = o.sessionId, u = o.sessionStart;
|
2957
|
+
t.message.context.sessionId = a, u && (t.message.context.sessionStart = !0);
|
2958
|
+
} catch (p) {
|
2959
|
+
M(p);
|
2960
|
+
}
|
2961
|
+
d = this.cookieConsentOptions, f = !1, Object.keys(d).forEach(function(p) {
|
2962
|
+
Ia.includes(p) && typeof d[p].enabled == "boolean" && d[p].enabled === !0 && (f = !0);
|
2963
|
+
}), f && (t.message.context.consentManagement = { deniedConsentIds: this.deniedConsentIds || [] }), this.processOptionsParam(t, n), function(p, v) {
|
2964
|
+
var m = p.properties, O = p.traits, h = p.context;
|
2965
|
+
m && Object.keys(m).forEach(function(k) {
|
2966
|
+
wn.indexOf(k.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in properties--> ".concat(k, " with ").concat(v, " call"));
|
2967
|
+
}), O && Object.keys(O).forEach(function(k) {
|
2968
|
+
wn.indexOf(k.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits--> ".concat(k, " with ").concat(v, " call"));
|
2969
|
+
});
|
2970
|
+
var y = h.traits;
|
2971
|
+
y && Object.keys(y).forEach(function(k) {
|
2972
|
+
wn.indexOf(k.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits --> ".concat(k, " with ").concat(v, " call"));
|
2973
|
+
});
|
2974
|
+
}(t.message, e);
|
2975
|
+
var s = t.message.integrations;
|
2976
|
+
s ? Rn(s) : s = this.shouldUseGlobalIntegrationsConfigInEvents() ? this.loadOnlyIntegrations : Oa, t.message.integrations = s;
|
2977
|
+
try {
|
2978
|
+
t.message.context["ua-ch"] = this.uach;
|
2979
|
+
} catch (p) {
|
2980
|
+
M(p);
|
2981
|
+
}
|
2982
|
+
try {
|
2983
|
+
if (this.clientIntegrationObjects) {
|
2984
|
+
var l = Pn(s, this.clientIntegrationObjects);
|
2985
|
+
this.processAndSendEventsToDeviceMode(l, t, e);
|
2986
|
+
} else this.toBeProcessedByIntegrationArray.push([e, t]);
|
2987
|
+
} catch (p) {
|
2988
|
+
M(p, "processAndSendEventsToDeviceMode::");
|
2989
|
+
}
|
2990
|
+
var c = U(t);
|
2991
|
+
Qr(c.message.integrations), !this.bufferDataPlaneEventsUntilReady || this.clientIntegrationObjects ? this.queueEventForDataPlane(e, c) : this.preProcessQueue.enqueue(e, c), i && typeof i == "function" && i(c);
|
2992
|
+
} catch (p) {
|
2993
|
+
M(p);
|
2994
|
+
}
|
2995
|
+
var d, f;
|
2996
|
+
} }, { key: "utm", value: function(e) {
|
2997
|
+
var t = {};
|
2998
|
+
try {
|
2999
|
+
var n = new URL(e), i = "utm_";
|
3000
|
+
n.searchParams.forEach(function(o, a) {
|
3001
|
+
if (a.startsWith(i)) {
|
3002
|
+
var u = a.substring(4);
|
3003
|
+
u === "campaign" && (u = "name"), t[u] = o;
|
3004
|
+
}
|
3005
|
+
});
|
3006
|
+
} catch {
|
3007
|
+
}
|
3008
|
+
return t;
|
3009
|
+
} }, { key: "addCampaignInfo", value: function(e) {
|
3010
|
+
var t = e.message.context;
|
3011
|
+
t && L(t) === "object" && (e.message.context.campaign = this.utm(window.location.href));
|
3012
|
+
} }, { key: "processOptionsParam", value: function(e, t) {
|
3013
|
+
var n = e.message, i = n.type, o = n.properties;
|
3014
|
+
this.addCampaignInfo(e), e.message.context.page = this.getContextPageProperties(i === "page" ? o : void 0), function(a) {
|
3015
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
3016
|
+
L(u) === "object" && u !== null && Object.keys(u).forEach(function(s) {
|
3017
|
+
hi.includes(s) && (a[s] = u[s]);
|
3018
|
+
});
|
3019
|
+
}(e.message, t), e.message.context = function(a) {
|
3020
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = a.context;
|
3021
|
+
return L(u) !== "object" || u === null || Object.keys(u).forEach(function(l) {
|
3022
|
+
if (!hi.includes(l) && !Kr.includes(l)) if (l !== "context") s = gt(s, r({}, l, u[l]));
|
3023
|
+
else if (L(u[l]) === "object" && u[l] !== null) {
|
3024
|
+
var c = {};
|
3025
|
+
Object.keys(u[l]).forEach(function(d) {
|
3026
|
+
Kr.includes(d) || (c[d] = u[l][d]);
|
3027
|
+
}), s = gt(s, E({}, c));
|
3028
|
+
} else D.error("[Analytics: processOptionsParam] context passed in options ".concat(l, " is not object."));
|
3029
|
+
}), s;
|
3030
|
+
}(e.message, t);
|
3031
|
+
} }, { key: "getPageProperties", value: function(e, t) {
|
3032
|
+
var n = $r(), i = (t == null ? void 0 : t.page) || {};
|
3033
|
+
for (var o in n) e[o] === void 0 && (e[o] = i[o] || n[o]);
|
3034
|
+
return e;
|
3035
|
+
} }, { key: "getContextPageProperties", value: function(e) {
|
3036
|
+
var t = $r(), n = {};
|
3037
|
+
for (var i in t) n[i] = e != null && e[i] ? e[i] : t[i];
|
3038
|
+
return n;
|
3039
|
+
} }, { key: "reset", value: function(e) {
|
3040
|
+
this.errorReporting.leaveBreadcrumb("reset API :: flag: ".concat(e)), this.loaded ? (e && (this.anonymousId = ""), this.userId = "", this.userTraits = {}, this.groupId = "", this.groupTraits = {}, this.uSession.reset(), this.storage.clear(e)) : this.toBeProcessedArray.push(["reset", e]);
|
3041
|
+
} }, { key: "getAnonymousId", value: function(e) {
|
3042
|
+
return this.anonymousId = this.storage.getAnonymousId(e), this.anonymousId || this.setAnonymousId(), this.anonymousId;
|
3043
|
+
} }, { key: "getUserId", value: function() {
|
3044
|
+
return this.userId;
|
3045
|
+
} }, { key: "getSessionId", value: function() {
|
3046
|
+
return this.uSession.getSessionId();
|
3047
|
+
} }, { key: "getUserTraits", value: function() {
|
3048
|
+
return this.userTraits;
|
3049
|
+
} }, { key: "getGroupId", value: function() {
|
3050
|
+
return this.groupId;
|
3051
|
+
} }, { key: "getGroupTraits", value: function() {
|
3052
|
+
return this.groupTraits;
|
3053
|
+
} }, { key: "setAnonymousId", value: function(e, t) {
|
3054
|
+
var n = t ? $a(t) : null, i = n ? n.rs_amp_id : null;
|
3055
|
+
this.anonymousId = e || i || Pi(), this.storage.setAnonymousId(this.anonymousId);
|
3056
|
+
} }, { key: "isValidWriteKey", value: function(e) {
|
3057
|
+
return e && typeof e == "string" && e.trim().length > 0;
|
3058
|
+
} }, { key: "isValidServerUrl", value: function(e) {
|
3059
|
+
return e && typeof e == "string" && e.trim().length > 0;
|
3060
|
+
} }, { key: "isDatasetAvailable", value: function() {
|
3061
|
+
var e = document.createElement("div");
|
3062
|
+
return e.setAttribute("data-a-b", "c"), !!e.dataset && e.dataset.aB === "c";
|
3063
|
+
} }, { key: "loadAfterPolyfill", value: function(e, t, n) {
|
3064
|
+
var i, o, a, u, s, l, c, d, f, p, v, m = this;
|
3065
|
+
if (L(t) === "object" && t !== null && (n = t, t = null), (i = n) !== null && i !== void 0 && i.logLevel && (this.logLevel = n.logLevel, D.setLogLevel(n.logLevel)), !this.isValidWriteKey(e)) throw Error("Unable to load the SDK due to invalid writeKey");
|
3066
|
+
if (!this.storage || Object.keys(this.storage).length === 0) throw Error("Cannot proceed as no storage is available");
|
3067
|
+
(o = n) !== null && o !== void 0 && o.cookieConsentManager && (this.cookieConsentOptions = n.cookieConsentManager), this.writeKey = e, this.serverUrl = t, this.options = n;
|
3068
|
+
var O = {};
|
3069
|
+
if ((a = n) !== null && a !== void 0 && a.setCookieDomain && (O = E(E({}, O), {}, { domain: n.setCookieDomain })), n && typeof n.secureCookie == "boolean" && (O = E(E({}, O), {}, { secure: n.secureCookie })), n && typeof n.sameDomainCookiesOnly == "boolean" && (O = E(E({}, O), {}, { sameDomainCookiesOnly: n.sameDomainCookiesOnly })), n && ka.indexOf(n.sameSiteCookie) !== -1 && (O = E(E({}, O), {}, { samesite: n.sameSiteCookie })), this.storage.options(O), n && typeof n.uaChTrackLevel == "string" && Ea.includes(n.uaChTrackLevel) && (this.uaChTrackLevel = n.uaChTrackLevel), navigator.userAgentData && function(g) {
|
3070
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
3071
|
+
b === "none" && g(void 0), b === "default" && g(navigator.userAgentData), b === "full" && navigator.userAgentData.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then(function(A) {
|
3072
|
+
g(A);
|
3073
|
+
});
|
3074
|
+
}(function(g) {
|
3075
|
+
m.uach = g;
|
3076
|
+
}, this.uaChTrackLevel), (u = n) !== null && u !== void 0 && u.integrations && (Ke(this.loadOnlyIntegrations, n.integrations), Rn(this.loadOnlyIntegrations)), this.useGlobalIntegrationsConfigInEvents = n && n.useGlobalIntegrationsConfigInEvents === !0, (s = n) !== null && s !== void 0 && s.sendAdblockPage && (this.sendAdblockPage = !0), (l = n) !== null && l !== void 0 && l.sendAdblockPageOptions && L(n.sendAdblockPageOptions) === "object" && (this.sendAdblockPageOptions = n.sendAdblockPageOptions), this.uSession.initialize(n), (c = n) !== null && c !== void 0 && c.clientSuppliedCallbacks) {
|
3077
|
+
var h = {};
|
3078
|
+
Object.keys(this.methodToCallbackMapping).forEach(function(g) {
|
3079
|
+
m.methodToCallbackMapping.hasOwnProperty(g) && n.clientSuppliedCallbacks[m.methodToCallbackMapping[g]] && (h[g] = n.clientSuppliedCallbacks[m.methodToCallbackMapping[g]]);
|
3080
|
+
}), Ke(this.clientSuppliedCallbacks, h), this.registerCallbacks(!0);
|
3081
|
+
}
|
3082
|
+
if (((d = n) === null || d === void 0 ? void 0 : d.loadIntegration) != null && (this.loadIntegration = !!n.loadIntegration), n && typeof n.bufferDataPlaneEventsUntilReady == "boolean" && (this.bufferDataPlaneEventsUntilReady = n.bufferDataPlaneEventsUntilReady === !0, this.bufferDataPlaneEventsUntilReady && this.preProcessQueue.init(this.options, this.queueEventForDataPlane.bind(this))), n && typeof n.dataPlaneEventsBufferTimeout == "number" && (this.dataPlaneEventsBufferTimeout = n.dataPlaneEventsBufferTimeout), n && n.lockIntegrationsVersion !== void 0 && (this.lockIntegrationsVersion = n.lockIntegrationsVersion === !0), this.initializeUser(n ? n.anonymousIdOptions : void 0), this.setInitialPageProperties(), this.destSDKBaseURL = eu(this.version, this.lockIntegrationsVersion, (f = n) === null || f === void 0 ? void 0 : f.destSDKBaseURL), (p = n) !== null && p !== void 0 && p.getSourceConfig) if (typeof n.getSourceConfig != "function") M(new Error('option "getSourceConfig" must be a function'));
|
3083
|
+
else {
|
3084
|
+
var y = n.getSourceConfig();
|
3085
|
+
y instanceof Promise ? y.then(function(g) {
|
3086
|
+
return m.processResponse(200, g);
|
3087
|
+
}).catch(M) : this.processResponse(200, y);
|
3088
|
+
}
|
3089
|
+
else {
|
3090
|
+
var k = function(g, b) {
|
3091
|
+
var A = Tn, I = [];
|
3092
|
+
return g && I.push("writeKey=".concat(g)), b && I.push("lockIntegrationsVersion=".concat(b)), I.length > 0 && (A = (A = Tn.concat(Tn.includes("?") ? "&" : "?")).concat(I.join("&"))), A;
|
3093
|
+
}(e, this.lockIntegrationsVersion);
|
3094
|
+
(v = n) !== null && v !== void 0 && v.configUrl && (k = function(g, b) {
|
3095
|
+
var A = g;
|
3096
|
+
A.indexOf("sourceConfig") === -1 && (A = "".concat(kt(A), "/sourceConfig/")), A = A.slice(-1) === "/" ? A : "".concat(A, "/");
|
3097
|
+
var I = b.split("?")[1], T = A.split("?");
|
3098
|
+
return T.length > 1 && T[1] !== I ? "".concat(T[0], "?").concat(I) : "".concat(A, "?").concat(I);
|
3099
|
+
}(n.configUrl, k));
|
3100
|
+
try {
|
3101
|
+
(function(g, b, A, I) {
|
3102
|
+
var T = I.bind(g), R = new XMLHttpRequest();
|
3103
|
+
R.open("GET", b, !0), R.setRequestHeader("Authorization", "Basic ".concat(btoa("".concat(A, ":")))), R.onload = function() {
|
3104
|
+
var x = R.status, B = R.responseText;
|
3105
|
+
x === 200 ? T(200, B) : (M(new Error("".concat(Kn, " ").concat(x, " for url: ").concat(b))), T(x));
|
3106
|
+
}, R.send();
|
3107
|
+
})(this, k, e, this.processResponse);
|
3108
|
+
} catch (g) {
|
3109
|
+
M(g);
|
3110
|
+
}
|
3111
|
+
}
|
3112
|
+
} }, { key: "arePolyfillsRequired", value: function(e) {
|
3113
|
+
return (!e || typeof e.polyfillIfRequired != "boolean" || e.polyfillIfRequired) && (!String.prototype.endsWith || !String.prototype.startsWith || !String.prototype.includes || !Array.prototype.find || !Array.prototype.includes || typeof window.URL != "function" || typeof Promise > "u" || !Object.entries || !Object.values || !String.prototype.replaceAll || !this.isDatasetAvailable() || typeof TextDecoder != "function" || typeof TextEncoder != "function");
|
3114
|
+
} }, { key: "load", value: function(e, t, n) {
|
3115
|
+
if (!this.loaded) {
|
3116
|
+
var i = U(n);
|
3117
|
+
if (this.arePolyfillsRequired(i) && qr) {
|
3118
|
+
var o = "polyfill";
|
3119
|
+
tn(o, qr, { skipDatasetAttributes: !0 });
|
3120
|
+
var a = this, u = setInterval(function() {
|
3121
|
+
!window.hasOwnProperty(o) && document.getElementById(o) === null || typeof Promise > "u" || (clearInterval(u), a.loadAfterPolyfill(e, t, i));
|
3122
|
+
}, 100);
|
3123
|
+
setTimeout(function() {
|
3124
|
+
clearInterval(u);
|
3125
|
+
}, en);
|
3126
|
+
} else this.loadAfterPolyfill(e, t, i);
|
3127
|
+
}
|
3128
|
+
} }, { key: "ready", value: function(e) {
|
3129
|
+
this.loaded ? typeof e != "function" ? D.error("ready callback is not a function") : this.clientIntegrationsReady ? e() : this.readyCallbacks.push(e) : this.toBeProcessedArray.push(["ready", e]);
|
3130
|
+
} }, { key: "initializeCallbacks", value: function() {
|
3131
|
+
var e = this;
|
3132
|
+
Object.keys(this.methodToCallbackMapping).forEach(function(t) {
|
3133
|
+
e.methodToCallbackMapping.hasOwnProperty(t) && e.on(t, function() {
|
3134
|
+
});
|
3135
|
+
});
|
3136
|
+
} }, { key: "registerCallbacks", value: function(e) {
|
3137
|
+
var t = this;
|
3138
|
+
e || Object.keys(this.methodToCallbackMapping).forEach(function(n) {
|
3139
|
+
t.methodToCallbackMapping.hasOwnProperty(n) && window.rudderanalytics && typeof window.rudderanalytics[t.methodToCallbackMapping[n]] == "function" && (t.clientSuppliedCallbacks[n] = window.rudderanalytics[t.methodToCallbackMapping[n]]);
|
3140
|
+
}), Object.keys(this.clientSuppliedCallbacks).forEach(function(n) {
|
3141
|
+
t.clientSuppliedCallbacks.hasOwnProperty(n) && t.on(n, t.clientSuppliedCallbacks[n]);
|
3142
|
+
});
|
3143
|
+
} }, { key: "sendSampleRequest", value: function() {
|
3144
|
+
tn("ad-block", "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", { isNonNativeSDK: !0 });
|
3145
|
+
} }, { key: "startSession", value: function(e) {
|
3146
|
+
this.uSession.start(e);
|
3147
|
+
} }, { key: "endSession", value: function() {
|
3148
|
+
this.uSession.end();
|
3149
|
+
} }, { key: "setAuthToken", value: function(e) {
|
3150
|
+
typeof e == "string" ? (this.storage.setAuthToken(e), this.transformationHandler.setAuthToken(e)) : D.error("Provided input should be in string format");
|
3151
|
+
} }]);
|
3152
|
+
}(), P = new au();
|
3153
|
+
mo(P), window.addEventListener("error", function(e) {
|
3154
|
+
M(e, void 0, P);
|
3155
|
+
}, !0), P.initializeCallbacks(), P.registerCallbacks(!1);
|
3156
|
+
var mt, Ni = "load", Ue = window.rudderanalytics, Gi = Array.isArray(Ue);
|
3157
|
+
if (Gi) for (var rt = 0; rt < Ue.length; ) {
|
3158
|
+
if (Ue[rt] && Ue[rt][0] === Ni) {
|
3159
|
+
mt = Ue[rt], Ue.splice(rt, 1);
|
3160
|
+
break;
|
3161
|
+
}
|
3162
|
+
rt += 1;
|
3163
|
+
}
|
3164
|
+
(function(e) {
|
3165
|
+
var t = "ajs_trait_", n = "ajs_prop_";
|
3166
|
+
function i(a, u) {
|
3167
|
+
var s = {};
|
3168
|
+
return Object.keys(a).forEach(function(l) {
|
3169
|
+
l.startsWith(u) && (s[l.substr(u.length)] = a[l]);
|
3170
|
+
}), s;
|
3171
|
+
}
|
3172
|
+
var o = function(a) {
|
3173
|
+
var u = {};
|
3174
|
+
try {
|
3175
|
+
new URL(a).searchParams.forEach(function(s, l) {
|
3176
|
+
u[l] = s;
|
3177
|
+
});
|
3178
|
+
} catch {
|
3179
|
+
}
|
3180
|
+
return u;
|
3181
|
+
}(e);
|
3182
|
+
o.ajs_aid && P.toBeProcessedArray.push(["setAnonymousId", o.ajs_aid]), o.ajs_uid && P.toBeProcessedArray.push(["identify", o.ajs_uid, i(o, t)]), o.ajs_event && P.toBeProcessedArray.push(["track", o.ajs_event, i(o, n)]);
|
3183
|
+
})(window.location.href), Gi && Ue.forEach(function(e) {
|
3184
|
+
return P.toBeProcessedArray.push(e);
|
3185
|
+
}), mt && mt.length > 0 && (mt.shift(), P[Ni].apply(P, xe(mt)));
|
3186
|
+
P.ready.bind(P);
|
3187
|
+
P.identify.bind(P);
|
3188
|
+
P.page.bind(P);
|
3189
|
+
var uu = P.track.bind(P);
|
3190
|
+
P.alias.bind(P);
|
3191
|
+
P.group.bind(P);
|
3192
|
+
P.reset.bind(P);
|
3193
|
+
var lu = P.load.bind(P);
|
3194
|
+
P.initialized = !0;
|
3195
|
+
P.getUserId.bind(P);
|
3196
|
+
P.getSessionId.bind(P);
|
3197
|
+
P.getUserTraits.bind(P);
|
3198
|
+
P.getAnonymousId.bind(P);
|
3199
|
+
P.setAnonymousId.bind(P);
|
3200
|
+
P.getGroupId.bind(P);
|
3201
|
+
P.getGroupTraits.bind(P);
|
3202
|
+
P.startSession.bind(P);
|
3203
|
+
P.endSession.bind(P);
|
3204
|
+
P.setAuthToken.bind(P);
|
3205
|
+
const cu = {
|
3206
|
+
STAGING: "2R6llJi7YSuOeJToPXGlQfizt18",
|
3207
|
+
SANDBOX: "2R6mEpjiTJBErRIn724pt2MWyLA",
|
3208
|
+
LOCAL: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
|
3209
|
+
LIVE: "2R6mT9xSJCcbvr6JkiEu7vbrUSW"
|
3210
|
+
}, fu = "https://revolugohxxwg.dataplane.rudderstack.com", du = window.RevolugoElements.config.apiEnvironment, hu = cu[du];
|
3211
|
+
try {
|
3212
|
+
lu(hu, fu);
|
3213
|
+
} catch (e) {
|
3214
|
+
console.error(e);
|
3215
|
+
}
|
3216
|
+
const Ui = {
|
3217
|
+
startDate: {
|
3218
|
+
type: String
|
3219
|
+
},
|
3220
|
+
endDate: {
|
3221
|
+
type: String
|
3222
|
+
},
|
3223
|
+
roomCount: {
|
3224
|
+
type: Number
|
3225
|
+
},
|
3226
|
+
adultCount: {
|
3227
|
+
type: Number
|
3228
|
+
},
|
3229
|
+
location: {
|
3230
|
+
type: Object
|
3231
|
+
}
|
3232
|
+
}, pu = vi.extend({
|
3233
|
+
name: "ContactForm",
|
3234
|
+
components: {
|
3235
|
+
BSearchLocationInput: zi,
|
3236
|
+
BPhoneInput: Ji
|
3237
|
+
},
|
3238
|
+
mixins: [Gn("components/RevolugoElements/ContactForm")],
|
3239
|
+
props: Ui,
|
3240
|
+
data() {
|
3241
|
+
return {
|
3242
|
+
isFormValid: !1,
|
3243
|
+
isSubmitting: !1,
|
3244
|
+
isSuccess: !1,
|
3245
|
+
errorCode: "",
|
3246
|
+
menuStartDate: !1,
|
3247
|
+
menuEndDate: !1,
|
3248
|
+
formData: {
|
3249
|
+
email: "",
|
3250
|
+
phoneData: {
|
3251
|
+
phoneNumber: "",
|
3252
|
+
phoneCountry: "FR",
|
3253
|
+
phonePrefix: "+33"
|
3254
|
+
},
|
3255
|
+
startDate: this.startDate,
|
3256
|
+
endDate: this.endDate,
|
3257
|
+
adultCount: this.adultCount,
|
3258
|
+
roomCount: this.roomCount,
|
3259
|
+
location: this.location,
|
3260
|
+
specificRequest: ""
|
3261
|
+
},
|
3262
|
+
rules: {
|
3263
|
+
email: [
|
3264
|
+
(e) => Qe.required(e) || this.$t("ContactForm.errors.requiredEmail"),
|
3265
|
+
(e) => Qe.email(e) || this.$t("ContactForm.errors.invalidEmail")
|
3266
|
+
],
|
3267
|
+
adultCount: [
|
3268
|
+
(e) => Qe.minCount(e, 1) || this.$t("ContactForm.errors.minAdultCount"),
|
3269
|
+
(e) => Qe.maxCount(e, 400) || this.$t("ContactForm.errors.maxAdultCount")
|
3270
|
+
],
|
3271
|
+
roomCount: [
|
3272
|
+
(e) => Qe.minCount(e, 1) || this.$t("ContactForm.errors.minRoomCount"),
|
3273
|
+
(e) => Qe.maxCount(e, 100) || this.$t("ContactForm.errors.maxRoomCount")
|
3274
|
+
]
|
3275
|
+
}
|
3276
|
+
};
|
3277
|
+
},
|
3278
|
+
methods: {
|
3279
|
+
onSubmit() {
|
3280
|
+
var t;
|
3281
|
+
this.isSubmitting = !0;
|
3282
|
+
let e = "";
|
3283
|
+
(t = this.config) != null && t.eventMetadata && (e = this.config.eventMetadata.name, this.config.eventMetadata.slug && (e += ` ${this.config.eventMetadata.slug}`)), uu(
|
3284
|
+
"accommodation-request",
|
3285
|
+
{
|
3286
|
+
data: {
|
3287
|
+
...this.formData,
|
3288
|
+
event: e
|
3289
|
+
}
|
3290
|
+
},
|
3291
|
+
() => {
|
3292
|
+
this.isSuccess = !0, this.isSubmitting = !1, this.$emit("accommodationSuccess");
|
3293
|
+
}
|
3294
|
+
);
|
3295
|
+
}
|
3296
|
+
}
|
3297
|
+
});
|
3298
|
+
var gu = function() {
|
3299
|
+
var t = this, n = t._self._c;
|
3300
|
+
return t._self._setupProxy, n("div", [n(to, { model: { value: t.isFormValid, callback: function(i) {
|
3301
|
+
t.isFormValid = i;
|
3302
|
+
}, expression: "isFormValid" } }, [n(ot, { attrs: { dense: "", label: t.$t("ContactForm.email"), outlined: "", required: "", rules: t.rules.email }, scopedSlots: t._u([{ key: "message", fn: function({ message: i }) {
|
3303
|
+
return [t._v(" " + t._s(t.$t(i)) + " ")];
|
3304
|
+
} }]), model: { value: t.formData.email, callback: function(i) {
|
3305
|
+
t.$set(t.formData, "email", i);
|
3306
|
+
}, expression: "formData.email" } }), n("BPhoneInput", { staticClass: "mt-0", model: { value: t.formData.phoneData, callback: function(i) {
|
3307
|
+
t.$set(t.formData, "phoneData", i);
|
3308
|
+
}, expression: "formData.phoneData" } }), n(yt, { staticClass: "mt-0" }, [n(je, [n($n, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: i, attrs: o }) {
|
3309
|
+
return [n(ot, t._g(t._b({ attrs: { dense: "", "hide-details": "", label: t.$t("ContactForm.startDate"), outlined: "", readonly: "", required: "" }, model: { value: t.formData.startDate, callback: function(a) {
|
3310
|
+
t.$set(t.formData, "startDate", a);
|
3311
|
+
}, expression: "formData.startDate" } }, "VTextField", o, !1), i))];
|
3312
|
+
} }]), model: { value: t.menuStartDate, callback: function(i) {
|
3313
|
+
t.menuStartDate = i;
|
3314
|
+
}, expression: "menuStartDate" } }, [n(Xn, { on: { input: function(i) {
|
3315
|
+
t.menuStartDate = !1;
|
3316
|
+
} }, model: { value: t.formData.startDate, callback: function(i) {
|
3317
|
+
t.$set(t.formData, "startDate", i);
|
3318
|
+
}, expression: "formData.startDate" } })], 1)], 1), n(je, [n($n, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: i, attrs: o }) {
|
3319
|
+
return [n(ot, t._g(t._b({ attrs: { dense: "", "hide-details": "", label: t.$t("ContactForm.endDate"), outlined: "", readonly: "", required: "" }, model: { value: t.formData.endDate, callback: function(a) {
|
3320
|
+
t.$set(t.formData, "endDate", a);
|
3321
|
+
}, expression: "formData.endDate" } }, "VTextField", o, !1), i))];
|
3322
|
+
} }]), model: { value: t.menuEndDate, callback: function(i) {
|
3323
|
+
t.menuEndDate = i;
|
3324
|
+
}, expression: "menuEndDate" } }, [n(Xn, { on: { input: function(i) {
|
3325
|
+
t.menuEndDate = !1;
|
3326
|
+
} }, model: { value: t.formData.endDate, callback: function(i) {
|
3327
|
+
t.$set(t.formData, "endDate", i);
|
3328
|
+
}, expression: "formData.endDate" } })], 1)], 1)], 1), n(yt, [n(je, [n(ot, { attrs: { dense: "", label: t.$t("ContactForm.adultCount"), max: "400", min: "1", outlined: "", required: "", rules: t.rules.adultCount, type: "number" }, model: { value: t.formData.adultCount, callback: function(i) {
|
3329
|
+
t.$set(t.formData, "adultCount", i);
|
3330
|
+
}, expression: "formData.adultCount" } })], 1), n(je, [n(ot, { attrs: { dense: "", label: t.$t("ContactForm.roomCount"), max: "400", min: "1", outlined: "", required: "", rules: t.rules.roomCount, type: "number" }, model: { value: t.formData.roomCount, callback: function(i) {
|
3331
|
+
t.$set(t.formData, "roomCount", i);
|
3332
|
+
}, expression: "formData.roomCount" } })], 1)], 1), n("BSearchLocationInput", { attrs: { outlined: "", "with-details": "" }, model: { value: t.formData.location, callback: function(i) {
|
3333
|
+
t.$set(t.formData, "location", i);
|
3334
|
+
}, expression: "formData.location" } }), n(Zi, { attrs: { dense: "", label: t.$t("ContactForm.specificRequest"), outlined: "" }, model: { value: t.formData.specificRequest, callback: function(i) {
|
3335
|
+
t.$set(t.formData, "specificRequest", i);
|
3336
|
+
}, expression: "formData.specificRequest" } }), n("div", { staticClass: "d-flex justify-end" }, [n(jn, { attrs: { color: t.isSuccess ? "green" : "primary", "data-cy": "submit-button", "data-attr": "submit-button", disabled: !t.isFormValid || t.isSubmitting || t.isSuccess, loading: t.isSubmitting }, on: { click: function(i) {
|
3337
|
+
return t.onSubmit();
|
3338
|
+
} } }, [t._v(" " + t._s(t.$t("ContactForm.submit")) + " ")])], 1)], 1)], 1);
|
3339
|
+
}, mu = [], yu = /* @__PURE__ */ Un(
|
3340
|
+
pu,
|
3341
|
+
gu,
|
3342
|
+
mu,
|
3343
|
+
!1,
|
3344
|
+
null,
|
3345
|
+
null
|
3346
|
+
);
|
3347
|
+
const vu = yu.exports, bu = {
|
3348
|
+
...Ui,
|
3349
|
+
boilerplateSkeleton: {
|
3350
|
+
type: Boolean
|
3351
|
+
},
|
3352
|
+
itemCount: {
|
3353
|
+
type: Number,
|
3354
|
+
default: 3
|
3355
|
+
},
|
3356
|
+
type: {
|
3357
|
+
type: String
|
3358
|
+
},
|
3359
|
+
checkInDate: {
|
3360
|
+
type: String
|
3361
|
+
},
|
3362
|
+
checkOutDate: {
|
3363
|
+
type: String
|
3364
|
+
}
|
3365
|
+
}, ku = vi.extend({
|
3366
|
+
name: "HotelOfferListEmpty",
|
3367
|
+
components: {
|
3368
|
+
BErrorOverlay: eo,
|
3369
|
+
HotelOfferItemLayout: yi,
|
3370
|
+
ContactForm: vu
|
3371
|
+
},
|
3372
|
+
mixins: [Gn("components/RevolugoElements/HotelOfferListEmpty"), bi],
|
3373
|
+
props: bu,
|
3374
|
+
data() {
|
3375
|
+
return {
|
3376
|
+
typeData: this.type
|
3377
|
+
};
|
3378
|
+
},
|
3379
|
+
computed: {
|
3380
|
+
wording() {
|
3381
|
+
let e = {
|
3382
|
+
title: "",
|
3383
|
+
description: ""
|
3384
|
+
};
|
3385
|
+
if (this.typeData)
|
3386
|
+
switch (this.typeData) {
|
3387
|
+
case "internalError": {
|
3388
|
+
e = {
|
3389
|
+
title: this.$t("HotelOfferListEmpty.internalError.title"),
|
3390
|
+
description: this.$t(
|
3391
|
+
"HotelOfferListEmpty.internalError.description"
|
3392
|
+
)
|
3393
|
+
};
|
3394
|
+
break;
|
3395
|
+
}
|
3396
|
+
case "missingHotelOfferRequest": {
|
3397
|
+
e = {
|
3398
|
+
title: this.$t(
|
3399
|
+
"HotelOfferListEmpty.missingHotelOfferRequest.title"
|
3400
|
+
),
|
3401
|
+
description: this.$t(
|
3402
|
+
"HotelOfferListEmpty.missingHotelOfferRequest.description"
|
3403
|
+
)
|
3404
|
+
};
|
3405
|
+
break;
|
3406
|
+
}
|
3407
|
+
case "accommodationSuccess": {
|
3408
|
+
e = {
|
3409
|
+
title: this.$t("HotelOfferListEmpty.accommodationSuccess.title"),
|
3410
|
+
description: this.$t(
|
3411
|
+
"HotelOfferListEmpty.accommodationSuccess.description"
|
3412
|
+
)
|
3413
|
+
};
|
3414
|
+
break;
|
3415
|
+
}
|
3416
|
+
case "noResultsFiltered": {
|
3417
|
+
e = {
|
3418
|
+
title: this.$t("HotelOfferListEmpty.noResults.title"),
|
3419
|
+
description: this.$t(
|
3420
|
+
"HotelOfferListEmpty.noResultsFiltered.description"
|
3421
|
+
)
|
3422
|
+
};
|
3423
|
+
break;
|
3424
|
+
}
|
3425
|
+
default: {
|
3426
|
+
e = {
|
3427
|
+
title: this.$t("HotelOfferListEmpty.noResults.title"),
|
3428
|
+
description: this.$t("HotelOfferListEmpty.noResults.description")
|
3429
|
+
};
|
3430
|
+
break;
|
3431
|
+
}
|
3432
|
+
}
|
3433
|
+
return e;
|
3434
|
+
}
|
3435
|
+
},
|
3436
|
+
watch: {
|
3437
|
+
type: {
|
3438
|
+
immediate: !1,
|
3439
|
+
handler() {
|
3440
|
+
this.typeData = this.type;
|
3441
|
+
}
|
3442
|
+
}
|
3443
|
+
},
|
3444
|
+
methods: {
|
3445
|
+
onResetFilters() {
|
3446
|
+
this.$emit("reset-filters");
|
3447
|
+
}
|
3448
|
+
}
|
3449
|
+
});
|
3450
|
+
var Au = function() {
|
3451
|
+
var t = this, n = t._self._c;
|
3452
|
+
return t._self._setupProxy, n("div", { staticClass: "position-relative" }, [t._l(6, function(i) {
|
3453
|
+
return [n("HotelOfferItemLayout", { key: i, class: {
|
3454
|
+
"mt-0": i === 1,
|
3455
|
+
"mb-0": i === t.itemCount,
|
3456
|
+
"mb-2": t.$breakpointService.xs
|
3457
|
+
}, attrs: { boilerplate: t.boilerplateSkeleton } }), t.$breakpointService.xs ? t._e() : n(xn, { key: i + "-divider" })];
|
3458
|
+
}), t.typeData ? n("BErrorOverlay", { scopedSlots: t._u([{ key: "title", fn: function() {
|
3459
|
+
return [t._v(" " + t._s(t.wording.title) + " ")];
|
3460
|
+
}, proxy: !0 }, { key: "description", fn: function() {
|
3461
|
+
return [n("div", [n("p", [t._v(t._s(t.wording.description))]), t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? n("ContactForm", { attrs: { "adult-count": t.adultCount, "end-date": t.checkOutDate, location: t.location, "room-count": t.roomCount, "start-date": t.checkInDate }, on: { accommodationSuccess: function(i) {
|
3462
|
+
t.typeData = "accommodationSuccess";
|
3463
|
+
} } }) : t._e(), t.typeData === "noResultsFiltered" ? n(jn, { attrs: { color: "primary", outlined: "", small: "" }, on: { click: t.onResetFilters } }, [t._v(" " + t._s(t.$t("HotelOfferListEmpty.noResultsFiltered.reset")) + " ")]) : t._e()], 1)];
|
3464
|
+
}, proxy: !0 }], null, !1, 1236007322) }) : t._e()], 2);
|
3465
|
+
}, Iu = [], Eu = /* @__PURE__ */ Un(
|
3466
|
+
ku,
|
3467
|
+
Au,
|
3468
|
+
Iu,
|
3469
|
+
!1,
|
3470
|
+
null,
|
3471
|
+
null
|
3472
|
+
);
|
3473
|
+
const Ou = Eu.exports, _u = ao(
|
3474
|
+
Ki,
|
3475
|
+
ro({
|
3476
|
+
fallbackValue: {},
|
3477
|
+
propsName: "features"
|
3478
|
+
})
|
3479
|
+
).extend({
|
3480
|
+
name: "HotelOfferList",
|
3481
|
+
components: {
|
3482
|
+
BHotelOffersFilterBar: Xi,
|
3483
|
+
BHotelSearchBar: oo,
|
3484
|
+
HotelOfferItem: $i,
|
3485
|
+
HotelOfferItemLayout: yi,
|
3486
|
+
HotelOfferListEmpty: Ou,
|
3487
|
+
HotelRoomOfferList: io,
|
3488
|
+
TermsAndConditions: uo
|
3489
|
+
},
|
3490
|
+
mixins: [
|
3491
|
+
bi,
|
3492
|
+
Gn("components/RevolugoElements/HotelOfferList"),
|
3493
|
+
Vi,
|
3494
|
+
so(
|
3495
|
+
["bookingApiClient", "config.currency", "config.lang"],
|
3496
|
+
"retrieveHotelOffers"
|
3497
|
+
)
|
3498
|
+
],
|
3499
|
+
store: Hi,
|
3500
|
+
props: fo,
|
3501
|
+
computed: {
|
3502
|
+
areFiltersActive: Ae("hotelOffers/areFiltersActive"),
|
3503
|
+
hasErrorHotelOffers: Ae("hotelOffers/hasError"),
|
3504
|
+
hotelOffersCurrency: Ae(
|
3505
|
+
"hotelOffers/hotelOffersCurrency"
|
3506
|
+
),
|
3507
|
+
isPollingHotelOffers: Ae("hotelOffers/isPolling"),
|
3508
|
+
startingAfter: Ae("hotelOffers/startingAfter"),
|
3509
|
+
filters: Ae("hotelOffers/filters"),
|
3510
|
+
hotelOffers: Ae("hotelOffers/hotelOffers"),
|
3511
|
+
hotelOfferRequest: Ae("hotelOfferRequest"),
|
3512
|
+
displayFiltersMenu() {
|
3513
|
+
return !this.isHotelOfferRequestMissing && !!this.parsedFeatures.FiltersBar;
|
3514
|
+
},
|
3515
|
+
isTopPicksSelected() {
|
3516
|
+
var e;
|
3517
|
+
return ((e = this.filters.sort_by) == null ? void 0 : e.value) === ji.TopPicks;
|
3518
|
+
},
|
3519
|
+
showNoResultsMessage() {
|
3520
|
+
return !!this.hotelOfferRequest.id && !this.isPollingHotelOffers && Array.isArray(this.hotelOffers) && this.hotelOffers.length === 0;
|
3521
|
+
},
|
3522
|
+
showErrorMessage() {
|
3523
|
+
return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
|
3524
|
+
},
|
3525
|
+
showSkeleton() {
|
3526
|
+
var e;
|
3527
|
+
return !this.hotelOfferRequest.id || this.hotelOfferRequest.isFetching || this.isPollingHotelOffers && (!this.hotelOffers || ((e = this.hotelOffers) == null ? void 0 : e.length) === 0);
|
3528
|
+
}
|
3529
|
+
},
|
3530
|
+
watch: {
|
3531
|
+
filters: {
|
3532
|
+
deep: !0,
|
3533
|
+
async handler(e, t) {
|
3534
|
+
Yi(e, t) || await this.retrieveHotelOffers();
|
3535
|
+
}
|
3536
|
+
},
|
3537
|
+
"hotelOfferRequest.id": {
|
3538
|
+
immediate: !0,
|
3539
|
+
handler() {
|
3540
|
+
this.$nextTick(async () => {
|
3541
|
+
await this.retrieveHotelOffers();
|
3542
|
+
});
|
3543
|
+
}
|
3544
|
+
},
|
3545
|
+
limit: {
|
3546
|
+
immediate: !0,
|
3547
|
+
handler() {
|
3548
|
+
this.$nextTick(async () => {
|
3549
|
+
await this.retrieveHotelOffers();
|
3550
|
+
});
|
3551
|
+
}
|
3552
|
+
}
|
3553
|
+
},
|
3554
|
+
methods: {
|
3555
|
+
onHotelOfferItemMouseover(e) {
|
3556
|
+
this.$emit("hotel-offer-item-mouseover", e);
|
3557
|
+
},
|
3558
|
+
onHotelOfferItemMouseleave() {
|
3559
|
+
this.$emit("hotel-offer-item-mouseleave");
|
3560
|
+
},
|
3561
|
+
async onResetFilters() {
|
3562
|
+
await it("hotelOffers/resetFilters");
|
3563
|
+
},
|
3564
|
+
async retrieveHotelOffers() {
|
3565
|
+
this.$refs["hotel-offer-list-container"].scrollTo({
|
3566
|
+
top: 0,
|
3567
|
+
behavior: "smooth"
|
3568
|
+
}), await it("hotelRoomOfferRequest/resetHotelRoomOfferRequests").then(() => it("hotelRoomOffers/resetHotelRoomOffers")).then(
|
3569
|
+
() => it("hotelOffers/retrieveHotelOffers", {
|
3570
|
+
hotelOfferRequestId: this.hotelOfferRequest.id,
|
3571
|
+
limit: this.limit
|
3572
|
+
})
|
3573
|
+
);
|
3574
|
+
},
|
3575
|
+
async onSeeMoreClick() {
|
3576
|
+
await it("hotelOffers/retrieveHotelOffers", {
|
3577
|
+
hotelOfferRequestId: this.hotelOfferRequest.id,
|
3578
|
+
limit: this.limit,
|
3579
|
+
startingAfter: this.startingAfter
|
3580
|
+
});
|
3581
|
+
}
|
3582
|
+
}
|
3583
|
+
});
|
3584
|
+
var Cu = function() {
|
3585
|
+
var t = this, n = t._self._c;
|
3586
|
+
return t._self._setupProxy, n(no, { ref: "hotel-offer-list-container", staticClass: "pa-0 white", staticStyle: { "min-height": "500px" }, style: {
|
3587
|
+
height: t.parsedHeight,
|
3588
|
+
maxHeight: t.maxHeight,
|
3589
|
+
overflowY: "auto",
|
3590
|
+
overflowX: "hidden"
|
3591
|
+
} }, [t.parsedFeatures.HotelOfferSearchMenu ? n(yt, { staticClass: "px-2 pt-4", class: t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : "", attrs: { "no-gutters": "" } }, [n(je, [t.isBookingApiClientDefined ? n("BHotelSearchBar", { attrs: { "is-fetching": t.showSkeleton, "loading-bar-enabled": !1, "with-border": !1 }, model: { value: t.hotelOfferRequestInternal, callback: function(i) {
|
3592
|
+
t.hotelOfferRequestInternal = i;
|
3593
|
+
}, expression: "hotelOfferRequestInternal" } }) : t._e()], 1)], 1) : t._e(), t.displayFiltersMenu && t.isBookingApiClientDefined ? n(yt, { class: t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : "", attrs: { "no-gutters": "" } }, [n(je, [n("BHotelOffersFilterBar"), t.$breakpointService.xs ? t._e() : n(xn)], 1)], 1) : t._e(), n(yt, { attrs: { "no-gutters": "" } }, [n(je, [t.showSkeleton ? [n("HotelOfferListEmpty")] : t.showErrorMessage ? [n("HotelOfferListEmpty", { attrs: { type: "internalError" } })] : t.showNoResultsMessage ? [n("HotelOfferListEmpty", { attrs: { address: t.hotelOfferRequest.address, "adult-count": t.hotelOfferRequest.adultCount, "check-in-date": t.hotelOfferRequest.checkInDate, "check-out-date": t.hotelOfferRequest.checkOutDate, latitude: t.hotelOfferRequest.latitude, longitude: t.hotelOfferRequest.longitude, "room-count": t.hotelOfferRequest.roomCount, "source-market": t.hotelOfferRequest.sourceMarket, type: "noResults" }, on: { "reset-filters": t.onResetFilters } })] : [n(lo, { directives: [{ name: "show", rawName: "v-show", value: t.loadingBarEnabled && t.isPollingHotelOffers, expression: "loadingBarEnabled && isPollingHotelOffers" }], attrs: { indeterminate: "" } }), t._l(t.hotelOffers, function(i, o) {
|
3594
|
+
var a;
|
3595
|
+
return [n("HotelOfferItem", { key: i.id, staticClass: "pr-3", class: {
|
3596
|
+
"mt-0": o === 0,
|
3597
|
+
"mb-0": o === t.hotelOffers.length - 1
|
3598
|
+
}, attrs: { features: t.parsedFeatures.HotelOfferItem, "hotel-offer": i, "single-offer": t.hotelRoomOffersLimit === 1 }, nativeOn: { mouseleave: function(u) {
|
3599
|
+
return t.onHotelOfferItemMouseleave.apply(null, arguments);
|
3600
|
+
}, mouseover: function(u) {
|
3601
|
+
return t.onHotelOfferItemMouseover(i);
|
3602
|
+
} } }, [(a = t.parsedFeatures.HotelOfferItem) != null && a.HotelRoomOfferList ? n("div", { staticClass: "mx-n2" }, [n("HotelRoomOfferList", { attrs: { "adult-count": t.hotelOfferRequest.adultCount, "check-in-date": t.hotelOfferRequest.checkInDate, "check-out-date": t.hotelOfferRequest.checkOutDate, children: t.hotelOfferRequest.children, "hotel-id": i.id, "hotel-timezone": i.timezone, limit: t.hotelRoomOffersLimit, "room-count": t.hotelOfferRequest.roomCount, "source-market": t.hotelOfferRequest.sourceMarket } })], 1) : t._e()]), n(xn, { key: i.id + "-divider" })];
|
3603
|
+
}), t.startingAfter ? n("div", { staticClass: "d-flex justify-center align-center py-3" }, [n(jn, { attrs: { color: "primary", depressed: "", disabled: t.isPollingHotelOffers || !t.startingAfter, loading: t.isPollingHotelOffers }, on: { click: t.onSeeMoreClick } }, [t._v(" " + t._s(t.$t("HotelOfferList.showMore")) + " ")])], 1) : t._e()]], 2)], 1), t.parsedFeatures.TermsAndConditionsFooter ? n("TermsAndConditions", { attrs: { theme: "light" } }) : t._e()], 1);
|
3604
|
+
}, Su = [], wu = /* @__PURE__ */ Un(
|
3605
|
+
_u,
|
3606
|
+
Cu,
|
3607
|
+
Su,
|
3608
|
+
!1,
|
3609
|
+
null,
|
3610
|
+
null
|
3611
|
+
);
|
3612
|
+
const Wu = wu.exports;
|
3613
|
+
export {
|
3614
|
+
Wu as H,
|
3615
|
+
co as a,
|
3616
|
+
fo as h
|
3617
|
+
};
|
3618
|
+
//# sourceMappingURL=revolugo.hotelofferlist.B2R9QfQ0.min.js.map
|