@everymatrix/cashier-verifications 1.93.13 → 1.93.15

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.
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-BNo5lH9v.cjs")).then(e=>e.CashierVerifications_ce).then(({default:e})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-DCpcAU2N.cjs")).then(e=>e.CashierVerifications_ce).then(({default:e})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierVerifications-BVgcQaoW.js").then((e) => e.F).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierVerifications-BFo4vvGH.js").then((e) => e.F).then(({ default: e }) => {
14
14
  !customElements.get("cashier-verifications") && customElements.define("cashier-verifications", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { F as i } from "../components/CashierVerifications-D5t73_cL.js";
1
+ import { F as i } from "../components/CashierVerifications-DI7ZxLVE.js";
2
2
  function n(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-verifications",
3
- "version": "1.93.13",
3
+ "version": "1.93.15",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-verifications.cjs",
6
6
  "module": "esnext/cashier-verifications.js",
@@ -1 +0,0 @@
1
- "use strict";var M=(n,t,i)=>new Promise((o,r)=>{var u=p=>{try{g(i.next(p))}catch(v){r(v)}},m=p=>{try{g(i.throw(p))}catch(v){r(v)}},g=p=>p.done?o(p.value):Promise.resolve(p.value).then(u,m);g((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierVerifications-BNo5lH9v.cjs");function P(n){e.append_styles(n,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const R=n=>({}),L=n=>({}),U=n=>({}),T=n=>({});function S(n){let t,i,o,r,u,m,g,p,v,b,C,h,c=(n[3]=="error"||n[3]=="bonusDescription")&&z();const _=n[14].title,w=e.create_slot(_,n,n[13],T);let d=n[3]!="2fa-old"&&H(n),s=n[4]==="true"&&I();const x=n[14].content,f=e.create_slot(x,n,n[13],L);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),r=e.element("div"),c&&c.c(),u=e.space(),m=e.element("div"),w&&w.c(),g=e.space(),d&&d.c(),p=e.space(),s&&s.c(),v=e.space(),b=e.element("div"),f&&f.c(),e.attr(m,"class","TitleText"),e.attr(r,"class","ModalTitle"),e.attr(o,"class","ModalHeader"),e.attr(b,"class","ModalContentWrapper"),e.toggle_class(b,"hidden",n[4]==="true"),e.attr(i,"class","ModalContainer"),e.toggle_class(i,"video-mode",n[3]==="video"),e.toggle_class(i,"twofa-mode",n[3]==="2fa"),e.attr(t,"id","Modal"),e.add_render_callback(()=>n[18].call(t))},m(a,y){e.insert(a,t,y),e.append(t,i),e.append(i,o),e.append(o,r),c&&c.m(r,null),e.append(r,u),e.append(r,m),w&&w.m(m,null),e.append(o,g),d&&d.m(o,null),e.append(i,p),s&&s.m(i,null),e.append(i,v),e.append(i,b),f&&f.m(b,null),n[15](b),n[16](i),n[17](t),C=e.add_iframe_resize_listener(t,n[18].bind(t)),h=!0},p(a,y){a[3]=="error"||a[3]=="bonusDescription"?c||(c=z(),c.c(),c.m(r,u)):c&&(c.d(1),c=null),w&&w.p&&(!h||y&8192)&&e.update_slot_base(w,_,a,a[13],h?e.get_slot_changes(_,a[13],y,U):e.get_all_dirty_from_scope(a[13]),T),a[3]!="2fa-old"?d?d.p(a,y):(d=H(a),d.c(),d.m(o,null)):d&&(d.d(1),d=null),a[4]==="true"?s||(s=I(),s.c(),s.m(i,v)):s&&(s.d(1),s=null),f&&f.p&&(!h||y&8192)&&e.update_slot_base(f,x,a,a[13],h?e.get_slot_changes(x,a[13],y,R):e.get_all_dirty_from_scope(a[13]),L),(!h||y&16)&&e.toggle_class(b,"hidden",a[4]==="true"),(!h||y&8)&&e.toggle_class(i,"video-mode",a[3]==="video"),(!h||y&8)&&e.toggle_class(i,"twofa-mode",a[3]==="2fa")},i(a){h||(e.transition_in(w,a),e.transition_in(f,a),h=!0)},o(a){e.transition_out(w,a),e.transition_out(f,a),h=!1},d(a){a&&e.detach(t),c&&c.d(),w&&w.d(a),d&&d.d(),s&&s.d(),f&&f.d(a),n[15](null),n[16](null),n[17](null),C()}}}function z(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',e.attr(t,"class","WarningIcon")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function H(n){let t,i,o,r,u;return{c(){t=e.element("div"),i=e.svg_element("svg"),o=e.svg_element("path"),e.attr(o,"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"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(i,"class","CloseButton"),e.attr(t,"class","ModalCloseIcon")},m(m,g){e.insert(m,t,g),e.append(t,i),e.append(i,o),r||(u=e.listen(i,"click",n[9]),r=!0)},p:e.noop,d(m){m&&e.detach(t),r=!1,u()}}}function I(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="ModalLoader"></div>',e.attr(t,"class","ModalLoadingOverlay")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function V(n){let t,i,o=n[2]==="true"&&S(n);return{c(){t=e.element("div"),o&&o.c()},m(r,u){e.insert(r,t,u),o&&o.m(t,null),n[19](t),i=!0},p(r,[u]){r[2]==="true"?o?(o.p(r,u),u&4&&e.transition_in(o,1)):(o=S(r),o.c(),e.transition_in(o,1),o.m(t,null)):o&&(e.group_outros(),e.transition_out(o,1,1,()=>{o=null}),e.check_outros())},i(r){i||(e.transition_in(o),i=!0)},o(r){e.transition_out(o),i=!1},d(r){r&&e.detach(t),o&&o.d(),n[19](null)}}}function Z(n,t,i){let{$$slots:o={},$$scope:r}=t,{mbsource:u}=t,{clientstyling:m}=t,{clientstylingurl:g}=t,{show:p}=t,{modaltype:v=""}=t,{isloading:b="false"}=t,{width:C}=t,{height:h}=t,c,_,w,d,s,x=!1,f,a;const y=()=>{f&&clearTimeout(f),c&&(c.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),f=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},k=()=>M(this,null,function*(){if(!s||!d||x)return;a&&clearTimeout(f),x=!0;const l=s.offsetWidth,Y=s.offsetHeight;i(8,s.style.width=`${l}px`,s),i(8,s.style.height=`${Y}px`,s),s.offsetHeight,yield e.tick();const q=d.scrollHeight,D=d.scrollWidth;i(8,s.style.width=`${D}px`,s),i(8,s.style.height=`${q}px`,s),a=setTimeout(()=>{s&&(i(8,s.style.width="auto",s),i(8,s.style.height="auto",s)),x=!1},300)});e.onMount(()=>{if(e.tick().then(()=>{k()}),d){const l=new ResizeObserver(()=>{k()});return l.observe(d),()=>{l.disconnect()}}return()=>{f&&clearTimeout(f),a&&clearTimeout(f)}});function O(l){e.binding_callbacks[l?"unshift":"push"](()=>{d=l,i(7,d)})}function E(l){e.binding_callbacks[l?"unshift":"push"](()=>{s=l,i(8,s)})}function j(l){e.binding_callbacks[l?"unshift":"push"](()=>{c=l,i(6,c)})}function B(){C=this.clientWidth,h=this.clientHeight,i(0,C),i(1,h)}function F(l){e.binding_callbacks[l?"unshift":"push"](()=>{_=l,i(5,_)})}return n.$$set=l=>{"mbsource"in l&&i(10,u=l.mbsource),"clientstyling"in l&&i(11,m=l.clientstyling),"clientstylingurl"in l&&i(12,g=l.clientstylingurl),"show"in l&&i(2,p=l.show),"modaltype"in l&&i(3,v=l.modaltype),"isloading"in l&&i(4,b=l.isloading),"width"in l&&i(0,C=l.width),"height"in l&&i(1,h=l.height),"$$scope"in l&&i(13,r=l.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&b&&e.tick().then(()=>{k()}),n.$$.dirty&2080&&m&&_&&e.setClientStyling(_,m),n.$$.dirty&4128&&g&&_&&e.setClientStylingURL(_,g),n.$$.dirty&1056&&u&&_&&e.setStreamStyling(_,`${u}.Style`,w)},[C,h,p,v,b,_,c,d,s,y,u,m,g,r,o,O,E,j,B,F]}class W extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Z,V,e.safe_not_equal,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},P)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),e.flush()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),e.flush()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),e.flush()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),e.flush()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),e.flush()}}e.create_custom_element(W,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=W;
@@ -1,20 +0,0 @@
1
- "use strict";var Bi=Object.defineProperty,Mi=Object.defineProperties;var Ci=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var $i=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable;var dt=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))$i.call(t,r)&&dt(e,r,t[r]);if(Gt)for(var r of Gt(t))Li.call(t,r)&&dt(e,r,t[r]);return e},zt=(e,t)=>Mi(e,Ci(t));var K=(e,t,r)=>(dt(e,typeof t!="symbol"?t+"":t,r),r);var Wt=(e,t,r)=>new Promise((i,n)=>{var o=u=>{try{a(r.next(u))}catch(l){n(l)}},s=u=>{try{a(r.throw(u))}catch(l){n(l)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(e,t)).next())});function ee(){}function Ii(e,t){for(const r in t)e[r]=t[r];return e}function Tr(e){return e()}function Xt(){return Object.create(null)}function Ce(e){e.forEach(Tr)}function Nt(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Di(e){return Object.keys(e).length===0}function Or(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function qt(e,t,r){e.$$.on_destroy.push(Or(t,r))}function Ni(e,t,r,i){if(e){const n=Pr(e,t,r,i);return e[0](n)}}function Pr(e,t,r,i){return e[1]&&i?Ii(r.ctx.slice(),e[1](i(t))):r.ctx}function ki(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const o=[],s=Math.max(t.dirty.length,n.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|n[a];return o}return t.dirty|n}return t.dirty}function Ri(e,t,r,i,n,o){if(n){const s=Pr(t,r,i,o);e.p(s,n)}}function Ui(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function G(e,t){e.appendChild(t)}function Hr(e,t,r){const i=Vi(e);if(!i.getElementById(t)){const n=W("style");n.id=t,n.textContent=r,Fi(i,n)}}function Vi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Fi(e,t){return G(e.head||e,t),t.sheet}function oe(e,t,r){e.insertBefore(t,r||null)}function te(e){e.parentNode&&e.parentNode.removeChild(e)}function Gi(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function W(e){return document.createElement(e)}function De(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Rt(e){return document.createTextNode(e)}function be(){return Rt(" ")}function Re(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function M(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function qe(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:M(e,t,r)}function ji(e){return Array.from(e.childNodes)}function Ar(e,t){t=""+t,e.data!==t&&(e.data=t)}let Ye;function zi(){if(Ye===void 0){Ye=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ye=!0}}return Ye}function Wi(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=W("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const n=zi();let o;return n?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Re(window,"message",s=>{s.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{o=Re(i.contentWindow,"resize",t),t()}),G(e,i),()=>{(n||o&&i.contentWindow)&&o(),te(i)}}function ue(e,t,r){e.classList.toggle(t,!!r)}function Xi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ue;function ke(e){Ue=e}function qi(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function Br(e){qi().$$.on_mount.push(e)}const Te=[],it=[];let Pe=[];const Yt=[],Mr=Promise.resolve();let Et=!1;function Cr(){Et||(Et=!0,Mr.then(J))}function Yi(){return Cr(),Mr}function nt(e){Pe.push(e)}const pt=new Set;let we=0;function J(){if(we!==0)return;const e=Ue;do{try{for(;we<Te.length;){const t=Te[we];we++,ke(t),Zi(t.$$)}}catch(t){throw Te.length=0,we=0,t}for(ke(null),Te.length=0,we=0;it.length;)it.pop()();for(let t=0;t<Pe.length;t+=1){const r=Pe[t];pt.has(r)||(pt.add(r),r())}Pe.length=0}while(Te.length);for(;Yt.length;)Yt.pop()();Et=!1,pt.clear(),ke(e)}function Zi(e){if(e.fragment!==null){e.update(),Ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(nt)}}function Ji(e){const t=[],r=[];Pe.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Pe=t}const Qe=new Set;let ye;function Qi(){ye={r:0,c:[],p:ye}}function Ki(){ye.r||Ce(ye.c),ye=ye.p}function $r(e,t){e&&e.i&&(Qe.delete(e),e.i(t))}function en(e,t,r,i){if(e&&e.o){if(Qe.has(e))return;Qe.add(e),ye.c.push(()=>{Qe.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function Zt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function tn(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),nt(()=>{const o=e.$$.on_mount.map(Tr).filter(Nt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ce(o),e.$$.on_mount=[]}),n.forEach(nt)}function rn(e,t){const r=e.$$;r.fragment!==null&&(Ji(r.after_update),Ce(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function nn(e,t){e.$$.dirty[0]===-1&&(Te.push(e),Cr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lr(e,t,r,i,n,o,s=null,a=[-1]){const u=Ue;ke(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:n,bound:Xt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Xt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let f=!1;if(l.ctx=r?r(e,t.props||{},(p,v,...b)=>{const T=b.length?b[0]:v;return l.ctx&&n(l.ctx[p],l.ctx[p]=T)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](T),f&&nn(e,p)),v}):[],l.update(),f=!0,Ce(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=ji(t.target);l.fragment&&l.fragment.l(p),p.forEach(te)}else l.fragment&&l.fragment.c();t.intro&&$r(e.$$.fragment),tn(e,t.target,t.anchor),J()}ke(u)}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{constructor(t,r,i){super();K(this,"$$ctor");K(this,"$$s");K(this,"$$c");K(this,"$$cn",!1);K(this,"$$d",{});K(this,"$$r",!1);K(this,"$$p_d",{});K(this,"$$l",{});K(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=W("slot"),o!=="default"&&M(s,"name",o)},m:function(l,f){oe(l,s,f)},d:function(l){l&&te(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Xi(this);for(const o of this.$$s)o in i&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ke(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:zt(jt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Ke(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ke(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ke(e,t,r,i){var o;const n=(o=r[e])==null?void 0:o.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dr(e,t,r,i,n,o){let s=class extends Ir{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ke(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Nr{constructor(){K(this,"$$");K(this,"$$set")}$destroy(){rn(this,1),this.$destroy=ee}$on(t,r){if(!Nt(r))return ee;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!Di(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const on="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(on);const Se=[];function sn(e,t){return{subscribe:Ge(e,t).subscribe}}function Ge(e,t=ee){let r;const i=new Set;function n(a){if(kt(e,a)&&(e=a,r)){const u=!Se.length;for(const l of i)l[1](),Se.push(l,e);if(u){for(let l=0;l<Se.length;l+=2)Se[l][0](Se[l+1]);Se.length=0}}}function o(a){n(a(e))}function s(a,u=ee){const l=[a,u];return i.add(l),i.size===1&&(r=t(n,o)||ee),a(e),()=>{i.delete(l),i.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:s}}function $e(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return sn(r,(s,a)=>{let u=!1;const l=[];let f=0,p=ee;const v=()=>{if(f)return;p();const T=t(i?l[0]:l,s,a);o?s(T):p=Nt(T)?T:ee},b=n.map((T,h)=>Or(T,I=>{l[h]=I,f&=~(1<<h),u&&v()},()=>{f|=1<<h}));return u=!0,v(),function(){Ce(b),p(),u=!1}})}var kr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var an=function(t){return un(t)&&!ln(t)};function un(e){return!!e&&typeof e=="object"}function ln(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hn(e)}var cn=typeof Symbol=="function"&&Symbol.for,fn=cn?Symbol.for("react.element"):60103;function hn(e){return e.$$typeof===fn}function dn(e){return Array.isArray(e)?[]:{}}function Ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?He(dn(e),e,t):e}function pn(e,t,r){return e.concat(t).map(function(i){return Ve(i,r)})}function mn(e,t){if(!t.customMerge)return He;var r=t.customMerge(e);return typeof r=="function"?r:He}function vn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Jt(e){return Object.keys(e).concat(vn(e))}function Rr(e,t){try{return t in e}catch(r){return!1}}function gn(e,t){return Rr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function bn(e,t,r){var i={};return r.isMergeableObject(e)&&Jt(e).forEach(function(n){i[n]=Ve(e[n],r)}),Jt(t).forEach(function(n){gn(e,n)||(Rr(e,n)&&r.isMergeableObject(t[n])?i[n]=mn(n,r)(e[n],t[n],r):i[n]=Ve(t[n],r))}),i}function He(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pn,r.isMergeableObject=r.isMergeableObject||an,r.cloneUnlessOtherwiseSpecified=Ve;var i=Array.isArray(t),n=Array.isArray(e),o=i===n;return o?i?r.arrayMerge(e,t,r):bn(e,t,r):Ve(t,r)}He.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return He(i,n,r)},{})};var yn=He,_n=yn;const xn=Ut(_n);var wt=function(e,t){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},wt(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ne=function(){return ne=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ne.apply(this,arguments)};function En(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function mt(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function vt(e,t){var r=t&&t.cache?t.cache:An,i=t&&t.serializer?t.serializer:Pn,n=t&&t.strategy?t.strategy:Tn;return n(e,{cache:r,serializer:i})}function wn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Sn(e,t,r,i){var n=wn(i)?i:r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,i),t.set(n,o)),o}function Ur(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,i),t.set(n,o)),o}function Vr(e,t,r,i,n){return r.bind(t,e,i,n)}function Tn(e,t){var r=e.length===1?Sn:Ur;return Vr(e,this,r,t.cache.create(),t.serializer)}function On(e,t){return Vr(e,this,Ur,t.cache.create(),t.serializer)}var Pn=function(){return JSON.stringify(arguments)},Hn=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),An={create:function(){return new Hn}},gt={variadic:On},ot=function(){return ot=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ot.apply(this,arguments)};var A;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(A||(A={}));var N;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(N||(N={}));var Ae;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ae||(Ae={}));function Qt(e){return e.type===N.literal}function Bn(e){return e.type===N.argument}function Fr(e){return e.type===N.number}function Gr(e){return e.type===N.date}function jr(e){return e.type===N.time}function zr(e){return e.type===N.select}function Wr(e){return e.type===N.plural}function Mn(e){return e.type===N.pound}function Xr(e){return e.type===N.tag}function qr(e){return!!(e&&typeof e=="object"&&e.type===Ae.number)}function St(e){return!!(e&&typeof e=="object"&&e.type===Ae.dateTime)}var Yr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $n(e){var t={};return e.replace(Cn,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var U=function(){return U=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},U.apply(this,arguments)};var Ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function In(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ln).filter(function(v){return v.length>0}),r=[],i=0,n=t;i<n.length;i++){var o=n[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,f=u;l<f.length;l++){var p=f[l];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Dn(e){return e.replace(/^(.*?)-/,"")}var Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zr=/^(@+)?(\+|#+)?[rs]?$/g,Nn=/(\*)(0+)|(#+)(0+)|(0+)/g,Jr=/^(0+)$/;function er(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zr,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function Qr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function kn(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Jr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function tr(e){var t={},r=Qr(e);return r||t}function Rn(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Dn(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=U(U(U({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return U(U({},u),tr(l))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return U(U({},u),tr(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Nn,function(u,l,f,p,v,b){if(l)t.minimumIntegerDigits=f.length;else{if(p&&v)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Jr.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Kt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Kt,function(u,l,f,p,v,b){return f==="*"?t.minimumFractionDigits=l.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:v&&b?(t.minimumFractionDigits=v.length,t.maximumFractionDigits=v.length+b.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=n.options[0];o==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=U(U({},t),er(o)));continue}if(Zr.test(n.stem)){t=U(U({},t),er(n.stem));continue}var s=Qr(n.stem);s&&(t=U(U({},t),s));var a=kn(n.stem);a&&(t=U(U({},t),a))}return t}var Ze={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Un(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=Vn(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;s-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function Vn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=Ze[i||""]||Ze[r||""]||Ze["".concat(r,"-001")]||Ze["001"];return n[0]}var bt,Fn=new RegExp("^".concat(Yr.source,"*")),Gn=new RegExp("".concat(Yr.source,"*$"));function B(e,t){return{start:e,end:t}}var jn=!!String.prototype.startsWith&&"_a".startsWith("a",1),zn=!!String.fromCodePoint,Wn=!!Object.fromEntries,Xn=!!String.prototype.codePointAt,qn=!!String.prototype.trimStart,Yn=!!String.prototype.trimEnd,Zn=!!Number.isSafeInteger,Jn=Zn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tt=!0;try{var Qn=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tt=((bt=Qn.exec("a"))===null||bt===void 0?void 0:bt[0])==="a"}catch(e){Tt=!1}var rr=jn?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Ot=zn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,o=0,s;n>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},ir=Wn?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var o=n[i],s=o[0],a=o[1];r[s]=a}return r},Kr=Xn?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===i||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Kn=qn?function(t){return t.trimStart()}:function(t){return t.replace(Fn,"")},eo=Yn?function(t){return t.trimEnd()}:function(t){return t.replace(Gn,"")};function ei(e,t){return new RegExp(e,t)}var Pt;if(Tt){var nr=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=function(t,r){var i;nr.lastIndex=r;var n=nr.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Pt=function(t,r){for(var i=[];;){var n=Kr(t,r);if(n===void 0||ti(n)||no(n))break;i.push(n),r+=n>=65536?2:1}return Ot.apply(void 0,i)};var to=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:N.pound,location:B(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(A.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ht(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:N.literal,value:"<".concat(n,"/>"),location:B(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ht(this.char()))return this.error(A.INVALID_TAG,B(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(A.UNMATCHED_CLOSING_TAG,B(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:N.tag,value:n,children:s,location:B(i,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,B(a,this.clonePosition())))}else return this.error(A.UNCLOSED_TAG,B(i,this.clonePosition()))}else return this.error(A.INVALID_TAG,B(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&io(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var u=B(i,this.clonePosition());return{val:{type:N.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ro(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Ot.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Ot(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(A.EMPTY_ARGUMENT,B(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(A.MALFORMED_ARGUMENT,B(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:N.argument,value:n,location:B(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(A.MALFORMED_ARGUMENT,B(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Pt(this.message,r),n=r+i.length;this.bumpTo(n);var o=this.clonePosition(),s=B(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,r,i,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,B(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var v=eo(p.val);if(v.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var b=B(f,this.clonePosition());l={style:v,styleLocation:b}}var T=this.tryParseArgumentClose(n);if(T.err)return T;var h=B(n,this.clonePosition());if(l&&rr(l==null?void 0:l.style,"::",0)){var I=Kn(l.style.slice(2));if(a==="number"){var p=this.parseNumberSkeletonFromString(I,l.styleLocation);return p.err?p:{val:{type:N.number,value:i,location:h,style:p.val},err:null}}else{if(I.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,h);var R=I;this.locale&&(R=Un(I,this.locale));var v={type:Ae.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(R):{}},H=a==="date"?N.date:N.time;return{val:{type:H,value:i,location:h,style:v},err:null}}}return{val:{type:a==="number"?N.number:a==="date"?N.date:N.time,value:i,location:h,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,B(E,ot({},E)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),$=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),O=this.parseIdentifierIfPossible(),$=p.val}var P=this.tryParsePluralOrSelectOptions(t,a,r,O);if(P.err)return P;var T=this.tryParseArgumentClose(n);if(T.err)return T;var X=B(n,this.clonePosition());return a==="select"?{val:{type:N.select,value:i,options:ir(P.val),location:X},err:null}:{val:{type:N.plural,value:i,options:ir(P.val),offset:$,pluralType:a==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(A.INVALID_ARGUMENT_TYPE,B(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=In(t)}catch(n){return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ae.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Rn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var o,s=!1,a=[],u=new Set,l=n.value,f=n.location;;){if(l.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var v=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(v.err)return v;f=B(p,this.clonePosition()),l=this.message.slice(p.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(s=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,r,i);if(T.err)return T;var h=this.tryParseArgumentClose(b);if(h.err)return h;a.push([l,{value:T.val,location:B(b,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return a.length===0?this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(A.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=B(n,this.clonePosition());return o?(s*=i,Jn(s)?{val:s,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Kr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(rr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ti(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function Ht(e){return e>=97&&e<=122||e>=65&&e<=90}function ro(e){return Ht(e)||e===47}function io(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ti(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function no(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function At(e){e.forEach(function(t){if(delete t.location,zr(t)||Wr(t))for(var r in t.options)delete t.options[r].location,At(t.options[r].value);else Fr(t)&&qr(t.style)||(Gr(t)||jr(t))&&St(t.style)?delete t.style.location:Xr(t)&&At(t.children)})}function oo(e,t){t===void 0&&(t={}),t=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new to(e,t).parse();if(r.err){var i=SyntaxError(A[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||At(r.val),r.val}var Be;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Be||(Be={}));var ct=function(e){lt(t,e);function t(r,i,n){var o=e.call(this,r)||this;return o.code=i,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),or=function(e){lt(t,e);function t(r,i,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Be.INVALID_VALUE,o)||this}return t}(ct),so=function(e){lt(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Be.INVALID_VALUE,n)||this}return t}(ct),ao=function(e){lt(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Be.MISSING_VALUE,i)||this}return t}(ct),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function uo(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Y.literal||r.type!==Y.literal?t.push(r):i.value+=r.value,t},[])}function lo(e){return typeof e=="function"}function et(e,t,r,i,n,o,s){if(e.length===1&&Qt(e[0]))return[{type:Y.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Qt(f)){a.push({type:Y.literal,value:f.value});continue}if(Mn(f)){typeof o=="number"&&a.push({type:Y.literal,value:r.getNumberFormat(t).format(o)});continue}var p=f.value;if(!(n&&p in n))throw new ao(p,s);var v=n[p];if(Bn(f)){(!v||typeof v=="string"||typeof v=="number")&&(v=typeof v=="string"||typeof v=="number"?String(v):""),a.push({type:typeof v=="string"?Y.literal:Y.object,value:v});continue}if(Gr(f)){var b=typeof f.style=="string"?i.date[f.style]:St(f.style)?f.style.parsedOptions:void 0;a.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(v)});continue}if(jr(f)){var b=typeof f.style=="string"?i.time[f.style]:St(f.style)?f.style.parsedOptions:i.time.medium;a.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(v)});continue}if(Fr(f)){var b=typeof f.style=="string"?i.number[f.style]:qr(f.style)?f.style.parsedOptions:void 0;b&&b.scale&&(v=v*(b.scale||1)),a.push({type:Y.literal,value:r.getNumberFormat(t,b).format(v)});continue}if(Xr(f)){var T=f.children,h=f.value,I=n[h];if(!lo(I))throw new so(h,"function",s);var R=et(T,t,r,i,n,o),H=I(R.map(function($){return $.value}));Array.isArray(H)||(H=[H]),a.push.apply(a,H.map(function($){return{type:typeof $=="string"?Y.literal:Y.object,value:$}}))}if(zr(f)){var E=f.options[v]||f.options.other;if(!E)throw new or(f.value,v,Object.keys(f.options),s);a.push.apply(a,et(E.value,t,r,i,n));continue}if(Wr(f)){var E=f.options["=".concat(v)];if(!E){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,Be.MISSING_INTL_API,s);var O=r.getPluralRules(t,{type:f.pluralType}).select(v-(f.offset||0));E=f.options[O]||f.options.other}if(!E)throw new or(f.value,v,Object.keys(f.options),s);a.push.apply(a,et(E.value,t,r,i,n,v-(f.offset||0)));continue}}return uo(a)}function co(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=ne(ne({},e[i]),t[i]||{}),r},{})):e}function fo(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=co(e[i],t[i]),r},ne({},e)):e}function yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ho(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.number),strategy:gt.variadic}),getDateTimeFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.dateTime),strategy:gt.variadic}),getPluralRules:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.pluralRules),strategy:gt.variadic})}}var ri=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(p,v){return!p.length||v.type!==Y.literal||typeof p[p.length-1]!="string"?p.push(v.value):p[p.length-1]+=v.value,p},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return et(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=En(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=fo(e.formats,i),this.formatters=n&&n.formatters||ho(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=oo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function po(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const o=r.slice(n,r.length).join(".");if(o in i){i=i[o];break}}i=i[r[n]]}else i=void 0;return i}const de={},mo=(e,t,r)=>r&&(t in de||(de[t]={}),e in de[t]||(de[t][e]=r),r),ii=(e,t)=>{if(t==null)return;if(t in de&&e in de[t])return de[t][e];const r=ze(t);for(let i=0;i<r.length;i++){const n=r[i],o=go(n,e);if(o)return mo(e,t,o)}};let Vt;const je=Ge({});function vo(e){return Vt[e]||null}function ni(e){return e in Vt}function go(e,t){if(!ni(e))return null;const r=vo(e);return po(r,t)}function bo(e){if(e==null)return;const t=ze(e);for(let r=0;r<t.length;r++){const i=t[r];if(ni(i))return i}}function oi(e,...t){delete de[e],je.update(r=>(r[e]=xn.all([r[e]||{},...t]),r))}$e([je],([e])=>Object.keys(e));je.subscribe(e=>Vt=e);const tt={};function yo(e,t){tt[e].delete(t),tt[e].size===0&&delete tt[e]}function si(e){return tt[e]}function _o(e){return ze(e).map(t=>{const r=si(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function st(e){return e==null?!1:ze(e).some(t=>{var r;return(r=si(t))==null?void 0:r.size})}function xo(e,t){return Promise.all(t.map(i=>(yo(e,i),i().then(n=>n.default||n)))).then(i=>oi(e,...i))}const Ie={};function ai(e){if(!st(e))return e in Ie?Ie[e]:Promise.resolve();const t=_o(e);return Ie[e]=Promise.all(t.map(([r,i])=>xo(r,i))).then(()=>{if(st(e))return ai(e);delete Ie[e]}),Ie[e]}var sr=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,So=(e,t)=>{var r={};for(var i in e)Eo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&sr)for(var i of sr(e))t.indexOf(i)<0&&wo.call(e,i)&&(r[i]=e[i]);return r};const To={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Oo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ze(e).join('", "')}".${st(pe())?`
4
-
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Po={fallbackLocale:null,loadingDelay:200,formats:To,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ne=Po;function Me(){return Ne}function Ho(e){const t=e,{formats:r}=t,i=So(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{ri.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Oo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ne,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Ne.formats.number,r.number),"date"in r&&Object.assign(Ne.formats.date,r.date),"time"in r&&Object.assign(Ne.formats.time,r.time)),_e.set(n)}const _t=Ge(!1);var Ao=Object.defineProperty,Bo=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,ur=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lo=(e,t)=>{for(var r in t||(t={}))Co.call(t,r)&&ur(e,r,t[r]);if(ar)for(var r of ar(t))$o.call(t,r)&&ur(e,r,t[r]);return e},Io=(e,t)=>Bo(e,Mo(t));let Bt;const at=Ge(null);function lr(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function ze(e,t=Me().fallbackLocale){const r=lr(e);return t?[...new Set([...r,...lr(t)])]:r}function pe(){return Bt!=null?Bt:void 0}at.subscribe(e=>{Bt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Do=e=>{if(e&&bo(e)&&st(e)){const{loadingDelay:t}=Me();let r;return typeof window!="undefined"&&pe()!=null&&t?r=window.setTimeout(()=>_t.set(!0),t):_t.set(!0),ai(e).then(()=>{at.set(e)}).finally(()=>{clearTimeout(r),_t.set(!1)})}return at.set(e)},_e=Io(Lo({},at),{set:Do}),ft=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var No=Object.defineProperty,ut=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,cr=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&cr(e,r,t[r]);if(ut)for(var r of ut(t))li.call(t,r)&&cr(e,r,t[r]);return e},Le=(e,t)=>{var r={};for(var i in e)ui.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&ut)for(var i of ut(e))t.indexOf(i)<0&&li.call(e,i)&&(r[i]=e[i]);return r};const Fe=(e,t)=>{const{formats:r}=Me();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ko=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Fe("number",i)),new Intl.NumberFormat(r,n)}),Ro=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Fe("date",i):Object.keys(n).length===0&&(n=Fe("date","short")),new Intl.DateTimeFormat(r,n)}),Uo=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Fe("time",i):Object.keys(n).length===0&&(n=Fe("time","short")),new Intl.DateTimeFormat(r,n)}),Vo=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return ko(Ft({locale:r},i))},Fo=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return Ro(Ft({locale:r},i))},Go=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return Uo(Ft({locale:r},i))},jo=ft((e,t=pe())=>new ri(e,t,Me().formats,{ignoreTag:Me().ignoreTag})),zo=(e,t={})=>{var r,i,n,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=pe(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ii(e,u);if(!f)f=(o=(n=(i=(r=Me()).handleMissingMessage)==null?void 0:i.call(r,{locale:u,id:e,defaultValue:l}))!=null?n:l)!=null?o:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let p=f;try{p=jo(f,u).format(a)}catch(v){v instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,v.message)}return p},Wo=(e,t)=>Go(t).format(e),Xo=(e,t)=>Fo(t).format(e),qo=(e,t)=>Vo(t).format(e),Yo=(e,t=pe())=>ii(e,t),Zo=$e([_e,je],()=>zo);$e([_e],()=>Wo);$e([_e],()=>Xo);$e([_e],()=>qo);$e([_e,je],()=>Yo);function fr(e,t){oi(e,t)}function Jo(e){Ho({fallbackLocale:"en"}),_e.set(e)}const hr={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},fr:{verificationsRequired:"Vérifications requises","verification.video.how-to":"Comment vérifier votre identité ?","verification.idenfy.referred-awaiting":"La vérification d’identité est en cours. Nous vous informerons dès que la vérification sera terminée et que vous pourrez retirer vos fonds.","verification.message.failed":"Nous sommes désolés, mais nous n’avons pas pu vérifier votre compte. Veuillez contacter l’équipe d’assistance.","verification.idenfy.link-name":"lien","verification.idenfy.in-progress":"Pour retirer des fonds vers votre compte, vous devez effectuer la vérification de l’utilisateur. Veuillez préparer votre pièce d’identité et suivre le {link} pour commencer la vérification.","verification.shuftipro.in-progress.Biometric":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}.","verification.shuftipro.in-progress.Biometric.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {Documents}.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}, la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents}.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {ProofOfAddress}.","verification.shuftipro.link-name.Biometric":"Biométrique","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Justificatif de domicile","verification.shuftipro.validations-started":"Après avoir terminé la vérification, veuillez procéder à la transaction."}};let Qo=Ge(null);const Oe="__WIDGET_GLOBAL_STYLE_CACHE__";function ci(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function fi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function hi(e,t,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=Ko(e,t),r;window[Oe]||(window[Oe]={}),r=es(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[Oe][t]){const a=window[Oe][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Oe][t]}o()};return r.unsubscribe=s,r}function Ko(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,i=>{e&&(r.innerHTML=i,e.appendChild(r))})}function es(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const i=e.getRootNode(),n=window[Oe];let o=n[t]&&n[t].sheet;o?n[t].refCount=n[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),n[t]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])})}/*! *****************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Mt=function(e,t){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Mt(e,t)};function We(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ct(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function Lt(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function le(e){return typeof e=="function"}function di(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var xt=di(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
19
- `+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
20
- `):"",this.name="UnsubscriptionError",this.errors=r}});function It(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ht=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ct(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(h){t={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var f=this.initialTeardown;if(le(f))try{f()}catch(h){o=h instanceof xt?h.errors:[h]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=Ct(p),b=v.next();!b.done;b=v.next()){var T=b.value;try{dr(T)}catch(h){o=o!=null?o:[],h instanceof xt?o=Lt(Lt([],$t(o)),$t(h.errors)):o.push(h)}}}catch(h){i={error:h}}finally{try{b&&!b.done&&(n=v.return)&&n.call(v)}finally{if(i)throw i.error}}}if(o)throw new xt(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&It(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&It(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),pi=ht.EMPTY;function mi(e){return e instanceof ht||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dr(e){le(e)?e():e.unsubscribe()}var ts={Promise:void 0},rs={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Lt([e,t],$t(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function is(e){rs.setTimeout(function(){throw e})}function pr(){}function rt(e){e()}var vi=function(e){We(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,mi(r)&&r.add(i)):i.destination=ss,i}return t.create=function(r,i,n){return new Dt(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ht),ns=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Je(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Je(i)}else Je(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Je(r)}},e}(),Dt=function(e){We(t,e);function t(r,i,n){var o=e.call(this)||this,s;return le(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new ns(s),o}return t}(vi);function Je(e){is(e)}function os(e){throw e}var ss={closed:!0,next:pr,error:os,complete:pr},as=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function us(e){return e}function ls(e){return e.length===0?us:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var mr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=fs(t)?t:new Dt(t,r,i);return rt(function(){var s=n,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=vr(r),new r(function(n,o){var s=new Dt({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[as]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ls(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vr(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function vr(e){var t;return(t=e!=null?e:ts.Promise)!==null&&t!==void 0?t:Promise}function cs(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}function fs(e){return e&&e instanceof vi||cs(e)&&mi(e)}var hs=di(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gi=function(e){We(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new gr(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new hs},t.prototype.next=function(r){var i=this;rt(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Ct(i.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;rt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;rt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?pi:(this.currentObservers=null,a.push(r),new ht(function(){i.currentObservers=null,It(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new mr;return r.source=this,r},t.create=function(r,i){return new gr(r,i)},t}(mr),gr=function(e){We(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:pi},t}(gi),bi={now:function(){return(bi.delegate||Date).now()},delegate:void 0},ds=function(e){We(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=bi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,u=i._windowTime;n||(o.push(r),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=o?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=n.now(),l=0,f=1;f<o.length&&o[f]<=u;f+=2)l=f;l&&o.splice(0,l+1)}},t}(gi);const br=[],yr={},ps=(e,t=0)=>{if(br.indexOf(e)==-1){const r=new ds(t);yr[e]=r,br.push(e)}return yr[e]};window.emWidgets={topic:ps};const ms=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-mvLty-MR.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var yi={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",f="week",p="month",v="quarter",b="year",T="date",h="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,H={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var d=["th","st","nd","rd"],m=x%100;return"["+x+(d[(m-20)%10]||d[m]||d[0])+"]"}},E=function(x,d,m){var y=String(x);return!y||y.length>=d?x:""+Array(d+1-y.length).join(m)+x},O={s:E,z:function(x){var d=-x.utcOffset(),m=Math.abs(d),y=Math.floor(m/60),g=m%60;return(d<=0?"+":"-")+E(y,2,"0")+":"+E(g,2,"0")},m:function x(d,m){if(d.date()<m.date())return-x(m,d);var y=12*(m.year()-d.year())+(m.month()-d.month()),g=d.clone().add(y,p),w=m-g<0,S=d.clone().add(y+(w?-1:1),p);return+(-(y+(m-g)/(w?g-S:S-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:p,y:b,w:f,d:l,D:T,h:u,m:a,s,ms:o,Q:v}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},$="en",P={};P[$]=H;var X="$isDayjsObject",se=function(x){return x instanceof xe||!(!x||!x[X])},Q=function x(d,m,y){var g;if(!d)return $;if(typeof d=="string"){var w=d.toLowerCase();P[w]&&(g=w),m&&(P[w]=m,g=w);var S=d.split("-");if(!g&&S.length>1)return x(S[0])}else{var D=d.name;P[D]=d,g=D}return!y&&g&&($=g),g||!y&&$},V=function(x,d){if(se(x))return x.clone();var m=typeof d=="object"?d:{};return m.date=x,m.args=arguments,new xe(m)},C=O;C.l=Q,C.i=se,C.w=function(x,d){return V(x,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var xe=function(){function x(m){this.$L=Q(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[X]=!0}var d=x.prototype;return d.parse=function(m){this.$d=function(y){var g=y.date,w=y.utc;if(g===null)return new Date(NaN);if(C.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var S=g.match(I);if(S){var D=S[2]-1||0,k=(S[7]||"0").substring(0,3);return w?new Date(Date.UTC(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,k)):new Date(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,k)}}return new Date(g)}(m),this.init()},d.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},d.$utils=function(){return C},d.isValid=function(){return this.$d.toString()!==h},d.isSame=function(m,y){var g=V(m);return this.startOf(y)<=g&&g<=this.endOf(y)},d.isAfter=function(m,y){return V(m)<this.startOf(y)},d.isBefore=function(m,y){return this.endOf(y)<V(m)},d.$g=function(m,y,g){return C.u(m)?this[y]:this.set(g,m)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(m,y){var g=this,w=!!C.u(y)||y,S=C.p(m),D=function(ae,q){var ie=C.w(g.$u?Date.UTC(g.$y,q,ae):new Date(g.$y,q,ae),g);return w?ie:ie.endOf(l)},k=function(ae,q){return C.w(g.toDate()[ae].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(q)),g)},F=this.$W,z=this.$M,Z=this.$D,fe="set"+(this.$u?"UTC":"");switch(S){case b:return w?D(1,0):D(31,11);case p:return w?D(1,z):D(0,z+1);case f:var re=this.$locale().weekStart||0,me=(F<re?F+7:F)-re;return D(w?Z-me:Z+(6-me),z);case l:case T:return k(fe+"Hours",0);case u:return k(fe+"Minutes",1);case a:return k(fe+"Seconds",2);case s:return k(fe+"Milliseconds",3);default:return this.clone()}},d.endOf=function(m){return this.startOf(m,!1)},d.$set=function(m,y){var g,w=C.p(m),S="set"+(this.$u?"UTC":""),D=(g={},g[l]=S+"Date",g[T]=S+"Date",g[p]=S+"Month",g[b]=S+"FullYear",g[u]=S+"Hours",g[a]=S+"Minutes",g[s]=S+"Seconds",g[o]=S+"Milliseconds",g)[w],k=w===l?this.$D+(y-this.$W):y;if(w===p||w===b){var F=this.clone().set(T,1);F.$d[D](k),F.init(),this.$d=F.set(T,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](k);return this.init(),this},d.set=function(m,y){return this.clone().$set(m,y)},d.get=function(m){return this[C.p(m)]()},d.add=function(m,y){var g,w=this;m=Number(m);var S=C.p(y),D=function(z){var Z=V(w);return C.w(Z.date(Z.date()+Math.round(z*m)),w)};if(S===p)return this.set(p,this.$M+m);if(S===b)return this.set(b,this.$y+m);if(S===l)return D(1);if(S===f)return D(7);var k=(g={},g[a]=i,g[u]=n,g[s]=r,g)[S]||1,F=this.$d.getTime()+m*k;return C.w(F,this)},d.subtract=function(m,y){return this.add(-1*m,y)},d.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||h;var w=m||"YYYY-MM-DDTHH:mm:ssZ",S=C.z(this),D=this.$H,k=this.$m,F=this.$M,z=g.weekdays,Z=g.months,fe=g.meridiem,re=function(q,ie,ve,Ee){return q&&(q[ie]||q(y,w))||ve[ie].slice(0,Ee)},me=function(q){return C.s(D%12||12,q,"0")},ae=fe||function(q,ie,ve){var Ee=q<12?"AM":"PM";return ve?Ee.toLowerCase():Ee};return w.replace(R,function(q,ie){return ie||function(ve){switch(ve){case"YY":return String(y.$y).slice(-2);case"YYYY":return C.s(y.$y,4,"0");case"M":return F+1;case"MM":return C.s(F+1,2,"0");case"MMM":return re(g.monthsShort,F,Z,3);case"MMMM":return re(Z,F);case"D":return y.$D;case"DD":return C.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return re(g.weekdaysMin,y.$W,z,2);case"ddd":return re(g.weekdaysShort,y.$W,z,3);case"dddd":return z[y.$W];case"H":return String(D);case"HH":return C.s(D,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(D,k,!0);case"A":return ae(D,k,!1);case"m":return String(k);case"mm":return C.s(k,2,"0");case"s":return String(y.$s);case"ss":return C.s(y.$s,2,"0");case"SSS":return C.s(y.$ms,3,"0");case"Z":return S}return null}(q)||S.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(m,y,g){var w,S=this,D=C.p(y),k=V(m),F=(k.utcOffset()-this.utcOffset())*i,z=this-k,Z=function(){return C.m(S,k)};switch(D){case b:w=Z()/12;break;case p:w=Z();break;case v:w=Z()/3;break;case f:w=(z-F)/6048e5;break;case l:w=(z-F)/864e5;break;case u:w=z/n;break;case a:w=z/i;break;case s:w=z/r;break;default:w=z}return g?w:C.a(w)},d.daysInMonth=function(){return this.endOf(p).$D},d.$locale=function(){return P[this.$L]},d.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),w=Q(m,y,!0);return w&&(g.$L=w),g},d.clone=function(){return C.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},x}(),ce=xe.prototype;return V.prototype=ce,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",p],["$y",b],["$D",T]].forEach(function(x){ce[x[1]]=function(d){return this.$g(d,x[0],x[1])}}),V.extend=function(x,d){return x.$i||(x(d,xe,V),x.$i=!0),V},V.locale=Q,V.isDayjs=se,V.unix=function(x){return V(1e3*x)},V.en=P[$],V.Ls=P,V.p={},V})})(yi);var vs=yi.exports;const _r=Ut(vs);var _i={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,a){var u=s.prototype;a.utc=function(h){var I={date:h,utc:!0,args:arguments};return new s(I)},u.utc=function(h){var I=a(this.toDate(),{locale:this.$L,utc:!0});return h?I.add(this.utcOffset(),r):I},u.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),l.call(this,h)};var f=u.init;u.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var p=u.utcOffset;u.utcOffset=function(h,I){var R=this.$utils().u;if(R(h))return this.$u?0:R(this.$offset)?p.call(this):this.$offset;if(typeof h=="string"&&(h=function($){$===void 0&&($="");var P=$.match(i);if(!P)return null;var X=(""+P[0]).match(n)||["-",0,0],se=X[0],Q=60*+X[1]+ +X[2];return Q===0?0:se==="+"?Q:-Q}(h),h===null))return this;var H=Math.abs(h)<=16?60*h:h,E=this;if(I)return E.$offset=H,E.$u=h===0,E;if(h!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(H+O,r)).$offset=H,E.$x.$localOffset=O}else E=this.utc();return E};var v=u.format;u.format=function(h){var I=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,I)},u.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var b=u.toDate;u.toDate=function(h){return h==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var T=u.diff;u.diff=function(h,I,R){if(h&&this.$u===h.$u)return T.call(this,h,I,R);var H=this.local(),E=a(h).local();return T.call(H,E,I,R)}}})})(_i);var gs=_i.exports;const bs=Ut(gs);function ys(e){Hr(e,"svelte-xrv2v8",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications .CashierVerificationsWrapper:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) auto}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function xr(e,t,r){const i=e.slice();return i[56]=t[r],i}function _s(e){let t,r=e[3].length>0&&Er(e);return{c(){t=W("div"),r&&r.c(),M(t,"class","CashierVerificationsWrapper")},m(i,n){oe(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Er(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&te(t),r&&r.d()}}}function xs(e){let t;return{c(){t=W("cashier-spinner"),qe(t,"clientstylingurl",e[1]),qe(t,"clientstyling",e[0])},m(r,i){oe(r,t,i)},p(r,i){i[0]&2&&qe(t,"clientstylingurl",r[1]),i[0]&1&&qe(t,"clientstyling",r[0])},d(r){r&&te(t)}}}function Er(e){let t,r,i,n,o,s,a,u=e[8]("verificationsRequired")+"",l,f,p,v,b,T,h,I,R=Zt(e[3]),H=[];for(let O=0;O<R.length;O+=1)H[O]=wr(xr(e,R,O));let E=e[6]&&Sr(e);return{c(){t=W("div"),r=De("svg"),i=De("path"),n=De("path"),o=De("path"),s=be(),a=W("p"),l=Rt(u),f=be(),p=W("span"),p.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',v=be(),b=W("div");for(let O=0;O<H.length;O+=1)H[O].c();T=be(),E&&E.c(),M(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),M(i,"stroke","#6E738F"),M(i,"stroke-width","2"),M(i,"stroke-linecap","round"),M(i,"stroke-linejoin","round"),M(n,"d","M12 8V12"),M(n,"stroke","#6E738F"),M(n,"stroke-width","2"),M(n,"stroke-linecap","round"),M(n,"stroke-linejoin","round"),M(o,"d","M12 16H12.01"),M(o,"stroke","#6E738F"),M(o,"stroke-width","2"),M(o,"stroke-linecap","round"),M(o,"stroke-linejoin","round"),M(r,"width","24"),M(r,"height","24"),M(r,"viewBox","0 0 24 24"),M(r,"fill","none"),M(r,"xmlns","http://www.w3.org/2000/svg"),M(p,"class","CashierVerificationChevron"),ue(p,"ShowVerifications",e[4]),M(t,"class","VerificationsHeader"),M(b,"class","VerificationsList"),ue(b,"ShowVerifications",e[4])},m(O,$){oe(O,t,$),G(t,r),G(r,i),G(r,n),G(r,o),G(t,s),G(t,a),G(a,l),G(t,f),G(t,p),oe(O,v,$),oe(O,b,$);for(let P=0;P<H.length;P+=1)H[P]&&H[P].m(b,null);G(b,T),E&&E.m(b,null),h||(I=Re(t,"click",e[9]),h=!0)},p(O,$){if($[0]&256&&u!==(u=O[8]("verificationsRequired")+"")&&Ar(l,u),$[0]&16&&ue(p,"ShowVerifications",O[4]),$[0]&8){R=Zt(O[3]);let P;for(P=0;P<R.length;P+=1){const X=xr(O,R,P);H[P]?H[P].p(X,$):(H[P]=wr(X),H[P].c(),H[P].m(b,T))}for(;P<H.length;P+=1)H[P].d(1);H.length=R.length}O[6]?E?E.p(O,$):(E=Sr(O),E.c(),E.m(b,null)):E&&(E.d(1),E=null),$[0]&16&&ue(b,"ShowVerifications",O[4])},d(O){O&&(te(t),te(v),te(b)),Gi(H,O),E&&E.d(),h=!1,I()}}}function wr(e){let t,r,i,n,o=e[56]+"";return{c(){t=W("div"),r=W("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=be(),n=W("p"),M(r,"class","IconVerification"),M(n,"class","text"),M(t,"class","CashierVerificationMessage Test")},m(s,a){oe(s,t,a),G(t,r),G(t,i),G(t,n),n.innerHTML=o},p(s,a){a[0]&8&&o!==(o=s[56]+"")&&(n.innerHTML=o)},d(s){s&&te(t)}}}function Sr(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,a,u;return{c(){t=W("div"),r=W("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=be(),n=W("div"),s=Rt(o),M(r,"class","IconVideo"),M(n,"class","CashierVerificationVideoLink"),ue(n,"CashierVerificationVideoLinkDesktop",e[5]),M(t,"class","CashierVerificationVideo Test")},m(l,f){oe(l,t,f),G(t,r),G(t,i),G(t,n),G(n,s),a||(u=Re(t,"click",e[10]),a=!0)},p(l,f){f[0]&256&&o!==(o=l[8]("verification.video.how-to")+"")&&Ar(s,o),f[0]&32&&ue(n,"CashierVerificationVideoLinkDesktop",l[5])},d(l){l&&te(t),a=!1,u()}}}function Es(e){let t;function r(o,s){if(o[7])return xs;if(o[3])return _s}let i=r(e),n=i&&i(e);return{c(){t=W("div"),n&&n.c(),M(t,"class","CashierVerifications"),ue(t,"CashierVerificationsDesktop",e[5])},m(o,s){oe(o,t,s),n&&n.m(t,null),e[20](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&ue(t,"CashierVerificationsDesktop",o[5])},i:ee,o:ee,d(o){o&&te(t),n&&n.d(),e[20](null)}}}const ws="verification_explanation_video_widgets.MP4";function Ss(e,t,r){let i,n;qt(e,Zo,c=>r(8,i=c)),qt(e,Qo,c=>r(29,n=c)),_r.extend(bs);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:a=""}=t,{clientstyling:u=""}=t,{clientstylingurl:l=""}=t,{session:f=""}=t,{customerid:p=""}=t,{playersession:v=""}=t,{userroles:b=""}=t,{mbsource:T=""}=t,h,I=new Set,R=new Set,H,E,O,$=!1,P=!0,X=!1,se="",Q=!1,V,C=[],xe=window.navigator.userAgent;var ce;(function(c){c.Manual="Manual",c.ShuftiPro="ShuftiPro"})(ce||(ce={}));var x;(function(c){c.Requested="Requested"})(x||(x={}));var d;(function(c){c.Unknown="Unknown",c.Unverified="Unverified",c.InProgress="InProgress",c.Failed="Failed",c.Verified="Verified",c.Referred="Referred",c.True="True",c.False="False",c.AwaitingForResponse="AwaitingForResponse"})(d||(d={}));var m;(function(c){c.Unknown="Unknown",c.Documents="Documents",c.Age="Age",c.Pep="Pep",c.Sanction="Sanction",c.Aml="Aml",c.ProofOfAddress="ProofOfAddress",c.SourceOfWealth="SourceOfWealth",c.SocialMedia="SocialMedia",c.Biometric="Biometric"})(m||(m={}));const y=c=>{c.data&&c.data.type};Br(()=>(window.addEventListener("message",y),Ti(),()=>{window.removeEventListener("message",y)}));const g=[d.InProgress,d.Referred,d.AwaitingForResponse],w=()=>{let c=a;if(c)return fetch(c).then(_=>_.json()).then(_=>{Object.keys(_).forEach(L=>{fr(L,_[L])})}).catch(_=>{console.log(_)})};Object.keys(hr).forEach(c=>{fr(c,hr[c])});const S=()=>{Jo(s)},D=()=>{r(19,E=z());const c=new URL(`${o}/v1/player/${p}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${v}`),_.append("X-Client-Request-Timestamp",_r.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),Array.isArray(C)&&C.length>0&&C.indexOf("MM_CHANNEL_BETA")!=-1&&_.append("MM_CHANNEL","BETA");const L={method:"POST",headers:_,body:JSON.stringify({})};r(7,Q=!0),fetch(c,L).then(j=>j.json()).then(j=>{const he=k(j==null?void 0:j.Verifications);H=Z(he),H.VerificationStatuses.forEach(Xe=>{Xe.VerificationUrlType!=="Widget"&&I.add(Xe.Vendor)}),r(3,O=ie())}).finally(()=>r(7,Q=!1))},k=c=>c?c.sort((_,L)=>new Date(L.Created).getTime()-new Date(_.Created).getTime()):[],F=()=>{n&&D()},z=()=>{let c=(f||n).split(".")[1];if(c){let _=JSON.parse(atob(c));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},Z=c=>{var L;if(!c||!c.length)return{VerificationSummaryStatus:d.Unverified,VerificationStatuses:[]};const _=me(c);if(_&&_.length){const j=fe(_);return{VerificationSummaryStatus:j.Status,VerificationUrl:(L=j.Flags)==null?void 0:L.DeferredUrlKey,VerificationStatuses:re(_,j.Status)}}else return{VerificationSummaryStatus:c.some(he=>he.Status===d.Failed)?d.Failed:d.Verified,VerificationStatuses:re(c,[d.Failed])}},fe=c=>c.reduce((_,L)=>_?new Date(_)<new Date(L)?L:_:L,0),re=(c,_)=>c.filter(L=>_.includes(L.Status)).map(L=>{var j,he;return{Type:L.Type,Vendor:L.VendorName,VerificationDocuments:L.Documents?[...L.Documents]:[],VerificationUrlType:(j=L.FlowInfo)==null?void 0:j.Type,VerificationUrl:(he=L.FlowInfo)==null?void 0:he.Url}}),me=c=>c.filter(_=>g.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ae(_)||q(_):!1),ae=c=>{const _=c.Documents&&c.VendorName===ce.Manual,L=c.Documents&&c.Documents.some(j=>j.Status===x.Requested);return _&&L},q=c=>c.VendorName===ce.ShuftiPro&&c.Status===d.Referred,ie=()=>{switch(H.VerificationSummaryStatus){case d.InProgress:const c=[];return I.forEach(_=>{c.push(ve(_))}),c;case d.Referred:return[i("verification.idenfy.referred-awaiting")];case d.Failed:return[i("verification.message.failed")]}},ve=c=>{const _=H.VerificationStatuses.filter(L=>L.Vendor===c);if(c===ce.ShuftiPro)return Ee(_);{const L=i("verification.idenfy.link-name"),j={link:`<a href="${_[0].VerificationUrl}" target="_blank">${L}</a>`};return i("verification.idenfy.in-progress",{values:j})}},Ee=c=>{const _=[],L={},j=[m.Biometric,m.Documents,m.ProofOfAddress];c.forEach(ge=>{j.includes(ge.Type)&&(_.push(ge.Type),L[ge.Type]=Ei(ge,wi(ge.Type)))});let he=_.every(ge=>R.has(ge)),Xe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return he?i("verification.shuftipro.validations-started"):i(Xe,{values:L})},Ei=(c,_)=>`<a class="verificationLink ${c.Type}" href=" ${c.VerificationUrl} " target="_blank">${_}</a>`,wi=c=>i(`verification.shuftipro.link-name.${c}`),Si=()=>{r(4,$=!$)},Ti=()=>{r(5,P=!ms(xe))},Oi=()=>{se=E+"/"+s+"/"+ws;try{fetch(se,{method:"HEAD"}).then(c=>{r(6,X=c.ok)})}catch(c){r(6,X=!1)}},Pi=()=>{b.length>0&&(C=b.split(","))},Hi=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:se}}}))};function Ai(c){it[c?"unshift":"push"](()=>{h=c,r(2,h)})}return e.$$set=c=>{"endpoint"in c&&r(11,o=c.endpoint),"lang"in c&&r(12,s=c.lang),"translationurl"in c&&r(13,a=c.translationurl),"clientstyling"in c&&r(0,u=c.clientstyling),"clientstylingurl"in c&&r(1,l=c.clientstylingurl),"session"in c&&r(14,f=c.session),"customerid"in c&&r(15,p=c.customerid),"playersession"in c&&r(16,v=c.playersession),"userroles"in c&&r(17,b=c.userroles),"mbsource"in c&&r(18,T=c.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&131072&&b&&Pi(),e.$$.dirty[0]&4096&&s&&S(),e.$$.dirty[0]&83968&&o&&f&&v&&D(),e.$$.dirty[0]&83968&&o&&!f&&v&&F(),e.$$.dirty[0]&8192&&a&&w(),e.$$.dirty[0]&5&&u&&h&&ci(h,u),e.$$.dirty[0]&6&&l&&h&&fi(h,l),e.$$.dirty[0]&524288&&E&&Oi(),e.$$.dirty[0]&262148&&T&&h&&hi(h,`${T}.Style`,V)},[u,l,h,O,$,P,X,Q,i,Si,Hi,o,s,a,f,p,v,b,T,E,Ai]}class xi extends Nr{constructor(t){super(),Lr(this,t,Ss,Es,kt,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,userroles:17,mbsource:18},ys,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),J()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),J()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),J()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),J()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),J()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),J()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),J()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),J()}get userroles(){return this.$$.ctx[17]}set userroles(t){this.$$set({userroles:t}),J()}get mbsource(){return this.$$.ctx[18]}set mbsource(t){this.$$set({mbsource:t}),J()}}Dr(xi,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},userroles:{},mbsource:{}},[],[],!0);const Ts=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"}));exports.CashierVerifications_ce=Ts;exports.SvelteComponent=Nr;exports.add_iframe_resize_listener=Wi;exports.add_render_callback=nt;exports.append=G;exports.append_styles=Hr;exports.attr=M;exports.binding_callbacks=it;exports.check_outros=Ki;exports.create_custom_element=Dr;exports.create_slot=Ni;exports.detach=te;exports.element=W;exports.flush=J;exports.get_all_dirty_from_scope=Ui;exports.get_slot_changes=ki;exports.group_outros=Qi;exports.init=Lr;exports.insert=oe;exports.listen=Re;exports.noop=ee;exports.onMount=Br;exports.safe_not_equal=kt;exports.setClientStyling=ci;exports.setClientStylingURL=fi;exports.setStreamStyling=hi;exports.space=be;exports.svg_element=De;exports.tick=Yi;exports.toggle_class=ue;exports.transition_in=$r;exports.transition_out=en;exports.update_slot_base=Ri;