@everymatrix/cashier-page 1.99.58 → 1.99.59

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 (58) hide show
  1. package/components/{CashierCarousel-BcGw2Iil.js → CashierCarousel-CJtWorSQ.js} +4 -6
  2. package/components/{CashierCarousel-oeV9uwbB.cjs → CashierCarousel-DdZUtrwb.cjs} +1 -1
  3. package/components/{CashierCarousel-DIWNTroF.js → CashierCarousel-Dz-764eL.js} +4 -6
  4. package/components/{CashierError-DvxLpmQl.js → CashierError-BVnbSsWW.js} +2 -2
  5. package/components/{CashierError-B-SvMqHe.cjs → CashierError-CyOn_w6n.cjs} +1 -1
  6. package/components/{CashierError-CY8AKVRd.js → CashierError-DGp705iQ.js} +2 -2
  7. package/components/{CashierHeader-C9OtNu_h.js → CashierHeader-BWlMJjEk.js} +4 -7
  8. package/components/{CashierHeader-SblNGTaM.js → CashierHeader-DCLhUu5P.js} +4 -7
  9. package/components/{CashierHeader-BKPnlW1J.cjs → CashierHeader-TNoSsp7R.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-DbIrq8JB.js → CashierIframeRedirect-BKYcqmhK.js} +3 -3
  11. package/components/{CashierIframeRedirect-4zWDELkB.cjs → CashierIframeRedirect-DpxscKvW.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-D-7sFno5.js → CashierIframeRedirect-ML8yhbxt.js} +3 -3
  13. package/components/{CashierMethodDetails-CKThC1HM.js → CashierMethodDetails-BS0O9494.js} +55 -94
  14. package/components/{CashierMethodDetails-Cn7YhxQ2.js → CashierMethodDetails-D2bHBA7M.js} +55 -94
  15. package/components/{CashierMethodDetails-CdZ1oEyr.cjs → CashierMethodDetails-D5CoDgEr.cjs} +2 -2
  16. package/components/{CashierMethodsList-bifISWCM.cjs → CashierMethodsList-BaxLPtwx.cjs} +1 -1
  17. package/components/{CashierMethodsList-BseiqoYS.js → CashierMethodsList-GMv73qvB.js} +2 -2
  18. package/components/{CashierMethodsList-DFrbG4o9.js → CashierMethodsList-UqHTRs6v.js} +2 -2
  19. package/components/{CashierModal-DCG6Cjxr.cjs → CashierModal-2-zKJuyV.cjs} +1 -1
  20. package/components/{CashierModal-CNnSLXtD.js → CashierModal-Bs59rIJP.js} +3 -4
  21. package/components/{CashierModal-kEpamCPW.js → CashierModal-UCVrxQ_z.js} +3 -4
  22. package/components/{CashierNotifications-BQu8GnW6.js → CashierNotifications-96uIaTlk.js} +1 -1
  23. package/components/{CashierNotifications-eaYYJx6S.js → CashierNotifications-DEnGPaZ-.js} +1 -1
  24. package/components/{CashierNotifications-Byo5heQd.cjs → CashierNotifications-tUr5uOkW.cjs} +1 -1
  25. package/components/{CashierPage-Cw8SuqrM.cjs → CashierPage-Cn_6Y31M.cjs} +2 -2
  26. package/components/{CashierPage-Q3gRhq-t.js → CashierPage-DKkNfScX.js} +81 -146
  27. package/components/{CashierPage-DqvIiBXC.js → CashierPage-gngXzyvp.js} +82 -147
  28. package/components/{CashierReceiptPage-ByymtCV7.js → CashierReceiptPage-BLioIvS1.js} +7 -12
  29. package/components/{CashierReceiptPage-CXd1LxB9.cjs → CashierReceiptPage-D4zHCqcb.cjs} +1 -1
  30. package/components/{CashierReceiptPage-BcwAk3lc.js → CashierReceiptPage-DB4IRsZq.js} +7 -12
  31. package/components/CashierSessionExpirationModal-B5K8_aPx.js +2235 -0
  32. package/components/CashierSessionExpirationModal-C5RURmGt.cjs +3 -0
  33. package/components/CashierSessionExpirationModal-bnYaJkxM.js +2235 -0
  34. package/components/{CashierSpinner-DlrzVgZb.js → CashierSpinner-5kG9xekp.js} +2 -2
  35. package/components/{CashierSpinner-IoAgO9zR.cjs → CashierSpinner-9LdAaRH1.cjs} +1 -1
  36. package/components/{CashierSpinner-DtfhoBoU.js → CashierSpinner-DgKQYH3d.js} +2 -2
  37. package/components/{CashierStepUp-azFXbSe8.cjs → CashierStepUp-7eh4BF2Q.cjs} +1 -1
  38. package/components/{CashierStepUp-Cy3WnSZu.js → CashierStepUp-DbFkfvys.js} +8 -14
  39. package/components/{CashierStepUp-BohwBFVk.js → CashierStepUp-ZsDc-nSM.js} +8 -14
  40. package/components/{CashierTransactionHistory-DiCpwadg.js → CashierTransactionHistory-BZN4rNLQ.js} +4 -4
  41. package/components/{CashierTransactionHistory-BWBFLDa9.cjs → CashierTransactionHistory-DwijdMtL.cjs} +1 -1
  42. package/components/{CashierTransactionHistory-BtS8Qvjj.js → CashierTransactionHistory-NQYozSMg.js} +4 -4
  43. package/components/{CashierVerifications-2LE_3tfS.js → CashierVerifications-BxDoaS7p.js} +5 -7
  44. package/components/{CashierVerifications-DeaKhVYC.cjs → CashierVerifications-DGYILGGe.cjs} +1 -1
  45. package/components/{CashierVerifications-72R9JTq9.js → CashierVerifications-MHaarwxq.js} +5 -7
  46. package/components/{TxnStatusIcon-Cn8b5-c6.js → TxnStatusIcon-C061Ckrf.js} +6 -11
  47. package/components/{TxnStatusIcon-DVPKS6QM.js → TxnStatusIcon-DmjdxtdT.js} +6 -11
  48. package/components/{TxnStatusIcon-WsTomkfH.cjs → TxnStatusIcon-DznYpTuX.cjs} +1 -1
  49. package/components/{TxnTypeIcons-BpBKcbTi.js → TxnTypeIcons-B3GP1FD8.js} +4 -7
  50. package/components/{TxnTypeIcons-C5f-boTP.js → TxnTypeIcons-BNiMYDpn.js} +4 -7
  51. package/components/{TxnTypeIcons-3dGL7iAQ.cjs → TxnTypeIcons-_be7k-vy.cjs} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierSessionExpirationModal-CiOXVQ4Q.js +0 -1228
  57. package/components/CashierSessionExpirationModal-DRlOrhYj.js +0 -1228
  58. package/components/CashierSessionExpirationModal-Ds_BwdK1.cjs +0 -2
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPage-Cn_6Y31M.cjs"),It=require("./CashierHeader-TNoSsp7R.cjs");function bn(i,n){t.addMessages(i,n)}function Eo(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const yn={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d'expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"},da:{sessionExpirationHeader:"Sessionsadvarsel",sessionExpirationTitle:"Din session er ved at udløbe!",sessionExpirationGeneralText:"Din session afsluttes automatisk om <b>{second} sekunder</b>.",sessionExpirationGeneralButton:"Fortsæt session",sessionExpirationLoadingButton:"Behandler...",sessionExpirationEnd:"Afslut session"},de:{sessionExpirationHeader:"Sitzungswarnung",sessionExpirationTitle:"Ihre Sitzung läuft bald ab!",sessionExpirationGeneralText:"Ihre Sitzung wird automatisch in <b>{second} Sekunden</b> beendet.",sessionExpirationGeneralButton:"Sitzung fortsetzen",sessionExpirationLoadingButton:"Verarbeitung...",sessionExpirationEnd:"Sitzung beenden"},nl:{sessionExpirationHeader:"Sessiewaarschuwing",sessionExpirationTitle:"Uw sessie staat op het punt te verlopen!",sessionExpirationGeneralText:"Uw sessie wordt automatisch beëindigd over <b>{second} seconden</b>.",sessionExpirationGeneralButton:"Sessie voortzetten",sessionExpirationLoadingButton:"Verwerken...",sessionExpirationEnd:"Sessie beëindigen"},ru:{sessionExpirationHeader:"Предупреждение о сессии",sessionExpirationTitle:"Ваша сессия скоро завершится!",sessionExpirationGeneralText:"Ваша сессия автоматически завершится через <b>{second} секунд</b>.",sessionExpirationGeneralButton:"Продолжить сессию",sessionExpirationLoadingButton:"Обработка...",sessionExpirationEnd:"Завершить сессию"},az:{sessionExpirationHeader:"Sessiya Xəbərdarlığı",sessionExpirationTitle:"Sessiyanızın müddəti bitmək üzrədir!",sessionExpirationGeneralText:"Sessiyanız <b>{second} saniyə</b> ərzində avtomatik olaraq sona çatacaq.",sessionExpirationGeneralButton:"Sessiyaya davam et",sessionExpirationLoadingButton:"İcra olunur...",sessionExpirationEnd:"Sessiyanı sonlandır"}};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Sn(i,n){(n==null||n>i.length)&&(n=i.length);for(var r=0,s=Array(n);r<n;r++)s[r]=i[r];return s}function To(i){if(Array.isArray(i))return i}function bo(i,n){var r=i==null?null:typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var s,u,f,_,w=[],E=!0,S=!1;try{if(f=(r=r.call(i)).next,n!==0)for(;!(E=(s=f.call(r)).done)&&(w.push(s.value),w.length!==n);E=!0);}catch(U){S=!0,u=U}finally{try{if(!E&&r.return!=null&&(_=r.return(),Object(_)!==_))return}finally{if(S)throw u}}return w}}function yo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function So(i,n){return To(i)||bo(i,n)||wo(i,n)||yo()}function wo(i,n){if(i){if(typeof i=="string")return Sn(i,n);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sn(i,n):void 0}}const jn=Object.entries,wn=Object.setPrototypeOf,Ao=Object.isFrozen,Yn=Object.getPrototypeOf,Vn=Object.getOwnPropertyDescriptor;let H=Object.freeze,W=Object.seal,Ye=Object.create,Xn=typeof Reflect!="undefined"&&Reflect,jt=Xn.apply,Yt=Xn.construct;H||(H=function(n){return n});W||(W=function(n){return n});jt||(jt=function(n,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return n.apply(r,u)});Yt||(Yt=function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new n(...s)});const Ee=L(Array.prototype.forEach),xo=L(Array.prototype.lastIndexOf),An=L(Array.prototype.pop),Je=L(Array.prototype.push),Co=L(Array.prototype.slice),vo=L(Array.prototype.splice),Ve=Array.isArray,Nt=qn(Set),Pt=L(Set.prototype.add),Qe=L(Set.prototype.has),Pe=L(String.prototype.toLowerCase),zt=L(String.prototype.toString),xn=L(String.prototype.match),$e=L(String.prototype.replace),Cn=L(String.prototype.indexOf),Oo=L(String.prototype.trim),Lo=L(Number.prototype.toString),Ro=L(Boolean.prototype.toString),vn=typeof BigInt=="undefined"?null:L(BigInt.prototype.toString),On=typeof Symbol=="undefined"?null:L(Symbol.prototype.toString),Q=L(Object.prototype.hasOwnProperty),et=L(Object.prototype.toString),G=L(RegExp.prototype.test),Te=qn(TypeError);function L(i){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return jt(i,n,s)}}function qn(i){return function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return Yt(i,r)}}function y(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe;if(wn&&wn(i,null),!Ve(n))return i;let s=n.length;for(;s--;){let u=n[s];if(typeof u=="string"){const f=r(u);f!==u&&(Ao(n)||(n[s]=f),u=f)}i[u]=!0}return i}function Mo(i){for(let n=0;n<i.length;n++)Q(i,n)||(i[n]=null);return i}function re(i){const n=Ye(null);for(const s of jn(i)){var r=So(s,2);const u=r[0],f=r[1];Q(i,u)&&(Ve(f)?n[u]=Mo(f):f&&typeof f=="object"&&f.constructor===Object?n[u]=re(f):n[u]=f)}return n}function Do(i){switch(typeof i){case"string":return i;case"number":return Lo(i);case"boolean":return Ro(i);case"bigint":return vn?vn(i):"0";case"symbol":return On?On(i):"Symbol()";case"undefined":return et(i);case"function":case"object":{if(i===null)return et(i);const n=i,r=ae(n,"toString");if(typeof r=="function"){const s=r(n);return typeof s=="string"?s:et(s)}return et(i)}default:return et(i)}}function ae(i,n){for(;i!==null;){const s=Vn(i,n);if(s){if(s.get)return L(s.get);if(typeof s.value=="function")return L(s.value)}i=Yn(i)}function r(){return null}return r}function ko(i,n){for(;i!==null;){const r=Vn(i,n);if(r)return r.get?L(r.get):null;i=Yn(i)}return null}function Io(i){try{return G(i,""),!0}catch(n){return!1}}const Ln=H(["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","search","section","select","shadow","slot","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=H(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bt=H(["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"]),No=H(["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"]),Ht=H(["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"]),Po=H(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rn=H(["#text"]),Mn=H(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ft=H(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","dominant-baseline","dur","edgemode","elevation","end","exponent","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","intercept","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","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","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","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Dn=H(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),pt=H(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zo=W(/{{[\w\W]*|^[\w\W]*}}/g),Uo=W(/<%[\w\W]*|^[\w\W]*%>/g),Bo=W(/\${[\w\W]*/g),Ho=W(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fo=W(/^aria-[\-\w]+$/),kn=W(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Go=W(/^(?:\w+script|data):/i),Wo=W(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jo=W(/^html$/i),Yo=W(/^[a-z][.\w]*(-[.\w]+)+$/i),Gt=W(/<[/\w!]/g),In=W(/<[/\w]/g),Vo=W(/<\/no(script|embed|frames)/i),Nn=W(/\/>/i),I={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Xo=H(y({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),qo=function(){return typeof window=="undefined"?null:window},Ko=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return n.createPolicy(f,{createHTML(_){return _},createScriptURL(_){return _}})}catch(_){return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Pn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ve=function(n,r,s,u){return Q(n,r)&&Ve(n[r])?y(u.base?re(u.base):{},n[r],u.transform):s},Wt=function(n,r,s){const u=Q(n,r)?n[r]:void 0;return u&&typeof u=="object"?re(u):s()};function Kn(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qo();const n=c=>Kn(c);if(n.version="3.4.17",n.removed=[],!i||!i.document||i.document.nodeType!==I.document||!i.Element)return n.isSupported=!1,n;let r=i.document;const s=r,u=s.currentScript;i.DocumentFragment;const f=i.HTMLTemplateElement,_=i.Node,w=i.Element,E=i.NodeFilter;i.NamedNodeMap===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;const S=i.DOMParser,U=i.trustedTypes,N=w.prototype,Oe=ae(N,"cloneNode"),$=ae(N,"remove"),le=ae(N,"removeAttributeNode"),be=ae(N,"nextSibling"),q=ae(N,"childNodes"),P=ae(N,"parentNode"),ce=ae(N,"shadowRoot"),ue=ae(N,"attributes"),A=_&&_.prototype?ae(_.prototype,"nodeType"):null,x=_&&_.prototype?ae(_.prototype,"nodeName"):null,se=_&&_.prototype?ae(_.prototype,"ownerDocument"):null,M=function(e){return A?A(e):e.nodeType},ee=function(e){return x?x(e):e.nodeName},Y=ko(N,"namespaceURI"),te=function(e){return Y?Y(e):e.namespaceURI};if(typeof f=="function"){const c=r.createElement("template");c.content&&c.content.ownerDocument&&(r=c.content.ownerDocument)}let R,K="",ne,ye=!1,j=0;const F=function(){if(j>0)throw Te('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},k=function(e){F(),j++;try{return R.createHTML(e)}finally{j--}},fe=function(e){F(),j++;try{return R.createScriptURL(e)}finally{j--}},Le=function(){return ye||(ne=Ko(U,u),ye=!0),ne},V=r,C=V.implementation,Se=V.createNodeIterator,ze=V.createDocumentFragment,Re=V.getElementsByTagName,we=s.importNode;let g=Pn();n.isSupported=typeof jn=="function"&&typeof P=="function"&&C&&C.createHTMLDocument!==void 0;const p=zo,b=Uo,oe=Bo,B=Ho,ie=Fo,tt=Go,pe=Wo,nt=Yo;let v=kn,h=null;const Me=y({},[...Ln,...Ut,...Bt,...Ht,...Rn]);let O=null;const dt=y({},[...Mn,...Ft,...Dn,...pt]);let me=Object.seal(Ye(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xe=null,Vt=null;const Ae=Object.seal(Ye(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xt=!0,mt=!0,qt=!1,ht=!0,ge=!1,De=!0,ke=!1,_t=!1,ot=null,it=null,gt=!1,Ue=!1,rt=!1,st=!1,Kt=!0,Zt=!1;const Jt="user-content-";let Et=!0,Tt=!1,Ie=null,Be={},Ne=null;const Qt=y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let $t=null;const en=y({},["audio","video","img","source","image","track"]);let tn=null;const nn=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",lt="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml";let He=he,bt=!1,yt=null;const Jn=y({},[at,lt,he],zt),on=H(["mi","mo","mn","ms","mtext"]);let St=y({},on);const rn=H(["annotation-xml"]);let wt=y({},rn);const Qn=y({},["title","style","font","a","script"]);let qe=null;const $n=["application/xhtml+xml","text/html"],eo="text/html";let D=null,Fe=null;const to=r.createElement("form"),sn=function(e){return e instanceof RegExp||e instanceof Function},At=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Fe&&Fe===e)return;(!e||typeof e!="object")&&(e={}),e=re(e),qe=$n.indexOf(e.PARSER_MEDIA_TYPE)===-1?eo:e.PARSER_MEDIA_TYPE,D=qe==="application/xhtml+xml"?zt:Pe,h=ve(e,"ALLOWED_TAGS",Me,{transform:D}),O=ve(e,"ALLOWED_ATTR",dt,{transform:D}),yt=ve(e,"ALLOWED_NAMESPACES",Jn,{transform:zt}),tn=ve(e,"ADD_URI_SAFE_ATTR",nn,{transform:D,base:nn}),$t=ve(e,"ADD_DATA_URI_TAGS",en,{transform:D,base:en}),Ne=ve(e,"FORBID_CONTENTS",Qt,{transform:D}),Xe=ve(e,"FORBID_TAGS",re({}),{transform:D}),Vt=ve(e,"FORBID_ATTR",re({}),{transform:D}),Be=Q(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?re(e.USE_PROFILES):e.USE_PROFILES:!1,Xt=e.ALLOW_ARIA_ATTR!==!1,mt=e.ALLOW_DATA_ATTR!==!1,qt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ht=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=e.SAFE_FOR_TEMPLATES||!1,De=e.SAFE_FOR_XML!==!1,ke=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,rt=e.RETURN_DOM_FRAGMENT||!1,st=e.RETURN_TRUSTED_TYPE||!1,gt=e.FORCE_BODY||!1,Kt=e.SANITIZE_DOM!==!1,Zt=e.SANITIZE_NAMED_PROPS||!1,Et=e.KEEP_CONTENT!==!1,Tt=e.IN_PLACE||!1,v=Io(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kn,He=typeof e.NAMESPACE=="string"?e.NAMESPACE:he,St=Wt(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>y({},on)),wt=Wt(e,"HTML_INTEGRATION_POINTS",()=>y({},rn));const o=Wt(e,"CUSTOM_ELEMENT_HANDLING",()=>Ye(null));if(me=Ye(null),Q(o,"tagNameCheck")&&sn(o.tagNameCheck)&&(me.tagNameCheck=o.tagNameCheck),Q(o,"attributeNameCheck")&&sn(o.attributeNameCheck)&&(me.attributeNameCheck=o.attributeNameCheck),Q(o,"allowCustomizedBuiltInElements")&&typeof o.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=o.allowCustomizedBuiltInElements),W(me),ge&&(mt=!1),rt&&(Ue=!0),Be&&(h=y({},Rn),O=Ye(null),Be.html===!0&&(y(h,Ln),y(O,Mn)),Be.svg===!0&&(y(h,Ut),y(O,Ft),y(O,pt)),Be.svgFilters===!0&&(y(h,Bt),y(O,Ft),y(O,pt)),Be.mathMl===!0&&(y(h,Ht),y(O,Dn),y(O,pt))),Ae.tagCheck=null,Ae.attributeCheck=null,Q(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?Ae.tagCheck=e.ADD_TAGS:Ve(e.ADD_TAGS)&&(h===Me&&(h=re(h)),y(h,e.ADD_TAGS,D))),Q(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?Ae.attributeCheck=e.ADD_ATTR:Ve(e.ADD_ATTR)&&(O===dt&&(O=re(O)),y(O,e.ADD_ATTR,D))),Q(e,"ADD_FORBID_CONTENTS")&&Ve(e.ADD_FORBID_CONTENTS)&&(Ne===Qt&&(Ne=re(Ne)),y(Ne,e.ADD_FORBID_CONTENTS,D)),Et&&(h["#text"]=!0),ke&&y(h,["html","head","body"]),h.table&&(y(h,["tbody"]),delete Xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Te('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Te('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const a=R;R=e.TRUSTED_TYPES_POLICY;try{K=k("")}catch(l){throw R=a,l}}else e.TRUSTED_TYPES_POLICY===null?(R=void 0,K=""):(R===void 0&&(R=Le()),R&&typeof K=="string"&&(K=k("")));H&&H(e),Fe=e},an=y({},[...Ut,...Bt,...No]),ln=y({},[...Ht,...Po]),no=function(e,o,a){return o.namespaceURI===he?e==="svg":o.namespaceURI===at?e==="svg"&&(a==="annotation-xml"||St[a]):!!an[e]},oo=function(e,o,a){return o.namespaceURI===he?e==="math":o.namespaceURI===lt?e==="math"&&wt[a]:!!ln[e]},io=function(e,o,a){return o.namespaceURI===lt&&!wt[a]||o.namespaceURI===at&&!St[a]?!1:!ln[e]&&(Qn[e]||!an[e])},ro=function(e){const o=te(e),a=Pe(ee(e)),l=P(e);let d,m;return l&&M(l)===I.element?(d={namespaceURI:te(l)},m=Pe(ee(l))):(d={namespaceURI:He},m="template"),yt[o]?o===lt?no(a,d,m):o===at?oo(a,d,m):o===he?io(a,d,m):!!(qe==="application/xhtml+xml"&&yt[o]):!1},xe=function(e){Je(n.removed,{element:e});try{P(e).removeChild(e)}catch(o){if($(e),!P(e))throw Te("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},cn=function(e,o,a){try{le(e,o)}catch(l){try{e.removeAttribute(a)}catch(d){}}},xt=function(e){vt(e);const o=q(e);o&&Ee(Co(o),l=>{try{$(l)}catch(d){}});const a=M(e)===I.element?ue(e):null;if(a)for(let l=a.length-1;l>=0;--l){const d=a[l],m=d&&d.name;typeof m=="string"&&cn(e,d,m)}},Ge=function(e,o,a){if(!a)try{a=o.getAttributeNode(e)}catch(l){a=null}Je(n.removed,{attribute:a||null,from:o});try{a?le(o,a):o.removeAttribute(e)}catch(l){try{o.removeAttribute(e)}catch(d){}}if(e==="is")if(Ue||rt)try{xe(o)}catch(l){}else try{o.setAttribute(e,"")}catch(l){}},un=function(e){const o=ue(e);if(o)for(let a=o.length-1;a>=0;--a){const l=o[a],d=l&&l.name;typeof d!="string"||O[D(d)]||cn(e,l,d)}},Ct=function(e,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const l=[e];for(;l.length>0;){const d=l.pop();if(o(d)===!1)continue;if(a&&M(d)===I.element){const T=ce(d);Ce(T)&&l.push(T)}const m=q(d);if(m)for(let T=m.length-1;T>=0;--T)l.push(m[T])}},vt=function(e){Ct(e,o=>{M(o)===I.element&&un(o)})},Ot=function(e){const o=[];return Ct(e,a=>{o.push(a)},!0),o},so=function(e,o){const a=Nt();Ee(Ot(e),l=>{M(l)===I.element&&Pt(a,l)}),Ee(o,l=>{M(l)===I.element&&!Qe(a,l)&&un(l)})},fn=function(e,o){let a=!1;return Ee(n.removed,l=>{l.element&&(a=a||l.element===e,vt(l.element))}),so(e,o),a},ao=8,lo=function(e,o){const a=Ie;let l=null;const d=()=>(l||(l=Nt(),Ee(o,m=>{Pt(l,m)})),l);for(let m=0;;m++){const T=Ot(e),z=[e];let _e=!1;if(Ee(T,X=>{M(X)===I.documentFragment?Je(z,X):!_e&&!Qe(a,X)&&(_e=Qe(d(),X))}),!_e)return;if(m>=ao)throw Te("the tree kept changing during in-place sanitization; refusing to return it");Ee(z,(X,Z)=>{co(X,Z>0,e,d())})}},co=function(e,o,a,l){const d=Lt(e);let m;for(;m=d.nextNode();)!Qe(l,m)||Qe(Ie,m)||(o&&de(g.uponSanitizeShadowNode,m,null),Mt(m,a),Dt(m,a),Ce(m.content)&&Ze(m.content))},uo=function(e){Ie&&Pt(Ie,e)},pn=function(e,o){return De?e==="patchsrc"?!0:e==="for"&&o!=="label"&&o!=="output":!1},fo=function(e){De&&Ct(e,o=>{const a=M(o);if(a===I.processingInstruction||a===I.comment&&G(In,o.data)){try{$(o)}catch(l){}return!1}if(a===I.element){const l=o,d=D(ee(o));try{l.hasAttribute&&l.hasAttribute("patchsrc")&&l.removeAttribute("patchsrc"),l.hasAttribute&&l.hasAttribute("for")&&pn("for",d)&&l.removeAttribute("for")}catch(m){}}return!0})},dn=function(e){let o=null,a=null;if(gt)e="<remove></remove>"+e;else{const m=xn(e,/^[\r\n\t ]+/);a=m&&m[0]}qe==="application/xhtml+xml"&&He===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const l=R?k(e):e;if(He===he)try{o=new S().parseFromString(l,qe)}catch(m){}if(!o||!o.documentElement){o=C.createDocument(He,"template",null);try{o.documentElement.innerHTML=bt?K:l}catch(m){}}const d=o.body||o.documentElement;return e&&a&&d.insertBefore(r.createTextNode(a),d.childNodes[0]||null),He===he?Re.call(o,ke?"html":"body")[0]:ke?o.documentElement:d},Lt=function(e){const o=se?se(e):e.ownerDocument;return Se.call(o||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},ct=function(e){return e=$e(e,p," "),e=$e(e,b," "),e=$e(e,oe," "),e},Rt=function(e){var o;mn(e);const a=(o=e.querySelectorAll)===null||o===void 0?void 0:o.call(e,"template");a&&Ee(a,l=>{Ce(l.content)&&Rt(l.content)})},mn=function(e){e.normalize();const o=se?se(e):e.ownerDocument,a=Se.call(o||e,e,E.SHOW_TEXT|E.SHOW_COMMENT|E.SHOW_CDATA_SECTION|E.SHOW_PROCESSING_INSTRUCTION,null);let l=a.nextNode();for(;l;)l.data=ct(l.data),l=a.nextNode()},ut=function(e){const o=x?x(e):null;return typeof o!="string"||D(o)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==ue(e)||typeof e.removeAttribute!="function"||typeof e.removeAttributeNode!="function"||typeof e.getAttributeNode!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==A(e)||e.childNodes!==q(e)},Ce=function(e){if(!A||typeof e!="object"||e===null)return!1;try{return A(e)===I.documentFragment}catch(o){return!1}},Ke=function(e){if(!A||typeof e!="object"||e===null)return!1;try{return typeof A(e)=="number"}catch(o){return!1}};function de(c,e,o){c.length!==0&&Ee(c,a=>{a.call(n,e,o,Fe)})}const po=function(e,o){return!!(De&&e.hasChildNodes()&&!Ke(e.firstElementChild)&&G(Gt,e.textContent)&&G(Gt,e.innerHTML)||De&&Xo[o]&&M(e)===I.element&&te(e)===he&&(Ke(e.firstElementChild)||typeof e.textContent=="string"&&G(Gt,e.textContent))||e.nodeType===I.processingInstruction||De&&e.nodeType===I.comment&&G(In,e.data))},ft=function(e,o){if(e instanceof RegExp)return G(e,o);if(e instanceof Function){for(var a=arguments.length,l=new Array(a>2?a-2:0),d=2;d<a;d++)l[d-2]=arguments[d];return!!e(o,...l)}return!1},mo=function(e,o,a){if(!Xe[o]&&gn(o)&&ft(me.tagNameCheck,o))return!1;if(Et&&!Ne[o]&&!Ne[Pe(o)]){const l=P(e),d=q(e);if(d&&l){const m=d.length;for(let T=m-1;T>=0;--T){const z=e===a?Oe(d[T],!0):d[T];l.insertBefore(z,be(e))}}}return xe(e),!0},hn=function(e,o,a,l){return e.length===0?o:o===a||o===l?re(o):o},We=function(e,o){return e===o||P(e)!==null?!1:(Tt&&vt(e),!0)},Mt=function(e,o){if(uo(e),de(g.beforeSanitizeElements,e,null),We(e,o))return!0;if(ut(e))return xe(e),!0;const a=D(ee(e));if(h=hn(g.uponSanitizeElement,h,Me,ot),de(g.uponSanitizeElement,e,{tagName:a,allowedTags:h}),We(e,o))return!0;if(po(e,a))return xe(e),!0;if(Xe[a]||!(Ae.tagCheck instanceof Function&&Ae.tagCheck(a))&&!h[a]){const l=mo(e,a,o);return l===!1&&(de(g.afterSanitizeElements,e,null),We(e,o))?!0:l}if(M(e)===I.element&&!ro(e)||(a==="noscript"||a==="noembed"||a==="noframes")&&G(Vo,e.innerHTML))return xe(e),!0;if(ge&&e.nodeType===I.text){const l=ct(e.textContent);e.textContent!==l&&(Je(n.removed,{element:e.cloneNode()}),e.textContent=l)}return de(g.afterSanitizeElements,e,null),We(e,o)},_n=function(e,o,a){if(Vt[o]||pn(o,e)||Kt&&(o==="id"||o==="name")&&(a in r||a in to))return!1;const l=O[o]||Ae.attributeCheck instanceof Function&&Ae.attributeCheck(o,e);return mt&&G(B,o)||Xt&&G(ie,o)?!0:l?tn[o]||G(v,$e(a,pe,""))||(o==="src"||o==="xlink:href"||o==="href")&&e!=="script"&&Cn(a,"data:")===0&&$t[e]||qt&&!G(tt,$e(a,pe,""))?!0:!a:gn(e)&&ft(me.tagNameCheck,e)&&ft(me.attributeNameCheck,o,e)||o==="is"&&me.allowCustomizedBuiltInElements&&ft(me.tagNameCheck,a)},ho=y({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gn=function(e){return!ho[Pe(e)]&&G(nt,e)},_o=function(e,o,a,l){if(R&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!a)switch(U.getAttributeType(e,o)){case"TrustedHTML":return k(l);case"TrustedScriptURL":return fe(l)}return l},go=function(e,o,a,l){try{return a?e.setAttributeNS(a,o,l):e.setAttribute(o,l),ut(e)?(xe(e),!1):!0}catch(d){return Ge(o,e),!1}},En=function(e,o){return De&&G(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,o)?!0:Pe(e)==="attributename"&&xn(o,"href")!==null},Dt=function(e,o){if(de(g.beforeSanitizeAttributes,e,null),We(e,o))return;const a=e.attributes;if(!a||ut(e))return;O=hn(g.uponSanitizeAttribute,O,dt,it);const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let d=a.length;const m=D(e.nodeName);for(;d--;){const T=a[d],z=T.name,_e=T.namespaceURI,X=T.value,Z=D(z),je=X;let J=z==="value"?je:Oo(je),Tn=!1;if(l.attrName=Z,l.attrValue=J,l.keepAttr=!0,l.forceKeepAttr=void 0,de(g.uponSanitizeAttribute,e,l),J=l.attrValue,Zt&&(Z==="id"||Z==="name")&&Cn(J,Jt)!==0&&(Ge(z,e,T),J=Jt+J,Tn=!0),En(z,J)){Ge(z,e,T);continue}if(!l.forceKeepAttr){if(!l.keepAttr){Ge(z,e,T);continue}if(!ht&&G(Nn,J)){Ge(z,e,T);continue}if(ge&&(J=ct(J)),!_n(m,Z,J)){Ge(z,e,T);continue}J=_o(m,Z,_e,J),J!==je&&go(e,z,_e,J)&&Tn&&An(n.removed)}}de(g.afterSanitizeAttributes,e,null),We(e,o)},Ze=function(e){let o=null;const a=Lt(e);for(de(g.beforeSanitizeShadowDOM,e,null);o=a.nextNode();)if(de(g.uponSanitizeShadowNode,o,null),Mt(o,e),Dt(o,e),Ce(o.content)&&Ze(o.content),M(o)===I.element){const l=ce(o);Ce(l)&&(kt(l),Ze(l))}ge&&mn(e),de(g.afterSanitizeShadowDOM,e,null)},kt=function(e){const o=[{node:e,shadow:null}];for(;o.length>0;){const a=o.pop();if(a.shadow){Ze(a.shadow);continue}const l=a.node,d=M(l)===I.element,m=q(l);if(m)for(let T=m.length-1;T>=0;--T)o.push({node:m[T],shadow:null});if(d){const T=x?x(l):null;if(typeof T=="string"&&D(T)==="template"){const z=l.content;Ce(z)&&o.push({node:z,shadow:null})}}if(d){const T=ce(l);Ce(T)&&o.push({node:null,shadow:T},{node:T,shadow:null})}}};return n.sanitize=function(c){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=null,a=null,l=null,d=null;if(bt=!c,bt&&(c="<!-->"),typeof c!="string"&&!Ke(c)&&(c=Do(c),typeof c!="string"))throw Te("dirty is not a string, aborting");if(!n.isSupported)return c;_t?(h=ot,O=it):At(e),(g.uponSanitizeElement.length>0||g.uponSanitizeAttribute.length>0)&&(h=re(h)),g.uponSanitizeAttribute.length>0&&(O=re(O)),n.removed=[];const m=Tt&&typeof c!="string"&&Ke(c);let T=[];const z=Ie;if(m){fo(c);const Z=ee(c);if(typeof Z=="string"){const je=D(Z);if(!h[je]||Xe[je])throw xt(c),Te("root node is forbidden and cannot be sanitized in-place")}if(ut(c))throw xt(c),Te("root node is clobbered and cannot be sanitized in-place");T=Ot(c),Ie=Nt()}else if(Ke(c))o=dn("<!---->"),a=o.ownerDocument.importNode(c,!0),a.nodeType===I.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?o=a:o.appendChild(a),kt(o);else{if(!Ue&&!ge&&!ke&&c.indexOf("<")===-1)return R&&st?k(c):c;if(o=dn(c),!o)return Ue?null:st?K:""}o&&gt&&xe(o.firstChild);const _e=m?c:o;try{m&&kt(c);const Z=Lt(_e);for(;l=Z.nextNode();)Mt(l,_e),Dt(l,_e),Ce(l.content)&&Ze(l.content);m&&lo(c,T)}catch(Z){throw m&&(xt(c),fn(c,T)),Z}finally{Ie=z}if(m){if(fn(c,T))throw Te("a node selected for removal could not be safely returned; refusing to sanitize in place");return ge&&Rt(c),c}if(Ue){if(ge&&Rt(o),rt)for(d=ze.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(O.shadowroot||O.shadowrootmode)&&(d=we.call(s,d,!0)),d}let X=ke?o.outerHTML:o.innerHTML;return ke&&h["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&G(jo,o.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+o.ownerDocument.doctype.name+`>
3
+ `+X),ge&&(X=ct(X)),R&&st?k(X):X},n.setConfig=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};At(c),_t=!0,ot=h,it=O},n.clearConfig=function(){Fe=null,_t=!1,ot=null,it=null,R=ne,K=""},n.isValidAttribute=function(c,e,o){Fe||At({});const a=D(c),l=D(e);return typeof o=="string"&&(En(e,o)||!ht&&G(Nn,o))?!1:_n(a,l,o)},n.addHook=function(c,e){typeof e=="function"&&Q(g,c)&&Je(g[c],e)},n.removeHook=function(c,e){if(Q(g,c)){if(e!==void 0){const o=xo(g[c],e);return o===-1?void 0:vo(g[c],o,1)[0]}return An(g[c])}},n.removeHooks=function(c){Q(g,c)&&(g[c]=[])},n.removeAllHooks=function(){g=Pn()},n}var zn=Kn();function Zo(i){t.append_styles(i,"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}')}const Jo=i=>({}),Un=i=>({}),Qo=i=>({}),Bn=i=>({}),$o=i=>({}),Hn=i=>({}),ei=i=>({}),Fn=i=>({class:"CashierSessionExpirationIcon"});function Gn(i){let n,r,s,u,f,_,w,E,S,U,N,Oe,$=i[8]("sessionExpirationHeader")+"",le,be,q,P,ce,ue,A,x,se,M,ee,Y,te,R,K=i[8]("sessionExpirationEnd")+"",ne,ye,j,F,k,fe,Le,V,C,Se,ze;const Re=i[23].icon,we=t.create_slot(Re,i,i[22],Fn),g=we||ti(i),p=i[23].title,b=t.create_slot(p,i,i[22],Hn),oe=i[23].text,B=t.create_slot(oe,i,i[22],Bn),ie=B||ni(i),tt=[ii,oi],pe=[];function nt(v,h){return v[6]?0:1}return F=nt(i),k=pe[F]=tt[F](i),{c(){n=t.element("div"),r=t.element("div"),s=t.element("div"),u=t.element("div"),f=t.svg_element("svg"),_=t.svg_element("defs"),w=t.svg_element("mask"),E=t.svg_element("circle"),S=t.svg_element("rect"),U=t.svg_element("circle"),N=t.svg_element("circle"),Oe=t.space(),le=t.text($),be=t.space(),q=t.element("div"),P=t.svg_element("svg"),ce=t.svg_element("path"),ue=t.space(),A=t.element("div"),x=t.element("div"),g&&g.c(),se=t.space(),b&&b.c(),M=t.space(),ie&&ie.c(),ee=t.space(),Y=t.element("div"),te=t.element("button"),R=t.element("span"),ne=t.text(K),ye=t.space(),j=t.element("button"),k.c(),t.attr(E,"cx","100"),t.attr(E,"cy","100"),t.attr(E,"r","90"),t.attr(S,"x","88"),t.attr(S,"y","40"),t.attr(S,"width","24"),t.attr(S,"height","80"),t.attr(S,"rx","12"),t.attr(S,"fill","black"),t.attr(U,"cx","100"),t.attr(U,"cy","150"),t.attr(U,"r","14"),t.attr(U,"fill","black"),t.attr(w,"id","exclamation-mask"),t.attr(N,"cx","100"),t.attr(N,"cy","100"),t.attr(N,"r","90"),t.attr(N,"mask","url(#exclamation-mask)"),t.attr(f,"viewBox","0 0 200 200"),t.attr(f,"xmlns","http://www.w3.org/2000/svg"),t.attr(u,"class","CashierSessionExpirationModalHeaderTitle"),t.attr(ce,"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"),t.attr(P,"xmlns","http://www.w3.org/2000/svg"),t.attr(P,"viewBox","0 0 13 13"),t.attr(P,"fill","none"),t.attr(P,"class","CloseButton"),t.attr(q,"class","ModalCloseIcon"),t.attr(s,"class","CashierSessionExpirationModalHeader"),t.attr(R,"class","CashierSessionExpirationButtonText"),t.attr(te,"type","button"),t.attr(te,"class","ModalButton Secondary"),t.attr(j,"type","button"),t.attr(j,"class",fe="ModalButton Primary "+(i[6]?"Disabled":"")),t.attr(Y,"class","ButtonsContainer"),t.attr(x,"class","CashierSessionExpiration"),t.attr(A,"class","CashierSessionExpirationModalContainer"),t.attr(r,"class","CashierSessionExpirationModalWrapper"),t.attr(n,"class","CashierSessionExpirationModalWindow"),t.attr(n,"id","CashierSessionExpirationModal"),t.add_render_callback(()=>i[25].call(n))},m(v,h){t.insert(v,n,h),t.append(n,r),t.append(r,s),t.append(s,u),t.append(u,f),t.append(f,_),t.append(_,w),t.append(w,E),t.append(w,S),t.append(w,U),t.append(f,N),t.append(u,Oe),t.append(u,le),t.append(s,be),t.append(s,q),t.append(q,P),t.append(P,ce),t.append(r,ue),t.append(r,A),t.append(A,x),g&&g.m(x,null),t.append(x,se),b&&b.m(x,null),t.append(x,M),ie&&ie.m(x,null),t.append(x,ee),t.append(x,Y),t.append(Y,te),t.append(te,R),t.append(R,ne),t.append(Y,ye),t.append(Y,j),pe[F].m(j,null),i[24](x),Le=t.add_iframe_resize_listener(n,i[25].bind(n)),C=!0,Se||(ze=[t.listen(P,"click",i[11]),t.listen(te,"click",i[11]),t.listen(j,"click",i[9]),t.listen(n,"click",i[10])],Se=!0)},p(v,h){i=v,(!C||h[0]&256)&&$!==($=i[8]("sessionExpirationHeader")+"")&&t.set_data(le,$),we?we.p&&(!C||h[0]&4194304)&&t.update_slot_base(we,Re,i,i[22],C?t.get_slot_changes(Re,i[22],h,ei):t.get_all_dirty_from_scope(i[22]),Fn):g&&g.p&&(!C||h[0]&8)&&g.p(i,C?h:[-1,-1]),b&&b.p&&(!C||h[0]&4194304)&&t.update_slot_base(b,p,i,i[22],C?t.get_slot_changes(p,i[22],h,$o):t.get_all_dirty_from_scope(i[22]),Hn),B?B.p&&(!C||h[0]&4194304)&&t.update_slot_base(B,oe,i,i[22],C?t.get_slot_changes(oe,i[22],h,Qo):t.get_all_dirty_from_scope(i[22]),Bn):ie&&ie.p&&(!C||h[0]&384)&&ie.p(i,C?h:[-1,-1]),(!C||h[0]&256)&&K!==(K=i[8]("sessionExpirationEnd")+"")&&t.set_data(ne,K);let Me=F;F=nt(i),F===Me?pe[F].p(i,h):(t.group_outros(),t.transition_out(pe[Me],1,1,()=>{pe[Me]=null}),t.check_outros(),k=pe[F],k?k.p(i,h):(k=pe[F]=tt[F](i),k.c()),t.transition_in(k,1),k.m(j,null)),(!C||h[0]&64&&fe!==(fe="ModalButton Primary "+(i[6]?"Disabled":"")))&&t.attr(j,"class",fe)},i(v){C||(t.transition_in(g,v),t.transition_in(b,v),t.transition_in(ie,v),t.transition_in(k),v&&t.add_render_callback(()=>{C&&(V||(V=t.create_bidirectional_transition(n,t.fade,{duration:i[2]},!0)),V.run(1))}),C=!0)},o(v){t.transition_out(g,v),t.transition_out(b,v),t.transition_out(ie,v),t.transition_out(k),v&&(V||(V=t.create_bidirectional_transition(n,t.fade,{duration:i[2]},!1)),V.run(0)),C=!1},d(v){v&&t.detach(n),g&&g.d(v),b&&b.d(v),ie&&ie.d(v),pe[F].d(),i[24](null),Le(),v&&V&&V.end(),Se=!1,t.run_all(ze)}}}function Wn(i){let n,r;return{c(){n=t.element("img"),t.src_url_equal(n.src,r=`${i[3]}/set-timeout-icon.png`)||t.attr(n,"src",r),t.attr(n,"width","300px"),t.attr(n,"alt","error")},m(s,u){t.insert(s,n,u)},p(s,u){u[0]&8&&!t.src_url_equal(n.src,r=`${s[3]}/set-timeout-icon.png`)&&t.attr(n,"src",r)},d(s){s&&t.detach(n)}}}function ti(i){let n,r=i[3]&&Wn(i);return{c(){r&&r.c(),n=t.empty()},m(s,u){r&&r.m(s,u),t.insert(s,n,u)},p(s,u){s[3]?r?r.p(s,u):(r=Wn(s),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(s){s&&t.detach(n),r&&r.d(s)}}}function ni(i){let n,r,s=i[8]("sessionExpirationTitle")+"",u,f,_,w=zn.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=t.element("span"),r=t.element("p"),u=t.text(s),f=t.space(),_=t.element("p"),t.attr(n,"class","CashierSessionExpirationText")},m(E,S){t.insert(E,n,S),t.append(n,r),t.append(r,u),t.append(n,f),t.append(n,_),_.innerHTML=w},p(E,S){S[0]&256&&s!==(s=E[8]("sessionExpirationTitle")+"")&&t.set_data(u,s),S[0]&384&&w!==(w=zn.sanitize(E[8]("sessionExpirationGeneralText",{values:{second:E[7]}}))+"")&&(_.innerHTML=w)},d(E){E&&t.detach(n)}}}function oi(i){let n;const r=i[23].button,s=t.create_slot(r,i,i[22],Un),u=s||ri(i);return{c(){u&&u.c()},m(f,_){u&&u.m(f,_),n=!0},p(f,_){s?s.p&&(!n||_[0]&4194304)&&t.update_slot_base(s,r,f,f[22],n?t.get_slot_changes(r,f[22],_,Jo):t.get_all_dirty_from_scope(f[22]),Un):u&&u.p&&(!n||_[0]&256)&&u.p(f,n?_:[-1,-1])},i(f){n||(t.transition_in(u,f),n=!0)},o(f){t.transition_out(u,f),n=!1},d(f){u&&u.d(f)}}}function ii(i){let n,r,s,u,f,_=i[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=t.element("div"),r=t.svg_element("svg"),s=t.svg_element("path"),u=t.space(),f=t.element("span"),w=t.text(_),t.attr(s,"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"),t.attr(s,"fill","white"),t.attr(r,"class","CashierSessionExpirationButtonSpinner"),t.attr(r,"xmlns","http://www.w3.org/2000/svg"),t.attr(r,"width","15"),t.attr(r,"height","14"),t.attr(r,"viewBox","0 0 15 14"),t.attr(r,"fill","none"),t.attr(f,"class","CashierSessionExpirationButtonText")},m(E,S){t.insert(E,n,S),t.append(n,r),t.append(r,s),t.append(n,u),t.append(n,f),t.append(f,w)},p(E,S){S[0]&256&&_!==(_=E[8]("sessionExpirationLoadingButton")+"")&&t.set_data(w,_)},i:t.noop,o:t.noop,d(E){E&&t.detach(n)}}}function ri(i){let n,r=i[8]("sessionExpirationGeneralButton")+"",s;return{c(){n=t.element("span"),s=t.text(r),t.attr(n,"class","CashierSessionExpirationButtonText")},m(u,f){t.insert(u,n,f),t.append(n,s)},p(u,f){f[0]&256&&r!==(r=u[8]("sessionExpirationGeneralButton")+"")&&t.set_data(s,r)},d(u){u&&t.detach(n)}}}function si(i){let n,r,s=i[5]&&Gn(i);return{c(){n=t.element("div"),s&&s.c()},m(u,f){t.insert(u,n,f),s&&s.m(n,null),i[26](n),r=!0},p(u,f){u[5]?s?(s.p(u,f),f[0]&32&&t.transition_in(s,1)):(s=Gn(u),s.c(),t.transition_in(s,1),s.m(n,null)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(u){r||(t.transition_in(s),r=!0)},o(u){t.transition_out(s),r=!1},d(u){u&&t.detach(n),s&&s.d(),i[26](null)}}}const ai=90;function li(i,n,r){let s,u;t.component_subscribe(i,t.xPaymentSessionToken,p=>r(21,s=p)),t.component_subscribe(i,t.$format,p=>r(8,u=p));let{$$slots:f={},$$scope:_}=n;t.dayjs.extend(t.utc);let{clientstyling:w=""}=n,{clientstylingurl:E=""}=n,{width:S}=n,{height:U}=n,{duration:N=200}=n,{assetsurl:Oe=""}=n,{lang:$="en"}=n,{translationurl:le=""}=n,{endpoint:be}=n,{currency:q}=n,{customerid:P}=n,{selectedpaymentmethodname:ce}=n,{mbsource:ue=""}=n,A,x=!1,se=!1,M,ee,Y,te,R,K;var ne;(function(p){p.PlayerSessionIsNotValid="PlayerSessionIsNotValid",p.Success="Success",p.JwtTokenError="JwtTokenError"})(ne||(ne={}));const ye=p=>{p.data.type==="StartSessionCountdown"&&(te=p.data.paymentMethodName)},j=p=>{try{return JSON.parse(atob(p.split(".")[1]))}catch(b){return null}},F=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:R},window.location.href)},k=p=>{r(5,x=!1);const b=j(p);b&&(ee=b==null?void 0:b.exp,r(7,M=ee),Y&&clearInterval(Y),Y=setInterval(()=>{const oe=Math.floor(new Date().getTime()/1e3);r(7,M=ee-oe),M<=ai&&r(5,x=!0),oe>=ee&&(fe(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},fe=()=>{r(7,M=0),r(5,x=!1),clearInterval(Y)},Le=()=>{if(se)return;const p=new URL(`${be}/v1/player/${P}/payment/GetPaymentMethod`),b=new Headers;r(6,se=!0),b.append("accept","application/json"),b.append("Content-Type","application/json"),b.append("X-Client-Request-Timestamp",t.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const oe={method:"POST",mode:"cors",headers:b,body:JSON.stringify({PaymentMethodName:te||ce,Currency:q,XPaymentSessionToken:s})};fetch(p,oe).then(B=>B.json()).then(B=>{if(B.error){window.postMessage({type:"ShowSessionError",error:B.error},window.location.href),fe();return}if(B.ResponseCode===ne.PlayerSessionIsNotValid||B.ResponseCode===ne.JwtTokenError){R=B.ResponseCode,fe(),F();return}if(B.ResponseCode!==ne.Success){R=B.ResponseCode,fe();return}B.XPaymentSessionToken&&t.xPaymentSessionToken.set(B.XPaymentSessionToken)}).finally(()=>r(6,se=!1))},V=p=>{const b=p.currentTarget;p.target===b&&Le()},C=()=>{fetch(le).then(b=>b.json()).then(b=>{Object.keys(b).forEach(oe=>{bn(oe,b[oe])})}).catch(b=>{console.log(b)})},Se=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),r(5,x=!1)};Object.keys(yn).forEach(p=>{bn(p,yn[p])});const ze=()=>{Eo($)};t.onMount(()=>(window.addEventListener("message",ye,!1),()=>{window.removeEventListener("message",ye)})),t.onDestroy(()=>{clearInterval(Y)});function Re(p){t.binding_callbacks[p?"unshift":"push"](()=>{A=p,r(4,A)})}function we(){S=this.clientWidth,U=this.clientHeight,r(0,S),r(1,U)}function g(p){t.binding_callbacks[p?"unshift":"push"](()=>{A=p,r(4,A)})}return i.$$set=p=>{"clientstyling"in p&&r(12,w=p.clientstyling),"clientstylingurl"in p&&r(13,E=p.clientstylingurl),"width"in p&&r(0,S=p.width),"height"in p&&r(1,U=p.height),"duration"in p&&r(2,N=p.duration),"assetsurl"in p&&r(3,Oe=p.assetsurl),"lang"in p&&r(14,$=p.lang),"translationurl"in p&&r(15,le=p.translationurl),"endpoint"in p&&r(16,be=p.endpoint),"currency"in p&&r(17,q=p.currency),"customerid"in p&&r(18,P=p.customerid),"selectedpaymentmethodname"in p&&r(19,ce=p.selectedpaymentmethodname),"mbsource"in p&&r(20,ue=p.mbsource),"$$scope"in p&&r(22,_=p.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&k(s),i.$$.dirty[0]&16384&&$&&ze(),i.$$.dirty[0]&4112&&w&&A&&It.setClientStyling(A,w),i.$$.dirty[0]&8208&&E&&A&&It.setClientStylingURL(A,E),i.$$.dirty[0]&1048592&&ue&&A&&It.setStreamStyling(A,`${ue}.Style`,K),i.$$.dirty[0]&32768&&le&&C()},[S,U,N,Oe,A,x,se,M,u,Le,V,Se,w,E,$,le,be,q,P,ce,ue,s,_,f,Re,we,g]}class Zn extends t.SvelteComponent{constructor(n){super(),t.init$1(this,n,li,si,t.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},Zo,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),t.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),t.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),t.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),t.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),t.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),t.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}}t.create_custom_element(Zn,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Zn;