@revolugo/elements 6.8.2-beta.9 → 6.8.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +1 -1
  2. package/dist/css/{revolugo.bdaterangepicker.BLYZnPjh.css → revolugo.bdaterangepicker.CHUExWGL.css} +1 -1
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +1 -0
  4. package/dist/css/{revolugo.hoteldescriptionview.CqUUU1fv.css → revolugo.hoteldescriptionview.DWuzEuGF.css} +1 -1
  5. package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +1 -0
  6. package/dist/css/{revolugo.hotelroomofferlist.DI_s2G5c.css → revolugo.hotelroomofferlist.DpLXIpgU.css} +1 -1
  7. package/dist/index.es.min.js +496 -564
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +6 -6
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo._basefor.CodrYJxd.min.js +15 -0
  12. package/dist/{revolugo.banktransferdetails.BX7OeQZV.min.js → revolugo.banktransferdetails.BdulCgI5.min.js} +9 -9
  13. package/dist/{revolugo.bdaterangepicker.CD21jpXB.min.js → revolugo.bdaterangepicker.XZNoMSi5.min.js} +8 -8
  14. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +61 -0
  15. package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +4685 -0
  16. package/dist/{revolugo.bhotelroomsdetails.BLqYw-sq.min.js → revolugo.bhotelroomsdetails.orWBBD_o.min.js} +28 -28
  17. package/dist/{revolugo.bhotelsearchbar.BNSMxrNp.min.js → revolugo.bhotelsearchbar.DxxqZWkN.min.js} +16 -16
  18. package/dist/{revolugo.bimagecarousel.Bbu1M-_U.min.js → revolugo.bimagecarousel.DIPN99VA.min.js} +31 -31
  19. package/dist/{revolugo.bookingdetailssidebar.CokqW6fy.min.js → revolugo.bookingdetailssidebar.CD4SMOkC.min.js} +4 -4
  20. package/dist/{revolugo.bookingdetailssidebar.BvK3BXHf.min.js → revolugo.bookingdetailssidebar.JOU68R1_.min.js} +11 -11
  21. package/dist/{revolugo.bookingmanager.Cb3omaKY.min.js → revolugo.bookingmanager.B5cM9Mi5.min.js} +20 -20
  22. package/dist/{revolugo.bpricesummaryskeleton.C8B8KuR2.min.js → revolugo.bpricesummaryskeleton.YKfKKB5n.min.js} +4 -4
  23. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CIoChEf4.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js} +93 -82
  24. package/dist/{revolugo.btag.BGoOCm1Z.min.js → revolugo.btag.DjjDRtQ7.min.js} +22 -22
  25. package/dist/{revolugo.cancellationpoliciesbadge.CzdZk9wC.min.js → revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js} +14 -14
  26. package/dist/{revolugo.cancellationpoliciesbadge.Clx08Izl.min.js → revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js} +4 -4
  27. package/dist/{revolugo.cancellationpolicieslist.DkdBqk_D.min.js → revolugo.cancellationpolicieslist.CZImqgN3.min.js} +4 -4
  28. package/dist/{revolugo.cancellationpolicieslist.D_blsTpt.min.js → revolugo.cancellationpolicieslist.D097ASNF.min.js} +4 -4
  29. package/dist/{revolugo.case-transformers.yF9LmSh2.min.js → revolugo.case-transformers.Dr1oSJkZ.min.js} +6 -6
  30. package/dist/{revolugo.creditcardform.DLGGNiOj.min.js → revolugo.creditcardform.DNOMVOgZ.min.js} +32 -32
  31. package/dist/{revolugo.creditcardform.dhkDslgQ.min.js → revolugo.creditcardform.DvHcDx2P.min.js} +4 -4
  32. package/dist/{revolugo.creditcardpayment.Dk1qZNdM.min.js → revolugo.creditcardpayment.BLP3RXk4.min.js} +58 -59
  33. package/dist/{revolugo.creditcardpayment.BI07MXqq.min.js → revolugo.creditcardpayment.D3lPKmx1.min.js} +4 -4
  34. package/dist/{revolugo.currencypicker.Dg7-2SvP.min.js → revolugo.currencypicker.CzzS1Adp.min.js} +6 -6
  35. package/dist/{revolugo.currencypickerbtn.B1hFei3f.min.js → revolugo.currencypickerbtn.ChUEouGw.min.js} +17 -17
  36. package/dist/{revolugo.currencypickerbtn.C4BppGp4.min.js → revolugo.currencypickerbtn.DWnyc54P.min.js} +4 -4
  37. package/dist/{revolugo.dialog-attach.CkEej6wS.min.js → revolugo.dialog-attach.O2HXPGzj.min.js} +2 -2
  38. package/dist/{revolugo.dialog-transition.uNfpHJql.min.js → revolugo.dialog-transition.C6S7Ci1s.min.js} +5 -5
  39. package/dist/{revolugo.fastbookingflow.B6XARfWY.min.js → revolugo.fastbookingflow.ChNa4jgv.min.js} +4 -4
  40. package/dist/{revolugo.fullbookingflow.BZLx73dx.min.js → revolugo.fullbookingflow.ByKmNqgi.min.js} +80 -79
  41. package/dist/{revolugo.hoteldescriptionview.yCtPdRFO.min.js → revolugo.hoteldescriptionview.CbtxEPGG.min.js} +754 -677
  42. package/dist/{revolugo.hoteldescriptionview.BCzUzk_E.min.js → revolugo.hoteldescriptionview.D3JTbFxn.min.js} +4 -4
  43. package/dist/{revolugo.hotelofferitemlayout.DO-TA9ts.min.js → revolugo.hotelofferitemlayout.tBOOIdeT.min.js} +6 -6
  44. package/dist/{revolugo.hotelofferlist.CannqNZQ.min.js → revolugo.hotelofferlist.BVySEYbq.min.js} +821 -847
  45. package/dist/{revolugo.hotelofferlist.CBRnlb3a.min.js → revolugo.hotelofferlist.puK2FNBR.min.js} +4 -4
  46. package/dist/{revolugo.hotelofferrequestcreator.Ccc9h3wS.min.js → revolugo.hotelofferrequestcreator.CbCau_4i.min.js} +15 -16
  47. package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +46 -0
  48. package/dist/{revolugo.hoteloffersmap.61vs2XAi.min.js → revolugo.hoteloffersmap.BRVm5s6N.min.js} +374 -371
  49. package/dist/{revolugo.hoteloffersmap.BGAjS-vH.min.js → revolugo.hoteloffersmap.DqKpfjbt.min.js} +4 -4
  50. package/dist/{revolugo.hoteloffersview.DNumSw2r.min.js → revolugo.hoteloffersview.3LJ-m6BY.min.js} +132 -131
  51. package/dist/{revolugo.hoteloffersview.CWq5dZCG.min.js → revolugo.hoteloffersview.DsGyT5s7.min.js} +4 -4
  52. package/dist/{revolugo.hotelroomofferlist.cmfjmRwH.min.js → revolugo.hotelroomofferlist.DdMr5qEZ.min.js} +4 -4
  53. package/dist/{revolugo.hotelroomofferlist.5_UL7OSw.min.js → revolugo.hotelroomofferlist.M-3bowQa.min.js} +198 -198
  54. package/dist/{revolugo.hotelroomofferrequestcreator.props.C4FwM136.min.js → revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js} +2 -2
  55. package/dist/{revolugo.hotelroomoffersbookingflow.BQD6GxXC.min.js → revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js} +83 -83
  56. package/dist/{revolugo.hotelroomoffersearchmenu.DtfalJtl.min.js → revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js} +5 -5
  57. package/dist/{revolugo.hotelroomoffersearchmenu.5tW36-zQ.min.js → revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js} +7 -7
  58. package/dist/{revolugo.hotelroomoffersview.BDcWZXrg.min.js → revolugo.hotelroomoffersview.BSth8Xsz.min.js} +46 -46
  59. package/dist/{revolugo.hotelroomoffersview.z6aOfmaM.min.js → revolugo.hotelroomoffersview.oxTgBMSk.min.js} +4 -4
  60. package/dist/revolugo.index.D0uSQdJV.min.js +13 -0
  61. package/dist/{revolugo.index.Cl_q_UjY.min.js → revolugo.index.gIPq0z7C.min.js} +104 -104
  62. package/dist/{revolugo.index.wc.BmozE9Vv.min.js → revolugo.index.wc.7I5uexuc.min.js} +15225 -14780
  63. package/dist/{revolugo.langpicker.vHHfpOMW.min.js → revolugo.langpicker.CLdiic9k.min.js} +7 -7
  64. package/dist/{revolugo.langpickerbtn.DqM5hWXl.min.js → revolugo.langpickerbtn.BIHQAnjv.min.js} +4 -4
  65. package/dist/{revolugo.langpickerbtn.DBxEuVPS.min.js → revolugo.langpickerbtn.DF-m4pCF.min.js} +9 -9
  66. package/dist/revolugo.min.js +1 -1
  67. package/dist/{revolugo.position.DtKVN8Dm.min.js → revolugo.position.hqKd4K_h.min.js} +35 -35
  68. package/dist/{revolugo.prebookform.B__ne_5e.min.js → revolugo.prebookform.B8aMLMuG.min.js} +58 -58
  69. package/dist/{revolugo.prebookform.DNGu-Yse.min.js → revolugo.prebookform.CxK0iSDo.min.js} +4 -4
  70. package/dist/{revolugo.roominglisteditor.B2aeWLHf.min.js → revolugo.roominglisteditor.D7WzDtw6.min.js} +4 -4
  71. package/dist/{revolugo.roominglisteditor.B80_0zLe.min.js → revolugo.roominglisteditor.Do-pe811.min.js} +11 -11
  72. package/dist/{revolugo.rounded.BXIsUmTy.min.js → revolugo.rounded.Dnxang6X.min.js} +2 -2
  73. package/dist/{revolugo.ssrboot.BIjLx7yH.min.js → revolugo.ssrboot.ByGq44eI.min.js} +2 -2
  74. package/dist/{revolugo.storybooktoolbar.Dkb9K5kX.min.js → revolugo.storybooktoolbar.DY_mbXuP.min.js} +149 -153
  75. package/dist/{revolugo.termsandconditions.BALwQNzD.min.js → revolugo.termsandconditions.DXNFR45_.min.js} +4 -4
  76. package/dist/{revolugo.termsandconditions.DE2JCEFT.min.js → revolugo.termsandconditions.DfGTVPYa.min.js} +4 -4
  77. package/dist/{revolugo.use-breakpoint-service.B7ZCEdsL.min.js → revolugo.use-breakpoint-service.CJltQiSH.min.js} +14 -14
  78. package/dist/{revolugo.vautocomplete.Wzbe0OaU.min.js → revolugo.vautocomplete.BjPSa1jg.min.js} +76 -76
  79. package/dist/{revolugo.vbadge.DSCygmIX.min.js → revolugo.vbadge.D1RCkHoZ.min.js} +20 -20
  80. package/dist/{revolugo.vbtn.DznliZzR.min.js → revolugo.vbtn.CQ9EDLRJ.min.js} +51 -51
  81. package/dist/{revolugo.vcard.h_EXlxhg.min.js → revolugo.vcard.DNU4i52n.min.js} +15 -15
  82. package/dist/{revolugo.vcheckboxbtn.DUhHPAp0.min.js → revolugo.vcheckboxbtn.De-k8-O3.min.js} +74 -74
  83. package/dist/{revolugo.vdialog.Bt220-tR.min.js → revolugo.vdialog.CjEajxIC.min.js} +23 -23
  84. package/dist/{revolugo.vdivider.C-iQpm6s.min.js → revolugo.vdivider.Cp9bHPnI.min.js} +3 -3
  85. package/dist/{revolugo.vexpansionpanels.HBdcYsbX.min.js → revolugo.vexpansionpanels.L2ZpX4zd.min.js} +32 -32
  86. package/dist/{revolugo.vform.D-Xypuf6.min.js → revolugo.vform.Bw9rddZZ.min.js} +4 -4
  87. package/dist/{revolugo.vinput.Svg6lkwC.min.js → revolugo.vinput.P34xrpIC.min.js} +55 -55
  88. package/dist/{revolugo.vlabel.Bhm6Zd00.min.js → revolugo.vlabel.CLHrAz78.min.js} +3 -3
  89. package/dist/{revolugo.vlist.DMMPJbxQ.min.js → revolugo.vlist.hRQlcp5M.min.js} +109 -109
  90. package/dist/{revolugo.vmenu.-0zeBGoy.min.js → revolugo.vmenu.BRFw3Jzk.min.js} +25 -25
  91. package/dist/{revolugo.vselect.Bo-j_DVa.min.js → revolugo.vselect.u2C25NCe.min.js} +61 -61
  92. package/dist/{revolugo.vsheet.QeecLFsP.min.js → revolugo.vsheet.8UeU7qQn.min.js} +8 -8
  93. package/dist/{revolugo.vskeletonloader.EgTyxJfJ.min.js → revolugo.vskeletonloader.Dk0enVo6.min.js} +6 -6
  94. package/dist/{revolugo.vsnackbar.B_Wq8MGf.min.js → revolugo.vsnackbar.18JqJsZ2.min.js} +38 -38
  95. package/dist/revolugo.vspacer.CPbtu_-W.min.js +7 -0
  96. package/dist/{revolugo.vtextarea.DDc8gnKI.min.js → revolugo.vtextarea.Cjuqcka5.min.js} +61 -61
  97. package/dist/{revolugo.vtextfield.BchqqdJO.min.js → revolugo.vtextfield.BUNcwTRK.min.js} +69 -69
  98. package/dist/{revolugo.vtoolbar.DTHYPxEN.min.js → revolugo.vtoolbar.CvbAGFXR.min.js} +20 -20
  99. package/dist/{revolugo.vtooltip.D5Wd79J1.min.js → revolugo.vtooltip.CsXJFD-V.min.js} +39 -39
  100. package/dist/{revolugo.vwindowitem.BllQGIpD.min.js → revolugo.vwindowitem.DGRfRU3q.min.js} +34 -34
  101. package/dist/{revolugo.watch-list.By-bpBU3.min.js → revolugo.watch-list.D0FxBTWy.min.js} +2 -2
  102. package/dist/{revolugo.webcomponentwrapper.eF3pik3C.min.js → revolugo.webcomponentwrapper.DFYGhYzz.min.js} +268 -268
  103. package/package.json +1 -1
  104. package/dist/css/revolugo.bhoteloffersfilterbar.PIn4y3L4.css +0 -1
  105. package/dist/css/revolugo.hoteloffersview.oDGeJCwG.css +0 -1
  106. package/dist/revolugo._baseiteratee.MzUQeAWT.min.js +0 -247
  107. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CHRvRFko.min.js +0 -149
  108. package/dist/revolugo.bhoteloffersfilterbar.DaG82sI1.min.js +0 -4826
  109. package/dist/revolugo.defaultsdeep._CHFDoDm.min.js +0 -104
  110. package/dist/revolugo.hotel-offer-request.DW3cTCiu.min.js +0 -98
  111. package/dist/revolugo.hoteloffersearchmenu.CX6iHCJ-.min.js +0 -47
  112. package/dist/revolugo.vspacer.BdpvYtXu.min.js +0 -7
