@revolugo/elements 6.8.2-beta.25 → 6.8.2-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/css/{revolugo.bhoteloffersfilterbar.PIn4y3L4.css → revolugo.bhoteloffersfilterbar.C1Hvm7FH.css} +1 -1
  2. package/dist/css/revolugo.hoteloffersview.CL1wiz4I.css +1 -0
  3. package/dist/css/{revolugo.hotelroomofferlist.DI_s2G5c.css → revolugo.hotelroomofferlist.CCKyS5V3.css} +1 -1
  4. package/dist/index.es.min.js +664 -659
  5. package/dist/index.es.min.js.map +1 -1
  6. package/dist/index.min.js +5 -5
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/{revolugo._baseiteratee.Bo6dA6gF.min.js → revolugo._baseiteratee.C8JpDhkL.min.js} +31 -31
  9. package/dist/{revolugo.banktransferdetails.BMt-2WQ2.min.js → revolugo.banktransferdetails.DbH65tC7.min.js} +9 -9
  10. package/dist/{revolugo.bdaterangepicker.BH6THSvX.min.js → revolugo.bdaterangepicker.DaTPEyBk.min.js} +7 -7
  11. package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.b3jps3uL.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CBVSq3HY.min.js} +9 -9
  12. package/dist/{revolugo.bhoteloffersfilterbar.YX0kvJr0.min.js → revolugo.bhoteloffersfilterbar.B4qVcUSf.min.js} +176 -176
  13. package/dist/{revolugo.bhotelroomsdetails.CVjoqTqN.min.js → revolugo.bhotelroomsdetails.DM0bR41b.min.js} +22 -22
  14. package/dist/{revolugo.bhotelsearchbar.lk846UoG.min.js → revolugo.bhotelsearchbar.BQyWi96Q.min.js} +16 -16
  15. package/dist/{revolugo.bimagecarousel.DQ-d0UuU.min.js → revolugo.bimagecarousel.Bxze-sAN.min.js} +16 -16
  16. package/dist/{revolugo.bookingdetailssidebar.EQSb98XK.min.js → revolugo.bookingdetailssidebar.B3qxnvw5.min.js} +11 -11
  17. package/dist/{revolugo.bookingdetailssidebar.BNG2_M11.min.js → revolugo.bookingdetailssidebar.BfMlnO3W.min.js} +4 -4
  18. package/dist/{revolugo.bookingmanager.DE4TEVz0.min.js → revolugo.bookingmanager.BLH4_dLM.min.js} +20 -20
  19. package/dist/{revolugo.bpricesummaryskeleton.CZhFcr1k.min.js → revolugo.bpricesummaryskeleton.CGUMySE0.min.js} +4 -4
  20. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DDHNm-u9.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.BohPT038.min.js} +8 -8
  21. package/dist/{revolugo.btag.CNN5Yyw6.min.js → revolugo.btag.enAyzuf-.min.js} +35 -35
  22. package/dist/{revolugo.cancellationpoliciesbadge.B1lyhgFS.min.js → revolugo.cancellationpoliciesbadge.BIb8brx4.min.js} +12 -12
  23. package/dist/{revolugo.cancellationpoliciesbadge.CvpCvJGu.min.js → revolugo.cancellationpoliciesbadge.Czsvnx4a.min.js} +4 -4
  24. package/dist/{revolugo.cancellationpolicieslist.BC2Yb_hW.min.js → revolugo.cancellationpolicieslist.10Nt-9Ps.min.js} +6 -6
  25. package/dist/{revolugo.cancellationpolicieslist.H7jC7Kcp.min.js → revolugo.cancellationpolicieslist.Cta3_z0X.min.js} +4 -4
  26. package/dist/{revolugo.case-transformers.DGkS9zfC.min.js → revolugo.case-transformers.BAkXpgqb.min.js} +2 -2
  27. package/dist/{revolugo.creditcardform.BVlWEnT3.min.js → revolugo.creditcardform.C08aWIxd.min.js} +4 -4
  28. package/dist/{revolugo.creditcardform.C0P_1zFS.min.js → revolugo.creditcardform.DZe4DhM3.min.js} +26 -26
  29. package/dist/{revolugo.creditcardpayment.BMg0ugDD.min.js → revolugo.creditcardpayment.CEZdnWyC.min.js} +4 -4
  30. package/dist/{revolugo.creditcardpayment.BEE-gNhS.min.js → revolugo.creditcardpayment.CUPTEwSO.min.js} +21 -21
  31. package/dist/{revolugo.currencypicker.wtjHB3pq.min.js → revolugo.currencypicker.Bg7VTTs-.min.js} +8 -8
  32. package/dist/{revolugo.currencypickerbtn.DStdz3kM.min.js → revolugo.currencypickerbtn.C78p4uzZ.min.js} +9 -9
  33. package/dist/{revolugo.currencypickerbtn.DXXE2kjO.min.js → revolugo.currencypickerbtn.Ds3ZzS2i.min.js} +4 -4
  34. package/dist/{revolugo.defaultsdeep.BGayeVvG.min.js → revolugo.defaultsdeep.XrKFzqfD.min.js} +25 -25
  35. package/dist/{revolugo.dialog-attach.Dw0AsRBO.min.js → revolugo.dialog-attach.Txbgse8T.min.js} +2 -2
  36. package/dist/{revolugo.dialog-transition.BWPeP-tg.min.js → revolugo.dialog-transition.oLGnTunU.min.js} +7 -7
  37. package/dist/{revolugo.fastbookingflow.DTleB4Xc.min.js → revolugo.fastbookingflow.DeV0Km6I.min.js} +4 -4
  38. package/dist/{revolugo.fullbookingflow.BYy7Hrl8.min.js → revolugo.fullbookingflow.CHlt0t8o.min.js} +17 -17
  39. package/dist/{revolugo.hotel-offer-request.UWd4xn--.min.js → revolugo.hotel-offer-request.CF_RRnvF.min.js} +2 -2
  40. package/dist/{revolugo.hoteldescriptionview.Dahr8-ps.min.js → revolugo.hoteldescriptionview.CUocOz3c.min.js} +4 -4
  41. package/dist/{revolugo.hoteldescriptionview.1ngUMpWv.min.js → revolugo.hoteldescriptionview.DydcEo3N.min.js} +264 -271
  42. package/dist/{revolugo.hotelofferitemlayout.TOuXimkZ.min.js → revolugo.hotelofferitemlayout.BfKFgXSx.min.js} +6 -6
  43. package/dist/{revolugo.hotelofferlist.B1fId7Bz.min.js → revolugo.hotelofferlist.BSS9Pdsg.min.js} +800 -806
  44. package/dist/{revolugo.hotelofferlist.CgMn7-pz.min.js → revolugo.hotelofferlist.DwdsSlLc.min.js} +4 -4
  45. package/dist/{revolugo.hotelofferrequestcreator.nrOppi6B.min.js → revolugo.hotelofferrequestcreator.mZIEn6Bv.min.js} +5 -5
  46. package/dist/{revolugo.hoteloffersearchmenu.snhiZWx4.min.js → revolugo.hoteloffersearchmenu.Chmr5yMo.min.js} +7 -7
  47. package/dist/{revolugo.hoteloffersmap.BUy70Vit.min.js → revolugo.hoteloffersmap.B731ec4s.min.js} +34 -35
  48. package/dist/{revolugo.hoteloffersmap.M05kFu6n.min.js → revolugo.hoteloffersmap.Dn4s4Gng.min.js} +4 -4
  49. package/dist/{revolugo.hoteloffersview.C4EAs26u.min.js → revolugo.hoteloffersview.9-gc_kdh.min.js} +4 -4
  50. package/dist/{revolugo.hoteloffersview.C3Nh9vPp.min.js → revolugo.hoteloffersview.B1VPYCEZ.min.js} +32 -32
  51. package/dist/{revolugo.hotelroomofferlist.Di8H93cJ.min.js → revolugo.hotelroomofferlist.B1tOLZkP.min.js} +4 -4
  52. package/dist/{revolugo.hotelroomofferlist.1wRv-Pki.min.js → revolugo.hotelroomofferlist.DY9HLkEJ.min.js} +97 -97
  53. package/dist/{revolugo.hotelroomofferrequestcreator.props.DHI_uAT8.min.js → revolugo.hotelroomofferrequestcreator.props.CNqroiuy.min.js} +2 -2
  54. package/dist/{revolugo.hotelroomoffersbookingflow.Bz1wKfvh.min.js → revolugo.hotelroomoffersbookingflow.CZ8cTaHL.min.js} +31 -31
  55. package/dist/{revolugo.hotelroomoffersearchmenu.DQmNVBZ1.min.js → revolugo.hotelroomoffersearchmenu.C4uT8tOm.min.js} +5 -5
  56. package/dist/{revolugo.hotelroomoffersearchmenu.DmI3Y9D-.min.js → revolugo.hotelroomoffersearchmenu.DURA-jgd.min.js} +7 -7
  57. package/dist/{revolugo.hotelroomoffersview.pg2f6IpA.min.js → revolugo.hotelroomoffersview.Bvgt9zgT.min.js} +4 -4
  58. package/dist/{revolugo.hotelroomoffersview.D2UHKYSd.min.js → revolugo.hotelroomoffersview.Cg8J6sNI.min.js} +12 -12
  59. package/dist/{revolugo.index.KHDOryhy.min.js → revolugo.index.C739ZaAz.min.js} +108 -108
  60. package/dist/{revolugo.index.wc.2nEhNMh-.min.js → revolugo.index.wc.Bf0QYmVR.min.js} +6645 -6567
  61. package/dist/{revolugo.langpicker.B7WlkxF0.min.js → revolugo.langpicker.DRs_Fknx.min.js} +8 -8
  62. package/dist/{revolugo.langpickerbtn.DnFUs-7O.min.js → revolugo.langpickerbtn.ByOY0-FL.min.js} +4 -4
  63. package/dist/{revolugo.langpickerbtn.WK6GaRIn.min.js → revolugo.langpickerbtn.D9r9hdzT.min.js} +12 -12
  64. package/dist/revolugo.min.js +1 -1
  65. package/dist/{revolugo.pathify.BoRAax2S.min.js → revolugo.pathify.BObqoPzz.min.js} +2 -2
  66. package/dist/{revolugo.prebookform.Zm0rbN_H.min.js → revolugo.prebookform.B5E6YLl3.min.js} +23 -23
  67. package/dist/{revolugo.prebookform.Dzvx2phN.min.js → revolugo.prebookform.D4hAIDtm.min.js} +4 -4
  68. package/dist/{revolugo.roominglisteditor.Si6vbLRg.min.js → revolugo.roominglisteditor.CFlodj_H.min.js} +4 -4
  69. package/dist/{revolugo.roominglisteditor.Dlchz0qx.min.js → revolugo.roominglisteditor.DnIQBHAe.min.js} +9 -9
  70. package/dist/{revolugo.rounded.D-vYa2df.min.js → revolugo.rounded.CuZyESam.min.js} +2 -2
  71. package/dist/{revolugo.ssrboot.Dtuv2DAY.min.js → revolugo.ssrboot.Buo2ct_3.min.js} +4 -4
  72. package/dist/{revolugo.storybooktoolbar.DZjXp19u.min.js → revolugo.storybooktoolbar.l1wKJmBp.min.js} +26 -26
  73. package/dist/{revolugo.termsandconditions.CgiJvZ05.min.js → revolugo.termsandconditions.B2t8KS-F.min.js} +4 -4
  74. package/dist/{revolugo.termsandconditions.kzeGPHto.min.js → revolugo.termsandconditions.D2y4cWuf.min.js} +4 -4
  75. package/dist/{revolugo.use-breakpoint-service.C-7V6WuQ.min.js → revolugo.use-breakpoint-service.BKKsJJY_.min.js} +5 -5
  76. package/dist/{revolugo.use-html-element.B2AaIzxE.min.js → revolugo.use-html-element.CCmAUweI.min.js} +2 -2
  77. package/dist/{revolugo.vautocomplete.CaaW6BP5.min.js → revolugo.vautocomplete.pqVsWlVv.min.js} +47 -47
  78. package/dist/{revolugo.vbadge.Bpo2Yjbp.min.js → revolugo.vbadge.BIYFkvm-.min.js} +12 -12
  79. package/dist/{revolugo.vbtn.Cpgznl5E.min.js → revolugo.vbtn.CmC-hpon.min.js} +36 -36
  80. package/dist/{revolugo.vcard.DuOiCzQO.min.js → revolugo.vcard.DYUElMfj.min.js} +23 -23
  81. package/dist/{revolugo.vcheckboxbtn.DsKM1rRt.min.js → revolugo.vcheckboxbtn.B-bkXhS_.min.js} +73 -73
  82. package/dist/{revolugo.vdialog.yNk9HtgU.min.js → revolugo.vdialog.CBiWLDe2.min.js} +8 -8
  83. package/dist/{revolugo.vdivider.B7hH3S8r.min.js → revolugo.vdivider.COpClK5A.min.js} +3 -3
  84. package/dist/{revolugo.vexpansionpanels.CM2ZLc5b.min.js → revolugo.vexpansionpanels.ePSLp6XP.min.js} +31 -31
  85. package/dist/{revolugo.vform.BKAuE0KK.min.js → revolugo.vform.DYn8KSKJ.min.js} +4 -4
  86. package/dist/{revolugo.vicon.DGJLiHfL.min.js → revolugo.vicon.CKhHkJWA.min.js} +18 -18
  87. package/dist/{revolugo.vinput.C-ySEK8b.min.js → revolugo.vinput.CBMKM8Ns.min.js} +51 -51
  88. package/dist/{revolugo.vlabel.C3tYPmv_.min.js → revolugo.vlabel.CkhG4tc2.min.js} +3 -3
  89. package/dist/{revolugo.vlist.DDzq7MdH.min.js → revolugo.vlist.TusK-7lv.min.js} +67 -67
  90. package/dist/{revolugo.vmenu.BVPkxfM7.min.js → revolugo.vmenu.JpLuQGfD.min.js} +21 -21
  91. package/dist/{revolugo.vselect.Dp_v4qRn.min.js → revolugo.vselect.ljKBx5Bl.min.js} +58 -58
  92. package/dist/{revolugo.vsheet.DiHde_j_.min.js → revolugo.vsheet.Ad2Dsp8f.min.js} +5 -5
  93. package/dist/{revolugo.vskeletonloader.DZ83wbEg.min.js → revolugo.vskeletonloader.BIVXAHot.min.js} +4 -4
  94. package/dist/{revolugo.vslidegroup.CB17ieN0.min.js → revolugo.vslidegroup.C9whQZm2.min.js} +31 -31
  95. package/dist/{revolugo.vsnackbar.BbMFY3Zs.min.js → revolugo.vsnackbar.BPmh253n.min.js} +33 -33
  96. package/dist/revolugo.vspacer.DBirewW0.min.js +7 -0
  97. package/dist/{revolugo.vtextarea.DdmrWedt.min.js → revolugo.vtextarea.BUa88-mA.min.js} +37 -37
  98. package/dist/{revolugo.vtextfield.BdrIl609.min.js → revolugo.vtextfield.DYewF2kn.min.js} +64 -64
  99. package/dist/{revolugo.vtoolbar.87CAvvRc.min.js → revolugo.vtoolbar.BCboPfOe.min.js} +22 -22
  100. package/dist/{revolugo.vtooltip.BCHalrVU.min.js → revolugo.vtooltip.Dlbl950A.min.js} +5 -5
  101. package/dist/{revolugo.vwindowitem.C03XRSRy.min.js → revolugo.vwindowitem.YqGwRSIf.min.js} +17 -17
  102. package/dist/{revolugo.watch-list.D3Wq7ZOb.min.js → revolugo.watch-list.DfTPyUQc.min.js} +2 -2
  103. package/dist/{revolugo.webcomponentwrapper.CDoUnSZ4.min.js → revolugo.webcomponentwrapper.Bdt-BW5y.min.js} +258 -258
  104. package/package.json +1 -1
  105. package/dist/css/revolugo.hoteloffersview.oDGeJCwG.css +0 -1
  106. package/dist/revolugo.vspacer.BuEjhysp.min.js +0 -7
