@everymatrix/cashier-page 1.87.26 → 1.87.102

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 (139) hide show
  1. package/components/{CashierCarousel-DsekS1gS.js → CashierCarousel-BS_3salc.js} +1328 -1321
  2. package/components/CashierCarousel-BhLbwlL5.js +5736 -0
  3. package/components/CashierCarousel-Bwhda3Gl.js +5774 -0
  4. package/components/CashierCarousel-CfPrrhkY.cjs +23 -0
  5. package/components/{CashierCarousel-BJw_SNG2.js → CashierCarousel-CyAfjImL.js} +1172 -1166
  6. package/components/CashierCarousel-GM1WPyu3.cjs +23 -0
  7. package/components/CashierError-BN1XW0cs.cjs +1 -0
  8. package/components/{CashierError-B1WXlDdK.js → CashierError-CDBKwx0N.js} +212 -206
  9. package/components/{CashierError-40KPQU2s.js → CashierError-CV6Kq3fN.js} +212 -206
  10. package/components/CashierError-CXcO-Kju.js +415 -0
  11. package/components/CashierError-CXwvUOLy.js +415 -0
  12. package/components/CashierError-D4Au4WNB.cjs +1 -0
  13. package/components/{CashierHeader-BZvqRar_.js → CashierHeader-BgAqvq1Q.js} +74 -81
  14. package/components/CashierHeader-BhGRQhkm.cjs +1 -0
  15. package/components/CashierHeader-C_Mz7ISU.js +397 -0
  16. package/components/CashierHeader-CaV1gcjZ.js +397 -0
  17. package/components/CashierHeader-CmAjJv-w.cjs +1 -0
  18. package/components/{CashierHeader-BfpTyZmQ.js → CashierHeader-DRj1BUdj.js} +78 -85
  19. package/components/{CashierIframeRedirect-CyI4soMo.js → CashierIframeRedirect-7uZKKZOy.js} +68 -68
  20. package/components/CashierIframeRedirect-B76kjw0o.js +389 -0
  21. package/components/{CashierIframeRedirect-DBSuyK9E.cjs → CashierIframeRedirect-BU-0tKNo.cjs} +1 -1
  22. package/components/{CashierIframeRedirect-2CfxTUrh.js → CashierIframeRedirect-BkvkX6Ih.js} +68 -68
  23. package/components/CashierIframeRedirect-Ddt7NW02.cjs +1 -0
  24. package/components/CashierIframeRedirect-DmvuwOL2.js +389 -0
  25. package/components/{CashierMethodDetails-U6L33HpX.cjs → CashierMethodDetails-BEykktuA.cjs} +4 -4
  26. package/components/CashierMethodDetails-BX_W3rwH.js +9887 -0
  27. package/components/{CashierMethodDetails-CuQYMgbw.js → CashierMethodDetails-Bdko0TrB.js} +1574 -1574
  28. package/components/{CashierMethodDetails-DFXMp3df.js → CashierMethodDetails-C0EaNINa.js} +1611 -1611
  29. package/components/CashierMethodDetails-DmvyMFjk.cjs +85 -0
  30. package/components/CashierMethodDetails-i7grZPp4.js +9927 -0
  31. package/components/CashierMethodsList-B6tMxcnh.js +794 -0
  32. package/components/{CashierMethodsList-tRbJ56Bk.js → CashierMethodsList-CRWXDpa-.js} +263 -263
  33. package/components/{CashierMethodsList-CshlP6d7.js → CashierMethodsList-CVSYKCiY.js} +153 -153
  34. package/components/CashierMethodsList-DSq72RRw.js +809 -0
  35. package/components/CashierMethodsList-GOTxtR6r.cjs +1 -0
  36. package/components/CashierMethodsList-LHoZgwVR.cjs +1 -0
  37. package/components/{CashierModal-BCs-hvy-.js → CashierModal-B7N_nPHW.js} +162 -146
  38. package/components/CashierModal-C845c3D0.cjs +1 -0
  39. package/components/CashierModal-CTYxaPKG.js +366 -0
  40. package/components/{CashierModal-DdvNZLqY.cjs → CashierModal-Cd1uDEwu.cjs} +1 -1
  41. package/components/{CashierModal-Cyn1bRtX.js → CashierModal-KhxltwKt.js} +123 -139
  42. package/components/CashierModal-ndVMjksn.js +382 -0
  43. package/components/{CashierNotifications-CkRmBcgx.js → CashierNotifications-BmarDqdP.js} +34 -34
  44. package/components/{CashierNotifications-DfV8x-rA.js → CashierNotifications-Bp4KJnpm.js} +34 -34
  45. package/components/CashierNotifications-D4fUbROm.js +129 -0
  46. package/components/CashierNotifications-JNstA5Yb.js +129 -0
  47. package/components/{CashierNotifications-B93HkTiJ.cjs → CashierNotifications-bGhd7Jsw.cjs} +1 -1
  48. package/components/CashierNotifications-tfTPEiSk.cjs +1 -0
  49. package/components/CashierPage-4nTfbT_j.js +3994 -0
  50. package/components/{CashierPage--A8w0jWY.js → CashierPage-BSByd5RU.js} +79 -79
  51. package/components/CashierPage-Bd71Nhaq.js +4020 -0
  52. package/components/CashierPage-CHtYMgc0.cjs +1 -0
  53. package/components/{CashierPage-DJxPlCxY.js → CashierPage-CZ4TSJkx.js} +81 -81
  54. package/components/{CashierPage-kf1tVNZU.cjs → CashierPage-DfrmhWzm.cjs} +1 -1
  55. package/components/{CashierReceiptPage-CZbWQvvv.js → CashierReceiptPage-BD3aDt3T.js} +492 -492
  56. package/components/{CashierReceiptPage-Bp7jFvov.cjs → CashierReceiptPage-BQpEnTyU.cjs} +2 -2
  57. package/components/CashierReceiptPage-CnyLmUmL.js +1694 -0
  58. package/components/CashierReceiptPage-DV7Iz4wR.js +1690 -0
  59. package/components/{CashierReceiptPage-CofNGFj1.js → CashierReceiptPage-DgxlKvM2.js} +518 -518
  60. package/components/CashierReceiptPage-HRthn--H.cjs +28 -0
  61. package/components/CashierSessionExpirationModal-B98EEWed.js +1198 -0
  62. package/components/CashierSessionExpirationModal-CYcBByMT.cjs +2 -0
  63. package/components/CashierSessionExpirationModal-Ckhir3qN.cjs +2 -0
  64. package/components/{CashierSessionExpirationModal-Ckh0MnJn.js → CashierSessionExpirationModal-CvYI4jUg.js} +129 -128
  65. package/components/CashierSessionExpirationModal-D6FwiFE-.js +1198 -0
  66. package/components/{CashierSessionExpirationModal-CqqS70E7.js → CashierSessionExpirationModal-DM8-SPd3.js} +131 -130
  67. package/components/CashierSpinner-C0P8ZCtD.js +78 -0
  68. package/components/{CashierSpinner-BTDAq-Gk.js → CashierSpinner-CeX51xPH.js} +17 -17
  69. package/components/CashierSpinner-CikMZBzw.cjs +1 -0
  70. package/components/CashierSpinner-DJTUb5NI.js +78 -0
  71. package/components/{CashierSpinner-yhu6RHaO.cjs → CashierSpinner-ODmoTC6W.cjs} +1 -1
  72. package/components/{CashierSpinner-C8tFNM39.js → CashierSpinner-a2VW8q1r.js} +17 -17
  73. package/components/CashierStepUp-5um8gbUX.js +1068 -0
  74. package/components/{CashierStepUp-CHNRsm-i.js → CashierStepUp-Bk5fP7qd.js} +243 -243
  75. package/components/CashierStepUp-CjnvqYJo.cjs +1 -0
  76. package/components/CashierStepUp-CxawlCYf.cjs +1 -0
  77. package/components/CashierStepUp-CyO7gmgP.js +1107 -0
  78. package/components/{CashierStepUp-BTxHmTK2.js → CashierStepUp-DS-UsgrI.js} +294 -294
  79. package/components/CashierTransactionHistory-5JNtVHcj.js +1305 -0
  80. package/components/{CashierTransactionHistory-HclQq8wA.cjs → CashierTransactionHistory-Bwc0I09a.cjs} +1 -1
  81. package/components/CashierTransactionHistory-Cm3ikVPK.js +1305 -0
  82. package/components/CashierTransactionHistory-CmgO6bXN.cjs +1 -0
  83. package/components/{CashierTransactionHistory-DTAdYC2Y.js → CashierTransactionHistory-CoqckbJ2.js} +231 -231
  84. package/components/{CashierTransactionHistory-Bd7CEoaj.js → CashierTransactionHistory-DO6C0I1a.js} +420 -420
  85. package/components/{CashierVerifications-fPErTC9e.js → CashierVerifications-B8fkVYVD.js} +88 -88
  86. package/components/CashierVerifications-BmZYiJaN.js +578 -0
  87. package/components/{CashierVerifications-b9Eeag80.js → CashierVerifications-CuX4vrPf.js} +95 -95
  88. package/components/CashierVerifications-DkayuISY.cjs +1 -0
  89. package/components/CashierVerifications-hID6hjDs.js +582 -0
  90. package/components/{CashierVerifications--VdCm0A0.cjs → CashierVerifications-mSpdNrML.cjs} +1 -1
  91. package/components/{TxnStatusIcon-Dm5lj3fd.js → TxnStatusIcon-BDnNMhFD.js} +19 -19
  92. package/components/{TxnStatusIcon-DRLLqFXC.js → TxnStatusIcon-BZMSpoHv.js} +19 -19
  93. package/components/{TxnStatusIcon-C8lEFNJK.cjs → TxnStatusIcon-C8bPyggx.cjs} +1 -1
  94. package/components/TxnStatusIcon-HrmfQdAc.js +142 -0
  95. package/components/TxnStatusIcon-Le-TBKNh.cjs +1 -0
  96. package/components/TxnStatusIcon-VvYGYLio.js +142 -0
  97. package/components/{TxnTypeIcons-CFpm5fsz.cjs → TxnTypeIcons-Cc7Yt6gg.cjs} +1 -1
  98. package/components/{TxnTypeIcons-B32Qcanf.js → TxnTypeIcons-DZRNYWUy.js} +14 -14
  99. package/components/{TxnTypeIcons-Dwfdotxd.js → TxnTypeIcons-__im0AE_.js} +14 -14
  100. package/components/TxnTypeIcons-lKki7AUK.js +101 -0
  101. package/components/TxnTypeIcons-sZUo9qa8.cjs +1 -0
  102. package/components/TxnTypeIcons-zM86UKOx.js +101 -0
  103. package/es2015/cashier-page.cjs +1 -1
  104. package/es2015/cashier-page.js +1 -1
  105. package/esnext/cashier-page.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/index-97d17652-DvplcHtm.js +558 -0
  108. package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
  109. package/stencil/index-97d17652-p-iQtjus.js +542 -0
  110. package/stencil/index-b2193545-Bvpy7mp9.js +503 -0
  111. package/stencil/index-b2193545-DxDmFccl.js +519 -0
  112. package/stencil/index-b2193545-P1qvDl70.cjs +1 -0
  113. package/stencil/{ui-image-CNaRr0ax.js → ui-image-BIr_PDb-.js} +1 -1
  114. package/stencil/{ui-image-IJc7Zz_R.cjs → ui-image-CEbrFHSD.cjs} +1 -1
  115. package/stencil/{ui-image-BsYHwNhO.js → ui-image-D69wsX4B.js} +1 -1
  116. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
  117. package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
  118. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
  119. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BESQEo1l.js} +2 -2
  120. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BfZmduAK.js} +2 -2
  121. package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
  122. package/stencil/{ui-skeleton-UxIIZ8UD.cjs → ui-skeleton-CTOStr1f.cjs} +1 -1
  123. package/stencil/{ui-skeleton-CQ-FgYMx.js → ui-skeleton-UELn0TdO.js} +2 -2
  124. package/stencil/{ui-skeleton-ed169f8f-BEwquWmd.cjs → ui-skeleton-ed169f8f-6tILWWI7.cjs} +1 -1
  125. package/stencil/{ui-skeleton-ed169f8f-BMrkXoR5.js → ui-skeleton-ed169f8f-DU5yFWqG.js} +1 -1
  126. package/stencil/{ui-skeleton-ed169f8f-BNn31z1X.js → ui-skeleton-ed169f8f-DmzkEnLt.js} +1 -1
  127. package/stencil/{ui-skeleton-B9YTz-WD.js → ui-skeleton-i8axfHXy.js} +2 -2
  128. package/components/CashierCarousel-Uqj8lOn9.cjs +0 -23
  129. package/components/CashierError-BOmVvy3N.cjs +0 -1
  130. package/components/CashierHeader-B7XYr24D.cjs +0 -1
  131. package/components/CashierMethodsList-DueBSlwx.cjs +0 -1
  132. package/components/CashierSessionExpirationModal-kLS8veZV.cjs +0 -2
  133. package/components/CashierStepUp-FR5Znqdo.cjs +0 -1
  134. package/stencil/index-97d17652-B6BYeRne.js +0 -542
  135. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  136. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
  137. package/stencil/index-b2193545-B5Q7rnAU.cjs +0 -1
  138. package/stencil/index-b2193545-CF_fVoFe.js +0 -519
  139. package/stencil/index-b2193545-DfttkCgg.js +0 -503