@@ -1,30 +1,30 @@
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.BmozE9Vv.min.js";
5
- import { h as nr, H as sr } from "./revolugo.hotelofferrequestcreator.Ccc9h3wS.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.DaG82sI1.min.js";
7
- import { H as _s } from "./revolugo.hotelofferitemlayout.DO-TA9ts.min.js";
8
- import { B as dr, v as Ue, V as fr } from "./revolugo.vtextarea.DDc8gnKI.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.eF3pik3C.min.js";
10
- import { V as et } from "./revolugo.vtextfield.BchqqdJO.min.js";
11
- import { V as Dn } from "./revolugo.vmenu.-0zeBGoy.min.js";
12
- import { a as ae } from "./revolugo.vbtn.DznliZzR.min.js";
13
- import { V as gr } from "./revolugo.vspacer.BdpvYtXu.min.js";
14
- import { a as $t, b as mr } from "./revolugo.index.Cl_q_UjY.min.js";
15
- import { c as pr, V as vr } from "./revolugo.position.DtKVN8Dm.min.js";
16
- import { V as Cn, m as yr } from "./revolugo.vsheet.QeecLFsP.min.js";
17
- import { V as br } from "./revolugo.vform.D-Xypuf6.min.js";
18
- import { V as en } from "./revolugo.vdivider.C-iQpm6s.min.js";
19
- import { H as Er } from "./revolugo.hotelroomofferlist.5_UL7OSw.min.js";
20
- import { B as Sr } from "./revolugo.bhotelsearchbar.BNSMxrNp.min.js";
21
- import { p as kr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CIoChEf4.min.js";
22
- import { w as Rr } from "./revolugo.watch-list.By-bpBU3.min.js";
23
- import { T as Ir } from "./revolugo.termsandconditions.BALwQNzD.min.js";
24
- import { u as Tr } from "./revolugo.hotelroomofferrequestcreator.props.C4FwM136.min.js";
25
- import { p as Ar, g as be } from "./revolugo.use-breakpoint-service.B7ZCEdsL.min.js";
26
- import { V as Or } from "./revolugo.bdaterangepicker.CD21jpXB.min.js";
27
- function xi(t) {
1
+ var Ui = Object.defineProperty;
2
+ var Bi = (t, e, n) => e in t ? Ui(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var N = (t, e, n) => Bi(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { Y as Je, d as hn, u as gn, k as xt, Z as Me, _ as Ie, D as $, a as b, $ as vt, a0 as Fi, a1 as dt, a2 as Le, a3 as yt, a4 as xi, C as Jt, a5 as bt, M as Ts, f as je, a6 as at, a7 as Is, a8 as Os, y as re, a9 as As, aa as Hi, V as Gi, R as ji, ab as qi, ac as zi, F as xe, i as me, w as _, e as Zt, t as He, r as oe, o as M, b as Ds, c as Q, g as Z, v as Cs, x as Et, K as Ki, Q as Yi, ad as Wi, S as Qi, ae as Xi, H as Ji, I as Zi, A as er } from "./revolugo.index.wc.7I5uexuc.min.js";
5
+ import { h as tr, H as nr } from "./revolugo.hotelofferrequestcreator.CbCau_4i.min.js";
6
+ import { H as sr, D as ir, B as rr, p as or, b as ar, c as lr } from "./revolugo.bhoteloffersfilterbar.Bryijtf6.min.js";
7
+ import { H as _s } from "./revolugo.hotelofferitemlayout.tBOOIdeT.min.js";
8
+ import { B as ur, v as Ue, V as cr } from "./revolugo.vtextarea.Cjuqcka5.min.js";
9
+ import { u as Ye, b as Ps, M as Ns, _ as mn, V as it, a as Pe, B as dr } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
10
+ import { V as Ze } from "./revolugo.vtextfield.BUNcwTRK.min.js";
11
+ import { V as Dn } from "./revolugo.vmenu.BRFw3Jzk.min.js";
12
+ import { a as ae } from "./revolugo.vbtn.CQ9EDLRJ.min.js";
13
+ import { V as fr } from "./revolugo.vspacer.CPbtu_-W.min.js";
14
+ import { a as Ut, b as hr } from "./revolugo.index.gIPq0z7C.min.js";
15
+ import { c as gr, V as mr } from "./revolugo.position.hqKd4K_h.min.js";
16
+ import { V as Cn, m as pr } from "./revolugo.vsheet.8UeU7qQn.min.js";
17
+ import { V as vr } from "./revolugo.vform.Bw9rddZZ.min.js";
18
+ import { V as en } from "./revolugo.vdivider.Cp9bHPnI.min.js";
19
+ import { H as yr } from "./revolugo.hotelroomofferlist.M-3bowQa.min.js";
20
+ import { B as br } from "./revolugo.bhotelsearchbar.DxxqZWkN.min.js";
21
+ import { p as Er } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js";
22
+ import { w as Sr } from "./revolugo.watch-list.D0FxBTWy.min.js";
23
+ import { T as kr } from "./revolugo.termsandconditions.DXNFR45_.min.js";
24
+ import { u as Rr } from "./revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js";
25
+ import { p as Tr, g as be } from "./revolugo.use-breakpoint-service.CJltQiSH.min.js";
26
+ import { V as Ir } from "./revolugo.bdaterangepicker.XZNoMSi5.min.js";
27
+ function Vi(t) {
28
28
  try {
29
29
  if (typeof document < "u") {
30
30
  window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
@@ -44,15 +44,15 @@ function xi(t) {
44
44
  console.error("[revolugo-elements] ", e);
45
45
  }
46
46
  }
47
- const Ls = {
47
+ const Or = {
48
48
  FiltersBar: !0,
49
49
  HotelOfferSearchMenu: !1,
50
50
  TermsAndConditionsFooter: !0,
51
- HotelOfferItem: ir
52
- }, Dr = {
53
- ...nr,
51
+ HotelOfferItem: sr
52
+ }, Ar = {
53
+ ...tr,
54
54
  features: {
55
- default: () => Ls,
55
+ default: () => Or,
56
56
  type: [Object, String]
57
57
  },
58
58
  height: {
@@ -63,7 +63,7 @@ const Ls = {
63
63
  type: Number
64
64
  },
65
65
  limit: {
66
- default: rr,
66
+ default: ir,
67
67
  type: Number
68
68
  },
69
69
  loadingBarEnabled: {
@@ -79,12 +79,12 @@ const Ls = {
79
79
  type: Boolean
80
80
  }
81
81
  };
82
- function w(t) {
82
+ function L(t) {
83
83
  return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
84
84
  }
85
- function ve(t) {
85
+ function pe(t) {
86
86
  return function e(n) {
87
- return arguments.length === 0 || w(n) ? e : t.apply(this, arguments);
87
+ return arguments.length === 0 || L(n) ? e : t.apply(this, arguments);
88
88
  };
89
89
  }
90
90
  function Ee(t) {
@@ -93,13 +93,13 @@ function Ee(t) {
93
93
  case 0:
94
94
  return e;
95
95
  case 1:
96
- return w(n) ? e : ve(function(i) {
96
+ return L(n) ? e : pe(function(i) {
97
97
  return t(n, i);
98
98
  });
99
99
  default:
100
- return w(n) && w(s) ? e : w(n) ? ve(function(i) {
100
+ return L(n) && L(s) ? e : L(n) ? pe(function(i) {
101
101
  return t(i, s);
102
- }) : w(s) ? ve(function(i) {
102
+ }) : L(s) ? pe(function(i) {
103
103
  return t(n, i);
104
104
  }) : t(n, s);
105
105
  }
@@ -111,29 +111,29 @@ function pn(t) {
111
111
  case 0:
112
112
  return e;
113
113
  case 1:
114
- return w(n) ? e : Ee(function(r, a) {
114
+ return L(n) ? e : Ee(function(r, a) {
115
115
  return t(n, r, a);
116
116
  });
117
117
  case 2:
118
- return w(n) && w(s) ? e : w(n) ? Ee(function(r, a) {
118
+ return L(n) && L(s) ? e : L(n) ? Ee(function(r, a) {
119
119
  return t(r, s, a);
120
- }) : w(s) ? Ee(function(r, a) {
120
+ }) : L(s) ? Ee(function(r, a) {
121
121
  return t(n, r, a);
122
- }) : ve(function(r) {
122
+ }) : pe(function(r) {
123
123
  return t(n, s, r);
124
124
  });
125
125
  default:
126
- return w(n) && w(s) && w(i) ? e : w(n) && w(s) ? Ee(function(r, a) {
126
+ return L(n) && L(s) && L(i) ? e : L(n) && L(s) ? Ee(function(r, a) {
127
127
  return t(r, a, i);
128
- }) : w(n) && w(i) ? Ee(function(r, a) {
128
+ }) : L(n) && L(i) ? Ee(function(r, a) {
129
129
  return t(r, s, a);
130
- }) : w(s) && w(i) ? Ee(function(r, a) {
130
+ }) : L(s) && L(i) ? Ee(function(r, a) {
131
131
  return t(n, r, a);
132
- }) : w(n) ? ve(function(r) {
132
+ }) : L(n) ? pe(function(r) {
133
133
  return t(r, s, i);
134
- }) : w(s) ? ve(function(r) {
134
+ }) : L(s) ? pe(function(r) {
135
135
  return t(n, r, i);
136
- }) : w(i) ? ve(function(r) {
136
+ }) : L(i) ? pe(function(r) {
137
137
  return t(n, s, r);
138
138
  }) : t(n, s, i);
139
139
  }
@@ -142,27 +142,27 @@ function pn(t) {
142
142
  function ht(t, e) {
143
143
  return Object.prototype.hasOwnProperty.call(e, t);
144
144
  }
145
- var Cr = /* @__PURE__ */ ve(function(e) {
145
+ var Dr = /* @__PURE__ */ pe(function(e) {
146
146
  return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
147
147
  });
148
148
  function _n(t) {
149
149
  return Object.prototype.toString.call(t) === "[object Object]";
150
150
  }
151
- const _r = Number.isInteger || function(e) {
151
+ const Cr = Number.isInteger || function(e) {
152
152
  return e << 0 === e;
153
153
  };
154
- function Pr(t) {
154
+ function _r(t) {
155
155
  return Object.prototype.toString.call(t) === "[object String]";
156
156
  }
157
- function Nr(t, e) {
157
+ function Pr(t, e) {
158
158
  var n = t < 0 ? e.length + t : t;
159
- return Pr(e) ? e.charAt(n) : e[n];
159
+ return _r(e) ? e.charAt(n) : e[n];
160
160
  }
161
- function Lr(t) {
161
+ function Nr(t) {
162
162
  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" : ""));
163
163
  }
164
- function ws(t, e, n) {
165
- if (n || (n = new Mr()), wr(t))
164
+ function Ls(t, e, n) {
165
+ if (n || (n = new wr()), Lr(t))
166
166
  return t;
167
167
  var s = function(r) {
168
168
  var a = n.get(t);
@@ -170,10 +170,10 @@ function ws(t, e, n) {
170
170
  return a;
171
171
  n.set(t, r);
172
172
  for (var u in t)
173
- Object.prototype.hasOwnProperty.call(t, u) && (r[u] = ws(t[u], !0, n));
173
+ Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ls(t[u], !0, n));
174
174
  return r;
175
175
  };
176
- switch (Cr(t)) {
176
+ switch (Dr(t)) {
177
177
  case "Object":
178
178
  return s(Object.create(Object.getPrototypeOf(t)));
179
179
  case "Array":
@@ -181,7 +181,7 @@ function ws(t, e, n) {
181
181
  case "Date":
182
182
  return new Date(t.valueOf());
183
183
  case "RegExp":
184
- return Lr(t);
184
+ return Nr(t);
185
185
  case "Int8Array":
186
186
  case "Uint8Array":
187
187
  case "Uint8ClampedArray":
@@ -198,11 +198,11 @@ function ws(t, e, n) {
198
198
  return t;
199
199
  }
200
200
  }
201
- function wr(t) {
201
+ function Lr(t) {
202
202
  var e = typeof t;
203
203
  return t == null || e != "object" && e != "function";
204
204
  }
205
- var Mr = /* @__PURE__ */ function() {
205
+ var wr = /* @__PURE__ */ function() {
206
206
  function t() {
207
207
  this.map = {}, this.length = 0;
208
208
  }
@@ -232,19 +232,19 @@ var Mr = /* @__PURE__ */ function() {
232
232
  return i[1];
233
233
  }
234
234
  }, t;
235
- }(), T = /* @__PURE__ */ ve(function(e) {
236
- return e != null && typeof e.clone == "function" ? e.clone() : ws(e);
235
+ }(), I = /* @__PURE__ */ pe(function(e) {
236
+ return e != null && typeof e.clone == "function" ? e.clone() : Ls(e);
237
237
  });
238
- function $r(t, e) {
238
+ function Mr(t, e) {
239
239
  for (var n = e, s = 0; s < t.length; s += 1) {
240
240
  if (n == null)
241
241
  return;
242
242
  var i = t[s];
243
- _r(i) ? n = Nr(i, n) : n = n[i];
243
+ Cr(i) ? n = Pr(i, n) : n = n[i];
244
244
  }
245
245
  return n;
246
246
  }
247
- var Ur = /* @__PURE__ */ pn(function(e, n, s) {
247
+ var $r = /* @__PURE__ */ pn(function(e, n, s) {
248
248
  var i = {}, r;
249
249
  n = n || {}, s = s || {};
250
250
  for (r in n)
@@ -252,21 +252,21 @@ var Ur = /* @__PURE__ */ pn(function(e, n, s) {
252
252
  for (r in s)
253
253
  ht(r, s) && !ht(r, i) && (i[r] = s[r]);
254
254
  return i;
255
- }), Br = /* @__PURE__ */ pn(function t(e, n, s) {
256
- return Ur(function(i, r, a) {
255
+ }), Ur = /* @__PURE__ */ pn(function t(e, n, s) {
256
+ return $r(function(i, r, a) {
257
257
  return _n(r) && _n(a) ? t(e, r, a) : e(i, r, a);
258
258
  }, n, s);
259
- }), Vr = /* @__PURE__ */ pn(function(e, n, s) {
260
- return Br(function(i, r, a) {
259
+ }), Br = /* @__PURE__ */ pn(function(e, n, s) {
260
+ return Ur(function(i, r, a) {
261
261
  return e(r, a);
262
262
  }, n, s);
263
- }), Fr = /* @__PURE__ */ Ee($r), Ms = /* @__PURE__ */ Ee(function(e, n) {
263
+ }), Vr = /* @__PURE__ */ Ee(Mr), ws = /* @__PURE__ */ Ee(function(e, n) {
264
264
  var s = {};
265
265
  for (var i in n)
266
266
  e(n[i], i, n) && (s[i] = n[i]);
267
267
  return s;
268
268
  });
269
- 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) => {
269
+ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), U = (t) => typeof t == "string", ne = (t) => t === null, G = (t) => typeof t > "u", le = (t) => ne(t) || G(t), Fr = (t) => typeof t == "bigint", C = (t) => !G(t), qe = (t) => !le(t), xr = (t) => qe(t) && t !== "", vn = (t) => {
270
270
  switch (Object.prototype.toString.call(t)) {
271
271
  case "[object Error]":
272
272
  case "[object Exception]":
@@ -277,81 +277,81 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
277
277
  }
278
278
  }, tn = (t, e) => {
279
279
  const n = e.split(".");
280
- return Fr(n, t);
281
- }, 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) => {
280
+ return Vr(n, t);
281
+ }, Hr = (t, e) => !!tn(t, e), Gr = (t) => typeof t == "object", jr = (t) => !ne(t) && Gr(t) && !Array.isArray(t), w = (t) => !ne(t) && Object.prototype.toString.call(t) === "[object Object]", qr = (t, e) => {
282
282
  if (!Array.isArray(t) || !Array.isArray(e))
283
- return T(e);
284
- const n = T(t);
283
+ return I(e);
284
+ const n = I(t);
285
285
  return e.forEach((s, i) => {
286
- n[i] = Array.isArray(s) || qr(s) ? (
286
+ n[i] = Array.isArray(s) || jr(s) ? (
287
287
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
288
- H(n[i], s)
288
+ x(n[i], s)
289
289
  ) : s;
290
290
  }), n;
291
- }, H = (t, e) => Vr(zr, t, e), Ie = (t) => M(t) && Object.keys(t).length > 0, nt = (t) => {
292
- const e = Ms(C, t);
291
+ }, x = (t, e) => Br(qr, t, e), Te = (t) => w(t) && Object.keys(t).length > 0, tt = (t) => {
292
+ const e = ws(C, t);
293
293
  return Object.keys(e).forEach((n) => {
294
294
  const s = e[n];
295
- M(s) && (e[n] = nt(s));
295
+ w(s) && (e[n] = tt(s));
296
296
  }), e;
297
297
  }, _t = (t) => {
298
- const e = Ms(qe, t);
298
+ const e = ws(qe, t);
299
299
  return Object.keys(e).forEach((n) => {
300
300
  const s = e[n];
301
- M(s) && (e[n] = _t(s));
301
+ w(s) && (e[n] = _t(s));
302
302
  }), e;
303
- }, ge = (t) => {
304
- if (Ie(t))
303
+ }, he = (t) => {
304
+ if (Te(t))
305
305
  return _t(t);
306
- }, ue = (t, e) => typeof t == "boolean" ? t : e, Kr = (t) => t.replace(/^\s+|\s+$/gm, ""), Pn = (t) => t.replace(/^\.+/, ""), Pt = (t) => {
306
+ }, ue = (t, e) => typeof t == "boolean" ? t : e, zr = (t) => t.replace(/^\s+|\s+$/gm, ""), Pn = (t) => t.replace(/^\.+/, ""), Pt = (t) => {
307
307
  let e = t;
308
- if (!L(t) && !le(t))
308
+ if (!U(t) && !le(t))
309
309
  try {
310
310
  e = JSON.stringify(t);
311
311
  } catch {
312
312
  e = null;
313
313
  }
314
314
  return e;
315
- }, Yr = (t) => {
315
+ }, Kr = (t) => {
316
316
  const e = Array.from(t, (n) => String.fromCodePoint(n)).join("");
317
317
  return globalThis.btoa(e);
318
- }, Wr = (t) => Yr(new TextEncoder().encode(t)), Nt = (t, e, n, s, i) => {
318
+ }, Yr = (t) => Kr(new TextEncoder().encode(t)), Nt = (t, e, n, s, i) => {
319
319
  const r = { category: t, name: e, properties: n, options: s, callback: void 0 };
320
- 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;
321
- const a = L(r.name) ? r.name : r.properties.name, u = L(r.category) ? r.category : r.properties.category;
322
- return r.properties = H(M(r.properties) ? r.properties : {}, { ...a && { name: a }, ...u && { category: u } }), r;
320
+ 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), w(t) ? (r.name = void 0, r.category = void 0, r.properties = t, S(e) ? r.options = void 0 : r.options = e) : w(e) && (r.name = void 0, r.properties = e, S(n) ? r.options = void 0 : r.options = n), U(t) && !U(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 ? I(r.properties) : {}, C(r.options) ? r.options = I(r.options) : r.options = void 0;
321
+ const a = U(r.name) ? r.name : r.properties.name, u = U(r.category) ? r.category : r.properties.category;
322
+ return r.properties = x(w(r.properties) ? r.properties : {}, { ...a && { name: a }, ...u && { category: u } }), r;
323
323
  }, yn = (t, e, n, s) => {
324
324
  const i = { name: t, properties: e, options: n, callback: void 0 };
325
- 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;
326
- }, $s = (t, e, n, s) => {
325
+ 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) ? I(i.properties) : {}, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
326
+ }, Ms = (t, e, n, s) => {
327
327
  const i = { userId: t, traits: e, options: n, callback: void 0 };
328
- 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;
329
- }, Us = (t, e, n, s) => {
328
+ 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), (w(t) || ne(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = Pt(i.userId), w(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
329
+ }, $s = (t, e, n, s) => {
330
330
  const i = { to: t, from: e, options: n, callback: void 0 };
331
- 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;
332
- }, Bs = (t, e, n, s) => {
331
+ 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) : (w(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 = I(i.options) : i.options = void 0, i;
332
+ }, Us = (t, e, n, s) => {
333
333
  const i = { groupId: t, traits: e, options: n, callback: void 0 };
334
- 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;
334
+ 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), (w(t) || ne(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = Pt(i.groupId), w(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
335
335
  };
336
336
  let Ht = /* @__PURE__ */ function(t) {
337
337
  return t.UNLOADED = "Page Unloaded", t;
338
338
  }({});
339
- 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";
340
- function eo(t) {
339
+ const bn = "API", nn = "CapabilitiesManager", te = "ConfigManager", Bs = "EventManager", gt = "PluginsManager", De = "UserSessionManager", nt = "ErrorHandler", Be = "PluginEngine", Wr = "StoreManager", Gt = `Ready${bn}`, Qr = `Load${bn}`, Xr = "HttpClient", Jr = "RudderStackAnalytics", jt = "AnalyticsCore";
340
+ function Zr(t) {
341
341
  return crypto.getRandomValues(new Uint8Array(t));
342
342
  }
343
343
  var Nn = 4096, St = [], ke = 0, qt;
344
344
  for (; ke < 256; ke++)
345
345
  St[ke] = (ke + 256).toString(16).substring(1);
346
- function to() {
347
- (!qt || ke + 16 > Nn) && (qt = eo(Nn), ke = 0);
346
+ function eo() {
347
+ (!qt || ke + 16 > Nn) && (qt = Zr(Nn), ke = 0);
348
348
  for (var t = 0, e, n = ""; t < 16; t++)
349
349
  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 += "-");
350
350
  return ke += 16, n;
351
351
  }
352
352
  var Ne = 256, kt = [], mt;
353
353
  for (; Ne--; ) kt[Ne] = (Ne + 256).toString(16).substring(1);
354
- function no() {
354
+ function to() {
355
355
  var t = 0, e, n = "";
356
356
  if (!mt || Ne + 16 > 256) {
357
357
  for (mt = Array(t = 256); t--; ) mt[t] = 256 * Math.random() | 0;
@@ -361,7 +361,7 @@ function no() {
361
361
  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 += "-");
362
362
  return Ne++, n;
363
363
  }
364
- const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Ut = () => so() ? to() : no(), io = (t) => {
364
+ const no = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Bt = () => no() ? eo() : to(), so = (t) => {
365
365
  let e = !1, n = !1;
366
366
  function s() {
367
367
  e || (e = !0, t(n), setTimeout(() => {
@@ -379,7 +379,7 @@ const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
379
379
  }), document.addEventListener("visibilitychange", () => {
380
380
  n = !0, document.visibilityState === "hidden" ? s() : e = !1;
381
381
  });
382
- }, 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) => {
382
+ }, Vs = (t) => t.toISOString(), io = () => Vs(/* @__PURE__ */ new Date()), R = ":: ", ro = (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 (${U(n) ? n : n.type}) the script with the id "${t}" from URL "${e}"`, oo = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}"`, ao = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, lo = "Failed to convert the value to a JSON string.", uo = "Failed to encode the cookie data.", co = "JSONStringify", fo = "[BigInt]", Fs = "[Circular Reference]", ho = (t, e, n) => {
383
383
  const s = [];
384
384
  return function(i, r) {
385
385
  if (!(e != null && e.includes(i)) && !(t && le(r))) {
@@ -387,35 +387,35 @@ const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
387
387
  return r;
388
388
  for (; s.length > 0 && s[s.length - 1] !== this; )
389
389
  s.pop();
390
- return s.includes(r) ? (n == null || n.warn(lo(fo, i)), xs) : (s.push(r), r);
390
+ return s.includes(r) ? (n == null || n.warn(ao(co, i)), Fs) : (s.push(r), r);
391
391
  }
392
392
  };
393
393
  }, de = (t, e, n, s) => {
394
394
  try {
395
- return JSON.stringify(t, go(e, n, s));
395
+ return JSON.stringify(t, ho(e, n, s));
396
396
  } catch (i) {
397
- return s == null || s.warn(uo, i), null;
397
+ return s == null || s.warn(lo, i), null;
398
398
  }
399
- }, mo = (t) => {
399
+ }, go = (t) => {
400
400
  const e = [];
401
401
  return function(s, i) {
402
- if (xr(i))
403
- return ho;
402
+ if (Fr(i))
403
+ return fo;
404
404
  for (; e.length > 0 && e[e.length - 1] !== this; )
405
405
  e.pop();
406
- return e.includes(i) ? xs : (e.push(i), i);
406
+ return e.includes(i) ? Fs : (e.push(i), i);
407
407
  };
408
- }, Hs = (t, e) => {
408
+ }, xs = (t, e) => {
409
409
  const n = Array.isArray(t) ? [] : {};
410
410
  for (const s in t)
411
411
  if (Object.hasOwnProperty.call(t, s)) {
412
412
  const i = t[s], r = e.call(t, s, i);
413
- M(r) || Array.isArray(r) ? n[s] = Hs(r, e) : n[s] = r;
413
+ w(r) || Array.isArray(r) ? n[s] = xs(r, e) : n[s] = r;
414
414
  }
415
415
  return n;
416
- }, O = (t, e) => {
417
- const n = mo(), s = n.call(t, "", t);
418
- return M(t) || Array.isArray(t) ? Hs(t, n) : s;
416
+ }, A = (t, e) => {
417
+ const n = go(), s = n.call(t, "", t);
418
+ return w(t) || Array.isArray(t) ? xs(t, n) : s;
419
419
  }, Rt = "[SDK DISPATCHED ERROR]", En = (t) => {
420
420
  const { stack: e, stacktrace: n } = t, s = t["opera#sourceloc"], i = e ?? n ?? s;
421
421
  if (i && typeof i == "string")
@@ -446,12 +446,12 @@ ${Rt}`;
446
446
  }
447
447
  }
448
448
  globalThis.dispatchEvent(new ErrorEvent("error", { error: t, bubbles: !0, cancelable: !0, composed: !0 }));
449
- }, 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") => {
449
+ }, wn = "RudderLabs JavaScript SDK", lt = "3.20.1", mo = "com.rudderlabs.javascript", Hs = "npm", Mn = "RudderJS-Initiated", po = "ad-block page request", vo = "/ad-blocked", rt = "preloadedEventsBuffer", yo = "Consent Management Interaction", bo = "ajs_trait_", Eo = "ajs_prop_", $n = "ajs_aid", Un = "ajs_uid", Bn = "ajs_event", So = 10 * 1e3, ko = 31536e3 * 1e3, Vn = 12 * 60 * 60 * 1e3, sn = 30 * 60 * 1e3, Fn = 10 * 1e3, Ro = 10 * 1e3, To = 250, Gs = (t = "app") => {
450
450
  globalThis.RudderStackGlobals || (globalThis.RudderStackGlobals = {}), globalThis.RudderStackGlobals[t] || (globalThis.RudderStackGlobals[t] = {});
451
- }, ct = (t, e, n = "app") => {
452
- js(n), globalThis.RudderStackGlobals[n][t] = e;
453
- }, qs = (t, e = "app") => (js(e), globalThis.RudderStackGlobals[e][t]);
454
- function Ao(t, e, n = To) {
451
+ }, ut = (t, e, n = "app") => {
452
+ Gs(n), globalThis.RudderStackGlobals[n][t] = e;
453
+ }, js = (t, e = "app") => (Gs(e), globalThis.RudderStackGlobals[e][t]);
454
+ function Io(t, e, n = To) {
455
455
  let s;
456
456
  return (...i) => {
457
457
  globalThis.clearTimeout(s), s = globalThis.setTimeout(() => {
@@ -468,26 +468,26 @@ const xn = (t, e) => {
468
468
  }
469
469
  }), n;
470
470
  }, Oo = (t = []) => {
471
- const e = { trait: Eo, properties: So }, n = new URLSearchParams(globalThis.location.search);
471
+ const e = { trait: bo, properties: Eo }, n = new URLSearchParams(globalThis.location.search);
472
472
  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)]);
473
- }, Do = (t) => {
473
+ }, Ao = (t) => {
474
474
  const e = "load";
475
475
  let n = [], s = 0;
476
476
  for (; s < t.length; ) {
477
477
  if (t[s] && t[s][0] === e) {
478
- n = T(t[s]), t.splice(s, 1);
478
+ n = I(t[s]), t.splice(s, 1);
479
479
  break;
480
480
  }
481
481
  s += 1;
482
482
  }
483
483
  return n;
484
- }, Co = (t) => {
484
+ }, Do = (t) => {
485
485
  const e = "consent", n = t.filter((i) => i[0] === e), s = t.filter((i) => i[0] !== e);
486
486
  t.splice(0, t.length, ...n, ...s);
487
- }, _o = (t) => {
488
- const e = qs(ot) || [];
489
- Oo(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), ct(ot, []));
490
- }, Po = (t, e) => {
487
+ }, Co = (t) => {
488
+ const e = js(rt) || [];
489
+ Oo(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), ut(rt, []));
490
+ }, _o = (t, e) => {
491
491
  const n = t.shift();
492
492
  let s;
493
493
  if (S(e[n])) {
@@ -499,13 +499,13 @@ const xn = (t, e) => {
499
499
  s = yn(...t);
500
500
  break;
501
501
  case "identify":
502
- s = $s(...t);
502
+ s = Ms(...t);
503
503
  break;
504
504
  case "alias":
505
- s = Us(...t);
505
+ s = $s(...t);
506
506
  break;
507
507
  case "group":
508
- s = Bs(...t);
508
+ s = Us(...t);
509
509
  break;
510
510
  default:
511
511
  e[n](...t);
@@ -513,12 +513,12 @@ const xn = (t, e) => {
513
513
  }
514
514
  s && e[n](s);
515
515
  }
516
- }, No = 10 * 1e3, Lo = "RS_JS_SDK", wo = (t, e, n = !0, s = null, i = null, r = {}) => {
516
+ }, Po = 10 * 1e3, No = "RS_JS_SDK", Lo = (t, e, n = !0, s = null, i = null, r = {}) => {
517
517
  const a = document.createElement("script");
518
518
  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) => {
519
519
  a.setAttribute(u, r[u]);
520
- }), a.setAttribute("data-loader", Lo), a;
521
- }, Mo = (t) => {
520
+ }), a.setAttribute("data-loader", No), a;
521
+ }, wo = (t) => {
522
522
  var r, a, u, l;
523
523
  const e = document.getElementsByTagName("head");
524
524
  if (e.length > 0) {
@@ -534,23 +534,23 @@ const xn = (t, e) => {
534
534
  s.appendChild(t);
535
535
  const i = document.getElementsByTagName("html")[0];
536
536
  i == null || i.insertBefore(s, i.firstChild);
537
- }, $o = (t, e, n, s = !0, i) => new Promise((r, a) => {
538
- document.getElementById(e) && a(new Error(oo(e)));
537
+ }, Mo = (t, e, n, s = !0, i) => new Promise((r, a) => {
538
+ document.getElementById(e) && a(new Error(ro(e)));
539
539
  try {
540
540
  let l;
541
- Mo(wo(t, e, s, () => {
541
+ wo(Lo(t, e, s, () => {
542
542
  globalThis.clearTimeout(l), r(e);
543
543
  }, (h) => {
544
544
  globalThis.clearTimeout(l), a(new Error(Ln(e, t, h)));
545
545
  }, i)), l = globalThis.setTimeout(() => {
546
- a(new Error(ao(e, t, n)));
546
+ a(new Error(oo(e, t, n)));
547
547
  }, n);
548
548
  } catch (l) {
549
549
  a(Sn(l, Ln(e, t, "unknown")));
550
550
  }
551
551
  });
552
- class zs {
553
- constructor(e, n = No) {
552
+ class qs {
553
+ constructor(e, n = Po) {
554
554
  this.logger = e, this.timeout = n;
555
555
  }
556
556
  /**
@@ -558,23 +558,23 @@ class zs {
558
558
  */
559
559
  loadJSFile(e) {
560
560
  const { url: n, id: s, timeout: i, async: r, callback: a, extraAttributes: u } = e, l = !S(a);
561
- $o(n, s, i || this.timeout, r, u).then((c) => {
561
+ Mo(n, s, i || this.timeout, r, u).then((c) => {
562
562
  l || a(c);
563
563
  }).catch((c) => {
564
564
  l || a(s, c);
565
565
  });
566
566
  }
567
567
  }
568
- var Uo = Symbol.for("preact-signals");
569
- function Bt() {
568
+ var $o = Symbol.for("preact-signals");
569
+ function Vt() {
570
570
  if (Re > 1)
571
571
  Re--;
572
572
  else {
573
- for (var t, e = !1; at !== void 0; ) {
574
- var n = at;
575
- for (at = void 0, rn++; n !== void 0; ) {
573
+ for (var t, e = !1; ot !== void 0; ) {
574
+ var n = ot;
575
+ for (ot = void 0, rn++; n !== void 0; ) {
576
576
  var s = n.o;
577
- if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ws(n)) try {
577
+ if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ys(n)) try {
578
578
  n.c();
579
579
  } catch (i) {
580
580
  e || (t = i, e = !0);
@@ -591,11 +591,11 @@ function j(t) {
591
591
  try {
592
592
  return t();
593
593
  } finally {
594
- Bt();
594
+ Vt();
595
595
  }
596
596
  }
597
597
  var D = void 0;
598
- function Ks(t) {
598
+ function zs(t) {
599
599
  var e = D;
600
600
  D = void 0;
601
601
  try {
@@ -604,8 +604,8 @@ function Ks(t) {
604
604
  D = e;
605
605
  }
606
606
  }
607
- var at = void 0, Re = 0, rn = 0, Lt = 0;
608
- function Ys(t) {
607
+ var ot = void 0, Re = 0, rn = 0, Lt = 0;
608
+ function Ks(t) {
609
609
  if (D !== void 0) {
610
610
  var e = t.n;
611
611
  if (e === void 0 || e.t !== D)
@@ -617,13 +617,13 @@ function Ys(t) {
617
617
  function q(t, e) {
618
618
  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;
619
619
  }
620
- q.prototype.brand = Uo;
620
+ q.prototype.brand = $o;
621
621
  q.prototype.h = function() {
622
622
  return !0;
623
623
  };
624
624
  q.prototype.S = function(t) {
625
625
  var e = this, n = this.t;
626
- n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t : Ks(function() {
626
+ n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t : zs(function() {
627
627
  var s;
628
628
  (s = e.W) == null || s.call(e);
629
629
  }));
@@ -632,7 +632,7 @@ q.prototype.U = function(t) {
632
632
  var e = this;
633
633
  if (this.t !== void 0) {
634
634
  var n = t.e, s = t.x;
635
- 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() {
635
+ 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() {
636
636
  var i;
637
637
  (i = e.Z) == null || i.call(e);
638
638
  }));
@@ -640,7 +640,7 @@ q.prototype.U = function(t) {
640
640
  };
641
641
  q.prototype.subscribe = function(t) {
642
642
  var e = this;
643
- return fe(function() {
643
+ return ve(function() {
644
644
  var n = e.value, s = D;
645
645
  D = void 0;
646
646
  try {
@@ -669,7 +669,7 @@ q.prototype.peek = function() {
669
669
  }
670
670
  };
671
671
  Object.defineProperty(q.prototype, "value", { get: function() {
672
- var t = Ys(this);
672
+ var t = Ks(this);
673
673
  return t !== void 0 && (t.i = this.i), this.v;
674
674
  }, set: function(t) {
675
675
  if (t !== this.v) {
@@ -678,18 +678,18 @@ Object.defineProperty(q.prototype, "value", { get: function() {
678
678
  try {
679
679
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
680
680
  } finally {
681
- Bt();
681
+ Vt();
682
682
  }
683
683
  }
684
684
  } });
685
685
  function p(t, e) {
686
686
  return new q(t, e);
687
687
  }
688
- function Ws(t) {
688
+ function Ys(t) {
689
689
  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;
690
690
  return !1;
691
691
  }
692
- function Qs(t) {
692
+ function Ws(t) {
693
693
  for (var e = t.s; e !== void 0; e = e.n) {
694
694
  var n = e.S.n;
695
695
  if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -698,7 +698,7 @@ function Qs(t) {
698
698
  }
699
699
  }
700
700
  }
701
- function Xs(t) {
701
+ function Qs(t) {
702
702
  for (var e = t.s, n = void 0; e !== void 0; ) {
703
703
  var s = e.p;
704
704
  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;
@@ -712,17 +712,17 @@ We.prototype = new q();
712
712
  We.prototype.h = function() {
713
713
  if (this.f &= -3, 1 & this.f) return !1;
714
714
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === Lt)) return !0;
715
- if (this.g = Lt, this.f |= 1, this.i > 0 && !Ws(this))
715
+ if (this.g = Lt, this.f |= 1, this.i > 0 && !Ys(this))
716
716
  return this.f &= -2, !0;
717
717
  var t = D;
718
718
  try {
719
- Qs(this), D = this;
719
+ Ws(this), D = this;
720
720
  var e = this.x();
721
721
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
722
722
  } catch (n) {
723
723
  this.v = n, this.f |= 16, this.i++;
724
724
  }
725
- return D = t, Xs(this), this.f &= -2, !0;
725
+ return D = t, Qs(this), this.f &= -2, !0;
726
726
  };
727
727
  We.prototype.S = function(t) {
728
728
  if (this.t === void 0) {
@@ -745,11 +745,11 @@ We.prototype.N = function() {
745
745
  };
746
746
  Object.defineProperty(We.prototype, "value", { get: function() {
747
747
  if (1 & this.f) throw new Error("Cycle detected");
748
- var t = Ys(this);
748
+ var t = Ks(this);
749
749
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
750
750
  return this.v;
751
751
  } });
752
- function Js(t) {
752
+ function Xs(t) {
753
753
  var e = t.u;
754
754
  if (t.u = void 0, typeof e == "function") {
755
755
  Re++;
@@ -760,22 +760,22 @@ function Js(t) {
760
760
  } catch (s) {
761
761
  throw t.f &= -2, t.f |= 8, kn(t), s;
762
762
  } finally {
763
- D = n, Bt();
763
+ D = n, Vt();
764
764
  }
765
765
  }
766
766
  }
767
767
  function kn(t) {
768
768
  for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
769
- t.x = void 0, t.s = void 0, Js(t);
769
+ t.x = void 0, t.s = void 0, Xs(t);
770
770
  }
771
- function Bo(t) {
771
+ function Uo(t) {
772
772
  if (D !== this) throw new Error("Out-of-order effect");
773
- Xs(this), D = t, this.f &= -2, 8 & this.f && kn(this), Bt();
773
+ Qs(this), D = t, this.f &= -2, 8 & this.f && kn(this), Vt();
774
774
  }
775
- function Qe(t) {
775
+ function ft(t) {
776
776
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
777
777
  }
778
- Qe.prototype.c = function() {
778
+ ft.prototype.c = function() {
779
779
  var t = this.S();
780
780
  try {
781
781
  if (8 & this.f || this.x === void 0) return;
@@ -785,23 +785,20 @@ Qe.prototype.c = function() {
785
785
  t();
786
786
  }
787
787
  };
788
- Qe.prototype.S = function() {
788
+ ft.prototype.S = function() {
789
789
  if (1 & this.f) throw new Error("Cycle detected");
790
- this.f |= 1, this.f &= -9, Js(this), Qs(this), Re++;
790
+ this.f |= 1, this.f &= -9, Xs(this), Ws(this), Re++;
791
791
  var t = D;
792
- return D = this, Bo.bind(this, t);
792
+ return D = this, Uo.bind(this, t);
793
793
  };
794
- Qe.prototype.N = function() {
795
- 2 & this.f || (this.f |= 2, this.o = at, at = this);
794
+ ft.prototype.N = function() {
795
+ 2 & this.f || (this.f |= 2, this.o = ot, ot = this);
796
796
  };
797
- Qe.prototype.d = function() {
797
+ ft.prototype.d = function() {
798
798
  this.f |= 8, 1 & this.f || kn(this);
799
799
  };
800
- Qe.prototype.dispose = function() {
801
- this.d();
802
- };
803
- function fe(t) {
804
- var e = new Qe(t);
800
+ function ve(t) {
801
+ var e = new ft(t);
805
802
  try {
806
803
  e.c();
807
804
  } catch (n) {
@@ -809,7 +806,7 @@ function fe(t) {
809
806
  }
810
807
  return e.d.bind(e);
811
808
  }
812
- class Vo {
809
+ class Bo {
813
810
  constructor() {
814
811
  this.items = [];
815
812
  }
@@ -829,8 +826,8 @@ class Vo {
829
826
  this.items = [];
830
827
  }
831
828
  }
832
- 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;";
833
- class Go {
829
+ const pt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Hn = "LOG", Js = "ERROR", Vo = "RS SDK", Fo = "font-weight: bold; background: black; color: white;", xo = "font-weight: normal;";
830
+ class Ho {
834
831
  constructor(e = Hn, n = "", s = console) {
835
832
  this.minLogLevel = pt[e], this.scope = n, this.logProvider = s;
836
833
  }
@@ -859,50 +856,50 @@ class Go {
859
856
  // TODO: should we allow to change the level via global variable on run time
860
857
  // to assist on the fly debugging?
861
858
  setMinLogLevel(e) {
862
- this.minLogLevel = pt[e], x(this.minLogLevel) && (this.minLogLevel = pt[Hn]);
859
+ this.minLogLevel = pt[e], G(this.minLogLevel) && (this.minLogLevel = pt[Hn]);
863
860
  }
864
861
  /**
865
862
  * Formats the console message using `scope` and styles
866
863
  */
867
864
  formatLogData(e) {
868
865
  if (Array.isArray(e) && e.length > 0) {
869
- let n = `%c ${Fo}`;
866
+ let n = `%c ${Vo}`;
870
867
  this.scope && (n = `${n} - ${this.scope}`);
871
- const s = L(e[0]) ? e[0].trim() : "";
868
+ const s = U(e[0]) ? e[0].trim() : "";
872
869
  n = `${n} %c ${s}`;
873
870
  const i = [
874
871
  n,
875
- xo,
872
+ Fo,
876
873
  // add style for the prefix
877
- Ho
874
+ xo
878
875
  // reset the style for the actual message
879
876
  ];
880
- return L(e[0]) || i.push(e[0]), i.push(...e.slice(1)), i;
877
+ return U(e[0]) || i.push(e[0]), i.push(...e.slice(1)), i;
881
878
  }
882
879
  return e;
883
880
  }
884
881
  }
885
- const ye = new Go();
886
- let me = /* @__PURE__ */ function(t) {
882
+ const ye = new Ho();
883
+ let ge = /* @__PURE__ */ function(t) {
887
884
  return t.HANDLEDEXCEPTION = "handledException", t.UNHANDLEDEXCEPTION = "unhandledException", t.UNHANDLEDREJECTION = "unhandledPromiseRejection", t;
888
885
  }({});
889
- 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) => {
886
+ const Zs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], on = "cookieStorage", Gn = "Unable to process/parse source configuration response", Go = "The source is disabled. Please enable the source in the dashboard to send events.", jo = "Failed to prepare data for the request.", qo = "Failed to invoke plugin because the extension point name is missing.", zo = "Failed to invoke plugin because the extension point name is invalid.", Ko = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, Yo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, Wo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Qo = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, jn = "Failed to log breadcrumb", Xo = (t) => `${t}${R}Failed to handle the error.`, Jo = (t) => `${t}${R}Plugin name is missing.`, Zo = (t, e) => `${t}${R}Plugin "${e}" already exists.`, ea = (t, e) => `${t}${R}Plugin "${e}" not found.`, ta = (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.`, na = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, sa = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, ia = (t, e) => `${t}${R}The "${e}" storage type is `, qn = "Failed to fetch the source config", ra = (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.`, oa = (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.`, aa = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, la = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, ua = (t, e) => `${t} for URL: ${e}`, ca = (t) => `Failed to save the value for "${t}" to storage`, da = (t) => `Failed to retrieve or parse data for "${t}" from storage`, fa = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, ha = (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.", ga = (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.`, ma = (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.`, pa = (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.`, va = (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.`, ya = (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}).`, ba = (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.`, Ea = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, Sa = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, ka = (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.`, Ra = (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.`, Ia = (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.`, Aa = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Da = (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.`, Ca = (t) => `${t}${R}The callback threw an exception`, _a = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, Pa = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, Na = (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.`, La = (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.`, wa = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, Ma = (t, e, n, s) => {
890
887
  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.`;
891
888
  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.`;
892
- }, 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 = {
889
+ }, $a = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Ua = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Ba = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, ti = { All: !0 }, Rn = "js-integrations", ni = "plugins", Va = 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", wt = "https://cdn.rudderlabs.com", Tn = "v3", si = `${wt}/${Tn}/${ct}/${Rn}`, ii = `${wt}/${Tn}/${ct}/${ni}`, ri = "https://api.rudderstack.com", Ce = "v3", Fa = "xhr", an = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, Tt = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, xa = { [Fa]: "XhrQueue", beacon: "BeaconQueue" }, Ha = "rsaRequest", Ga = "rsaMetrics", ja = { configUrl: ri, loadIntegration: !0, sessions: { autoTrack: !0, timeout: sn, 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: Ro, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, qa = p(I(ja)), O = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, za = 10, Ka = { userId: p(O.userId), userTraits: p(O.userTraits), anonymousId: p(O.anonymousId), groupId: p(O.groupId), groupTraits: p(O.groupTraits), initialReferrer: p(O.initialReferrer), initialReferringDomain: p(O.initialReferringDomain), sessionInfo: p(O.sessionInfo), authToken: p(O.authToken) }, Ya = { 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), isAdBlocked: p(!1) }, Wa = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Qa = p(void 0), Xa = { 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) }, Ja = { 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) }, Za = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, el = { app: p({ name: wn, namespace: mo, version: lt, installType: Hs }), traits: p(null), library: p({ name: wn, 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) }, tl = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, nl = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, sl = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, il = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, rl = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, ol = {
893
890
  eventsQueuePluginName: p(void 0),
894
891
  deliveryEnabled: p(!0)
895
892
  // Delivery should always happen
896
- }, 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) };
897
- function ai(t) {
893
+ }, al = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, ll = { capabilities: Ya, consents: Ja, context: el, eventBuffer: nl, lifecycle: Xa, loadOptions: qa, metrics: Za, nativeDestinations: tl, plugins: sl, reporting: Wa, session: Ka, source: Qa, storage: il, serverCookies: rl, dataPlaneEvents: ol, autoTrack: al }, o = { ...I(ll) };
894
+ function oi(t) {
898
895
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
899
896
  }
900
- var Tt = { exports: {} }, At = { exports: {} }, cl = At.exports, Kn;
901
- function dl() {
897
+ var It = { exports: {} }, Ot = { exports: {} }, ul = Ot.exports, Kn;
898
+ function cl() {
902
899
  return Kn || (Kn = 1, function(t, e) {
903
900
  (function(n, s) {
904
901
  t.exports = s();
905
- })(cl, function() {
902
+ })(ul, function() {
906
903
  function n(m) {
907
904
  return !isNaN(parseFloat(m)) && isFinite(m);
908
905
  }
@@ -939,10 +936,10 @@ function dl() {
939
936
  var m = this.getFileName() || "", v = this.getLineNumber() || "", k = this.getColumnNumber() || "", E = this.getFunctionName() || "";
940
937
  return this.getIsEval() ? m ? "[eval] (" + m + ":" + v + ":" + k + ")" : "[eval]:" + v + ":" + k : E ? E + " (" + m + ":" + v + ":" + k + ")" : m + ":" + v + ":" + k;
941
938
  } }, h.fromString = function(v) {
942
- var k = v.indexOf("("), E = v.lastIndexOf(")"), P = v.substring(0, k), z = v.substring(k + 1, E).split(","), G = v.substring(E + 1);
943
- if (G.indexOf("@") === 0)
944
- var J = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(G, ""), he = J[1], Ae = J[2], I = J[3];
945
- return new h({ functionName: P, args: z || void 0, fileName: he, lineNumber: Ae || void 0, columnNumber: I || void 0 });
939
+ var k = v.indexOf("("), E = v.lastIndexOf(")"), P = v.substring(0, k), z = v.substring(k + 1, E).split(","), H = v.substring(E + 1);
940
+ if (H.indexOf("@") === 0)
941
+ var J = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(H, ""), fe = J[1], Oe = J[2], T = J[3];
942
+ return new h({ functionName: P, args: z || void 0, fileName: fe, lineNumber: Oe || void 0, columnNumber: T || void 0 });
946
943
  };
947
944
  for (var y = 0; y < r.length; y++)
948
945
  h.prototype["get" + s(r[y])] = i(r[y]), h.prototype["set" + s(r[y])] = /* @__PURE__ */ function(m) {
@@ -966,14 +963,14 @@ function dl() {
966
963
  }(u[f]);
967
964
  return h;
968
965
  });
969
- }(At)), At.exports;
966
+ }(Ot)), Ot.exports;
970
967
  }
971
- var fl = Tt.exports, Yn;
972
- function hl() {
968
+ var dl = It.exports, Yn;
969
+ function fl() {
973
970
  return Yn || (Yn = 1, function(t, e) {
974
971
  (function(n, s) {
975
- t.exports = s(dl());
976
- })(fl, function(s) {
972
+ t.exports = s(cl());
973
+ })(dl, function(s) {
977
974
  var i = /(^|@)\S+:\d+/, r = /^\s*at .*(\S+:\d+|\(native\))/m, a = /^(eval@)?(\[native code])?$/;
978
975
  return {
979
976
  /**
@@ -1060,16 +1057,16 @@ function hl() {
1060
1057
  }
1061
1058
  };
1062
1059
  });
1063
- }(Tt)), Tt.exports;
1060
+ }(It)), It.exports;
1064
1061
  }
1065
- var gl = hl();
1066
- const ml = /* @__PURE__ */ ai(gl), li = "global code", pl = (t) => C(t) && /^global code$/i.test(t) ? li : t, vl = (t) => {
1067
- const e = { file: t.fileName, method: pl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1068
- return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = li), e;
1069
- }, Wn = (t) => L(t) ? t : "";
1062
+ var hl = fl();
1063
+ const gl = /* @__PURE__ */ oi(hl), ai = "global code", ml = (t) => C(t) && /^global code$/i.test(t) ? ai : t, pl = (t) => {
1064
+ const e = { file: t.fileName, method: ml(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1065
+ return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = ai), e;
1066
+ }, Wn = (t) => U(t) ? t : "";
1070
1067
  function Qn(t, e, n, s) {
1071
1068
  return { errorClass: Wn(t), message: `${n}${Wn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
1072
- const a = vl(r);
1069
+ const a = pl(r);
1073
1070
  try {
1074
1071
  return JSON.stringify(a) === "{}" ? i : i.concat(a);
1075
1072
  } catch {
@@ -1077,12 +1074,12 @@ function Qn(t, e, n, s) {
1077
1074
  }
1078
1075
  }, []) };
1079
1076
  }
1080
- const ui = (t, e) => {
1077
+ const li = (t, e) => {
1081
1078
  let n;
1082
- return vn(t) && L(En(t)) ? n = t : (e.warn(Xo(st, de(t))), n = void 0), n;
1083
- }, yl = (t, e) => {
1079
+ return vn(t) && U(En(t)) ? n = t : (e.warn(Qo(nt, de(t))), n = void 0), n;
1080
+ }, vl = (t, e) => {
1084
1081
  try {
1085
- const n = ml.parse(t);
1082
+ const n = gl.parse(t);
1086
1083
  return Qn(t.name, t.message, e, n);
1087
1084
  } catch {
1088
1085
  return Qn(t.name, t.message, e, []);
@@ -1094,21 +1091,21 @@ const ui = (t, e) => {
1094
1091
  const s = Sn(n, "Failed to parse response data");
1095
1092
  e(s);
1096
1093
  }
1097
- }, 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) => {
1098
- const s = H(Rl, e || {});
1099
- return n && (s.headers = H(s.headers, { Authorization: n })), s.url = t, s;
1100
- }, Zn = (t, e = ko, n) => new Promise((s, i) => {
1094
+ }, At = "The request failed", yl = [/Failed to fetch dynamically imported module: .*/], bl = [/Failed to load the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], El = [new RegExp(`${At}.*`), /A script with the id .* is already loaded\./], Sl = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Jn = (t, e, n) => {
1095
+ const s = x(Sl, e || {});
1096
+ return n && (s.headers = x(s.headers, { Authorization: n })), s.url = t, s;
1097
+ }, Zn = (t, e = So, n) => new Promise((s, i) => {
1101
1098
  let r;
1102
1099
  if (t.sendRawData === !0)
1103
1100
  r = t.data;
1104
1101
  else if (r = de(t.data, !1, [], n), ne(r)) {
1105
- i({ error: new Error(qo), undefined: void 0, options: t });
1102
+ i({ error: new Error(jo), undefined: void 0, options: t });
1106
1103
  return;
1107
1104
  }
1108
1105
  const a = new XMLHttpRequest(), u = (c) => {
1109
- i({ error: new Error(la(Ot, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1106
+ i({ error: new Error(aa(At, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1110
1107
  }, l = (c) => {
1111
- i({ error: new Error(ua(Ot, c, t.url)), xhr: a, options: t, ...(c == null ? void 0 : c.type) === "timeout" ? { timedOut: !0 } : {} });
1108
+ i({ error: new Error(la(At, c, t.url)), xhr: a, options: t, ...(c == null ? void 0 : c.type) === "timeout" ? { timedOut: !0 } : {} });
1112
1109
  };
1113
1110
  a.ontimeout = l, a.onerror = l, a.onload = () => {
1114
1111
  a.status >= 200 && a.status < 400 ? s({ response: a.responseText, xhr: a, options: t }) : u();
@@ -1118,10 +1115,10 @@ const ui = (t, e) => {
1118
1115
  try {
1119
1116
  a.send(r);
1120
1117
  } catch (c) {
1121
- i({ error: Sn(c, ca(Ot, t.url)), xhr: a, options: t });
1118
+ i({ error: Sn(c, ua(At, t.url)), xhr: a, options: t });
1122
1119
  }
1123
1120
  });
1124
- class Il {
1121
+ class kl {
1125
1122
  constructor(e) {
1126
1123
  this.logger = e, this.onError = this.onError.bind(this);
1127
1124
  }
@@ -1156,13 +1153,13 @@ class Il {
1156
1153
  */
1157
1154
  onError(e, n) {
1158
1155
  var s;
1159
- (s = this.errorHandler) == null || s.onError({ error: e, context: Jr, groupingHash: n });
1156
+ (s = this.errorHandler) == null || s.onError({ error: e, context: Xr, groupingHash: n });
1160
1157
  }
1161
1158
  /**
1162
1159
  * Set basic authentication header (eg writekey)
1163
1160
  */
1164
1161
  setAuthHeader(e, n = !1) {
1165
- const s = n ? e : Wr(`${e}:`);
1162
+ const s = n ? e : Yr(`${e}:`);
1166
1163
  this.basicAuthHeader = `Basic ${s}`;
1167
1164
  }
1168
1165
  /**
@@ -1172,10 +1169,10 @@ class Il {
1172
1169
  this.basicAuthHeader = void 0;
1173
1170
  }
1174
1171
  }
1175
- const ci = new Il(ye), Tl = "1", Al = () => [
1172
+ const ui = new kl(ye), Rl = "1", Tl = () => [
1176
1173
  "rsa"
1177
1174
  // Prefix for all the SDK scripts including plugins and module federated chunks
1178
- ], Ol = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Dl = [
1175
+ ], Il = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Ol = [
1179
1176
  "userId",
1180
1177
  "userTraits",
1181
1178
  "groupId",
@@ -1188,94 +1185,64 @@ const ci = new Il(ye), Tl = "1", Al = () => [
1188
1185
  // pre-load event buffer (may contain PII)
1189
1186
  "traits",
1190
1187
  "authToken"
1191
- ], Cl = "RudderStack JavaScript SDK", _l = "__REPOSITORY_URL__", Pl = "js", di = (t) => {
1192
- o.capabilities.isAdBlockerDetectionInProgress.value = !0;
1193
- try {
1194
- const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
1195
- t.getAsyncData({ url: n, options: {
1196
- // We actually don't need the response from the request, so we are using HEAD
1197
- method: "HEAD",
1198
- headers: { "Content-Type": void 0 }
1199
- }, isRawResponse: !0, callback: (s, i) => {
1200
- var r;
1201
- o.capabilities.isAdBlockerDetectionInProgress.value = !1, o.capabilities.isAdBlocked.value = (i == null ? void 0 : i.error) !== void 0 || ((r = i == null ? void 0 : i.xhr) == null ? void 0 : r.responseURL) !== n;
1202
- } });
1203
- } catch (e) {
1204
- throw o.capabilities.isAdBlockerDetectionInProgress.value = !1, e;
1205
- }
1206
- }, Nl = (t, e) => {
1188
+ ], Al = "RudderStack JavaScript SDK", Dl = "__REPOSITORY_URL__", Cl = "js", _l = (t, e) => {
1207
1189
  switch (e) {
1208
- case me.UNHANDLEDEXCEPTION: {
1190
+ case ge.UNHANDLEDEXCEPTION: {
1209
1191
  const { error: n } = t;
1210
1192
  return n || t;
1211
1193
  }
1212
- case me.UNHANDLEDREJECTION:
1194
+ case ge.UNHANDLEDREJECTION:
1213
1195
  return t.reason;
1214
- case me.HANDLEDEXCEPTION:
1196
+ case ge.HANDLEDEXCEPTION:
1215
1197
  default:
1216
1198
  return t;
1217
1199
  }
1218
- }, Ll = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), wl = () => {
1200
+ }, Pl = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), Nl = () => {
1219
1201
  const t = globalThis.location.hostname;
1220
- return !t || t && Ol.includes(t) ? "development" : "production";
1221
- }, Ml = (t) => {
1222
- const e = de(t, !1, Dl);
1202
+ return !t || t && Il.includes(t) ? "development" : "production";
1203
+ }, Ll = (t) => {
1204
+ const e = de(t, !1, Ol);
1223
1205
  return e !== null ? JSON.parse(e) : {};
1224
- }, $l = () => globalThis.location.href.split("?")[0], Ul = (t, e, n, s) => {
1206
+ }, wl = () => globalThis.location.href.split("?")[0], Ml = (t, e, n, s) => {
1225
1207
  var i, r;
1226
1208
  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" };
1227
- }, Bl = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Vl = (t, e, n, s) => {
1209
+ }, $l = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Ul = (t, e, n, s) => {
1228
1210
  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;
1229
- 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: {
1211
+ return { payloadVersion: "5", notifier: { name: Al, version: d.value.version, url: Dl }, events: [{ exceptions: [I(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: Nl(), type: d.value.installType }, device: $l(h, y), request: { url: wl(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: I(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
1230
1212
  app: { snippetVersion: m.value.snippetVersion },
1231
1213
  device: { ...f.value, timezone: g.value },
1232
1214
  // Add rest of the state groups as metadata
1233
1215
  // so that they show up as separate tabs in the dashboard
1234
- ...Ml(n)
1235
- }, user: Ul(u, a, r, c) }] };
1236
- }, Fl = (t, e, n) => {
1237
- if (x(t.capabilities.isAdBlocked.value)) {
1238
- t.capabilities.isAdBlockerDetectionInProgress.value === !1 && di(e);
1239
- const s = fe(() => {
1240
- C(t.capabilities.isAdBlocked.value) && (n(t.capabilities.isAdBlocked.value === !1), s());
1241
- });
1242
- } else
1243
- n(t.capabilities.isAdBlocked.value === !1);
1244
- }, xl = (t, e, n) => {
1245
- const s = t.message;
1246
- return new Promise((i) => {
1247
- var r;
1248
- if (kl.some((a) => a.test(s))) {
1249
- const a = (r = /https?:\/\/[^\s"'(),;<>[\]{}]+/.exec(s)) == null ? void 0 : r[0];
1250
- L(a) ? a.startsWith(Vt) ? e.capabilities.cspBlockedURLs.value.includes(a) ? i(!1) : Fl(e, n, i) : i(!1) : i(!0);
1251
- } else
1252
- i(!Sl.some((a) => a.test(s)));
1253
- });
1254
- }, Hl = (t) => {
1216
+ ...Ll(n)
1217
+ }, user: Ml(u, a, r, c) }] };
1218
+ }, Bl = (t) => {
1219
+ const e = t.message;
1220
+ return yl.some((n) => n.test(e)) || bl.some((n) => n.test(e)) ? e.includes(wt) : !El.some((n) => n.test(e));
1221
+ }, Vl = (t) => {
1255
1222
  var r;
1256
1223
  const e = (r = t.stacktrace[0]) == null ? void 0 : r.file;
1257
1224
  if (!e || typeof e != "string")
1258
1225
  return !1;
1259
1226
  const n = e.substring(e.lastIndexOf("/") + 1), s = e.split("/");
1260
- return s[s.length - 2] === Rn || Al().some((a) => n.startsWith(a) && n.endsWith(".js"));
1261
- }, Gl = (t, e) => {
1262
- 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 };
1227
+ return s[s.length - 2] === Rn || Tl().some((a) => n.startsWith(a) && n.endsWith(".js"));
1228
+ }, Fl = (t, e) => {
1229
+ const n = { version: Rl, message_id: Bt(), source: { name: Cl, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
1263
1230
  return de(n);
1264
- }, jl = (t, e, n, s) => {
1231
+ }, xl = (t, e, n, s) => {
1265
1232
  let i;
1266
1233
  if (n.context.app.value.installType !== "cdn")
1267
1234
  return i;
1268
1235
  if (!C(t))
1269
1236
  i = e;
1270
- else if (L(t))
1237
+ else if (U(t))
1271
1238
  i = t;
1272
1239
  else {
1273
- const r = ui(t, s);
1240
+ const r = li(t, s);
1274
1241
  C(r) ? i = r.message : i = e;
1275
1242
  }
1276
1243
  return i;
1277
1244
  };
1278
- class ql {
1245
+ class Hl {
1279
1246
  // If no logger is passed errors will be thrown as unhandled error
1280
1247
  constructor(e, n) {
1281
1248
  N(this, "initialized", !1);
@@ -1293,12 +1260,9 @@ class ql {
1293
1260
  */
1294
1261
  attachErrorListeners() {
1295
1262
  globalThis.addEventListener("error", (e) => {
1296
- this.onError({ error: e, context: st, errorType: me.UNHANDLEDEXCEPTION });
1263
+ this.onError({ error: e, context: nt, errorType: ge.UNHANDLEDEXCEPTION });
1297
1264
  }), globalThis.addEventListener("unhandledrejection", (e) => {
1298
- this.onError({ error: e, context: st, errorType: me.UNHANDLEDREJECTION });
1299
- }), document.addEventListener("securitypolicyviolation", (e) => {
1300
- const n = L(e.blockedURI) ? e.blockedURI : "";
1301
- e.disposition === "enforce" && n.startsWith(Vt) && !o.capabilities.cspBlockedURLs.value.includes(n) && (o.capabilities.cspBlockedURLs.value = [...o.capabilities.cspBlockedURLs.value, n]);
1265
+ this.onError({ error: e, context: nt, errorType: ge.UNHANDLEDREJECTION });
1302
1266
  });
1303
1267
  }
1304
1268
  /**
@@ -1310,21 +1274,21 @@ class ql {
1310
1274
  * @param errorInfo.errorType - The type of the error (handled or unhandled)
1311
1275
  * @param errorInfo.groupingHash - The grouping hash of the error
1312
1276
  */
1313
- async onError(e) {
1277
+ onError(e) {
1314
1278
  try {
1315
- const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? me.HANDLEDEXCEPTION, u = Nl(n, a), l = ui(u, this.logger);
1316
- if (x(l))
1279
+ const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? ge.HANDLEDEXCEPTION, u = _l(n, a), l = li(u, this.logger);
1280
+ if (G(l))
1317
1281
  return;
1318
- const c = i ? `${i} - ` : "", d = `${s}${R}${c}`, h = yl(l, d), g = En(l).includes(Rt);
1319
- if (!g && !Hl(h) && a !== me.HANDLEDEXCEPTION)
1282
+ const c = i ? `${i} - ` : "", d = `${s}${R}${c}`, h = vl(l, d), g = En(l).includes(Rt);
1283
+ if (!g && !Vl(h) && a !== ge.HANDLEDEXCEPTION)
1320
1284
  return;
1321
- if (o.reporting.isErrorReportingEnabled.value && await xl(h, o, this.httpClient)) {
1322
- 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);
1323
- this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: Gl(k, o), sendRawData: !0 }, isRawResponse: !0 });
1285
+ if (o.reporting.isErrorReportingEnabled.value && Bl(h)) {
1286
+ const f = { severity: "error", unhandled: a !== ge.HANDLEDEXCEPTION, severityReason: { type: a } }, m = xl(r, h.message, o, this.logger), v = Ul(h, f, o, m);
1287
+ this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: Fl(v, o), sendRawData: !0 }, isRawResponse: !0 });
1324
1288
  }
1325
- (a === me.HANDLEDEXCEPTION || g) && this.logger.error(h.message);
1289
+ (a === ge.HANDLEDEXCEPTION || g) && this.logger.error(h.message);
1326
1290
  } catch (n) {
1327
- this.logger.error(Jo(st), n);
1291
+ this.logger.error(Xo(nt), n);
1328
1292
  }
1329
1293
  }
1330
1294
  /**
@@ -1335,14 +1299,14 @@ class ql {
1335
1299
  */
1336
1300
  leaveBreadcrumb(e) {
1337
1301
  try {
1338
- o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Ll(e)];
1302
+ o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Pl(e)];
1339
1303
  } catch (n) {
1340
- this.onError({ error: n, context: st, customMessage: jn, groupingHash: jn });
1304
+ this.onError({ error: n, context: nt, customMessage: jn, groupingHash: jn });
1341
1305
  }
1342
1306
  }
1343
1307
  }
1344
- const fi = new ql(ci, ye);
1345
- class zl {
1308
+ const ci = new Hl(ui, ye);
1309
+ class Gl {
1346
1310
  constructor(e, n = {}) {
1347
1311
  N(this, "plugins", []);
1348
1312
  N(this, "byName", {});
@@ -1352,14 +1316,14 @@ class zl {
1352
1316
  }
1353
1317
  register(e, n) {
1354
1318
  if (!e.name) {
1355
- const i = Zo(Be);
1319
+ const i = Jo(Be);
1356
1320
  if (this.config.throws)
1357
1321
  throw new Error(i);
1358
1322
  this.logger.error(i, e);
1359
1323
  return;
1360
1324
  }
1361
1325
  if (this.byName[e.name]) {
1362
- const i = ea(Be, e.name);
1326
+ const i = Zo(Be, e.name);
1363
1327
  if (this.config.throws)
1364
1328
  throw new Error(i);
1365
1329
  this.logger.error(i);
@@ -1375,7 +1339,7 @@ class zl {
1375
1339
  unregister(e) {
1376
1340
  const n = this.byName[e];
1377
1341
  if (!n) {
1378
- const i = ta(Be, e);
1342
+ const i = ea(Be, e);
1379
1343
  if (this.config.throws)
1380
1344
  throw new Error(i);
1381
1345
  this.logger.error(i);
@@ -1383,7 +1347,7 @@ class zl {
1383
1347
  }
1384
1348
  const s = this.plugins.indexOf(n);
1385
1349
  if (s === -1) {
1386
- const i = na(Be, e);
1350
+ const i = ta(Be, e);
1387
1351
  if (this.config.throws)
1388
1352
  throw new Error(i);
1389
1353
  this.logger.error(i);
@@ -1400,9 +1364,9 @@ class zl {
1400
1364
  var i;
1401
1365
  if ((i = s.deps) != null && i.some((r) => !this.byName[r])) {
1402
1366
  const r = s.deps.filter((a) => !this.byName[a]);
1403
- return this.logger.error(sa(Be, s.name, r)), !1;
1367
+ return this.logger.error(na(Be, s.name, r)), !1;
1404
1368
  }
1405
- return n === "." ? !0 : Gr(s, n);
1369
+ return n === "." ? !0 : Hr(s, n);
1406
1370
  })), this.cache[n];
1407
1371
  }
1408
1372
  // This method allows to process this.plugins so that it could
@@ -1413,10 +1377,10 @@ class zl {
1413
1377
  invoke(e, n = !0, ...s) {
1414
1378
  let i = e;
1415
1379
  if (!i)
1416
- throw new Error(zo);
1380
+ throw new Error(qo);
1417
1381
  const r = i.startsWith("!"), a = this.config.throws ?? i.endsWith("!");
1418
1382
  if (i = i.replace(/(^!|!$)/g, ""), !i)
1419
- throw new Error(Ko);
1383
+ throw new Error(zo);
1420
1384
  const u = i.split(".");
1421
1385
  u.pop();
1422
1386
  const l = u.join(".");
@@ -1429,7 +1393,7 @@ class zl {
1429
1393
  } catch (y) {
1430
1394
  if (a)
1431
1395
  throw y;
1432
- this.logger.error(ia(Be, i, d.name), y);
1396
+ this.logger.error(sa(Be, i, d.name), y);
1433
1397
  }
1434
1398
  return null;
1435
1399
  });
@@ -1441,19 +1405,19 @@ class zl {
1441
1405
  return this.invoke(e, !0, ...n);
1442
1406
  }
1443
1407
  }
1444
- 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
1445
- 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 = {
1408
+ const jl = new Gl(ye, { throws: !0 }), ql = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
1409
+ t.config.useNativeSDK === !0, zl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, es = (t) => t.filter(ql), di = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kl = ["Bugsnag", "ErrorReporting"], Yl = {
1446
1410
  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" }
1447
1411
  };
1448
- function gi(t, e) {
1412
+ function fi(t, e) {
1449
1413
  const n = Object.assign(t, e);
1450
1414
  for (const s of Object.keys(n))
1451
- typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = gi(n[s], e[s]));
1415
+ typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = fi(n[s], e[s]));
1452
1416
  return n;
1453
1417
  }
1454
- const Jl = (t) => gi({}, (globalThis.__federation_shared__ || {}).default || {});
1455
- async function Zl(t) {
1456
- const e = Xl[t];
1418
+ const Wl = (t) => fi({}, (globalThis.__federation_shared__ || {}).default || {});
1419
+ async function Ql(t) {
1420
+ const e = Yl[t];
1457
1421
  if (e.inited)
1458
1422
  return e.lib;
1459
1423
  if (["esm", "systemjs"].includes(e.format))
@@ -1465,7 +1429,7 @@ async function Zl(t) {
1465
1429
  r
1466
1430
  ).then((a) => {
1467
1431
  if (!e.inited) {
1468
- const u = Jl();
1432
+ const u = Wl();
1469
1433
  a.init(u), e.lib = a, e.lib.init(u), e.inited = !0;
1470
1434
  }
1471
1435
  n(e.lib);
@@ -1481,9 +1445,9 @@ function K(t, e) {
1481
1445
  return t;
1482
1446
  }
1483
1447
  function Y(t, e) {
1484
- return Zl(t).then((n) => n.get(e).then((s) => s()));
1448
+ return Ql(t).then((n) => n.get(e).then((s) => s()));
1485
1449
  }
1486
- const eu = (t) => {
1450
+ const Xl = (t) => {
1487
1451
  switch (t) {
1488
1452
  case "BeaconQueue":
1489
1453
  return () => Y("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => K(e, !0));
@@ -1519,13 +1483,13 @@ const eu = (t) => {
1519
1483
  }, zt = (t) => {
1520
1484
  const e = {};
1521
1485
  return t.forEach((n) => {
1522
- if (hi.includes(n)) {
1523
- const s = eu(n);
1486
+ if (di.includes(n)) {
1487
+ const s = Xl(n);
1524
1488
  s && (e[n] = s);
1525
1489
  }
1526
1490
  }), e;
1527
- }, mi = () => ({}), tu = () => ({}), nu = (t) => (zt == null ? void 0 : zt(t)) || {}, Kt = { ...mi(), ...tu() }, su = (t) => ({ ...nu(t) });
1528
- class iu {
1491
+ }, hi = () => ({}), Jl = () => ({}), Zl = (t) => (zt == null ? void 0 : zt(t)) || {}, Kt = { ...hi(), ...Jl() }, eu = (t) => ({ ...Zl(t) });
1492
+ class tu {
1529
1493
  constructor(e, n, s) {
1530
1494
  this.engine = e, this.errorHandler = n, this.logger = s, this.onError = this.onError.bind(this);
1531
1495
  }
@@ -1533,14 +1497,14 @@ class iu {
1533
1497
  * Orchestrate the plugin loading and registering
1534
1498
  */
1535
1499
  init() {
1536
- o.lifecycle.status.value = "pluginsLoading", ct("pluginsCDNPath", o.lifecycle.pluginsCDNPath.value), this.setActivePlugins(), this.registerLocalPlugins(), this.registerRemotePlugins(), this.attachEffects();
1500
+ o.lifecycle.status.value = "pluginsLoading", ut("pluginsCDNPath", o.lifecycle.pluginsCDNPath.value), this.setActivePlugins(), this.registerLocalPlugins(), this.registerRemotePlugins(), this.attachEffects();
1537
1501
  }
1538
1502
  /**
1539
1503
  * Update state based on plugin loaded status
1540
1504
  */
1541
1505
  // eslint-disable-next-line class-methods-use-this
1542
1506
  attachEffects() {
1543
- fe(() => {
1507
+ ve(() => {
1544
1508
  (o.plugins.activePlugins.value.length === 0 || o.plugins.loadedPlugins.value.length + o.plugins.failedPlugins.value.length === o.plugins.totalPluginsToLoad.value) && j(() => {
1545
1509
  o.plugins.ready.value = !0, o.lifecycle.status.value = "pluginsReady";
1546
1510
  });
@@ -1554,30 +1518,30 @@ class iu {
1554
1518
  let e = o.plugins.pluginsToLoadFromConfig.value;
1555
1519
  if (!e)
1556
1520
  return [];
1557
- e = e.filter((i) => Ql.includes(i) ? (this.logger.warn(Ma(gt, i)), !1) : !0);
1558
- 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;
1521
+ e = e.filter((i) => Kl.includes(i) ? (this.logger.warn(wa(gt, i)), !1) : !0);
1522
+ const n = [{ configurationStatus: () => C(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(xa), 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(Tt) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
1559
1523
  return n.forEach((i) => {
1560
1524
  i.configurationStatus() ? (e = e.filter(
1561
1525
  i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => C(r)
1562
1526
  // pass through
1563
1527
  ), 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));
1564
- }), [...Object.keys(mi()), ...e];
1528
+ }), [...Object.keys(hi()), ...e];
1565
1529
  }
1566
1530
  addMissingPlugins(e, n, s) {
1567
1531
  const i = e.shouldAddMissingPlugins || n;
1568
1532
  let r;
1569
1533
  e.activePluginName ? r = [...e.basePlugins || [], e.activePluginName] : r = [...e.supportedPlugins];
1570
1534
  const a = r.filter((u) => !s.includes(u));
1571
- a.length > 0 && (i && s.push(...a), this.logger.warn($a(gt, e.configurationStatusStr, a, i)));
1535
+ a.length > 0 && (i && s.push(...a), this.logger.warn(Ma(gt, e.configurationStatusStr, a, i)));
1572
1536
  }
1573
1537
  /**
1574
1538
  * Determine the list of plugins that should be activated
1575
1539
  */
1576
1540
  setActivePlugins() {
1577
- const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Kt), ...hi], s = [], i = [];
1541
+ const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Kt), ...di], s = [], i = [];
1578
1542
  e.forEach((r) => {
1579
1543
  n.includes(r) ? s.push(r) : i.push(r);
1580
- }), i.length > 0 && this.logger.warn(Va(gt, i)), j(() => {
1544
+ }), i.length > 0 && this.logger.warn(Ba(gt, i)), j(() => {
1581
1545
  o.plugins.totalPluginsToLoad.value = e.length, o.plugins.activePlugins.value = s, o.plugins.failedPlugins.value = i;
1582
1546
  });
1583
1547
  }
@@ -1593,7 +1557,7 @@ class iu {
1593
1557
  * Register plugins that are dynamic imports to PluginEngine
1594
1558
  */
1595
1559
  registerRemotePlugins() {
1596
- const e = su(o.plugins.activePlugins.value);
1560
+ const e = eu(o.plugins.activePlugins.value);
1597
1561
  Promise.all(Object.keys(e).map(async (n) => {
1598
1562
  await e[n]().then((s) => this.register([s.default()])).catch((s) => {
1599
1563
  o.plugins.failedPlugins.value = [...o.plugins.failedPlugins.value, n], this.onError(s, `Failed to load plugin "${n}"`, s);
@@ -1651,11 +1615,11 @@ class iu {
1651
1615
  this.errorHandler.onError({ error: e, context: gt, customMessage: n, groupingHash: s });
1652
1616
  }
1653
1617
  }
1654
- 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) => {
1618
+ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", nu = "rl_user_id", su = "rl_trait", iu = "rl_anonymous_id", ru = "rl_group_id", ou = "rl_group_trait", au = "rl_page_init_referrer", lu = "rl_page_init_referring_domain", uu = "rl_session", cu = "rl_auth_token", Ve = { userId: nu, userTraits: su, anonymousId: iu, groupId: ru, groupTraits: ou, initialReferrer: au, initialReferringDomain: lu, sessionInfo: uu, authToken: cu }, du = "test_rudder_cookie", fu = "test_rudder_ls", hu = "test_rudder_ss", gu = "__tld__", gi = "clientDataInCookie", mi = "clientDataInLocalStorage", mu = "clientDataInMemory", pi = "clientDataInSessionStorage", vi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [W]: gi, [X]: mi, [ce]: mu, [ee]: pi }, ts = (t, e) => {
1655
1619
  try {
1656
1620
  return encodeURIComponent(t);
1657
1621
  } catch (n) {
1658
- e == null || e.error(co, n);
1622
+ e == null || e.error(uo, n);
1659
1623
  return;
1660
1624
  }
1661
1625
  }, ns = (t) => {
@@ -1664,7 +1628,7 @@ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memo
1664
1628
  } catch {
1665
1629
  return;
1666
1630
  }
1667
- }, bu = (t) => {
1631
+ }, pu = (t) => {
1668
1632
  const e = {}, n = t.split(/\s*;\s*/);
1669
1633
  let s;
1670
1634
  return n[0] && n.forEach((i) => {
@@ -1672,29 +1636,29 @@ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memo
1672
1636
  const r = s[0] ? ns(s[0]) : void 0;
1673
1637
  r && (e[r] = s[1] ? ns(s[1]) : void 0);
1674
1638
  }), e;
1675
- }, Eu = (t, e, n, s) => {
1639
+ }, vu = (t, e, n, s) => {
1676
1640
  const i = { ...n || {} };
1677
1641
  let r = `${ts(t, s)}=${ts(e, s)}`;
1678
1642
  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;
1679
1643
  }, ln = () => {
1680
1644
  const t = globalThis.document.cookie;
1681
- return bu(t);
1682
- }, Su = (t) => ln()[t], Se = function(t, e, n, s) {
1645
+ return pu(t);
1646
+ }, yu = (t) => ln()[t], Se = function(t, e, n, s) {
1683
1647
  switch (arguments.length) {
1684
1648
  case 4:
1685
1649
  case 3:
1686
1650
  case 2:
1687
- return Eu(t, e, n, s);
1651
+ return vu(t, e, n, s);
1688
1652
  case 1:
1689
- return t ? Su(t) : ln();
1653
+ return t ? yu(t) : ln();
1690
1654
  default:
1691
1655
  return ln();
1692
1656
  }
1693
- }, ku = (t) => {
1657
+ }, bu = (t) => {
1694
1658
  const e = document.createElement("a");
1695
1659
  return e.href = t, e.hostname;
1696
- }, Ru = (t) => {
1697
- 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 = [];
1660
+ }, Eu = (t) => {
1661
+ const e = typeof globalThis.URL != "function" ? bu(t) : new URL(t).hostname, n = (e == null ? void 0 : e.split(".")) ?? [], s = n[n.length - 1], i = [];
1698
1662
  if (n.length === 4 && s && s === parseInt(s, 10).toString())
1699
1663
  return i;
1700
1664
  if (n.length <= 1)
@@ -1702,27 +1666,27 @@ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memo
1702
1666
  for (let r = n.length - 2; r >= 0; r -= 1)
1703
1667
  i.push(n.slice(r).join("."));
1704
1668
  return i;
1705
- }, Iu = (t) => {
1706
- const e = Ru(t);
1669
+ }, Su = (t) => {
1670
+ const e = Eu(t);
1707
1671
  for (let n = 0; n < e.length; n += 1) {
1708
- const s = e[n], i = vu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1672
+ const s = e[n], i = gu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1709
1673
  if (Se(i, 1, r), Se(i))
1710
1674
  return Se(i, null, r), s;
1711
1675
  }
1712
1676
  return "";
1713
- }, Tu = () => {
1714
- const t = `.${Iu(globalThis.location.href)}`;
1715
- return { maxage: Ro, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1716
- }, Au = () => ({ enabled: !0 }), Ou = () => ({ enabled: !0 }), Du = () => ({ enabled: !0 });
1717
- class Cu {
1677
+ }, ku = () => {
1678
+ const t = `.${Su(globalThis.location.href)}`;
1679
+ return { maxage: ko, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1680
+ }, Ru = () => ({ enabled: !0 }), Tu = () => ({ enabled: !0 }), Iu = () => ({ enabled: !0 });
1681
+ class Ou {
1718
1682
  constructor(e) {
1719
1683
  N(this, "isEnabled", !0);
1720
1684
  N(this, "length", 0);
1721
1685
  N(this, "data", {});
1722
- this.options = Du(), this.logger = e;
1686
+ this.options = Iu(), this.logger = e;
1723
1687
  }
1724
1688
  configure(e) {
1725
- return this.options = H(this.options, e ?? {}), this.isEnabled = !!this.options.enabled, this.options;
1689
+ return this.options = x(this.options, e ?? {}), this.isEnabled = !!this.options.enabled, this.options;
1726
1690
  }
1727
1691
  setItem(e, n) {
1728
1692
  return this.data[e] = n, this.length = Object.keys(this.data).length, n;
@@ -1743,13 +1707,13 @@ class Cu {
1743
1707
  return Object.keys(this.data);
1744
1708
  }
1745
1709
  }
1746
- const wt = new Cu(ye);
1747
- var Dt = { exports: {} }, _u = Dt.exports, ss;
1748
- function Pu() {
1710
+ const Mt = new Ou(ye);
1711
+ var Dt = { exports: {} }, Au = Dt.exports, ss;
1712
+ function Du() {
1749
1713
  return ss || (ss = 1, function(t, e) {
1750
1714
  (function(n, s) {
1751
1715
  t.exports = s();
1752
- })(_u, function() {
1716
+ })(Au, function() {
1753
1717
  function n(g) {
1754
1718
  return g = JSON.stringify(g), !!/^\{[\s\S]*\}$/.test(g);
1755
1719
  }
@@ -1804,8 +1768,8 @@ function Pu() {
1804
1768
  }, get: function(f) {
1805
1769
  if (f === void 0) {
1806
1770
  var m = {};
1807
- return this.forEach(function(G, J) {
1808
- return m[G] = J;
1771
+ return this.forEach(function(H, J) {
1772
+ return m[H] = J;
1809
1773
  }), m;
1810
1774
  }
1811
1775
  if (f.charAt(0) === "?")
@@ -1867,15 +1831,25 @@ function Pu() {
1867
1831
  });
1868
1832
  }(Dt)), Dt.exports;
1869
1833
  }
1870
- var Nu = Pu();
1871
- 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") => {
1834
+ var Cu = Du();
1835
+ const Ae = /* @__PURE__ */ oi(Cu), _u = (t) => {
1836
+ const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
1837
+ t.getAsyncData({ url: n, options: {
1838
+ // We actually don't need the response from the request, so we are using HEAD
1839
+ method: "HEAD",
1840
+ headers: { "Content-Type": void 0 }
1841
+ }, isRawResponse: !0, callback: (s, i) => {
1842
+ var r;
1843
+ o.capabilities.isAdBlocked.value = (i == null ? void 0 : i.error) !== void 0 || ((r = i == null ? void 0 : i.xhr) == null ? void 0 : r.responseURL) !== n;
1844
+ } });
1845
+ }, Pu = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), is = () => !le(globalThis.navigator.userAgentData), Nu = () => !le(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), Lu = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), wu = (t, e = "none") => {
1872
1846
  var n;
1873
1847
  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) => {
1874
1848
  t(s);
1875
1849
  }).catch(() => {
1876
1850
  t();
1877
1851
  }));
1878
- }, Uu = () => {
1852
+ }, Mu = () => {
1879
1853
  const t = globalThis.document.createElement("div");
1880
1854
  return t.setAttribute("data-a-b", "c"), t.dataset ? t.dataset.aB === "c" : !1;
1881
1855
  }, un = {
@@ -1897,7 +1871,7 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1897
1871
  "Object.values": () => !S(globalThis.Object.values),
1898
1872
  "Object.assign": () => !S(globalThis.Object.assign),
1899
1873
  "Object.fromEntries": () => !S(globalThis.Object.fromEntries),
1900
- "Element.prototype.dataset": () => !Uu(),
1874
+ "Element.prototype.dataset": () => !Mu(),
1901
1875
  // Ideally, we should separate the checks for TextEncoder and TextDecoder but
1902
1876
  // the polyfill service serves them under the same feature name, "TextEncoder".
1903
1877
  TextEncoder: () => !S(globalThis.TextEncoder) || !S(globalThis.TextDecoder),
@@ -1908,7 +1882,7 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1908
1882
  ArrayBuffer: () => !S(globalThis.Uint8Array),
1909
1883
  Set: () => !S(globalThis.Set),
1910
1884
  atob: () => !S(globalThis.atob)
1911
- }, Bu = () => {
1885
+ }, $u = () => {
1912
1886
  const t = Object.keys(un);
1913
1887
  let e = !1;
1914
1888
  for (let n = 0; n < t.length; n++) {
@@ -1922,25 +1896,25 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1922
1896
  }, rs = () => {
1923
1897
  let t = { density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 };
1924
1898
  return t = { width: globalThis.screen.width, height: globalThis.screen.height, density: globalThis.devicePixelRatio, innerWidth: globalThis.innerWidth, innerHeight: globalThis.innerHeight }, t;
1925
- }, Ei = (t) => {
1899
+ }, yi = (t) => {
1926
1900
  const e = ["QuotaExceededError", "NS_ERROR_DOM_QUOTA_REACHED"], n = [22, 1014], s = e.includes(t.name) || n.includes(t.code);
1927
1901
  return t instanceof DOMException && s;
1928
1902
  }, Ge = (t = X, e, n) => {
1929
1903
  let s, i;
1930
- const r = ra(nn, t);
1904
+ const r = ia(nn, t);
1931
1905
  let a = "unavailable", u = !0, l;
1932
1906
  try {
1933
1907
  switch (t) {
1934
1908
  case ce:
1935
1909
  return !0;
1936
1910
  case W:
1937
- s = e, i = gu;
1911
+ s = e, i = du;
1938
1912
  break;
1939
1913
  case X:
1940
- s = e ?? globalThis.localStorage, i = mu;
1914
+ s = e ?? globalThis.localStorage, i = fu;
1941
1915
  break;
1942
1916
  case ee:
1943
- s = e ?? globalThis.sessionStorage, i = pu;
1917
+ s = e ?? globalThis.sessionStorage, i = hu;
1944
1918
  break;
1945
1919
  default:
1946
1920
  return !1;
@@ -1949,52 +1923,52 @@ const Oe = /* @__PURE__ */ ai(Nu), Lu = () => !le(globalThis.crypto) && S(global
1949
1923
  return s.removeItem(i), !0;
1950
1924
  u = !1;
1951
1925
  } catch (c) {
1952
- u = !1, l = c, Ei(c) && (a = "full");
1926
+ u = !1, l = c, yi(c) && (a = "full");
1953
1927
  }
1954
1928
  return u || n == null || n.warn(`${r}${a}.`, l), !1;
1955
1929
  };
1956
- class Vu {
1930
+ class Uu {
1957
1931
  constructor(e) {
1958
1932
  N(this, "isSupportAvailable", !0);
1959
1933
  N(this, "isEnabled", !0);
1960
1934
  N(this, "length", 0);
1961
- this.options = Au(), this.logger = e;
1935
+ this.options = Ru(), this.logger = e;
1962
1936
  }
1963
1937
  configure(e) {
1964
- return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(X), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1938
+ return this.options = x(this.options, e ?? {}), this.isSupportAvailable = Ge(X), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1965
1939
  }
1966
1940
  setItem(e, n) {
1967
- Oe.set(e, n), this.length = Oe.len();
1941
+ Ae.set(e, n), this.length = Ae.len();
1968
1942
  }
1969
1943
  // eslint-disable-next-line class-methods-use-this
1970
1944
  getItem(e) {
1971
- const n = Oe.get(e);
1972
- return x(n) ? null : n;
1945
+ const n = Ae.get(e);
1946
+ return G(n) ? null : n;
1973
1947
  }
1974
1948
  removeItem(e) {
1975
- Oe.remove(e), this.length = Oe.len();
1949
+ Ae.remove(e), this.length = Ae.len();
1976
1950
  }
1977
1951
  clear() {
1978
- Oe.clear(), this.length = 0;
1952
+ Ae.clear(), this.length = 0;
1979
1953
  }
1980
1954
  key(e) {
1981
1955
  return this.keys()[e] ?? null;
1982
1956
  }
1983
1957
  // eslint-disable-next-line class-methods-use-this
1984
1958
  keys() {
1985
- return Oe.keys();
1959
+ return Ae.keys();
1986
1960
  }
1987
1961
  }
1988
- const Tn = new Vu(ye);
1989
- class Fu {
1962
+ const In = new Uu(ye);
1963
+ class Bu {
1990
1964
  constructor(e) {
1991
1965
  N(this, "isSupportAvailable", !0);
1992
1966
  N(this, "isEnabled", !0);
1993
1967
  N(this, "length", 0);
1994
- this.options = Ou(), this.logger = e;
1968
+ this.options = Tu(), this.logger = e;
1995
1969
  }
1996
1970
  configure(e) {
1997
- 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;
1971
+ return this.options = x(this.options, e ?? {}), this.isSupportAvailable = Ge(ee), this.isSupportAvailable && (this.store = globalThis.sessionStorage), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1998
1972
  }
1999
1973
  setItem(e, n) {
2000
1974
  this.store && (this.store.setItem(e, n), this.length = this.store.length);
@@ -2003,7 +1977,7 @@ class Fu {
2003
1977
  if (!this.store)
2004
1978
  return null;
2005
1979
  const n = this.store.getItem(e);
2006
- return x(n) ? null : n;
1980
+ return G(n) ? null : n;
2007
1981
  }
2008
1982
  removeItem(e) {
2009
1983
  this.store && (this.store.removeItem(e), this.length = this.store.length);
@@ -2027,8 +2001,8 @@ class Fu {
2027
2001
  return e;
2028
2002
  }
2029
2003
  }
2030
- const An = new Fu(ye);
2031
- class xu {
2004
+ const On = new Bu(ye);
2005
+ class Vu {
2032
2006
  constructor(e) {
2033
2007
  N(this, "isSupportAvailable", !0);
2034
2008
  N(this, "isEnabled", !0);
@@ -2036,7 +2010,7 @@ class xu {
2036
2010
  this.logger = e;
2037
2011
  }
2038
2012
  configure(e) {
2039
- 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;
2013
+ return this.options || (this.options = ku()), this.options = x(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = Ge(W, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
2040
2014
  }
2041
2015
  setItem(e, n) {
2042
2016
  return Se(e, n, this.options, this.logger), this.length = Object.keys(Se()).length, !0;
@@ -2044,7 +2018,7 @@ class xu {
2044
2018
  // eslint-disable-next-line class-methods-use-this
2045
2019
  getItem(e) {
2046
2020
  const n = Se(e);
2047
- return x(n) ? null : n;
2021
+ return G(n) ? null : n;
2048
2022
  }
2049
2023
  removeItem(e) {
2050
2024
  const n = this.setItem(e, null);
@@ -2061,32 +2035,32 @@ class xu {
2061
2035
  return Object.keys(Se());
2062
2036
  }
2063
2037
  }
2064
- const On = new xu(ye), ie = (t) => {
2038
+ const An = new Vu(ye), ie = (t) => {
2065
2039
  switch (t) {
2066
2040
  case X:
2067
- return Tn;
2041
+ return In;
2068
2042
  case ee:
2069
- return An;
2043
+ return On;
2070
2044
  case ce:
2071
- return wt;
2045
+ return Mt;
2072
2046
  case W:
2073
- return On;
2047
+ return An;
2074
2048
  default:
2075
- return wt;
2049
+ return Mt;
2076
2050
  }
2077
- }, Hu = (t) => {
2078
- const e = On.configure(t);
2051
+ }, Fu = (t) => {
2052
+ const e = An.configure(t);
2079
2053
  o.storage.cookie.value = { maxage: e.maxage, path: e.path, domain: e.domain, samesite: e.samesite, expires: e.expires, secure: e.secure };
2054
+ }, xu = (t) => {
2055
+ In.configure(t);
2056
+ }, Hu = (t) => {
2057
+ Mt.configure(t);
2080
2058
  }, Gu = (t) => {
2081
- Tn.configure(t);
2082
- }, ju = (t) => {
2083
- wt.configure(t);
2084
- }, qu = (t) => {
2085
- An.configure(t);
2086
- }, zu = (t = {}, e = {}, n = {}, s = {}) => {
2087
- Hu(t), Gu(e), ju(n), qu(s);
2059
+ On.configure(t);
2060
+ }, ju = (t = {}, e = {}, n = {}, s = {}) => {
2061
+ Fu(t), xu(e), Hu(n), Gu(s);
2088
2062
  };
2089
- class Ku {
2063
+ class qu {
2090
2064
  constructor(e, n, s) {
2091
2065
  this.id = e.id, this.name = e.name, this.isEncrypted = e.isEncrypted ?? !1, this.validKeys = e.validKeys ?? {}, this.engine = n, this.noKeyValidation = Object.keys(this.validKeys).length === 0, this.noCompoundKey = e.noCompoundKey, this.originalEngine = this.engine, this.errorHandler = e.errorHandler, this.logger = e.logger, this.pluginsManager = s;
2092
2066
  }
@@ -2121,10 +2095,10 @@ class Ku {
2121
2095
  try {
2122
2096
  this.engine.setItem(s, this.encrypt(de(n, !1, [], this.logger)));
2123
2097
  } catch (i) {
2124
- if (Ei(i))
2125
- this.logger.warn(Da(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
2098
+ if (yi(i))
2099
+ this.logger.warn(Aa(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
2126
2100
  else {
2127
- const r = da(e);
2101
+ const r = ca(e);
2128
2102
  this.onError(i, r, r);
2129
2103
  }
2130
2104
  }
@@ -2138,7 +2112,7 @@ class Ku {
2138
2112
  try {
2139
2113
  return !n || (s = this.decrypt(this.engine.getItem(n)), le(s) || s === "") ? null : JSON.parse(s);
2140
2114
  } catch (i) {
2141
- const r = fa(e);
2115
+ const r = da(e);
2142
2116
  return this.onError(i, r, r), null;
2143
2117
  }
2144
2118
  }
@@ -2171,7 +2145,7 @@ class Ku {
2171
2145
  * Extension point to use with encryption plugins
2172
2146
  */
2173
2147
  crypto(e, n) {
2174
- if (!this.isEncrypted || !e || typeof e != "string" || Kr(e) === "")
2148
+ if (!this.isEncrypted || !e || typeof e != "string" || zr(e) === "")
2175
2149
  return e;
2176
2150
  const i = `storage.${n}`, r = this.pluginsManager ? this.pluginsManager.invokeSingle(i, e) : e;
2177
2151
  return typeof r > "u" ? e : r ?? "";
@@ -2183,7 +2157,7 @@ class Ku {
2183
2157
  this.errorHandler.onError({ error: e, context: `Store ${this.id}`, customMessage: n, groupingHash: s });
2184
2158
  }
2185
2159
  }
2186
- const Yu = (t, e) => {
2160
+ const zu = (t, e) => {
2187
2161
  var s;
2188
2162
  let n;
2189
2163
  if (t.consents.preConsent.value.enabled)
@@ -2200,7 +2174,7 @@ const Yu = (t, e) => {
2200
2174
  }
2201
2175
  return n;
2202
2176
  };
2203
- class Wu {
2177
+ class Ku {
2204
2178
  constructor(e, n, s) {
2205
2179
  N(this, "stores", {});
2206
2180
  N(this, "isInitialized", !1);
@@ -2214,7 +2188,7 @@ class Wu {
2214
2188
  if (this.isInitialized)
2215
2189
  return;
2216
2190
  const e = o.loadOptions.value, n = { cookieStorageOptions: { samesite: e.sameSiteCookie, secure: e.secureCookie, domain: e.setCookieDomain, sameDomainCookiesOnly: e.sameDomainCookiesOnly }, localStorageOptions: {}, inMemoryStorageOptions: {}, sessionStorageOptions: {} };
2217
- 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;
2191
+ ju(tt(x(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;
2218
2192
  }
2219
2193
  /**
2220
2194
  * Create store to persist data used by the SDK like session, used details etc
@@ -2231,9 +2205,9 @@ class Wu {
2231
2205
  const s = o.consents.postConsent.value.storage;
2232
2206
  (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);
2233
2207
  let i = !0, r = {};
2234
- bi.forEach((u) => {
2208
+ vi.forEach((u) => {
2235
2209
  var f;
2236
- 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);
2210
+ const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = zu(o, u) ?? d ?? e ?? on, g = this.getResolvedStorageTypeForEntry(y, u);
2237
2211
  g !== we && (i = !1), r = { ...r, [u]: { type: g, key: Ve[c] } };
2238
2212
  }), j(() => {
2239
2213
  o.storage.type.value = e, o.storage.entries.value = r, o.storage.trulyAnonymousTracking.value = i;
@@ -2257,14 +2231,14 @@ class Wu {
2257
2231
  (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;
2258
2232
  break;
2259
2233
  }
2260
- return s !== e && this.logger.warn(Ca(Qr, n, e, s)), s;
2234
+ return s !== e && this.logger.warn(Da(Wr, n, e, s)), s;
2261
2235
  }
2262
2236
  /**
2263
2237
  * Create a new store
2264
2238
  */
2265
2239
  setStore(e) {
2266
2240
  const n = ie(e.type);
2267
- return this.stores[e.id] = new Ku(e, n, this.pluginsManager), this.stores[e.id];
2241
+ return this.stores[e.id] = new qu(e, n, this.pluginsManager), this.stores[e.id];
2268
2242
  }
2269
2243
  /**
2270
2244
  * Retrieve a store
@@ -2273,18 +2247,18 @@ class Wu {
2273
2247
  return this.stores[e];
2274
2248
  }
2275
2249
  }
2276
- 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) => {
2250
+ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config) && Array.isArray(t.source.destinations), Wu = (t) => typeof t == "string" && Zs.includes(t), bi = (t) => {
2277
2251
  const e = new URL(t), { host: n, protocol: s } = e, i = n.split(".");
2278
2252
  let r;
2279
2253
  return i.length > 2 ? r = `${i[i.length - 2]}.${i[i.length - 1]}` : r = n, { topDomain: r, protocol: s };
2280
- }, Ju = (t) => {
2281
- const { topDomain: e, protocol: n } = Si(t);
2254
+ }, Qu = (t) => {
2255
+ const { topDomain: e, protocol: n } = bi(t);
2282
2256
  return `${n}//${e}`;
2283
- }, Zu = (t, e) => {
2284
- const n = e ? window.location.origin : Ju(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2257
+ }, Xu = (t, e) => {
2258
+ const n = e ? window.location.origin : Qu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2285
2259
  return `${n}/${s}`;
2286
- }, ec = (t) => {
2287
- const { topDomain: e } = Si(window.location.href);
2260
+ }, Ju = (t) => {
2261
+ const { topDomain: e } = bi(window.location.href);
2288
2262
  return e === t;
2289
2263
  }, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, cn = (t) => {
2290
2264
  try {
@@ -2292,7 +2266,7 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2292
2266
  } catch {
2293
2267
  return null;
2294
2268
  }
2295
- }, ki = (t) => cn(t) ?? "", tc = (t) => {
2269
+ }, Ei = (t) => cn(t) ?? "", Zu = (t) => {
2296
2270
  const e = {};
2297
2271
  try {
2298
2272
  const n = new URL(t), s = "utm_";
@@ -2305,7 +2279,7 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2305
2279
  } catch {
2306
2280
  }
2307
2281
  return e;
2308
- }, nc = (t) => {
2282
+ }, ec = (t) => {
2309
2283
  let e = t;
2310
2284
  try {
2311
2285
  const n = new URL(t);
@@ -2313,40 +2287,40 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2313
2287
  } catch {
2314
2288
  }
2315
2289
  return e;
2316
- }, sc = (t) => t.replace(/\/{2,}/g, "/"), Ke = (t) => {
2317
- if (!L(t))
2290
+ }, tc = (t) => t.replace(/\/{2,}/g, "/"), Ke = (t) => {
2291
+ if (!U(t))
2318
2292
  return !1;
2319
2293
  try {
2320
- return S(globalThis.URL) && new URL(t), Fa.test(t);
2294
+ return S(globalThis.URL) && new URL(t), Va.test(t);
2321
2295
  } catch {
2322
2296
  return !1;
2323
2297
  }
2324
- }, ic = () => {
2298
+ }, nc = () => {
2325
2299
  var t, e;
2326
2300
  return !!((e = (t = window.chrome) == null ? void 0 : t.runtime) != null && e.id);
2327
- }, Yt = "none", Wt = "immediate", rc = (t) => {
2301
+ }, Yt = "none", Wt = "immediate", sc = (t) => {
2328
2302
  var e, n;
2329
2303
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.errors) == null ? void 0 : n.enabled) === !0;
2330
- }, oc = (t) => {
2304
+ }, ic = (t) => {
2331
2305
  var e, n;
2332
2306
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.metrics) == null ? void 0 : n.enabled) === !0;
2333
- }, ac = (t) => {
2307
+ }, rc = (t) => {
2334
2308
  const e = { sendPageEvent: !1, trackConsent: !1, discardPreConsentEvents: !1 };
2335
- if (M(t)) {
2336
- const n = T(t);
2337
- 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 }));
2309
+ if (w(t)) {
2310
+ const n = I(t);
2311
+ e.storage = n.storage, Te(n.integrations) && (e.integrations = n.integrations), e.discardPreConsentEvents = n.discardPreConsentEvents === !0, e.sendPageEvent = n.sendPageEvent === !0, e.trackConsent = n.trackConsent === !0, Te(n.consentManagement) && (e.consentManagement = x(n.consentManagement, { enabled: o.consents.enabled.value }));
2338
2312
  }
2339
2313
  return e;
2340
- }, os = (t) => Ie(t) || Array.isArray(t), lc = (t, e) => {
2314
+ }, os = (t) => Te(t) || Array.isArray(t), oc = (t, e) => {
2341
2315
  let { provider: n } = t;
2342
2316
  const s = n ? an[n] : void 0;
2343
- return n && !s && (e.error(Qo(te, n, an)), n = void 0), { provider: n, consentManagerPluginName: s };
2344
- }, Ri = (t, e) => {
2317
+ return n && !s && (e.error(Wo(te, n, an)), n = void 0), { provider: n, consentManagerPluginName: s };
2318
+ }, Si = (t, e) => {
2345
2319
  let n, s = [], i = [], r = !1, a, u = (t == null ? void 0 : t.enabled) === !0;
2346
- 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));
2320
+ Te(t) && u && ({ provider: a, consentManagerPluginName: n } = oc(t, e), os(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), os(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
2347
2321
  const l = { allowedConsentIds: s, deniedConsentIds: i };
2348
2322
  return u = u && !!n, { provider: a, consentManagerPluginName: n, initialized: r, enabled: u, consentsData: l };
2349
- }, uc = () => {
2323
+ }, ac = () => {
2350
2324
  const t = document.querySelector("script[data-rsa-write-key]");
2351
2325
  if (t && t.dataset.rsaWriteKey === o.lifecycle.writeKey.value)
2352
2326
  return t.src;
@@ -2356,45 +2330,45 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2356
2330
  if (i && n.test(i))
2357
2331
  return i;
2358
2332
  }
2359
- }, cc = (t) => {
2360
- o.reporting.isErrorReportingEnabled.value = rc(t.source.config) && !ic(), o.reporting.isMetricsReportingEnabled.value = oc(t.source.config);
2361
- }, dc = (t) => {
2333
+ }, lc = (t) => {
2334
+ o.reporting.isErrorReportingEnabled.value = sc(t.source.config) && !nc(), o.reporting.isMetricsReportingEnabled.value = ic(t.source.config);
2335
+ }, uc = (t) => {
2362
2336
  const { useServerSideCookies: e, dataServiceEndpoint: n, storage: s, setCookieDomain: i, sameDomainCookiesOnly: r } = o.loadOptions.value;
2363
2337
  let a = s == null ? void 0 : s.cookie, u = !1, l;
2364
2338
  if (e) {
2365
2339
  u = e;
2366
- const c = a.domain ?? i, d = C(c) && !ec(Pn(c)) || r, h = Zu(n ?? Ga, d);
2340
+ const c = a.domain ?? i, d = C(c) && !Ju(Pn(c)) || r, h = Xu(n ?? Ha, d);
2367
2341
  if (Ke(h)) {
2368
2342
  l = ze(h);
2369
2343
  const y = cn(window.location.href), g = cn(h);
2370
- y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== Pn(c) && (u = !1, t.warn(ya(te, c, g)));
2344
+ y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== Pn(c) && (u = !1, t.warn(va(te, c, g)));
2371
2345
  } else
2372
2346
  u = !1;
2373
2347
  }
2374
2348
  return { sscEnabled: u, cookieOptions: a, finalDataServiceUrl: l };
2375
- }, fc = (t) => {
2349
+ }, cc = (t) => {
2376
2350
  var d;
2377
2351
  const { storage: e } = o.loadOptions.value;
2378
2352
  let n = e == null ? void 0 : e.type;
2379
- C(n) && !Xu(n) && (t.warn(ma(te, n, on)), n = on);
2353
+ C(n) && !Wu(n) && (t.warn(ga(te, n, on)), n = on);
2380
2354
  let s = (d = e == null ? void 0 : e.encryption) == null ? void 0 : d.version;
2381
- const i = s && It[s];
2382
- !x(s) && x(i) ? (t.warn(pa(te, s, It, Ce)), s = Ce) : x(s) && (s = Ce);
2355
+ const i = s && Tt[s];
2356
+ !G(s) && G(i) ? (t.warn(ma(te, s, Tt, Ce)), s = Ce) : G(s) && (s = Ce);
2383
2357
  const r = e == null ? void 0 : e.migrate, a = r && s === Ce;
2384
- r === !0 && a !== r && t.warn(va(te, s, Ce));
2385
- const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = dc(t);
2358
+ r === !0 && a !== r && t.warn(pa(te, s, Ce));
2359
+ const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = uc(t);
2386
2360
  j(() => {
2387
- 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;
2361
+ o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = Tt[s], o.storage.migrate.value = a;
2388
2362
  });
2389
- }, hc = (t) => {
2363
+ }, dc = (t) => {
2390
2364
  var h, y, g, f;
2391
- const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = Ri(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2365
+ const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = Si(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2392
2366
  let u = ((h = a == null ? void 0 : a.storage) == null ? void 0 : h.strategy) ?? Yt;
2393
2367
  const l = ["none", "session", "anonymousId"];
2394
- C(u) && !l.includes(u) && (u = Yt, t.warn(La(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Yt)));
2368
+ C(u) && !l.includes(u) && (u = Yt, t.warn(Na(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Yt)));
2395
2369
  let c = ((g = a == null ? void 0 : a.events) == null ? void 0 : g.delivery) ?? Wt;
2396
2370
  const d = ["immediate", "buffer"];
2397
- 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(() => {
2371
+ C(c) && !d.includes(c) && (c = Wt, t.warn(La(te, (f = a == null ? void 0 : a.events) == null ? void 0 : f.delivery, Wt))), j(() => {
2398
2372
  var m;
2399
2373
  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 = {
2400
2374
  // Only enable pre-consent if it is explicitly enabled and
@@ -2405,49 +2379,49 @@ const Qu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2405
2379
  events: { delivery: c }
2406
2380
  };
2407
2381
  });
2408
- }, gc = (t) => {
2382
+ }, fc = (t) => {
2409
2383
  var s;
2410
2384
  let e = o.consents.resolutionStrategy.value, n;
2411
- 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(() => {
2412
- o.consents.metadata.value = T(n), o.consents.resolutionStrategy.value = e;
2385
+ w(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(() => {
2386
+ o.consents.metadata.value = I(n), o.consents.resolutionStrategy.value = e;
2413
2387
  });
2414
- }, mc = (t) => {
2388
+ }, hc = (t) => {
2415
2389
  if (o.dataPlaneEvents.deliveryEnabled.value) {
2416
2390
  const e = "XhrQueue";
2417
2391
  let n = e;
2418
- o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(Sa(te)))), j(() => {
2392
+ o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(Ea(te)))), j(() => {
2419
2393
  o.dataPlaneEvents.eventsQueuePluginName.value = n;
2420
2394
  });
2421
2395
  }
2422
- }, pc = (t, e, n, s, i) => {
2423
- const r = new URLSearchParams({ p: Gs, v: ut, build: dt, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2424
- let a = oi, u = r, l = "/sourceConfig/", c = "";
2396
+ }, gc = (t, e, n, s, i) => {
2397
+ const r = new URLSearchParams({ p: Hs, v: lt, build: ct, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2398
+ let a = ri, u = r, l = "/sourceConfig/", c = "";
2425
2399
  if (Ke(t)) {
2426
2400
  const d = new URL(t);
2427
- ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = sc(d.pathname), r.forEach((h, y) => {
2401
+ ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = tc(d.pathname), r.forEach((h, y) => {
2428
2402
  d.searchParams.get(y) === null && d.searchParams.set(y, h);
2429
2403
  }), a = d.origin, l = d.pathname, u = d.searchParams, c = d.hash;
2430
2404
  } else
2431
- i.warn(Pa(te, t));
2405
+ i.warn(_a(te, t));
2432
2406
  return `${a}${l}?${u}${c}`;
2433
- }, 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) => {
2407
+ }, mc = (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}` })), ki = (t, e, n, s, i, r, a) => {
2434
2408
  let u;
2435
2409
  if (r) {
2436
2410
  if (!Ke(r))
2437
- return a.error(Wo(te, t, r)), null;
2411
+ return a.error(Yo(te, t, r)), null;
2438
2412
  u = ze(r);
2439
2413
  } else if (u = n, o.context.app.value.installType === "cdn") {
2440
- const l = uc();
2414
+ const l = ac();
2441
2415
  l && (u = l.split("/").slice(0, -1).concat(e).join("/"));
2442
2416
  }
2443
- return i && (u = u.replace(new RegExp(`/${In}/${dt}/${e}$`), `/${s}/${dt}/${e}`)), u;
2444
- }, 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);
2445
- class Ec {
2417
+ return i && (u = u.replace(new RegExp(`/${Tn}/${ct}/${e}$`), `/${s}/${ct}/${e}`)), u;
2418
+ }, pc = (t, e, n, s) => ki("integrations", Rn, si, t, e, n, s), vc = (t, e, n, s) => ki("plugins", ni, ii, t, e, n, s);
2419
+ class yc {
2446
2420
  constructor(e, n, s) {
2447
2421
  this.errorHandler = n, this.logger = s, this.httpClient = e, this.onError = this.onError.bind(this), this.processConfig = this.processConfig.bind(this);
2448
2422
  }
2449
2423
  attachEffects() {
2450
- fe(() => {
2424
+ ve(() => {
2451
2425
  this.logger.setMinLogLevel(o.lifecycle.logLevel.value);
2452
2426
  });
2453
2427
  }
@@ -2456,12 +2430,12 @@ class Ec {
2456
2430
  * config related information in global state
2457
2431
  */
2458
2432
  init() {
2459
- 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);
2433
+ const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = pc(lt, s, r, this.logger);
2460
2434
  if (ne(l))
2461
2435
  return;
2462
2436
  let c;
2463
- 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(() => {
2464
- 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;
2437
+ c = vc(lt, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = ze(o.lifecycle.dataPlaneUrl.value), cc(this.logger), dc(this.logger), hc(this.logger), j(() => {
2438
+ o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = gc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${Ga}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
2465
2439
  }), this.getConfig());
2466
2440
  }
2467
2441
  /**
@@ -2481,23 +2455,23 @@ class Ec {
2481
2455
  }
2482
2456
  let s;
2483
2457
  try {
2484
- L(e) ? s = JSON.parse(e) : s = e;
2458
+ U(e) ? s = JSON.parse(e) : s = e;
2485
2459
  } catch (r) {
2486
2460
  this.onError(r, Gn);
2487
2461
  return;
2488
2462
  }
2489
- if (!Qu(s)) {
2463
+ if (!Yu(s)) {
2490
2464
  this.onError(new Error(Gn));
2491
2465
  return;
2492
2466
  }
2493
2467
  if (s.source.enabled === !1) {
2494
- this.logger.error(jo);
2468
+ this.logger.error(Go);
2495
2469
  return;
2496
2470
  }
2497
- cc(s);
2498
- const i = s.source.destinations.length > 0 ? vc(s.source.destinations) : [];
2471
+ lc(s);
2472
+ const i = s.source.destinations.length > 0 ? mc(s.source.destinations) : [];
2499
2473
  j(() => {
2500
- 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";
2474
+ 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 ?? [], fc(s), o.lifecycle.status.value = "configured";
2501
2475
  });
2502
2476
  }
2503
2477
  /**
@@ -2509,7 +2483,7 @@ class Ec {
2509
2483
  const e = o.loadOptions.value.getSourceConfig;
2510
2484
  if (e) {
2511
2485
  if (!S(e)) {
2512
- this.logger.error(Yo(te));
2486
+ this.logger.error(Ko(te));
2513
2487
  return;
2514
2488
  }
2515
2489
  const n = e();
@@ -2520,10 +2494,10 @@ class Ec {
2520
2494
  this.httpClient.getAsyncData({ url: o.lifecycle.sourceConfigUrl.value, options: { headers: { "Content-Type": void 0 } }, callback: this.processConfig });
2521
2495
  }
2522
2496
  }
2523
- const Sc = () => {
2497
+ const bc = () => {
2524
2498
  const t = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString());
2525
2499
  return t != null && t[1] ? t[1] : "NA";
2526
- }, Ti = () => (document == null ? void 0 : document.referrer) || "$direct", kc = () => {
2500
+ }, Ri = () => (document == null ? void 0 : document.referrer) || "$direct", Ec = () => {
2527
2501
  const t = document.getElementsByTagName("link");
2528
2502
  let e = "";
2529
2503
  for (let n = 0; t[n]; n += 1) {
@@ -2534,8 +2508,8 @@ const Sc = () => {
2534
2508
  }
2535
2509
  }
2536
2510
  return e;
2537
- }, Rc = () => {
2538
- if (x(globalThis.navigator))
2511
+ }, Sc = () => {
2512
+ if (G(globalThis.navigator))
2539
2513
  return null;
2540
2514
  let { userAgent: t } = globalThis.navigator;
2541
2515
  const { brave: e } = globalThis.navigator;
@@ -2544,8 +2518,8 @@ const Sc = () => {
2544
2518
  n && (t = `${t} Brave/${n[2]}`);
2545
2519
  }
2546
2520
  return t;
2547
- }, Ic = () => x(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ai = () => {
2548
- const t = kc();
2521
+ }, kc = () => G(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ti = () => {
2522
+ const t = Ec();
2549
2523
  let e = globalThis.location.pathname;
2550
2524
  const { href: n } = globalThis.location;
2551
2525
  let s = n;
@@ -2556,12 +2530,12 @@ const Sc = () => {
2556
2530
  l.search === "" ? s = t + i : s = t, e = l.pathname;
2557
2531
  } catch {
2558
2532
  }
2559
- const r = nc(s), { title: a } = document, u = Ti();
2560
- return { path: e, referrer: u, referring_domain: ki(u), search: i, title: a, url: r, tab_url: n };
2561
- }, Tc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(un).join("%2C")}`, Ac = 10 * 1e3, as = "rudderstackPolyfill";
2562
- class Oc {
2533
+ const r = ec(s), { title: a } = document, u = Ri();
2534
+ return { path: e, referrer: u, referring_domain: Ei(u), search: i, title: a, url: r, tab_url: n };
2535
+ }, Rc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(un).join("%2C")}`, Tc = 10 * 1e3, as = "rudderstackPolyfill";
2536
+ class Ic {
2563
2537
  constructor(e, n, s) {
2564
- 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);
2538
+ 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);
2565
2539
  }
2566
2540
  init() {
2567
2541
  this.prepareBrowserCapabilities(), this.attachWindowListeners();
@@ -2572,21 +2546,21 @@ class Oc {
2572
2546
  // eslint-disable-next-line class-methods-use-this
2573
2547
  detectBrowserCapabilities() {
2574
2548
  j(() => {
2575
- 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) => {
2549
+ 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 = Nu(), o.capabilities.isUaCHAvailable.value = is(), o.capabilities.isCryptoAvailable.value = Pu(), o.capabilities.isIE11.value = Lu(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Sc(), o.context.locale.value = kc(), o.context.screen.value = rs(), o.context.timezone.value = bc(), is() && wu((e) => {
2576
2550
  o.context["ua-ch"].value = e;
2577
2551
  }, o.loadOptions.value.uaChTrackLevel);
2578
- }), fe(() => {
2579
- o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && di(this.httpClient);
2552
+ }), ve(() => {
2553
+ o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && _u(this.httpClient);
2580
2554
  });
2581
2555
  }
2582
2556
  /**
2583
2557
  * Detect if polyfills are required and then load script from polyfill URL
2584
2558
  */
2585
2559
  prepareBrowserCapabilities() {
2586
- o.capabilities.isLegacyDOM.value = Bu();
2560
+ o.capabilities.isLegacyDOM.value = $u();
2587
2561
  const e = o.loadOptions.value.polyfillURL;
2588
- let n = Tc;
2589
- if (qe(e) && (Ke(e) ? n = e : this.logger.warn(Ua(nn, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ke(n)) {
2562
+ let n = Rc;
2563
+ if (qe(e) && (Ke(e) ? n = e : this.logger.warn($a(nn, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ke(n)) {
2590
2564
  const i = n !== o.loadOptions.value.polyfillURL;
2591
2565
  if (i) {
2592
2566
  const r = `RS_polyfillCallback_${o.lifecycle.writeKey.value}`, a = () => {
@@ -2594,8 +2568,8 @@ class Oc {
2594
2568
  };
2595
2569
  globalThis[r] = a, n = `${n}&callback=${r}`;
2596
2570
  }
2597
- this.externalSrcLoader.loadJSFile({ url: n, id: as, async: !0, timeout: Ac, callback: (r) => {
2598
- r ? i || this.onReady() : this.onError(new Error(Na(as, n)));
2571
+ this.externalSrcLoader.loadJSFile({ url: n, id: as, async: !0, timeout: Tc, callback: (r) => {
2572
+ r ? i || this.onReady() : this.onError(new Error(Pa(as, n)));
2599
2573
  } });
2600
2574
  } else
2601
2575
  this.onReady();
@@ -2608,7 +2582,7 @@ class Oc {
2608
2582
  o.capabilities.isOnline.value = !1;
2609
2583
  }), globalThis.addEventListener("online", () => {
2610
2584
  o.capabilities.isOnline.value = !0;
2611
- }), globalThis.addEventListener("resize", Ao(() => {
2585
+ }), globalThis.addEventListener("resize", Io(() => {
2612
2586
  o.context.screen.value = rs();
2613
2587
  }, this));
2614
2588
  }
@@ -2627,13 +2601,13 @@ class Oc {
2627
2601
  this.errorHandler.onError({ error: e, context: nn, groupingHash: n });
2628
2602
  }
2629
2603
  }
2630
- 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) => {
2604
+ const Oc = "web", Ac = ["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"], Ii = (t) => typeof t == "number" && !Number.isNaN(t), Dc = (t, e) => e.toString().length >= t, $t = (t) => Ii(t) && t >= 0 && Number.isInteger(t), us = 10, Oi = (t) => {
2631
2605
  const { cutOff: e } = t, n = Date.now();
2632
2606
  return !!(e != null && e.enabled && e.expiresAt && n > e.expiresAt);
2633
- }, 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) => {
2607
+ }, cs = (t) => !t.expiresAt || Date.now() > t.expiresAt || Oi(t), Cc = () => Date.now(), _c = (t, e) => !t || !$t(t) || !Dc(us, t) ? (e.warn(Oa(De, t, us)), !1) : !0, Pc = (t) => {
2634
2608
  if (t != null && t.enabled)
2635
- return t.expiresAt ?? (Mt(t.duration) ? Date.now() + t.duration : void 0);
2636
- }, wc = (t) => {
2609
+ return t.expiresAt ?? ($t(t.duration) ? Date.now() + t.duration : void 0);
2610
+ }, Nc = (t) => {
2637
2611
  const { timeout: e, cutOff: n } = t, s = Date.now();
2638
2612
  return {
2639
2613
  id: s,
@@ -2644,52 +2618,52 @@ const Dc = "web", Cc = ["integrations", "anonymousId", "originalTimestamp"], ls
2644
2618
  autoTrack: !0,
2645
2619
  ...n && { cutOff: n }
2646
2620
  };
2647
- }, 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) => {
2648
- const e = Ai(), n = {};
2621
+ }, Lc = (t, e) => ({ id: _c(t, e) ? t : Cc(), sessionStart: void 0, manualTrack: !0 }), st = (t) => t === W || t === X || t === ee || t === ce, dn = () => Bt(), wc = (t) => {
2622
+ const e = Ti(), n = {};
2649
2623
  return Object.keys(e).forEach((s) => {
2650
2624
  n[s] = (t == null ? void 0 : t[s]) || e[s];
2651
2625
  }), 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;
2652
- }, Uc = (t, e) => {
2653
- const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ai();
2626
+ }, Mc = (t, e) => {
2627
+ const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ti();
2654
2628
  return Object.keys(i).forEach((r) => {
2655
- x(s[r]) && (s[r] = n[r] || i[r]);
2656
- }), 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;
2629
+ G(s[r]) && (s[r] = n[r] || i[r]);
2630
+ }), G(s.initial_referrer) && (s.initial_referrer = n.initial_referrer || o.session.initialReferrer.value), G(s.initial_referring_domain) && (s.initial_referring_domain = n.initial_referring_domain || o.session.initialReferringDomain.value), s;
2657
2631
  }, Xt = (t, e, n) => {
2658
- M(t) && Object.keys(t).forEach((s) => {
2659
- (Qt.includes(s) || Qt.includes(s.toLowerCase())) && n.warn(ba(Vs, s, e, Qt));
2632
+ w(t) && Object.keys(t).forEach((s) => {
2633
+ (Qt.includes(s) || Qt.includes(s.toLowerCase())) && n.warn(ya(Bs, s, e, Qt));
2660
2634
  });
2661
- }, Bc = (t, e) => {
2635
+ }, $c = (t, e) => {
2662
2636
  const { properties: n, traits: s, context: i } = t, { traits: r } = i;
2663
2637
  Xt(n, "properties", e), Xt(s, "traits", e), Xt(r, "context.traits", e);
2664
- }, Vc = (t, e) => {
2665
- 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);
2666
- }, Fc = (t, e, n) => {
2638
+ }, Uc = (t, e) => {
2639
+ e.anonymousId && U(e.anonymousId) && (t.anonymousId = e.anonymousId), Te(e.integrations) && (t.integrations = e.integrations), e.originalTimestamp && U(e.originalTimestamp) && (t.originalTimestamp = e.originalTimestamp);
2640
+ }, Bc = (t, e, n) => {
2667
2641
  let s = t;
2668
2642
  return Object.keys(e).forEach((i) => {
2669
- if (!Cc.includes(i) && !ls.includes(i))
2643
+ if (!Ac.includes(i) && !ls.includes(i))
2670
2644
  if (i !== "context")
2671
- s = H(s, { [i]: e[i] });
2672
- else if (!x(e[i]) && M(e[i])) {
2645
+ s = x(s, { [i]: e[i] });
2646
+ else if (!G(e[i]) && w(e[i])) {
2673
2647
  const r = {};
2674
2648
  Object.keys(e[i]).forEach((a) => {
2675
2649
  ls.includes(a) || (r[a] = e[i][a]);
2676
- }), s = H(s, { ...r });
2650
+ }), s = x(s, { ...r });
2677
2651
  } else
2678
- n.warn(Ea(Vs));
2652
+ n.warn(ba(Bs));
2679
2653
  }), s;
2680
- }, xc = (t, e, n) => {
2681
- M(e) && (Vc(t, e), t.context = Fc(t.context, e, n));
2682
- }, Hc = (t) => {
2654
+ }, Vc = (t, e, n) => {
2655
+ w(e) && (Uc(t, e), t.context = Bc(t.context, e, n));
2656
+ }, Fc = (t) => {
2683
2657
  let e;
2684
- return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ni, T(e);
2685
- }, tt = (t, e, n, s) => {
2658
+ return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ti, I(e);
2659
+ }, et = (t, e, n, s) => {
2686
2660
  var a, u, l;
2687
- const i = { channel: Dc, context: {
2688
- traits: T(o.session.userTraits.value),
2661
+ const i = { channel: Oc, context: {
2662
+ traits: I(o.session.userTraits.value),
2689
2663
  sessionId: o.session.sessionInfo.value.id || void 0,
2690
2664
  sessionStart: o.session.sessionInfo.value.sessionStart || void 0,
2691
2665
  // Add 'consentManagement' only if consent management is enabled
2692
- ...o.consents.enabled.value && { consentManagement: { deniedConsentIds: T(o.consents.data.value.deniedConsentIds), allowedConsentIds: T(o.consents.data.value.allowedConsentIds), provider: o.consents.provider.value, resolutionStrategy: o.consents.resolutionStrategy.value } },
2666
+ ...o.consents.enabled.value && { consentManagement: { deniedConsentIds: I(o.consents.data.value.deniedConsentIds), allowedConsentIds: I(o.consents.data.value.allowedConsentIds), provider: o.consents.provider.value, resolutionStrategy: o.consents.resolutionStrategy.value } },
2693
2667
  "ua-ch": o.context["ua-ch"].value,
2694
2668
  app: o.context.app.value,
2695
2669
  library: o.context.library.value,
@@ -2697,17 +2671,17 @@ const Dc = "web", Cc = ["integrations", "anonymousId", "originalTimestamp"], ls
2697
2671
  os: o.context.os.value,
2698
2672
  locale: o.context.locale.value,
2699
2673
  screen: o.context.screen.value,
2700
- campaign: tc(globalThis.location.href),
2701
- page: $c(n),
2674
+ campaign: Zu(globalThis.location.href),
2675
+ page: wc(n),
2702
2676
  timezone: o.context.timezone.value,
2703
2677
  // Add auto tracking information
2704
2678
  ...o.autoTrack.enabled.value && { autoTrack: { ...o.autoTrack.pageLifecycle.enabled.value && { page: { pageViewId: o.autoTrack.pageLifecycle.pageViewId.value } } } }
2705
- }, originalTimestamp: ro(), messageId: Ut(), userId: t.userId || o.session.userId.value };
2706
- 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));
2707
- const r = H(t, i);
2708
- 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;
2679
+ }, originalTimestamp: io(), messageId: Bt(), userId: t.userId || o.session.userId.value };
2680
+ st((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 ? I(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 ? I(o.session.groupTraits.value) : t.traits));
2681
+ const r = x(t, i);
2682
+ return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), Vc(r, e, s), $c(r, s), r.integrations = Fc(r.integrations), r;
2709
2683
  };
2710
- class Gc {
2684
+ class xc {
2711
2685
  constructor(e) {
2712
2686
  this.logger = e;
2713
2687
  }
@@ -2720,7 +2694,7 @@ class Gc {
2720
2694
  */
2721
2695
  generatePageEvent(e, n, s, i) {
2722
2696
  let r = s ?? {};
2723
- return r = Uc(r, i), tt({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2697
+ return r = Mc(r, i), et({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2724
2698
  }
2725
2699
  /**
2726
2700
  * Generate a 'track' event based on the user-input fields
@@ -2729,7 +2703,7 @@ class Gc {
2729
2703
  * @param options API options
2730
2704
  */
2731
2705
  generateTrackEvent(e, n, s) {
2732
- return tt({ properties: n, event: e, type: "track" }, s, void 0, this.logger);
2706
+ return et({ properties: n, event: e, type: "track" }, s, void 0, this.logger);
2733
2707
  }
2734
2708
  /**
2735
2709
  * Generate an 'identify' event based on the user-input fields
@@ -2738,7 +2712,7 @@ class Gc {
2738
2712
  * @param options API options
2739
2713
  */
2740
2714
  generateIdentifyEvent(e, n, s) {
2741
- return tt({ userId: e, type: "identify", context: { traits: n } }, s, void 0, this.logger);
2715
+ return et({ userId: e, type: "identify", context: { traits: n } }, s, void 0, this.logger);
2742
2716
  }
2743
2717
  /**
2744
2718
  * Generate an 'alias' event based on the user-input fields
@@ -2747,7 +2721,7 @@ class Gc {
2747
2721
  * @param options API options
2748
2722
  */
2749
2723
  generateAliasEvent(e, n, s) {
2750
- const r = tt({ previousId: n, type: "alias" }, s, void 0, this.logger);
2724
+ const r = et({ previousId: n, type: "alias" }, s, void 0, this.logger);
2751
2725
  return r.userId = e ?? r.userId, r;
2752
2726
  }
2753
2727
  /**
@@ -2758,7 +2732,7 @@ class Gc {
2758
2732
  */
2759
2733
  generateGroupEvent(e, n, s) {
2760
2734
  const i = { type: "group" };
2761
- return e && (i.groupId = e), n && (i.traits = n), tt(i, s, void 0, this.logger);
2735
+ return e && (i.groupId = e), n && (i.traits = n), et(i, s, void 0, this.logger);
2762
2736
  }
2763
2737
  /**
2764
2738
  * Generates a new RudderEvent object based on the user-input fields
@@ -2788,7 +2762,7 @@ class Gc {
2788
2762
  return n;
2789
2763
  }
2790
2764
  }
2791
- class jc {
2765
+ class Hc {
2792
2766
  /**
2793
2767
  *
2794
2768
  * @param eventRepository Event repository instance
@@ -2797,7 +2771,7 @@ class jc {
2797
2771
  * @param logger Logger object
2798
2772
  */
2799
2773
  constructor(e, n, s, i) {
2800
- this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new Gc(this.logger);
2774
+ this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new xc(this.logger);
2801
2775
  }
2802
2776
  /**
2803
2777
  * Initializes the event manager
@@ -2818,7 +2792,7 @@ class jc {
2818
2792
  this.eventRepository.enqueue(n, e.callback);
2819
2793
  }
2820
2794
  }
2821
- class qc {
2795
+ class Gc {
2822
2796
  constructor(e, n, s, i, r) {
2823
2797
  this.storeManager = n, this.pluginsManager = e, this.logger = r, this.errorHandler = i, this.httpClient = s, this.onError = this.onError.bind(this), this.serverSideCookieDebounceFuncs = {};
2824
2798
  }
@@ -2838,7 +2812,7 @@ class qc {
2838
2812
  var n, s;
2839
2813
  let e;
2840
2814
  if (this.isPersistenceEnabledForStorageEntry("sessionInfo")) {
2841
- const i = this.getConfiguredSessionTrackingInfo(), r = this.getSessionInfo() ?? A.sessionInfo;
2815
+ const i = this.getConfiguredSessionTrackingInfo(), r = this.getSessionInfo() ?? O.sessionInfo;
2842
2816
  e = {
2843
2817
  // If manualTrack is set to true in the storage, then do not enable auto tracking even if configured.
2844
2818
  // Once manual tracking ends (endSession is called), auto tracking will be enabled in the next SDK run.
@@ -2848,9 +2822,9 @@ class qc {
2848
2822
  expiresAt: r.expiresAt,
2849
2823
  id: r.id,
2850
2824
  sessionStart: r.sessionStart
2851
- }, !e.autoTrack && e.manualTrack !== !0 ? e = A.sessionInfo : ((n = i.cutOff) == null ? void 0 : n.enabled) === !0 && (e.cutOff = { enabled: !0, duration: i.cutOff.duration, expiresAt: (s = r.cutOff) == null ? void 0 : s.expiresAt });
2825
+ }, !e.autoTrack && e.manualTrack !== !0 ? e = O.sessionInfo : ((n = i.cutOff) == null ? void 0 : n.enabled) === !0 && (e.cutOff = { enabled: !0, duration: i.cutOff.duration, expiresAt: (s = r.cutOff) == null ? void 0 : s.expiresAt });
2852
2826
  } else
2853
- e = A.sessionInfo;
2827
+ e = O.sessionInfo;
2854
2828
  o.session.sessionInfo.value = e, o.session.sessionInfo.value.autoTrack && this.startOrRenewAutoTracking(o.session.sessionInfo.value);
2855
2829
  }
2856
2830
  setInitialReferrerInfo() {
@@ -2858,13 +2832,13 @@ class qc {
2858
2832
  if (e && n)
2859
2833
  this.setInitialReferrer(e), this.setInitialReferringDomain(n);
2860
2834
  else {
2861
- const s = e || Ti();
2862
- this.setInitialReferrer(s), this.setInitialReferringDomain(ki(s));
2835
+ const s = e || Ri();
2836
+ this.setInitialReferrer(s), this.setInitialReferringDomain(Ei(s));
2863
2837
  }
2864
2838
  }
2865
2839
  isPersistenceEnabledForStorageEntry(e) {
2866
2840
  var n;
2867
- return it((n = o.storage.entries.value[e]) == null ? void 0 : n.type);
2841
+ return st((n = o.storage.entries.value[e]) == null ? void 0 : n.type);
2868
2842
  }
2869
2843
  migrateDataFromPreviousStorage() {
2870
2844
  const e = o.storage.entries.value, n = [W, X, ee];
@@ -2876,7 +2850,7 @@ class qc {
2876
2850
  const d = (h = this.storeManager) == null ? void 0 : h.getStore(Fe[c]);
2877
2851
  if (d && c !== r) {
2878
2852
  const y = d.get(Ve[i]);
2879
- Hr(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2853
+ xr(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2880
2854
  }
2881
2855
  });
2882
2856
  });
@@ -2885,7 +2859,7 @@ class qc {
2885
2859
  if (!o.storage.migrate.value)
2886
2860
  return;
2887
2861
  let s = e ?? [];
2888
- s.length === 0 && [pi, vi, yi].forEach((a) => {
2862
+ s.length === 0 && [gi, mi, pi].forEach((a) => {
2889
2863
  var l;
2890
2864
  const u = (l = this.storeManager) == null ? void 0 : l.getStore(a);
2891
2865
  u && s.push(u);
@@ -2905,14 +2879,14 @@ class qc {
2905
2879
  return { autoTrack: e };
2906
2880
  let n;
2907
2881
  const s = (r = o.loadOptions.value.sessions) == null ? void 0 : r.timeout;
2908
- 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));
2882
+ $t(s) ? n = s : (this.logger.warn(Sa(De, s, sn)), n = sn), n === 0 && (this.logger.warn(Ta(De)), e = !1), n > 0 && n < Fn && this.logger.warn(Ia(De, n, Fn));
2909
2883
  const i = this.getCutOffInfo(n);
2910
2884
  return { timeout: n, autoTrack: e, cutOff: i };
2911
2885
  }
2912
2886
  getCutOffInfo(e) {
2913
2887
  const n = o.loadOptions.value.sessions.cutOff;
2914
2888
  let s, i = !1;
2915
- 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 };
2889
+ return n.enabled === !0 && (s = n.duration, i = !0, $t(s) ? s < e && (this.logger.warn(Ra(De, s, e)), i = !1) : (this.logger.warn(ka(De, s, Vn)), s = Vn)), { enabled: i, duration: s };
2916
2890
  }
2917
2891
  /**
2918
2892
  * Handles error
@@ -2955,8 +2929,8 @@ class qc {
2955
2929
  var u, l;
2956
2930
  ((u = a == null ? void 0 : a.xhr) == null ? void 0 : u.status) === 200 ? e.forEach((c) => {
2957
2931
  const d = s == null ? void 0 : s.get(c.name), h = de(c.value, !1, []);
2958
- de(d, !1, []) !== h && (this.logger.error(ga(c.name)), n && n(c.name, c.value));
2959
- }) : (this.logger.error(ha((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2932
+ de(d, !1, []) !== h && (this.logger.error(ha(c.name)), n && n(c.name, c.value));
2933
+ }) : (this.logger.error(fa((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2960
2934
  n && n(c.name, c.value);
2961
2935
  }));
2962
2936
  });
@@ -2974,21 +2948,21 @@ class qc {
2974
2948
  syncValueToStorage(e, n) {
2975
2949
  var r, a, u;
2976
2950
  const s = o.storage.entries.value, i = (r = s[e]) == null ? void 0 : r.type;
2977
- if (it(i)) {
2951
+ if (st(i)) {
2978
2952
  const l = (a = this.storeManager) == null ? void 0 : a.getStore(Fe[i]), c = (u = s[e]) == null ? void 0 : u.key;
2979
- n && (L(n) || Ie(n)) ? o.serverCookies.isEnabledServerSideCookies.value && i === W ? (this.serverSideCookieDebounceFuncs[e] && globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]), this.serverSideCookieDebounceFuncs[e] = globalThis.setTimeout(() => {
2953
+ n && (U(n) || Te(n)) ? o.serverCookies.isEnabledServerSideCookies.value && i === W ? (this.serverSideCookieDebounceFuncs[e] && globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]), this.serverSideCookieDebounceFuncs[e] = globalThis.setTimeout(() => {
2980
2954
  this.setServerSideCookies([{ name: c, value: n }], (d, h) => {
2981
2955
  l == null || l.set(d, h);
2982
2956
  }, l);
2983
- }, Ka)) : l == null || l.set(c, n) : l == null || l.remove(c);
2957
+ }, za)) : l == null || l.set(c, n) : l == null || l.remove(c);
2984
2958
  }
2985
2959
  }
2986
2960
  /**
2987
2961
  * Function to update storage whenever state value changes
2988
2962
  */
2989
2963
  registerEffects() {
2990
- bi.forEach((e) => {
2991
- fe(() => {
2964
+ vi.forEach((e) => {
2965
+ ve(() => {
2992
2966
  this.syncValueToStorage(e, o.session[e].value);
2993
2967
  });
2994
2968
  });
@@ -3004,7 +2978,7 @@ class qc {
3004
2978
  setAnonymousId(e, n) {
3005
2979
  var i;
3006
2980
  let s = e;
3007
- (!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;
2981
+ (!U(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 = O.anonymousId, o.session.anonymousId.value = s;
3008
2982
  }
3009
2983
  /**
3010
2984
  * Fetches anonymousId
@@ -3014,16 +2988,16 @@ class qc {
3014
2988
  getAnonymousId(e) {
3015
2989
  var s, i;
3016
2990
  const n = (s = o.storage.entries.value.anonymousId) == null ? void 0 : s.type;
3017
- if (it(n)) {
2991
+ if (st(n)) {
3018
2992
  let r = o.session.anonymousId.value;
3019
- (!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();
2993
+ (!r || r === O.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();
3020
2994
  }
3021
2995
  return o.session.anonymousId.value;
3022
2996
  }
3023
2997
  getEntryValue(e) {
3024
2998
  var i, r, a;
3025
2999
  const n = o.storage.entries.value, s = (i = n[e]) == null ? void 0 : i.type;
3026
- if (it(s)) {
3000
+ if (st(s)) {
3027
3001
  const u = (r = this.storeManager) == null ? void 0 : r.getStore(Fe[s]);
3028
3002
  this.migrateStorageIfNeeded([u], [e]);
3029
3003
  const l = (a = n[e]) == null ? void 0 : a.key;
@@ -3096,7 +3070,7 @@ class qc {
3096
3070
  * @returns
3097
3071
  */
3098
3072
  getSessionId() {
3099
- const e = this.getSessionInfo() ?? A.sessionInfo;
3073
+ const e = this.getSessionInfo() ?? O.sessionInfo;
3100
3074
  return e.autoTrack && !cs(e) || e.manualTrack ? e.id ?? null : null;
3101
3075
  }
3102
3076
  /**
@@ -3104,7 +3078,7 @@ class qc {
3104
3078
  * before using it for building event payloads.
3105
3079
  */
3106
3080
  refreshSession() {
3107
- let e = this.getSessionInfo() ?? A.sessionInfo;
3081
+ let e = this.getSessionInfo() ?? O.sessionInfo;
3108
3082
  (e.autoTrack || e.manualTrack) && (e.autoTrack && (this.startOrRenewAutoTracking(e), e = o.session.sessionInfo.value), e.sessionStart === void 0 ? e = { ...e, sessionStart: !0 } : e.sessionStart && (e = { ...e, sessionStart: !1 })), o.session.sessionInfo.value = e, o.lifecycle.status.value !== "readyExecuted" && this.syncValueToStorage("sessionInfo", e);
3109
3083
  }
3110
3084
  /**
@@ -3116,9 +3090,9 @@ class qc {
3116
3090
  reset(e, n) {
3117
3091
  const { session: s } = o, { manualTrack: i, autoTrack: r, timeout: a, cutOff: u } = s.sessionInfo.value;
3118
3092
  j(() => {
3119
- if (s.userId.value = A.userId, s.userTraits.value = A.userTraits, s.groupId.value = A.groupId, s.groupTraits.value = A.groupTraits, s.authToken.value = A.authToken, e === !0 && this.setAnonymousId(), !n)
3093
+ if (s.userId.value = O.userId, s.userTraits.value = O.userTraits, s.groupId.value = O.groupId, s.groupTraits.value = O.groupTraits, s.authToken.value = O.authToken, e === !0 && this.setAnonymousId(), !n)
3120
3094
  if (r) {
3121
- const l = { ...A.sessionInfo, timeout: a };
3095
+ const l = { ...O.sessionInfo, timeout: a };
3122
3096
  u && (l.cutOff = { enabled: u.enabled, duration: u.duration }), s.sessionInfo.value = l, this.startOrRenewAutoTracking(s.sessionInfo.value);
3123
3097
  } else i && this.startManualTrackingInternal();
3124
3098
  });
@@ -3128,42 +3102,42 @@ class qc {
3128
3102
  * @param userId
3129
3103
  */
3130
3104
  setUserId(e) {
3131
- o.session.userId.value = this.isPersistenceEnabledForStorageEntry("userId") && e ? e : A.userId;
3105
+ o.session.userId.value = this.isPersistenceEnabledForStorageEntry("userId") && e ? e : O.userId;
3132
3106
  }
3133
3107
  /**
3134
3108
  * Set user traits
3135
3109
  * @param traits
3136
3110
  */
3137
3111
  setUserTraits(e) {
3138
- o.session.userTraits.value = this.isPersistenceEnabledForStorageEntry("userTraits") && M(e) ? H(o.session.userTraits.value ?? A.userTraits, e) : A.userTraits;
3112
+ o.session.userTraits.value = this.isPersistenceEnabledForStorageEntry("userTraits") && w(e) ? x(o.session.userTraits.value ?? O.userTraits, e) : O.userTraits;
3139
3113
  }
3140
3114
  /**
3141
3115
  * Set group Id
3142
3116
  * @param groupId
3143
3117
  */
3144
3118
  setGroupId(e) {
3145
- o.session.groupId.value = this.isPersistenceEnabledForStorageEntry("groupId") && e ? e : A.groupId;
3119
+ o.session.groupId.value = this.isPersistenceEnabledForStorageEntry("groupId") && e ? e : O.groupId;
3146
3120
  }
3147
3121
  /**
3148
3122
  * Set group traits
3149
3123
  * @param traits
3150
3124
  */
3151
3125
  setGroupTraits(e) {
3152
- o.session.groupTraits.value = this.isPersistenceEnabledForStorageEntry("groupTraits") && M(e) ? H(o.session.groupTraits.value ?? A.groupTraits, e) : A.groupTraits;
3126
+ o.session.groupTraits.value = this.isPersistenceEnabledForStorageEntry("groupTraits") && w(e) ? x(o.session.groupTraits.value ?? O.groupTraits, e) : O.groupTraits;
3153
3127
  }
3154
3128
  /**
3155
3129
  * Set initial referrer
3156
3130
  * @param referrer
3157
3131
  */
3158
3132
  setInitialReferrer(e) {
3159
- o.session.initialReferrer.value = this.isPersistenceEnabledForStorageEntry("initialReferrer") && e ? e : A.initialReferrer;
3133
+ o.session.initialReferrer.value = this.isPersistenceEnabledForStorageEntry("initialReferrer") && e ? e : O.initialReferrer;
3160
3134
  }
3161
3135
  /**
3162
3136
  * Set initial referring domain
3163
3137
  * @param {String} referringDomain
3164
3138
  */
3165
3139
  setInitialReferringDomain(e) {
3166
- o.session.initialReferringDomain.value = this.isPersistenceEnabledForStorageEntry("initialReferringDomain") && e ? e : A.initialReferringDomain;
3140
+ o.session.initialReferringDomain.value = this.isPersistenceEnabledForStorageEntry("initialReferringDomain") && e ? e : O.initialReferringDomain;
3167
3141
  }
3168
3142
  /**
3169
3143
  * A function to check for existing session details and depending on that create a new session
@@ -3171,13 +3145,13 @@ class qc {
3171
3145
  startOrRenewAutoTracking(e) {
3172
3146
  let n = e;
3173
3147
  if (cs(e))
3174
- n = wc(e);
3148
+ n = Nc(e);
3175
3149
  else {
3176
3150
  const s = Date.now(), i = e.timeout;
3177
3151
  n.expiresAt = s + i;
3178
3152
  }
3179
- if (Di(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3180
- const s = Lc(n.cutOff);
3153
+ if (Oi(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3154
+ const s = Pc(n.cutOff);
3181
3155
  n.cutOff.expiresAt = s;
3182
3156
  }
3183
3157
  o.session.sessionInfo.value = n;
@@ -3188,7 +3162,7 @@ class qc {
3188
3162
  * @returns
3189
3163
  */
3190
3164
  start(e) {
3191
- o.session.sessionInfo.value = Mc(e, this.logger);
3165
+ o.session.sessionInfo.value = Lc(e, this.logger);
3192
3166
  }
3193
3167
  /**
3194
3168
  * An internal function to start manual session
@@ -3200,27 +3174,27 @@ class qc {
3200
3174
  * A public method to end an ongoing session.
3201
3175
  */
3202
3176
  end() {
3203
- o.session.sessionInfo.value = A.sessionInfo;
3177
+ o.session.sessionInfo.value = O.sessionInfo;
3204
3178
  }
3205
3179
  /**
3206
3180
  * Set auth token
3207
3181
  * @param userId
3208
3182
  */
3209
3183
  setAuthToken(e) {
3210
- o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : A.authToken;
3184
+ o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : O.authToken;
3211
3185
  }
3212
3186
  }
3213
- const zc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kc = (t, e) => {
3187
+ const jc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], qc = (t, e) => {
3214
3188
  var a;
3215
- const n = T(e);
3216
- 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));
3217
- }, ds = "dataplaneEventsQueue", fs = "destinationsEventsQueue", Yc = "transformEvent", Wc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3218
- const i = T(n);
3189
+ const n = I(e);
3190
+ return U(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 = he(n.integrations), Array.isArray(n.plugins) || (n.plugins = jc), 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), U(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = he(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Te(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = he(n.storage.cookie), n.storage.encryption = he(n.storage.encryption), n.storage = _t(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = he(n.destinationsQueueOptions), n.queueOptions = he(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Ii(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = he(n.beaconQueueOptions), n.preConsent = he(n.preConsent), n.sourceConfigurationOverride = he(n.sourceConfigurationOverride), x(t, _t(n));
3191
+ }, ds = "dataplaneEventsQueue", fs = "destinationsEventsQueue", zc = "transformEvent", Kc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3192
+ const i = I(n);
3219
3193
  return i[s] = t[s], i;
3220
- }, {}), Qc = (t, e) => {
3221
- const n = T(t), s = e.nativeDestinations.integrationsConfig.value, i = Wc(t.integrations, s);
3222
- return n.integrations = H(s, i), n;
3223
- }, Xc = (t) => {
3194
+ }, {}), Yc = (t, e) => {
3195
+ const n = I(t), s = e.nativeDestinations.integrationsConfig.value, i = Kc(t.integrations, s);
3196
+ return n.integrations = x(s, i), n;
3197
+ }, Wc = (t) => {
3224
3198
  var e;
3225
3199
  return t.consents.preConsent.value.enabled && ((e = t.consents.preConsent.value.events) == null ? void 0 : e.delivery) === "buffer";
3226
3200
  }, Ct = (t, e, n, s) => {
@@ -3229,12 +3203,12 @@ const zc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "De
3229
3203
  try {
3230
3204
  t(...e);
3231
3205
  } catch (i) {
3232
- s.error(_a(n), i);
3206
+ s.error(Ca(n), i);
3233
3207
  }
3234
3208
  else
3235
- s.error(ti(n));
3209
+ s.error(ei(n));
3236
3210
  };
3237
- class Jc {
3211
+ class Qc {
3238
3212
  /**
3239
3213
  *
3240
3214
  * @param pluginsManager Plugins manager instance
@@ -3249,16 +3223,16 @@ class Jc {
3249
3223
  * Initializes the event repository
3250
3224
  */
3251
3225
  init() {
3252
- 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(() => {
3226
+ this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${ds}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${zc}.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), ve(() => {
3253
3227
  var s, i;
3254
3228
  o.nativeDestinations.clientDestinationsReady.value === !0 && ((s = this.destinationsEventsQueue) == null || s.start(), (i = this.dmtEventsQueue) == null || i.start());
3255
3229
  });
3256
- const e = Xc(o);
3230
+ const e = Wc(o);
3257
3231
  let n;
3258
- fe(() => {
3232
+ ve(() => {
3259
3233
  var r, a;
3260
3234
  const s = o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && o.nativeDestinations.clientDestinationsReady.value === !1;
3261
- (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());
3235
+ (o.nativeDestinations.activeDestinations.value.some((u) => zl(u)) === !1 || s === !1) && !e && ((r = this.dataplaneEventsQueue) == null ? void 0 : r.scheduleTimeoutActive) !== !0 && (globalThis.clearTimeout(n), (a = this.dataplaneEventsQueue) == null || a.start());
3262
3236
  }), o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && (n = globalThis.setTimeout(() => {
3263
3237
  var s, i;
3264
3238
  ((s = this.dataplaneEventsQueue) == null ? void 0 : s.scheduleTimeoutActive) !== !0 && ((i = this.dataplaneEventsQueue) == null || i.start());
@@ -3274,9 +3248,9 @@ class Jc {
3274
3248
  * @param callback API callback function
3275
3249
  */
3276
3250
  enqueue(e, n) {
3277
- const s = Qc(e, o);
3251
+ const s = Yc(e, o);
3278
3252
  this.pluginsManager.invokeSingle(`${ds}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
3279
- const i = T(e);
3253
+ const i = I(e);
3280
3254
  this.pluginsManager.invokeSingle(`${fs}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
3281
3255
  const r = `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}${bn}`;
3282
3256
  Ct(n, [s], r, this.logger);
@@ -3285,30 +3259,30 @@ class Jc {
3285
3259
  const hs = (t) => {
3286
3260
  const e = new CustomEvent(t, { detail: { analyticsInstance: globalThis.rudderanalytics }, bubbles: !0, cancelable: !0, composed: !0 });
3287
3261
  globalThis.document.dispatchEvent(e);
3288
- }, Zc = (t) => L(t) && t.trim().length > 0, ed = (t) => Ke(t);
3289
- class td {
3262
+ }, Xc = (t) => U(t) && t.trim().length > 0, Jc = (t) => Ke(t);
3263
+ class Zc {
3290
3264
  /**
3291
3265
  * Initialize services and components or use default ones if singletons
3292
3266
  */
3293
3267
  constructor() {
3294
- 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);
3268
+ this.preloadBuffer = new Bo(), this.initialized = !1, this.errorHandler = ci, this.logger = ye, this.externalSrcLoader = new qs(this.logger), this.httpClient = ui, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Ic(this.httpClient, this.errorHandler, this.logger);
3295
3269
  }
3296
3270
  /**
3297
3271
  * Start application lifecycle if not already started
3298
3272
  */
3299
3273
  load(e, n, s = {}) {
3300
3274
  if (!o.lifecycle.status.value) {
3301
- if (!Zc(e)) {
3302
- this.logger.error(oa(jt, e));
3275
+ if (!Xc(e)) {
3276
+ this.logger.error(ra(jt, e));
3303
3277
  return;
3304
3278
  }
3305
- if (!ed(n)) {
3306
- this.logger.error(aa(jt, n));
3279
+ if (!Jc(n)) {
3280
+ this.logger.error(oa(jt, n));
3307
3281
  return;
3308
3282
  }
3309
3283
  j(() => {
3310
- 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";
3311
- }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Zs), ct("state", o, e), this.startLifecycle();
3284
+ o.lifecycle.writeKey.value = I(e), o.lifecycle.dataPlaneUrl.value = I(n), o.loadOptions.value = qc(o.loadOptions.value, s), o.lifecycle.status.value = "mounted";
3285
+ }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Js), ut("state", o, e), this.startLifecycle();
3312
3286
  }
3313
3287
  }
3314
3288
  // Start lifecycle methods
@@ -3316,7 +3290,7 @@ class td {
3316
3290
  * Orchestrate the lifecycle of the application phases/status
3317
3291
  */
3318
3292
  startLifecycle() {
3319
- fe(() => {
3293
+ ve(() => {
3320
3294
  try {
3321
3295
  switch (o.lifecycle.status.value) {
3322
3296
  case "mounted":
@@ -3358,7 +3332,7 @@ class td {
3358
3332
  });
3359
3333
  }
3360
3334
  onBrowserCapabilitiesReady() {
3361
- _o(this), this.prepareInternalServices(), this.loadConfig();
3335
+ Co(this), this.prepareInternalServices(), this.loadConfig();
3362
3336
  }
3363
3337
  onLoaded() {
3364
3338
  this.processBufferedEvents(), o.consents.preConsent.value.enabled === !0 ? o.lifecycle.status.value = "ready" : this.loadDestinations();
@@ -3373,7 +3347,7 @@ class td {
3373
3347
  * Enqueue in SDK preload buffer events, used from preloadBuffer component
3374
3348
  */
3375
3349
  enqueuePreloadBufferEvents(e) {
3376
- Array.isArray(e) && e.forEach((n) => this.preloadBuffer.enqueue(T(n)));
3350
+ Array.isArray(e) && e.forEach((n) => this.preloadBuffer.enqueue(I(n)));
3377
3351
  }
3378
3352
  /**
3379
3353
  * Process the buffer preloaded events by passing their arguments to the respective facade methods
@@ -3381,11 +3355,11 @@ class td {
3381
3355
  processDataInPreloadBuffer() {
3382
3356
  for (; this.preloadBuffer.size() > 0; ) {
3383
3357
  const e = this.preloadBuffer.dequeue();
3384
- e && Po([...e], this);
3358
+ e && _o([...e], this);
3385
3359
  }
3386
3360
  }
3387
3361
  prepareInternalServices() {
3388
- 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);
3362
+ this.pluginsManager = new tu(jl, this.errorHandler, this.logger), this.storeManager = new Ku(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new yc(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new Gc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Qc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new Hc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
3389
3363
  }
3390
3364
  /**
3391
3365
  * Load configuration
@@ -3414,7 +3388,7 @@ class td {
3414
3388
  onInitialized() {
3415
3389
  this.processDataInPreloadBuffer();
3416
3390
  const e = o.loadOptions.value.onLoaded;
3417
- Ct(e, [globalThis.rudderanalytics], Xr, this.logger), j(() => {
3391
+ Ct(e, [globalThis.rudderanalytics], Qr, this.logger), j(() => {
3418
3392
  o.lifecycle.loaded.value = !0, o.lifecycle.status.value = "loaded";
3419
3393
  }), this.initialized = !0, hs("RSA_Initialised");
3420
3394
  }
@@ -3454,7 +3428,7 @@ class td {
3454
3428
  o.lifecycle.status.value = "destinationsReady";
3455
3429
  return;
3456
3430
  }
3457
- o.lifecycle.status.value = "destinationsLoading", (s = this.pluginsManager) == null || s.invokeSingle("nativeDestinations.load", o, this.externalSrcLoader, this.errorHandler, this.logger), fe(() => {
3431
+ o.lifecycle.status.value = "destinationsLoading", (s = this.pluginsManager) == null || s.invokeSingle("nativeDestinations.load", o, this.externalSrcLoader, this.errorHandler, this.logger), ve(() => {
3458
3432
  (e === 0 || o.nativeDestinations.initializedDestinations.value.length + o.nativeDestinations.failedDestinations.value.length === e) && j(() => {
3459
3433
  o.lifecycle.status.value = "destinationsReady", o.nativeDestinations.clientDestinationsReady.value = !0;
3460
3434
  });
@@ -3476,7 +3450,7 @@ class td {
3476
3450
  return;
3477
3451
  }
3478
3452
  if (this.errorHandler.leaveBreadcrumb(`New ${s} invocation`), !S(e)) {
3479
- this.logger.error(ti(Gt));
3453
+ this.logger.error(ei(Gt));
3480
3454
  return;
3481
3455
  }
3482
3456
  o.lifecycle.status.value === "readyExecuted" ? Ct(e, [], Gt, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
@@ -3488,10 +3462,10 @@ class td {
3488
3462
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3489
3463
  return;
3490
3464
  }
3491
- 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, {
3465
+ 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, po, {
3492
3466
  // 'title' is intentionally omitted as it does not make sense
3493
3467
  // in v3 implementation
3494
- path: yo
3468
+ path: vo
3495
3469
  }, o.loadOptions.value.sendAdblockPageOptions));
3496
3470
  }
3497
3471
  track(e, n = !1) {
@@ -3601,14 +3575,14 @@ class td {
3601
3575
  return;
3602
3576
  }
3603
3577
  this.errorHandler.leaveBreadcrumb("New consent invocation"), j(() => {
3604
- o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = ac(e);
3605
- const { initialized: l, consentsData: c } = Ri(o.consents.postConsent.value.consentManagement, this.logger);
3578
+ o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = rc(e);
3579
+ const { initialized: l, consentsData: c } = Si(o.consents.postConsent.value.consentManagement, this.logger);
3606
3580
  o.consents.initialized.value = l, o.consents.data.value = c;
3607
3581
  }), 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);
3608
3582
  }
3609
3583
  sendTrackingEvents(e) {
3610
3584
  if (o.consents.postConsent.value.trackConsent) {
3611
- const n = yn(bo);
3585
+ const n = yn(yo);
3612
3586
  e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["track", n]] : this.track(n);
3613
3587
  }
3614
3588
  if (o.consents.postConsent.value.sendPageEvent) {
@@ -3632,13 +3606,13 @@ const _e = class _e {
3632
3606
  try {
3633
3607
  if (_e.globalSingleton)
3634
3608
  return _e.globalSingleton;
3635
- _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;
3609
+ _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 = Bt(), o.autoTrack.pageLifecycle.pageLoadedTimestamp.value = Date.now(), this.triggerBufferedLoadEvent(), globalThis.rudderanalytics = this;
3636
3610
  } catch (e) {
3637
3611
  B(e);
3638
3612
  }
3639
3613
  }
3640
3614
  static initializeGlobalResources() {
3641
- fi.init(), On.configure(), Tn.configure(), An.configure(), wt.configure();
3615
+ ci.init(), An.configure(), In.configure(), On.configure(), Mt.configure();
3642
3616
  }
3643
3617
  /**
3644
3618
  * Set instance to use if no specific writeKey is provided in methods
@@ -3646,7 +3620,7 @@ const _e = class _e {
3646
3620
  * TODO: to support multiple analytics instances in the near future
3647
3621
  */
3648
3622
  setDefaultInstanceKey(e) {
3649
- L(e) && e && (this.defaultAnalyticsKey = e);
3623
+ U(e) && e && (this.defaultAnalyticsKey = e);
3650
3624
  }
3651
3625
  /**
3652
3626
  * Retrieve an existing analytics instance
@@ -3654,7 +3628,7 @@ const _e = class _e {
3654
3628
  getAnalyticsInstance(e) {
3655
3629
  try {
3656
3630
  let n = e;
3657
- return (!L(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new td()), this.analyticsInstances[n];
3631
+ return (!U(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new Zc()), this.analyticsInstances[n];
3658
3632
  } catch (n) {
3659
3633
  B(n);
3660
3634
  return;
@@ -3673,8 +3647,8 @@ const _e = class _e {
3673
3647
  if (this.analyticsInstances[e])
3674
3648
  return;
3675
3649
  this.setDefaultInstanceKey(e), this.trackPageLifecycleEvents(s);
3676
- const r = qs(ot);
3677
- Co(r), ct(ot, T(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, O(s));
3650
+ const r = js(rt);
3651
+ Do(r), ut(rt, I(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, A(s));
3678
3652
  } catch (r) {
3679
3653
  B(r);
3680
3654
  }
@@ -3695,20 +3669,20 @@ const _e = class _e {
3695
3669
  * @param options
3696
3670
  */
3697
3671
  setupPageUnloadTracking(e, n, s) {
3698
- (e.length === 0 || e.includes(Ht.UNLOADED)) && (n === !0 ? io((i) => {
3672
+ (e.length === 0 || e.includes(Ht.UNLOADED)) && (n === !0 ? so((i) => {
3699
3673
  if (i === !1 && o.lifecycle.loaded.value) {
3700
3674
  const r = Date.now(), a = r - o.autoTrack.pageLifecycle.pageLoadedTimestamp.value;
3701
- this.track(Ht.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Fs(new Date(r)) });
3675
+ this.track(Ht.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Vs(new Date(r)) });
3702
3676
  }
3703
- }) : this.logger.warn(Ba(Zr)));
3677
+ }) : this.logger.warn(Ua(Jr)));
3704
3678
  }
3705
3679
  /**
3706
3680
  * Trigger load event in buffer queue if exists and stores the
3707
3681
  * remaining preloaded events array in global object
3708
3682
  */
3709
3683
  triggerBufferedLoadEvent() {
3710
- const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Do(e);
3711
- ct(ot, T([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3684
+ const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Ao(e);
3685
+ ut(rt, I([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3712
3686
  }
3713
3687
  /**
3714
3688
  * Get ready callback arguments and forward to ready call
@@ -3716,7 +3690,7 @@ const _e = class _e {
3716
3690
  ready(e) {
3717
3691
  var n;
3718
3692
  try {
3719
- (n = this.getAnalyticsInstance()) == null || n.ready(O(e));
3693
+ (n = this.getAnalyticsInstance()) == null || n.ready(A(e));
3720
3694
  } catch (s) {
3721
3695
  B(s);
3722
3696
  }
@@ -3728,7 +3702,7 @@ const _e = class _e {
3728
3702
  page(e, n, s, i, r) {
3729
3703
  var a;
3730
3704
  try {
3731
- (a = this.getAnalyticsInstance()) == null || a.page(Nt(O(e), O(n), O(s), O(i), O(r)));
3705
+ (a = this.getAnalyticsInstance()) == null || a.page(Nt(A(e), A(n), A(s), A(i), A(r)));
3732
3706
  } catch (u) {
3733
3707
  B(u);
3734
3708
  }
@@ -3740,7 +3714,7 @@ const _e = class _e {
3740
3714
  track(e, n, s, i) {
3741
3715
  var r;
3742
3716
  try {
3743
- (r = this.getAnalyticsInstance()) == null || r.track(yn(O(e), O(n), O(s), O(i)));
3717
+ (r = this.getAnalyticsInstance()) == null || r.track(yn(A(e), A(n), A(s), A(i)));
3744
3718
  } catch (a) {
3745
3719
  B(a);
3746
3720
  }
@@ -3752,7 +3726,7 @@ const _e = class _e {
3752
3726
  identify(e, n, s, i) {
3753
3727
  var r;
3754
3728
  try {
3755
- (r = this.getAnalyticsInstance()) == null || r.identify($s(O(e), O(n), O(s), O(i)));
3729
+ (r = this.getAnalyticsInstance()) == null || r.identify(Ms(A(e), A(n), A(s), A(i)));
3756
3730
  } catch (a) {
3757
3731
  B(a);
3758
3732
  }
@@ -3764,7 +3738,7 @@ const _e = class _e {
3764
3738
  alias(e, n, s, i) {
3765
3739
  var r;
3766
3740
  try {
3767
- (r = this.getAnalyticsInstance()) == null || r.alias(Us(O(e), O(n), O(s), O(i)));
3741
+ (r = this.getAnalyticsInstance()) == null || r.alias($s(A(e), A(n), A(s), A(i)));
3768
3742
  } catch (a) {
3769
3743
  B(a);
3770
3744
  }
@@ -3776,7 +3750,7 @@ const _e = class _e {
3776
3750
  group(e, n, s, i) {
3777
3751
  var r;
3778
3752
  try {
3779
- (r = this.getAnalyticsInstance()) == null || r.group(Bs(O(e), O(n), O(s), O(i)));
3753
+ (r = this.getAnalyticsInstance()) == null || r.group(Us(A(e), A(n), A(s), A(i)));
3780
3754
  } catch (a) {
3781
3755
  B(a);
3782
3756
  }
@@ -3784,7 +3758,7 @@ const _e = class _e {
3784
3758
  reset(e) {
3785
3759
  var n;
3786
3760
  try {
3787
- (n = this.getAnalyticsInstance()) == null || n.reset(O(e));
3761
+ (n = this.getAnalyticsInstance()) == null || n.reset(A(e));
3788
3762
  } catch (s) {
3789
3763
  B(s);
3790
3764
  }
@@ -3792,7 +3766,7 @@ const _e = class _e {
3792
3766
  getAnonymousId(e) {
3793
3767
  var n;
3794
3768
  try {
3795
- return (n = this.getAnalyticsInstance()) == null ? void 0 : n.getAnonymousId(O(e));
3769
+ return (n = this.getAnalyticsInstance()) == null ? void 0 : n.getAnonymousId(A(e));
3796
3770
  } catch (s) {
3797
3771
  B(s);
3798
3772
  return;
@@ -3801,7 +3775,7 @@ const _e = class _e {
3801
3775
  setAnonymousId(e, n) {
3802
3776
  var s;
3803
3777
  try {
3804
- (s = this.getAnalyticsInstance()) == null || s.setAnonymousId(O(e), O(n));
3778
+ (s = this.getAnalyticsInstance()) == null || s.setAnonymousId(A(e), A(n));
3805
3779
  } catch (i) {
3806
3780
  B(i);
3807
3781
  }
@@ -3845,7 +3819,7 @@ const _e = class _e {
3845
3819
  startSession(e) {
3846
3820
  var n;
3847
3821
  try {
3848
- (n = this.getAnalyticsInstance()) == null || n.startSession(O(e));
3822
+ (n = this.getAnalyticsInstance()) == null || n.startSession(A(e));
3849
3823
  } catch (s) {
3850
3824
  B(s);
3851
3825
  }
@@ -3870,7 +3844,7 @@ const _e = class _e {
3870
3844
  setAuthToken(e) {
3871
3845
  var n;
3872
3846
  try {
3873
- (n = this.getAnalyticsInstance()) == null || n.setAuthToken(O(e));
3847
+ (n = this.getAnalyticsInstance()) == null || n.setAuthToken(A(e));
3874
3848
  } catch (s) {
3875
3849
  B(s);
3876
3850
  }
@@ -3878,7 +3852,7 @@ const _e = class _e {
3878
3852
  consent(e) {
3879
3853
  var n;
3880
3854
  try {
3881
- (n = this.getAnalyticsInstance()) == null || n.consent(O(e));
3855
+ (n = this.getAnalyticsInstance()) == null || n.consent(A(e));
3882
3856
  } catch (s) {
3883
3857
  B(s);
3884
3858
  }
@@ -3888,19 +3862,19 @@ const _e = class _e {
3888
3862
  // eslint-disable-next-line sonarjs/public-static-readonly
3889
3863
  N(_e, "globalSingleton", null);
3890
3864
  let fn = _e;
3891
- const nd = {
3892
- [Ze.Production]: "2R6mT9xSJCcbvr6JkiEu7vbrUSW",
3893
- [Ze.Sandbox]: "2R6mEpjiTJBErRIn724pt2MWyLA",
3894
- [Ze.Staging]: "2R6llJi7YSuOeJToPXGlQfizt18",
3895
- [Ze.CiCd]: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
3896
- [Ze.Local]: "2QHmFAx84bL4Up6CDHRw0XkKJKC"
3897
- }, sd = "https://revolugohxxwg.dataplane.rudderstack.com", id = window.RevolugoElements.config.apiEnvironment, rd = nd[id], Ci = new fn();
3865
+ const ed = {
3866
+ [Je.Production]: "2R6mT9xSJCcbvr6JkiEu7vbrUSW",
3867
+ [Je.Sandbox]: "2R6mEpjiTJBErRIn724pt2MWyLA",
3868
+ [Je.Staging]: "2R6llJi7YSuOeJToPXGlQfizt18",
3869
+ [Je.CiCd]: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
3870
+ [Je.Local]: "2QHmFAx84bL4Up6CDHRw0XkKJKC"
3871
+ }, td = "https://revolugohxxwg.dataplane.rudderstack.com", nd = window.RevolugoElements.config.apiEnvironment, sd = ed[nd], Ai = new fn();
3898
3872
  try {
3899
- Ci.load(rd, sd);
3873
+ Ai.load(sd, td);
3900
3874
  } catch (t) {
3901
3875
  console.error(t);
3902
3876
  }
3903
- const _i = {
3877
+ const Di = {
3904
3878
  adultCount: {
3905
3879
  type: Number
3906
3880
  },
@@ -3916,10 +3890,10 @@ const _i = {
3916
3890
  startDate: {
3917
3891
  type: String
3918
3892
  }
3919
- }, Pi = hn({
3893
+ }, Ci = hn({
3920
3894
  components: {
3921
- BPhoneInput: dr,
3922
- BSearchLocationInput: or
3895
+ BPhoneInput: ur,
3896
+ BSearchLocationInput: rr
3923
3897
  },
3924
3898
  data() {
3925
3899
  return {
@@ -3967,7 +3941,7 @@ const _i = {
3967
3941
  var e, n;
3968
3942
  this.isSubmitting = !0;
3969
3943
  let t = ((e = this.config.eventMetadata) == null ? void 0 : e.name) || "";
3970
- (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ci.track(
3944
+ (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ai.track(
3971
3945
  "accommodation-request",
3972
3946
  {
3973
3947
  data: {
@@ -3984,7 +3958,7 @@ const _i = {
3984
3958
  }
3985
3959
  },
3986
3960
  name: "ContactForm",
3987
- props: _i,
3961
+ props: Di,
3988
3962
  setup() {
3989
3963
  const { t } = gn();
3990
3964
  return {
@@ -4161,7 +4135,7 @@ function gs(t) {
4161
4135
  }
4162
4136
  });
4163
4137
  }
4164
- const Ni = Te({
4138
+ const _i = Ie({
4165
4139
  active: {
4166
4140
  type: [String, Array],
4167
4141
  default: void 0
@@ -4189,7 +4163,7 @@ const Ni = Te({
4189
4163
  }
4190
4164
  }, "VDatePickerControls"), ms = Me()({
4191
4165
  name: "VDatePickerControls",
4192
- props: Ni(),
4166
+ props: _i(),
4193
4167
  emits: {
4194
4168
  "click:year": () => !0,
4195
4169
  "click:month": () => !0,
@@ -4201,7 +4175,7 @@ const Ni = Te({
4201
4175
  let {
4202
4176
  emit: n
4203
4177
  } = e;
4204
- const s = U(() => Array.isArray(t.disabled) ? t.disabled.includes("text") : !!t.disabled), i = U(() => Array.isArray(t.disabled) ? t.disabled.includes("mode") : !!t.disabled), r = U(() => Array.isArray(t.disabled) ? t.disabled.includes("prev") : !!t.disabled), a = U(() => Array.isArray(t.disabled) ? t.disabled.includes("next") : !!t.disabled);
4178
+ const s = $(() => Array.isArray(t.disabled) ? t.disabled.includes("text") : !!t.disabled), i = $(() => Array.isArray(t.disabled) ? t.disabled.includes("mode") : !!t.disabled), r = $(() => Array.isArray(t.disabled) ? t.disabled.includes("prev") : !!t.disabled), a = $(() => Array.isArray(t.disabled) ? t.disabled.includes("next") : !!t.disabled);
4205
4179
  function u() {
4206
4180
  n("click:prev");
4207
4181
  }
@@ -4232,7 +4206,7 @@ const Ni = Te({
4232
4206
  icon: t.modeIcon,
4233
4207
  variant: "text",
4234
4208
  onClick: c
4235
- }, null), b(gr, null, null), b("div", {
4209
+ }, null), b(fr, null, null), b("div", {
4236
4210
  class: "v-date-picker-controls__month"
4237
4211
  }, [b(ae, {
4238
4212
  "data-testid": "prev-month",
@@ -4248,15 +4222,15 @@ const Ni = Te({
4248
4222
  onClick: l
4249
4223
  }, null)])])), {};
4250
4224
  }
4251
- }), od = Te({
4225
+ }), id = Ie({
4252
4226
  appendIcon: vt,
4253
4227
  color: String,
4254
4228
  header: String,
4255
4229
  transition: String,
4256
- onClick: Hi()
4230
+ onClick: Fi()
4257
4231
  }, "VDatePickerHeader"), ps = Me()({
4258
4232
  name: "VDatePickerHeader",
4259
- props: od(),
4233
+ props: id(),
4260
4234
  emits: {
4261
4235
  click: () => !0,
4262
4236
  "click:append": () => !0
@@ -4300,7 +4274,7 @@ const Ni = Te({
4300
4274
  }
4301
4275
  }), c && b("div", {
4302
4276
  class: "v-date-picker-header__append"
4303
- }, [s.append ? b($t, {
4277
+ }, [s.append ? b(Ut, {
4304
4278
  key: "append-defaults",
4305
4279
  disabled: !t.appendIcon,
4306
4280
  defaults: {
@@ -4322,7 +4296,7 @@ const Ni = Te({
4322
4296
  }, null)])]);
4323
4297
  }), {};
4324
4298
  }
4325
- }), ad = Te({
4299
+ }), rd = Ie({
4326
4300
  allowedDates: [Array, Function],
4327
4301
  disabled: {
4328
4302
  type: Boolean,
@@ -4345,17 +4319,17 @@ const Ni = Te({
4345
4319
  },
4346
4320
  firstDayOfWeek: [Number, String]
4347
4321
  }, "calendar");
4348
- function ld(t) {
4349
- 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) => {
4322
+ function od(t) {
4323
+ const e = dt(), n = Le(t, "modelValue", [], (f) => yt(f)), s = $(() => 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) => {
4350
4324
  const m = f != null ? Number(f) : e.getYear(s.value);
4351
4325
  return e.startOfYear(e.setYear(e.date(), m));
4352
4326
  }, (f) => e.getYear(f)), r = Le(t, "month", void 0, (f) => {
4353
4327
  const m = f != null ? Number(f) : e.getMonth(s.value), v = e.setYear(e.startOfMonth(e.date()), e.getYear(i.value));
4354
4328
  return e.setMonth(v, m);
4355
- }, (f) => e.getMonth(f)), a = U(() => t.firstDayOfWeek ?? t.weekdays[0]), u = U(() => {
4329
+ }, (f) => e.getMonth(f)), a = $(() => t.firstDayOfWeek ?? t.weekdays[0]), u = $(() => {
4356
4330
  const f = Number(t.firstDayOfWeek ?? 0);
4357
4331
  return t.weekdays.map((m) => (m + f) % 7);
4358
- }), l = U(() => {
4332
+ }), l = $(() => {
4359
4333
  const f = e.getWeekArray(r.value, a.value), m = f.flat(), v = 6 * 7;
4360
4334
  if (t.weeksInMonth === "static" && m.length < v) {
4361
4335
  const k = m[m.length - 1];
@@ -4367,7 +4341,7 @@ function ld(t) {
4367
4341
  });
4368
4342
  function c(f, m) {
4369
4343
  return f.filter((v) => u.value.includes(e.toJsDate(v).getDay())).map((v, k) => {
4370
- const E = e.toISO(v), P = !e.isSameMonth(v, r.value), z = e.isSameDay(v, e.startOfMonth(r.value)), G = e.isSameDay(v, e.endOfMonth(r.value)), J = e.isSameDay(v, r.value);
4344
+ const E = e.toISO(v), P = !e.isSameMonth(v, r.value), z = e.isSameDay(v, e.startOfMonth(r.value)), H = e.isSameDay(v, e.endOfMonth(r.value)), J = e.isSameDay(v, r.value);
4371
4345
  return {
4372
4346
  date: v,
4373
4347
  isoDate: E,
@@ -4381,23 +4355,23 @@ function ld(t) {
4381
4355
  isAdjacent: P,
4382
4356
  isHidden: P && !t.showAdjacentMonths,
4383
4357
  isStart: z,
4384
- isSelected: n.value.some((he) => e.isSameDay(v, he)),
4385
- isEnd: G,
4358
+ isSelected: n.value.some((fe) => e.isSameDay(v, fe)),
4359
+ isEnd: H,
4386
4360
  isSame: J,
4387
4361
  localized: e.format(v, "dayOfMonth")
4388
4362
  };
4389
4363
  });
4390
4364
  }
4391
- const d = U(() => {
4365
+ const d = $(() => {
4392
4366
  const f = e.startOfWeek(s.value, t.firstDayOfWeek), m = [];
4393
4367
  for (let k = 0; k <= 6; k++)
4394
4368
  m.push(e.addDays(f, k));
4395
4369
  const v = e.date();
4396
4370
  return c(m, v);
4397
- }), h = U(() => {
4371
+ }), h = $(() => {
4398
4372
  const f = l.value.flat(), m = e.date();
4399
4373
  return c(f, m);
4400
- }), y = U(() => l.value.map((f) => f.length ? Gi(e, f[0]) : null));
4374
+ }), y = $(() => l.value.map((f) => f.length ? xi(e, f[0]) : null));
4401
4375
  function g(f) {
4402
4376
  if (t.disabled) return !0;
4403
4377
  const m = e.date(f);
@@ -4414,7 +4388,7 @@ function ld(t) {
4414
4388
  weekNumbers: y
4415
4389
  };
4416
4390
  }
4417
- const Li = Te({
4391
+ const Pi = Ie({
4418
4392
  color: String,
4419
4393
  hideWeekdays: Boolean,
4420
4394
  multiple: [Boolean, Number, String],
@@ -4427,10 +4401,10 @@ const Li = Te({
4427
4401
  type: String,
4428
4402
  default: "picker-reverse-transition"
4429
4403
  },
4430
- ...lt(ad(), ["displayValue"])
4404
+ ...at(rd(), ["displayValue"])
4431
4405
  }, "VDatePickerMonth"), vs = Me()({
4432
4406
  name: "VDatePickerMonth",
4433
- props: Li(),
4407
+ props: Pi(),
4434
4408
  emits: {
4435
4409
  "update:modelValue": (t) => !0,
4436
4410
  "update:month": (t) => !0,
@@ -4445,13 +4419,13 @@ const Li = Te({
4445
4419
  daysInMonth: r,
4446
4420
  model: a,
4447
4421
  weekNumbers: u
4448
- } = ld(t), l = ft(), c = bt(), d = bt(), h = bt(!1), y = U(() => h.value ? t.reverseTransition : t.transition);
4422
+ } = od(t), l = dt(), c = bt(), d = bt(), h = bt(!1), y = $(() => h.value ? t.reverseTransition : t.transition);
4449
4423
  t.multiple === "range" && a.value.length > 0 && (c.value = a.value[0], a.value.length > 1 && (d.value = a.value[a.value.length - 1]));
4450
- const g = U(() => {
4424
+ const g = $(() => {
4451
4425
  const k = ["number", "string"].includes(typeof t.multiple) ? Number(t.multiple) : 1 / 0;
4452
4426
  return a.value.length >= k;
4453
4427
  });
4454
- Is(r, (k, E) => {
4428
+ Ts(r, (k, E) => {
4455
4429
  E && (h.value = l.isBefore(k[0].date, E[0].date));
4456
4430
  });
4457
4431
  function f(k) {
@@ -4466,8 +4440,8 @@ const Li = Te({
4466
4440
  return;
4467
4441
  } else l.isBefore(E, c.value) ? (d.value = l.endOfDay(c.value), c.value = E) : d.value = l.endOfDay(E);
4468
4442
  const P = l.getDiff(d.value, c.value, "days"), z = [c.value];
4469
- for (let G = 1; G < P; G++) {
4470
- const J = l.addDays(c.value, G);
4443
+ for (let H = 1; H < P; H++) {
4444
+ const J = l.addDays(c.value, H);
4471
4445
  z.push(J);
4472
4446
  }
4473
4447
  z.push(d.value), a.value = z;
@@ -4523,7 +4497,7 @@ const Li = Te({
4523
4497
  "v-date-picker-month__day--week-start": E.isWeekStart
4524
4498
  }],
4525
4499
  "data-v-date": E.isDisabled ? void 0 : E.isoDate
4526
- }, [(t.showAdjacentMonths || !E.isAdjacent) && b($t, {
4500
+ }, [(t.showAdjacentMonths || !E.isAdjacent) && b(Ut, {
4527
4501
  defaults: {
4528
4502
  VBtn: {
4529
4503
  class: "v-date-picker-month__day-btn",
@@ -4538,15 +4512,15 @@ const Li = Te({
4538
4512
  }
4539
4513
  }, {
4540
4514
  default: () => {
4541
- var G;
4542
- return [((G = s.day) == null ? void 0 : G.call(s, z)) ?? b(ae, z.props, null)];
4515
+ var H;
4516
+ return [((H = s.day) == null ? void 0 : H.call(s, z)) ?? b(ae, z.props, null)];
4543
4517
  }
4544
4518
  })]);
4545
4519
  })])];
4546
4520
  }
4547
4521
  })]);
4548
4522
  }
4549
- }), wi = Te({
4523
+ }), Ni = Ie({
4550
4524
  color: String,
4551
4525
  height: [String, Number],
4552
4526
  min: null,
@@ -4555,7 +4529,7 @@ const Li = Te({
4555
4529
  year: Number
4556
4530
  }, "VDatePickerMonths"), ys = Me()({
4557
4531
  name: "VDatePickerMonths",
4558
- props: wi(),
4532
+ props: Ni(),
4559
4533
  emits: {
4560
4534
  "update:modelValue": (t) => !0
4561
4535
  },
@@ -4564,9 +4538,9 @@ const Li = Te({
4564
4538
  emit: n,
4565
4539
  slots: s
4566
4540
  } = e;
4567
- const i = ft(), r = Le(t, "modelValue"), a = U(() => {
4541
+ const i = dt(), r = Le(t, "modelValue"), a = $(() => {
4568
4542
  let u = i.startOfYear(i.date());
4569
- return t.year && (u = i.setYear(u, t.year)), Ts(12).map((l) => {
4543
+ return t.year && (u = i.setYear(u, t.year)), Is(12).map((l) => {
4570
4544
  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))));
4571
4545
  return u = i.getNextMonth(u), {
4572
4546
  isDisabled: d,
@@ -4575,12 +4549,12 @@ const Li = Te({
4575
4549
  };
4576
4550
  });
4577
4551
  });
4578
- return As(() => {
4552
+ return Os(() => {
4579
4553
  r.value = r.value ?? i.getMonth(i.date());
4580
4554
  }), Ye(() => b("div", {
4581
4555
  class: "v-date-picker-months",
4582
4556
  style: {
4583
- height: Os(t.height)
4557
+ height: As(t.height)
4584
4558
  }
4585
4559
  }, [b("div", {
4586
4560
  class: "v-date-picker-months__content"
@@ -4611,7 +4585,7 @@ const Li = Te({
4611
4585
  }, c), null);
4612
4586
  })])])), {};
4613
4587
  }
4614
- }), Mi = Te({
4588
+ }), Li = Ie({
4615
4589
  color: String,
4616
4590
  height: [String, Number],
4617
4591
  min: null,
@@ -4619,7 +4593,7 @@ const Li = Te({
4619
4593
  modelValue: Number
4620
4594
  }, "VDatePickerYears"), bs = Me()({
4621
4595
  name: "VDatePickerYears",
4622
- props: Mi(),
4596
+ props: Li(),
4623
4597
  emits: {
4624
4598
  "update:modelValue": (t) => !0
4625
4599
  },
@@ -4628,12 +4602,12 @@ const Li = Te({
4628
4602
  emit: n,
4629
4603
  slots: s
4630
4604
  } = e;
4631
- const i = ft(), r = Le(t, "modelValue"), a = U(() => {
4605
+ const i = dt(), r = Le(t, "modelValue"), a = $(() => {
4632
4606
  const l = i.getYear(i.date());
4633
4607
  let c = l - 100, d = l + 52;
4634
4608
  t.min && (c = i.getYear(i.date(t.min))), t.max && (d = i.getYear(i.date(t.max)));
4635
4609
  let h = i.startOfYear(i.date());
4636
- return h = i.setYear(h, c), Ts(d - c + 1, c).map((y) => {
4610
+ return h = i.setYear(h, c), Is(d - c + 1, c).map((y) => {
4637
4611
  const g = i.format(h, "year");
4638
4612
  return h = i.setYear(h, i.getYear(h) + 1), {
4639
4613
  text: g,
@@ -4641,19 +4615,19 @@ const Li = Te({
4641
4615
  };
4642
4616
  });
4643
4617
  });
4644
- As(() => {
4618
+ Os(() => {
4645
4619
  r.value = r.value ?? i.getYear(i.date());
4646
4620
  });
4647
- const u = ji();
4648
- return qi(async () => {
4621
+ const u = Hi();
4622
+ return Gi(async () => {
4649
4623
  var l;
4650
- await zi(), (l = u.el) == null || l.scrollIntoView({
4624
+ await ji(), (l = u.el) == null || l.scrollIntoView({
4651
4625
  block: "center"
4652
4626
  });
4653
4627
  }), Ye(() => b("div", {
4654
4628
  class: "v-date-picker-years",
4655
4629
  style: {
4656
- height: Os(t.height)
4630
+ height: As(t.height)
4657
4631
  }
4658
4632
  }, [b("div", {
4659
4633
  class: "v-date-picker-years__content"
@@ -4683,15 +4657,15 @@ const Li = Te({
4683
4657
  }, d), null);
4684
4658
  })])])), {};
4685
4659
  }
4686
- }), ud = pr("v-picker-title"), $i = Te({
4660
+ }), ad = gr("v-picker-title"), wi = Ie({
4687
4661
  bgColor: String,
4688
4662
  landscape: Boolean,
4689
4663
  title: String,
4690
4664
  hideHeader: Boolean,
4691
- ...yr()
4665
+ ...pr()
4692
4666
  }, "VPicker"), Es = Me()({
4693
4667
  name: "VPicker",
4694
- props: $i(),
4668
+ props: wi(),
4695
4669
  setup(t, e) {
4696
4670
  let {
4697
4671
  slots: n
@@ -4699,7 +4673,7 @@ const Li = Te({
4699
4673
  const {
4700
4674
  backgroundColorClasses: s,
4701
4675
  backgroundColorStyles: i
4702
- } = Ps(Ki(t, "color"));
4676
+ } = Ps(qi(t, "color"));
4703
4677
  return Ye(() => {
4704
4678
  const r = Cn.filterProps(t), a = !!(t.title || n.title);
4705
4679
  return b(Cn, re(r, {
@@ -4716,7 +4690,7 @@ const Li = Te({
4716
4690
  key: "header",
4717
4691
  class: [s.value],
4718
4692
  style: [i.value]
4719
- }, [a && b(ud, {
4693
+ }, [a && b(ad, {
4720
4694
  key: "picker-title"
4721
4695
  }, {
4722
4696
  default: () => {
@@ -4727,7 +4701,7 @@ const Li = Te({
4727
4701
  class: "v-picker__header"
4728
4702
  }, [n.header()])]), b("div", {
4729
4703
  class: "v-picker__body"
4730
- }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b($t, {
4704
+ }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b(Ut, {
4731
4705
  defaults: {
4732
4706
  VBtn: {
4733
4707
  slim: !0,
@@ -4743,7 +4717,7 @@ const Li = Te({
4743
4717
  });
4744
4718
  }), {};
4745
4719
  }
4746
- }), cd = Te({
4720
+ }), ld = Ie({
4747
4721
  // TODO: implement in v3.5
4748
4722
  // calendarIcon: {
4749
4723
  // type: String,
@@ -4769,19 +4743,19 @@ const Li = Te({
4769
4743
  type: String,
4770
4744
  default: "$vuetify.datePicker.header"
4771
4745
  },
4772
- ...Ni(),
4773
- ...Li({
4746
+ ..._i(),
4747
+ ...Pi({
4774
4748
  weeksInMonth: "static"
4775
4749
  }),
4776
- ...lt(wi(), ["modelValue"]),
4777
- ...lt(Mi(), ["modelValue"]),
4778
- ...$i({
4750
+ ...at(Ni(), ["modelValue"]),
4751
+ ...at(Li(), ["modelValue"]),
4752
+ ...wi({
4779
4753
  title: "$vuetify.datePicker.title"
4780
4754
  }),
4781
4755
  modelValue: null
4782
4756
  }, "VDatePicker"), Ss = Me()({
4783
4757
  name: "VDatePicker",
4784
- props: cd(),
4758
+ props: ld(),
4785
4759
  emits: {
4786
4760
  "update:modelValue": (t) => !0,
4787
4761
  "update:month": (t) => !0,
@@ -4794,72 +4768,72 @@ const Li = Te({
4794
4768
  emit: n,
4795
4769
  slots: s
4796
4770
  } = e;
4797
- const i = ft(), {
4771
+ const i = dt(), {
4798
4772
  t: r
4799
- } = Yi(), a = Le(t, "modelValue", void 0, (I) => yt(I), (I) => t.multiple ? I : I[0]), u = Le(t, "viewMode"), l = U(() => {
4800
- const I = i.date(t.min);
4801
- return t.min && i.isValid(I) ? I : null;
4802
- }), c = U(() => {
4803
- const I = i.date(t.max);
4804
- return t.max && i.isValid(I) ? I : null;
4805
- }), d = U(() => {
4773
+ } = zi(), a = Le(t, "modelValue", void 0, (T) => yt(T), (T) => t.multiple ? T : T[0]), u = Le(t, "viewMode"), l = $(() => {
4774
+ const T = i.date(t.min);
4775
+ return t.min && i.isValid(T) ? T : null;
4776
+ }), c = $(() => {
4777
+ const T = i.date(t.max);
4778
+ return t.max && i.isValid(T) ? T : null;
4779
+ }), d = $(() => {
4806
4780
  var se;
4807
- const I = i.date();
4808
- let V = I;
4809
- 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;
4810
- }), 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(() => {
4811
- let I = i.date();
4812
- return I = i.setDate(I, 1), I = i.setMonth(I, h.value), I = i.setYear(I, y.value), i.format(I, "monthAndYear");
4813
- }), v = U(() => `date-picker-header${g.value ? "-reverse" : ""}-transition`), k = U(() => {
4781
+ const T = i.date();
4782
+ let V = T;
4783
+ return (se = a.value) != null && se[0] ? V = i.date(a.value[0]) : l.value && i.isBefore(T, l.value) ? V = l.value : c.value && i.isAfter(T, c.value) && (V = c.value), V && i.isValid(V) ? V : T;
4784
+ }), 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 = $(() => 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 = $(() => {
4785
+ let T = i.date();
4786
+ return T = i.setDate(T, 1), T = i.setMonth(T, h.value), T = i.setYear(T, y.value), i.format(T, "monthAndYear");
4787
+ }), v = $(() => `date-picker-header${g.value ? "-reverse" : ""}-transition`), k = $(() => {
4814
4788
  if (t.disabled) return !0;
4815
- const I = [];
4789
+ const T = [];
4816
4790
  if (u.value !== "month")
4817
- I.push("prev", "next");
4791
+ T.push("prev", "next");
4818
4792
  else {
4819
4793
  let V = i.date();
4820
4794
  if (V = i.startOfMonth(V), V = i.setMonth(V, h.value), V = i.setYear(V, y.value), l.value) {
4821
4795
  const se = i.addDays(i.startOfMonth(V), -1);
4822
- i.isAfter(l.value, se) && I.push("prev");
4796
+ i.isAfter(l.value, se) && T.push("prev");
4823
4797
  }
4824
4798
  if (c.value) {
4825
4799
  const se = i.addDays(i.endOfMonth(V), 1);
4826
- i.isAfter(se, c.value) && I.push("next");
4800
+ i.isAfter(se, c.value) && T.push("next");
4827
4801
  }
4828
4802
  }
4829
- return I;
4803
+ return T;
4830
4804
  });
4831
4805
  function E() {
4832
- h.value < 11 ? h.value++ : (y.value++, h.value = 0, Ae(y.value)), he(h.value);
4806
+ h.value < 11 ? h.value++ : (y.value++, h.value = 0, Oe(y.value)), fe(h.value);
4833
4807
  }
4834
4808
  function P() {
4835
- h.value > 0 ? h.value-- : (y.value--, h.value = 11, Ae(y.value)), he(h.value);
4809
+ h.value > 0 ? h.value-- : (y.value--, h.value = 11, Oe(y.value)), fe(h.value);
4836
4810
  }
4837
4811
  function z() {
4838
4812
  u.value = "month";
4839
4813
  }
4840
- function G() {
4814
+ function H() {
4841
4815
  u.value = u.value === "months" ? "month" : "months";
4842
4816
  }
4843
4817
  function J() {
4844
4818
  u.value = u.value === "year" ? "month" : "year";
4845
4819
  }
4846
- function he(I) {
4847
- u.value === "months" && G(), n("update:month", I);
4820
+ function fe(T) {
4821
+ u.value === "months" && H(), n("update:month", T);
4848
4822
  }
4849
- function Ae(I) {
4850
- u.value === "year" && J(), n("update:year", I);
4823
+ function Oe(T) {
4824
+ u.value === "year" && J(), n("update:year", T);
4851
4825
  }
4852
- return Is(a, (I, V) => {
4853
- const se = yt(V), Xe = yt(I);
4854
- if (!Xe.length) return;
4855
- const Ft = i.date(se[se.length - 1]), Je = i.date(Xe[Xe.length - 1]), $e = i.getMonth(Je), F = i.getYear(Je);
4856
- $e !== h.value && (h.value = $e, he(h.value)), F !== y.value && (y.value = F, Ae(y.value)), g.value = i.isBefore(Ft, Je);
4826
+ return Ts(a, (T, V) => {
4827
+ const se = yt(V), Qe = yt(T);
4828
+ if (!Qe.length) return;
4829
+ const Ft = i.date(se[se.length - 1]), Xe = i.date(Qe[Qe.length - 1]), $e = i.getMonth(Xe), F = i.getYear(Xe);
4830
+ $e !== h.value && (h.value = $e, fe(h.value)), F !== y.value && (y.value = F, Oe(y.value)), g.value = i.isBefore(Ft, Xe);
4857
4831
  }), Ye(() => {
4858
- 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 = {
4832
+ const T = Es.filterProps(t), V = ms.filterProps(t), se = ps.filterProps(t), Qe = vs.filterProps(t), Ft = at(ys.filterProps(t), ["modelValue"]), Xe = at(bs.filterProps(t), ["modelValue"]), $e = {
4859
4833
  header: f.value,
4860
4834
  transition: v.value
4861
4835
  };
4862
- return b(Es, re(I, {
4836
+ return b(Es, re(T, {
4863
4837
  class: ["v-date-picker", `v-date-picker--${u.value}`, {
4864
4838
  "v-date-picker--show-week": t.showWeek
4865
4839
  }, t.class],
@@ -4871,7 +4845,7 @@ const Li = Te({
4871
4845
  class: "v-date-picker__title"
4872
4846
  }, [r(t.title)]);
4873
4847
  },
4874
- header: () => s.header ? b($t, {
4848
+ header: () => s.header ? b(Ut, {
4875
4849
  defaults: {
4876
4850
  VDatePickerHeader: {
4877
4851
  ...$e
@@ -4895,35 +4869,35 @@ const Li = Te({
4895
4869
  text: m.value,
4896
4870
  "onClick:next": E,
4897
4871
  "onClick:prev": P,
4898
- "onClick:month": G,
4872
+ "onClick:month": H,
4899
4873
  "onClick:year": J
4900
- }), null), b(mr, {
4874
+ }), null), b(hr, {
4901
4875
  hideOnLeave: !0
4902
4876
  }, {
4903
4877
  default: () => [u.value === "months" ? b(ys, re({
4904
4878
  key: "date-picker-months"
4905
4879
  }, Ft, {
4906
4880
  modelValue: h.value,
4907
- "onUpdate:modelValue": [(F) => h.value = F, he],
4881
+ "onUpdate:modelValue": [(F) => h.value = F, fe],
4908
4882
  min: l.value,
4909
4883
  max: c.value,
4910
4884
  year: y.value
4911
4885
  }), null) : u.value === "year" ? b(bs, re({
4912
4886
  key: "date-picker-years"
4913
- }, Je, {
4887
+ }, Xe, {
4914
4888
  modelValue: y.value,
4915
- "onUpdate:modelValue": [(F) => y.value = F, Ae],
4889
+ "onUpdate:modelValue": [(F) => y.value = F, Oe],
4916
4890
  min: l.value,
4917
4891
  max: c.value
4918
4892
  }), null) : b(vs, re({
4919
4893
  key: "date-picker-month"
4920
- }, Xe, {
4894
+ }, Qe, {
4921
4895
  modelValue: a.value,
4922
4896
  "onUpdate:modelValue": (F) => a.value = F,
4923
4897
  month: h.value,
4924
- "onUpdate:month": [(F) => h.value = F, he],
4898
+ "onUpdate:month": [(F) => h.value = F, fe],
4925
4899
  year: y.value,
4926
- "onUpdate:year": [(F) => y.value = F, Ae],
4900
+ "onUpdate:year": [(F) => y.value = F, Oe],
4927
4901
  min: l.value,
4928
4902
  max: c.value
4929
4903
  }), null)]
@@ -4932,17 +4906,17 @@ const Li = Te({
4932
4906
  });
4933
4907
  }), {};
4934
4908
  }
4935
- }), dd = { class: "d-flex justify-end" };
4936
- function fd(t, e, n, s, i, r) {
4909
+ }), ud = { class: "d-flex justify-end" };
4910
+ function cd(t, e, n, s, i, r) {
4937
4911
  const a = oe("BPhoneInput"), u = oe("BSearchLocationInput");
4938
- return $(), pe("div", null, [
4939
- b(br, {
4912
+ return M(), me("div", null, [
4913
+ b(vr, {
4940
4914
  modelValue: t.isFormValid,
4941
4915
  "onUpdate:modelValue": e[13] || (e[13] = (l) => t.isFormValid = l),
4942
4916
  style: { gap: "8px", display: "flex", flexDirection: "column" }
4943
4917
  }, {
4944
4918
  default: _(() => [
4945
- b(et, {
4919
+ b(Ze, {
4946
4920
  modelValue: t.formData.email,
4947
4921
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.formData.email = l),
4948
4922
  density: "compact",
@@ -4962,7 +4936,7 @@ function fd(t, e, n, s, i, r) {
4962
4936
  "onUpdate:modelValue": e[1] || (e[1] = (l) => t.formData.phoneData = l),
4963
4937
  class: "mt-0"
4964
4938
  }, null, 8, ["modelValue"]),
4965
- b(rt, { class: "mt-0" }, {
4939
+ b(it, { class: "mt-0" }, {
4966
4940
  default: _(() => [
4967
4941
  b(Pe, null, {
4968
4942
  default: _(() => [
@@ -4974,7 +4948,7 @@ function fd(t, e, n, s, i, r) {
4974
4948
  transition: "scale-transition"
4975
4949
  }, {
4976
4950
  activator: _(({ props: l }) => [
4977
- b(et, re({
4951
+ b(Ze, re({
4978
4952
  "model-value": t.formatDate(t.formData.startDate),
4979
4953
  density: "compact",
4980
4954
  "hide-details": "",
@@ -5008,7 +4982,7 @@ function fd(t, e, n, s, i, r) {
5008
4982
  transition: "scale-transition"
5009
4983
  }, {
5010
4984
  activator: _(({ props: l }) => [
5011
- b(et, re({
4985
+ b(Ze, re({
5012
4986
  "model-value": t.formatDate(t.formData.endDate),
5013
4987
  density: "compact",
5014
4988
  "hide-details": "",
@@ -5035,11 +5009,11 @@ function fd(t, e, n, s, i, r) {
5035
5009
  ]),
5036
5010
  _: 1
5037
5011
  }),
5038
- b(rt, null, {
5012
+ b(it, null, {
5039
5013
  default: _(() => [
5040
5014
  b(Pe, null, {
5041
5015
  default: _(() => [
5042
- b(et, {
5016
+ b(Ze, {
5043
5017
  modelValue: t.formData.adultCount,
5044
5018
  "onUpdate:modelValue": e[8] || (e[8] = (l) => t.formData.adultCount = l),
5045
5019
  density: "compact",
@@ -5057,7 +5031,7 @@ function fd(t, e, n, s, i, r) {
5057
5031
  }),
5058
5032
  b(Pe, null, {
5059
5033
  default: _(() => [
5060
- b(et, {
5034
+ b(Ze, {
5061
5035
  modelValue: t.formData.roomCount,
5062
5036
  "onUpdate:modelValue": e[9] || (e[9] = (l) => t.formData.roomCount = l),
5063
5037
  density: "compact",
@@ -5083,7 +5057,7 @@ function fd(t, e, n, s, i, r) {
5083
5057
  variant: "outlined",
5084
5058
  "with-details": ""
5085
5059
  }, null, 8, ["modelValue"]),
5086
- b(fr, {
5060
+ b(cr, {
5087
5061
  modelValue: t.formData.specificRequest,
5088
5062
  "onUpdate:modelValue": e[11] || (e[11] = (l) => t.formData.specificRequest = l),
5089
5063
  density: "compact",
@@ -5091,7 +5065,7 @@ function fd(t, e, n, s, i, r) {
5091
5065
  variant: "outlined",
5092
5066
  color: "primary"
5093
5067
  }, null, 8, ["modelValue", "label"]),
5094
- Zt("div", dd, [
5068
+ Zt("div", ud, [
5095
5069
  b(ae, {
5096
5070
  color: t.isSuccess ? "green" : "primary",
5097
5071
  "data-cy": "submit-button",
@@ -5111,9 +5085,9 @@ function fd(t, e, n, s, i, r) {
5111
5085
  }, 8, ["modelValue"])
5112
5086
  ]);
5113
5087
  }
5114
- typeof gs == "function" && gs(Pi);
5115
- const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5116
- ..._i,
5088
+ typeof gs == "function" && gs(Ci);
5089
+ const dd = /* @__PURE__ */ mn(Ci, [["render", cd]]), fd = {
5090
+ ...Di,
5117
5091
  boilerplateSkeleton: {
5118
5092
  type: Boolean
5119
5093
  },
@@ -5130,10 +5104,10 @@ const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5130
5104
  type: {
5131
5105
  type: String
5132
5106
  }
5133
- }, Ui = hn({
5107
+ }, Mi = hn({
5134
5108
  components: {
5135
- BErrorOverlay: hr,
5136
- ContactForm: hd,
5109
+ BErrorOverlay: dr,
5110
+ ContactForm: dd,
5137
5111
  HotelOfferItemLayout: _s
5138
5112
  },
5139
5113
  computed: {
@@ -5205,7 +5179,7 @@ const hd = /* @__PURE__ */ mn(Pi, [["render", fd]]), gd = {
5205
5179
  },
5206
5180
  mixins: [Ds],
5207
5181
  name: "HotelOfferListEmpty",
5208
- props: gd,
5182
+ props: fd,
5209
5183
  setup() {
5210
5184
  const { t } = gn();
5211
5185
  return {
@@ -5397,11 +5371,11 @@ function ks(t) {
5397
5371
  }
5398
5372
  });
5399
5373
  }
5400
- const md = { class: "position-relative" };
5401
- function pd(t, e, n, s, i, r) {
5374
+ const hd = { class: "position-relative" };
5375
+ function gd(t, e, n, s, i, r) {
5402
5376
  const a = oe("HotelOfferItemLayout"), u = oe("ContactForm"), l = oe("BErrorOverlay");
5403
- return $(), pe("div", md, [
5404
- ($(), pe(xe, null, Cs(6, (c) => ($(), pe(xe, { key: c }, [
5377
+ return M(), me("div", hd, [
5378
+ (M(), me(xe, null, Cs(6, (c) => (M(), me(xe, { key: c }, [
5405
5379
  b(a, {
5406
5380
  boilerplate: t.boilerplateSkeleton,
5407
5381
  class: Et({
@@ -5410,9 +5384,9 @@ function pd(t, e, n, s, i, r) {
5410
5384
  "mb-2": t.$breakpointService.xs
5411
5385
  })
5412
5386
  }, null, 8, ["boilerplate", "class"]),
5413
- t.$breakpointService.xs ? Z("", !0) : ($(), Q(en, { key: 0 }))
5387
+ t.$breakpointService.xs ? Z("", !0) : (M(), Q(en, { key: 0 }))
5414
5388
  ], 64))), 64)),
5415
- t.typeData ? ($(), Q(l, {
5389
+ t.typeData ? (M(), Q(l, {
5416
5390
  key: 0,
5417
5391
  "z-index": 0
5418
5392
  }, {
@@ -5422,7 +5396,7 @@ function pd(t, e, n, s, i, r) {
5422
5396
  description: _(() => [
5423
5397
  Zt("div", null, [
5424
5398
  Zt("p", null, He(t.wording.description), 1),
5425
- t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? ($(), Q(u, {
5399
+ t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? (M(), Q(u, {
5426
5400
  key: 0,
5427
5401
  "adult-count": t.adultCount,
5428
5402
  "end-date": t.checkOutDate,
@@ -5431,7 +5405,7 @@ function pd(t, e, n, s, i, r) {
5431
5405
  "start-date": t.checkInDate,
5432
5406
  onAccommodationSuccess: e[0] || (e[0] = (c) => t.typeData = "accommodationSuccess")
5433
5407
  }, null, 8, ["adult-count", "end-date", "location", "room-count", "start-date"])) : Z("", !0),
5434
- t.typeData === "noResultsFiltered" ? ($(), Q(ae, {
5408
+ t.typeData === "noResultsFiltered" ? (M(), Q(ae, {
5435
5409
  key: 1,
5436
5410
  color: "primary",
5437
5411
  variant: "outlined",
@@ -5449,22 +5423,22 @@ function pd(t, e, n, s, i, r) {
5449
5423
  })) : Z("", !0)
5450
5424
  ]);
5451
5425
  }
5452
- typeof ks == "function" && ks(Ui);
5453
- const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5426
+ typeof ks == "function" && ks(Mi);
5427
+ const md = /* @__PURE__ */ mn(Mi, [["render", gd]]), $i = hn({
5454
5428
  components: {
5455
- BHotelOffersFilterBar: ur,
5456
- BHotelSearchBar: Sr,
5457
- HotelOfferItem: lr,
5429
+ BHotelOffersFilterBar: lr,
5430
+ BHotelSearchBar: br,
5431
+ HotelOfferItem: ar,
5458
5432
  HotelOfferItemLayout: _s,
5459
- HotelOfferListEmpty: vd,
5460
- HotelRoomOfferList: Er,
5461
- TermsAndConditions: Ir
5433
+ HotelOfferListEmpty: md,
5434
+ HotelRoomOfferList: yr,
5435
+ TermsAndConditions: kr
5462
5436
  },
5463
5437
  computed: {
5464
- ...Wi(
5465
- Ji,
5466
- Tr,
5467
- cr
5438
+ ...Ki(
5439
+ Xi,
5440
+ Rr,
5441
+ Qi
5468
5442
  ),
5469
5443
  areFiltersActive: be("hotelOffers/areFiltersActive"),
5470
5444
  displayFiltersMenu() {
@@ -5478,7 +5452,7 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5478
5452
  isPollingHotelOffers: be("hotelOffers/isPolling"),
5479
5453
  isTopPicksSelected() {
5480
5454
  var t;
5481
- return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Xi.TopPicks;
5455
+ return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Wi.TopPicks;
5482
5456
  },
5483
5457
  showErrorMessage() {
5484
5458
  return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
@@ -5522,20 +5496,20 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5522
5496
  },
5523
5497
  mixins: [
5524
5498
  Ds,
5525
- ar,
5526
- Rr(
5499
+ or,
5500
+ Sr(
5527
5501
  ["bookingApiClient", "config.currency", "config.lang"],
5528
5502
  "retrieveHotelOffers"
5529
5503
  ),
5530
- sr,
5531
- kr({
5532
- fallbackValue: Ls,
5504
+ nr,
5505
+ Er({
5506
+ fallbackValue: {},
5533
5507
  propsName: "features"
5534
5508
  }),
5535
- Ar()
5509
+ Tr()
5536
5510
  ],
5537
5511
  name: "HotelOfferList",
5538
- props: Dr,
5512
+ props: Ar,
5539
5513
  setup() {
5540
5514
  const { t } = gn();
5541
5515
  return {
@@ -5546,7 +5520,7 @@ const vd = /* @__PURE__ */ mn(Ui, [["render", pd]]), Bi = hn({
5546
5520
  filters: {
5547
5521
  deep: !0,
5548
5522
  async handler(t, e) {
5549
- Qi(t, e) || await this.retrieveHotelOffers();
5523
+ Yi(t, e) || await this.retrieveHotelOffers();
5550
5524
  }
5551
5525
  },
5552
5526
  "hotelOfferRequest.id": {
@@ -5610,19 +5584,19 @@ function Rs(t) {
5610
5584
  }
5611
5585
  });
5612
5586
  }
5613
- const yd = {
5587
+ const pd = {
5614
5588
  key: 0,
5615
5589
  class: "mx-n2"
5616
- }, bd = {
5590
+ }, vd = {
5617
5591
  key: 1,
5618
5592
  class: "d-flex justify-center align-center py-3"
5619
5593
  };
5620
- function Ed(t, e, n, s, i, r) {
5594
+ function yd(t, e, n, s, i, r) {
5621
5595
  const a = oe("BHotelSearchBar"), u = oe("BHotelOffersFilterBar"), l = oe("HotelOfferListEmpty"), c = oe("HotelRoomOfferList"), d = oe("HotelOfferItem"), h = oe("TermsAndConditions");
5622
- return $(), Q(Or, {
5596
+ return M(), Q(Ir, {
5623
5597
  ref: "hotel-offer-list-container",
5624
5598
  class: "pa-0 bg-white",
5625
- style: tr([{ "min-height": "500px" }, {
5599
+ style: er([{ "min-height": "500px" }, {
5626
5600
  height: t.parsedHeight,
5627
5601
  maxHeight: t.maxHeight,
5628
5602
  overflowY: "auto",
@@ -5630,7 +5604,7 @@ function Ed(t, e, n, s, i, r) {
5630
5604
  }])
5631
5605
  }, {
5632
5606
  default: _(() => [
5633
- t.parsedFeatures.HotelOfferSearchMenu ? ($(), Q(rt, {
5607
+ t.parsedFeatures.HotelOfferSearchMenu ? (M(), Q(it, {
5634
5608
  key: 0,
5635
5609
  class: Et(["px-2 pt-4", t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""]),
5636
5610
  "no-gutters": ""
@@ -5638,7 +5612,7 @@ function Ed(t, e, n, s, i, r) {
5638
5612
  default: _(() => [
5639
5613
  b(Pe, null, {
5640
5614
  default: _(() => [
5641
- t.isBookingApiClientDefined ? ($(), Q(a, {
5615
+ t.isBookingApiClientDefined ? (M(), Q(a, {
5642
5616
  key: 0,
5643
5617
  modelValue: t.hotelOfferRequestInternal,
5644
5618
  "onUpdate:modelValue": e[0] || (e[0] = (y) => t.hotelOfferRequestInternal = y),
@@ -5652,7 +5626,7 @@ function Ed(t, e, n, s, i, r) {
5652
5626
  ]),
5653
5627
  _: 1
5654
5628
  }, 8, ["class"])) : Z("", !0),
5655
- t.displayFiltersMenu && t.isBookingApiClientDefined ? ($(), Q(rt, {
5629
+ t.displayFiltersMenu && t.isBookingApiClientDefined ? (M(), Q(it, {
5656
5630
  key: 1,
5657
5631
  class: Et(t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""),
5658
5632
  "no-gutters": ""
@@ -5661,21 +5635,21 @@ function Ed(t, e, n, s, i, r) {
5661
5635
  b(Pe, null, {
5662
5636
  default: _(() => [
5663
5637
  b(u),
5664
- t.$breakpointService.xs ? Z("", !0) : ($(), Q(en, { key: 0 }))
5638
+ t.$breakpointService.xs ? Z("", !0) : (M(), Q(en, { key: 0 }))
5665
5639
  ]),
5666
5640
  _: 1
5667
5641
  })
5668
5642
  ]),
5669
5643
  _: 1
5670
5644
  }, 8, ["class"])) : Z("", !0),
5671
- b(rt, { "no-gutters": "" }, {
5645
+ b(it, { "no-gutters": "" }, {
5672
5646
  default: _(() => [
5673
5647
  b(Pe, null, {
5674
5648
  default: _(() => [
5675
- t.showSkeleton ? ($(), Q(l, { key: 0 })) : t.showErrorMessage ? ($(), Q(l, {
5649
+ t.showSkeleton ? (M(), Q(l, { key: 0 })) : t.showErrorMessage ? (M(), Q(l, {
5676
5650
  key: 1,
5677
5651
  type: "internalError"
5678
- })) : t.showNoResultsMessage ? ($(), Q(l, {
5652
+ })) : t.showNoResultsMessage ? (M(), Q(l, {
5679
5653
  key: 2,
5680
5654
  address: t.hotelOfferRequest.address,
5681
5655
  "adult-count": t.hotelOfferRequest.adultCount,
@@ -5687,14 +5661,14 @@ function Ed(t, e, n, s, i, r) {
5687
5661
  "source-market": t.hotelOfferRequest.sourceMarket,
5688
5662
  type: "noResults",
5689
5663
  onResetFilters: t.onResetFilters
5690
- }, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : ($(), pe(xe, { key: 3 }, [
5691
- Zi(b(vr, {
5664
+ }, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (M(), me(xe, { key: 3 }, [
5665
+ Ji(b(mr, {
5692
5666
  color: "primary",
5693
5667
  indeterminate: ""
5694
5668
  }, null, 512), [
5695
- [er, t.loadingBarEnabled && t.isPollingHotelOffers]
5669
+ [Zi, t.loadingBarEnabled && t.isPollingHotelOffers]
5696
5670
  ]),
5697
- t.hotelOffers ? ($(!0), pe(xe, { key: 0 }, Cs(t.hotelOffers, (y, g) => ($(), pe(xe, {
5671
+ t.hotelOffers ? (M(!0), me(xe, { key: 0 }, Cs(t.hotelOffers, (y, g) => (M(), me(xe, {
5698
5672
  key: y.id
5699
5673
  }, [
5700
5674
  b(d, {
@@ -5711,7 +5685,7 @@ function Ed(t, e, n, s, i, r) {
5711
5685
  default: _(() => {
5712
5686
  var f;
5713
5687
  return [
5714
- (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? ($(), pe("div", yd, [
5688
+ (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? (M(), me("div", pd, [
5715
5689
  b(c, {
5716
5690
  "adult-count": t.hotelOfferRequest.adultCount,
5717
5691
  "check-in-date": t.hotelOfferRequest.checkInDate,
@@ -5730,7 +5704,7 @@ function Ed(t, e, n, s, i, r) {
5730
5704
  }, 1032, ["class", "features", "hotel-offer", "single-offer", "onMouseleave", "onMouseover"]),
5731
5705
  b(en)
5732
5706
  ], 64))), 128)) : Z("", !0),
5733
- t.startingAfter ? ($(), pe("div", bd, [
5707
+ t.startingAfter ? (M(), me("div", vd, [
5734
5708
  b(ae, {
5735
5709
  color: "primary",
5736
5710
  variant: "flat",
@@ -5751,7 +5725,7 @@ function Ed(t, e, n, s, i, r) {
5751
5725
  ]),
5752
5726
  _: 1
5753
5727
  }),
5754
- t.parsedFeatures.TermsAndConditionsFooter ? ($(), Q(h, {
5728
+ t.parsedFeatures.TermsAndConditionsFooter ? (M(), Q(h, {
5755
5729
  key: 2,
5756
5730
  theme: "light"
5757
5731
  })) : Z("", !0)
@@ -5759,12 +5733,12 @@ function Ed(t, e, n, s, i, r) {
5759
5733
  _: 1
5760
5734
  }, 8, ["style"]);
5761
5735
  }
5762
- typeof Rs == "function" && Rs(Bi);
5763
- const qd = /* @__PURE__ */ mn(Bi, [["render", Ed]]);
5764
- xi("css/revolugo.hotelofferlist.BkctzTMI.css");
5736
+ typeof Rs == "function" && Rs($i);
5737
+ const Gd = /* @__PURE__ */ mn($i, [["render", yd]]);
5738
+ Vi("css/revolugo.hotelofferlist.BkctzTMI.css");
5765
5739
  export {
5766
- qd as H,
5767
- Ls as a,
5768
- Dr as h
5740
+ Gd as H,
5741
+ Or as a,
5742
+ Ar as h
5769
5743
  };
5770
- //# sourceMappingURL=revolugo.hotelofferlist.CannqNZQ.min.js.map
5744
+ //# sourceMappingURL=revolugo.hotelofferlist.BVySEYbq.min.js.map