@@ -1,29 +1,29 @@
1
- var Vi = Object.defineProperty;
2
- var Fi = (t, e, n) => e in t ? Vi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var N = (t, e, n) => Fi(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { W as Ze, d as hn, u as gn, k as xt, X as Me, Y as Te, D as U, a as b, Z as vt, _ as Hi, $ as ft, a0 as Le, a1 as yt, a2 as Gi, C as Jt, a3 as bt, L as Is, f as je, a4 as lt, a5 as Ts, a6 as As, y as re, a7 as Os, a8 as ji, S as qi, Q as zi, a9 as Ki, aa as Yi, F as xe, i as pe, w as _, e as Zt, t as He, r as oe, o as $, b as Ds, c as Q, g as Z, v as Cs, x as Et, K as Wi, P as Qi, ab as Xi, ac as Ji, H as Zi, I as er, A as tr } from "./revolugo.index.wc.2nEhNMh-.min.js";
5
- import { h as nr, H as sr } from "./revolugo.hotelofferrequestcreator.nrOppi6B.min.js";
6
- import { H as ir, D as rr, B as or, p as ar, c as lr, d as ur, u as cr } from "./revolugo.bhoteloffersfilterbar.YX0kvJr0.min.js";
7
- import { H as _s } from "./revolugo.hotelofferitemlayout.TOuXimkZ.min.js";
8
- import { B as dr, v as Ue, V as fr } from "./revolugo.vtextarea.DdmrWedt.min.js";
9
- import { u as Ye, b as Ps, M as Ns, _ as mn, V as rt, a as Pe, B as hr } from "./revolugo.webcomponentwrapper.CDoUnSZ4.min.js";
10
- import { V as et } from "./revolugo.vtextfield.BdrIl609.min.js";
11
- import { V as Dn } from "./revolugo.vmenu.BVPkxfM7.min.js";
12
- import { a as ae } from "./revolugo.vbtn.Cpgznl5E.min.js";
13
- import { V as gr } from "./revolugo.vspacer.BuEjhysp.min.js";
14
- import { a as $t, c as mr, b as pr, V as vr } from "./revolugo.index.KHDOryhy.min.js";
15
- import { V as Cn, m as yr } from "./revolugo.vsheet.DiHde_j_.min.js";
16
- import { V as br } from "./revolugo.vform.BKAuE0KK.min.js";
17
- import { V as en } from "./revolugo.vdivider.B7hH3S8r.min.js";
18
- import { H as Er } from "./revolugo.hotelroomofferlist.1wRv-Pki.min.js";
19
- import { B as Sr } from "./revolugo.bhotelsearchbar.lk846UoG.min.js";
20
- import { p as kr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DDHNm-u9.min.js";
21
- import { w as Rr } from "./revolugo.watch-list.D3Wq7ZOb.min.js";
22
- import { T as Ir } from "./revolugo.termsandconditions.CgiJvZ05.min.js";
23
- import { u as Tr } from "./revolugo.hotelroomofferrequestcreator.props.DHI_uAT8.min.js";
24
- import { p as Ar, g as be } from "./revolugo.pathify.BoRAax2S.min.js";
25
- import { V as Or } from "./revolugo.bdaterangepicker.BH6THSvX.min.js";
26
- function xi(t) {
1
+ var Bi = Object.defineProperty;
2
+ var Vi = (t, e, n) => e in t ? Bi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var N = (t, e, n) => Vi(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { W as xi, X as Hi, d as fn, u as hn, k as Ft, Y as Me, Z as Te, D as U, a as b, _ as pt, $ as Gi, a0 as dt, a1 as Le, a2 as vt, a3 as ji, C as Xt, a4 as yt, L as Rs, f as je, a5 as at, a6 as Is, a7 as Ts, y as re, a8 as As, a9 as qi, S as zi, Q as Yi, aa as Ki, ab as Wi, F as xe, i as pe, w as _, e as Jt, t as He, r as oe, o as $, b as Os, c as Q, g as Z, v as Ds, x as bt, K as Qi, P as Xi, ac as Ji, ad as Zi, H as er, I as tr, A as nr } from "./revolugo.index.wc.Bf0QYmVR.min.js";
5
+ import { h as sr, H as ir } from "./revolugo.hotelofferrequestcreator.mZIEn6Bv.min.js";
6
+ import { H as rr, D as or, B as ar, p as lr, c as ur, d as cr, u as dr } from "./revolugo.bhoteloffersfilterbar.B4qVcUSf.min.js";
7
+ import { H as Cs } from "./revolugo.hotelofferitemlayout.BfKFgXSx.min.js";
8
+ import { B as fr, v as Ue, V as hr } from "./revolugo.vtextarea.BUa88-mA.min.js";
9
+ import { u as Ke, b as _s, M as Ps, _ as gn, V as it, a as Pe, B as gr } from "./revolugo.webcomponentwrapper.Bdt-BW5y.min.js";
10
+ import { V as Ze } from "./revolugo.vtextfield.DYewF2kn.min.js";
11
+ import { V as On } from "./revolugo.vmenu.JpLuQGfD.min.js";
12
+ import { a as ae } from "./revolugo.vbtn.CmC-hpon.min.js";
13
+ import { V as mr } from "./revolugo.vspacer.DBirewW0.min.js";
14
+ import { a as Mt, c as pr, b as vr, V as yr } from "./revolugo.index.C739ZaAz.min.js";
15
+ import { V as Dn, m as br } from "./revolugo.vsheet.Ad2Dsp8f.min.js";
16
+ import { V as Er } from "./revolugo.vform.DYn8KSKJ.min.js";
17
+ import { V as Zt } from "./revolugo.vdivider.COpClK5A.min.js";
18
+ import { H as Sr } from "./revolugo.hotelroomofferlist.DY9HLkEJ.min.js";
19
+ import { B as kr } from "./revolugo.bhotelsearchbar.BQyWi96Q.min.js";
20
+ import { p as Rr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.BohPT038.min.js";
21
+ import { w as Ir } from "./revolugo.watch-list.DfTPyUQc.min.js";
22
+ import { T as Tr } from "./revolugo.termsandconditions.B2t8KS-F.min.js";
23
+ import { u as Ar } from "./revolugo.hotelroomofferrequestcreator.props.CNqroiuy.min.js";
24
+ import { p as Or, g as be } from "./revolugo.pathify.BObqoPzz.min.js";
25
+ import { V as Dr } from "./revolugo.bdaterangepicker.DaTPEyBk.min.js";
26
+ function Fi(t) {
27
27
  try {
28
28
  if (typeof document < "u") {
29
29
  window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
@@ -43,15 +43,15 @@ function xi(t) {
43
43
  console.error("[revolugo-elements] ", e);
44
44
  }
45
45
  }
46
- const Ls = {
46
+ const Ns = {
47
47
  FiltersBar: !0,
48
48
  HotelOfferSearchMenu: !1,
49
49
  TermsAndConditionsFooter: !0,
50
- HotelOfferItem: ir
51
- }, Dr = {
52
- ...nr,
50
+ HotelOfferItem: rr
51
+ }, Cr = {
52
+ ...sr,
53
53
  features: {
54
- default: () => Ls,
54
+ default: () => Ns,
55
55
  type: [Object, String]
56
56
  },
57
57
  height: {
@@ -62,7 +62,7 @@ const Ls = {
62
62
  type: Number
63
63
  },
64
64
  limit: {
65
- default: rr,
65
+ default: or,
66
66
  type: Number
67
67
  },
68
68
  loadingBarEnabled: {
@@ -104,7 +104,7 @@ function Ee(t) {
104
104
  }
105
105
  };
106
106
  }
107
- function pn(t) {
107
+ function mn(t) {
108
108
  return function e(n, s, i) {
109
109
  switch (arguments.length) {
110
110
  case 0:
@@ -138,30 +138,30 @@ function pn(t) {
138
138
  }
139
139
  };
140
140
  }
141
- function ht(t, e) {
141
+ function ft(t, e) {
142
142
  return Object.prototype.hasOwnProperty.call(e, t);
143
143
  }
144
- var Cr = /* @__PURE__ */ ve(function(e) {
144
+ var _r = /* @__PURE__ */ ve(function(e) {
145
145
  return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
146
146
  });
147
- function _n(t) {
147
+ function Cn(t) {
148
148
  return Object.prototype.toString.call(t) === "[object Object]";
149
149
  }
150
- const _r = Number.isInteger || function(e) {
150
+ const Pr = Number.isInteger || function(e) {
151
151
  return e << 0 === e;
152
152
  };
153
- function Pr(t) {
153
+ function Nr(t) {
154
154
  return Object.prototype.toString.call(t) === "[object String]";
155
155
  }
156
- function Nr(t, e) {
156
+ function Lr(t, e) {
157
157
  var n = t < 0 ? e.length + t : t;
158
- return Pr(e) ? e.charAt(n) : e[n];
158
+ return Nr(e) ? e.charAt(n) : e[n];
159
159
  }
160
- function Lr(t) {
160
+ function wr(t) {
161
161
  return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
162
162
  }
163
- function ws(t, e, n) {
164
- if (n || (n = new Mr()), wr(t))
163
+ function Ls(t, e, n) {
164
+ if (n || (n = new $r()), Mr(t))
165
165
  return t;
166
166
  var s = function(r) {
167
167
  var a = n.get(t);
@@ -169,10 +169,10 @@ function ws(t, e, n) {
169
169
  return a;
170
170
  n.set(t, r);
171
171
  for (var u in t)
172
- Object.prototype.hasOwnProperty.call(t, u) && (r[u] = ws(t[u], !0, n));
172
+ Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ls(t[u], !0, n));
173
173
  return r;
174
174
  };
175
- switch (Cr(t)) {
175
+ switch (_r(t)) {
176
176
  case "Object":
177
177
  return s(Object.create(Object.getPrototypeOf(t)));
178
178
  case "Array":
@@ -180,7 +180,7 @@ function ws(t, e, n) {
180
180
  case "Date":
181
181
  return new Date(t.valueOf());
182
182
  case "RegExp":
183
- return Lr(t);
183
+ return wr(t);
184
184
  case "Int8Array":
185
185
  case "Uint8Array":
186
186
  case "Uint8ClampedArray":
@@ -197,11 +197,11 @@ function ws(t, e, n) {
197
197
  return t;
198
198
  }
199
199
  }
200
- function wr(t) {
200
+ function Mr(t) {
201
201
  var e = typeof t;
202
202
  return t == null || e != "object" && e != "function";
203
203
  }
204
- var Mr = /* @__PURE__ */ function() {
204
+ var $r = /* @__PURE__ */ function() {
205
205
  function t() {
206
206
  this.map = {}, this.length = 0;
207
207
  }
@@ -232,40 +232,40 @@ var Mr = /* @__PURE__ */ function() {
232
232
  }
233
233
  }, t;
234
234
  }(), T = /* @__PURE__ */ ve(function(e) {
235
- return e != null && typeof e.clone == "function" ? e.clone() : ws(e);
235
+ return e != null && typeof e.clone == "function" ? e.clone() : Ls(e);
236
236
  });
237
- function $r(t, e) {
237
+ function Ur(t, e) {
238
238
  for (var n = e, s = 0; s < t.length; s += 1) {
239
239
  if (n == null)
240
240
  return;
241
241
  var i = t[s];
242
- _r(i) ? n = Nr(i, n) : n = n[i];
242
+ Pr(i) ? n = Lr(i, n) : n = n[i];
243
243
  }
244
244
  return n;
245
245
  }
246
- var Ur = /* @__PURE__ */ pn(function(e, n, s) {
246
+ var Br = /* @__PURE__ */ mn(function(e, n, s) {
247
247
  var i = {}, r;
248
248
  n = n || {}, s = s || {};
249
249
  for (r in n)
250
- ht(r, n) && (i[r] = ht(r, s) ? e(r, n[r], s[r]) : n[r]);
250
+ ft(r, n) && (i[r] = ft(r, s) ? e(r, n[r], s[r]) : n[r]);
251
251
  for (r in s)
252
- ht(r, s) && !ht(r, i) && (i[r] = s[r]);
252
+ ft(r, s) && !ft(r, i) && (i[r] = s[r]);
253
253
  return i;
254
- }), Br = /* @__PURE__ */ pn(function t(e, n, s) {
255
- return Ur(function(i, r, a) {
256
- return _n(r) && _n(a) ? t(e, r, a) : e(i, r, a);
257
- }, n, s);
258
- }), Vr = /* @__PURE__ */ pn(function(e, n, s) {
254
+ }), Vr = /* @__PURE__ */ mn(function t(e, n, s) {
259
255
  return Br(function(i, r, a) {
256
+ return Cn(r) && Cn(a) ? t(e, r, a) : e(i, r, a);
257
+ }, n, s);
258
+ }), Fr = /* @__PURE__ */ mn(function(e, n, s) {
259
+ return Vr(function(i, r, a) {
260
260
  return e(r, a);
261
261
  }, n, s);
262
- }), Fr = /* @__PURE__ */ Ee($r), Ms = /* @__PURE__ */ Ee(function(e, n) {
262
+ }), xr = /* @__PURE__ */ Ee(Ur), ws = /* @__PURE__ */ Ee(function(e, n) {
263
263
  var s = {};
264
264
  for (var i in n)
265
265
  e(n[i], i, n) && (s[i] = n[i]);
266
266
  return s;
267
267
  });
268
- const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), L = (t) => typeof t == "string", ne = (t) => t === null, x = (t) => typeof t > "u", le = (t) => ne(t) || x(t), xr = (t) => typeof t == "bigint", C = (t) => !x(t), qe = (t) => !le(t), Hr = (t) => qe(t) && t !== "", vn = (t) => {
268
+ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), L = (t) => typeof t == "string", ne = (t) => t === null, x = (t) => typeof t > "u", le = (t) => ne(t) || x(t), Hr = (t) => typeof t == "bigint", C = (t) => !x(t), qe = (t) => !le(t), Gr = (t) => qe(t) && t !== "", pn = (t) => {
269
269
  switch (Object.prototype.toString.call(t)) {
270
270
  case "[object Error]":
271
271
  case "[object Exception]":
@@ -274,35 +274,35 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
274
274
  default:
275
275
  return t instanceof Error;
276
276
  }
277
- }, tn = (t, e) => {
277
+ }, en = (t, e) => {
278
278
  const n = e.split(".");
279
- return Fr(n, t);
280
- }, Gr = (t, e) => !!tn(t, e), jr = (t) => typeof t == "object", qr = (t) => !ne(t) && jr(t) && !Array.isArray(t), M = (t) => !ne(t) && Object.prototype.toString.call(t) === "[object Object]", zr = (t, e) => {
279
+ return xr(n, t);
280
+ }, jr = (t, e) => !!en(t, e), qr = (t) => typeof t == "object", zr = (t) => !ne(t) && qr(t) && !Array.isArray(t), M = (t) => !ne(t) && Object.prototype.toString.call(t) === "[object Object]", Yr = (t, e) => {
281
281
  if (!Array.isArray(t) || !Array.isArray(e))
282
282
  return T(e);
283
283
  const n = T(t);
284
284
  return e.forEach((s, i) => {
285
- n[i] = Array.isArray(s) || qr(s) ? (
285
+ n[i] = Array.isArray(s) || zr(s) ? (
286
286
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
287
287
  H(n[i], s)
288
288
  ) : s;
289
289
  }), n;
290
- }, H = (t, e) => Vr(zr, t, e), Ie = (t) => M(t) && Object.keys(t).length > 0, nt = (t) => {
291
- const e = Ms(C, t);
290
+ }, H = (t, e) => Fr(Yr, t, e), Ie = (t) => M(t) && Object.keys(t).length > 0, tt = (t) => {
291
+ const e = ws(C, t);
292
292
  return Object.keys(e).forEach((n) => {
293
293
  const s = e[n];
294
- M(s) && (e[n] = nt(s));
294
+ M(s) && (e[n] = tt(s));
295
295
  }), e;
296
- }, _t = (t) => {
297
- const e = Ms(qe, t);
296
+ }, Ct = (t) => {
297
+ const e = ws(qe, t);
298
298
  return Object.keys(e).forEach((n) => {
299
299
  const s = e[n];
300
- M(s) && (e[n] = _t(s));
300
+ M(s) && (e[n] = Ct(s));
301
301
  }), e;
302
302
  }, ge = (t) => {
303
303
  if (Ie(t))
304
- return _t(t);
305
- }, ue = (t, e) => typeof t == "boolean" ? t : e, Kr = (t) => t.replace(/^\s+|\s+$/gm, ""), Pn = (t) => t.replace(/^\.+/, ""), Pt = (t) => {
304
+ return Ct(t);
305
+ }, ue = (t, e) => typeof t == "boolean" ? t : e, Kr = (t) => t.replace(/^\s+|\s+$/gm, ""), _n = (t) => t.replace(/^\.+/, ""), _t = (t) => {
306
306
  let e = t;
307
307
  if (!L(t) && !le(t))
308
308
  try {
@@ -311,56 +311,56 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
311
311
  e = null;
312
312
  }
313
313
  return e;
314
- }, Yr = (t) => {
314
+ }, Wr = (t) => {
315
315
  const e = Array.from(t, (n) => String.fromCodePoint(n)).join("");
316
316
  return globalThis.btoa(e);
317
- }, Wr = (t) => Yr(new TextEncoder().encode(t)), Nt = (t, e, n, s, i) => {
317
+ }, Qr = (t) => Wr(new TextEncoder().encode(t)), Pt = (t, e, n, s, i) => {
318
318
  const r = { category: t, name: e, properties: n, options: s, callback: void 0 };
319
319
  S(i) && (r.callback = i), S(s) && (r.category = t, r.name = e, r.properties = n, r.options = void 0, r.callback = s), S(n) && (r.category = t, r.name = e, r.properties = void 0, r.options = void 0, r.callback = n), S(e) && (r.category = t, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = e), S(t) && (r.category = void 0, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = t), M(t) ? (r.name = void 0, r.category = void 0, r.properties = t, S(e) ? r.options = void 0 : r.options = e) : M(e) && (r.name = void 0, r.properties = e, S(n) ? r.options = void 0 : r.options = n), L(t) && !L(e) && (r.category = void 0, r.name = t), C(r.category) || (r.category = void 0), C(r.name) || (r.name = void 0), r.properties = r.properties ? T(r.properties) : {}, C(r.options) ? r.options = T(r.options) : r.options = void 0;
320
320
  const a = L(r.name) ? r.name : r.properties.name, u = L(r.category) ? r.category : r.properties.category;
321
321
  return r.properties = H(M(r.properties) ? r.properties : {}, { ...a && { name: a }, ...u && { category: u } }), r;
322
- }, yn = (t, e, n, s) => {
322
+ }, vn = (t, e, n, s) => {
323
323
  const i = { name: t, properties: e, options: n, callback: void 0 };
324
324
  return S(s) && (i.callback = s), S(n) && (i.properties = e, i.options = void 0, i.callback = n), S(e) && (i.properties = void 0, i.options = void 0, i.callback = e), i.properties = qe(i.properties) ? T(i.properties) : {}, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
325
- }, $s = (t, e, n, s) => {
325
+ }, Ms = (t, e, n, s) => {
326
326
  const i = { userId: t, traits: e, options: n, callback: void 0 };
327
- return S(s) && (i.callback = s), S(n) && (i.userId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.userId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ne(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = Pt(i.userId), M(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
328
- }, Us = (t, e, n, s) => {
327
+ return S(s) && (i.callback = s), S(n) && (i.userId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.userId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ne(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = _t(i.userId), M(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
328
+ }, $s = (t, e, n, s) => {
329
329
  const i = { to: t, from: e, options: n, callback: void 0 };
330
- return S(s) && (i.callback = s), S(n) && (i.to = t, i.from = e, i.options = void 0, i.callback = n), S(e) ? (i.to = t, i.from = void 0, i.options = void 0, i.callback = e) : (M(e) || ne(e)) && (i.to = t, i.from = void 0, i.options = e), C(i.to) && (i.to = Pt(i.to)), C(i.from) ? i.from = Pt(i.from) : i.from = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
331
- }, Bs = (t, e, n, s) => {
330
+ return S(s) && (i.callback = s), S(n) && (i.to = t, i.from = e, i.options = void 0, i.callback = n), S(e) ? (i.to = t, i.from = void 0, i.options = void 0, i.callback = e) : (M(e) || ne(e)) && (i.to = t, i.from = void 0, i.options = e), C(i.to) && (i.to = _t(i.to)), C(i.from) ? i.from = _t(i.from) : i.from = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
331
+ }, Us = (t, e, n, s) => {
332
332
  const i = { groupId: t, traits: e, options: n, callback: void 0 };
333
- return S(s) && (i.callback = s), S(n) && (i.groupId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.groupId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ne(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = Pt(i.groupId), M(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
333
+ return S(s) && (i.callback = s), S(n) && (i.groupId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.groupId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ne(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = _t(i.groupId), M(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, C(i.options) ? i.options = T(i.options) : i.options = void 0, i;
334
334
  };
335
- let Ht = /* @__PURE__ */ function(t) {
335
+ let xt = /* @__PURE__ */ function(t) {
336
336
  return t.UNLOADED = "Page Unloaded", t;
337
337
  }({});
338
- const bn = "API", nn = "CapabilitiesManager", te = "ConfigManager", Vs = "EventManager", gt = "PluginsManager", De = "UserSessionManager", st = "ErrorHandler", Be = "PluginEngine", Qr = "StoreManager", Gt = `Ready${bn}`, Xr = `Load${bn}`, Jr = "HttpClient", Zr = "RudderStackAnalytics", jt = "AnalyticsCore";
339
- function eo(t) {
338
+ const yn = "API", tn = "CapabilitiesManager", te = "ConfigManager", Bs = "EventManager", ht = "PluginsManager", De = "UserSessionManager", nt = "ErrorHandler", Be = "PluginEngine", Xr = "StoreManager", Ht = `Ready${yn}`, Jr = `Load${yn}`, Zr = "HttpClient", eo = "RudderStackAnalytics", Gt = "AnalyticsCore";
339
+ function to(t) {
340
340
  return crypto.getRandomValues(new Uint8Array(t));
341
341
  }
342
- var Nn = 4096, St = [], ke = 0, qt;
342
+ var Pn = 4096, Et = [], ke = 0, jt;
343
343
  for (; ke < 256; ke++)
344
- St[ke] = (ke + 256).toString(16).substring(1);
345
- function to() {
346
- (!qt || ke + 16 > Nn) && (qt = eo(Nn), ke = 0);
344
+ Et[ke] = (ke + 256).toString(16).substring(1);
345
+ function no() {
346
+ (!jt || ke + 16 > Pn) && (jt = to(Pn), ke = 0);
347
347
  for (var t = 0, e, n = ""; t < 16; t++)
348
- e = qt[ke + t], t == 6 ? n += St[e & 15 | 64] : t == 8 ? n += St[e & 63 | 128] : n += St[e], t & 1 && t > 1 && t < 11 && (n += "-");
348
+ e = jt[ke + t], t == 6 ? n += Et[e & 15 | 64] : t == 8 ? n += Et[e & 63 | 128] : n += Et[e], t & 1 && t > 1 && t < 11 && (n += "-");
349
349
  return ke += 16, n;
350
350
  }
351
- var Ne = 256, kt = [], mt;
352
- for (; Ne--; ) kt[Ne] = (Ne + 256).toString(16).substring(1);
353
- function no() {
351
+ var Ne = 256, St = [], gt;
352
+ for (; Ne--; ) St[Ne] = (Ne + 256).toString(16).substring(1);
353
+ function so() {
354
354
  var t = 0, e, n = "";
355
- if (!mt || Ne + 16 > 256) {
356
- for (mt = Array(t = 256); t--; ) mt[t] = 256 * Math.random() | 0;
355
+ if (!gt || Ne + 16 > 256) {
356
+ for (gt = Array(t = 256); t--; ) gt[t] = 256 * Math.random() | 0;
357
357
  t = Ne = 0;
358
358
  }
359
359
  for (; t < 16; t++)
360
- e = mt[Ne + t], t == 6 ? n += kt[e & 15 | 64] : t == 8 ? n += kt[e & 63 | 128] : n += kt[e], t & 1 && t > 1 && t < 11 && (n += "-");
360
+ e = gt[Ne + t], t == 6 ? n += St[e & 15 | 64] : t == 8 ? n += St[e & 63 | 128] : n += St[e], t & 1 && t > 1 && t < 11 && (n += "-");
361
361
  return Ne++, n;
362
362
  }
363
- const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Ut = () => so() ? to() : no(), io = (t) => {
363
+ const io = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), $t = () => io() ? no() : so(), ro = (t) => {
364
364
  let e = !1, n = !1;
365
365
  function s() {
366
366
  e || (e = !0, t(n), setTimeout(() => {
@@ -378,7 +378,7 @@ const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
378
378
  }), document.addEventListener("visibilitychange", () => {
379
379
  n = !0, document.visibilityState === "hidden" ? s() : e = !1;
380
380
  });
381
- }, Fs = (t) => t.toISOString(), ro = () => Fs(/* @__PURE__ */ new Date()), R = ":: ", oo = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts`, Ln = (t, e, n) => `Unable to load (${L(n) ? n : n.type}) the script with the id "${t}" from URL "${e}"`, ao = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}"`, lo = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, uo = "Failed to convert the value to a JSON string.", co = "Failed to encode the cookie data.", fo = "JSONStringify", ho = "[BigInt]", xs = "[Circular Reference]", go = (t, e, n) => {
381
+ }, Vs = (t) => t.toISOString(), oo = () => Vs(/* @__PURE__ */ new Date()), R = ":: ", ao = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts`, Nn = (t, e, n) => `Unable to load (${L(n) ? n : n.type}) the script with the id "${t}" from URL "${e}"`, lo = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}"`, uo = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, co = "Failed to convert the value to a JSON string.", fo = "Failed to encode the cookie data.", ho = "JSONStringify", go = "[BigInt]", Fs = "[Circular Reference]", mo = (t, e, n) => {
382
382
  const s = [];
383
383
  return function(i, r) {
384
384
  if (!(e != null && e.includes(i)) && !(t && le(r))) {
@@ -386,71 +386,71 @@ const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
386
386
  return r;
387
387
  for (; s.length > 0 && s[s.length - 1] !== this; )
388
388
  s.pop();
389
- return s.includes(r) ? (n == null || n.warn(lo(fo, i)), xs) : (s.push(r), r);
389
+ return s.includes(r) ? (n == null || n.warn(uo(ho, i)), Fs) : (s.push(r), r);
390
390
  }
391
391
  };
392
392
  }, de = (t, e, n, s) => {
393
393
  try {
394
- return JSON.stringify(t, go(e, n, s));
394
+ return JSON.stringify(t, mo(e, n, s));
395
395
  } catch (i) {
396
- return s == null || s.warn(uo, i), null;
396
+ return s == null || s.warn(co, i), null;
397
397
  }
398
- }, mo = (t) => {
398
+ }, po = (t) => {
399
399
  const e = [];
400
400
  return function(s, i) {
401
- if (xr(i))
402
- return ho;
401
+ if (Hr(i))
402
+ return go;
403
403
  for (; e.length > 0 && e[e.length - 1] !== this; )
404
404
  e.pop();
405
- return e.includes(i) ? xs : (e.push(i), i);
405
+ return e.includes(i) ? Fs : (e.push(i), i);
406
406
  };
407
- }, Hs = (t, e) => {
407
+ }, xs = (t, e) => {
408
408
  const n = Array.isArray(t) ? [] : {};
409
409
  for (const s in t)
410
410
  if (Object.hasOwnProperty.call(t, s)) {
411
411
  const i = t[s], r = e.call(t, s, i);
412
- M(r) || Array.isArray(r) ? n[s] = Hs(r, e) : n[s] = r;
412
+ M(r) || Array.isArray(r) ? n[s] = xs(r, e) : n[s] = r;
413
413
  }
414
414
  return n;
415
415
  }, O = (t, e) => {
416
- const n = mo(), s = n.call(t, "", t);
417
- return M(t) || Array.isArray(t) ? Hs(t, n) : s;
418
- }, Rt = "[SDK DISPATCHED ERROR]", En = (t) => {
416
+ const n = po(), s = n.call(t, "", t);
417
+ return M(t) || Array.isArray(t) ? xs(t, n) : s;
418
+ }, kt = "[SDK DISPATCHED ERROR]", bn = (t) => {
419
419
  const { stack: e, stacktrace: n } = t, s = t["opera#sourceloc"], i = e ?? n ?? s;
420
420
  if (i && typeof i == "string")
421
421
  return i;
422
- }, Sn = (t, e) => {
422
+ }, En = (t, e) => {
423
423
  let n = t;
424
- return vn(t) ? n.message = `${e}: ${t.message}` : n = new Error(`${e}: ${de(t)}`), n;
424
+ return pn(t) ? n.message = `${e}: ${t.message}` : n = new Error(`${e}: ${de(t)}`), n;
425
425
  }, B = (t) => {
426
- if (vn(t)) {
427
- const e = En(t);
426
+ if (pn(t)) {
427
+ const e = bn(t);
428
428
  if (e) {
429
429
  const { stack: n, stacktrace: s } = t, i = t["opera#sourceloc"];
430
430
  switch (e) {
431
431
  case n:
432
432
  t.stack = `${n}
433
- ${Rt}`;
433
+ ${kt}`;
434
434
  break;
435
435
  case s:
436
436
  t.stacktrace = `${s}
437
- ${Rt}`;
437
+ ${kt}`;
438
438
  break;
439
439
  case i:
440
440
  default:
441
441
  t["opera#sourceloc"] = `${i}
442
- ${Rt}`;
442
+ ${kt}`;
443
443
  break;
444
444
  }
445
445
  }
446
446
  }
447
447
  globalThis.dispatchEvent(new ErrorEvent("error", { error: t, bubbles: !0, cancelable: !0, composed: !0 }));
448
- }, wn = "RudderLabs JavaScript SDK", ut = "3.21.0", po = "com.rudderlabs.javascript", Gs = "npm", Mn = "RudderJS-Initiated", vo = "ad-block page request", yo = "/ad-blocked", ot = "preloadedEventsBuffer", bo = "Consent Management Interaction", Eo = "ajs_trait_", So = "ajs_prop_", $n = "ajs_aid", Un = "ajs_uid", Bn = "ajs_event", ko = 10 * 1e3, Ro = 31536e3 * 1e3, Vn = 12 * 60 * 60 * 1e3, sn = 30 * 60 * 1e3, Fn = 10 * 1e3, Io = 10 * 1e3, To = 250, js = (t = "app") => {
448
+ }, Ln = "RudderLabs JavaScript SDK", lt = "3.21.0", vo = "com.rudderlabs.javascript", Hs = "npm", wn = "RudderJS-Initiated", yo = "ad-block page request", bo = "/ad-blocked", rt = "preloadedEventsBuffer", Eo = "Consent Management Interaction", So = "ajs_trait_", ko = "ajs_prop_", Mn = "ajs_aid", $n = "ajs_uid", Un = "ajs_event", Ro = 10 * 1e3, Io = 31536e3 * 1e3, Bn = 12 * 60 * 60 * 1e3, nn = 30 * 60 * 1e3, Vn = 10 * 1e3, To = 10 * 1e3, Ao = 250, Gs = (t = "app") => {
449
449
  globalThis.RudderStackGlobals || (globalThis.RudderStackGlobals = {}), globalThis.RudderStackGlobals[t] || (globalThis.RudderStackGlobals[t] = {});
450
- }, ct = (t, e, n = "app") => {
451
- js(n), globalThis.RudderStackGlobals[n][t] = e;
452
- }, qs = (t, e = "app") => (js(e), globalThis.RudderStackGlobals[e][t]);
453
- function Ao(t, e, n = To) {
450
+ }, ut = (t, e, n = "app") => {
451
+ Gs(n), globalThis.RudderStackGlobals[n][t] = e;
452
+ }, js = (t, e = "app") => (Gs(e), globalThis.RudderStackGlobals[e][t]);
453
+ function Oo(t, e, n = Ao) {
454
454
  let s;
455
455
  return (...i) => {
456
456
  globalThis.clearTimeout(s), s = globalThis.setTimeout(() => {
@@ -458,7 +458,7 @@ function Ao(t, e, n = To) {
458
458
  }, n);
459
459
  };
460
460
  }
461
- const xn = (t, e) => {
461
+ const Fn = (t, e) => {
462
462
  const n = {};
463
463
  return t.forEach((s, i) => {
464
464
  if (i.startsWith(e)) {
@@ -466,10 +466,10 @@ const xn = (t, e) => {
466
466
  n[r] = t.get(i);
467
467
  }
468
468
  }), n;
469
- }, Oo = (t = []) => {
470
- const e = { trait: Eo, properties: So }, n = new URLSearchParams(globalThis.location.search);
471
- n.get(Bn) && t.unshift(["track", n.get(Bn), xn(n, e.properties)]), n.get(Un) && t.unshift(["identify", n.get(Un), xn(n, e.trait)]), n.get($n) && t.unshift(["setAnonymousId", n.get($n)]);
472
- }, Do = (t) => {
469
+ }, Do = (t = []) => {
470
+ const e = { trait: So, properties: ko }, n = new URLSearchParams(globalThis.location.search);
471
+ n.get(Un) && t.unshift(["track", n.get(Un), Fn(n, e.properties)]), n.get($n) && t.unshift(["identify", n.get($n), Fn(n, e.trait)]), n.get(Mn) && t.unshift(["setAnonymousId", n.get(Mn)]);
472
+ }, Co = (t) => {
473
473
  const e = "load";
474
474
  let n = [], s = 0;
475
475
  for (; s < t.length; ) {
@@ -480,31 +480,31 @@ const xn = (t, e) => {
480
480
  s += 1;
481
481
  }
482
482
  return n;
483
- }, Co = (t) => {
483
+ }, _o = (t) => {
484
484
  const e = "consent", n = t.filter((i) => i[0] === e), s = t.filter((i) => i[0] !== e);
485
485
  t.splice(0, t.length, ...n, ...s);
486
- }, _o = (t) => {
487
- const e = qs(ot) || [];
488
- Oo(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), ct(ot, []));
489
- }, Po = (t, e) => {
486
+ }, Po = (t) => {
487
+ const e = js(rt) || [];
488
+ Do(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), ut(rt, []));
489
+ }, No = (t, e) => {
490
490
  const n = t.shift();
491
491
  let s;
492
492
  if (S(e[n])) {
493
493
  switch (n) {
494
494
  case "page":
495
- s = Nt(...t);
495
+ s = Pt(...t);
496
496
  break;
497
497
  case "track":
498
- s = yn(...t);
498
+ s = vn(...t);
499
499
  break;
500
500
  case "identify":
501
- s = $s(...t);
501
+ s = Ms(...t);
502
502
  break;
503
503
  case "alias":
504
- s = Us(...t);
504
+ s = $s(...t);
505
505
  break;
506
506
  case "group":
507
- s = Bs(...t);
507
+ s = Us(...t);
508
508
  break;
509
509
  default:
510
510
  e[n](...t);
@@ -512,12 +512,12 @@ const xn = (t, e) => {
512
512
  }
513
513
  s && e[n](s);
514
514
  }
515
- }, No = 10 * 1e3, Lo = "RS_JS_SDK", wo = (t, e, n = !0, s = null, i = null, r = {}) => {
515
+ }, Lo = 10 * 1e3, wo = "RS_JS_SDK", Mo = (t, e, n = !0, s = null, i = null, r = {}) => {
516
516
  const a = document.createElement("script");
517
517
  return a.type = "text/javascript", a.onload = s, a.onerror = i, a.src = t, a.id = e, a.async = n, Object.keys(r).forEach((u) => {
518
518
  a.setAttribute(u, r[u]);
519
- }), a.setAttribute("data-loader", Lo), a;
520
- }, Mo = (t) => {
519
+ }), a.setAttribute("data-loader", wo), a;
520
+ }, $o = (t) => {
521
521
  var r, a, u, l;
522
522
  const e = document.getElementsByTagName("head");
523
523
  if (e.length > 0) {
@@ -533,23 +533,23 @@ const xn = (t, e) => {
533
533
  s.appendChild(t);
534
534
  const i = document.getElementsByTagName("html")[0];
535
535
  i == null || i.insertBefore(s, i.firstChild);
536
- }, $o = (t, e, n, s = !0, i) => new Promise((r, a) => {
537
- document.getElementById(e) && a(new Error(oo(e)));
536
+ }, Uo = (t, e, n, s = !0, i) => new Promise((r, a) => {
537
+ document.getElementById(e) && a(new Error(ao(e)));
538
538
  try {
539
539
  let l;
540
- Mo(wo(t, e, s, () => {
540
+ $o(Mo(t, e, s, () => {
541
541
  globalThis.clearTimeout(l), r(e);
542
542
  }, (h) => {
543
- globalThis.clearTimeout(l), a(new Error(Ln(e, t, h)));
543
+ globalThis.clearTimeout(l), a(new Error(Nn(e, t, h)));
544
544
  }, i)), l = globalThis.setTimeout(() => {
545
- a(new Error(ao(e, t, n)));
545
+ a(new Error(lo(e, t, n)));
546
546
  }, n);
547
547
  } catch (l) {
548
- a(Sn(l, Ln(e, t, "unknown")));
548
+ a(En(l, Nn(e, t, "unknown")));
549
549
  }
550
550
  });
551
- class zs {
552
- constructor(e, n = No) {
551
+ class qs {
552
+ constructor(e, n = Lo) {
553
553
  this.logger = e, this.timeout = n;
554
554
  }
555
555
  /**
@@ -557,23 +557,23 @@ class zs {
557
557
  */
558
558
  loadJSFile(e) {
559
559
  const { url: n, id: s, timeout: i, async: r, callback: a, extraAttributes: u } = e, l = !S(a);
560
- $o(n, s, i || this.timeout, r, u).then((c) => {
560
+ Uo(n, s, i || this.timeout, r, u).then((c) => {
561
561
  l || a(c);
562
562
  }).catch((c) => {
563
563
  l || a(s, c);
564
564
  });
565
565
  }
566
566
  }
567
- var Uo = Symbol.for("preact-signals");
568
- function Bt() {
567
+ var Bo = Symbol.for("preact-signals");
568
+ function Ut() {
569
569
  if (Re > 1)
570
570
  Re--;
571
571
  else {
572
- for (var t, e = !1; at !== void 0; ) {
573
- var n = at;
574
- for (at = void 0, rn++; n !== void 0; ) {
572
+ for (var t, e = !1; ot !== void 0; ) {
573
+ var n = ot;
574
+ for (ot = void 0, sn++; n !== void 0; ) {
575
575
  var s = n.o;
576
- if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ws(n)) try {
576
+ if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ks(n)) try {
577
577
  n.c();
578
578
  } catch (i) {
579
579
  e || (t = i, e = !0);
@@ -581,7 +581,7 @@ function Bt() {
581
581
  n = s;
582
582
  }
583
583
  }
584
- if (rn = 0, Re--, e) throw t;
584
+ if (sn = 0, Re--, e) throw t;
585
585
  }
586
586
  }
587
587
  function j(t) {
@@ -590,11 +590,11 @@ function j(t) {
590
590
  try {
591
591
  return t();
592
592
  } finally {
593
- Bt();
593
+ Ut();
594
594
  }
595
595
  }
596
596
  var D = void 0;
597
- function Ks(t) {
597
+ function zs(t) {
598
598
  var e = D;
599
599
  D = void 0;
600
600
  try {
@@ -603,7 +603,7 @@ function Ks(t) {
603
603
  D = e;
604
604
  }
605
605
  }
606
- var at = void 0, Re = 0, rn = 0, Lt = 0;
606
+ var ot = void 0, Re = 0, sn = 0, Nt = 0;
607
607
  function Ys(t) {
608
608
  if (D !== void 0) {
609
609
  var e = t.n;
@@ -616,13 +616,13 @@ function Ys(t) {
616
616
  function q(t, e) {
617
617
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.W = e == null ? void 0 : e.watched, this.Z = e == null ? void 0 : e.unwatched;
618
618
  }
619
- q.prototype.brand = Uo;
619
+ q.prototype.brand = Bo;
620
620
  q.prototype.h = function() {
621
621
  return !0;
622
622
  };
623
623
  q.prototype.S = function(t) {
624
624
  var e = this, n = this.t;
625
- n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t : Ks(function() {
625
+ n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t : zs(function() {
626
626
  var s;
627
627
  (s = e.W) == null || s.call(e);
628
628
  }));
@@ -631,7 +631,7 @@ q.prototype.U = function(t) {
631
631
  var e = this;
632
632
  if (this.t !== void 0) {
633
633
  var n = t.e, s = t.x;
634
- n !== void 0 && (n.x = s, t.e = void 0), s !== void 0 && (s.e = n, t.x = void 0), t === this.t && (this.t = s, s === void 0 && Ks(function() {
634
+ n !== void 0 && (n.x = s, t.e = void 0), s !== void 0 && (s.e = n, t.x = void 0), t === this.t && (this.t = s, s === void 0 && zs(function() {
635
635
  var i;
636
636
  (i = e.Z) == null || i.call(e);
637
637
  }));
@@ -672,23 +672,23 @@ Object.defineProperty(q.prototype, "value", { get: function() {
672
672
  return t !== void 0 && (t.i = this.i), this.v;
673
673
  }, set: function(t) {
674
674
  if (t !== this.v) {
675
- if (rn > 100) throw new Error("Cycle detected");
676
- this.v = t, this.i++, Lt++, Re++;
675
+ if (sn > 100) throw new Error("Cycle detected");
676
+ this.v = t, this.i++, Nt++, Re++;
677
677
  try {
678
678
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
679
679
  } finally {
680
- Bt();
680
+ Ut();
681
681
  }
682
682
  }
683
683
  } });
684
684
  function p(t, e) {
685
685
  return new q(t, e);
686
686
  }
687
- function Ws(t) {
687
+ function Ks(t) {
688
688
  for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0;
689
689
  return !1;
690
690
  }
691
- function Qs(t) {
691
+ function Ws(t) {
692
692
  for (var e = t.s; e !== void 0; e = e.n) {
693
693
  var n = e.S.n;
694
694
  if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -697,7 +697,7 @@ function Qs(t) {
697
697
  }
698
698
  }
699
699
  }
700
- function Xs(t) {
700
+ function Qs(t) {
701
701
  for (var e = t.s, n = void 0; e !== void 0; ) {
702
702
  var s = e.p;
703
703
  e.i === -1 ? (e.S.U(e), s !== void 0 && (s.n = e.n), e.n !== void 0 && (e.n.p = s)) : n = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = s;
@@ -705,23 +705,23 @@ function Xs(t) {
705
705
  t.s = n;
706
706
  }
707
707
  function We(t, e) {
708
- q.call(this, void 0), this.x = t, this.s = void 0, this.g = Lt - 1, this.f = 4, this.W = e == null ? void 0 : e.watched, this.Z = e == null ? void 0 : e.unwatched;
708
+ q.call(this, void 0), this.x = t, this.s = void 0, this.g = Nt - 1, this.f = 4, this.W = e == null ? void 0 : e.watched, this.Z = e == null ? void 0 : e.unwatched;
709
709
  }
710
710
  We.prototype = new q();
711
711
  We.prototype.h = function() {
712
712
  if (this.f &= -3, 1 & this.f) return !1;
713
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Lt)) return !0;
714
- if (this.g = Lt, this.f |= 1, this.i > 0 && !Ws(this))
713
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Nt)) return !0;
714
+ if (this.g = Nt, this.f |= 1, this.i > 0 && !Ks(this))
715
715
  return this.f &= -2, !0;
716
716
  var t = D;
717
717
  try {
718
- Qs(this), D = this;
718
+ Ws(this), D = this;
719
719
  var e = this.x();
720
720
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
721
721
  } catch (n) {
722
722
  this.v = n, this.f |= 16, this.i++;
723
723
  }
724
- return D = t, Xs(this), this.f &= -2, !0;
724
+ return D = t, Qs(this), this.f &= -2, !0;
725
725
  };
726
726
  We.prototype.S = function(t) {
727
727
  if (this.t === void 0) {
@@ -748,7 +748,7 @@ Object.defineProperty(We.prototype, "value", { get: function() {
748
748
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
749
749
  return this.v;
750
750
  } });
751
- function Js(t) {
751
+ function Xs(t) {
752
752
  var e = t.u;
753
753
  if (t.u = void 0, typeof e == "function") {
754
754
  Re++;
@@ -757,19 +757,19 @@ function Js(t) {
757
757
  try {
758
758
  e();
759
759
  } catch (s) {
760
- throw t.f &= -2, t.f |= 8, kn(t), s;
760
+ throw t.f &= -2, t.f |= 8, Sn(t), s;
761
761
  } finally {
762
- D = n, Bt();
762
+ D = n, Ut();
763
763
  }
764
764
  }
765
765
  }
766
- function kn(t) {
766
+ function Sn(t) {
767
767
  for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
768
- t.x = void 0, t.s = void 0, Js(t);
768
+ t.x = void 0, t.s = void 0, Xs(t);
769
769
  }
770
- function Bo(t) {
770
+ function Vo(t) {
771
771
  if (D !== this) throw new Error("Out-of-order effect");
772
- Xs(this), D = t, this.f &= -2, 8 & this.f && kn(this), Bt();
772
+ Qs(this), D = t, this.f &= -2, 8 & this.f && Sn(this), Ut();
773
773
  }
774
774
  function Qe(t) {
775
775
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -786,15 +786,15 @@ Qe.prototype.c = function() {
786
786
  };
787
787
  Qe.prototype.S = function() {
788
788
  if (1 & this.f) throw new Error("Cycle detected");
789
- this.f |= 1, this.f &= -9, Js(this), Qs(this), Re++;
789
+ this.f |= 1, this.f &= -9, Xs(this), Ws(this), Re++;
790
790
  var t = D;
791
- return D = this, Bo.bind(this, t);
791
+ return D = this, Vo.bind(this, t);
792
792
  };
793
793
  Qe.prototype.N = function() {
794
- 2 & this.f || (this.f |= 2, this.o = at, at = this);
794
+ 2 & this.f || (this.f |= 2, this.o = ot, ot = this);
795
795
  };
796
796
  Qe.prototype.d = function() {
797
- this.f |= 8, 1 & this.f || kn(this);
797
+ this.f |= 8, 1 & this.f || Sn(this);
798
798
  };
799
799
  Qe.prototype.dispose = function() {
800
800
  this.d();
@@ -808,7 +808,7 @@ function fe(t) {
808
808
  }
809
809
  return e.d.bind(e);
810
810
  }
811
- class Vo {
811
+ class Fo {
812
812
  constructor() {
813
813
  this.items = [];
814
814
  }
@@ -828,10 +828,10 @@ class Vo {
828
828
  this.items = [];
829
829
  }
830
830
  }
831
- const pt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Hn = "LOG", Zs = "ERROR", Fo = "RS SDK", xo = "font-weight: bold; background: black; color: white;", Ho = "font-weight: normal;";
832
- class Go {
833
- constructor(e = Hn, n = "", s = console) {
834
- this.minLogLevel = pt[e], this.scope = n, this.logProvider = s;
831
+ const mt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, xn = "LOG", Js = "ERROR", xo = "RS SDK", Ho = "font-weight: bold; background: black; color: white;", Go = "font-weight: normal;";
832
+ class jo {
833
+ constructor(e = xn, n = "", s = console) {
834
+ this.minLogLevel = mt[e], this.scope = n, this.logProvider = s;
835
835
  }
836
836
  log(...e) {
837
837
  this.outputLog("LOG", e);
@@ -850,7 +850,7 @@ class Go {
850
850
  }
851
851
  outputLog(e, n) {
852
852
  var s, i;
853
- this.minLogLevel <= pt[e] && ((i = (s = this.logProvider)[e.toLowerCase()]) == null || i.call(s, ...this.formatLogData(n)));
853
+ this.minLogLevel <= mt[e] && ((i = (s = this.logProvider)[e.toLowerCase()]) == null || i.call(s, ...this.formatLogData(n)));
854
854
  }
855
855
  setScope(e) {
856
856
  this.scope = e || this.scope;
@@ -858,22 +858,22 @@ class Go {
858
858
  // TODO: should we allow to change the level via global variable on run time
859
859
  // to assist on the fly debugging?
860
860
  setMinLogLevel(e) {
861
- this.minLogLevel = pt[e], x(this.minLogLevel) && (this.minLogLevel = pt[Hn]);
861
+ this.minLogLevel = mt[e], x(this.minLogLevel) && (this.minLogLevel = mt[xn]);
862
862
  }
863
863
  /**
864
864
  * Formats the console message using `scope` and styles
865
865
  */
866
866
  formatLogData(e) {
867
867
  if (Array.isArray(e) && e.length > 0) {
868
- let n = `%c ${Fo}`;
868
+ let n = `%c ${xo}`;
869
869
  this.scope && (n = `${n} - ${this.scope}`);
870
870
  const s = L(e[0]) ? e[0].trim() : "";
871
871
  n = `${n} %c ${s}`;
872
872
  const i = [
873
873
  n,
874
- xo,
874
+ Ho,
875
875
  // add style for the prefix
876
- Ho
876
+ Go
877
877
  // reset the style for the actual message
878
878
  ];
879
879
  return L(e[0]) || i.push(e[0]), i.push(...e.slice(1)), i;
@@ -881,27 +881,27 @@ class Go {
881
881
  return e;
882
882
  }
883
883
  }
884
- const ye = new Go();
884
+ const ye = new jo();
885
885
  let me = /* @__PURE__ */ function(t) {
886
886
  return t.HANDLEDEXCEPTION = "handledException", t.UNHANDLEDEXCEPTION = "unhandledException", t.UNHANDLEDREJECTION = "unhandledPromiseRejection", t;
887
887
  }({});
888
- const ei = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], on = "cookieStorage", Gn = "Unable to process/parse source configuration response", jo = "The source is disabled. Please enable the source in the dashboard to send events.", qo = "Failed to prepare data for the request.", zo = "Failed to invoke plugin because the extension point name is missing.", Ko = "Failed to invoke plugin because the extension point name is invalid.", Yo = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, Wo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, Qo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Xo = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, jn = "Failed to log breadcrumb", Jo = (t) => `${t}${R}Failed to handle the error.`, Zo = (t) => `${t}${R}Plugin name is missing.`, ea = (t, e) => `${t}${R}Plugin "${e}" already exists.`, ta = (t, e) => `${t}${R}Plugin "${e}" not found.`, na = (t, e) => `${t}${R}Plugin "${e}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`, sa = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, ia = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, ra = (t, e) => `${t}${R}The "${e}" storage type is `, qn = "Failed to fetch the source config", oa = (t, e) => `${t}${R}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, aa = (t, e) => `${t}${R}The data plane URL "${e}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`, ti = (t) => `${t}${R}The provided callback parameter is not a function.`, la = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, ua = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, ca = (t, e) => `${t} for URL: ${e}`, da = (t) => `Failed to save the value for "${t}" to storage`, fa = (t) => `Failed to retrieve or parse data for "${t}" from storage`, ha = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, ga = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, zn = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", ma = (t, e, n) => `${t}${R}The storage type "${e}" is not supported. Please choose one of the following supported types: "${ei}". The default type "${n}" will be used instead.`, pa = (t, e, n, s) => `${t}${R}The storage encryption version "${e}" is not supported. Please choose one of the following supported versions: "${Object.keys(n)}". The default version "${s}" will be used instead.`, va = (t, e, n) => `${t}${R}The storage data migration has been disabled because the configured storage encryption version (${e}) is not the latest (${n}). To enable storage data migration, please update the storage encryption version to the latest version.`, ya = (t, e, n) => `${t}${R}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, ba = (t, e, n, s) => `${t}${R}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, Ea = (t) => `${t}${R}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, Sa = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, ka = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, Ra = (t, e, n) => `${t}${R}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, Ia = (t, e, n) => `${t}${R}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, Ta = (t) => `${t}${R}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`, Aa = (t, e, n) => `${t}${R}The session timeout value ${e} ms is less than the recommended minimum of ${n} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`, Oa = (t, e, n) => `${t}${R}The provided session ID (${e}) is either invalid, not a positive integer, or not at least "${n}" digits long. A new session ID will be auto-generated instead.`, Da = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Ca = (t, e, n, s) => `${t}${R}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, _a = (t) => `${t}${R}The callback threw an exception`, Pa = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, Na = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, La = (t, e, n) => `${t}${R}The pre-consent storage strategy "${e}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${n}" will be used instead.`, wa = (t, e, n) => `${t}${R}The pre-consent events delivery type "${e}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${n}" will be used instead.`, Ma = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, $a = (t, e, n, s) => {
888
+ const Zs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], rn = "cookieStorage", Hn = "Unable to process/parse source configuration response", qo = "The source is disabled. Please enable the source in the dashboard to send events.", zo = "Failed to prepare data for the request.", Yo = "Failed to invoke plugin because the extension point name is missing.", Ko = "Failed to invoke plugin because the extension point name is invalid.", Wo = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, Qo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, Xo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Jo = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, Gn = "Failed to log breadcrumb", Zo = (t) => `${t}${R}Failed to handle the error.`, ea = (t) => `${t}${R}Plugin name is missing.`, ta = (t, e) => `${t}${R}Plugin "${e}" already exists.`, na = (t, e) => `${t}${R}Plugin "${e}" not found.`, sa = (t, e) => `${t}${R}Plugin "${e}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`, ia = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, ra = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, oa = (t, e) => `${t}${R}The "${e}" storage type is `, jn = "Failed to fetch the source config", aa = (t, e) => `${t}${R}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, la = (t, e) => `${t}${R}The data plane URL "${e}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`, ei = (t) => `${t}${R}The provided callback parameter is not a function.`, ua = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, ca = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, da = (t, e) => `${t} for URL: ${e}`, fa = (t) => `Failed to save the value for "${t}" to storage`, ha = (t) => `Failed to retrieve or parse data for "${t}" from storage`, ga = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, ma = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, qn = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", pa = (t, e, n) => `${t}${R}The storage type "${e}" is not supported. Please choose one of the following supported types: "${Zs}". The default type "${n}" will be used instead.`, va = (t, e, n, s) => `${t}${R}The storage encryption version "${e}" is not supported. Please choose one of the following supported versions: "${Object.keys(n)}". The default version "${s}" will be used instead.`, ya = (t, e, n) => `${t}${R}The storage data migration has been disabled because the configured storage encryption version (${e}) is not the latest (${n}). To enable storage data migration, please update the storage encryption version to the latest version.`, ba = (t, e, n) => `${t}${R}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, Ea = (t, e, n, s) => `${t}${R}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, Sa = (t) => `${t}${R}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, ka = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, Ra = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, Ia = (t, e, n) => `${t}${R}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, Ta = (t, e, n) => `${t}${R}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, Aa = (t) => `${t}${R}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`, Oa = (t, e, n) => `${t}${R}The session timeout value ${e} ms is less than the recommended minimum of ${n} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`, Da = (t, e, n) => `${t}${R}The provided session ID (${e}) is either invalid, not a positive integer, or not at least "${n}" digits long. A new session ID will be auto-generated instead.`, Ca = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, _a = (t, e, n, s) => `${t}${R}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, Pa = (t) => `${t}${R}The callback threw an exception`, Na = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, La = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, wa = (t, e, n) => `${t}${R}The pre-consent storage strategy "${e}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${n}" will be used instead.`, Ma = (t, e, n) => `${t}${R}The pre-consent events delivery type "${e}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${n}" will be used instead.`, $a = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, Ua = (t, e, n, s) => {
889
889
  const i = n.length === 1, r = i ? ` '${n[0]}' plugin was` : ` ['${n.join("', '")}'] plugins were`, a = `${t}${R}${e}, but${r} not configured to load.`;
890
890
  return s ? `${a} So, ${i ? "the plugin" : "those plugins"} will be loaded automatically.` : `${a} Ignore if this was intentional. Otherwise, consider adding ${i ? "it" : "them"} to the 'plugins' load API option.`;
891
- }, Ua = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Ba = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Va = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, ni = { All: !0 }, Rn = "js-integrations", si = "plugins", Fa = new RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"), dt = "modern", Vt = "https://cdn.rudderlabs.com", In = "v3", ii = `${Vt}/${In}/${dt}/${Rn}`, ri = `${Vt}/${In}/${dt}/${si}`, oi = "https://api.rudderstack.com", Ce = "v3", xa = "xhr", an = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, It = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, Ha = { [xa]: "XhrQueue", beacon: "BeaconQueue" }, Ga = "rsaRequest", ja = "rsaMetrics", qa = { configUrl: oi, loadIntegration: !0, sessions: { autoTrack: !0, timeout: sn, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: ni, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: Io, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, za = p(T(qa)), A = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, Ka = 10, Ya = { userId: p(A.userId), userTraits: p(A.userTraits), anonymousId: p(A.anonymousId), groupId: p(A.groupId), groupTraits: p(A.groupTraits), initialReferrer: p(A.initialReferrer), initialReferringDomain: p(A.initialReferringDomain), sessionInfo: p(A.sessionInfo), authToken: p(A.authToken) }, Wa = { isOnline: p(!0), storage: { isLocalStorageAvailable: p(!1), isCookieStorageAvailable: p(!1), isSessionStorageAvailable: p(!1) }, isBeaconAvailable: p(!1), isLegacyDOM: p(!1), isUaCHAvailable: p(!1), isCryptoAvailable: p(!1), isIE11: p(!1), isAdBlockerDetectionInProgress: p(!1), isAdBlocked: p(void 0), cspBlockedURLs: p([]) }, Qa = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Xa = p(void 0), Ja = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(ii), pluginsCDNPath: p(ri), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Zs), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, Za = { enabled: p(!1), initialized: p(!1), data: p({}), activeConsentManagerPluginName: p(void 0), preConsent: p({ enabled: !1 }), postConsent: p({}), resolutionStrategy: p("and"), provider: p(void 0), metadata: p(void 0) }, el = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, tl = { app: p({ name: wn, namespace: po, version: ut, installType: Gs }), traits: p(null), library: p({ name: wn, version: ut, snippetVersion: globalThis.RudderSnippetVersion }), userAgent: p(null), device: p(null), network: p(null), os: p({ name: "", version: "" }), locale: p(null), screen: p({ density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 }), "ua-ch": p(void 0), timezone: p(void 0) }, nl = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, sl = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, il = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, rl = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, ol = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, al = {
891
+ }, Ba = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Va = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Fa = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, ti = { All: !0 }, kn = "js-integrations", ni = "plugins", xa = new RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"), ct = "modern", Bt = "https://cdn.rudderlabs.com", Rn = "v3", si = `${Bt}/${Rn}/${ct}/${kn}`, ii = `${Bt}/${Rn}/${ct}/${ni}`, ri = "https://api.rudderstack.com", Ce = "v3", Ha = "xhr", on = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, Rt = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, Ga = { [Ha]: "XhrQueue", beacon: "BeaconQueue" }, ja = "rsaRequest", qa = "rsaMetrics", za = { configUrl: ri, loadIntegration: !0, sessions: { autoTrack: !0, timeout: nn, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: ti, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: To, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, Ya = p(T(za)), A = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, Ka = 10, Wa = { userId: p(A.userId), userTraits: p(A.userTraits), anonymousId: p(A.anonymousId), groupId: p(A.groupId), groupTraits: p(A.groupTraits), initialReferrer: p(A.initialReferrer), initialReferringDomain: p(A.initialReferringDomain), sessionInfo: p(A.sessionInfo), authToken: p(A.authToken) }, Qa = { isOnline: p(!0), storage: { isLocalStorageAvailable: p(!1), isCookieStorageAvailable: p(!1), isSessionStorageAvailable: p(!1) }, isBeaconAvailable: p(!1), isLegacyDOM: p(!1), isUaCHAvailable: p(!1), isCryptoAvailable: p(!1), isIE11: p(!1), isAdBlockerDetectionInProgress: p(!1), isAdBlocked: p(void 0), cspBlockedURLs: p([]) }, Xa = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Ja = p(void 0), Za = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(si), pluginsCDNPath: p(ii), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Js), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, el = { enabled: p(!1), initialized: p(!1), data: p({}), activeConsentManagerPluginName: p(void 0), preConsent: p({ enabled: !1 }), postConsent: p({}), resolutionStrategy: p("and"), provider: p(void 0), metadata: p(void 0) }, tl = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, nl = { app: p({ name: Ln, namespace: vo, version: lt, installType: Hs }), traits: p(null), library: p({ name: Ln, version: lt, snippetVersion: globalThis.RudderSnippetVersion }), userAgent: p(null), device: p(null), network: p(null), os: p({ name: "", version: "" }), locale: p(null), screen: p({ density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 }), "ua-ch": p(void 0), timezone: p(void 0) }, sl = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, il = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, rl = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, ol = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, al = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, ll = {
892
892
  eventsQueuePluginName: p(void 0),
893
893
  deliveryEnabled: p(!0)
894
894
  // Delivery should always happen
895
- }, ll = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, ul = { capabilities: Wa, consents: Za, context: tl, eventBuffer: sl, lifecycle: Ja, loadOptions: za, metrics: el, nativeDestinations: nl, plugins: il, reporting: Qa, session: Ya, source: Xa, storage: rl, serverCookies: ol, dataPlaneEvents: al, autoTrack: ll }, o = { ...T(ul) };
896
- function ai(t) {
895
+ }, ul = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, cl = { capabilities: Qa, consents: el, context: nl, eventBuffer: il, lifecycle: Za, loadOptions: Ya, metrics: tl, nativeDestinations: sl, plugins: rl, reporting: Xa, session: Wa, source: Ja, storage: ol, serverCookies: al, dataPlaneEvents: ll, autoTrack: ul }, o = { ...T(cl) };
896
+ function oi(t) {
897
897
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
898
898
  }
899
- var Tt = { exports: {} }, At = { exports: {} }, cl = At.exports, Kn;
900
- function dl() {
901
- return Kn || (Kn = 1, function(t, e) {
899
+ var It = { exports: {} }, Tt = { exports: {} }, dl = Tt.exports, zn;
900
+ function fl() {
901
+ return zn || (zn = 1, function(t, e) {
902
902
  (function(n, s) {
903
903
  t.exports = s();
904
- })(cl, function() {
904
+ })(dl, function() {
905
905
  function n(m) {
906
906
  return !isNaN(parseFloat(m)) && isFinite(m);
907
907
  }
@@ -965,14 +965,14 @@ function dl() {
965
965
  }(u[f]);
966
966
  return h;
967
967
  });
968
- }(At)), At.exports;
968
+ }(Tt)), Tt.exports;
969
969
  }
970
- var fl = Tt.exports, Yn;
971
- function hl() {
970
+ var hl = It.exports, Yn;
971
+ function gl() {
972
972
  return Yn || (Yn = 1, function(t, e) {
973
973
  (function(n, s) {
974
- t.exports = s(dl());
975
- })(fl, function(s) {
974
+ t.exports = s(fl());
975
+ })(hl, function(s) {
976
976
  var i = /(^|@)\S+:\d+/, r = /^\s*at .*(\S+:\d+|\(native\))/m, a = /^(eval@)?(\[native code])?$/;
977
977
  return {
978
978
  /**
@@ -1059,16 +1059,16 @@ function hl() {
1059
1059
  }
1060
1060
  };
1061
1061
  });
1062
- }(Tt)), Tt.exports;
1062
+ }(It)), It.exports;
1063
1063
  }
1064
- var gl = hl();
1065
- const ml = /* @__PURE__ */ ai(gl), li = "global code", pl = (t) => C(t) && /^global code$/i.test(t) ? li : t, vl = (t) => {
1066
- const e = { file: t.fileName, method: pl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1067
- return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = li), e;
1068
- }, Wn = (t) => L(t) ? t : "";
1069
- function Qn(t, e, n, s) {
1070
- return { errorClass: Wn(t), message: `${n}${Wn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
1071
- const a = vl(r);
1064
+ var ml = gl();
1065
+ const pl = /* @__PURE__ */ oi(ml), ai = "global code", vl = (t) => C(t) && /^global code$/i.test(t) ? ai : t, yl = (t) => {
1066
+ const e = { file: t.fileName, method: vl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1067
+ return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = ai), e;
1068
+ }, Kn = (t) => L(t) ? t : "";
1069
+ function Wn(t, e, n, s) {
1070
+ return { errorClass: Kn(t), message: `${n}${Kn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
1071
+ const a = yl(r);
1072
1072
  try {
1073
1073
  return JSON.stringify(a) === "{}" ? i : i.concat(a);
1074
1074
  } catch {
@@ -1076,38 +1076,38 @@ function Qn(t, e, n, s) {
1076
1076
  }
1077
1077
  }, []) };
1078
1078
  }
1079
- const ui = (t, e) => {
1079
+ const li = (t, e) => {
1080
1080
  let n;
1081
- return vn(t) && L(En(t)) ? n = t : (e.warn(Xo(st, de(t))), n = void 0), n;
1082
- }, yl = (t, e) => {
1081
+ return pn(t) && L(bn(t)) ? n = t : (e.warn(Jo(nt, de(t))), n = void 0), n;
1082
+ }, bl = (t, e) => {
1083
1083
  try {
1084
- const n = ml.parse(t);
1085
- return Qn(t.name, t.message, e, n);
1084
+ const n = pl.parse(t);
1085
+ return Wn(t.name, t.message, e, n);
1086
1086
  } catch {
1087
- return Qn(t.name, t.message, e, []);
1087
+ return Wn(t.name, t.message, e, []);
1088
1088
  }
1089
- }, Xn = (t, e) => {
1089
+ }, Qn = (t, e) => {
1090
1090
  try {
1091
1091
  return JSON.parse(t || "");
1092
1092
  } catch (n) {
1093
- const s = Sn(n, "Failed to parse response data");
1093
+ const s = En(n, "Failed to parse response data");
1094
1094
  e(s);
1095
1095
  }
1096
- }, Ot = "The request failed", bl = [/Failed to fetch dynamically imported module: .*/], El = [/Unable to load \(.*\) the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], Sl = [new RegExp(`${Ot}.*`), /A script with the id .* is already loaded\./], kl = [...bl, ...El], Rl = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Jn = (t, e, n) => {
1097
- const s = H(Rl, e || {});
1096
+ }, At = "The request failed", El = [/Failed to fetch dynamically imported module: .*/], Sl = [/Unable to load \(.*\) the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], kl = [new RegExp(`${At}.*`), /A script with the id .* is already loaded\./], Rl = [...El, ...Sl], Il = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Xn = (t, e, n) => {
1097
+ const s = H(Il, e || {});
1098
1098
  return n && (s.headers = H(s.headers, { Authorization: n })), s.url = t, s;
1099
- }, Zn = (t, e = ko, n) => new Promise((s, i) => {
1099
+ }, Jn = (t, e = Ro, n) => new Promise((s, i) => {
1100
1100
  let r;
1101
1101
  if (t.sendRawData === !0)
1102
1102
  r = t.data;
1103
1103
  else if (r = de(t.data, !1, [], n), ne(r)) {
1104
- i({ error: new Error(qo), undefined: void 0, options: t });
1104
+ i({ error: new Error(zo), undefined: void 0, options: t });
1105
1105
  return;
1106
1106
  }
1107
1107
  const a = new XMLHttpRequest(), u = (c) => {
1108
- i({ error: new Error(la(Ot, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1108
+ i({ error: new Error(ua(At, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1109
1109
  }, l = (c) => {
1110
- i({ error: new Error(ua(Ot, c, t.url)), xhr: a, options: t, ...(c == null ? void 0 : c.type) === "timeout" ? { timedOut: !0 } : {} });
1110
+ i({ error: new Error(ca(At, c, t.url)), xhr: a, options: t, ...(c == null ? void 0 : c.type) === "timeout" ? { timedOut: !0 } : {} });
1111
1111
  };
1112
1112
  a.ontimeout = l, a.onerror = l, a.onload = () => {
1113
1113
  a.status >= 200 && a.status < 400 ? s({ response: a.responseText, xhr: a, options: t }) : u();
@@ -1117,10 +1117,10 @@ const ui = (t, e) => {
1117
1117
  try {
1118
1118
  a.send(r);
1119
1119
  } catch (c) {
1120
- i({ error: Sn(c, ca(Ot, t.url)), xhr: a, options: t });
1120
+ i({ error: En(c, da(At, t.url)), xhr: a, options: t });
1121
1121
  }
1122
1122
  });
1123
- class Il {
1123
+ class Tl {
1124
1124
  constructor(e) {
1125
1125
  this.logger = e, this.onError = this.onError.bind(this);
1126
1126
  }
@@ -1133,8 +1133,8 @@ class Il {
1133
1133
  async getData(e) {
1134
1134
  const { url: n, options: s, timeout: i, isRawResponse: r } = e;
1135
1135
  try {
1136
- const a = await Zn(Jn(n, s, this.basicAuthHeader), i, this.logger);
1137
- return { data: r ? a.response : Xn(a.response, this.onError), details: a };
1136
+ const a = await Jn(Xn(n, s, this.basicAuthHeader), i, this.logger);
1137
+ return { data: r ? a.response : Qn(a.response, this.onError), details: a };
1138
1138
  } catch (a) {
1139
1139
  return { data: void 0, details: a };
1140
1140
  }
@@ -1144,8 +1144,8 @@ class Il {
1144
1144
  */
1145
1145
  getAsyncData(e) {
1146
1146
  const { callback: n, url: s, options: i, timeout: r, isRawResponse: a } = e, u = !S(n);
1147
- Zn(Jn(s, i, this.basicAuthHeader), r, this.logger).then((l) => {
1148
- u || n(a ? l.response : Xn(l.response, this.onError), l);
1147
+ Jn(Xn(s, i, this.basicAuthHeader), r, this.logger).then((l) => {
1148
+ u || n(a ? l.response : Qn(l.response, this.onError), l);
1149
1149
  }).catch((l) => {
1150
1150
  u || n(void 0, l);
1151
1151
  });
@@ -1155,13 +1155,13 @@ class Il {
1155
1155
  */
1156
1156
  onError(e, n) {
1157
1157
  var s;
1158
- (s = this.errorHandler) == null || s.onError({ error: e, context: Jr, groupingHash: n });
1158
+ (s = this.errorHandler) == null || s.onError({ error: e, context: Zr, groupingHash: n });
1159
1159
  }
1160
1160
  /**
1161
1161
  * Set basic authentication header (eg writekey)
1162
1162
  */
1163
1163
  setAuthHeader(e, n = !1) {
1164
- const s = n ? e : Wr(`${e}:`);
1164
+ const s = n ? e : Qr(`${e}:`);
1165
1165
  this.basicAuthHeader = `Basic ${s}`;
1166
1166
  }
1167
1167
  /**
@@ -1171,10 +1171,10 @@ class Il {
1171
1171
  this.basicAuthHeader = void 0;
1172
1172
  }
1173
1173
  }
1174
- const ci = new Il(ye), Tl = "1", Al = () => [
1174
+ const ui = new Tl(ye), Al = "1", Ol = () => [
1175
1175
  "rsa"
1176
1176
  // Prefix for all the SDK scripts including plugins and module federated chunks
1177
- ], Ol = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Dl = [
1177
+ ], Dl = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Cl = [
1178
1178
  "userId",
1179
1179
  "userTraits",
1180
1180
  "groupId",
@@ -1187,7 +1187,7 @@ const ci = new Il(ye), Tl = "1", Al = () => [
1187
1187
  // pre-load event buffer (may contain PII)
1188
1188
  "traits",
1189
1189
  "authToken"
1190
- ], Cl = "RudderStack JavaScript SDK", _l = "__REPOSITORY_URL__", Pl = "js", di = (t) => {
1190
+ ], _l = "RudderStack JavaScript SDK", Pl = "__REPOSITORY_URL__", Nl = "js", ci = (t) => {
1191
1191
  o.capabilities.isAdBlockerDetectionInProgress.value = !0;
1192
1192
  try {
1193
1193
  const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
@@ -1202,7 +1202,7 @@ const ci = new Il(ye), Tl = "1", Al = () => [
1202
1202
  } catch (e) {
1203
1203
  throw o.capabilities.isAdBlockerDetectionInProgress.value = !1, e;
1204
1204
  }
1205
- }, Nl = (t, e) => {
1205
+ }, Ll = (t, e) => {
1206
1206
  switch (e) {
1207
1207
  case me.UNHANDLEDEXCEPTION: {
1208
1208
  const { error: n } = t;
@@ -1214,53 +1214,53 @@ const ci = new Il(ye), Tl = "1", Al = () => [
1214
1214
  default:
1215
1215
  return t;
1216
1216
  }
1217
- }, Ll = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), wl = () => {
1217
+ }, wl = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), Ml = () => {
1218
1218
  const t = globalThis.location.hostname;
1219
- return !t || t && Ol.includes(t) ? "development" : "production";
1220
- }, Ml = (t) => {
1221
- const e = de(t, !1, Dl);
1219
+ return !t || t && Dl.includes(t) ? "development" : "production";
1220
+ }, $l = (t) => {
1221
+ const e = de(t, !1, Cl);
1222
1222
  return e !== null ? JSON.parse(e) : {};
1223
- }, $l = () => globalThis.location.href.split("?")[0], Ul = (t, e, n, s) => {
1223
+ }, Ul = () => globalThis.location.href.split("?")[0], Bl = (t, e, n, s) => {
1224
1224
  var i, r;
1225
1225
  return { id: `${((i = t.value) == null ? void 0 : i.id) ?? n.writeKey.value}..${e.sessionInfo.value.id ?? "NA"}..${s.pageLifecycle.pageViewId.value ?? "NA"}`, name: ((r = t.value) == null ? void 0 : r.name) ?? "NA" };
1226
- }, Bl = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Vl = (t, e, n, s) => {
1226
+ }, Vl = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Fl = (t, e, n, s) => {
1227
1227
  const { context: i, lifecycle: r, session: a, source: u, reporting: l, autoTrack: c } = n, { app: d, locale: h, userAgent: y, timezone: g, screen: f, library: m } = i;
1228
- return { payloadVersion: "5", notifier: { name: Cl, version: d.value.version, url: _l }, events: [{ exceptions: [T(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: wl(), type: d.value.installType }, device: Bl(h, y), request: { url: $l(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: T(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
1228
+ return { payloadVersion: "5", notifier: { name: _l, version: d.value.version, url: Pl }, events: [{ exceptions: [T(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: Ml(), type: d.value.installType }, device: Vl(h, y), request: { url: Ul(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: T(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
1229
1229
  app: { snippetVersion: m.value.snippetVersion },
1230
1230
  device: { ...f.value, timezone: g.value },
1231
1231
  // Add rest of the state groups as metadata
1232
1232
  // so that they show up as separate tabs in the dashboard
1233
- ...Ml(n)
1234
- }, user: Ul(u, a, r, c) }] };
1235
- }, Fl = (t, e, n) => {
1233
+ ...$l(n)
1234
+ }, user: Bl(u, a, r, c) }] };
1235
+ }, xl = (t, e, n) => {
1236
1236
  if (x(t.capabilities.isAdBlocked.value)) {
1237
- t.capabilities.isAdBlockerDetectionInProgress.value === !1 && di(e);
1237
+ t.capabilities.isAdBlockerDetectionInProgress.value === !1 && ci(e);
1238
1238
  const s = fe(() => {
1239
1239
  C(t.capabilities.isAdBlocked.value) && (n(t.capabilities.isAdBlocked.value === !1), s());
1240
1240
  });
1241
1241
  } else
1242
1242
  n(t.capabilities.isAdBlocked.value === !1);
1243
- }, xl = (t, e, n) => {
1243
+ }, Hl = (t, e, n) => {
1244
1244
  const s = t.message;
1245
1245
  return new Promise((i) => {
1246
1246
  var r;
1247
- if (kl.some((a) => a.test(s))) {
1247
+ if (Rl.some((a) => a.test(s))) {
1248
1248
  const a = (r = /https?:\/\/[^\s"'(),;<>[\]{}]+/.exec(s)) == null ? void 0 : r[0];
1249
- L(a) ? a.startsWith(Vt) ? e.capabilities.cspBlockedURLs.value.includes(a) ? i(!1) : Fl(e, n, i) : i(!1) : i(!0);
1249
+ L(a) ? a.startsWith(Bt) ? e.capabilities.cspBlockedURLs.value.includes(a) ? i(!1) : xl(e, n, i) : i(!1) : i(!0);
1250
1250
  } else
1251
- i(!Sl.some((a) => a.test(s)));
1251
+ i(!kl.some((a) => a.test(s)));
1252
1252
  });
1253
- }, Hl = (t) => {
1253
+ }, Gl = (t) => {
1254
1254
  var r;
1255
1255
  const e = (r = t.stacktrace[0]) == null ? void 0 : r.file;
1256
1256
  if (!e || typeof e != "string")
1257
1257
  return !1;
1258
1258
  const n = e.substring(e.lastIndexOf("/") + 1), s = e.split("/");
1259
- return s[s.length - 2] === Rn || Al().some((a) => n.startsWith(a) && n.endsWith(".js"));
1260
- }, Gl = (t, e) => {
1261
- const n = { version: Tl, message_id: Ut(), source: { name: Pl, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
1259
+ return s[s.length - 2] === kn || Ol().some((a) => n.startsWith(a) && n.endsWith(".js"));
1260
+ }, jl = (t, e) => {
1261
+ const n = { version: Al, message_id: $t(), source: { name: Nl, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
1262
1262
  return de(n);
1263
- }, jl = (t, e, n, s) => {
1263
+ }, ql = (t, e, n, s) => {
1264
1264
  let i;
1265
1265
  if (n.context.app.value.installType !== "cdn")
1266
1266
  return i;
@@ -1269,12 +1269,12 @@ const ci = new Il(ye), Tl = "1", Al = () => [
1269
1269
  else if (L(t))
1270
1270
  i = t;
1271
1271
  else {
1272
- const r = ui(t, s);
1272
+ const r = li(t, s);
1273
1273
  C(r) ? i = r.message : i = e;
1274
1274
  }
1275
1275
  return i;
1276
1276
  };
1277
- class ql {
1277
+ class zl {
1278
1278
  // If no logger is passed errors will be thrown as unhandled error
1279
1279
  constructor(e, n) {
1280
1280
  N(this, "initialized", !1);
@@ -1292,12 +1292,12 @@ class ql {
1292
1292
  */
1293
1293
  attachErrorListeners() {
1294
1294
  globalThis.addEventListener("error", (e) => {
1295
- this.onError({ error: e, context: st, errorType: me.UNHANDLEDEXCEPTION });
1295
+ this.onError({ error: e, context: nt, errorType: me.UNHANDLEDEXCEPTION });
1296
1296
  }), globalThis.addEventListener("unhandledrejection", (e) => {
1297
- this.onError({ error: e, context: st, errorType: me.UNHANDLEDREJECTION });
1297
+ this.onError({ error: e, context: nt, errorType: me.UNHANDLEDREJECTION });
1298
1298
  }), document.addEventListener("securitypolicyviolation", (e) => {
1299
1299
  const n = L(e.blockedURI) ? e.blockedURI : "";
1300
- e.disposition === "enforce" && n.startsWith(Vt) && !o.capabilities.cspBlockedURLs.value.includes(n) && (o.capabilities.cspBlockedURLs.value = [...o.capabilities.cspBlockedURLs.value, n]);
1300
+ e.disposition === "enforce" && n.startsWith(Bt) && !o.capabilities.cspBlockedURLs.value.includes(n) && (o.capabilities.cspBlockedURLs.value = [...o.capabilities.cspBlockedURLs.value, n]);
1301
1301
  });
1302
1302
  }
1303
1303
  /**
@@ -1311,19 +1311,19 @@ class ql {
1311
1311
  */
1312
1312
  async onError(e) {
1313
1313
  try {
1314
- const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? me.HANDLEDEXCEPTION, u = Nl(n, a), l = ui(u, this.logger);
1314
+ const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? me.HANDLEDEXCEPTION, u = Ll(n, a), l = li(u, this.logger);
1315
1315
  if (x(l))
1316
1316
  return;
1317
- const c = i ? `${i} - ` : "", d = `${s}${R}${c}`, h = yl(l, d), g = En(l).includes(Rt);
1318
- if (!g && !Hl(h) && a !== me.HANDLEDEXCEPTION)
1317
+ const c = i ? `${i} - ` : "", d = `${s}${R}${c}`, h = bl(l, d), g = bn(l).includes(kt);
1318
+ if (!g && !Gl(h) && a !== me.HANDLEDEXCEPTION)
1319
1319
  return;
1320
- if (o.reporting.isErrorReportingEnabled.value && await xl(h, o, this.httpClient)) {
1321
- const m = { severity: "error", unhandled: a !== me.HANDLEDEXCEPTION, severityReason: { type: a } }, v = jl(r, h.message, o, this.logger), k = Vl(h, m, o, v);
1322
- this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: Gl(k, o), sendRawData: !0 }, isRawResponse: !0 });
1320
+ if (o.reporting.isErrorReportingEnabled.value && await Hl(h, o, this.httpClient)) {
1321
+ const m = { severity: "error", unhandled: a !== me.HANDLEDEXCEPTION, severityReason: { type: a } }, v = ql(r, h.message, o, this.logger), k = Fl(h, m, o, v);
1322
+ this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: jl(k, o), sendRawData: !0 }, isRawResponse: !0 });
1323
1323
  }
1324
1324
  (a === me.HANDLEDEXCEPTION || g) && this.logger.error(h.message);
1325
1325
  } catch (n) {
1326
- this.logger.error(Jo(st), n);
1326
+ this.logger.error(Zo(nt), n);
1327
1327
  }
1328
1328
  }
1329
1329
  /**
@@ -1334,14 +1334,14 @@ class ql {
1334
1334
  */
1335
1335
  leaveBreadcrumb(e) {
1336
1336
  try {
1337
- o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Ll(e)];
1337
+ o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, wl(e)];
1338
1338
  } catch (n) {
1339
- this.onError({ error: n, context: st, customMessage: jn, groupingHash: jn });
1339
+ this.onError({ error: n, context: nt, customMessage: Gn, groupingHash: Gn });
1340
1340
  }
1341
1341
  }
1342
1342
  }
1343
- const fi = new ql(ci, ye);
1344
- class zl {
1343
+ const di = new zl(ui, ye);
1344
+ class Yl {
1345
1345
  constructor(e, n = {}) {
1346
1346
  N(this, "plugins", []);
1347
1347
  N(this, "byName", {});
@@ -1351,14 +1351,14 @@ class zl {
1351
1351
  }
1352
1352
  register(e, n) {
1353
1353
  if (!e.name) {
1354
- const i = Zo(Be);
1354
+ const i = ea(Be);
1355
1355
  if (this.config.throws)
1356
1356
  throw new Error(i);
1357
1357
  this.logger.error(i, e);
1358
1358
  return;
1359
1359
  }
1360
1360
  if (this.byName[e.name]) {
1361
- const i = ea(Be, e.name);
1361
+ const i = ta(Be, e.name);
1362
1362
  if (this.config.throws)
1363
1363
  throw new Error(i);
1364
1364
  this.logger.error(i);
@@ -1374,7 +1374,7 @@ class zl {
1374
1374
  unregister(e) {
1375
1375
  const n = this.byName[e];
1376
1376
  if (!n) {
1377
- const i = ta(Be, e);
1377
+ const i = na(Be, e);
1378
1378
  if (this.config.throws)
1379
1379
  throw new Error(i);
1380
1380
  this.logger.error(i);
@@ -1382,7 +1382,7 @@ class zl {
1382
1382
  }
1383
1383
  const s = this.plugins.indexOf(n);
1384
1384
  if (s === -1) {
1385
- const i = na(Be, e);
1385
+ const i = sa(Be, e);
1386
1386
  if (this.config.throws)
1387
1387
  throw new Error(i);
1388
1388
  this.logger.error(i);
@@ -1399,9 +1399,9 @@ class zl {
1399
1399
  var i;
1400
1400
  if ((i = s.deps) != null && i.some((r) => !this.byName[r])) {
1401
1401
  const r = s.deps.filter((a) => !this.byName[a]);
1402
- return this.logger.error(sa(Be, s.name, r)), !1;
1402
+ return this.logger.error(ia(Be, s.name, r)), !1;
1403
1403
  }
1404
- return n === "." ? !0 : Gr(s, n);
1404
+ return n === "." ? !0 : jr(s, n);
1405
1405
  })), this.cache[n];
1406
1406
  }
1407
1407
  // This method allows to process this.plugins so that it could
@@ -1412,7 +1412,7 @@ class zl {
1412
1412
  invoke(e, n = !0, ...s) {
1413
1413
  let i = e;
1414
1414
  if (!i)
1415
- throw new Error(zo);
1415
+ throw new Error(Yo);
1416
1416
  const r = i.startsWith("!"), a = this.config.throws ?? i.endsWith("!");
1417
1417
  if (i = i.replace(/(^!|!$)/g, ""), !i)
1418
1418
  throw new Error(Ko);
@@ -1420,15 +1420,15 @@ class zl {
1420
1420
  u.pop();
1421
1421
  const l = u.join(".");
1422
1422
  return (n ? this.getPlugins(i) : [this.getPlugins(i)[0]]).map((d) => {
1423
- const h = tn(d, i);
1423
+ const h = en(d, i);
1424
1424
  if (!S(h) || r)
1425
1425
  return h;
1426
1426
  try {
1427
- return h.apply(tn(d, l), s);
1427
+ return h.apply(en(d, l), s);
1428
1428
  } catch (y) {
1429
1429
  if (a)
1430
1430
  throw y;
1431
- this.logger.error(ia(Be, i, d.name), y);
1431
+ this.logger.error(ra(Be, i, d.name), y);
1432
1432
  }
1433
1433
  return null;
1434
1434
  });
@@ -1440,19 +1440,19 @@ class zl {
1440
1440
  return this.invoke(e, !0, ...n);
1441
1441
  }
1442
1442
  }
1443
- const Kl = new zl(ye, { throws: !0 }), Yl = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
1444
- t.config.useNativeSDK === !0, Wl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, es = (t) => t.filter(Yl), hi = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Ql = ["Bugsnag", "ErrorReporting"], Xl = {
1443
+ const Kl = new Yl(ye, { throws: !0 }), Wl = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
1444
+ t.config.useNativeSDK === !0, Ql = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, Zn = (t) => t.filter(Wl), fi = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Xl = ["Bugsnag", "ErrorReporting"], Jl = {
1445
1445
  rudderAnalyticsRemotePlugins: { url: () => Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? `${window.RudderStackGlobals.app.pluginsCDNPath}/rsa-plugins.js` : "https://cdn.rudderlabs.com/v3/modern/plugins//rsa-plugins.js"), format: "esm", from: "vite" }
1446
1446
  };
1447
- function gi(t, e) {
1447
+ function hi(t, e) {
1448
1448
  const n = Object.assign(t, e);
1449
1449
  for (const s of Object.keys(n))
1450
- typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = gi(n[s], e[s]));
1450
+ typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = hi(n[s], e[s]));
1451
1451
  return n;
1452
1452
  }
1453
- const Jl = (t) => gi({}, (globalThis.__federation_shared__ || {}).default || {});
1454
- async function Zl(t) {
1455
- const e = Xl[t];
1453
+ const Zl = (t) => hi({}, (globalThis.__federation_shared__ || {}).default || {});
1454
+ async function eu(t) {
1455
+ const e = Jl[t];
1456
1456
  if (e.inited)
1457
1457
  return e.lib;
1458
1458
  if (["esm", "systemjs"].includes(e.format))
@@ -1464,7 +1464,7 @@ async function Zl(t) {
1464
1464
  r
1465
1465
  ).then((a) => {
1466
1466
  if (!e.inited) {
1467
- const u = Jl();
1467
+ const u = Zl();
1468
1468
  a.init(u), e.lib = a, e.lib.init(u), e.inited = !0;
1469
1469
  }
1470
1470
  n(e.lib);
@@ -1472,59 +1472,59 @@ async function Zl(t) {
1472
1472
  });
1473
1473
  });
1474
1474
  }
1475
- function K(t, e) {
1475
+ function Y(t, e) {
1476
1476
  if (!(t != null && t.default) && e) {
1477
1477
  let n = /* @__PURE__ */ Object.create(null);
1478
1478
  return n.default = t, n.__esModule = !0, n;
1479
1479
  }
1480
1480
  return t;
1481
1481
  }
1482
- function Y(t, e) {
1483
- return Zl(t).then((n) => n.get(e).then((s) => s()));
1482
+ function K(t, e) {
1483
+ return eu(t).then((n) => n.get(e).then((s) => s()));
1484
1484
  }
1485
- const eu = (t) => {
1485
+ const tu = (t) => {
1486
1486
  switch (t) {
1487
1487
  case "BeaconQueue":
1488
- return () => Y("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => K(e, !0));
1488
+ return () => K("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => Y(e, !0));
1489
1489
  case "CustomConsentManager":
1490
- return () => Y("rudderAnalyticsRemotePlugins", "./CustomConsentManager").then((e) => K(e, !0));
1490
+ return () => K("rudderAnalyticsRemotePlugins", "./CustomConsentManager").then((e) => Y(e, !0));
1491
1491
  case "DeviceModeDestinations":
1492
- return () => Y("rudderAnalyticsRemotePlugins", "./DeviceModeDestinations").then((e) => K(e, !0));
1492
+ return () => K("rudderAnalyticsRemotePlugins", "./DeviceModeDestinations").then((e) => Y(e, !0));
1493
1493
  case "DeviceModeTransformation":
1494
- return () => Y("rudderAnalyticsRemotePlugins", "./DeviceModeTransformation").then((e) => K(e, !0));
1494
+ return () => K("rudderAnalyticsRemotePlugins", "./DeviceModeTransformation").then((e) => Y(e, !0));
1495
1495
  case "ExternalAnonymousId":
1496
- return () => Y("rudderAnalyticsRemotePlugins", "./ExternalAnonymousId").then((e) => K(e, !0));
1496
+ return () => K("rudderAnalyticsRemotePlugins", "./ExternalAnonymousId").then((e) => Y(e, !0));
1497
1497
  case "GoogleLinker":
1498
- return () => Y("rudderAnalyticsRemotePlugins", "./GoogleLinker").then((e) => K(e, !0));
1498
+ return () => K("rudderAnalyticsRemotePlugins", "./GoogleLinker").then((e) => Y(e, !0));
1499
1499
  case "KetchConsentManager":
1500
- return () => Y("rudderAnalyticsRemotePlugins", "./KetchConsentManager").then((e) => K(e, !0));
1500
+ return () => K("rudderAnalyticsRemotePlugins", "./KetchConsentManager").then((e) => Y(e, !0));
1501
1501
  case "IubendaConsentManager":
1502
- return () => Y("rudderAnalyticsRemotePlugins", "./IubendaConsentManager").then((e) => K(e, !0));
1502
+ return () => K("rudderAnalyticsRemotePlugins", "./IubendaConsentManager").then((e) => Y(e, !0));
1503
1503
  case "NativeDestinationQueue":
1504
- return () => Y("rudderAnalyticsRemotePlugins", "./NativeDestinationQueue").then((e) => K(e, !0));
1504
+ return () => K("rudderAnalyticsRemotePlugins", "./NativeDestinationQueue").then((e) => Y(e, !0));
1505
1505
  case "OneTrustConsentManager":
1506
- return () => Y("rudderAnalyticsRemotePlugins", "./OneTrustConsentManager").then((e) => K(e, !0));
1506
+ return () => K("rudderAnalyticsRemotePlugins", "./OneTrustConsentManager").then((e) => Y(e, !0));
1507
1507
  case "StorageEncryption":
1508
- return () => Y("rudderAnalyticsRemotePlugins", "./StorageEncryption").then((e) => K(e, !0));
1508
+ return () => K("rudderAnalyticsRemotePlugins", "./StorageEncryption").then((e) => Y(e, !0));
1509
1509
  case "StorageEncryptionLegacy":
1510
- return () => Y("rudderAnalyticsRemotePlugins", "./StorageEncryptionLegacy").then((e) => K(e, !0));
1510
+ return () => K("rudderAnalyticsRemotePlugins", "./StorageEncryptionLegacy").then((e) => Y(e, !0));
1511
1511
  case "StorageMigrator":
1512
- return () => Y("rudderAnalyticsRemotePlugins", "./StorageMigrator").then((e) => K(e, !0));
1512
+ return () => K("rudderAnalyticsRemotePlugins", "./StorageMigrator").then((e) => Y(e, !0));
1513
1513
  case "XhrQueue":
1514
- return () => Y("rudderAnalyticsRemotePlugins", "./XhrQueue").then((e) => K(e, !0));
1514
+ return () => K("rudderAnalyticsRemotePlugins", "./XhrQueue").then((e) => Y(e, !0));
1515
1515
  default:
1516
1516
  return;
1517
1517
  }
1518
- }, zt = (t) => {
1518
+ }, qt = (t) => {
1519
1519
  const e = {};
1520
1520
  return t.forEach((n) => {
1521
- if (hi.includes(n)) {
1522
- const s = eu(n);
1521
+ if (fi.includes(n)) {
1522
+ const s = tu(n);
1523
1523
  s && (e[n] = s);
1524
1524
  }
1525
1525
  }), e;
1526
- }, mi = () => ({}), tu = () => ({}), nu = (t) => (zt == null ? void 0 : zt(t)) || {}, Kt = { ...mi(), ...tu() }, su = (t) => ({ ...nu(t) });
1527
- class iu {
1526
+ }, gi = () => ({}), nu = () => ({}), su = (t) => (qt == null ? void 0 : qt(t)) || {}, zt = { ...gi(), ...nu() }, iu = (t) => ({ ...su(t) });
1527
+ class ru {
1528
1528
  constructor(e, n, s) {
1529
1529
  this.engine = e, this.errorHandler = n, this.logger = s, this.onError = this.onError.bind(this);
1530
1530
  }
@@ -1532,7 +1532,7 @@ class iu {
1532
1532
  * Orchestrate the plugin loading and registering
1533
1533
  */
1534
1534
  init() {
1535
- o.lifecycle.status.value = "pluginsLoading", ct("pluginsCDNPath", o.lifecycle.pluginsCDNPath.value), this.setActivePlugins(), this.registerLocalPlugins(), this.registerRemotePlugins(), this.attachEffects();
1535
+ o.lifecycle.status.value = "pluginsLoading", ut("pluginsCDNPath", o.lifecycle.pluginsCDNPath.value), this.setActivePlugins(), this.registerLocalPlugins(), this.registerRemotePlugins(), this.attachEffects();
1536
1536
  }
1537
1537
  /**
1538
1538
  * Update state based on plugin loaded status
@@ -1553,30 +1553,30 @@ class iu {
1553
1553
  let e = o.plugins.pluginsToLoadFromConfig.value;
1554
1554
  if (!e)
1555
1555
  return [];
1556
- e = e.filter((i) => Ql.includes(i) ? (this.logger.warn(Ma(gt, i)), !1) : !0);
1557
- const n = [{ configurationStatus: () => C(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(Ha), shouldAddMissingPlugins: !0 }, { configurationStatus: () => es(o.nativeDestinations.configuredDestinations.value).length > 0, configurationStatusStr: "Device mode destinations are connected to the source", supportedPlugins: ["DeviceModeDestinations", "NativeDestinationQueue"] }, { configurationStatus: () => es(o.nativeDestinations.configuredDestinations.value).some((i) => i.shouldApplyDeviceModeTransformation), configurationStatusStr: "Device mode transformations are enabled for at least one destination", supportedPlugins: ["DeviceModeTransformation"] }, { configurationStatus: () => C(o.consents.activeConsentManagerPluginName.value), configurationStatusStr: "Consent management is enabled", activePluginName: o.consents.activeConsentManagerPluginName.value, supportedPlugins: Object.values(an) }, { configurationStatus: () => C(o.storage.encryptionPluginName.value), configurationStatusStr: "Storage encryption is enabled", activePluginName: o.storage.encryptionPluginName.value, supportedPlugins: Object.values(It) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
1556
+ e = e.filter((i) => Xl.includes(i) ? (this.logger.warn($a(ht, i)), !1) : !0);
1557
+ const n = [{ configurationStatus: () => C(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(Ga), shouldAddMissingPlugins: !0 }, { configurationStatus: () => Zn(o.nativeDestinations.configuredDestinations.value).length > 0, configurationStatusStr: "Device mode destinations are connected to the source", supportedPlugins: ["DeviceModeDestinations", "NativeDestinationQueue"] }, { configurationStatus: () => Zn(o.nativeDestinations.configuredDestinations.value).some((i) => i.shouldApplyDeviceModeTransformation), configurationStatusStr: "Device mode transformations are enabled for at least one destination", supportedPlugins: ["DeviceModeTransformation"] }, { configurationStatus: () => C(o.consents.activeConsentManagerPluginName.value), configurationStatusStr: "Consent management is enabled", activePluginName: o.consents.activeConsentManagerPluginName.value, supportedPlugins: Object.values(on) }, { configurationStatus: () => C(o.storage.encryptionPluginName.value), configurationStatusStr: "Storage encryption is enabled", activePluginName: o.storage.encryptionPluginName.value, supportedPlugins: Object.values(Rt) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
1558
1558
  return n.forEach((i) => {
1559
1559
  i.configurationStatus() ? (e = e.filter(
1560
1560
  i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => C(r)
1561
1561
  // pass through
1562
1562
  ), this.addMissingPlugins(i, s, e)) : e = e.filter(i.basePlugins !== void 0 ? (r) => !(i.basePlugins.includes(r) || i.supportedPlugins.includes(r)) : (r) => !i.supportedPlugins.includes(r));
1563
- }), [...Object.keys(mi()), ...e];
1563
+ }), [...Object.keys(gi()), ...e];
1564
1564
  }
1565
1565
  addMissingPlugins(e, n, s) {
1566
1566
  const i = e.shouldAddMissingPlugins || n;
1567
1567
  let r;
1568
1568
  e.activePluginName ? r = [...e.basePlugins || [], e.activePluginName] : r = [...e.supportedPlugins];
1569
1569
  const a = r.filter((u) => !s.includes(u));
1570
- a.length > 0 && (i && s.push(...a), this.logger.warn($a(gt, e.configurationStatusStr, a, i)));
1570
+ a.length > 0 && (i && s.push(...a), this.logger.warn(Ua(ht, e.configurationStatusStr, a, i)));
1571
1571
  }
1572
1572
  /**
1573
1573
  * Determine the list of plugins that should be activated
1574
1574
  */
1575
1575
  setActivePlugins() {
1576
- const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Kt), ...hi], s = [], i = [];
1576
+ const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(zt), ...fi], s = [], i = [];
1577
1577
  e.forEach((r) => {
1578
1578
  n.includes(r) ? s.push(r) : i.push(r);
1579
- }), i.length > 0 && this.logger.warn(Va(gt, i)), j(() => {
1579
+ }), i.length > 0 && this.logger.warn(Fa(ht, i)), j(() => {
1580
1580
  o.plugins.totalPluginsToLoad.value = e.length, o.plugins.activePlugins.value = s, o.plugins.failedPlugins.value = i;
1581
1581
  });
1582
1582
  }
@@ -1584,7 +1584,7 @@ class iu {
1584
1584
  * Register plugins that are direct imports to PluginEngine
1585
1585
  */
1586
1586
  registerLocalPlugins() {
1587
- Object.values(Kt).forEach((e) => {
1587
+ Object.values(zt).forEach((e) => {
1588
1588
  S(e) && o.plugins.activePlugins.value.includes(e().name) && this.register([e()]);
1589
1589
  });
1590
1590
  }
@@ -1592,7 +1592,7 @@ class iu {
1592
1592
  * Register plugins that are dynamic imports to PluginEngine
1593
1593
  */
1594
1594
  registerRemotePlugins() {
1595
- const e = su(o.plugins.activePlugins.value);
1595
+ const e = iu(o.plugins.activePlugins.value);
1596
1596
  Promise.all(Object.keys(e).map(async (n) => {
1597
1597
  await e[n]().then((s) => this.register([s.default()])).catch((s) => {
1598
1598
  o.plugins.failedPlugins.value = [...o.plugins.failedPlugins.value, n], this.onError(s, `Failed to load plugin "${n}"`, s);
@@ -1635,7 +1635,7 @@ class iu {
1635
1635
  }
1636
1636
  // TODO: Implement reset API instead
1637
1637
  unregisterLocalPlugins() {
1638
- Object.values(Kt).forEach((e) => {
1638
+ Object.values(zt).forEach((e) => {
1639
1639
  try {
1640
1640
  this.engine.unregister(e().name);
1641
1641
  } catch (n) {
@@ -1647,53 +1647,53 @@ class iu {
1647
1647
  * Handle errors
1648
1648
  */
1649
1649
  onError(e, n, s) {
1650
- this.errorHandler.onError({ error: e, context: gt, customMessage: n, groupingHash: s });
1650
+ this.errorHandler.onError({ error: e, context: ht, customMessage: n, groupingHash: s });
1651
1651
  }
1652
1652
  }
1653
- const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", ru = "rl_user_id", ou = "rl_trait", au = "rl_anonymous_id", lu = "rl_group_id", uu = "rl_group_trait", cu = "rl_page_init_referrer", du = "rl_page_init_referring_domain", fu = "rl_session", hu = "rl_auth_token", Ve = { userId: ru, userTraits: ou, anonymousId: au, groupId: lu, groupTraits: uu, initialReferrer: cu, initialReferringDomain: du, sessionInfo: fu, authToken: hu }, gu = "test_rudder_cookie", mu = "test_rudder_ls", pu = "test_rudder_ss", vu = "__tld__", pi = "clientDataInCookie", vi = "clientDataInLocalStorage", yu = "clientDataInMemory", yi = "clientDataInSessionStorage", bi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [W]: pi, [X]: vi, [ce]: yu, [ee]: yi }, ts = (t, e) => {
1653
+ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", ou = "rl_user_id", au = "rl_trait", lu = "rl_anonymous_id", uu = "rl_group_id", cu = "rl_group_trait", du = "rl_page_init_referrer", fu = "rl_page_init_referring_domain", hu = "rl_session", gu = "rl_auth_token", Ve = { userId: ou, userTraits: au, anonymousId: lu, groupId: uu, groupTraits: cu, initialReferrer: du, initialReferringDomain: fu, sessionInfo: hu, authToken: gu }, mu = "test_rudder_cookie", pu = "test_rudder_ls", vu = "test_rudder_ss", yu = "__tld__", mi = "clientDataInCookie", pi = "clientDataInLocalStorage", bu = "clientDataInMemory", vi = "clientDataInSessionStorage", yi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [W]: mi, [X]: pi, [ce]: bu, [ee]: vi }, es = (t, e) => {
1654
1654
  try {
1655
1655
  return encodeURIComponent(t);
1656
1656
  } catch (n) {
1657
- e == null || e.error(co, n);
1657
+ e == null || e.error(fo, n);
1658
1658
  return;
1659
1659
  }
1660
- }, ns = (t) => {
1660
+ }, ts = (t) => {
1661
1661
  try {
1662
1662
  return decodeURIComponent(t);
1663
1663
  } catch {
1664
1664
  return;
1665
1665
  }
1666
- }, bu = (t) => {
1666
+ }, Eu = (t) => {
1667
1667
  const e = {}, n = t.split(/\s*;\s*/);
1668
1668
  let s;
1669
1669
  return n[0] && n.forEach((i) => {
1670
1670
  s = i.split("=");
1671
- const r = s[0] ? ns(s[0]) : void 0;
1672
- r && (e[r] = s[1] ? ns(s[1]) : void 0);
1671
+ const r = s[0] ? ts(s[0]) : void 0;
1672
+ r && (e[r] = s[1] ? ts(s[1]) : void 0);
1673
1673
  }), e;
1674
- }, Eu = (t, e, n, s) => {
1674
+ }, Su = (t, e, n, s) => {
1675
1675
  const i = { ...n || {} };
1676
- let r = `${ts(t, s)}=${ts(e, s)}`;
1676
+ let r = `${es(t, s)}=${es(e, s)}`;
1677
1677
  ne(e) && (i.maxage = -1), i.maxage && (i.expires = new Date(+/* @__PURE__ */ new Date() + i.maxage)), i.path && (r += `; path=${i.path}`), i.domain && (r += `; domain=${i.domain}`), i.expires && (r += `; expires=${i.expires.toUTCString()}`), i.samesite && (r += `; samesite=${i.samesite}`), i.secure && (r += "; secure"), globalThis.document.cookie = r;
1678
- }, ln = () => {
1678
+ }, an = () => {
1679
1679
  const t = globalThis.document.cookie;
1680
- return bu(t);
1681
- }, Su = (t) => ln()[t], Se = function(t, e, n, s) {
1680
+ return Eu(t);
1681
+ }, ku = (t) => an()[t], Se = function(t, e, n, s) {
1682
1682
  switch (arguments.length) {
1683
1683
  case 4:
1684
1684
  case 3:
1685
1685
  case 2:
1686
- return Eu(t, e, n, s);
1686
+ return Su(t, e, n, s);
1687
1687
  case 1:
1688
- return t ? Su(t) : ln();
1688
+ return t ? ku(t) : an();
1689
1689
  default:
1690
- return ln();
1690
+ return an();
1691
1691
  }
1692
- }, ku = (t) => {
1692
+ }, Ru = (t) => {
1693
1693
  const e = document.createElement("a");
1694
1694
  return e.href = t, e.hostname;
1695
- }, Ru = (t) => {
1696
- const e = typeof globalThis.URL != "function" ? ku(t) : new URL(t).hostname, n = (e == null ? void 0 : e.split(".")) ?? [], s = n[n.length - 1], i = [];
1695
+ }, Iu = (t) => {
1696
+ const e = typeof globalThis.URL != "function" ? Ru(t) : new URL(t).hostname, n = (e == null ? void 0 : e.split(".")) ?? [], s = n[n.length - 1], i = [];
1697
1697
  if (n.length === 4 && s && s === parseInt(s, 10).toString())
1698
1698
  return i;
1699
1699
  if (n.length <= 1)
@@ -1701,24 +1701,24 @@ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memo
1701
1701
  for (let r = n.length - 2; r >= 0; r -= 1)
1702
1702
  i.push(n.slice(r).join("."));
1703
1703
  return i;
1704
- }, Iu = (t) => {
1705
- const e = Ru(t);
1704
+ }, Tu = (t) => {
1705
+ const e = Iu(t);
1706
1706
  for (let n = 0; n < e.length; n += 1) {
1707
- const s = e[n], i = vu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1707
+ const s = e[n], i = yu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1708
1708
  if (Se(i, 1, r), Se(i))
1709
1709
  return Se(i, null, r), s;
1710
1710
  }
1711
1711
  return "";
1712
- }, Tu = () => {
1713
- const t = `.${Iu(globalThis.location.href)}`;
1714
- return { maxage: Ro, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1715
- }, Au = () => ({ enabled: !0 }), Ou = () => ({ enabled: !0 }), Du = () => ({ enabled: !0 });
1716
- class Cu {
1712
+ }, Au = () => {
1713
+ const t = `.${Tu(globalThis.location.href)}`;
1714
+ return { maxage: Io, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1715
+ }, Ou = () => ({ enabled: !0 }), Du = () => ({ enabled: !0 }), Cu = () => ({ enabled: !0 });
1716
+ class _u {
1717
1717
  constructor(e) {
1718
1718
  N(this, "isEnabled", !0);
1719
1719
  N(this, "length", 0);
1720
1720
  N(this, "data", {});
1721
- this.options = Du(), this.logger = e;
1721
+ this.options = Cu(), this.logger = e;
1722
1722
  }
1723
1723
  configure(e) {
1724
1724
  return this.options = H(this.options, e ?? {}), this.isEnabled = !!this.options.enabled, this.options;
@@ -1742,13 +1742,13 @@ class Cu {
1742
1742
  return Object.keys(this.data);
1743
1743
  }
1744
1744
  }
1745
- const wt = new Cu(ye);
1746
- var Dt = { exports: {} }, _u = Dt.exports, ss;
1747
- function Pu() {
1748
- return ss || (ss = 1, function(t, e) {
1745
+ const Lt = new _u(ye);
1746
+ var Ot = { exports: {} }, Pu = Ot.exports, ns;
1747
+ function Nu() {
1748
+ return ns || (ns = 1, function(t, e) {
1749
1749
  (function(n, s) {
1750
1750
  t.exports = s();
1751
- })(_u, function() {
1751
+ })(Pu, function() {
1752
1752
  function n(g) {
1753
1753
  return g = JSON.stringify(g), !!/^\{[\s\S]*\}$/.test(g);
1754
1754
  }
@@ -1864,20 +1864,20 @@ function Pu() {
1864
1864
  for (var y in c.prototype) h[y] = c.prototype[y];
1865
1865
  return h;
1866
1866
  });
1867
- }(Dt)), Dt.exports;
1867
+ }(Ot)), Ot.exports;
1868
1868
  }
1869
- var Nu = Pu();
1870
- const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), is = () => !le(globalThis.navigator.userAgentData), wu = () => !le(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), Mu = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), $u = (t, e = "none") => {
1869
+ var Lu = Nu();
1870
+ const Oe = /* @__PURE__ */ oi(Lu), wu = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), ss = () => !le(globalThis.navigator.userAgentData), Mu = () => !le(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), $u = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), Uu = (t, e = "none") => {
1871
1871
  var n;
1872
1872
  e === "none" && t(void 0), e === "default" && t(navigator.userAgentData), e === "full" && ((n = navigator.userAgentData) == null || n.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then((s) => {
1873
1873
  t(s);
1874
1874
  }).catch(() => {
1875
1875
  t();
1876
1876
  }));
1877
- }, Uu = () => {
1877
+ }, Bu = () => {
1878
1878
  const t = globalThis.document.createElement("div");
1879
1879
  return t.setAttribute("data-a-b", "c"), t.dataset ? t.dataset.aB === "c" : !1;
1880
- }, un = {
1880
+ }, ln = {
1881
1881
  // Ideally, we should separate the checks for URL and URLSearchParams but
1882
1882
  // the polyfill service serves them under the same feature name, "URL".
1883
1883
  URL: () => !S(globalThis.URL) || !S(globalThis.URLSearchParams),
@@ -1896,7 +1896,7 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1896
1896
  "Object.values": () => !S(globalThis.Object.values),
1897
1897
  "Object.assign": () => !S(globalThis.Object.assign),
1898
1898
  "Object.fromEntries": () => !S(globalThis.Object.fromEntries),
1899
- "Element.prototype.dataset": () => !Uu(),
1899
+ "Element.prototype.dataset": () => !Bu(),
1900
1900
  // Ideally, we should separate the checks for TextEncoder and TextDecoder but
1901
1901
  // the polyfill service serves them under the same feature name, "TextEncoder".
1902
1902
  TextEncoder: () => !S(globalThis.TextEncoder) || !S(globalThis.TextDecoder),
@@ -1907,39 +1907,39 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1907
1907
  ArrayBuffer: () => !S(globalThis.Uint8Array),
1908
1908
  Set: () => !S(globalThis.Set),
1909
1909
  atob: () => !S(globalThis.atob)
1910
- }, Bu = () => {
1911
- const t = Object.keys(un);
1910
+ }, Vu = () => {
1911
+ const t = Object.keys(ln);
1912
1912
  let e = !1;
1913
1913
  for (let n = 0; n < t.length; n++) {
1914
- const s = un[t[n]];
1914
+ const s = ln[t[n]];
1915
1915
  if (S(s) && s()) {
1916
1916
  e = !0;
1917
1917
  break;
1918
1918
  }
1919
1919
  }
1920
1920
  return e;
1921
- }, rs = () => {
1921
+ }, is = () => {
1922
1922
  let t = { density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 };
1923
1923
  return t = { width: globalThis.screen.width, height: globalThis.screen.height, density: globalThis.devicePixelRatio, innerWidth: globalThis.innerWidth, innerHeight: globalThis.innerHeight }, t;
1924
- }, Ei = (t) => {
1924
+ }, bi = (t) => {
1925
1925
  const e = ["QuotaExceededError", "NS_ERROR_DOM_QUOTA_REACHED"], n = [22, 1014], s = e.includes(t.name) || n.includes(t.code);
1926
1926
  return t instanceof DOMException && s;
1927
1927
  }, Ge = (t = X, e, n) => {
1928
1928
  let s, i;
1929
- const r = ra(nn, t);
1929
+ const r = oa(tn, t);
1930
1930
  let a = "unavailable", u = !0, l;
1931
1931
  try {
1932
1932
  switch (t) {
1933
1933
  case ce:
1934
1934
  return !0;
1935
1935
  case W:
1936
- s = e, i = gu;
1936
+ s = e, i = mu;
1937
1937
  break;
1938
1938
  case X:
1939
- s = e ?? globalThis.localStorage, i = mu;
1939
+ s = e ?? globalThis.localStorage, i = pu;
1940
1940
  break;
1941
1941
  case ee:
1942
- s = e ?? globalThis.sessionStorage, i = pu;
1942
+ s = e ?? globalThis.sessionStorage, i = vu;
1943
1943
  break;
1944
1944
  default:
1945
1945
  return !1;
@@ -1948,16 +1948,16 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1948
1948
  return s.removeItem(i), !0;
1949
1949
  u = !1;
1950
1950
  } catch (c) {
1951
- u = !1, l = c, Ei(c) && (a = "full");
1951
+ u = !1, l = c, bi(c) && (a = "full");
1952
1952
  }
1953
1953
  return u || n == null || n.warn(`${r}${a}.`, l), !1;
1954
1954
  };
1955
- class Vu {
1955
+ class Fu {
1956
1956
  constructor(e) {
1957
1957
  N(this, "isSupportAvailable", !0);
1958
1958
  N(this, "isEnabled", !0);
1959
1959
  N(this, "length", 0);
1960
- this.options = Au(), this.logger = e;
1960
+ this.options = Ou(), this.logger = e;
1961
1961
  }
1962
1962
  configure(e) {
1963
1963
  return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(X), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
@@ -1984,13 +1984,13 @@ class Vu {
1984
1984
  return Oe.keys();
1985
1985
  }
1986
1986
  }
1987
- const Tn = new Vu(ye);
1988
- class Fu {
1987
+ const In = new Fu(ye);
1988
+ class xu {
1989
1989
  constructor(e) {
1990
1990
  N(this, "isSupportAvailable", !0);
1991
1991
  N(this, "isEnabled", !0);
1992
1992
  N(this, "length", 0);
1993
- this.options = Ou(), this.logger = e;
1993
+ this.options = Du(), this.logger = e;
1994
1994
  }
1995
1995
  configure(e) {
1996
1996
  return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(ee), this.isSupportAvailable && (this.store = globalThis.sessionStorage), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
@@ -2026,8 +2026,8 @@ class Fu {
2026
2026
  return e;
2027
2027
  }
2028
2028
  }
2029
- const An = new Fu(ye);
2030
- class xu {
2029
+ const Tn = new xu(ye);
2030
+ class Hu {
2031
2031
  constructor(e) {
2032
2032
  N(this, "isSupportAvailable", !0);
2033
2033
  N(this, "isEnabled", !0);
@@ -2035,7 +2035,7 @@ class xu {
2035
2035
  this.logger = e;
2036
2036
  }
2037
2037
  configure(e) {
2038
- return this.options || (this.options = Tu()), this.options = H(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = Ge(W, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
2038
+ return this.options || (this.options = Au()), this.options = H(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = Ge(W, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
2039
2039
  }
2040
2040
  setItem(e, n) {
2041
2041
  return Se(e, n, this.options, this.logger), this.length = Object.keys(Se()).length, !0;
@@ -2060,30 +2060,30 @@ class xu {
2060
2060
  return Object.keys(Se());
2061
2061
  }
2062
2062
  }
2063
- const On = new xu(ye), ie = (t) => {
2063
+ const An = new Hu(ye), ie = (t) => {
2064
2064
  switch (t) {
2065
2065
  case X:
2066
- return Tn;
2066
+ return In;
2067
2067
  case ee:
2068
- return An;
2068
+ return Tn;
2069
2069
  case ce:
2070
- return wt;
2070
+ return Lt;
2071
2071
  case W:
2072
- return On;
2072
+ return An;
2073
2073
  default:
2074
- return wt;
2074
+ return Lt;
2075
2075
  }
2076
- }, Hu = (t) => {
2077
- const e = On.configure(t);
2078
- o.storage.cookie.value = { maxage: e.maxage, path: e.path, domain: e.domain, samesite: e.samesite, expires: e.expires, secure: e.secure };
2079
2076
  }, Gu = (t) => {
2080
- Tn.configure(t);
2077
+ const e = An.configure(t);
2078
+ o.storage.cookie.value = { maxage: e.maxage, path: e.path, domain: e.domain, samesite: e.samesite, expires: e.expires, secure: e.secure };
2081
2079
  }, ju = (t) => {
2082
- wt.configure(t);
2080
+ In.configure(t);
2083
2081
  }, qu = (t) => {
2084
- An.configure(t);
2085
- }, zu = (t = {}, e = {}, n = {}, s = {}) => {
2086
- Hu(t), Gu(e), ju(n), qu(s);
2082
+ Lt.configure(t);
2083
+ }, zu = (t) => {
2084
+ Tn.configure(t);
2085
+ }, Yu = (t = {}, e = {}, n = {}, s = {}) => {
2086
+ Gu(t), ju(e), qu(n), zu(s);
2087
2087
  };
2088
2088
  class Ku {
2089
2089
  constructor(e, n, s) {
@@ -2120,10 +2120,10 @@ class Ku {
2120
2120
  try {
2121
2121
  this.engine.setItem(s, this.encrypt(de(n, !1, [], this.logger)));
2122
2122
  } catch (i) {
2123
- if (Ei(i))
2124
- this.logger.warn(Da(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
2123
+ if (bi(i))
2124
+ this.logger.warn(Ca(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
2125
2125
  else {
2126
- const r = da(e);
2126
+ const r = fa(e);
2127
2127
  this.onError(i, r, r);
2128
2128
  }
2129
2129
  }
@@ -2137,7 +2137,7 @@ class Ku {
2137
2137
  try {
2138
2138
  return !n || (s = this.decrypt(this.engine.getItem(n)), le(s) || s === "") ? null : JSON.parse(s);
2139
2139
  } catch (i) {
2140
- const r = fa(e);
2140
+ const r = ha(e);
2141
2141
  return this.onError(i, r, r), null;
2142
2142
  }
2143
2143
  }
@@ -2182,7 +2182,7 @@ class Ku {
2182
2182
  this.errorHandler.onError({ error: e, context: `Store ${this.id}`, customMessage: n, groupingHash: s });
2183
2183
  }
2184
2184
  }
2185
- const Yu = (t, e) => {
2185
+ const Wu = (t, e) => {
2186
2186
  var s;
2187
2187
  let n;
2188
2188
  if (t.consents.preConsent.value.enabled)
@@ -2199,7 +2199,7 @@ const Yu = (t, e) => {
2199
2199
  }
2200
2200
  return n;
2201
2201
  };
2202
- class Wu {
2202
+ class Qu {
2203
2203
  constructor(e, n, s) {
2204
2204
  N(this, "stores", {});
2205
2205
  N(this, "isInitialized", !1);
@@ -2213,7 +2213,7 @@ class Wu {
2213
2213
  if (this.isInitialized)
2214
2214
  return;
2215
2215
  const e = o.loadOptions.value, n = { cookieStorageOptions: { samesite: e.sameSiteCookie, secure: e.secureCookie, domain: e.setCookieDomain, sameDomainCookiesOnly: e.sameDomainCookiesOnly }, localStorageOptions: {}, inMemoryStorageOptions: {}, sessionStorageOptions: {} };
2216
- zu(nt(H(n.cookieStorageOptions ?? {}, ((s = o.storage.cookie) == null ? void 0 : s.value) ?? {})), nt(n.localStorageOptions), nt(n.inMemoryStorageOptions), nt(n.sessionStorageOptions)), this.initClientDataStores(), this.isInitialized = !0;
2216
+ Yu(tt(H(n.cookieStorageOptions ?? {}, ((s = o.storage.cookie) == null ? void 0 : s.value) ?? {})), tt(n.localStorageOptions), tt(n.inMemoryStorageOptions), tt(n.sessionStorageOptions)), this.initClientDataStores(), this.isInitialized = !0;
2217
2217
  }
2218
2218
  /**
2219
2219
  * Create store to persist data used by the SDK like session, used details etc
@@ -2230,9 +2230,9 @@ class Wu {
2230
2230
  const s = o.consents.postConsent.value.storage;
2231
2231
  (C(s == null ? void 0 : s.type) || C(s == null ? void 0 : s.entries)) && (e = s == null ? void 0 : s.type, n = s == null ? void 0 : s.entries);
2232
2232
  let i = !0, r = {};
2233
- bi.forEach((u) => {
2233
+ yi.forEach((u) => {
2234
2234
  var f;
2235
- const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = Yu(o, u) ?? d ?? e ?? on, g = this.getResolvedStorageTypeForEntry(y, u);
2235
+ const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = Wu(o, u) ?? d ?? e ?? rn, g = this.getResolvedStorageTypeForEntry(y, u);
2236
2236
  g !== we && (i = !1), r = { ...r, [u]: { type: g, key: Ve[c] } };
2237
2237
  }), j(() => {
2238
2238
  o.storage.type.value = e, o.storage.entries.value = r, o.storage.trulyAnonymousTracking.value = i;
@@ -2256,7 +2256,7 @@ class Wu {
2256
2256
  (a = ie(W)) != null && a.isEnabled ? s = W : (u = ie(X)) != null && u.isEnabled ? s = X : (l = ie(ee)) != null && l.isEnabled ? s = ee : s = ce;
2257
2257
  break;
2258
2258
  }
2259
- return s !== e && this.logger.warn(Ca(Qr, n, e, s)), s;
2259
+ return s !== e && this.logger.warn(_a(Xr, n, e, s)), s;
2260
2260
  }
2261
2261
  /**
2262
2262
  * Create a new store
@@ -2272,26 +2272,26 @@ class Wu {
2272
2272
  return this.stores[e];
2273
2273
  }
2274
2274
  }
2275
- const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config) && Array.isArray(t.source.destinations), Xu = (t) => typeof t == "string" && ei.includes(t), Si = (t) => {
2275
+ const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config) && Array.isArray(t.source.destinations), Ju = (t) => typeof t == "string" && Zs.includes(t), Ei = (t) => {
2276
2276
  const e = new URL(t), { host: n, protocol: s } = e, i = n.split(".");
2277
2277
  let r;
2278
2278
  return i.length > 2 ? r = `${i[i.length - 2]}.${i[i.length - 1]}` : r = n, { topDomain: r, protocol: s };
2279
- }, Ju = (t) => {
2280
- const { topDomain: e, protocol: n } = Si(t);
2279
+ }, Zu = (t) => {
2280
+ const { topDomain: e, protocol: n } = Ei(t);
2281
2281
  return `${n}//${e}`;
2282
- }, Zu = (t, e) => {
2283
- const n = e ? window.location.origin : Ju(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2282
+ }, ec = (t, e) => {
2283
+ const n = e ? window.location.origin : Zu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2284
2284
  return `${n}/${s}`;
2285
- }, ec = (t) => {
2286
- const { topDomain: e } = Si(window.location.href);
2285
+ }, tc = (t) => {
2286
+ const { topDomain: e } = Ei(window.location.href);
2287
2287
  return e === t;
2288
- }, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, cn = (t) => {
2288
+ }, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, un = (t) => {
2289
2289
  try {
2290
2290
  return new URL(t).host;
2291
2291
  } catch {
2292
2292
  return null;
2293
2293
  }
2294
- }, ki = (t) => cn(t) ?? "", tc = (t) => {
2294
+ }, Si = (t) => un(t) ?? "", nc = (t) => {
2295
2295
  const e = {};
2296
2296
  try {
2297
2297
  const n = new URL(t), s = "utm_";
@@ -2304,7 +2304,7 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2304
2304
  } catch {
2305
2305
  }
2306
2306
  return e;
2307
- }, nc = (t) => {
2307
+ }, sc = (t) => {
2308
2308
  let e = t;
2309
2309
  try {
2310
2310
  const n = new URL(t);
@@ -2312,40 +2312,40 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2312
2312
  } catch {
2313
2313
  }
2314
2314
  return e;
2315
- }, sc = (t) => t.replace(/\/{2,}/g, "/"), Ke = (t) => {
2315
+ }, ic = (t) => t.replace(/\/{2,}/g, "/"), Ye = (t) => {
2316
2316
  if (!L(t))
2317
2317
  return !1;
2318
2318
  try {
2319
- return S(globalThis.URL) && new URL(t), Fa.test(t);
2319
+ return S(globalThis.URL) && new URL(t), xa.test(t);
2320
2320
  } catch {
2321
2321
  return !1;
2322
2322
  }
2323
- }, ic = () => {
2323
+ }, rc = () => {
2324
2324
  var t, e;
2325
2325
  return !!((e = (t = window.chrome) == null ? void 0 : t.runtime) != null && e.id);
2326
- }, Yt = "none", Wt = "immediate", rc = (t) => {
2326
+ }, Yt = "none", Kt = "immediate", oc = (t) => {
2327
2327
  var e, n;
2328
2328
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.errors) == null ? void 0 : n.enabled) === !0;
2329
- }, oc = (t) => {
2329
+ }, ac = (t) => {
2330
2330
  var e, n;
2331
2331
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.metrics) == null ? void 0 : n.enabled) === !0;
2332
- }, ac = (t) => {
2332
+ }, lc = (t) => {
2333
2333
  const e = { sendPageEvent: !1, trackConsent: !1, discardPreConsentEvents: !1 };
2334
2334
  if (M(t)) {
2335
2335
  const n = T(t);
2336
2336
  e.storage = n.storage, Ie(n.integrations) && (e.integrations = n.integrations), e.discardPreConsentEvents = n.discardPreConsentEvents === !0, e.sendPageEvent = n.sendPageEvent === !0, e.trackConsent = n.trackConsent === !0, Ie(n.consentManagement) && (e.consentManagement = H(n.consentManagement, { enabled: o.consents.enabled.value }));
2337
2337
  }
2338
2338
  return e;
2339
- }, os = (t) => Ie(t) || Array.isArray(t), lc = (t, e) => {
2339
+ }, rs = (t) => Ie(t) || Array.isArray(t), uc = (t, e) => {
2340
2340
  let { provider: n } = t;
2341
- const s = n ? an[n] : void 0;
2342
- return n && !s && (e.error(Qo(te, n, an)), n = void 0), { provider: n, consentManagerPluginName: s };
2343
- }, Ri = (t, e) => {
2341
+ const s = n ? on[n] : void 0;
2342
+ return n && !s && (e.error(Xo(te, n, on)), n = void 0), { provider: n, consentManagerPluginName: s };
2343
+ }, ki = (t, e) => {
2344
2344
  let n, s = [], i = [], r = !1, a, u = (t == null ? void 0 : t.enabled) === !0;
2345
- Ie(t) && u && ({ provider: a, consentManagerPluginName: n } = lc(t, e), os(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), os(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
2345
+ Ie(t) && u && ({ provider: a, consentManagerPluginName: n } = uc(t, e), rs(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), rs(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
2346
2346
  const l = { allowedConsentIds: s, deniedConsentIds: i };
2347
2347
  return u = u && !!n, { provider: a, consentManagerPluginName: n, initialized: r, enabled: u, consentsData: l };
2348
- }, uc = () => {
2348
+ }, cc = () => {
2349
2349
  const t = document.querySelector("script[data-rsa-write-key]");
2350
2350
  if (t && t.dataset.rsaWriteKey === o.lifecycle.writeKey.value)
2351
2351
  return t.src;
@@ -2355,45 +2355,45 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2355
2355
  if (i && n.test(i))
2356
2356
  return i;
2357
2357
  }
2358
- }, cc = (t) => {
2359
- o.reporting.isErrorReportingEnabled.value = rc(t.source.config) && !ic(), o.reporting.isMetricsReportingEnabled.value = oc(t.source.config);
2360
2358
  }, dc = (t) => {
2359
+ o.reporting.isErrorReportingEnabled.value = oc(t.source.config) && !rc(), o.reporting.isMetricsReportingEnabled.value = ac(t.source.config);
2360
+ }, fc = (t) => {
2361
2361
  const { useServerSideCookies: e, dataServiceEndpoint: n, storage: s, setCookieDomain: i, sameDomainCookiesOnly: r } = o.loadOptions.value;
2362
2362
  let a = s == null ? void 0 : s.cookie, u = !1, l;
2363
2363
  if (e) {
2364
2364
  u = e;
2365
- const c = a.domain ?? i, d = C(c) && !ec(Pn(c)) || r, h = Zu(n ?? Ga, d);
2366
- if (Ke(h)) {
2365
+ const c = a.domain ?? i, d = C(c) && !tc(_n(c)) || r, h = ec(n ?? ja, d);
2366
+ if (Ye(h)) {
2367
2367
  l = ze(h);
2368
- const y = cn(window.location.href), g = cn(h);
2369
- y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== Pn(c) && (u = !1, t.warn(ya(te, c, g)));
2368
+ const y = un(window.location.href), g = un(h);
2369
+ y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== _n(c) && (u = !1, t.warn(ba(te, c, g)));
2370
2370
  } else
2371
2371
  u = !1;
2372
2372
  }
2373
2373
  return { sscEnabled: u, cookieOptions: a, finalDataServiceUrl: l };
2374
- }, fc = (t) => {
2374
+ }, hc = (t) => {
2375
2375
  var d;
2376
2376
  const { storage: e } = o.loadOptions.value;
2377
2377
  let n = e == null ? void 0 : e.type;
2378
- C(n) && !Xu(n) && (t.warn(ma(te, n, on)), n = on);
2378
+ C(n) && !Ju(n) && (t.warn(pa(te, n, rn)), n = rn);
2379
2379
  let s = (d = e == null ? void 0 : e.encryption) == null ? void 0 : d.version;
2380
- const i = s && It[s];
2381
- !x(s) && x(i) ? (t.warn(pa(te, s, It, Ce)), s = Ce) : x(s) && (s = Ce);
2380
+ const i = s && Rt[s];
2381
+ !x(s) && x(i) ? (t.warn(va(te, s, Rt, Ce)), s = Ce) : x(s) && (s = Ce);
2382
2382
  const r = e == null ? void 0 : e.migrate, a = r && s === Ce;
2383
- r === !0 && a !== r && t.warn(va(te, s, Ce));
2384
- const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = dc(t);
2383
+ r === !0 && a !== r && t.warn(ya(te, s, Ce));
2384
+ const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = fc(t);
2385
2385
  j(() => {
2386
- o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = It[s], o.storage.migrate.value = a;
2386
+ o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = Rt[s], o.storage.migrate.value = a;
2387
2387
  });
2388
- }, hc = (t) => {
2388
+ }, gc = (t) => {
2389
2389
  var h, y, g, f;
2390
- const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = Ri(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2390
+ const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = ki(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2391
2391
  let u = ((h = a == null ? void 0 : a.storage) == null ? void 0 : h.strategy) ?? Yt;
2392
2392
  const l = ["none", "session", "anonymousId"];
2393
- C(u) && !l.includes(u) && (u = Yt, t.warn(La(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Yt)));
2394
- let c = ((g = a == null ? void 0 : a.events) == null ? void 0 : g.delivery) ?? Wt;
2393
+ C(u) && !l.includes(u) && (u = Yt, t.warn(wa(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Yt)));
2394
+ let c = ((g = a == null ? void 0 : a.events) == null ? void 0 : g.delivery) ?? Kt;
2395
2395
  const d = ["immediate", "buffer"];
2396
- C(c) && !d.includes(c) && (c = Wt, t.warn(wa(te, (f = a == null ? void 0 : a.events) == null ? void 0 : f.delivery, Wt))), j(() => {
2396
+ C(c) && !d.includes(c) && (c = Kt, t.warn(Ma(te, (f = a == null ? void 0 : a.events) == null ? void 0 : f.delivery, Kt))), j(() => {
2397
2397
  var m;
2398
2398
  o.consents.activeConsentManagerPluginName.value = n, o.consents.initialized.value = s, o.consents.enabled.value = i, o.consents.data.value = r, o.consents.provider.value = e, o.consents.preConsent.value = {
2399
2399
  // Only enable pre-consent if it is explicitly enabled and
@@ -2404,44 +2404,44 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2404
2404
  events: { delivery: c }
2405
2405
  };
2406
2406
  });
2407
- }, gc = (t) => {
2407
+ }, mc = (t) => {
2408
2408
  var s;
2409
2409
  let e = o.consents.resolutionStrategy.value, n;
2410
2410
  M(t.consentManagementMetadata) && (o.consents.provider.value && (e = ((s = t.consentManagementMetadata.providers.find((i) => i.provider === o.consents.provider.value)) == null ? void 0 : s.resolutionStrategy) ?? o.consents.resolutionStrategy.value), n = t.consentManagementMetadata), o.consents.provider.value === "custom" && (e = void 0), j(() => {
2411
2411
  o.consents.metadata.value = T(n), o.consents.resolutionStrategy.value = e;
2412
2412
  });
2413
- }, mc = (t) => {
2413
+ }, pc = (t) => {
2414
2414
  if (o.dataPlaneEvents.deliveryEnabled.value) {
2415
2415
  const e = "XhrQueue";
2416
2416
  let n = e;
2417
- o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(Sa(te)))), j(() => {
2417
+ o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(ka(te)))), j(() => {
2418
2418
  o.dataPlaneEvents.eventsQueuePluginName.value = n;
2419
2419
  });
2420
2420
  }
2421
- }, pc = (t, e, n, s, i) => {
2422
- const r = new URLSearchParams({ p: Gs, v: ut, build: dt, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2423
- let a = oi, u = r, l = "/sourceConfig/", c = "";
2424
- if (Ke(t)) {
2421
+ }, vc = (t, e, n, s, i) => {
2422
+ const r = new URLSearchParams({ p: Hs, v: lt, build: ct, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2423
+ let a = ri, u = r, l = "/sourceConfig/", c = "";
2424
+ if (Ye(t)) {
2425
2425
  const d = new URL(t);
2426
- ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = sc(d.pathname), r.forEach((h, y) => {
2426
+ ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = ic(d.pathname), r.forEach((h, y) => {
2427
2427
  d.searchParams.get(y) === null && d.searchParams.set(y, h);
2428
2428
  }), a = d.origin, l = d.pathname, u = d.searchParams, c = d.hash;
2429
2429
  } else
2430
- i.warn(Pa(te, t));
2430
+ i.warn(Na(te, t));
2431
2431
  return `${a}${l}?${u}${c}`;
2432
- }, vc = (t) => t.map((e) => ({ id: e.id, displayName: e.destinationDefinition.displayName, enabled: e.enabled, config: e.config, shouldApplyDeviceModeTransformation: e.shouldApplyDeviceModeTransformation ?? !1, propagateEventsUntransformedOnError: e.propagateEventsUntransformedOnError ?? !1, userFriendlyId: `${e.destinationDefinition.displayName.replaceAll(" ", "-")}___${e.id}` })), Ii = (t, e, n, s, i, r, a) => {
2432
+ }, yc = (t) => t.map((e) => ({ id: e.id, displayName: e.destinationDefinition.displayName, enabled: e.enabled, config: e.config, shouldApplyDeviceModeTransformation: e.shouldApplyDeviceModeTransformation ?? !1, propagateEventsUntransformedOnError: e.propagateEventsUntransformedOnError ?? !1, userFriendlyId: `${e.destinationDefinition.displayName.replaceAll(" ", "-")}___${e.id}` })), Ri = (t, e, n, s, i, r, a) => {
2433
2433
  let u;
2434
2434
  if (r) {
2435
- if (!Ke(r))
2436
- return a.error(Wo(te, t, r)), null;
2435
+ if (!Ye(r))
2436
+ return a.error(Qo(te, t, r)), null;
2437
2437
  u = ze(r);
2438
2438
  } else if (u = n, o.context.app.value.installType === "cdn") {
2439
- const l = uc();
2439
+ const l = cc();
2440
2440
  l && (u = l.split("/").slice(0, -1).concat(e).join("/"));
2441
2441
  }
2442
- return i && (u = u.replace(new RegExp(`/${In}/${dt}/${e}$`), `/${s}/${dt}/${e}`)), u;
2443
- }, yc = (t, e, n, s) => Ii("integrations", Rn, ii, t, e, n, s), bc = (t, e, n, s) => Ii("plugins", si, ri, t, e, n, s);
2444
- class Ec {
2442
+ return i && (u = u.replace(new RegExp(`/${Rn}/${ct}/${e}$`), `/${s}/${ct}/${e}`)), u;
2443
+ }, bc = (t, e, n, s) => Ri("integrations", kn, si, t, e, n, s), Ec = (t, e, n, s) => Ri("plugins", ni, ii, t, e, n, s);
2444
+ class Sc {
2445
2445
  constructor(e, n, s) {
2446
2446
  this.errorHandler = n, this.logger = s, this.httpClient = e, this.onError = this.onError.bind(this), this.processConfig = this.processConfig.bind(this);
2447
2447
  }
@@ -2455,12 +2455,12 @@ class Ec {
2455
2455
  * config related information in global state
2456
2456
  */
2457
2457
  init() {
2458
- const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = yc(ut, s, r, this.logger);
2458
+ const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = bc(lt, s, r, this.logger);
2459
2459
  if (ne(l))
2460
2460
  return;
2461
2461
  let c;
2462
- c = bc(ut, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = ze(o.lifecycle.dataPlaneUrl.value), fc(this.logger), hc(this.logger), mc(this.logger), j(() => {
2463
- o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = pc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${ja}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
2462
+ c = Ec(lt, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = ze(o.lifecycle.dataPlaneUrl.value), hc(this.logger), gc(this.logger), pc(this.logger), j(() => {
2463
+ o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = vc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${qa}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
2464
2464
  }), this.getConfig());
2465
2465
  }
2466
2466
  /**
@@ -2475,28 +2475,28 @@ class Ec {
2475
2475
  */
2476
2476
  processConfig(e, n) {
2477
2477
  if (!C(e)) {
2478
- C(n) ? this.onError(n.error, qn) : this.onError(new Error(qn));
2478
+ C(n) ? this.onError(n.error, jn) : this.onError(new Error(jn));
2479
2479
  return;
2480
2480
  }
2481
2481
  let s;
2482
2482
  try {
2483
2483
  L(e) ? s = JSON.parse(e) : s = e;
2484
2484
  } catch (r) {
2485
- this.onError(r, Gn);
2485
+ this.onError(r, Hn);
2486
2486
  return;
2487
2487
  }
2488
- if (!Qu(s)) {
2489
- this.onError(new Error(Gn));
2488
+ if (!Xu(s)) {
2489
+ this.onError(new Error(Hn));
2490
2490
  return;
2491
2491
  }
2492
2492
  if (s.source.enabled === !1) {
2493
- this.logger.error(jo);
2493
+ this.logger.error(qo);
2494
2494
  return;
2495
2495
  }
2496
- cc(s);
2497
- const i = s.source.destinations.length > 0 ? vc(s.source.destinations) : [];
2496
+ dc(s);
2497
+ const i = s.source.destinations.length > 0 ? yc(s.source.destinations) : [];
2498
2498
  j(() => {
2499
- o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [], gc(s), o.lifecycle.status.value = "configured";
2499
+ o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [], mc(s), o.lifecycle.status.value = "configured";
2500
2500
  });
2501
2501
  }
2502
2502
  /**
@@ -2508,7 +2508,7 @@ class Ec {
2508
2508
  const e = o.loadOptions.value.getSourceConfig;
2509
2509
  if (e) {
2510
2510
  if (!S(e)) {
2511
- this.logger.error(Yo(te));
2511
+ this.logger.error(Wo(te));
2512
2512
  return;
2513
2513
  }
2514
2514
  const n = e();
@@ -2519,10 +2519,10 @@ class Ec {
2519
2519
  this.httpClient.getAsyncData({ url: o.lifecycle.sourceConfigUrl.value, options: { headers: { "Content-Type": void 0 } }, callback: this.processConfig });
2520
2520
  }
2521
2521
  }
2522
- const Sc = () => {
2522
+ const kc = () => {
2523
2523
  const t = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString());
2524
2524
  return t != null && t[1] ? t[1] : "NA";
2525
- }, Ti = () => (document == null ? void 0 : document.referrer) || "$direct", kc = () => {
2525
+ }, Ii = () => (document == null ? void 0 : document.referrer) || "$direct", Rc = () => {
2526
2526
  const t = document.getElementsByTagName("link");
2527
2527
  let e = "";
2528
2528
  for (let n = 0; t[n]; n += 1) {
@@ -2533,7 +2533,7 @@ const Sc = () => {
2533
2533
  }
2534
2534
  }
2535
2535
  return e;
2536
- }, Rc = () => {
2536
+ }, Ic = () => {
2537
2537
  if (x(globalThis.navigator))
2538
2538
  return null;
2539
2539
  let { userAgent: t } = globalThis.navigator;
@@ -2543,8 +2543,8 @@ const Sc = () => {
2543
2543
  n && (t = `${t} Brave/${n[2]}`);
2544
2544
  }
2545
2545
  return t;
2546
- }, Ic = () => x(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ai = () => {
2547
- const t = kc();
2546
+ }, Tc = () => x(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ti = () => {
2547
+ const t = Rc();
2548
2548
  let e = globalThis.location.pathname;
2549
2549
  const { href: n } = globalThis.location;
2550
2550
  let s = n;
@@ -2555,12 +2555,12 @@ const Sc = () => {
2555
2555
  l.search === "" ? s = t + i : s = t, e = l.pathname;
2556
2556
  } catch {
2557
2557
  }
2558
- const r = nc(s), { title: a } = document, u = Ti();
2559
- return { path: e, referrer: u, referring_domain: ki(u), search: i, title: a, url: r, tab_url: n };
2560
- }, Tc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(un).join("%2C")}`, Ac = 10 * 1e3, as = "rudderstackPolyfill";
2561
- class Oc {
2558
+ const r = sc(s), { title: a } = document, u = Ii();
2559
+ return { path: e, referrer: u, referring_domain: Si(u), search: i, title: a, url: r, tab_url: n };
2560
+ }, Ac = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(ln).join("%2C")}`, Oc = 10 * 1e3, os = "rudderstackPolyfill";
2561
+ class Dc {
2562
2562
  constructor(e, n, s) {
2563
- this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new zs(this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
2563
+ this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new qs(this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
2564
2564
  }
2565
2565
  init() {
2566
2566
  this.prepareBrowserCapabilities(), this.attachWindowListeners();
@@ -2571,21 +2571,21 @@ class Oc {
2571
2571
  // eslint-disable-next-line class-methods-use-this
2572
2572
  detectBrowserCapabilities() {
2573
2573
  j(() => {
2574
- o.capabilities.storage.isCookieStorageAvailable.value = Ge(W, ie(W), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = Ge(X, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = Ge(ee, void 0, this.logger), o.capabilities.isBeaconAvailable.value = wu(), o.capabilities.isUaCHAvailable.value = is(), o.capabilities.isCryptoAvailable.value = Lu(), o.capabilities.isIE11.value = Mu(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Rc(), o.context.locale.value = Ic(), o.context.screen.value = rs(), o.context.timezone.value = Sc(), is() && $u((e) => {
2574
+ o.capabilities.storage.isCookieStorageAvailable.value = Ge(W, ie(W), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = Ge(X, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = Ge(ee, void 0, this.logger), o.capabilities.isBeaconAvailable.value = Mu(), o.capabilities.isUaCHAvailable.value = ss(), o.capabilities.isCryptoAvailable.value = wu(), o.capabilities.isIE11.value = $u(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Ic(), o.context.locale.value = Tc(), o.context.screen.value = is(), o.context.timezone.value = kc(), ss() && Uu((e) => {
2575
2575
  o.context["ua-ch"].value = e;
2576
2576
  }, o.loadOptions.value.uaChTrackLevel);
2577
2577
  }), fe(() => {
2578
- o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && di(this.httpClient);
2578
+ o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && ci(this.httpClient);
2579
2579
  });
2580
2580
  }
2581
2581
  /**
2582
2582
  * Detect if polyfills are required and then load script from polyfill URL
2583
2583
  */
2584
2584
  prepareBrowserCapabilities() {
2585
- o.capabilities.isLegacyDOM.value = Bu();
2585
+ o.capabilities.isLegacyDOM.value = Vu();
2586
2586
  const e = o.loadOptions.value.polyfillURL;
2587
- let n = Tc;
2588
- if (qe(e) && (Ke(e) ? n = e : this.logger.warn(Ua(nn, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ke(n)) {
2587
+ let n = Ac;
2588
+ if (qe(e) && (Ye(e) ? n = e : this.logger.warn(Ba(tn, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ye(n)) {
2589
2589
  const i = n !== o.loadOptions.value.polyfillURL;
2590
2590
  if (i) {
2591
2591
  const r = `RS_polyfillCallback_${o.lifecycle.writeKey.value}`, a = () => {
@@ -2593,8 +2593,8 @@ class Oc {
2593
2593
  };
2594
2594
  globalThis[r] = a, n = `${n}&callback=${r}`;
2595
2595
  }
2596
- this.externalSrcLoader.loadJSFile({ url: n, id: as, async: !0, timeout: Ac, callback: (r) => {
2597
- r ? i || this.onReady() : this.onError(new Error(Na(as, n)));
2596
+ this.externalSrcLoader.loadJSFile({ url: n, id: os, async: !0, timeout: Oc, callback: (r) => {
2597
+ r ? i || this.onReady() : this.onError(new Error(La(os, n)));
2598
2598
  } });
2599
2599
  } else
2600
2600
  this.onReady();
@@ -2607,8 +2607,8 @@ class Oc {
2607
2607
  o.capabilities.isOnline.value = !1;
2608
2608
  }), globalThis.addEventListener("online", () => {
2609
2609
  o.capabilities.isOnline.value = !0;
2610
- }), globalThis.addEventListener("resize", Ao(() => {
2611
- o.context.screen.value = rs();
2610
+ }), globalThis.addEventListener("resize", Oo(() => {
2611
+ o.context.screen.value = is();
2612
2612
  }, this));
2613
2613
  }
2614
2614
  /**
@@ -2623,16 +2623,16 @@ class Oc {
2623
2623
  * @param error The error object
2624
2624
  */
2625
2625
  onError(e, n) {
2626
- this.errorHandler.onError({ error: e, context: nn, groupingHash: n });
2626
+ this.errorHandler.onError({ error: e, context: tn, groupingHash: n });
2627
2627
  }
2628
2628
  }
2629
- const Dc = "web", Cc = ["integrations", "anonymousId", "originalTimestamp"], ls = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Qt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"], Oi = (t) => typeof t == "number" && !Number.isNaN(t), _c = (t, e) => e.toString().length >= t, Mt = (t) => Oi(t) && t >= 0 && Number.isInteger(t), us = 10, Di = (t) => {
2629
+ const Cc = "web", _c = ["integrations", "anonymousId", "originalTimestamp"], as = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Wt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"], Ai = (t) => typeof t == "number" && !Number.isNaN(t), Pc = (t, e) => e.toString().length >= t, wt = (t) => Ai(t) && t >= 0 && Number.isInteger(t), ls = 10, Oi = (t) => {
2630
2630
  const { cutOff: e } = t, n = Date.now();
2631
2631
  return !!(e != null && e.enabled && e.expiresAt && n > e.expiresAt);
2632
- }, cs = (t) => !t.expiresAt || Date.now() > t.expiresAt || Di(t), Pc = () => Date.now(), Nc = (t, e) => !t || !Mt(t) || !_c(us, t) ? (e.warn(Oa(De, t, us)), !1) : !0, Lc = (t) => {
2632
+ }, us = (t) => !t.expiresAt || Date.now() > t.expiresAt || Oi(t), Nc = () => Date.now(), Lc = (t, e) => !t || !wt(t) || !Pc(ls, t) ? (e.warn(Da(De, t, ls)), !1) : !0, wc = (t) => {
2633
2633
  if (t != null && t.enabled)
2634
- return t.expiresAt ?? (Mt(t.duration) ? Date.now() + t.duration : void 0);
2635
- }, wc = (t) => {
2634
+ return t.expiresAt ?? (wt(t.duration) ? Date.now() + t.duration : void 0);
2635
+ }, Mc = (t) => {
2636
2636
  const { timeout: e, cutOff: n } = t, s = Date.now();
2637
2637
  return {
2638
2638
  id: s,
@@ -2643,47 +2643,47 @@ const Dc = "web", Cc = ["integrations", "anonymousId", "originalTimestamp"], ls
2643
2643
  autoTrack: !0,
2644
2644
  ...n && { cutOff: n }
2645
2645
  };
2646
- }, Mc = (t, e) => ({ id: Nc(t, e) ? t : Pc(), sessionStart: void 0, manualTrack: !0 }), it = (t) => t === W || t === X || t === ee || t === ce, dn = () => Ut(), $c = (t) => {
2647
- const e = Ai(), n = {};
2646
+ }, $c = (t, e) => ({ id: Lc(t, e) ? t : Nc(), sessionStart: void 0, manualTrack: !0 }), st = (t) => t === W || t === X || t === ee || t === ce, cn = () => $t(), Uc = (t) => {
2647
+ const e = Ti(), n = {};
2648
2648
  return Object.keys(e).forEach((s) => {
2649
2649
  n[s] = (t == null ? void 0 : t[s]) || e[s];
2650
2650
  }), n.initial_referrer = (t == null ? void 0 : t.initial_referrer) || o.session.initialReferrer.value, n.initial_referring_domain = (t == null ? void 0 : t.initial_referring_domain) || o.session.initialReferringDomain.value, n;
2651
- }, Uc = (t, e) => {
2652
- const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ai();
2651
+ }, Bc = (t, e) => {
2652
+ const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ti();
2653
2653
  return Object.keys(i).forEach((r) => {
2654
2654
  x(s[r]) && (s[r] = n[r] || i[r]);
2655
2655
  }), x(s.initial_referrer) && (s.initial_referrer = n.initial_referrer || o.session.initialReferrer.value), x(s.initial_referring_domain) && (s.initial_referring_domain = n.initial_referring_domain || o.session.initialReferringDomain.value), s;
2656
- }, Xt = (t, e, n) => {
2656
+ }, Qt = (t, e, n) => {
2657
2657
  M(t) && Object.keys(t).forEach((s) => {
2658
- (Qt.includes(s) || Qt.includes(s.toLowerCase())) && n.warn(ba(Vs, s, e, Qt));
2658
+ (Wt.includes(s) || Wt.includes(s.toLowerCase())) && n.warn(Ea(Bs, s, e, Wt));
2659
2659
  });
2660
- }, Bc = (t, e) => {
2661
- const { properties: n, traits: s, context: i } = t, { traits: r } = i;
2662
- Xt(n, "properties", e), Xt(s, "traits", e), Xt(r, "context.traits", e);
2663
2660
  }, Vc = (t, e) => {
2661
+ const { properties: n, traits: s, context: i } = t, { traits: r } = i;
2662
+ Qt(n, "properties", e), Qt(s, "traits", e), Qt(r, "context.traits", e);
2663
+ }, Fc = (t, e) => {
2664
2664
  e.anonymousId && L(e.anonymousId) && (t.anonymousId = e.anonymousId), Ie(e.integrations) && (t.integrations = e.integrations), e.originalTimestamp && L(e.originalTimestamp) && (t.originalTimestamp = e.originalTimestamp);
2665
- }, Fc = (t, e, n) => {
2665
+ }, xc = (t, e, n) => {
2666
2666
  let s = t;
2667
2667
  return Object.keys(e).forEach((i) => {
2668
- if (!Cc.includes(i) && !ls.includes(i))
2668
+ if (!_c.includes(i) && !as.includes(i))
2669
2669
  if (i !== "context")
2670
2670
  s = H(s, { [i]: e[i] });
2671
2671
  else if (!x(e[i]) && M(e[i])) {
2672
2672
  const r = {};
2673
2673
  Object.keys(e[i]).forEach((a) => {
2674
- ls.includes(a) || (r[a] = e[i][a]);
2674
+ as.includes(a) || (r[a] = e[i][a]);
2675
2675
  }), s = H(s, { ...r });
2676
2676
  } else
2677
- n.warn(Ea(Vs));
2677
+ n.warn(Sa(Bs));
2678
2678
  }), s;
2679
- }, xc = (t, e, n) => {
2680
- M(e) && (Vc(t, e), t.context = Fc(t.context, e, n));
2681
- }, Hc = (t) => {
2679
+ }, Hc = (t, e, n) => {
2680
+ M(e) && (Fc(t, e), t.context = xc(t.context, e, n));
2681
+ }, Gc = (t) => {
2682
2682
  let e;
2683
- return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ni, T(e);
2684
- }, tt = (t, e, n, s) => {
2683
+ return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ti, T(e);
2684
+ }, et = (t, e, n, s) => {
2685
2685
  var a, u, l;
2686
- const i = { channel: Dc, context: {
2686
+ const i = { channel: Cc, context: {
2687
2687
  traits: T(o.session.userTraits.value),
2688
2688
  sessionId: o.session.sessionInfo.value.id || void 0,
2689
2689
  sessionStart: o.session.sessionInfo.value.sessionStart || void 0,
@@ -2696,17 +2696,17 @@ const Dc = "web", Cc = ["integrations", "anonymousId", "originalTimestamp"], ls
2696
2696
  os: o.context.os.value,
2697
2697
  locale: o.context.locale.value,
2698
2698
  screen: o.context.screen.value,
2699
- campaign: tc(globalThis.location.href),
2700
- page: $c(n),
2699
+ campaign: nc(globalThis.location.href),
2700
+ page: Uc(n),
2701
2701
  timezone: o.context.timezone.value,
2702
2702
  // Add auto tracking information
2703
2703
  ...o.autoTrack.enabled.value && { autoTrack: { ...o.autoTrack.pageLifecycle.enabled.value && { page: { pageViewId: o.autoTrack.pageLifecycle.pageViewId.value } } } }
2704
- }, originalTimestamp: ro(), messageId: Ut(), userId: t.userId || o.session.userId.value };
2705
- it((a = o.storage.entries.value.anonymousId) == null ? void 0 : a.type) ? i.anonymousId = o.session.anonymousId.value : i.anonymousId = dn(), o.storage.trulyAnonymousTracking.value && (i.context.trulyAnonymousTracking = !0), t.type === "identify" && (i.context.traits = ((u = o.storage.entries.value.userTraits) == null ? void 0 : u.type) !== we ? T(o.session.userTraits.value) : t.context.traits), t.type === "group" && ((t.groupId || o.session.groupId.value) && (i.groupId = t.groupId || o.session.groupId.value), (t.traits || o.session.groupTraits.value) && (i.traits = ((l = o.storage.entries.value.groupTraits) == null ? void 0 : l.type) !== we ? T(o.session.groupTraits.value) : t.traits));
2704
+ }, originalTimestamp: oo(), messageId: $t(), userId: t.userId || o.session.userId.value };
2705
+ st((a = o.storage.entries.value.anonymousId) == null ? void 0 : a.type) ? i.anonymousId = o.session.anonymousId.value : i.anonymousId = cn(), o.storage.trulyAnonymousTracking.value && (i.context.trulyAnonymousTracking = !0), t.type === "identify" && (i.context.traits = ((u = o.storage.entries.value.userTraits) == null ? void 0 : u.type) !== we ? T(o.session.userTraits.value) : t.context.traits), t.type === "group" && ((t.groupId || o.session.groupId.value) && (i.groupId = t.groupId || o.session.groupId.value), (t.traits || o.session.groupTraits.value) && (i.traits = ((l = o.storage.entries.value.groupTraits) == null ? void 0 : l.type) !== we ? T(o.session.groupTraits.value) : t.traits));
2706
2706
  const r = H(t, i);
2707
- return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), xc(r, e, s), Bc(r, s), r.integrations = Hc(r.integrations), r;
2707
+ return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), Hc(r, e, s), Vc(r, s), r.integrations = Gc(r.integrations), r;
2708
2708
  };
2709
- class Gc {
2709
+ class jc {
2710
2710
  constructor(e) {
2711
2711
  this.logger = e;
2712
2712
  }
@@ -2719,7 +2719,7 @@ class Gc {
2719
2719
  */
2720
2720
  generatePageEvent(e, n, s, i) {
2721
2721
  let r = s ?? {};
2722
- return r = Uc(r, i), tt({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2722
+ return r = Bc(r, i), et({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2723
2723
  }
2724
2724
  /**
2725
2725
  * Generate a 'track' event based on the user-input fields
@@ -2728,7 +2728,7 @@ class Gc {
2728
2728
  * @param options API options
2729
2729
  */
2730
2730
  generateTrackEvent(e, n, s) {
2731
- return tt({ properties: n, event: e, type: "track" }, s, void 0, this.logger);
2731
+ return et({ properties: n, event: e, type: "track" }, s, void 0, this.logger);
2732
2732
  }
2733
2733
  /**
2734
2734
  * Generate an 'identify' event based on the user-input fields
@@ -2737,7 +2737,7 @@ class Gc {
2737
2737
  * @param options API options
2738
2738
  */
2739
2739
  generateIdentifyEvent(e, n, s) {
2740
- return tt({ userId: e, type: "identify", context: { traits: n } }, s, void 0, this.logger);
2740
+ return et({ userId: e, type: "identify", context: { traits: n } }, s, void 0, this.logger);
2741
2741
  }
2742
2742
  /**
2743
2743
  * Generate an 'alias' event based on the user-input fields
@@ -2746,7 +2746,7 @@ class Gc {
2746
2746
  * @param options API options
2747
2747
  */
2748
2748
  generateAliasEvent(e, n, s) {
2749
- const r = tt({ previousId: n, type: "alias" }, s, void 0, this.logger);
2749
+ const r = et({ previousId: n, type: "alias" }, s, void 0, this.logger);
2750
2750
  return r.userId = e ?? r.userId, r;
2751
2751
  }
2752
2752
  /**
@@ -2757,7 +2757,7 @@ class Gc {
2757
2757
  */
2758
2758
  generateGroupEvent(e, n, s) {
2759
2759
  const i = { type: "group" };
2760
- return e && (i.groupId = e), n && (i.traits = n), tt(i, s, void 0, this.logger);
2760
+ return e && (i.groupId = e), n && (i.traits = n), et(i, s, void 0, this.logger);
2761
2761
  }
2762
2762
  /**
2763
2763
  * Generates a new RudderEvent object based on the user-input fields
@@ -2787,7 +2787,7 @@ class Gc {
2787
2787
  return n;
2788
2788
  }
2789
2789
  }
2790
- class jc {
2790
+ class qc {
2791
2791
  /**
2792
2792
  *
2793
2793
  * @param eventRepository Event repository instance
@@ -2796,7 +2796,7 @@ class jc {
2796
2796
  * @param logger Logger object
2797
2797
  */
2798
2798
  constructor(e, n, s, i) {
2799
- this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new Gc(this.logger);
2799
+ this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new jc(this.logger);
2800
2800
  }
2801
2801
  /**
2802
2802
  * Initializes the event manager
@@ -2817,7 +2817,7 @@ class jc {
2817
2817
  this.eventRepository.enqueue(n, e.callback);
2818
2818
  }
2819
2819
  }
2820
- class qc {
2820
+ class zc {
2821
2821
  constructor(e, n, s, i, r) {
2822
2822
  this.storeManager = n, this.pluginsManager = e, this.logger = r, this.errorHandler = i, this.httpClient = s, this.onError = this.onError.bind(this), this.serverSideCookieDebounceFuncs = {};
2823
2823
  }
@@ -2857,13 +2857,13 @@ class qc {
2857
2857
  if (e && n)
2858
2858
  this.setInitialReferrer(e), this.setInitialReferringDomain(n);
2859
2859
  else {
2860
- const s = e || Ti();
2861
- this.setInitialReferrer(s), this.setInitialReferringDomain(ki(s));
2860
+ const s = e || Ii();
2861
+ this.setInitialReferrer(s), this.setInitialReferringDomain(Si(s));
2862
2862
  }
2863
2863
  }
2864
2864
  isPersistenceEnabledForStorageEntry(e) {
2865
2865
  var n;
2866
- return it((n = o.storage.entries.value[e]) == null ? void 0 : n.type);
2866
+ return st((n = o.storage.entries.value[e]) == null ? void 0 : n.type);
2867
2867
  }
2868
2868
  migrateDataFromPreviousStorage() {
2869
2869
  const e = o.storage.entries.value, n = [W, X, ee];
@@ -2875,7 +2875,7 @@ class qc {
2875
2875
  const d = (h = this.storeManager) == null ? void 0 : h.getStore(Fe[c]);
2876
2876
  if (d && c !== r) {
2877
2877
  const y = d.get(Ve[i]);
2878
- Hr(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2878
+ Gr(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2879
2879
  }
2880
2880
  });
2881
2881
  });
@@ -2884,7 +2884,7 @@ class qc {
2884
2884
  if (!o.storage.migrate.value)
2885
2885
  return;
2886
2886
  let s = e ?? [];
2887
- s.length === 0 && [pi, vi, yi].forEach((a) => {
2887
+ s.length === 0 && [mi, pi, vi].forEach((a) => {
2888
2888
  var l;
2889
2889
  const u = (l = this.storeManager) == null ? void 0 : l.getStore(a);
2890
2890
  u && s.push(u);
@@ -2904,14 +2904,14 @@ class qc {
2904
2904
  return { autoTrack: e };
2905
2905
  let n;
2906
2906
  const s = (r = o.loadOptions.value.sessions) == null ? void 0 : r.timeout;
2907
- Mt(s) ? n = s : (this.logger.warn(ka(De, s, sn)), n = sn), n === 0 && (this.logger.warn(Ta(De)), e = !1), n > 0 && n < Fn && this.logger.warn(Aa(De, n, Fn));
2907
+ wt(s) ? n = s : (this.logger.warn(Ra(De, s, nn)), n = nn), n === 0 && (this.logger.warn(Aa(De)), e = !1), n > 0 && n < Vn && this.logger.warn(Oa(De, n, Vn));
2908
2908
  const i = this.getCutOffInfo(n);
2909
2909
  return { timeout: n, autoTrack: e, cutOff: i };
2910
2910
  }
2911
2911
  getCutOffInfo(e) {
2912
2912
  const n = o.loadOptions.value.sessions.cutOff;
2913
2913
  let s, i = !1;
2914
- return n.enabled === !0 && (s = n.duration, i = !0, Mt(s) ? s < e && (this.logger.warn(Ia(De, s, e)), i = !1) : (this.logger.warn(Ra(De, s, Vn)), s = Vn)), { enabled: i, duration: s };
2914
+ return n.enabled === !0 && (s = n.duration, i = !0, wt(s) ? s < e && (this.logger.warn(Ta(De, s, e)), i = !1) : (this.logger.warn(Ia(De, s, Bn)), s = Bn)), { enabled: i, duration: s };
2915
2915
  }
2916
2916
  /**
2917
2917
  * Handles error
@@ -2954,13 +2954,13 @@ class qc {
2954
2954
  var u, l;
2955
2955
  ((u = a == null ? void 0 : a.xhr) == null ? void 0 : u.status) === 200 ? e.forEach((c) => {
2956
2956
  const d = s == null ? void 0 : s.get(c.name), h = de(c.value, !1, []);
2957
- de(d, !1, []) !== h && (this.logger.error(ga(c.name)), n && n(c.name, c.value));
2958
- }) : (this.logger.error(ha((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2957
+ de(d, !1, []) !== h && (this.logger.error(ma(c.name)), n && n(c.name, c.value));
2958
+ }) : (this.logger.error(ga((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2959
2959
  n && n(c.name, c.value);
2960
2960
  }));
2961
2961
  });
2962
2962
  } catch (i) {
2963
- this.onError(i, zn, zn), e.forEach((r) => {
2963
+ this.onError(i, qn, qn), e.forEach((r) => {
2964
2964
  n && n(r.name, r.value);
2965
2965
  });
2966
2966
  }
@@ -2973,7 +2973,7 @@ class qc {
2973
2973
  syncValueToStorage(e, n) {
2974
2974
  var r, a, u;
2975
2975
  const s = o.storage.entries.value, i = (r = s[e]) == null ? void 0 : r.type;
2976
- if (it(i)) {
2976
+ if (st(i)) {
2977
2977
  const l = (a = this.storeManager) == null ? void 0 : a.getStore(Fe[i]), c = (u = s[e]) == null ? void 0 : u.key;
2978
2978
  n && (L(n) || Ie(n)) ? o.serverCookies.isEnabledServerSideCookies.value && i === W ? (this.serverSideCookieDebounceFuncs[e] && globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]), this.serverSideCookieDebounceFuncs[e] = globalThis.setTimeout(() => {
2979
2979
  this.setServerSideCookies([{ name: c, value: n }], (d, h) => {
@@ -2986,7 +2986,7 @@ class qc {
2986
2986
  * Function to update storage whenever state value changes
2987
2987
  */
2988
2988
  registerEffects() {
2989
- bi.forEach((e) => {
2989
+ yi.forEach((e) => {
2990
2990
  fe(() => {
2991
2991
  this.syncValueToStorage(e, o.session[e].value);
2992
2992
  });
@@ -3003,7 +3003,7 @@ class qc {
3003
3003
  setAnonymousId(e, n) {
3004
3004
  var i;
3005
3005
  let s = e;
3006
- (!L(e) || !s) && (s = void 0), this.isPersistenceEnabledForStorageEntry("anonymousId") ? (!s && n && (s = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("userSession.anonymousIdGoogleLinker", n)), s = s || dn()) : s = A.anonymousId, o.session.anonymousId.value = s;
3006
+ (!L(e) || !s) && (s = void 0), this.isPersistenceEnabledForStorageEntry("anonymousId") ? (!s && n && (s = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("userSession.anonymousIdGoogleLinker", n)), s = s || cn()) : s = A.anonymousId, o.session.anonymousId.value = s;
3007
3007
  }
3008
3008
  /**
3009
3009
  * Fetches anonymousId
@@ -3013,16 +3013,16 @@ class qc {
3013
3013
  getAnonymousId(e) {
3014
3014
  var s, i;
3015
3015
  const n = (s = o.storage.entries.value.anonymousId) == null ? void 0 : s.type;
3016
- if (it(n)) {
3016
+ if (st(n)) {
3017
3017
  let r = o.session.anonymousId.value;
3018
- (!r || r === A.anonymousId) && (r = this.getEntryValue("anonymousId")), !r && e && (r = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("storage.getAnonymousId", ie, e)), o.session.anonymousId.value = r || dn();
3018
+ (!r || r === A.anonymousId) && (r = this.getEntryValue("anonymousId")), !r && e && (r = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("storage.getAnonymousId", ie, e)), o.session.anonymousId.value = r || cn();
3019
3019
  }
3020
3020
  return o.session.anonymousId.value;
3021
3021
  }
3022
3022
  getEntryValue(e) {
3023
3023
  var i, r, a;
3024
3024
  const n = o.storage.entries.value, s = (i = n[e]) == null ? void 0 : i.type;
3025
- if (it(s)) {
3025
+ if (st(s)) {
3026
3026
  const u = (r = this.storeManager) == null ? void 0 : r.getStore(Fe[s]);
3027
3027
  this.migrateStorageIfNeeded([u], [e]);
3028
3028
  const l = (a = n[e]) == null ? void 0 : a.key;
@@ -3096,7 +3096,7 @@ class qc {
3096
3096
  */
3097
3097
  getSessionId() {
3098
3098
  const e = this.getSessionInfo() ?? A.sessionInfo;
3099
- return e.autoTrack && !cs(e) || e.manualTrack ? e.id ?? null : null;
3099
+ return e.autoTrack && !us(e) || e.manualTrack ? e.id ?? null : null;
3100
3100
  }
3101
3101
  /**
3102
3102
  * A function to keep the session information up to date in the state
@@ -3169,14 +3169,14 @@ class qc {
3169
3169
  */
3170
3170
  startOrRenewAutoTracking(e) {
3171
3171
  let n = e;
3172
- if (cs(e))
3173
- n = wc(e);
3172
+ if (us(e))
3173
+ n = Mc(e);
3174
3174
  else {
3175
3175
  const s = Date.now(), i = e.timeout;
3176
3176
  n.expiresAt = s + i;
3177
3177
  }
3178
- if (Di(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3179
- const s = Lc(n.cutOff);
3178
+ if (Oi(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3179
+ const s = wc(n.cutOff);
3180
3180
  n.cutOff.expiresAt = s;
3181
3181
  }
3182
3182
  o.session.sessionInfo.value = n;
@@ -3187,7 +3187,7 @@ class qc {
3187
3187
  * @returns
3188
3188
  */
3189
3189
  start(e) {
3190
- o.session.sessionInfo.value = Mc(e, this.logger);
3190
+ o.session.sessionInfo.value = $c(e, this.logger);
3191
3191
  }
3192
3192
  /**
3193
3193
  * An internal function to start manual session
@@ -3209,31 +3209,31 @@ class qc {
3209
3209
  o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : A.authToken;
3210
3210
  }
3211
3211
  }
3212
- const zc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kc = (t, e) => {
3212
+ const Yc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kc = (t, e) => {
3213
3213
  var a;
3214
3214
  const n = T(e);
3215
- return L(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = ge(n.integrations), Array.isArray(n.plugins) || (n.plugins = zc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), L(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = ge(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Ie(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = ge(n.storage.cookie), n.storage.encryption = ge(n.storage.encryption), n.storage = _t(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = ge(n.destinationsQueueOptions), n.queueOptions = ge(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Oi(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = ge(n.beaconQueueOptions), n.preConsent = ge(n.preConsent), n.sourceConfigurationOverride = ge(n.sourceConfigurationOverride), H(t, _t(n));
3216
- }, ds = "dataplaneEventsQueue", fs = "destinationsEventsQueue", Yc = "transformEvent", Wc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3215
+ return L(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = ge(n.integrations), Array.isArray(n.plugins) || (n.plugins = Yc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), L(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = ge(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Ie(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = ge(n.storage.cookie), n.storage.encryption = ge(n.storage.encryption), n.storage = Ct(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = ge(n.destinationsQueueOptions), n.queueOptions = ge(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Ai(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = ge(n.beaconQueueOptions), n.preConsent = ge(n.preConsent), n.sourceConfigurationOverride = ge(n.sourceConfigurationOverride), H(t, Ct(n));
3216
+ }, cs = "dataplaneEventsQueue", ds = "destinationsEventsQueue", Wc = "transformEvent", Qc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3217
3217
  const i = T(n);
3218
3218
  return i[s] = t[s], i;
3219
- }, {}), Qc = (t, e) => {
3220
- const n = T(t), s = e.nativeDestinations.integrationsConfig.value, i = Wc(t.integrations, s);
3219
+ }, {}), Xc = (t, e) => {
3220
+ const n = T(t), s = e.nativeDestinations.integrationsConfig.value, i = Qc(t.integrations, s);
3221
3221
  return n.integrations = H(s, i), n;
3222
- }, Xc = (t) => {
3222
+ }, Jc = (t) => {
3223
3223
  var e;
3224
3224
  return t.consents.preConsent.value.enabled && ((e = t.consents.preConsent.value.events) == null ? void 0 : e.delivery) === "buffer";
3225
- }, Ct = (t, e, n, s) => {
3225
+ }, Dt = (t, e, n, s) => {
3226
3226
  if (C(t))
3227
3227
  if (S(t))
3228
3228
  try {
3229
3229
  t(...e);
3230
3230
  } catch (i) {
3231
- s.error(_a(n), i);
3231
+ s.error(Pa(n), i);
3232
3232
  }
3233
3233
  else
3234
- s.error(ti(n));
3234
+ s.error(ei(n));
3235
3235
  };
3236
- class Jc {
3236
+ class Zc {
3237
3237
  /**
3238
3238
  *
3239
3239
  * @param pluginsManager Plugins manager instance
@@ -3248,16 +3248,16 @@ class Jc {
3248
3248
  * Initializes the event repository
3249
3249
  */
3250
3250
  init() {
3251
- this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${ds}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${Yc}.init`, o, this.pluginsManager, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.destinationsEventsQueue = this.pluginsManager.invokeSingle(`${fs}.init`, o, this.pluginsManager, this.storeManager, this.dmtEventsQueue, this.errorHandler, this.logger), fe(() => {
3251
+ this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${cs}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${Wc}.init`, o, this.pluginsManager, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.destinationsEventsQueue = this.pluginsManager.invokeSingle(`${ds}.init`, o, this.pluginsManager, this.storeManager, this.dmtEventsQueue, this.errorHandler, this.logger), fe(() => {
3252
3252
  var s, i;
3253
3253
  o.nativeDestinations.clientDestinationsReady.value === !0 && ((s = this.destinationsEventsQueue) == null || s.start(), (i = this.dmtEventsQueue) == null || i.start());
3254
3254
  });
3255
- const e = Xc(o);
3255
+ const e = Jc(o);
3256
3256
  let n;
3257
3257
  fe(() => {
3258
3258
  var r, a;
3259
3259
  const s = o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && o.nativeDestinations.clientDestinationsReady.value === !1;
3260
- (o.nativeDestinations.activeDestinations.value.some((u) => Wl(u)) === !1 || s === !1) && !e && ((r = this.dataplaneEventsQueue) == null ? void 0 : r.scheduleTimeoutActive) !== !0 && (globalThis.clearTimeout(n), (a = this.dataplaneEventsQueue) == null || a.start());
3260
+ (o.nativeDestinations.activeDestinations.value.some((u) => Ql(u)) === !1 || s === !1) && !e && ((r = this.dataplaneEventsQueue) == null ? void 0 : r.scheduleTimeoutActive) !== !0 && (globalThis.clearTimeout(n), (a = this.dataplaneEventsQueue) == null || a.start());
3261
3261
  }), o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && (n = globalThis.setTimeout(() => {
3262
3262
  var s, i;
3263
3263
  ((s = this.dataplaneEventsQueue) == null ? void 0 : s.scheduleTimeoutActive) !== !0 && ((i = this.dataplaneEventsQueue) == null || i.start());
@@ -3273,41 +3273,41 @@ class Jc {
3273
3273
  * @param callback API callback function
3274
3274
  */
3275
3275
  enqueue(e, n) {
3276
- const s = Qc(e, o);
3277
- this.pluginsManager.invokeSingle(`${ds}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
3276
+ const s = Xc(e, o);
3277
+ this.pluginsManager.invokeSingle(`${cs}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
3278
3278
  const i = T(e);
3279
- this.pluginsManager.invokeSingle(`${fs}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
3280
- const r = `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}${bn}`;
3281
- Ct(n, [s], r, this.logger);
3279
+ this.pluginsManager.invokeSingle(`${ds}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
3280
+ const r = `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}${yn}`;
3281
+ Dt(n, [s], r, this.logger);
3282
3282
  }
3283
3283
  }
3284
- const hs = (t) => {
3284
+ const fs = (t) => {
3285
3285
  const e = new CustomEvent(t, { detail: { analyticsInstance: globalThis.rudderanalytics }, bubbles: !0, cancelable: !0, composed: !0 });
3286
3286
  globalThis.document.dispatchEvent(e);
3287
- }, Zc = (t) => L(t) && t.trim().length > 0, ed = (t) => Ke(t);
3288
- class td {
3287
+ }, ed = (t) => L(t) && t.trim().length > 0, td = (t) => Ye(t);
3288
+ class nd {
3289
3289
  /**
3290
3290
  * Initialize services and components or use default ones if singletons
3291
3291
  */
3292
3292
  constructor() {
3293
- this.preloadBuffer = new Vo(), this.initialized = !1, this.errorHandler = fi, this.logger = ye, this.externalSrcLoader = new zs(this.logger), this.httpClient = ci, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Oc(this.httpClient, this.errorHandler, this.logger);
3293
+ this.preloadBuffer = new Fo(), this.initialized = !1, this.errorHandler = di, this.logger = ye, this.externalSrcLoader = new qs(this.logger), this.httpClient = ui, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Dc(this.httpClient, this.errorHandler, this.logger);
3294
3294
  }
3295
3295
  /**
3296
3296
  * Start application lifecycle if not already started
3297
3297
  */
3298
3298
  load(e, n, s = {}) {
3299
3299
  if (!o.lifecycle.status.value) {
3300
- if (!Zc(e)) {
3301
- this.logger.error(oa(jt, e));
3300
+ if (!ed(e)) {
3301
+ this.logger.error(aa(Gt, e));
3302
3302
  return;
3303
3303
  }
3304
- if (!ed(n)) {
3305
- this.logger.error(aa(jt, n));
3304
+ if (!td(n)) {
3305
+ this.logger.error(la(Gt, n));
3306
3306
  return;
3307
3307
  }
3308
3308
  j(() => {
3309
3309
  o.lifecycle.writeKey.value = T(e), o.lifecycle.dataPlaneUrl.value = T(n), o.loadOptions.value = Kc(o.loadOptions.value, s), o.lifecycle.status.value = "mounted";
3310
- }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Zs), ct("state", o, e), this.startLifecycle();
3310
+ }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Js), ut("state", o, e), this.startLifecycle();
3311
3311
  }
3312
3312
  }
3313
3313
  // Start lifecycle methods
@@ -3352,12 +3352,12 @@ class td {
3352
3352
  }
3353
3353
  } catch (e) {
3354
3354
  const n = "Failed to load the SDK";
3355
- this.errorHandler.onError({ error: e, context: jt, customMessage: n, groupingHash: n });
3355
+ this.errorHandler.onError({ error: e, context: Gt, customMessage: n, groupingHash: n });
3356
3356
  }
3357
3357
  });
3358
3358
  }
3359
3359
  onBrowserCapabilitiesReady() {
3360
- _o(this), this.prepareInternalServices(), this.loadConfig();
3360
+ Po(this), this.prepareInternalServices(), this.loadConfig();
3361
3361
  }
3362
3362
  onLoaded() {
3363
3363
  this.processBufferedEvents(), o.consents.preConsent.value.enabled === !0 ? o.lifecycle.status.value = "ready" : this.loadDestinations();
@@ -3380,11 +3380,11 @@ class td {
3380
3380
  processDataInPreloadBuffer() {
3381
3381
  for (; this.preloadBuffer.size() > 0; ) {
3382
3382
  const e = this.preloadBuffer.dequeue();
3383
- e && Po([...e], this);
3383
+ e && No([...e], this);
3384
3384
  }
3385
3385
  }
3386
3386
  prepareInternalServices() {
3387
- this.pluginsManager = new iu(Kl, this.errorHandler, this.logger), this.storeManager = new Wu(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new Ec(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new qc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Jc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new jc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
3387
+ this.pluginsManager = new ru(Kl, this.errorHandler, this.logger), this.storeManager = new Qu(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new Sc(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new zc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Zc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new qc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
3388
3388
  }
3389
3389
  /**
3390
3390
  * Load configuration
@@ -3413,9 +3413,9 @@ class td {
3413
3413
  onInitialized() {
3414
3414
  this.processDataInPreloadBuffer();
3415
3415
  const e = o.loadOptions.value.onLoaded;
3416
- Ct(e, [globalThis.rudderanalytics], Xr, this.logger), j(() => {
3416
+ Dt(e, [globalThis.rudderanalytics], Jr, this.logger), j(() => {
3417
3417
  o.lifecycle.loaded.value = !0, o.lifecycle.status.value = "loaded";
3418
- }), this.initialized = !0, hs("RSA_Initialised");
3418
+ }), this.initialized = !0, fs("RSA_Initialised");
3419
3419
  }
3420
3420
  /**
3421
3421
  * Emit ready event
@@ -3423,8 +3423,8 @@ class td {
3423
3423
  // eslint-disable-next-line class-methods-use-this
3424
3424
  onReady() {
3425
3425
  o.lifecycle.status.value = "readyExecuted", o.eventBuffer.readyCallbacksArray.value.forEach((e) => {
3426
- Ct(e, [], Gt, this.logger);
3427
- }), hs("RSA_Ready");
3426
+ Dt(e, [], Ht, this.logger);
3427
+ }), fs("RSA_Ready");
3428
3428
  }
3429
3429
  /**
3430
3430
  * Consume preloaded events buffer
@@ -3475,10 +3475,10 @@ class td {
3475
3475
  return;
3476
3476
  }
3477
3477
  if (this.errorHandler.leaveBreadcrumb(`New ${s} invocation`), !S(e)) {
3478
- this.logger.error(ti(Gt));
3478
+ this.logger.error(ei(Ht));
3479
3479
  return;
3480
3480
  }
3481
- o.lifecycle.status.value === "readyExecuted" ? Ct(e, [], Gt, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
3481
+ o.lifecycle.status.value === "readyExecuted" ? Dt(e, [], Ht, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
3482
3482
  }
3483
3483
  page(e, n = !1) {
3484
3484
  var i;
@@ -3487,10 +3487,10 @@ class td {
3487
3487
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3488
3488
  return;
3489
3489
  }
3490
- this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, (i = this.eventManager) == null || i.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== Mn && this.page(Nt(Mn, vo, {
3490
+ this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, (i = this.eventManager) == null || i.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== wn && this.page(Pt(wn, yo, {
3491
3491
  // 'title' is intentionally omitted as it does not make sense
3492
3492
  // in v3 implementation
3493
- path: yo
3493
+ path: bo
3494
3494
  }, o.loadOptions.value.sendAdblockPageOptions));
3495
3495
  }
3496
3496
  track(e, n = !1) {
@@ -3600,18 +3600,18 @@ class td {
3600
3600
  return;
3601
3601
  }
3602
3602
  this.errorHandler.leaveBreadcrumb("New consent invocation"), j(() => {
3603
- o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = ac(e);
3604
- const { initialized: l, consentsData: c } = Ri(o.consents.postConsent.value.consentManagement, this.logger);
3603
+ o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = lc(e);
3604
+ const { initialized: l, consentsData: c } = ki(o.consents.postConsent.value.consentManagement, this.logger);
3605
3605
  o.consents.initialized.value = l, o.consents.data.value = c;
3606
3606
  }), o.consents.enabled.value && !o.consents.initialized.value && ((i = this.pluginsManager) == null || i.invokeSingle("consentManager.updateConsentsInfo", o, this.storeManager, this.logger)), (r = this.storeManager) == null || r.initializeStorageState(), (a = this.userSessionManager) == null || a.syncStorageDataToState(), (u = this.eventManager) == null || u.resume(), this.loadDestinations(), this.sendTrackingEvents(n);
3607
3607
  }
3608
3608
  sendTrackingEvents(e) {
3609
3609
  if (o.consents.postConsent.value.trackConsent) {
3610
- const n = yn(bo);
3610
+ const n = vn(Eo);
3611
3611
  e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["track", n]] : this.track(n);
3612
3612
  }
3613
3613
  if (o.consents.postConsent.value.sendPageEvent) {
3614
- const n = Nt();
3614
+ const n = Pt();
3615
3615
  e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["page", n]] : this.page(n);
3616
3616
  }
3617
3617
  }
@@ -3631,13 +3631,13 @@ const _e = class _e {
3631
3631
  try {
3632
3632
  if (_e.globalSingleton)
3633
3633
  return _e.globalSingleton;
3634
- _e.initializeGlobalResources(), this.setDefaultInstanceKey = this.setDefaultInstanceKey.bind(this), this.getAnalyticsInstance = this.getAnalyticsInstance.bind(this), this.load = this.load.bind(this), this.ready = this.ready.bind(this), this.triggerBufferedLoadEvent = this.triggerBufferedLoadEvent.bind(this), this.page = this.page.bind(this), this.track = this.track.bind(this), this.identify = this.identify.bind(this), this.alias = this.alias.bind(this), this.group = this.group.bind(this), this.reset = this.reset.bind(this), this.getAnonymousId = this.getAnonymousId.bind(this), this.setAnonymousId = this.setAnonymousId.bind(this), this.getUserId = this.getUserId.bind(this), this.getUserTraits = this.getUserTraits.bind(this), this.getGroupId = this.getGroupId.bind(this), this.getGroupTraits = this.getGroupTraits.bind(this), this.startSession = this.startSession.bind(this), this.endSession = this.endSession.bind(this), this.getSessionId = this.getSessionId.bind(this), this.setAuthToken = this.setAuthToken.bind(this), this.consent = this.consent.bind(this), _e.globalSingleton = this, o.autoTrack.pageLifecycle.pageViewId.value = Ut(), o.autoTrack.pageLifecycle.pageLoadedTimestamp.value = Date.now(), this.triggerBufferedLoadEvent(), globalThis.rudderanalytics = this;
3634
+ _e.initializeGlobalResources(), this.setDefaultInstanceKey = this.setDefaultInstanceKey.bind(this), this.getAnalyticsInstance = this.getAnalyticsInstance.bind(this), this.load = this.load.bind(this), this.ready = this.ready.bind(this), this.triggerBufferedLoadEvent = this.triggerBufferedLoadEvent.bind(this), this.page = this.page.bind(this), this.track = this.track.bind(this), this.identify = this.identify.bind(this), this.alias = this.alias.bind(this), this.group = this.group.bind(this), this.reset = this.reset.bind(this), this.getAnonymousId = this.getAnonymousId.bind(this), this.setAnonymousId = this.setAnonymousId.bind(this), this.getUserId = this.getUserId.bind(this), this.getUserTraits = this.getUserTraits.bind(this), this.getGroupId = this.getGroupId.bind(this), this.getGroupTraits = this.getGroupTraits.bind(this), this.startSession = this.startSession.bind(this), this.endSession = this.endSession.bind(this), this.getSessionId = this.getSessionId.bind(this), this.setAuthToken = this.setAuthToken.bind(this), this.consent = this.consent.bind(this), _e.globalSingleton = this, o.autoTrack.pageLifecycle.pageViewId.value = $t(), o.autoTrack.pageLifecycle.pageLoadedTimestamp.value = Date.now(), this.triggerBufferedLoadEvent(), globalThis.rudderanalytics = this;
3635
3635
  } catch (e) {
3636
3636
  B(e);
3637
3637
  }
3638
3638
  }
3639
3639
  static initializeGlobalResources() {
3640
- fi.init(), On.configure(), Tn.configure(), An.configure(), wt.configure();
3640
+ di.init(), An.configure(), In.configure(), Tn.configure(), Lt.configure();
3641
3641
  }
3642
3642
  /**
3643
3643
  * Set instance to use if no specific writeKey is provided in methods
@@ -3653,7 +3653,7 @@ const _e = class _e {
3653
3653
  getAnalyticsInstance(e) {
3654
3654
  try {
3655
3655
  let n = e;
3656
- return (!L(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new td()), this.analyticsInstances[n];
3656
+ return (!L(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new nd()), this.analyticsInstances[n];
3657
3657
  } catch (n) {
3658
3658
  B(n);
3659
3659
  return;
@@ -3672,8 +3672,8 @@ const _e = class _e {
3672
3672
  if (this.analyticsInstances[e])
3673
3673
  return;
3674
3674
  this.setDefaultInstanceKey(e), this.trackPageLifecycleEvents(s);
3675
- const r = qs(ot);
3676
- Co(r), ct(ot, T(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, O(s));
3675
+ const r = js(rt);
3676
+ _o(r), ut(rt, T(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, O(s));
3677
3677
  } catch (r) {
3678
3678
  B(r);
3679
3679
  }
@@ -3684,7 +3684,7 @@ const _e = class _e {
3684
3684
  * @returns
3685
3685
  */
3686
3686
  trackPageLifecycleEvents(e) {
3687
- const { autoTrack: n, useBeacon: s } = e ?? {}, { enabled: i = !1, options: r = {}, pageLifecycle: a } = n ?? {}, { events: u = [Ht.UNLOADED], enabled: l = i, options: c = r } = a ?? {};
3687
+ const { autoTrack: n, useBeacon: s } = e ?? {}, { enabled: i = !1, options: r = {}, pageLifecycle: a } = n ?? {}, { events: u = [xt.UNLOADED], enabled: l = i, options: c = r } = a ?? {};
3688
3688
  o.autoTrack.pageLifecycle.enabled.value = l, o.autoTrack.enabled.value = i || l, l && this.setupPageUnloadTracking(u, s, c);
3689
3689
  }
3690
3690
  /**
@@ -3694,20 +3694,20 @@ const _e = class _e {
3694
3694
  * @param options
3695
3695
  */
3696
3696
  setupPageUnloadTracking(e, n, s) {
3697
- (e.length === 0 || e.includes(Ht.UNLOADED)) && (n === !0 ? io((i) => {
3697
+ (e.length === 0 || e.includes(xt.UNLOADED)) && (n === !0 ? ro((i) => {
3698
3698
  if (i === !1 && o.lifecycle.loaded.value) {
3699
3699
  const r = Date.now(), a = r - o.autoTrack.pageLifecycle.pageLoadedTimestamp.value;
3700
- this.track(Ht.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Fs(new Date(r)) });
3700
+ this.track(xt.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Vs(new Date(r)) });
3701
3701
  }
3702
- }) : this.logger.warn(Ba(Zr)));
3702
+ }) : this.logger.warn(Va(eo)));
3703
3703
  }
3704
3704
  /**
3705
3705
  * Trigger load event in buffer queue if exists and stores the
3706
3706
  * remaining preloaded events array in global object
3707
3707
  */
3708
3708
  triggerBufferedLoadEvent() {
3709
- const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Do(e);
3710
- ct(ot, T([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3709
+ const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Co(e);
3710
+ ut(rt, T([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3711
3711
  }
3712
3712
  /**
3713
3713
  * Get ready callback arguments and forward to ready call
@@ -3727,7 +3727,7 @@ const _e = class _e {
3727
3727
  page(e, n, s, i, r) {
3728
3728
  var a;
3729
3729
  try {
3730
- (a = this.getAnalyticsInstance()) == null || a.page(Nt(O(e), O(n), O(s), O(i), O(r)));
3730
+ (a = this.getAnalyticsInstance()) == null || a.page(Pt(O(e), O(n), O(s), O(i), O(r)));
3731
3731
  } catch (u) {
3732
3732
  B(u);
3733
3733
  }
@@ -3739,7 +3739,7 @@ const _e = class _e {
3739
3739
  track(e, n, s, i) {
3740
3740
  var r;
3741
3741
  try {
3742
- (r = this.getAnalyticsInstance()) == null || r.track(yn(O(e), O(n), O(s), O(i)));
3742
+ (r = this.getAnalyticsInstance()) == null || r.track(vn(O(e), O(n), O(s), O(i)));
3743
3743
  } catch (a) {
3744
3744
  B(a);
3745
3745
  }
@@ -3751,7 +3751,7 @@ const _e = class _e {
3751
3751
  identify(e, n, s, i) {
3752
3752
  var r;
3753
3753
  try {
3754
- (r = this.getAnalyticsInstance()) == null || r.identify($s(O(e), O(n), O(s), O(i)));
3754
+ (r = this.getAnalyticsInstance()) == null || r.identify(Ms(O(e), O(n), O(s), O(i)));
3755
3755
  } catch (a) {
3756
3756
  B(a);
3757
3757
  }
@@ -3763,7 +3763,7 @@ const _e = class _e {
3763
3763
  alias(e, n, s, i) {
3764
3764
  var r;
3765
3765
  try {
3766
- (r = this.getAnalyticsInstance()) == null || r.alias(Us(O(e), O(n), O(s), O(i)));
3766
+ (r = this.getAnalyticsInstance()) == null || r.alias($s(O(e), O(n), O(s), O(i)));
3767
3767
  } catch (a) {
3768
3768
  B(a);
3769
3769
  }
@@ -3775,7 +3775,7 @@ const _e = class _e {
3775
3775
  group(e, n, s, i) {
3776
3776
  var r;
3777
3777
  try {
3778
- (r = this.getAnalyticsInstance()) == null || r.group(Bs(O(e), O(n), O(s), O(i)));
3778
+ (r = this.getAnalyticsInstance()) == null || r.group(Us(O(e), O(n), O(s), O(i)));
3779
3779
  } catch (a) {
3780
3780
  B(a);
3781
3781
  }
@@ -3886,20 +3886,14 @@ const _e = class _e {
3886
3886
  // START-NO-SONAR-SCAN
3887
3887
  // eslint-disable-next-line sonarjs/public-static-readonly
3888
3888
  N(_e, "globalSingleton", null);
3889
- let fn = _e;
3890
- const nd = {
3891
- [Ze.Production]: "2R6mT9xSJCcbvr6JkiEu7vbrUSW",
3892
- [Ze.Sandbox]: "2R6mEpjiTJBErRIn724pt2MWyLA",
3893
- [Ze.Staging]: "2R6llJi7YSuOeJToPXGlQfizt18",
3894
- [Ze.CiCd]: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
3895
- [Ze.Local]: "2QHmFAx84bL4Up6CDHRw0XkKJKC"
3896
- }, sd = "https://revolugohxxwg.dataplane.rudderstack.com", id = window.RevolugoElements.config.apiEnvironment, rd = nd[id], Ci = new fn();
3889
+ let dn = _e;
3890
+ const Di = new dn();
3897
3891
  try {
3898
- Ci.load(rd, sd);
3892
+ Di.load(xi, Hi);
3899
3893
  } catch (t) {
3900
3894
  console.error(t);
3901
3895
  }
3902
- const _i = {
3896
+ const Ci = {
3903
3897
  adultCount: {
3904
3898
  type: Number
3905
3899
  },
@@ -3915,10 +3909,10 @@ const _i = {
3915
3909
  startDate: {
3916
3910
  type: String
3917
3911
  }
3918
- }, Pi = hn({
3912
+ }, _i = fn({
3919
3913
  components: {
3920
- BPhoneInput: dr,
3921
- BSearchLocationInput: or
3914
+ BPhoneInput: fr,
3915
+ BSearchLocationInput: ar
3922
3916
  },
3923
3917
  data() {
3924
3918
  return {
@@ -3926,7 +3920,7 @@ const _i = {
3926
3920
  formData: {
3927
3921
  adultCount: this.adultCount,
3928
3922
  email: "",
3929
- endDate: xt(this.endDate).toDate(),
3923
+ endDate: Ft(this.endDate).toDate(),
3930
3924
  location: this.location,
3931
3925
  phoneData: {
3932
3926
  phoneCountry: "FR",
@@ -3935,7 +3929,7 @@ const _i = {
3935
3929
  },
3936
3930
  roomCount: this.roomCount,
3937
3931
  specificRequest: "",
3938
- startDate: xt(this.startDate).toDate()
3932
+ startDate: Ft(this.startDate).toDate()
3939
3933
  },
3940
3934
  isFormValid: !1,
3941
3935
  isSubmitting: !1,
@@ -3960,13 +3954,13 @@ const _i = {
3960
3954
  },
3961
3955
  methods: {
3962
3956
  formatDate(t) {
3963
- return xt(t).format("YYYY-MM-DD");
3957
+ return Ft(t).format("YYYY-MM-DD");
3964
3958
  },
3965
3959
  onSubmit() {
3966
3960
  var e, n;
3967
3961
  this.isSubmitting = !0;
3968
3962
  let t = ((e = this.config.eventMetadata) == null ? void 0 : e.name) || "";
3969
- (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ci.track(
3963
+ (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Di.track(
3970
3964
  "accommodation-request",
3971
3965
  {
3972
3966
  data: {
@@ -3983,15 +3977,15 @@ const _i = {
3983
3977
  }
3984
3978
  },
3985
3979
  name: "ContactForm",
3986
- props: _i,
3980
+ props: Ci,
3987
3981
  setup() {
3988
- const { t } = gn();
3982
+ const { t } = hn();
3989
3983
  return {
3990
3984
  t
3991
3985
  };
3992
3986
  }
3993
3987
  });
3994
- function gs(t) {
3988
+ function hs(t) {
3995
3989
  const e = t;
3996
3990
  e.__i18n = e.__i18n || [], e.__i18n.push({
3997
3991
  locale: "",
@@ -4160,7 +4154,7 @@ function gs(t) {
4160
4154
  }
4161
4155
  });
4162
4156
  }
4163
- const Ni = Te({
4157
+ const Pi = Te({
4164
4158
  active: {
4165
4159
  type: [String, Array],
4166
4160
  default: void 0
@@ -4170,15 +4164,15 @@ const Ni = Te({
4170
4164
  default: null
4171
4165
  },
4172
4166
  nextIcon: {
4173
- type: vt,
4167
+ type: pt,
4174
4168
  default: "$next"
4175
4169
  },
4176
4170
  prevIcon: {
4177
- type: vt,
4171
+ type: pt,
4178
4172
  default: "$prev"
4179
4173
  },
4180
4174
  modeIcon: {
4181
- type: vt,
4175
+ type: pt,
4182
4176
  default: "$subgroup"
4183
4177
  },
4184
4178
  text: String,
@@ -4186,9 +4180,9 @@ const Ni = Te({
4186
4180
  type: String,
4187
4181
  default: "month"
4188
4182
  }
4189
- }, "VDatePickerControls"), ms = Me()({
4183
+ }, "VDatePickerControls"), gs = Me()({
4190
4184
  name: "VDatePickerControls",
4191
- props: Ni(),
4185
+ props: Pi(),
4192
4186
  emits: {
4193
4187
  "click:year": () => !0,
4194
4188
  "click:month": () => !0,
@@ -4213,7 +4207,7 @@ const Ni = Te({
4213
4207
  function d() {
4214
4208
  n("click:month");
4215
4209
  }
4216
- return Ye(() => b("div", {
4210
+ return Ke(() => b("div", {
4217
4211
  class: ["v-date-picker-controls"]
4218
4212
  }, [b(ae, {
4219
4213
  class: "v-date-picker-controls__month-btn",
@@ -4231,7 +4225,7 @@ const Ni = Te({
4231
4225
  icon: t.modeIcon,
4232
4226
  variant: "text",
4233
4227
  onClick: c
4234
- }, null), b(gr, null, null), b("div", {
4228
+ }, null), b(mr, null, null), b("div", {
4235
4229
  class: "v-date-picker-controls__month"
4236
4230
  }, [b(ae, {
4237
4231
  "data-testid": "prev-month",
@@ -4247,15 +4241,15 @@ const Ni = Te({
4247
4241
  onClick: l
4248
4242
  }, null)])])), {};
4249
4243
  }
4250
- }), od = Te({
4251
- appendIcon: vt,
4244
+ }), sd = Te({
4245
+ appendIcon: pt,
4252
4246
  color: String,
4253
4247
  header: String,
4254
4248
  transition: String,
4255
- onClick: Hi()
4256
- }, "VDatePickerHeader"), ps = Me()({
4249
+ onClick: Gi()
4250
+ }, "VDatePickerHeader"), ms = Me()({
4257
4251
  name: "VDatePickerHeader",
4258
- props: od(),
4252
+ props: sd(),
4259
4253
  emits: {
4260
4254
  click: () => !0,
4261
4255
  "click:append": () => !0
@@ -4268,14 +4262,14 @@ const Ni = Te({
4268
4262
  const {
4269
4263
  backgroundColorClasses: i,
4270
4264
  backgroundColorStyles: r
4271
- } = Ps(t, "color");
4265
+ } = _s(t, "color");
4272
4266
  function a() {
4273
4267
  n("click");
4274
4268
  }
4275
4269
  function u() {
4276
4270
  n("click:append");
4277
4271
  }
4278
- return Ye(() => {
4272
+ return Ke(() => {
4279
4273
  const l = !!(s.default || t.header), c = !!(s.append || t.appendIcon);
4280
4274
  return b("div", {
4281
4275
  class: ["v-date-picker-header", {
@@ -4286,7 +4280,7 @@ const Ni = Te({
4286
4280
  }, [s.prepend && b("div", {
4287
4281
  key: "prepend",
4288
4282
  class: "v-date-picker-header__prepend"
4289
- }, [s.prepend()]), l && b(Ns, {
4283
+ }, [s.prepend()]), l && b(Ps, {
4290
4284
  key: "content",
4291
4285
  name: t.transition
4292
4286
  }, {
@@ -4299,7 +4293,7 @@ const Ni = Te({
4299
4293
  }
4300
4294
  }), c && b("div", {
4301
4295
  class: "v-date-picker-header__append"
4302
- }, [s.append ? b($t, {
4296
+ }, [s.append ? b(Mt, {
4303
4297
  key: "append-defaults",
4304
4298
  disabled: !t.appendIcon,
4305
4299
  defaults: {
@@ -4321,7 +4315,7 @@ const Ni = Te({
4321
4315
  }, null)])]);
4322
4316
  }), {};
4323
4317
  }
4324
- }), ad = Te({
4318
+ }), id = Te({
4325
4319
  allowedDates: [Array, Function],
4326
4320
  disabled: {
4327
4321
  type: Boolean,
@@ -4344,8 +4338,8 @@ const Ni = Te({
4344
4338
  },
4345
4339
  firstDayOfWeek: [Number, String]
4346
4340
  }, "calendar");
4347
- function ld(t) {
4348
- const e = ft(), n = Le(t, "modelValue", [], (f) => yt(f)), s = U(() => t.displayValue ? e.date(t.displayValue) : n.value.length > 0 ? e.date(n.value[0]) : t.min ? e.date(t.min) : Array.isArray(t.allowedDates) ? e.date(t.allowedDates[0]) : e.date()), i = Le(t, "year", void 0, (f) => {
4341
+ function rd(t) {
4342
+ const e = dt(), n = Le(t, "modelValue", [], (f) => vt(f)), s = U(() => t.displayValue ? e.date(t.displayValue) : n.value.length > 0 ? e.date(n.value[0]) : t.min ? e.date(t.min) : Array.isArray(t.allowedDates) ? e.date(t.allowedDates[0]) : e.date()), i = Le(t, "year", void 0, (f) => {
4349
4343
  const m = f != null ? Number(f) : e.getYear(s.value);
4350
4344
  return e.startOfYear(e.setYear(e.date(), m));
4351
4345
  }, (f) => e.getYear(f)), r = Le(t, "month", void 0, (f) => {
@@ -4396,7 +4390,7 @@ function ld(t) {
4396
4390
  }), h = U(() => {
4397
4391
  const f = l.value.flat(), m = e.date();
4398
4392
  return c(f, m);
4399
- }), y = U(() => l.value.map((f) => f.length ? Gi(e, f[0]) : null));
4393
+ }), y = U(() => l.value.map((f) => f.length ? ji(e, f[0]) : null));
4400
4394
  function g(f) {
4401
4395
  if (t.disabled) return !0;
4402
4396
  const m = e.date(f);
@@ -4413,7 +4407,7 @@ function ld(t) {
4413
4407
  weekNumbers: y
4414
4408
  };
4415
4409
  }
4416
- const Li = Te({
4410
+ const Ni = Te({
4417
4411
  color: String,
4418
4412
  hideWeekdays: Boolean,
4419
4413
  multiple: [Boolean, Number, String],
@@ -4426,10 +4420,10 @@ const Li = Te({
4426
4420
  type: String,
4427
4421
  default: "picker-reverse-transition"
4428
4422
  },
4429
- ...lt(ad(), ["displayValue"])
4430
- }, "VDatePickerMonth"), vs = Me()({
4423
+ ...at(id(), ["displayValue"])
4424
+ }, "VDatePickerMonth"), ps = Me()({
4431
4425
  name: "VDatePickerMonth",
4432
- props: Li(),
4426
+ props: Ni(),
4433
4427
  emits: {
4434
4428
  "update:modelValue": (t) => !0,
4435
4429
  "update:month": (t) => !0,
@@ -4440,17 +4434,17 @@ const Li = Te({
4440
4434
  emit: n,
4441
4435
  slots: s
4442
4436
  } = e;
4443
- const i = Jt(), {
4437
+ const i = Xt(), {
4444
4438
  daysInMonth: r,
4445
4439
  model: a,
4446
4440
  weekNumbers: u
4447
- } = ld(t), l = ft(), c = bt(), d = bt(), h = bt(!1), y = U(() => h.value ? t.reverseTransition : t.transition);
4441
+ } = rd(t), l = dt(), c = yt(), d = yt(), h = yt(!1), y = U(() => h.value ? t.reverseTransition : t.transition);
4448
4442
  t.multiple === "range" && a.value.length > 0 && (c.value = a.value[0], a.value.length > 1 && (d.value = a.value[a.value.length - 1]));
4449
4443
  const g = U(() => {
4450
4444
  const k = ["number", "string"].includes(typeof t.multiple) ? Number(t.multiple) : 1 / 0;
4451
4445
  return a.value.length >= k;
4452
4446
  });
4453
- Is(r, (k, E) => {
4447
+ Rs(r, (k, E) => {
4454
4448
  E && (h.value = l.isBefore(k[0].date, E[0].date));
4455
4449
  });
4456
4450
  function f(k) {
@@ -4494,7 +4488,7 @@ const Li = Te({
4494
4488
  class: "v-date-picker-month__day"
4495
4489
  }, [je(" ")]), u.value.map((k) => b("div", {
4496
4490
  class: ["v-date-picker-month__day", "v-date-picker-month__day--adjacent"]
4497
- }, [k]))]), b(Ns, {
4491
+ }, [k]))]), b(Ps, {
4498
4492
  name: y.value
4499
4493
  }, {
4500
4494
  default: () => {
@@ -4522,7 +4516,7 @@ const Li = Te({
4522
4516
  "v-date-picker-month__day--week-start": E.isWeekStart
4523
4517
  }],
4524
4518
  "data-v-date": E.isDisabled ? void 0 : E.isoDate
4525
- }, [(t.showAdjacentMonths || !E.isAdjacent) && b($t, {
4519
+ }, [(t.showAdjacentMonths || !E.isAdjacent) && b(Mt, {
4526
4520
  defaults: {
4527
4521
  VBtn: {
4528
4522
  class: "v-date-picker-month__day-btn",
@@ -4545,16 +4539,16 @@ const Li = Te({
4545
4539
  }
4546
4540
  })]);
4547
4541
  }
4548
- }), wi = Te({
4542
+ }), Li = Te({
4549
4543
  color: String,
4550
4544
  height: [String, Number],
4551
4545
  min: null,
4552
4546
  max: null,
4553
4547
  modelValue: Number,
4554
4548
  year: Number
4555
- }, "VDatePickerMonths"), ys = Me()({
4549
+ }, "VDatePickerMonths"), vs = Me()({
4556
4550
  name: "VDatePickerMonths",
4557
- props: wi(),
4551
+ props: Li(),
4558
4552
  emits: {
4559
4553
  "update:modelValue": (t) => !0
4560
4554
  },
@@ -4563,9 +4557,9 @@ const Li = Te({
4563
4557
  emit: n,
4564
4558
  slots: s
4565
4559
  } = e;
4566
- const i = ft(), r = Le(t, "modelValue"), a = U(() => {
4560
+ const i = dt(), r = Le(t, "modelValue"), a = U(() => {
4567
4561
  let u = i.startOfYear(i.date());
4568
- return t.year && (u = i.setYear(u, t.year)), Ts(12).map((l) => {
4562
+ return t.year && (u = i.setYear(u, t.year)), Is(12).map((l) => {
4569
4563
  const c = i.format(u, "monthShort"), d = !!(t.min && i.isAfter(i.startOfMonth(i.date(t.min)), u) || t.max && i.isAfter(u, i.startOfMonth(i.date(t.max))));
4570
4564
  return u = i.getNextMonth(u), {
4571
4565
  isDisabled: d,
@@ -4574,12 +4568,12 @@ const Li = Te({
4574
4568
  };
4575
4569
  });
4576
4570
  });
4577
- return As(() => {
4571
+ return Ts(() => {
4578
4572
  r.value = r.value ?? i.getMonth(i.date());
4579
- }), Ye(() => b("div", {
4573
+ }), Ke(() => b("div", {
4580
4574
  class: "v-date-picker-months",
4581
4575
  style: {
4582
- height: Os(t.height)
4576
+ height: As(t.height)
4583
4577
  }
4584
4578
  }, [b("div", {
4585
4579
  class: "v-date-picker-months__content"
@@ -4610,15 +4604,15 @@ const Li = Te({
4610
4604
  }, c), null);
4611
4605
  })])])), {};
4612
4606
  }
4613
- }), Mi = Te({
4607
+ }), wi = Te({
4614
4608
  color: String,
4615
4609
  height: [String, Number],
4616
4610
  min: null,
4617
4611
  max: null,
4618
4612
  modelValue: Number
4619
- }, "VDatePickerYears"), bs = Me()({
4613
+ }, "VDatePickerYears"), ys = Me()({
4620
4614
  name: "VDatePickerYears",
4621
- props: Mi(),
4615
+ props: wi(),
4622
4616
  emits: {
4623
4617
  "update:modelValue": (t) => !0
4624
4618
  },
@@ -4627,12 +4621,12 @@ const Li = Te({
4627
4621
  emit: n,
4628
4622
  slots: s
4629
4623
  } = e;
4630
- const i = ft(), r = Le(t, "modelValue"), a = U(() => {
4624
+ const i = dt(), r = Le(t, "modelValue"), a = U(() => {
4631
4625
  const l = i.getYear(i.date());
4632
4626
  let c = l - 100, d = l + 52;
4633
4627
  t.min && (c = i.getYear(i.date(t.min))), t.max && (d = i.getYear(i.date(t.max)));
4634
4628
  let h = i.startOfYear(i.date());
4635
- return h = i.setYear(h, c), Ts(d - c + 1, c).map((y) => {
4629
+ return h = i.setYear(h, c), Is(d - c + 1, c).map((y) => {
4636
4630
  const g = i.format(h, "year");
4637
4631
  return h = i.setYear(h, i.getYear(h) + 1), {
4638
4632
  text: g,
@@ -4640,19 +4634,19 @@ const Li = Te({
4640
4634
  };
4641
4635
  });
4642
4636
  });
4643
- As(() => {
4637
+ Ts(() => {
4644
4638
  r.value = r.value ?? i.getYear(i.date());
4645
4639
  });
4646
- const u = ji();
4647
- return qi(async () => {
4640
+ const u = qi();
4641
+ return zi(async () => {
4648
4642
  var l;
4649
- await zi(), (l = u.el) == null || l.scrollIntoView({
4643
+ await Yi(), (l = u.el) == null || l.scrollIntoView({
4650
4644
  block: "center"
4651
4645
  });
4652
- }), Ye(() => b("div", {
4646
+ }), Ke(() => b("div", {
4653
4647
  class: "v-date-picker-years",
4654
4648
  style: {
4655
- height: Os(t.height)
4649
+ height: As(t.height)
4656
4650
  }
4657
4651
  }, [b("div", {
4658
4652
  class: "v-date-picker-years__content"
@@ -4682,15 +4676,15 @@ const Li = Te({
4682
4676
  }, d), null);
4683
4677
  })])])), {};
4684
4678
  }
4685
- }), ud = mr("v-picker-title"), $i = Te({
4679
+ }), od = pr("v-picker-title"), Mi = Te({
4686
4680
  bgColor: String,
4687
4681
  landscape: Boolean,
4688
4682
  title: String,
4689
4683
  hideHeader: Boolean,
4690
- ...yr()
4691
- }, "VPicker"), Es = Me()({
4684
+ ...br()
4685
+ }, "VPicker"), bs = Me()({
4692
4686
  name: "VPicker",
4693
- props: $i(),
4687
+ props: Mi(),
4694
4688
  setup(t, e) {
4695
4689
  let {
4696
4690
  slots: n
@@ -4698,10 +4692,10 @@ const Li = Te({
4698
4692
  const {
4699
4693
  backgroundColorClasses: s,
4700
4694
  backgroundColorStyles: i
4701
- } = Ps(Ki(t, "color"));
4702
- return Ye(() => {
4703
- const r = Cn.filterProps(t), a = !!(t.title || n.title);
4704
- return b(Cn, re(r, {
4695
+ } = _s(Ki(t, "color"));
4696
+ return Ke(() => {
4697
+ const r = Dn.filterProps(t), a = !!(t.title || n.title);
4698
+ return b(Dn, re(r, {
4705
4699
  color: t.bgColor,
4706
4700
  class: ["v-picker", {
4707
4701
  "v-picker--landscape": t.landscape,
@@ -4715,7 +4709,7 @@ const Li = Te({
4715
4709
  key: "header",
4716
4710
  class: [s.value],
4717
4711
  style: [i.value]
4718
- }, [a && b(ud, {
4712
+ }, [a && b(od, {
4719
4713
  key: "picker-title"
4720
4714
  }, {
4721
4715
  default: () => {
@@ -4726,7 +4720,7 @@ const Li = Te({
4726
4720
  class: "v-picker__header"
4727
4721
  }, [n.header()])]), b("div", {
4728
4722
  class: "v-picker__body"
4729
- }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b($t, {
4723
+ }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b(Mt, {
4730
4724
  defaults: {
4731
4725
  VBtn: {
4732
4726
  slim: !0,
@@ -4742,7 +4736,7 @@ const Li = Te({
4742
4736
  });
4743
4737
  }), {};
4744
4738
  }
4745
- }), cd = Te({
4739
+ }), ad = Te({
4746
4740
  // TODO: implement in v3.5
4747
4741
  // calendarIcon: {
4748
4742
  // type: String,
@@ -4768,19 +4762,19 @@ const Li = Te({
4768
4762
  type: String,
4769
4763
  default: "$vuetify.datePicker.header"
4770
4764
  },
4771
- ...Ni(),
4772
- ...Li({
4765
+ ...Pi(),
4766
+ ...Ni({
4773
4767
  weeksInMonth: "static"
4774
4768
  }),
4775
- ...lt(wi(), ["modelValue"]),
4776
- ...lt(Mi(), ["modelValue"]),
4777
- ...$i({
4769
+ ...at(Li(), ["modelValue"]),
4770
+ ...at(wi(), ["modelValue"]),
4771
+ ...Mi({
4778
4772
  title: "$vuetify.datePicker.title"
4779
4773
  }),
4780
4774
  modelValue: null
4781
- }, "VDatePicker"), Ss = Me()({
4775
+ }, "VDatePicker"), Es = Me()({
4782
4776
  name: "VDatePicker",
4783
- props: cd(),
4777
+ props: ad(),
4784
4778
  emits: {
4785
4779
  "update:modelValue": (t) => !0,
4786
4780
  "update:month": (t) => !0,
@@ -4793,9 +4787,9 @@ const Li = Te({
4793
4787
  emit: n,
4794
4788
  slots: s
4795
4789
  } = e;
4796
- const i = ft(), {
4790
+ const i = dt(), {
4797
4791
  t: r
4798
- } = Yi(), a = Le(t, "modelValue", void 0, (I) => yt(I), (I) => t.multiple ? I : I[0]), u = Le(t, "viewMode"), l = U(() => {
4792
+ } = Wi(), a = Le(t, "modelValue", void 0, (I) => vt(I), (I) => t.multiple ? I : I[0]), u = Le(t, "viewMode"), l = U(() => {
4799
4793
  const I = i.date(t.min);
4800
4794
  return t.min && i.isValid(I) ? I : null;
4801
4795
  }), c = U(() => {
@@ -4806,7 +4800,7 @@ const Li = Te({
4806
4800
  const I = i.date();
4807
4801
  let V = I;
4808
4802
  return (se = a.value) != null && se[0] ? V = i.date(a.value[0]) : l.value && i.isBefore(I, l.value) ? V = l.value : c.value && i.isAfter(I, c.value) && (V = c.value), V && i.isValid(V) ? V : I;
4809
- }), h = Jt(Number(t.month ?? i.getMonth(i.startOfMonth(d.value)))), y = Jt(Number(t.year ?? i.getYear(i.startOfYear(i.setMonth(d.value, h.value))))), g = bt(!1), f = U(() => t.multiple && a.value.length > 1 ? r("$vuetify.datePicker.itemsSelected", a.value.length) : a.value[0] && i.isValid(a.value[0]) ? i.format(i.date(a.value[0]), "normalDateWithWeekday") : r(t.header)), m = U(() => {
4803
+ }), h = Xt(Number(t.month ?? i.getMonth(i.startOfMonth(d.value)))), y = Xt(Number(t.year ?? i.getYear(i.startOfYear(i.setMonth(d.value, h.value))))), g = yt(!1), f = U(() => t.multiple && a.value.length > 1 ? r("$vuetify.datePicker.itemsSelected", a.value.length) : a.value[0] && i.isValid(a.value[0]) ? i.format(i.date(a.value[0]), "normalDateWithWeekday") : r(t.header)), m = U(() => {
4810
4804
  let I = i.date();
4811
4805
  return I = i.setDate(I, 1), I = i.setMonth(I, h.value), I = i.setYear(I, y.value), i.format(I, "monthAndYear");
4812
4806
  }), v = U(() => `date-picker-header${g.value ? "-reverse" : ""}-transition`), k = U(() => {
@@ -4848,17 +4842,17 @@ const Li = Te({
4848
4842
  function Ae(I) {
4849
4843
  u.value === "year" && J(), n("update:year", I);
4850
4844
  }
4851
- return Is(a, (I, V) => {
4852
- const se = yt(V), Xe = yt(I);
4845
+ return Rs(a, (I, V) => {
4846
+ const se = vt(V), Xe = vt(I);
4853
4847
  if (!Xe.length) return;
4854
- const Ft = i.date(se[se.length - 1]), Je = i.date(Xe[Xe.length - 1]), $e = i.getMonth(Je), F = i.getYear(Je);
4855
- $e !== h.value && (h.value = $e, he(h.value)), F !== y.value && (y.value = F, Ae(y.value)), g.value = i.isBefore(Ft, Je);
4856
- }), Ye(() => {
4857
- const I = Es.filterProps(t), V = ms.filterProps(t), se = ps.filterProps(t), Xe = vs.filterProps(t), Ft = lt(ys.filterProps(t), ["modelValue"]), Je = lt(bs.filterProps(t), ["modelValue"]), $e = {
4848
+ const Vt = i.date(se[se.length - 1]), Je = i.date(Xe[Xe.length - 1]), $e = i.getMonth(Je), F = i.getYear(Je);
4849
+ $e !== h.value && (h.value = $e, he(h.value)), F !== y.value && (y.value = F, Ae(y.value)), g.value = i.isBefore(Vt, Je);
4850
+ }), Ke(() => {
4851
+ const I = bs.filterProps(t), V = gs.filterProps(t), se = ms.filterProps(t), Xe = ps.filterProps(t), Vt = at(vs.filterProps(t), ["modelValue"]), Je = at(ys.filterProps(t), ["modelValue"]), $e = {
4858
4852
  header: f.value,
4859
4853
  transition: v.value
4860
4854
  };
4861
- return b(Es, re(I, {
4855
+ return b(bs, re(I, {
4862
4856
  class: ["v-date-picker", `v-date-picker--${u.value}`, {
4863
4857
  "v-date-picker--show-week": t.showWeek
4864
4858
  }, t.class],
@@ -4870,7 +4864,7 @@ const Li = Te({
4870
4864
  class: "v-date-picker__title"
4871
4865
  }, [r(t.title)]);
4872
4866
  },
4873
- header: () => s.header ? b($t, {
4867
+ header: () => s.header ? b(Mt, {
4874
4868
  defaults: {
4875
4869
  VDatePickerHeader: {
4876
4870
  ...$e
@@ -4881,7 +4875,7 @@ const Li = Te({
4881
4875
  var F;
4882
4876
  return [(F = s.header) == null ? void 0 : F.call(s, $e)];
4883
4877
  }
4884
- }) : b(ps, re({
4878
+ }) : b(ms, re({
4885
4879
  key: "header"
4886
4880
  }, se, $e, {
4887
4881
  onClick: u.value !== "month" ? z : void 0
@@ -4889,32 +4883,32 @@ const Li = Te({
4889
4883
  ...s,
4890
4884
  default: void 0
4891
4885
  }),
4892
- default: () => b(xe, null, [b(ms, re(V, {
4886
+ default: () => b(xe, null, [b(gs, re(V, {
4893
4887
  disabled: k.value,
4894
4888
  text: m.value,
4895
4889
  "onClick:next": E,
4896
4890
  "onClick:prev": P,
4897
4891
  "onClick:month": G,
4898
4892
  "onClick:year": J
4899
- }), null), b(pr, {
4893
+ }), null), b(vr, {
4900
4894
  hideOnLeave: !0
4901
4895
  }, {
4902
- default: () => [u.value === "months" ? b(ys, re({
4896
+ default: () => [u.value === "months" ? b(vs, re({
4903
4897
  key: "date-picker-months"
4904
- }, Ft, {
4898
+ }, Vt, {
4905
4899
  modelValue: h.value,
4906
4900
  "onUpdate:modelValue": [(F) => h.value = F, he],
4907
4901
  min: l.value,
4908
4902
  max: c.value,
4909
4903
  year: y.value
4910
- }), null) : u.value === "year" ? b(bs, re({
4904
+ }), null) : u.value === "year" ? b(ys, re({
4911
4905
  key: "date-picker-years"
4912
4906
  }, Je, {
4913
4907
  modelValue: y.value,
4914
4908
  "onUpdate:modelValue": [(F) => y.value = F, Ae],
4915
4909
  min: l.value,
4916
4910
  max: c.value
4917
- }), null) : b(vs, re({
4911
+ }), null) : b(ps, re({
4918
4912
  key: "date-picker-month"
4919
4913
  }, Xe, {
4920
4914
  modelValue: a.value,
@@ -4931,17 +4925,17 @@ const Li = Te({
4931
4925
  });
4932
4926
  }), {};
4933
4927
  }
4934
- }), dd = { class: "d-flex justify-end" };
4935
- function fd(t, e, n, s, i, r) {
4928
+ }), ld = { class: "d-flex justify-end" };
4929
+ function ud(t, e, n, s, i, r) {
4936
4930
  const a = oe("BPhoneInput"), u = oe("BSearchLocationInput");
4937
4931
  return $(), pe("div", null, [
4938
- b(br, {
4932
+ b(Er, {
4939
4933
  modelValue: t.isFormValid,
4940
4934
  "onUpdate:modelValue": e[13] || (e[13] = (l) => t.isFormValid = l),
4941
4935
  style: { gap: "8px", display: "flex", flexDirection: "column" }
4942
4936
  }, {
4943
4937
  default: _(() => [
4944
- b(et, {
4938
+ b(Ze, {
4945
4939
  modelValue: t.formData.email,
4946
4940
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.formData.email = l),
4947
4941
  density: "compact",
@@ -4961,11 +4955,11 @@ function fd(t, e, n, s, i, r) {
4961
4955
  "onUpdate:modelValue": e[1] || (e[1] = (l) => t.formData.phoneData = l),
4962
4956
  class: "mt-0"
4963
4957
  }, null, 8, ["modelValue"]),
4964
- b(rt, { class: "mt-0" }, {
4958
+ b(it, { class: "mt-0" }, {
4965
4959
  default: _(() => [
4966
4960
  b(Pe, null, {
4967
4961
  default: _(() => [
4968
- b(Dn, {
4962
+ b(On, {
4969
4963
  modelValue: t.menuStartDate,
4970
4964
  "onUpdate:modelValue": e[4] || (e[4] = (l) => t.menuStartDate = l),
4971
4965
  "close-on-content-click": !1,
@@ -4973,7 +4967,7 @@ function fd(t, e, n, s, i, r) {
4973
4967
  transition: "scale-transition"
4974
4968
  }, {
4975
4969
  activator: _(({ props: l }) => [
4976
- b(et, re({
4970
+ b(Ze, re({
4977
4971
  "model-value": t.formatDate(t.formData.startDate),
4978
4972
  density: "compact",
4979
4973
  "hide-details": "",
@@ -4984,7 +4978,7 @@ function fd(t, e, n, s, i, r) {
4984
4978
  }, l, { color: "primary" }), null, 16, ["model-value", "label"])
4985
4979
  ]),
4986
4980
  default: _(() => [
4987
- b(Ss, {
4981
+ b(Es, {
4988
4982
  modelValue: t.formData.startDate,
4989
4983
  "onUpdate:modelValue": [
4990
4984
  e[2] || (e[2] = (l) => t.formData.startDate = l),
@@ -4999,7 +4993,7 @@ function fd(t, e, n, s, i, r) {
4999
4993
  }),
5000
4994
  b(Pe, null, {
5001
4995
  default: _(() => [
5002
- b(Dn, {
4996
+ b(On, {
5003
4997
  modelValue: t.menuEndDate,
5004
4998
  "onUpdate:modelValue": e[7] || (e[7] = (l) => t.menuEndDate = l),
5005
4999
  "close-on-content-click": !1,
@@ -5007,7 +5001,7 @@ function fd(t, e, n, s, i, r) {
5007
5001
  transition: "scale-transition"
5008
5002
  }, {
5009
5003
  activator: _(({ props: l }) => [
5010
- b(et, re({
5004
+ b(Ze, re({
5011
5005
  "model-value": t.formatDate(t.formData.endDate),
5012
5006
  density: "compact",
5013
5007
  "hide-details": "",
@@ -5018,7 +5012,7 @@ function fd(t, e, n, s, i, r) {
5018
5012
  }, l, { color: "primary" }), null, 16, ["model-value", "label"])
5019
5013
  ]),
5020
5014
  default: _(() => [
5021
- b(Ss, {
5015
+ b(Es, {
5022
5016
  modelValue: t.formData.endDate,
5023
5017
  "onUpdate:modelValue": [
5024
5018
  e[5] || (e[5] = (l) => t.formData.endDate = l),
@@ -5034,11 +5028,11 @@ function fd(t, e, n, s, i, r) {
5034
5028
  ]),
5035
5029
  _: 1
5036
5030
  }),
5037
- b(rt, null, {
5031
+ b(it, null, {
5038
5032
  default: _(() => [
5039
5033
  b(Pe, null, {
5040
5034
  default: _(() => [
5041
- b(et, {
5035
+ b(Ze, {
5042
5036
  modelValue: t.formData.adultCount,
5043
5037
  "onUpdate:modelValue": e[8] || (e[8] = (l) => t.formData.adultCount = l),
5044
5038
  density: "compact",
@@ -5056,7 +5050,7 @@ function fd(t, e, n, s, i, r) {
5056
5050
  }),
5057
5051
  b(Pe, null, {
5058
5052
  default: _(() => [
5059
- b(et, {
5053
+ b(Ze, {
5060
5054
  modelValue: t.formData.roomCount,
5061
5055
  "onUpdate:modelValue": e[9] || (e[9] = (l) => t.formData.roomCount = l),
5062
5056
  density: "compact",
@@ -5082,7 +5076,7 @@ function fd(t, e, n, s, i, r) {
5082
5076
  variant: "outlined",
5083
5077
  "with-details": ""
5084
5078
  }, null, 8, ["modelValue"]),
5085
- b(fr, {
5079
+ b(hr, {
5086
5080
  modelValue: t.formData.specificRequest,
5087
5081
  "onUpdate:modelValue": e[11] || (e[11] = (l) => t.formData.specificRequest = l),
5088
5082
  density: "compact",
@@ -5090,7 +5084,7 @@ function fd(t, e, n, s, i, r) {
5090
5084
  variant: "outlined",
5091
5085
  color: "primary"
5092
5086
  }, null, 8, ["modelValue", "label"]),
5093
- Zt("div", dd, [
5087
+ Jt("div", ld, [
5094
5088
  b(ae, {
5095
5089
  color: t.isSuccess ? "green" : "primary",
5096
5090
  "data-cy": "submit-button",
@@ -5110,9 +5104,9 @@ function fd(t, e, n, s, i, r) {
5110
5104
  }, 8, ["modelValue"])
5111
5105
  ]);
5112
5106
  }
5113
- typeof gs == "function" && gs(Pi);
5114
- const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5115
- ..._i,
5107
+ typeof hs == "function" && hs(_i);
5108
+ const cd = /* @__PURE__ */ gn(_i, [["render", ud]]), dd = {
5109
+ ...Ci,
5116
5110
  boilerplateSkeleton: {
5117
5111
  type: Boolean
5118
5112
  },
@@ -5129,11 +5123,11 @@ const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5129
5123
  type: {
5130
5124
  type: String
5131
5125
  }
5132
- }, Ui = hn({
5126
+ }, $i = fn({
5133
5127
  components: {
5134
- BErrorOverlay: hr,
5135
- ContactForm: hd,
5136
- HotelOfferItemLayout: _s
5128
+ BErrorOverlay: gr,
5129
+ ContactForm: cd,
5130
+ HotelOfferItemLayout: Cs
5137
5131
  },
5138
5132
  computed: {
5139
5133
  wording() {
@@ -5202,11 +5196,11 @@ const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5202
5196
  this.$emit("reset-filters");
5203
5197
  }
5204
5198
  },
5205
- mixins: [Ds],
5199
+ mixins: [Os],
5206
5200
  name: "HotelOfferListEmpty",
5207
- props: gd,
5201
+ props: dd,
5208
5202
  setup() {
5209
- const { t } = gn();
5203
+ const { t } = hn();
5210
5204
  return {
5211
5205
  t
5212
5206
  };
@@ -5220,7 +5214,7 @@ const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5220
5214
  }
5221
5215
  }
5222
5216
  });
5223
- function ks(t) {
5217
+ function Ss(t) {
5224
5218
  const e = t;
5225
5219
  e.__i18n = e.__i18n || [], e.__i18n.push({
5226
5220
  locale: "",
@@ -5396,20 +5390,20 @@ function ks(t) {
5396
5390
  }
5397
5391
  });
5398
5392
  }
5399
- const md = { class: "position-relative" };
5400
- function pd(t, e, n, s, i, r) {
5393
+ const fd = { class: "position-relative" };
5394
+ function hd(t, e, n, s, i, r) {
5401
5395
  const a = oe("HotelOfferItemLayout"), u = oe("ContactForm"), l = oe("BErrorOverlay");
5402
- return $(), pe("div", md, [
5403
- ($(), pe(xe, null, Cs(6, (c) => ($(), pe(xe, { key: c }, [
5396
+ return $(), pe("div", fd, [
5397
+ ($(), pe(xe, null, Ds(6, (c) => ($(), pe(xe, { key: c }, [
5404
5398
  b(a, {
5405
5399
  boilerplate: t.boilerplateSkeleton,
5406
- class: Et({
5400
+ class: bt({
5407
5401
  "mt-0": c === 1,
5408
5402
  "mb-0": c === t.itemCount,
5409
5403
  "mb-2": t.$breakpointService.xs
5410
5404
  })
5411
5405
  }, null, 8, ["boilerplate", "class"]),
5412
- t.$breakpointService.xs ? Z("", !0) : ($(), Q(en, { key: 0 }))
5406
+ t.$breakpointService.xs ? Z("", !0) : ($(), Q(Zt, { key: 0 }))
5413
5407
  ], 64))), 64)),
5414
5408
  t.typeData ? ($(), Q(l, {
5415
5409
  key: 0,
@@ -5419,8 +5413,8 @@ function pd(t, e, n, s, i, r) {
5419
5413
  je(He(t.wording.title), 1)
5420
5414
  ]),
5421
5415
  description: _(() => [
5422
- Zt("div", null, [
5423
- Zt("p", null, He(t.wording.description), 1),
5416
+ Jt("div", null, [
5417
+ Jt("p", null, He(t.wording.description), 1),
5424
5418
  t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? ($(), Q(u, {
5425
5419
  key: 0,
5426
5420
  "adult-count": t.adultCount,
@@ -5448,22 +5442,22 @@ function pd(t, e, n, s, i, r) {
5448
5442
  })) : Z("", !0)
5449
5443
  ]);
5450
5444
  }
5451
- typeof ks == "function" && ks(Ui);
5452
- const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5445
+ typeof Ss == "function" && Ss($i);
5446
+ const gd = /* @__PURE__ */ gn($i, [["render", hd]]), Ui = fn({
5453
5447
  components: {
5454
- BHotelOffersFilterBar: ur,
5455
- BHotelSearchBar: Sr,
5456
- HotelOfferItem: lr,
5457
- HotelOfferItemLayout: _s,
5458
- HotelOfferListEmpty: vd,
5459
- HotelRoomOfferList: Er,
5460
- TermsAndConditions: Ir
5448
+ BHotelOffersFilterBar: cr,
5449
+ BHotelSearchBar: kr,
5450
+ HotelOfferItem: ur,
5451
+ HotelOfferItemLayout: Cs,
5452
+ HotelOfferListEmpty: gd,
5453
+ HotelRoomOfferList: Sr,
5454
+ TermsAndConditions: Tr
5461
5455
  },
5462
5456
  computed: {
5463
- ...Wi(
5464
- Ji,
5465
- Tr,
5466
- cr
5457
+ ...Qi(
5458
+ Zi,
5459
+ Ar,
5460
+ dr
5467
5461
  ),
5468
5462
  areFiltersActive: be("hotelOffers/areFiltersActive"),
5469
5463
  displayFiltersMenu() {
@@ -5477,7 +5471,7 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5477
5471
  isPollingHotelOffers: be("hotelOffers/isPolling"),
5478
5472
  isTopPicksSelected() {
5479
5473
  var t;
5480
- return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Xi.TopPicks;
5474
+ return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Ji.TopPicks;
5481
5475
  },
5482
5476
  showErrorMessage() {
5483
5477
  return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
@@ -5520,23 +5514,23 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5520
5514
  }
5521
5515
  },
5522
5516
  mixins: [
5523
- Ds,
5524
- ar,
5525
- Rr(
5517
+ Os,
5518
+ lr,
5519
+ Ir(
5526
5520
  ["bookingApiClient", "config.currency", "config.lang"],
5527
5521
  "retrieveHotelOffers"
5528
5522
  ),
5529
- sr,
5530
- kr({
5531
- fallbackValue: Ls,
5523
+ ir,
5524
+ Rr({
5525
+ fallbackValue: Ns,
5532
5526
  propsName: "features"
5533
5527
  }),
5534
- Ar()
5528
+ Or()
5535
5529
  ],
5536
5530
  name: "HotelOfferList",
5537
- props: Dr,
5531
+ props: Cr,
5538
5532
  setup() {
5539
- const { t } = gn();
5533
+ const { t } = hn();
5540
5534
  return {
5541
5535
  t
5542
5536
  };
@@ -5545,7 +5539,7 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5545
5539
  filters: {
5546
5540
  deep: !0,
5547
5541
  async handler(t, e) {
5548
- Qi(t, e) || await this.retrieveHotelOffers();
5542
+ Xi(t, e) || await this.retrieveHotelOffers();
5549
5543
  }
5550
5544
  },
5551
5545
  "hotelOfferRequest.id": {
@@ -5566,7 +5560,7 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5566
5560
  }
5567
5561
  }
5568
5562
  });
5569
- function Rs(t) {
5563
+ function ks(t) {
5570
5564
  const e = t;
5571
5565
  e.__i18n = e.__i18n || [], e.__i18n.push({
5572
5566
  locale: "",
@@ -5609,19 +5603,19 @@ function Rs(t) {
5609
5603
  }
5610
5604
  });
5611
5605
  }
5612
- const yd = {
5606
+ const md = {
5613
5607
  key: 0,
5614
5608
  class: "mx-n2"
5615
- }, bd = {
5609
+ }, pd = {
5616
5610
  key: 1,
5617
5611
  class: "d-flex justify-center align-center py-3"
5618
5612
  };
5619
- function Ed(t, e, n, s, i, r) {
5613
+ function vd(t, e, n, s, i, r) {
5620
5614
  const a = oe("BHotelSearchBar"), u = oe("BHotelOffersFilterBar"), l = oe("HotelOfferListEmpty"), c = oe("HotelRoomOfferList"), d = oe("HotelOfferItem"), h = oe("TermsAndConditions");
5621
- return $(), Q(Or, {
5615
+ return $(), Q(Dr, {
5622
5616
  ref: "hotel-offer-list-container",
5623
5617
  class: "pa-0 bg-white",
5624
- style: tr([{ "min-height": "500px" }, {
5618
+ style: nr([{ "min-height": "500px" }, {
5625
5619
  height: t.parsedHeight,
5626
5620
  maxHeight: t.maxHeight,
5627
5621
  overflowY: "auto",
@@ -5629,9 +5623,9 @@ function Ed(t, e, n, s, i, r) {
5629
5623
  }])
5630
5624
  }, {
5631
5625
  default: _(() => [
5632
- t.parsedFeatures.HotelOfferSearchMenu ? ($(), Q(rt, {
5626
+ t.parsedFeatures.HotelOfferSearchMenu ? ($(), Q(it, {
5633
5627
  key: 0,
5634
- class: Et(["px-2 pt-4", t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""]),
5628
+ class: bt(["px-2 pt-4", t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""]),
5635
5629
  "no-gutters": ""
5636
5630
  }, {
5637
5631
  default: _(() => [
@@ -5651,23 +5645,23 @@ function Ed(t, e, n, s, i, r) {
5651
5645
  ]),
5652
5646
  _: 1
5653
5647
  }, 8, ["class"])) : Z("", !0),
5654
- t.displayFiltersMenu && t.isBookingApiClientDefined ? ($(), Q(rt, {
5648
+ t.displayFiltersMenu && t.isBookingApiClientDefined ? ($(), Q(it, {
5655
5649
  key: 1,
5656
- class: Et(t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""),
5650
+ class: bt(t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""),
5657
5651
  "no-gutters": ""
5658
5652
  }, {
5659
5653
  default: _(() => [
5660
5654
  b(Pe, null, {
5661
5655
  default: _(() => [
5662
5656
  b(u),
5663
- t.$breakpointService.xs ? Z("", !0) : ($(), Q(en, { key: 0 }))
5657
+ t.$breakpointService.xs ? Z("", !0) : ($(), Q(Zt, { key: 0 }))
5664
5658
  ]),
5665
5659
  _: 1
5666
5660
  })
5667
5661
  ]),
5668
5662
  _: 1
5669
5663
  }, 8, ["class"])) : Z("", !0),
5670
- b(rt, { "no-gutters": "" }, {
5664
+ b(it, { "no-gutters": "" }, {
5671
5665
  default: _(() => [
5672
5666
  b(Pe, null, {
5673
5667
  default: _(() => [
@@ -5687,17 +5681,17 @@ function Ed(t, e, n, s, i, r) {
5687
5681
  type: "noResults",
5688
5682
  onResetFilters: t.onResetFilters
5689
5683
  }, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : ($(), pe(xe, { key: 3 }, [
5690
- Zi(b(vr, {
5684
+ er(b(yr, {
5691
5685
  color: "primary",
5692
5686
  indeterminate: ""
5693
5687
  }, null, 512), [
5694
- [er, t.loadingBarEnabled && t.isPollingHotelOffers]
5688
+ [tr, t.loadingBarEnabled && t.isPollingHotelOffers]
5695
5689
  ]),
5696
- t.hotelOffers ? ($(!0), pe(xe, { key: 0 }, Cs(t.hotelOffers, (y, g) => ($(), pe(xe, {
5690
+ t.hotelOffers ? ($(!0), pe(xe, { key: 0 }, Ds(t.hotelOffers, (y, g) => ($(), pe(xe, {
5697
5691
  key: y.id
5698
5692
  }, [
5699
5693
  b(d, {
5700
- class: Et(["pr-3", {
5694
+ class: bt(["pr-3", {
5701
5695
  "mt-0": g === 0,
5702
5696
  "mb-0": g === t.hotelOffers.length - 1
5703
5697
  }]),
@@ -5710,7 +5704,7 @@ function Ed(t, e, n, s, i, r) {
5710
5704
  default: _(() => {
5711
5705
  var f;
5712
5706
  return [
5713
- (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? ($(), pe("div", yd, [
5707
+ (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? ($(), pe("div", md, [
5714
5708
  b(c, {
5715
5709
  "adult-count": t.hotelOfferRequest.adultCount,
5716
5710
  "check-in-date": t.hotelOfferRequest.checkInDate,
@@ -5727,9 +5721,9 @@ function Ed(t, e, n, s, i, r) {
5727
5721
  }),
5728
5722
  _: 2
5729
5723
  }, 1032, ["class", "features", "hotel-offer", "single-offer", "onMouseleave", "onMouseover"]),
5730
- b(en)
5724
+ b(Zt)
5731
5725
  ], 64))), 128)) : Z("", !0),
5732
- t.startingAfter ? ($(), pe("div", bd, [
5726
+ t.startingAfter ? ($(), pe("div", pd, [
5733
5727
  b(ae, {
5734
5728
  color: "primary",
5735
5729
  variant: "flat",
@@ -5758,12 +5752,12 @@ function Ed(t, e, n, s, i, r) {
5758
5752
  _: 1
5759
5753
  }, 8, ["style"]);
5760
5754
  }
5761
- typeof Rs == "function" && Rs(Bi);
5762
- const jd = /* @__PURE__ */ mn(Bi, [["render", Ed]]);
5763
- xi("css/revolugo.hotelofferlist.BkctzTMI.css");
5755
+ typeof ks == "function" && ks(Ui);
5756
+ const xd = /* @__PURE__ */ gn(Ui, [["render", vd]]);
5757
+ Fi("css/revolugo.hotelofferlist.BkctzTMI.css");
5764
5758
  export {
5765
- jd as H,
5766
- Ls as a,
5767
- Dr as h
5759
+ xd as H,
5760
+ Ns as a,
5761
+ Cr as h
5768
5762
  };
5769
- //# sourceMappingURL=revolugo.hotelofferlist.B1fId7Bz.min.js.map
5763
+ //# sourceMappingURL=revolugo.hotelofferlist.BSS9Pdsg.min.js.map