@@ -0,0 +1,1198 @@
1
+ import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, f as Z, c as Rn, s as On, d as kn, g as R, k as Me, t as we, o as xe, a6 as un, p as Re, q as Ut, r as Nn, af as Dn, v as In, e as $e, R as se, h as ye, x as We, j as u, L as Ht, l as p, a7 as Pn, z as Je, y as Ye, u as et, m as tt, n as nt, a8 as fn, ag as Bt, a1 as Un, w as Hn, A as Bn, B as Ft, C as Fn, D as zn, E as zt, G as Gt } from "./CashierCarousel-BS_3salc.js";
2
+ import { f as Wt } from "./CashierReceiptPage-DgxlKvM2.js";
3
+ import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-Bdko0TrB.js";
4
+ function Xt(n, t) {
5
+ xn(n, t);
6
+ }
7
+ function Wn(n) {
8
+ Cn({
9
+ fallbackLocale: "en"
10
+ }), Ln.set(n);
11
+ }
12
+ const Vt = {
13
+ en: {
14
+ sessionExpirationHeader: "Session Warning",
15
+ sessionExpirationTitle: "Your session is about to expire!",
16
+ sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
17
+ sessionExpirationGeneralButton: "Continue session",
18
+ sessionExpirationLoadingButton: "Processing...",
19
+ sessionExpirationEnd: "End session"
20
+ },
21
+ tr: {
22
+ sessionExpirationHeader: "Oturum Uyarısı",
23
+ sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
24
+ sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
25
+ sessionExpirationGeneralButton: "DEVAM ET",
26
+ sessionExpirationLoadingButton: "İŞLEME...",
27
+ sessionExpirationEnd: "Oturumu sonlandır"
28
+ },
29
+ fr: {
30
+ sessionExpirationHeader: "Avertissement de session",
31
+ sessionExpirationTitle: "Votre session est sur le point d’expirer !",
32
+ sessionExpirationGeneralText: "Votre session se terminera automatiquement dans <b>{second} secondes</b>.",
33
+ sessionExpirationGeneralButton: "Continuer la session",
34
+ sessionExpirationLoadingButton: "Traitement en cours...",
35
+ sessionExpirationEnd: "Terminer la session"
36
+ }
37
+ };
38
+ /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
39
+ const {
40
+ entries: mn,
41
+ setPrototypeOf: qt,
42
+ isFrozen: Yn,
43
+ getPrototypeOf: jn,
44
+ getOwnPropertyDescriptor: Xn
45
+ } = Object;
46
+ let {
47
+ freeze: B,
48
+ seal: te,
49
+ create: pn
50
+ } = Object, {
51
+ apply: dt,
52
+ construct: ht
53
+ } = typeof Reflect != "undefined" && Reflect;
54
+ B || (B = function(t) {
55
+ return t;
56
+ });
57
+ te || (te = function(t) {
58
+ return t;
59
+ });
60
+ dt || (dt = function(t, o, i) {
61
+ return t.apply(o, i);
62
+ });
63
+ ht || (ht = function(t, o) {
64
+ return new t(...o);
65
+ });
66
+ const Ke = J(Array.prototype.forEach), Zt = J(Array.prototype.pop), He = J(Array.prototype.push), ot = J(String.prototype.toLowerCase), ct = J(String.prototype.toString), Jt = J(String.prototype.match), Be = J(String.prototype.replace), Vn = J(String.prototype.indexOf), qn = J(String.prototype.trim), re = J(Object.prototype.hasOwnProperty), H = J(RegExp.prototype.test), Fe = Zn(TypeError);
67
+ function J(n) {
68
+ return function(t) {
69
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
70
+ i[r - 1] = arguments[r];
71
+ return dt(n, t, i);
72
+ };
73
+ }
74
+ function Zn(n) {
75
+ return function() {
76
+ for (var t = arguments.length, o = new Array(t), i = 0; i < t; i++)
77
+ o[i] = arguments[i];
78
+ return ht(n, o);
79
+ };
80
+ }
81
+ function d(n, t) {
82
+ let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ot;
83
+ qt && qt(n, null);
84
+ let i = t.length;
85
+ for (; i--; ) {
86
+ let r = t[i];
87
+ if (typeof r == "string") {
88
+ const f = o(r);
89
+ f !== r && (Yn(t) || (t[i] = f), r = f);
90
+ }
91
+ n[r] = !0;
92
+ }
93
+ return n;
94
+ }
95
+ function Jn(n) {
96
+ for (let t = 0; t < n.length; t++)
97
+ re(n, t) || (n[t] = null);
98
+ return n;
99
+ }
100
+ function ve(n) {
101
+ const t = pn(null);
102
+ for (const [o, i] of mn(n))
103
+ re(n, o) && (Array.isArray(i) ? t[o] = Jn(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = ve(i) : t[o] = i);
104
+ return t;
105
+ }
106
+ function ze(n, t) {
107
+ for (; n !== null; ) {
108
+ const i = Xn(n, t);
109
+ if (i) {
110
+ if (i.get)
111
+ return J(i.get);
112
+ if (typeof i.value == "function")
113
+ return J(i.value);
114
+ }
115
+ n = jn(n);
116
+ }
117
+ function o() {
118
+ return null;
119
+ }
120
+ return o;
121
+ }
122
+ const Kt = B(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ut = B(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ft = B(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kn = B(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mt = B(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qn = B(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = B(["#text"]), $t = B(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), pt = B(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), en = B(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qe = B(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), eo = te(/<%[\w\W]*|[\w\W]*%>/gm), to = te(/\${[\w\W]*}/gm), no = te(/^data-[\-\w.\u00B7-\uFFFF]/), oo = te(/^aria-[\-\w]+$/), dn = te(
123
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
124
+ // eslint-disable-line no-useless-escape
125
+ ), io = te(/^(?:\w+script|data):/i), so = te(
126
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
127
+ // eslint-disable-line no-control-regex
128
+ ), hn = te(/^html$/i), ro = te(/^[a-z][.\w]*(-[.\w]+)+$/i);
129
+ var tn = /* @__PURE__ */ Object.freeze({
130
+ __proto__: null,
131
+ MUSTACHE_EXPR: $n,
132
+ ERB_EXPR: eo,
133
+ TMPLIT_EXPR: to,
134
+ DATA_ATTR: no,
135
+ ARIA_ATTR: oo,
136
+ IS_ALLOWED_URI: dn,
137
+ IS_SCRIPT_OR_DATA: io,
138
+ ATTR_WHITESPACE: so,
139
+ DOCTYPE_NAME: hn,
140
+ CUSTOM_ELEMENT: ro
141
+ });
142
+ const Ge = {
143
+ element: 1,
144
+ attribute: 2,
145
+ text: 3,
146
+ cdataSection: 4,
147
+ entityReference: 5,
148
+ // Deprecated
149
+ entityNode: 6,
150
+ // Deprecated
151
+ progressingInstruction: 7,
152
+ comment: 8,
153
+ document: 9,
154
+ documentType: 10,
155
+ documentFragment: 11,
156
+ notation: 12
157
+ // Deprecated
158
+ }, ao = function() {
159
+ return typeof window == "undefined" ? null : window;
160
+ }, lo = function(t, o) {
161
+ if (typeof t != "object" || typeof t.createPolicy != "function")
162
+ return null;
163
+ let i = null;
164
+ const r = "data-tt-policy-suffix";
165
+ o && o.hasAttribute(r) && (i = o.getAttribute(r));
166
+ const f = "dompurify" + (i ? "#" + i : "");
167
+ try {
168
+ return t.createPolicy(f, {
169
+ createHTML(_) {
170
+ return _;
171
+ },
172
+ createScriptURL(_) {
173
+ return _;
174
+ }
175
+ });
176
+ } catch (_) {
177
+ return console.warn("TrustedTypes policy " + f + " could not be created."), null;
178
+ }
179
+ };
180
+ function gn() {
181
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ao();
182
+ const t = (c) => gn(c);
183
+ if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ge.document)
184
+ return t.isSupported = !1, t;
185
+ let {
186
+ document: o
187
+ } = n;
188
+ const i = o, r = i.currentScript, {
189
+ DocumentFragment: f,
190
+ HTMLTemplateElement: _,
191
+ Node: S,
192
+ Element: y,
193
+ NodeFilter: E,
194
+ NamedNodeMap: X = n.NamedNodeMap || n.MozNamedAttrMap,
195
+ HTMLFormElement: ne,
196
+ DOMParser: Ce,
197
+ trustedTypes: F
198
+ } = n, z = y.prototype, be = ze(z, "cloneNode"), ae = ze(z, "remove"), G = ze(z, "nextSibling"), de = ze(z, "childNodes"), K = ze(z, "parentNode");
199
+ if (typeof _ == "function") {
200
+ const c = o.createElement("template");
201
+ c.content && c.content.ownerDocument && (o = c.content.ownerDocument);
202
+ }
203
+ let g, A = "";
204
+ const {
205
+ implementation: oe,
206
+ createNodeIterator: le,
207
+ createDocumentFragment: he,
208
+ getElementsByTagName: W
209
+ } = o, {
210
+ importNode: ie
211
+ } = i;
212
+ let L = {};
213
+ t.isSupported = typeof mn == "function" && typeof K == "function" && oe && oe.createHTMLDocument !== void 0;
214
+ const {
215
+ MUSTACHE_EXPR: ce,
216
+ ERB_EXPR: V,
217
+ TMPLIT_EXPR: ge,
218
+ DATA_ATTR: Q,
219
+ ARIA_ATTR: N,
220
+ IS_SCRIPT_OR_DATA: I,
221
+ ATTR_WHITESPACE: $,
222
+ CUSTOM_ELEMENT: Le
223
+ } = tn;
224
+ let {
225
+ IS_ALLOWED_URI: q
226
+ } = tn, m = null;
227
+ const Se = d({}, [...Kt, ...ut, ...ft, ...mt, ...Qt]);
228
+ let x = null;
229
+ const Ae = d({}, [...$t, ...pt, ...en, ...Qe]);
230
+ let T = Object.seal(pn(null, {
231
+ tagNameCheck: {
232
+ writable: !0,
233
+ configurable: !1,
234
+ enumerable: !0,
235
+ value: null
236
+ },
237
+ attributeNameCheck: {
238
+ writable: !0,
239
+ configurable: !1,
240
+ enumerable: !0,
241
+ value: null
242
+ },
243
+ allowCustomizedBuiltInElements: {
244
+ writable: !0,
245
+ configurable: !1,
246
+ enumerable: !0,
247
+ value: !1
248
+ }
249
+ })), v = null, a = null, h = !0, P = !0, M = !1, Y = !0, _e = !1, ee = !0, ue = !1, b = !1, C = !1, fe = !1, je = !1, Xe = !1, gt = !0, _t = !1;
250
+ const _n = "user-content-";
251
+ let it = !0, Ie = !1, Oe = {}, ke = null;
252
+ const Et = d({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
253
+ let Tt = null;
254
+ const yt = d({}, ["audio", "video", "img", "source", "image", "track"]);
255
+ let st = null;
256
+ const wt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ve = "http://www.w3.org/1998/Math/MathML", qe = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml";
257
+ let Ne = Ee, rt = !1, at = null;
258
+ const En = d({}, [Ve, qe, Ee], ct);
259
+ let Pe = null;
260
+ const Tn = ["application/xhtml+xml", "text/html"], yn = "text/html";
261
+ let O = null, De = null;
262
+ const wn = o.createElement("form"), bt = function(e) {
263
+ return e instanceof RegExp || e instanceof Function;
264
+ }, lt = function() {
265
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
266
+ if (!(De && De === e)) {
267
+ if ((!e || typeof e != "object") && (e = {}), e = ve(e), Pe = // eslint-disable-next-line unicorn/prefer-includes
268
+ Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? yn : e.PARSER_MEDIA_TYPE, O = Pe === "application/xhtml+xml" ? ct : ot, m = re(e, "ALLOWED_TAGS") ? d({}, e.ALLOWED_TAGS, O) : Se, x = re(e, "ALLOWED_ATTR") ? d({}, e.ALLOWED_ATTR, O) : Ae, at = re(e, "ALLOWED_NAMESPACES") ? d({}, e.ALLOWED_NAMESPACES, ct) : En, st = re(e, "ADD_URI_SAFE_ATTR") ? d(
269
+ ve(wt),
270
+ // eslint-disable-line indent
271
+ e.ADD_URI_SAFE_ATTR,
272
+ // eslint-disable-line indent
273
+ O
274
+ // eslint-disable-line indent
275
+ ) : wt, Tt = re(e, "ADD_DATA_URI_TAGS") ? d(
276
+ ve(yt),
277
+ // eslint-disable-line indent
278
+ e.ADD_DATA_URI_TAGS,
279
+ // eslint-disable-line indent
280
+ O
281
+ // eslint-disable-line indent
282
+ ) : yt, ke = re(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, O) : Et, v = re(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, O) : {}, a = re(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, O) : {}, Oe = re(e, "USE_PROFILES") ? e.USE_PROFILES : !1, h = e.ALLOW_ARIA_ATTR !== !1, P = e.ALLOW_DATA_ATTR !== !1, M = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, ue = e.WHOLE_DOCUMENT || !1, fe = e.RETURN_DOM || !1, je = e.RETURN_DOM_FRAGMENT || !1, Xe = e.RETURN_TRUSTED_TYPE || !1, C = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, _t = e.SANITIZE_NAMED_PROPS || !1, it = e.KEEP_CONTENT !== !1, Ie = e.IN_PLACE || !1, q = e.ALLOWED_URI_REGEXP || dn, Ne = e.NAMESPACE || Ee, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (P = !1), je && (fe = !0), Oe && (m = d({}, Qt), x = [], Oe.html === !0 && (d(m, Kt), d(x, $t)), Oe.svg === !0 && (d(m, ut), d(x, pt), d(x, Qe)), Oe.svgFilters === !0 && (d(m, ft), d(x, pt), d(x, Qe)), Oe.mathMl === !0 && (d(m, mt), d(x, en), d(x, Qe))), e.ADD_TAGS && (m === Se && (m = ve(m)), d(m, e.ADD_TAGS, O)), e.ADD_ATTR && (x === Ae && (x = ve(x)), d(x, e.ADD_ATTR, O)), e.ADD_URI_SAFE_ATTR && d(st, e.ADD_URI_SAFE_ATTR, O), e.FORBID_CONTENTS && (ke === Et && (ke = ve(ke)), d(ke, e.FORBID_CONTENTS, O)), it && (m["#text"] = !0), ue && d(m, ["html", "head", "body"]), m.table && (d(m, ["tbody"]), delete v.tbody), e.TRUSTED_TYPES_POLICY) {
283
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
284
+ throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
285
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
286
+ throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
287
+ g = e.TRUSTED_TYPES_POLICY, A = g.createHTML("");
288
+ } else
289
+ g === void 0 && (g = lo(F, r)), g !== null && typeof A == "string" && (A = g.createHTML(""));
290
+ B && B(e), De = e;
291
+ }
292
+ }, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), At = d({}, ["foreignobject", "annotation-xml"]), bn = d({}, ["title", "style", "font", "a", "script"]), xt = d({}, [...ut, ...ft, ...Kn]), Ct = d({}, [...mt, ...Qn]), Sn = function(e) {
293
+ let s = K(e);
294
+ (!s || !s.tagName) && (s = {
295
+ namespaceURI: Ne,
296
+ tagName: "template"
297
+ });
298
+ const l = ot(e.tagName), w = ot(s.tagName);
299
+ return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === Ee ? l === "svg" : s.namespaceURI === Ve ? l === "svg" && (w === "annotation-xml" || St[w]) : !!xt[l] : e.namespaceURI === Ve ? s.namespaceURI === Ee ? l === "math" : s.namespaceURI === qe ? l === "math" && At[w] : !!Ct[l] : e.namespaceURI === Ee ? s.namespaceURI === qe && !At[w] || s.namespaceURI === Ve && !St[w] ? !1 : !Ct[l] && (bn[l] || !xt[l]) : !!(Pe === "application/xhtml+xml" && at[e.namespaceURI]) : !1;
300
+ }, me = function(e) {
301
+ He(t.removed, {
302
+ element: e
303
+ });
304
+ try {
305
+ K(e).removeChild(e);
306
+ } catch (s) {
307
+ ae(e);
308
+ }
309
+ }, Ze = function(e, s) {
310
+ try {
311
+ He(t.removed, {
312
+ attribute: s.getAttributeNode(e),
313
+ from: s
314
+ });
315
+ } catch (l) {
316
+ He(t.removed, {
317
+ attribute: null,
318
+ from: s
319
+ });
320
+ }
321
+ if (s.removeAttribute(e), e === "is" && !x[e])
322
+ if (fe || je)
323
+ try {
324
+ me(s);
325
+ } catch (l) {
326
+ }
327
+ else
328
+ try {
329
+ s.setAttribute(e, "");
330
+ } catch (l) {
331
+ }
332
+ }, Lt = function(e) {
333
+ let s = null, l = null;
334
+ if (C)
335
+ e = "<remove></remove>" + e;
336
+ else {
337
+ const k = Jt(e, /^[\r\n\t ]+/);
338
+ l = k && k[0];
339
+ }
340
+ Pe === "application/xhtml+xml" && Ne === Ee && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
341
+ const w = g ? g.createHTML(e) : e;
342
+ if (Ne === Ee)
343
+ try {
344
+ s = new Ce().parseFromString(w, Pe);
345
+ } catch (k) {
346
+ }
347
+ if (!s || !s.documentElement) {
348
+ s = oe.createDocument(Ne, "template", null);
349
+ try {
350
+ s.documentElement.innerHTML = rt ? A : w;
351
+ } catch (k) {
352
+ }
353
+ }
354
+ const D = s.body || s.documentElement;
355
+ return e && l && D.insertBefore(o.createTextNode(l), D.childNodes[0] || null), Ne === Ee ? W.call(s, ue ? "html" : "body")[0] : ue ? s.documentElement : D;
356
+ }, vt = function(e) {
357
+ return le.call(
358
+ e.ownerDocument || e,
359
+ e,
360
+ // eslint-disable-next-line no-bitwise
361
+ E.SHOW_ELEMENT | E.SHOW_COMMENT | E.SHOW_TEXT | E.SHOW_PROCESSING_INSTRUCTION | E.SHOW_CDATA_SECTION,
362
+ null
363
+ );
364
+ }, Mt = function(e) {
365
+ return e instanceof ne && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof X) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
366
+ }, Rt = function(e) {
367
+ return typeof S == "function" && e instanceof S;
368
+ }, Te = function(e, s, l) {
369
+ L[e] && Ke(L[e], (w) => {
370
+ w.call(t, s, l, De);
371
+ });
372
+ }, Ot = function(e) {
373
+ let s = null;
374
+ if (Te("beforeSanitizeElements", e, null), Mt(e))
375
+ return me(e), !0;
376
+ const l = O(e.nodeName);
377
+ if (Te("uponSanitizeElement", e, {
378
+ tagName: l,
379
+ allowedTags: m
380
+ }), e.hasChildNodes() && !Rt(e.firstElementChild) && H(/<[/\w]/g, e.innerHTML) && H(/<[/\w]/g, e.textContent) || e.nodeType === Ge.progressingInstruction || ee && e.nodeType === Ge.comment && H(/<[/\w]/g, e.data))
381
+ return me(e), !0;
382
+ if (!m[l] || v[l]) {
383
+ if (!v[l] && Nt(l) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, l) || T.tagNameCheck instanceof Function && T.tagNameCheck(l)))
384
+ return !1;
385
+ if (it && !ke[l]) {
386
+ const w = K(e) || e.parentNode, D = de(e) || e.childNodes;
387
+ if (D && w) {
388
+ const k = D.length;
389
+ for (let j = k - 1; j >= 0; --j) {
390
+ const pe = be(D[j], !0);
391
+ pe.__removalCount = (e.__removalCount || 0) + 1, w.insertBefore(pe, G(e));
392
+ }
393
+ }
394
+ }
395
+ return me(e), !0;
396
+ }
397
+ return e instanceof y && !Sn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && H(/<\/no(script|embed|frames)/i, e.innerHTML) ? (me(e), !0) : (_e && e.nodeType === Ge.text && (s = e.textContent, Ke([ce, V, ge], (w) => {
398
+ s = Be(s, w, " ");
399
+ }), e.textContent !== s && (He(t.removed, {
400
+ element: e.cloneNode()
401
+ }), e.textContent = s)), Te("afterSanitizeElements", e, null), !1);
402
+ }, kt = function(e, s, l) {
403
+ if (gt && (s === "id" || s === "name") && (l in o || l in wn))
404
+ return !1;
405
+ if (!(P && !a[s] && H(Q, s))) {
406
+ if (!(h && H(N, s))) {
407
+ if (!x[s] || a[s]) {
408
+ if (
409
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
410
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
411
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
412
+ !(Nt(e) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, e) || T.tagNameCheck instanceof Function && T.tagNameCheck(e)) && (T.attributeNameCheck instanceof RegExp && H(T.attributeNameCheck, s) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
413
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
414
+ s === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, l) || T.tagNameCheck instanceof Function && T.tagNameCheck(l)))
415
+ )
416
+ return !1;
417
+ } else if (!st[s]) {
418
+ if (!H(q, Be(l, $, ""))) {
419
+ if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && Tt[e])) {
420
+ if (!(M && !H(I, Be(l, $, "")))) {
421
+ if (l)
422
+ return !1;
423
+ }
424
+ }
425
+ }
426
+ }
427
+ }
428
+ }
429
+ return !0;
430
+ }, Nt = function(e) {
431
+ return e !== "annotation-xml" && Jt(e, Le);
432
+ }, Dt = function(e) {
433
+ Te("beforeSanitizeAttributes", e, null);
434
+ const {
435
+ attributes: s
436
+ } = e;
437
+ if (!s)
438
+ return;
439
+ const l = {
440
+ attrName: "",
441
+ attrValue: "",
442
+ keepAttr: !0,
443
+ allowedAttributes: x
444
+ };
445
+ let w = s.length;
446
+ for (; w--; ) {
447
+ const D = s[w], {
448
+ name: k,
449
+ namespaceURI: j,
450
+ value: pe
451
+ } = D, Ue = O(k);
452
+ let U = k === "value" ? pe : qn(pe);
453
+ if (l.attrName = Ue, l.attrValue = U, l.keepAttr = !0, l.forceKeepAttr = void 0, Te("uponSanitizeAttribute", e, l), U = l.attrValue, ee && H(/((--!?|])>)|<\/(style|title)/i, U)) {
454
+ Ze(k, e);
455
+ continue;
456
+ }
457
+ if (l.forceKeepAttr || (Ze(k, e), !l.keepAttr))
458
+ continue;
459
+ if (!Y && H(/\/>/i, U)) {
460
+ Ze(k, e);
461
+ continue;
462
+ }
463
+ _e && Ke([ce, V, ge], (Pt) => {
464
+ U = Be(U, Pt, " ");
465
+ });
466
+ const It = O(e.nodeName);
467
+ if (kt(It, Ue, U)) {
468
+ if (_t && (Ue === "id" || Ue === "name") && (Ze(k, e), U = _n + U), g && typeof F == "object" && typeof F.getAttributeType == "function" && !j)
469
+ switch (F.getAttributeType(It, Ue)) {
470
+ case "TrustedHTML": {
471
+ U = g.createHTML(U);
472
+ break;
473
+ }
474
+ case "TrustedScriptURL": {
475
+ U = g.createScriptURL(U);
476
+ break;
477
+ }
478
+ }
479
+ try {
480
+ j ? e.setAttributeNS(j, k, U) : e.setAttribute(k, U), Mt(e) ? me(e) : Zt(t.removed);
481
+ } catch (Pt) {
482
+ }
483
+ }
484
+ }
485
+ Te("afterSanitizeAttributes", e, null);
486
+ }, An = function c(e) {
487
+ let s = null;
488
+ const l = vt(e);
489
+ for (Te("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
490
+ Te("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof f && c(s.content), Dt(s));
491
+ Te("afterSanitizeShadowDOM", e, null);
492
+ };
493
+ return t.sanitize = function(c) {
494
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, w = null, D = null;
495
+ if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Rt(c))
496
+ if (typeof c.toString == "function") {
497
+ if (c = c.toString(), typeof c != "string")
498
+ throw Fe("dirty is not a string, aborting");
499
+ } else
500
+ throw Fe("toString is not a function");
501
+ if (!t.isSupported)
502
+ return c;
503
+ if (b || lt(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
504
+ if (c.nodeName) {
505
+ const pe = O(c.nodeName);
506
+ if (!m[pe] || v[pe])
507
+ throw Fe("root node is forbidden and cannot be sanitized in-place");
508
+ }
509
+ } else if (c instanceof S)
510
+ s = Lt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
511
+ else {
512
+ if (!fe && !_e && !ue && // eslint-disable-next-line unicorn/prefer-includes
513
+ c.indexOf("<") === -1)
514
+ return g && Xe ? g.createHTML(c) : c;
515
+ if (s = Lt(c), !s)
516
+ return fe ? null : Xe ? A : "";
517
+ }
518
+ s && C && me(s.firstChild);
519
+ const k = vt(Ie ? c : s);
520
+ for (; w = k.nextNode(); )
521
+ Ot(w) || (w.content instanceof f && An(w.content), Dt(w));
522
+ if (Ie)
523
+ return c;
524
+ if (fe) {
525
+ if (je)
526
+ for (D = he.call(s.ownerDocument); s.firstChild; )
527
+ D.appendChild(s.firstChild);
528
+ else
529
+ D = s;
530
+ return (x.shadowroot || x.shadowrootmode) && (D = ie.call(i, D, !0)), D;
531
+ }
532
+ let j = ue ? s.outerHTML : s.innerHTML;
533
+ return ue && m["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && H(hn, s.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
534
+ ` + j), _e && Ke([ce, V, ge], (pe) => {
535
+ j = Be(j, pe, " ");
536
+ }), g && Xe ? g.createHTML(j) : j;
537
+ }, t.setConfig = function() {
538
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
539
+ lt(c), b = !0;
540
+ }, t.clearConfig = function() {
541
+ De = null, b = !1;
542
+ }, t.isValidAttribute = function(c, e, s) {
543
+ De || lt({});
544
+ const l = O(c), w = O(e);
545
+ return kt(l, w, s);
546
+ }, t.addHook = function(c, e) {
547
+ typeof e == "function" && (L[c] = L[c] || [], He(L[c], e));
548
+ }, t.removeHook = function(c) {
549
+ if (L[c])
550
+ return Zt(L[c]);
551
+ }, t.removeHooks = function(c) {
552
+ L[c] && (L[c] = []);
553
+ }, t.removeAllHooks = function() {
554
+ L = {};
555
+ }, t;
556
+ }
557
+ var nn = gn();
558
+ function co(n) {
559
+ kn(n, "svelte-1kjup2o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
560
+ }
561
+ const uo = (n) => ({}), on = (n) => ({}), fo = (n) => ({}), sn = (n) => ({}), mo = (n) => ({}), rn = (n) => ({}), po = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
562
+ function ln(n) {
563
+ let t, o, i, r, f, _, S, y, E, X, ne, Ce, F = (
564
+ /*$_*/
565
+ n[8]("sessionExpirationHeader") + ""
566
+ ), z, be, ae, G, de, K, g, A, oe, le, he, W, ie, L, ce = (
567
+ /*$_*/
568
+ n[8]("sessionExpirationEnd") + ""
569
+ ), V, ge, Q, N, I, $, Le, q, m, Se, x;
570
+ const Ae = (
571
+ /*#slots*/
572
+ n[23].icon
573
+ ), T = $e(
574
+ Ae,
575
+ n,
576
+ /*$$scope*/
577
+ n[22],
578
+ an
579
+ ), v = T || ho(n), a = (
580
+ /*#slots*/
581
+ n[23].title
582
+ ), h = $e(
583
+ a,
584
+ n,
585
+ /*$$scope*/
586
+ n[22],
587
+ rn
588
+ ), P = (
589
+ /*#slots*/
590
+ n[23].text
591
+ ), M = $e(
592
+ P,
593
+ n,
594
+ /*$$scope*/
595
+ n[22],
596
+ sn
597
+ ), Y = M || go(n), _e = [Eo, _o], ee = [];
598
+ function ue(b, C) {
599
+ return (
600
+ /*showLoaderButton*/
601
+ b[6] ? 0 : 1
602
+ );
603
+ }
604
+ return N = ue(n), I = ee[N] = _e[N](n), {
605
+ c() {
606
+ t = R("div"), o = R("div"), i = R("div"), r = R("div"), f = se("svg"), _ = se("defs"), S = se("mask"), y = se("circle"), E = se("rect"), X = se("circle"), ne = se("circle"), Ce = ye(), z = We(F), be = ye(), ae = R("div"), G = se("svg"), de = se("path"), K = ye(), g = R("div"), A = R("div"), v && v.c(), oe = ye(), h && h.c(), le = ye(), Y && Y.c(), he = ye(), W = R("div"), ie = R("button"), L = R("span"), V = We(ce), ge = ye(), Q = R("button"), I.c(), u(y, "cx", "100"), u(y, "cy", "100"), u(y, "r", "90"), u(E, "x", "88"), u(E, "y", "40"), u(E, "width", "24"), u(E, "height", "80"), u(E, "rx", "12"), u(E, "fill", "black"), u(X, "cx", "100"), u(X, "cy", "150"), u(X, "r", "14"), u(X, "fill", "black"), u(S, "id", "exclamation-mask"), u(ne, "cx", "100"), u(ne, "cy", "100"), u(ne, "r", "90"), u(ne, "mask", "url(#exclamation-mask)"), u(f, "viewBox", "0 0 200 200"), u(f, "xmlns", "http://www.w3.org/2000/svg"), u(r, "class", "CashierSessionExpirationModalHeaderTitle"), u(de, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), u(G, "xmlns", "http://www.w3.org/2000/svg"), u(G, "viewBox", "0 0 13 13"), u(G, "fill", "none"), u(G, "class", "CloseButton"), u(ae, "class", "ModalCloseIcon"), u(i, "class", "CashierSessionExpirationModalHeader"), u(L, "class", "CashierSessionExpirationButtonText"), u(ie, "type", "button"), u(ie, "class", "ModalButton Secondary"), u(Q, "type", "button"), u(Q, "class", $ = "ModalButton Primary " + /*showLoaderButton*/
607
+ (n[6] ? "Disabled" : "")), u(W, "class", "ButtonsContainer"), u(A, "class", "CashierSessionExpiration"), u(g, "class", "CashierSessionExpirationModalContainer"), u(o, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"), Ht(() => (
608
+ /*div7_elementresize_handler*/
609
+ n[25].call(t)
610
+ ));
611
+ },
612
+ m(b, C) {
613
+ Me(b, t, C), p(t, o), p(o, i), p(i, r), p(r, f), p(f, _), p(_, S), p(S, y), p(S, E), p(S, X), p(f, ne), p(r, Ce), p(r, z), p(i, be), p(i, ae), p(ae, G), p(G, de), p(o, K), p(o, g), p(g, A), v && v.m(A, null), p(A, oe), h && h.m(A, null), p(A, le), Y && Y.m(A, null), p(A, he), p(A, W), p(W, ie), p(ie, L), p(L, V), p(W, ge), p(W, Q), ee[N].m(Q, null), n[24](A), Le = Pn(
614
+ t,
615
+ /*div7_elementresize_handler*/
616
+ n[25].bind(t)
617
+ ), m = !0, Se || (x = [
618
+ Je(
619
+ G,
620
+ "click",
621
+ /*goToHome*/
622
+ n[11]
623
+ ),
624
+ Je(
625
+ ie,
626
+ "click",
627
+ /*goToHome*/
628
+ n[11]
629
+ ),
630
+ Je(
631
+ Q,
632
+ "click",
633
+ /*renewSession*/
634
+ n[9]
635
+ ),
636
+ Je(
637
+ t,
638
+ "click",
639
+ /*outOfModalClick*/
640
+ n[10]
641
+ )
642
+ ], Se = !0);
643
+ },
644
+ p(b, C) {
645
+ n = b, (!m || C[0] & /*$_*/
646
+ 256) && F !== (F = /*$_*/
647
+ n[8]("sessionExpirationHeader") + "") && Ye(z, F), T ? T.p && (!m || C[0] & /*$$scope*/
648
+ 4194304) && et(
649
+ T,
650
+ Ae,
651
+ n,
652
+ /*$$scope*/
653
+ n[22],
654
+ m ? nt(
655
+ Ae,
656
+ /*$$scope*/
657
+ n[22],
658
+ C,
659
+ po
660
+ ) : tt(
661
+ /*$$scope*/
662
+ n[22]
663
+ ),
664
+ an
665
+ ) : v && v.p && (!m || C[0] & /*assetsurl*/
666
+ 8) && v.p(n, m ? C : [-1, -1]), h && h.p && (!m || C[0] & /*$$scope*/
667
+ 4194304) && et(
668
+ h,
669
+ a,
670
+ n,
671
+ /*$$scope*/
672
+ n[22],
673
+ m ? nt(
674
+ a,
675
+ /*$$scope*/
676
+ n[22],
677
+ C,
678
+ mo
679
+ ) : tt(
680
+ /*$$scope*/
681
+ n[22]
682
+ ),
683
+ rn
684
+ ), M ? M.p && (!m || C[0] & /*$$scope*/
685
+ 4194304) && et(
686
+ M,
687
+ P,
688
+ n,
689
+ /*$$scope*/
690
+ n[22],
691
+ m ? nt(
692
+ P,
693
+ /*$$scope*/
694
+ n[22],
695
+ C,
696
+ fo
697
+ ) : tt(
698
+ /*$$scope*/
699
+ n[22]
700
+ ),
701
+ sn
702
+ ) : Y && Y.p && (!m || C[0] & /*$_, timeLeft*/
703
+ 384) && Y.p(n, m ? C : [-1, -1]), (!m || C[0] & /*$_*/
704
+ 256) && ce !== (ce = /*$_*/
705
+ n[8]("sessionExpirationEnd") + "") && Ye(V, ce);
706
+ let fe = N;
707
+ N = ue(n), N === fe ? ee[N].p(n, C) : (fn(), xe(ee[fe], 1, 1, () => {
708
+ ee[fe] = null;
709
+ }), un(), I = ee[N], I ? I.p(n, C) : (I = ee[N] = _e[N](n), I.c()), we(I, 1), I.m(Q, null)), (!m || C[0] & /*showLoaderButton*/
710
+ 64 && $ !== ($ = "ModalButton Primary " + /*showLoaderButton*/
711
+ (n[6] ? "Disabled" : ""))) && u(Q, "class", $);
712
+ },
713
+ i(b) {
714
+ m || (we(v, b), we(h, b), we(Y, b), we(I), b && Ht(() => {
715
+ m && (q || (q = Bt(t, Wt, { duration: (
716
+ /*duration*/
717
+ n[2]
718
+ ) }, !0)), q.run(1));
719
+ }), m = !0);
720
+ },
721
+ o(b) {
722
+ xe(v, b), xe(h, b), xe(Y, b), xe(I), b && (q || (q = Bt(t, Wt, { duration: (
723
+ /*duration*/
724
+ n[2]
725
+ ) }, !1)), q.run(0)), m = !1;
726
+ },
727
+ d(b) {
728
+ b && Re(t), v && v.d(b), h && h.d(b), Y && Y.d(b), ee[N].d(), n[24](null), Le(), b && q && q.end(), Se = !1, Un(x);
729
+ }
730
+ };
731
+ }
732
+ function cn(n) {
733
+ let t, o;
734
+ return {
735
+ c() {
736
+ t = R("img"), zt(t.src, o = `${/*assetsurl*/
737
+ n[3]}/set-timeout-icon.png`) || u(t, "src", o), u(t, "width", "300px"), u(t, "alt", "error");
738
+ },
739
+ m(i, r) {
740
+ Me(i, t, r);
741
+ },
742
+ p(i, r) {
743
+ r[0] & /*assetsurl*/
744
+ 8 && !zt(t.src, o = `${/*assetsurl*/
745
+ i[3]}/set-timeout-icon.png`) && u(t, "src", o);
746
+ },
747
+ d(i) {
748
+ i && Re(t);
749
+ }
750
+ };
751
+ }
752
+ function ho(n) {
753
+ let t, o = (
754
+ /*assetsurl*/
755
+ n[3] && cn(n)
756
+ );
757
+ return {
758
+ c() {
759
+ o && o.c(), t = Hn();
760
+ },
761
+ m(i, r) {
762
+ o && o.m(i, r), Me(i, t, r);
763
+ },
764
+ p(i, r) {
765
+ /*assetsurl*/
766
+ i[3] ? o ? o.p(i, r) : (o = cn(i), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
767
+ },
768
+ d(i) {
769
+ i && Re(t), o && o.d(i);
770
+ }
771
+ };
772
+ }
773
+ function go(n) {
774
+ let t, o, i = (
775
+ /*$_*/
776
+ n[8]("sessionExpirationTitle") + ""
777
+ ), r, f, _, S = nn.sanitize(
778
+ /*$_*/
779
+ n[8]("sessionExpirationGeneralText", { values: { second: (
780
+ /*timeLeft*/
781
+ n[7]
782
+ ) } })
783
+ ) + "";
784
+ return {
785
+ c() {
786
+ t = R("span"), o = R("p"), r = We(i), f = ye(), _ = R("p"), u(t, "class", "CashierSessionExpirationText");
787
+ },
788
+ m(y, E) {
789
+ Me(y, t, E), p(t, o), p(o, r), p(t, f), p(t, _), _.innerHTML = S;
790
+ },
791
+ p(y, E) {
792
+ E[0] & /*$_*/
793
+ 256 && i !== (i = /*$_*/
794
+ y[8]("sessionExpirationTitle") + "") && Ye(r, i), E[0] & /*$_, timeLeft*/
795
+ 384 && S !== (S = nn.sanitize(
796
+ /*$_*/
797
+ y[8]("sessionExpirationGeneralText", { values: { second: (
798
+ /*timeLeft*/
799
+ y[7]
800
+ ) } })
801
+ ) + "") && (_.innerHTML = S);
802
+ },
803
+ d(y) {
804
+ y && Re(t);
805
+ }
806
+ };
807
+ }
808
+ function _o(n) {
809
+ let t;
810
+ const o = (
811
+ /*#slots*/
812
+ n[23].button
813
+ ), i = $e(
814
+ o,
815
+ n,
816
+ /*$$scope*/
817
+ n[22],
818
+ on
819
+ ), r = i || To(n);
820
+ return {
821
+ c() {
822
+ r && r.c();
823
+ },
824
+ m(f, _) {
825
+ r && r.m(f, _), t = !0;
826
+ },
827
+ p(f, _) {
828
+ i ? i.p && (!t || _[0] & /*$$scope*/
829
+ 4194304) && et(
830
+ i,
831
+ o,
832
+ f,
833
+ /*$$scope*/
834
+ f[22],
835
+ t ? nt(
836
+ o,
837
+ /*$$scope*/
838
+ f[22],
839
+ _,
840
+ uo
841
+ ) : tt(
842
+ /*$$scope*/
843
+ f[22]
844
+ ),
845
+ on
846
+ ) : r && r.p && (!t || _[0] & /*$_*/
847
+ 256) && r.p(f, t ? _ : [-1, -1]);
848
+ },
849
+ i(f) {
850
+ t || (we(r, f), t = !0);
851
+ },
852
+ o(f) {
853
+ xe(r, f), t = !1;
854
+ },
855
+ d(f) {
856
+ r && r.d(f);
857
+ }
858
+ };
859
+ }
860
+ function Eo(n) {
861
+ let t, o, i, r, f, _ = (
862
+ /*$_*/
863
+ n[8]("sessionExpirationLoadingButton") + ""
864
+ ), S;
865
+ return {
866
+ c() {
867
+ t = R("div"), o = se("svg"), i = se("path"), r = ye(), f = R("span"), S = We(_), u(i, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), u(i, "fill", "white"), u(o, "class", "CashierSessionExpirationButtonSpinner"), u(o, "xmlns", "http://www.w3.org/2000/svg"), u(o, "width", "15"), u(o, "height", "14"), u(o, "viewBox", "0 0 15 14"), u(o, "fill", "none"), u(f, "class", "CashierSessionExpirationButtonText");
868
+ },
869
+ m(y, E) {
870
+ Me(y, t, E), p(t, o), p(o, i), p(t, r), p(t, f), p(f, S);
871
+ },
872
+ p(y, E) {
873
+ E[0] & /*$_*/
874
+ 256 && _ !== (_ = /*$_*/
875
+ y[8]("sessionExpirationLoadingButton") + "") && Ye(S, _);
876
+ },
877
+ i: Gt,
878
+ o: Gt,
879
+ d(y) {
880
+ y && Re(t);
881
+ }
882
+ };
883
+ }
884
+ function To(n) {
885
+ let t, o = (
886
+ /*$_*/
887
+ n[8]("sessionExpirationGeneralButton") + ""
888
+ ), i;
889
+ return {
890
+ c() {
891
+ t = R("span"), i = We(o), u(t, "class", "CashierSessionExpirationButtonText");
892
+ },
893
+ m(r, f) {
894
+ Me(r, t, f), p(t, i);
895
+ },
896
+ p(r, f) {
897
+ f[0] & /*$_*/
898
+ 256 && o !== (o = /*$_*/
899
+ r[8]("sessionExpirationGeneralButton") + "") && Ye(i, o);
900
+ },
901
+ d(r) {
902
+ r && Re(t);
903
+ }
904
+ };
905
+ }
906
+ function yo(n) {
907
+ let t, o, i = (
908
+ /*show*/
909
+ n[5] && ln(n)
910
+ );
911
+ return {
912
+ c() {
913
+ t = R("div"), i && i.c();
914
+ },
915
+ m(r, f) {
916
+ Me(r, t, f), i && i.m(t, null), n[26](t), o = !0;
917
+ },
918
+ p(r, f) {
919
+ /*show*/
920
+ r[5] ? i ? (i.p(r, f), f[0] & /*show*/
921
+ 32 && we(i, 1)) : (i = ln(r), i.c(), we(i, 1), i.m(t, null)) : i && (fn(), xe(i, 1, 1, () => {
922
+ i = null;
923
+ }), un());
924
+ },
925
+ i(r) {
926
+ o || (we(i), o = !0);
927
+ },
928
+ o(r) {
929
+ xe(i), o = !1;
930
+ },
931
+ d(r) {
932
+ r && Re(t), i && i.d(), n[26](null);
933
+ }
934
+ };
935
+ }
936
+ const wo = 90;
937
+ function bo(n, t, o) {
938
+ let i, r;
939
+ Ut(n, jt, (a) => o(21, i = a)), Ut(n, Bn, (a) => o(8, r = a));
940
+ let { $$slots: f = {}, $$scope: _ } = t;
941
+ Yt.extend(Gn);
942
+ let { clientstyling: S = "" } = t, { clientstylingurl: y = "" } = t, { width: E } = t, { height: X } = t, { duration: ne = 200 } = t, { assetsurl: Ce = "" } = t, { lang: F = "en" } = t, { translationurl: z = "" } = t, { endpoint: be } = t, { currency: ae } = t, { customerid: G } = t, { selectedpaymentmethodname: de } = t, { mbsource: K = "" } = t, g, A = !1, oe = !1, le, he, W, ie, L, ce;
943
+ var V;
944
+ (function(a) {
945
+ a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
946
+ })(V || (V = {}));
947
+ const ge = (a) => {
948
+ a.data.type === "StartSessionCountdown" && (ie = a.data.paymentMethodName);
949
+ }, Q = (a) => {
950
+ try {
951
+ return JSON.parse(atob(a.split(".")[1]));
952
+ } catch (h) {
953
+ return null;
954
+ }
955
+ }, N = () => {
956
+ window.postMessage(
957
+ {
958
+ type: "ErrorResponseCode",
959
+ errorResponseCode: L
960
+ },
961
+ window.location.href
962
+ );
963
+ }, I = (a) => {
964
+ o(5, A = !1);
965
+ const h = Q(a);
966
+ h && (he = h == null ? void 0 : h.exp, o(7, le = he), W && clearInterval(W), W = setInterval(
967
+ () => {
968
+ const P = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
969
+ o(7, le = he - P), le <= wo && o(5, A = !0), P >= he && ($(), window.postMessage({ type: "SessionExpired" }, window.location.href));
970
+ },
971
+ 1e3
972
+ ));
973
+ }, $ = () => {
974
+ o(7, le = 0), o(5, A = !1), clearInterval(W);
975
+ }, Le = () => {
976
+ if (oe)
977
+ return;
978
+ const a = new URL(`${be}/v1/player/${G}/payment/GetPaymentMethod`), h = new Headers();
979
+ o(6, oe = !0), h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
980
+ const P = {
981
+ method: "POST",
982
+ mode: "cors",
983
+ headers: h,
984
+ body: JSON.stringify({
985
+ PaymentMethodName: ie || de,
986
+ Currency: ae,
987
+ XPaymentSessionToken: i
988
+ })
989
+ };
990
+ fetch(a, P).then((M) => M.json()).then((M) => {
991
+ if (M.error) {
992
+ window.postMessage(
993
+ {
994
+ type: "ShowSessionError",
995
+ error: M.error
996
+ },
997
+ window.location.href
998
+ ), $();
999
+ return;
1000
+ }
1001
+ if (M.ResponseCode === V.PlayerSessionIsNotValid || M.ResponseCode === V.JwtTokenError) {
1002
+ L = M.ResponseCode, $(), N();
1003
+ return;
1004
+ }
1005
+ if (M.ResponseCode !== V.Success) {
1006
+ L = M.ResponseCode, $();
1007
+ return;
1008
+ }
1009
+ M.XPaymentSessionToken && jt.set(M.XPaymentSessionToken);
1010
+ }).finally(() => o(6, oe = !1));
1011
+ }, q = (a) => {
1012
+ const h = a.currentTarget;
1013
+ a.target === h && Le();
1014
+ }, m = () => {
1015
+ fetch(z).then((h) => h.json()).then((h) => {
1016
+ Object.keys(h).forEach((P) => {
1017
+ Xt(P, h[P]);
1018
+ });
1019
+ }).catch((h) => {
1020
+ console.log(h);
1021
+ });
1022
+ }, Se = () => {
1023
+ window.postMessage({ type: "Cashier:goToHome" }, window.location.href), o(5, A = !1);
1024
+ };
1025
+ Object.keys(Vt).forEach((a) => {
1026
+ Xt(a, Vt[a]);
1027
+ });
1028
+ const x = () => {
1029
+ Wn(F);
1030
+ };
1031
+ Nn(() => (window.addEventListener("message", ge, !1), () => {
1032
+ window.removeEventListener("message", ge);
1033
+ })), Dn(() => {
1034
+ clearInterval(W);
1035
+ });
1036
+ function Ae(a) {
1037
+ Ft[a ? "unshift" : "push"](() => {
1038
+ g = a, o(4, g);
1039
+ });
1040
+ }
1041
+ function T() {
1042
+ E = this.clientWidth, X = this.clientHeight, o(0, E), o(1, X);
1043
+ }
1044
+ function v(a) {
1045
+ Ft[a ? "unshift" : "push"](() => {
1046
+ g = a, o(4, g);
1047
+ });
1048
+ }
1049
+ return n.$$set = (a) => {
1050
+ "clientstyling" in a && o(12, S = a.clientstyling), "clientstylingurl" in a && o(13, y = a.clientstylingurl), "width" in a && o(0, E = a.width), "height" in a && o(1, X = a.height), "duration" in a && o(2, ne = a.duration), "assetsurl" in a && o(3, Ce = a.assetsurl), "lang" in a && o(14, F = a.lang), "translationurl" in a && o(15, z = a.translationurl), "endpoint" in a && o(16, be = a.endpoint), "currency" in a && o(17, ae = a.currency), "customerid" in a && o(18, G = a.customerid), "selectedpaymentmethodname" in a && o(19, de = a.selectedpaymentmethodname), "mbsource" in a && o(20, K = a.mbsource), "$$scope" in a && o(22, _ = a.$$scope);
1051
+ }, n.$$.update = () => {
1052
+ n.$$.dirty[0] & /*$xPaymentSessionToken*/
1053
+ 2097152 && I(i), n.$$.dirty[0] & /*lang*/
1054
+ 16384 && F && x(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1055
+ 4112 && S && g && Fn(g, S), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1056
+ 8208 && y && g && zn(g, y), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1057
+ 1048592 && K && g && In(g, `${K}.Style`, ce), n.$$.dirty[0] & /*translationurl*/
1058
+ 32768 && z && m();
1059
+ }, [
1060
+ E,
1061
+ X,
1062
+ ne,
1063
+ Ce,
1064
+ g,
1065
+ A,
1066
+ oe,
1067
+ le,
1068
+ r,
1069
+ Le,
1070
+ q,
1071
+ Se,
1072
+ S,
1073
+ y,
1074
+ F,
1075
+ z,
1076
+ be,
1077
+ ae,
1078
+ G,
1079
+ de,
1080
+ K,
1081
+ i,
1082
+ _,
1083
+ f,
1084
+ Ae,
1085
+ T,
1086
+ v
1087
+ ];
1088
+ }
1089
+ class So extends vn {
1090
+ constructor(t) {
1091
+ super(), Mn(
1092
+ this,
1093
+ t,
1094
+ bo,
1095
+ yo,
1096
+ On,
1097
+ {
1098
+ clientstyling: 12,
1099
+ clientstylingurl: 13,
1100
+ width: 0,
1101
+ height: 1,
1102
+ duration: 2,
1103
+ assetsurl: 3,
1104
+ lang: 14,
1105
+ translationurl: 15,
1106
+ endpoint: 16,
1107
+ currency: 17,
1108
+ customerid: 18,
1109
+ selectedpaymentmethodname: 19,
1110
+ mbsource: 20
1111
+ },
1112
+ co,
1113
+ [-1, -1]
1114
+ );
1115
+ }
1116
+ get clientstyling() {
1117
+ return this.$$.ctx[12];
1118
+ }
1119
+ set clientstyling(t) {
1120
+ this.$$set({ clientstyling: t }), Z();
1121
+ }
1122
+ get clientstylingurl() {
1123
+ return this.$$.ctx[13];
1124
+ }
1125
+ set clientstylingurl(t) {
1126
+ this.$$set({ clientstylingurl: t }), Z();
1127
+ }
1128
+ get width() {
1129
+ return this.$$.ctx[0];
1130
+ }
1131
+ set width(t) {
1132
+ this.$$set({ width: t }), Z();
1133
+ }
1134
+ get height() {
1135
+ return this.$$.ctx[1];
1136
+ }
1137
+ set height(t) {
1138
+ this.$$set({ height: t }), Z();
1139
+ }
1140
+ get duration() {
1141
+ return this.$$.ctx[2];
1142
+ }
1143
+ set duration(t) {
1144
+ this.$$set({ duration: t }), Z();
1145
+ }
1146
+ get assetsurl() {
1147
+ return this.$$.ctx[3];
1148
+ }
1149
+ set assetsurl(t) {
1150
+ this.$$set({ assetsurl: t }), Z();
1151
+ }
1152
+ get lang() {
1153
+ return this.$$.ctx[14];
1154
+ }
1155
+ set lang(t) {
1156
+ this.$$set({ lang: t }), Z();
1157
+ }
1158
+ get translationurl() {
1159
+ return this.$$.ctx[15];
1160
+ }
1161
+ set translationurl(t) {
1162
+ this.$$set({ translationurl: t }), Z();
1163
+ }
1164
+ get endpoint() {
1165
+ return this.$$.ctx[16];
1166
+ }
1167
+ set endpoint(t) {
1168
+ this.$$set({ endpoint: t }), Z();
1169
+ }
1170
+ get currency() {
1171
+ return this.$$.ctx[17];
1172
+ }
1173
+ set currency(t) {
1174
+ this.$$set({ currency: t }), Z();
1175
+ }
1176
+ get customerid() {
1177
+ return this.$$.ctx[18];
1178
+ }
1179
+ set customerid(t) {
1180
+ this.$$set({ customerid: t }), Z();
1181
+ }
1182
+ get selectedpaymentmethodname() {
1183
+ return this.$$.ctx[19];
1184
+ }
1185
+ set selectedpaymentmethodname(t) {
1186
+ this.$$set({ selectedpaymentmethodname: t }), Z();
1187
+ }
1188
+ get mbsource() {
1189
+ return this.$$.ctx[20];
1190
+ }
1191
+ set mbsource(t) {
1192
+ this.$$set({ mbsource: t }), Z();
1193
+ }
1194
+ }
1195
+ Rn(So, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
1196
+ export {
1197
+ So as default
1198
+ };