@everymatrix/cashier-session-expiration-modal 1.86.4 → 1.86.5
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.
- package/components/{CashierSessionExpirationModal-DDVIqM4F.js → CashierSessionExpirationModal-CK3ySuQl.js} +1008 -1013
- package/components/{CashierSessionExpirationModal-KbvrKm7-.js → CashierSessionExpirationModal-Cc1S2bE-.js} +1006 -1011
- package/components/CashierSessionExpirationModal-Vubylti9.cjs +9 -0
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-D_XYcHGT.cjs +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";var qi=Object.defineProperty,Ji=Object.defineProperties;var Qi=Object.getOwnPropertyDescriptors;var sr=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var an=(e,t,n)=>t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ar=(e,t)=>{for(var n in t||(t={}))Ki.call(t,n)&&an(e,n,t[n]);if(sr)for(var n of sr(t))eo.call(t,n)&&an(e,n,t[n]);return e},lr=(e,t)=>Ji(e,Qi(t));var ve=(e,t,n)=>(an(e,typeof t!="symbol"?t+"":t,n),n);var ur=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},l=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,l);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ye(){}const qr=e=>e;function to(e,t){for(const n in t)e[n]=t[n];return e}function Jr(e){return e()}function cr(){return Object.create(null)}function $e(e){e.forEach(Jr)}function Jt(e){return typeof e=="function"}function Qr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ht;function fr(e,t){return e===t?!0:(Ht||(Ht=document.createElement("a")),Ht.href=t,e===Ht.href)}function no(e){return Object.keys(e).length===0}function Kr(e,...t){if(e==null){for(const r of t)r(void 0);return ye}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function hr(e,t,n){e.$$.on_destroy.push(Kr(t,n))}function Dt(e,t,n,r){if(e){const i=ei(e,t,n,r);return e[0](i)}}function ei(e,t,n,r){return e[1]&&r?to(n.ctx.slice(),e[1](r(t))):n.ctx}function Bt(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],l=Math.max(t.dirty.length,i.length);for(let a=0;a<l;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function $t(e,t,n,r,i,o){if(i){const l=ei(t,n,r,o);e.p(l,i)}}function Ut(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}const ti=typeof window!="undefined";let ro=ti?()=>window.performance.now():()=>Date.now(),Nn=ti?e=>requestAnimationFrame(e):ye;const Qe=new Set;function ni(e){Qe.forEach(t=>{t.c(e)||(Qe.delete(t),t.f())}),Qe.size!==0&&Nn(ni)}function io(e){let t;return Qe.size===0&&Nn(ni),{promise:new Promise(n=>{Qe.add(t={c:e,f:n})}),abort(){Qe.delete(t)}}}function B(e,t){e.appendChild(t)}function oo(e,t,n){const r=In(e);if(!r.getElementById(t)){const i=ne("style");i.id=t,i.textContent=n,ri(r,i)}}function In(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function so(e){const t=ne("style");return t.textContent="/* empty */",ri(In(e),t),t.sheet}function ri(e,t){return B(e.head||e,t),t.sheet}function Ue(e,t,n){e.insertBefore(t,n||null)}function Ae(e){e.parentNode&&e.parentNode.removeChild(e)}function ne(e){return document.createElement(e)}function Se(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ge(e){return document.createTextNode(e)}function Pe(){return Ge(" ")}function ao(){return Ge("")}function Je(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function w(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function lo(e){return Array.from(e.childNodes)}function Et(e,t){t=""+t,e.data!==t&&(e.data=t)}let Nt;function uo(){if(Nt===void 0){Nt=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Nt=!0}}return Nt}function co(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const r=ne("iframe");r.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;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1;const i=uo();let o;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Je(window,"message",l=>{l.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{o=Je(r.contentWindow,"resize",t),t()}),B(e,r),()=>{(i||o&&r.contentWindow)&&o(),Ae(r)}}function fo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ho(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Wt=new Map;let Vt=0;function mo(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function po(e,t){const n={stylesheet:so(t),rules:{}};return Wt.set(e,n),n}function mr(e,t,n,r,i,o,l,a=0){const c=16.666/r;let u=`{
|
|
2
|
-
`;for(let N=0;N<=1;N+=c){const U=t+(n-t)*o(N);u+=N*100+`%{${l(U,1-U)}}
|
|
3
|
-
`}const f=u+`100% {${l(n,1-n)}}
|
|
4
|
-
}`,m=`__svelte_${mo(f)}_${a}`,y=In(e),{stylesheet:A,rules:x}=Wt.get(y)||po(y,e);x[m]||(x[m]=!0,A.insertRule(`@keyframes ${m} ${f}`,A.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${m} ${r}ms linear ${i}ms 1 both`,Vt+=1,m}function go(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Vt-=i,Vt||_o())}function _o(){Nn(()=>{Vt||(Wt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Ae(t)}),Wt.clear())})}let yt;function bt(e){yt=e}function ii(){if(!yt)throw new Error("Function called outside component initialization");return yt}function bo(e){ii().$$.on_mount.push(e)}function Eo(e){ii().$$.on_destroy.push(e)}const qe=[],Xt=[];let Ke=[];const dr=[],yo=Promise.resolve();let xn=!1;function xo(){xn||(xn=!0,yo.then(pe))}function et(e){Ke.push(e)}const ln=new Set;let Ye=0;function pe(){if(Ye!==0)return;const e=yt;do{try{for(;Ye<qe.length;){const t=qe[Ye];Ye++,bt(t),vo(t.$$)}}catch(t){throw qe.length=0,Ye=0,t}for(bt(null),qe.length=0,Ye=0;Xt.length;)Xt.pop()();for(let t=0;t<Ke.length;t+=1){const n=Ke[t];ln.has(n)||(ln.add(n),n())}Ke.length=0}while(qe.length);for(;dr.length;)dr.pop()();xn=!1,ln.clear(),bt(e)}function vo(e){if(e.fragment!==null){e.update(),$e(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(et)}}function To(e){const t=[],n=[];Ke.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ke=t}let ct;function So(){return ct||(ct=Promise.resolve(),ct.then(()=>{ct=null})),ct}function un(e,t,n){e.dispatchEvent(fo(`${t?"intro":"outro"}${n}`))}const kt=new Set;let Re;function oi(){Re={r:0,c:[],p:Re}}function si(){Re.r||$e(Re.c),Re=Re.p}function He(e,t){e&&e.i&&(kt.delete(e),e.i(t))}function De(e,t,n,r){if(e&&e.o){if(kt.has(e))return;kt.add(e),Re.c.push(()=>{kt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const wo={duration:0};function pr(e,t,n,r){let o=t(e,n,{direction:"both"}),l=r?0:1,a=null,c=null,u=null,f;function m(){u&&go(e,u)}function y(x,g){const N=x.b-l;return g*=Math.abs(N),{a:l,b:x.b,d:N,duration:g,start:x.start,end:x.start+g,group:x.group}}function A(x){const{delay:g=0,duration:N=300,easing:U=qr,tick:X=ye,css:R}=o||wo,H={start:ro()+g,b:x};x||(H.group=Re,Re.r+=1),"inert"in e&&(x?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),a||c?c=H:(R&&(m(),u=mr(e,l,x,N,g,U,R)),x&&X(0,1),a=y(H,N),et(()=>un(e,x,"start")),io(I=>{if(c&&I>c.start&&(a=y(c,N),c=null,un(e,a.b,"start"),R&&(m(),u=mr(e,l,a.b,a.duration,0,U,o.css))),a){if(I>=a.end)X(l=a.b,1-l),un(e,a.b,"end"),c||(a.b?m():--a.group.r||$e(a.group.c)),a=null;else if(I>=a.start){const V=I-a.start;l=a.a+a.d*U(V/a.duration),X(l,1-l)}}return!!(a||c)}))}return{run(x){Jt(o)?So().then(()=>{o=o({direction:x?"in":"out"}),A(x)}):A(x)},end(){m(),a=c=null}}}function Ao(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),et(()=>{const o=e.$$.on_mount.map(Jr).filter(Jt);e.$$.on_destroy?e.$$.on_destroy.push(...o):$e(o),e.$$.on_mount=[]}),i.forEach(et)}function Mo(e,t){const n=e.$$;n.fragment!==null&&(To(n.after_update),$e(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Oo(e,t){e.$$.dirty[0]===-1&&(qe.push(e),xo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Co(e,t,n,r,i,o,l=null,a=[-1]){const c=yt;bt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ye,not_equal:i,bound:cr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:cr(),dirty:a,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(m,y,...A)=>{const x=A.length?A[0]:y;return u.ctx&&i(u.ctx[m],u.ctx[m]=x)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](x),f&&Oo(e,m)),y}):[],u.update(),f=!0,$e(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const m=lo(t.target);u.fragment&&u.fragment.l(m),m.forEach(Ae)}else u.fragment&&u.fragment.c();t.intro&&He(e.$$.fragment),Ao(e,t.target,t.anchor),pe()}bt(c)}let ai;typeof HTMLElement=="function"&&(ai=class extends HTMLElement{constructor(t,n,r){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return ur(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let l;return{c:function(){l=ne("slot"),o!=="default"&&w(l,"name",o)},m:function(u,f){Ue(u,l,f)},d:function(u){u&&Ae(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=ho(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Ft(l,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:lr(ar({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{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 l=Ft(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const l of this.$$l[o]){const a=this.$$c.$on(o,l);this.$$l_u.set(l,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ft(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ft(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Lo(e,t,n,r,i,o){let l=class extends ai{constructor(){super(e,n,i),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(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){var u;c=Ft(a,c,t),this.$$d[a]=c,(u=this.$$c)==null||u.$set({[a]:c})}})}),r.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var c;return(c=this.$$c)==null?void 0:c[a]}})}),e.element=l,l}class Ho{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){Mo(this,1),this.$destroy=ye}$on(t,n){if(!Jt(n))return ye;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!no(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const No="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(No);function gr(e,{delay:t=0,duration:n=400,easing:r=qr}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const Ze=[];function Io(e,t){return{subscribe:Tt(e,t).subscribe}}function Tt(e,t=ye){let n;const r=new Set;function i(a){if(Qr(e,a)&&(e=a,n)){const c=!Ze.length;for(const u of r)u[1](),Ze.push(u,e);if(c){for(let u=0;u<Ze.length;u+=2)Ze[u][0](Ze[u+1]);Ze.length=0}}}function o(a){i(a(e))}function l(a,c=ye){const u=[a,c];return r.add(u),r.size===1&&(n=t(i,o)||ye),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function ot(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Io(n,(l,a)=>{let c=!1;const u=[];let f=0,m=ye;const y=()=>{if(f)return;m();const x=t(r?u[0]:u,l,a);o?l(x):m=Jt(x)?x:ye},A=i.map((x,g)=>Kr(x,N=>{u[g]=N,f&=~(1<<g),c&&y()},()=>{f|=1<<g}));return c=!0,y(),function(){$e(A),m(),c=!1}})}var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Po=function(t){return Ro(t)&&!Do(t)};function Ro(e){return!!e&&typeof e=="object"}function Do(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Uo(e)}var Bo=typeof Symbol=="function"&&Symbol.for,$o=Bo?Symbol.for("react.element"):60103;function Uo(e){return e.$$typeof===$o}function ko(e){return Array.isArray(e)?[]:{}}function xt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tt(ko(e),e,t):e}function Fo(e,t,n){return e.concat(t).map(function(r){return xt(r,n)})}function Go(e,t){if(!t.customMerge)return tt;var n=t.customMerge(e);return typeof n=="function"?n:tt}function jo(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function _r(e){return Object.keys(e).concat(jo(e))}function ui(e,t){try{return t in e}catch(n){return!1}}function zo(e,t){return ui(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wo(e,t,n){var r={};return n.isMergeableObject(e)&&_r(e).forEach(function(i){r[i]=xt(e[i],n)}),_r(t).forEach(function(i){zo(e,i)||(ui(e,i)&&n.isMergeableObject(t[i])?r[i]=Go(i,n)(e[i],t[i],n):r[i]=xt(t[i],n))}),r}function tt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Fo,n.isMergeableObject=n.isMergeableObject||Po,n.cloneUnlessOtherwiseSpecified=xt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Wo(e,t,n):xt(t,n)}tt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return tt(r,i,n)},{})};var Vo=tt,Xo=Vo;const Yo=Pn(Xo);/*! *****************************************************************************
|
|
5
|
-
Copyright (c) Microsoft Corporation.
|
|
6
|
-
|
|
7
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
-
purpose with or without fee is hereby granted.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
-
***************************************************************************** */var vn=function(e,t){return vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},vn(e,t)};function Qt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},j.apply(this,arguments)};function Zo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function cn(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function fn(e,t){var n=t&&t.cache?t.cache:ts,r=t&&t.serializer?t.serializer:es,i=t&&t.strategy?t.strategy:Jo;return i(e,{cache:n,serializer:r})}function qo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ci(e,t,n,r){var i=qo(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function fi(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Rn(e,t,n,r,i){return n.bind(t,e,r,i)}function Jo(e,t){var n=e.length===1?ci:fi;return Rn(e,this,n,t.cache.create(),t.serializer)}function Qo(e,t){return Rn(e,this,fi,t.cache.create(),t.serializer)}function Ko(e,t){return Rn(e,this,ci,t.cache.create(),t.serializer)}var es=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]};Dn.prototype.set=function(e,t){this.cache[e]=t};var ts={create:function(){return new Dn}},hn={variadic:Qo,monadic:Ko},F;(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"})(F||(F={}));var K;(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"})(K||(K={}));var nt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(nt||(nt={}));function br(e){return e.type===K.literal}function ns(e){return e.type===K.argument}function hi(e){return e.type===K.number}function mi(e){return e.type===K.date}function di(e){return e.type===K.time}function pi(e){return e.type===K.select}function gi(e){return e.type===K.plural}function rs(e){return e.type===K.pound}function _i(e){return e.type===K.tag}function bi(e){return!!(e&&typeof e=="object"&&e.type===nt.number)}function Tn(e){return!!(e&&typeof e=="object"&&e.type===nt.dateTime)}var Ei=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,is=/(?:[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 os(e){var t={};return e.replace(is,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 ss=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function as(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ss).filter(function(y){return y.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],l=o.split("/");if(l.length===0)throw new Error("Invalid number skeleton");for(var a=l[0],c=l.slice(1),u=0,f=c;u<f.length;u++){var m=f[u];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function ls(e){return e.replace(/^(.*?)-/,"")}var Er=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yi=/^(@+)?(\+|#+)?[rs]?$/g,us=/(\*)(0+)|(#+)(0+)|(0+)/g,xi=/^(0+)$/;function yr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(yi,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function vi(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 cs(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 n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!xi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xr(e){var t={},n=vi(e);return n||t}function fs(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=ls(i.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=j(j(j({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return j(j({},c),xr(u))},{}));continue;case"engineering":t=j(j(j({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return j(j({},c),xr(u))},{}));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(i.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(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(us,function(c,u,f,m,y,A){if(u)t.minimumIntegerDigits=f.length;else{if(m&&y)throw new Error("We currently do not support maximum integer digits");if(A)throw new Error("We currently do not support exact integer digits")}return""});continue}if(xi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Er.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Er,function(c,u,f,m,y,A){return f==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:y&&A?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+A.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=j(j({},t),yr(o)));continue}if(yi.test(i.stem)){t=j(j({},t),yr(i.stem));continue}var l=vi(i.stem);l&&(t=j(j({},t),l));var a=cs(i.stem);a&&(t=j(j({},t),a))}return t}var It={"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 hs(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var l=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=ms(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;l-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function ms(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=It[r||""]||It[n||""]||It["".concat(n,"-001")]||It["001"];return i[0]}var mn,ds=new RegExp("^".concat(Ei.source,"*")),ps=new RegExp("".concat(Ei.source,"*$"));function G(e,t){return{start:e,end:t}}var gs=!!String.prototype.startsWith&&"_a".startsWith("a",1),_s=!!String.fromCodePoint,bs=!!Object.fromEntries,Es=!!String.prototype.codePointAt,ys=!!String.prototype.trimStart,xs=!!String.prototype.trimEnd,vs=!!Number.isSafeInteger,Ts=vs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Sn=!0;try{var Ss=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Sn=((mn=Ss.exec("a"))===null||mn===void 0?void 0:mn[0])==="a"}catch(e){Sn=!1}var vr=gs?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},wn=_s?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,l;i>o;){if(l=t[o++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Tr=bs?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],l=o[0],a=o[1];n[l]=a}return n},Ti=Es?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},ws=ys?function(t){return t.trimStart()}:function(t){return t.replace(ds,"")},As=xs?function(t){return t.trimEnd()}:function(t){return t.replace(ps,"")};function Si(e,t){return new RegExp(e,t)}var An;if(Sn){var Sr=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");An=function(t,n){var r;Sr.lastIndex=n;var i=Sr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else An=function(t,n){for(var r=[];;){var i=Ti(t,n);if(i===void 0||wi(i)||Ls(i))break;r.push(i),n+=i>=65536?2:1}return wn.apply(void 0,r)};var Ms=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var l=this.parseArgument(t,r);if(l.err)return l;i.push(l.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:K.pound,location:G(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(F.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Mn(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;i.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;i.push(l.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:K.literal,value:"<".concat(i,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var l=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Mn(this.char()))return this.error(F.INVALID_TAG,G(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(F.UNMATCHED_CLOSING_TAG,G(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:K.tag,value:i,children:l,location:G(r,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,G(a,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(F.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Cs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var l=this.tryParseUnquoted(t,n);if(l){i+=l;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=G(r,this.clonePosition());return{val:{type:K.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Os(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return wn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),wn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,G(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:K.argument,value:i,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(F.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=An(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),l=G(t,o);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,l=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,G(l,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var y=As(m.val);if(y.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var A=G(f,this.clonePosition());u={style:y,styleLocation:A}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var g=G(i,this.clonePosition());if(u&&vr(u==null?void 0:u.style,"::",0)){var N=ws(u.style.slice(2));if(a==="number"){var m=this.parseNumberSkeletonFromString(N,u.styleLocation);return m.err?m:{val:{type:K.number,value:r,location:g,style:m.val},err:null}}else{if(N.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,g);var U=N;this.locale&&(U=hs(N,this.locale));var y={type:nt.dateTime,pattern:U,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?os(U):{}},X=a==="date"?K.date:K.time;return{val:{type:X,value:r,location:g,style:y},err:null}}}return{val:{type:a==="number"?K.number:a==="date"?K.date:K.time,value:r,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,G(R,j({},R)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),H=this.parseIdentifierIfPossible(),I=m.val}var V=this.tryParsePluralOrSelectOptions(t,a,n,H);if(V.err)return V;var x=this.tryParseArgumentClose(i);if(x.err)return x;var oe=G(i,this.clonePosition());return a==="select"?{val:{type:K.select,value:r,options:Tr(V.val),location:oe},err:null}:{val:{type:K.plural,value:r,options:Tr(V.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:oe},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,G(l,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(i,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(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=as(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,n)}return{val:{type:nt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?fs(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,l=!1,a=[],c=new Set,u=i.value,f=i.location;;){if(u.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=G(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(l=!0),this.bumpSpace();var A=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,n,r);if(x.err)return x;var g=this.tryParseArgumentClose(A);if(g.err)return g;a.push([u,{value:x.val,location:G(A,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,f=o.location}return a.length===0?this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(F.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,l=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,l=l*10+(a-48),this.bump();else break}var c=G(i,this.clonePosition());return o?(l*=r,Ts(l)?{val:l,err:null}:this.error(n,c)):this.error(t,c)},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 n=Ti(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(vr(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&wi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Mn(e){return e>=97&&e<=122||e>=65&&e<=90}function Os(e){return Mn(e)||e===47}function Cs(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 wi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ls(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 On(e){e.forEach(function(t){if(delete t.location,pi(t)||gi(t))for(var n in t.options)delete t.options[n].location,On(t.options[n].value);else hi(t)&&bi(t.style)||(mi(t)||di(t))&&Tn(t.style)?delete t.style.location:_i(t)&&On(t.children)})}function Hs(e,t){t===void 0&&(t={}),t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ms(e,t).parse();if(n.err){var r=SyntaxError(F[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||On(n.val),n.val}var rt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(rt||(rt={}));var Kt=function(e){Qt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wr=function(e){Qt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),rt.INVALID_VALUE,o)||this}return t}(Kt),Ns=function(e){Qt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),rt.INVALID_VALUE,i)||this}return t}(Kt),Is=function(e){Qt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),rt.MISSING_VALUE,r)||this}return t}(Kt),ge;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ge||(ge={}));function Ps(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ge.literal||n.type!==ge.literal?t.push(n):r.value+=n.value,t},[])}function Rs(e){return typeof e=="function"}function Gt(e,t,n,r,i,o,l){if(e.length===1&&br(e[0]))return[{type:ge.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var f=u[c];if(br(f)){a.push({type:ge.literal,value:f.value});continue}if(rs(f)){typeof o=="number"&&a.push({type:ge.literal,value:n.getNumberFormat(t).format(o)});continue}var m=f.value;if(!(i&&m in i))throw new Is(m,l);var y=i[m];if(ns(f)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),a.push({type:typeof y=="string"?ge.literal:ge.object,value:y});continue}if(mi(f)){var A=typeof f.style=="string"?r.date[f.style]:Tn(f.style)?f.style.parsedOptions:void 0;a.push({type:ge.literal,value:n.getDateTimeFormat(t,A).format(y)});continue}if(di(f)){var A=typeof f.style=="string"?r.time[f.style]:Tn(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:ge.literal,value:n.getDateTimeFormat(t,A).format(y)});continue}if(hi(f)){var A=typeof f.style=="string"?r.number[f.style]:bi(f.style)?f.style.parsedOptions:void 0;A&&A.scale&&(y=y*(A.scale||1)),a.push({type:ge.literal,value:n.getNumberFormat(t,A).format(y)});continue}if(_i(f)){var x=f.children,g=f.value,N=i[g];if(!Rs(N))throw new Ns(g,"function",l);var U=Gt(x,t,n,r,i,o),X=N(U.map(function(I){return I.value}));Array.isArray(X)||(X=[X]),a.push.apply(a,X.map(function(I){return{type:typeof I=="string"?ge.literal:ge.object,value:I}}))}if(pi(f)){var R=f.options[y]||f.options.other;if(!R)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,Gt(R.value,t,n,r,i));continue}if(gi(f)){var R=f.options["=".concat(y)];if(!R){if(!Intl.PluralRules)throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
18
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
19
|
-
`,rt.MISSING_INTL_API,l);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));R=f.options[H]||f.options.other}if(!R)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,Gt(R.value,t,n,r,i,y-(f.offset||0)));continue}}return Ps(a)}function Ds(e,t){return t?j(j(j({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=j(j({},e[r]),t[r]||{}),n},{})):e}function Bs(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ds(e[r],t[r]),n},j({},e)):e}function dn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function $s(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,cn([void 0],n,!1)))},{cache:dn(e.number),strategy:hn.variadic}),getDateTimeFormat:fn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,cn([void 0],n,!1)))},{cache:dn(e.dateTime),strategy:hn.variadic}),getPluralRules:fn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,cn([void 0],n,!1)))},{cache:dn(e.pluralRules),strategy:hn.variadic})}}var Ai=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var f=u.reduce(function(m,y){return!m.length||y.type!==ge.literal||typeof m[m.length-1]!="string"?m.push(y.value):m[m.length-1]+=y.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return Gt(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=i||{};l.formatters;var a=Zo(l,["formatters"]);this.ast=e.__parse(t,j(j({},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=Bs(e.formats,r),this.formatters=i&&i.formatters||$s(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Hs,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 Us(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Be={},ks=(e,t,n)=>n&&(t in Be||(Be[t]={}),e in Be[t]||(Be[t][e]=n),n),Mi=(e,t)=>{if(t==null)return;if(t in Be&&e in Be[t])return Be[t][e];const n=wt(t);for(let r=0;r<n.length;r++){const i=n[r],o=Gs(i,e);if(o)return ks(e,t,o)}};let Bn;const St=Tt({});function Fs(e){return Bn[e]||null}function Oi(e){return e in Bn}function Gs(e,t){if(!Oi(e))return null;const n=Fs(e);return Us(n,t)}function js(e){if(e==null)return;const t=wt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Oi(r))return r}}function Ci(e,...t){delete Be[e],St.update(n=>(n[e]=Yo.all([n[e]||{},...t]),n))}ot([St],([e])=>Object.keys(e));St.subscribe(e=>Bn=e);const jt={};function zs(e,t){jt[e].delete(t),jt[e].size===0&&delete jt[e]}function Li(e){return jt[e]}function Ws(e){return wt(e).map(t=>{const n=Li(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Yt(e){return e==null?!1:wt(e).some(t=>{var n;return(n=Li(t))==null?void 0:n.size})}function Vs(e,t){return Promise.all(t.map(r=>(zs(e,r),r().then(i=>i.default||i)))).then(r=>Ci(e,...r))}const ft={};function Hi(e){if(!Yt(e))return e in ft?ft[e]:Promise.resolve();const t=Ws(e);return ft[e]=Promise.all(t.map(([n,r])=>Vs(n,r))).then(()=>{if(Yt(e))return Hi(e);delete ft[e]}),ft[e]}var Ar=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Zs=(e,t)=>{var n={};for(var r in e)Xs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ar)for(var r of Ar(e))t.indexOf(r)<0&&Ys.call(e,r)&&(n[r]=e[r]);return n};const qs={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 Js({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${wt(e).join('", "')}".${Yt(ke())?`
|
|
20
|
-
|
|
21
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Qs={fallbackLocale:null,loadingDelay:200,formats:qs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},_t=Qs;function it(){return _t}function Ks(e){const t=e,{formats:n}=t,r=Zs(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Ai.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=Js:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(_t,r,{initialLocale:i}),n&&("number"in n&&Object.assign(_t.formats.number,n.number),"date"in n&&Object.assign(_t.formats.date,n.date),"time"in n&&Object.assign(_t.formats.time,n.time)),je.set(i)}const pn=Tt(!1);var ea=Object.defineProperty,ta=Object.defineProperties,na=Object.getOwnPropertyDescriptors,Mr=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Or=(e,t,n)=>t in e?ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oa=(e,t)=>{for(var n in t||(t={}))ra.call(t,n)&&Or(e,n,t[n]);if(Mr)for(var n of Mr(t))ia.call(t,n)&&Or(e,n,t[n]);return e},sa=(e,t)=>ta(e,na(t));let Cn;const Zt=Tt(null);function Cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function wt(e,t=it().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function ke(){return Cn!=null?Cn:void 0}Zt.subscribe(e=>{Cn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const aa=e=>{if(e&&js(e)&&Yt(e)){const{loadingDelay:t}=it();let n;return typeof window!="undefined"&&ke()!=null&&t?n=window.setTimeout(()=>pn.set(!0),t):pn.set(!0),Hi(e).then(()=>{Zt.set(e)}).finally(()=>{clearTimeout(n),pn.set(!1)})}return Zt.set(e)},je=sa(oa({},Zt),{set:aa}),en=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var la=Object.defineProperty,qt=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Lr=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$n=(e,t)=>{for(var n in t||(t={}))Ni.call(t,n)&&Lr(e,n,t[n]);if(qt)for(var n of qt(t))Ii.call(t,n)&&Lr(e,n,t[n]);return e},st=(e,t)=>{var n={};for(var r in e)Ni.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qt)for(var r of qt(e))t.indexOf(r)<0&&Ii.call(e,r)&&(n[r]=e[r]);return n};const vt=(e,t)=>{const{formats:n}=it();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ua=en(e=>{var t=e,{locale:n,format:r}=t,i=st(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=vt("number",r)),new Intl.NumberFormat(n,i)}),ca=en(e=>{var t=e,{locale:n,format:r}=t,i=st(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=vt("date",r):Object.keys(i).length===0&&(i=vt("date","short")),new Intl.DateTimeFormat(n,i)}),fa=en(e=>{var t=e,{locale:n,format:r}=t,i=st(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=vt("time",r):Object.keys(i).length===0&&(i=vt("time","short")),new Intl.DateTimeFormat(n,i)}),ha=(e={})=>{var t=e,{locale:n=ke()}=t,r=st(t,["locale"]);return ua($n({locale:n},r))},ma=(e={})=>{var t=e,{locale:n=ke()}=t,r=st(t,["locale"]);return ca($n({locale:n},r))},da=(e={})=>{var t=e,{locale:n=ke()}=t,r=st(t,["locale"]);return fa($n({locale:n},r))},pa=en((e,t=ke())=>new Ai(e,t,it().formats,{ignoreTag:it().ignoreTag})),ga=(e,t={})=>{var n,r,i,o;let l=t;typeof e=="object"&&(l=e,e=l.id);const{values:a,locale:c=ke(),default:u}=l;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Mi(e,c);if(!f)f=(o=(i=(r=(n=it()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:u}))!=null?i:u)!=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 m=f;try{m=pa(f,c).format(a)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return m},_a=(e,t)=>da(t).format(e),ba=(e,t)=>ma(t).format(e),Ea=(e,t)=>ha(t).format(e),ya=(e,t=ke())=>Mi(e,t),xa=ot([je,St],()=>ga);ot([je],()=>_a);ot([je],()=>ba);ot([je],()=>Ea);ot([je,St],()=>ya);function Hr(e,t){Ci(e,t)}function va(e){Ks({fallbackLocale:"en"}),je.set(e)}const Nr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Pi,setPrototypeOf:Ir,isFrozen:Ta,getPrototypeOf:Sa,getOwnPropertyDescriptor:wa}=Object;let{freeze:_e,seal:Te,create:Ri}=Object,{apply:Ln,construct:Hn}=typeof Reflect!="undefined"&&Reflect;_e||(_e=function(t){return t});Te||(Te=function(t){return t});Ln||(Ln=function(t,n,r){return t.apply(n,r)});Hn||(Hn=function(t,n){return new t(...n)});const Pt=xe(Array.prototype.forEach),Pr=xe(Array.prototype.pop),ht=xe(Array.prototype.push),zt=xe(String.prototype.toLowerCase),gn=xe(String.prototype.toString),Rr=xe(String.prototype.match),mt=xe(String.prototype.replace),Aa=xe(String.prototype.indexOf),Ma=xe(String.prototype.trim),we=xe(Object.prototype.hasOwnProperty),de=xe(RegExp.prototype.test),dt=Oa(TypeError);function xe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ln(e,t,r)}}function Oa(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hn(e,n)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zt;Ir&&Ir(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Ta(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Ca(e){for(let t=0;t<e.length;t++)we(e,t)||(e[t]=null);return e}function Fe(e){const t=Ri(null);for(const[n,r]of Pi(e))we(e,n)&&(Array.isArray(r)?t[n]=Ca(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Fe(r):t[n]=r);return t}function pt(e,t){for(;e!==null;){const r=wa(e,t);if(r){if(r.get)return xe(r.get);if(typeof r.value=="function")return xe(r.value)}e=Sa(e)}function n(){return null}return n}const Dr=_e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_n=_e(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bn=_e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),La=_e(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),En=_e(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ha=_e(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Br=_e(["#text"]),$r=_e(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yn=_e(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ur=_e(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Rt=_e(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Na=Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ia=Te(/<%[\w\W]*|[\w\W]*%>/gm),Pa=Te(/\${[\w\W]*}/gm),Ra=Te(/^data-[\-\w.\u00B7-\uFFFF]/),Da=Te(/^aria-[\-\w]+$/),Di=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ba=Te(/^(?:\w+script|data):/i),$a=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Te(/^html$/i),Ua=Te(/^[a-z][.\w]*(-[.\w]+)+$/i);var kr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Na,ERB_EXPR:Ia,TMPLIT_EXPR:Pa,DATA_ATTR:Ra,ARIA_ATTR:Da,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:Ba,ATTR_WHITESPACE:$a,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:Ua});const gt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ka=function(){return typeof window=="undefined"?null:window},Fa=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch(l){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function $i(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ka();const t=S=>$i(S);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==gt.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:y,trustedTypes:A}=e,x=c.prototype,g=pt(x,"cloneNode"),N=pt(x,"remove"),U=pt(x,"nextSibling"),X=pt(x,"childNodes"),R=pt(x,"parentNode");if(typeof l=="function"){const S=n.createElement("template");S.content&&S.content.ownerDocument&&(n=S.content.ownerDocument)}let H,I="";const{implementation:V,createNodeIterator:oe,createDocumentFragment:fe,getElementsByTagName:ee}=n,{importNode:z}=r;let C={};t.isSupported=typeof Pi=="function"&&typeof R=="function"&&V&&V.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:Ee,TMPLIT_EXPR:O,DATA_ATTR:_,ARIA_ATTR:h,IS_SCRIPT_OR_DATA:E,ATTR_WHITESPACE:b,CUSTOM_ELEMENT:L}=kr;let{IS_ALLOWED_URI:M}=kr,v=null;const W=$({},[...Dr,..._n,...bn,...En,...Br]);let P=null;const J=$({},[...$r,...yn,...Ur,...Rt]);let D=Object.seal(Ri(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),p=null,k=null,Y=!0,Z=!0,re=!1,te=!0,he=!1,le=!0,Me=!1,Q=!1,ie=!1,Oe=!1,At=!1,Mt=!1,Un=!0,kn=!1;const Gi="user-content-";let tn=!0,at=!1,ze={},We=null;const Fn=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gn=null;const jn=$({},["audio","video","img","source","image","track"]);let nn=null;const zn=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ot="http://www.w3.org/1998/Math/MathML",Ct="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml";let Ve=Ne,rn=!1,on=null;const ji=$({},[Ot,Ct,Ne],gn);let lt=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let ae=null,Xe=null;const Vi=n.createElement("form"),Wn=function(s){return s instanceof RegExp||s instanceof Function},sn=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===s)){if((!s||typeof s!="object")&&(s={}),s=Fe(s),lt=zi.indexOf(s.PARSER_MEDIA_TYPE)===-1?Wi:s.PARSER_MEDIA_TYPE,ae=lt==="application/xhtml+xml"?gn:zt,v=we(s,"ALLOWED_TAGS")?$({},s.ALLOWED_TAGS,ae):W,P=we(s,"ALLOWED_ATTR")?$({},s.ALLOWED_ATTR,ae):J,on=we(s,"ALLOWED_NAMESPACES")?$({},s.ALLOWED_NAMESPACES,gn):ji,nn=we(s,"ADD_URI_SAFE_ATTR")?$(Fe(zn),s.ADD_URI_SAFE_ATTR,ae):zn,Gn=we(s,"ADD_DATA_URI_TAGS")?$(Fe(jn),s.ADD_DATA_URI_TAGS,ae):jn,We=we(s,"FORBID_CONTENTS")?$({},s.FORBID_CONTENTS,ae):Fn,p=we(s,"FORBID_TAGS")?$({},s.FORBID_TAGS,ae):{},k=we(s,"FORBID_ATTR")?$({},s.FORBID_ATTR,ae):{},ze=we(s,"USE_PROFILES")?s.USE_PROFILES:!1,Y=s.ALLOW_ARIA_ATTR!==!1,Z=s.ALLOW_DATA_ATTR!==!1,re=s.ALLOW_UNKNOWN_PROTOCOLS||!1,te=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=s.SAFE_FOR_TEMPLATES||!1,le=s.SAFE_FOR_XML!==!1,Me=s.WHOLE_DOCUMENT||!1,Oe=s.RETURN_DOM||!1,At=s.RETURN_DOM_FRAGMENT||!1,Mt=s.RETURN_TRUSTED_TYPE||!1,ie=s.FORCE_BODY||!1,Un=s.SANITIZE_DOM!==!1,kn=s.SANITIZE_NAMED_PROPS||!1,tn=s.KEEP_CONTENT!==!1,at=s.IN_PLACE||!1,M=s.ALLOWED_URI_REGEXP||Di,Ve=s.NAMESPACE||Ne,D=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Z=!1),At&&(Oe=!0),ze&&(v=$({},Br),P=[],ze.html===!0&&($(v,Dr),$(P,$r)),ze.svg===!0&&($(v,_n),$(P,yn),$(P,Rt)),ze.svgFilters===!0&&($(v,bn),$(P,yn),$(P,Rt)),ze.mathMl===!0&&($(v,En),$(P,Ur),$(P,Rt))),s.ADD_TAGS&&(v===W&&(v=Fe(v)),$(v,s.ADD_TAGS,ae)),s.ADD_ATTR&&(P===J&&(P=Fe(P)),$(P,s.ADD_ATTR,ae)),s.ADD_URI_SAFE_ATTR&&$(nn,s.ADD_URI_SAFE_ATTR,ae),s.FORBID_CONTENTS&&(We===Fn&&(We=Fe(We)),$(We,s.FORBID_CONTENTS,ae)),tn&&(v["#text"]=!0),Me&&$(v,["html","head","body"]),v.table&&($(v,["tbody"]),delete p.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=s.TRUSTED_TYPES_POLICY,I=H.createHTML("")}else H===void 0&&(H=Fa(A,i)),H!==null&&typeof I=="string"&&(I=H.createHTML(""));_e&&_e(s),Xe=s}},Vn=$({},["mi","mo","mn","ms","mtext"]),Xn=$({},["foreignobject","annotation-xml"]),Xi=$({},["title","style","font","a","script"]),Yn=$({},[..._n,...bn,...La]),Zn=$({},[...En,...Ha]),Yi=function(s){let d=R(s);(!d||!d.tagName)&&(d={namespaceURI:Ve,tagName:"template"});const T=zt(s.tagName),q=zt(d.tagName);return on[s.namespaceURI]?s.namespaceURI===Ct?d.namespaceURI===Ne?T==="svg":d.namespaceURI===Ot?T==="svg"&&(q==="annotation-xml"||Vn[q]):!!Yn[T]:s.namespaceURI===Ot?d.namespaceURI===Ne?T==="math":d.namespaceURI===Ct?T==="math"&&Xn[q]:!!Zn[T]:s.namespaceURI===Ne?d.namespaceURI===Ct&&!Xn[q]||d.namespaceURI===Ot&&!Vn[q]?!1:!Zn[T]&&(Xi[T]||!Yn[T]):!!(lt==="application/xhtml+xml"&&on[s.namespaceURI]):!1},Ce=function(s){ht(t.removed,{element:s});try{R(s).removeChild(s)}catch(d){N(s)}},Lt=function(s,d){try{ht(t.removed,{attribute:d.getAttributeNode(s),from:d})}catch(T){ht(t.removed,{attribute:null,from:d})}if(d.removeAttribute(s),s==="is"&&!P[s])if(Oe||At)try{Ce(d)}catch(T){}else try{d.setAttribute(s,"")}catch(T){}},qn=function(s){let d=null,T=null;if(ie)s="<remove></remove>"+s;else{const ue=Rr(s,/^[\r\n\t ]+/);T=ue&&ue[0]}lt==="application/xhtml+xml"&&Ve===Ne&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const q=H?H.createHTML(s):s;if(Ve===Ne)try{d=new y().parseFromString(q,lt)}catch(ue){}if(!d||!d.documentElement){d=V.createDocument(Ve,"template",null);try{d.documentElement.innerHTML=rn?I:q}catch(ue){}}const ce=d.body||d.documentElement;return s&&T&&ce.insertBefore(n.createTextNode(T),ce.childNodes[0]||null),Ve===Ne?ee.call(d,Me?"html":"body")[0]:Me?d.documentElement:ce},Jn=function(s){return oe.call(s.ownerDocument||s,s,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qn=function(s){return s instanceof m&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof f)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},Kn=function(s){return typeof a=="function"&&s instanceof a},Ie=function(s,d,T){C[s]&&Pt(C[s],q=>{q.call(t,d,T,Xe)})},er=function(s){let d=null;if(Ie("beforeSanitizeElements",s,null),Qn(s))return Ce(s),!0;const T=ae(s.nodeName);if(Ie("uponSanitizeElement",s,{tagName:T,allowedTags:v}),s.hasChildNodes()&&!Kn(s.firstElementChild)&&de(/<[/\w]/g,s.innerHTML)&&de(/<[/\w]/g,s.textContent)||s.nodeType===gt.progressingInstruction||le&&s.nodeType===gt.comment&&de(/<[/\w]/g,s.data))return Ce(s),!0;if(!v[T]||p[T]){if(!p[T]&&nr(T)&&(D.tagNameCheck instanceof RegExp&&de(D.tagNameCheck,T)||D.tagNameCheck instanceof Function&&D.tagNameCheck(T)))return!1;if(tn&&!We[T]){const q=R(s)||s.parentNode,ce=X(s)||s.childNodes;if(ce&&q){const ue=ce.length;for(let be=ue-1;be>=0;--be){const Le=g(ce[be],!0);Le.__removalCount=(s.__removalCount||0)+1,q.insertBefore(Le,U(s))}}}return Ce(s),!0}return s instanceof c&&!Yi(s)||(T==="noscript"||T==="noembed"||T==="noframes")&&de(/<\/no(script|embed|frames)/i,s.innerHTML)?(Ce(s),!0):(he&&s.nodeType===gt.text&&(d=s.textContent,Pt([se,Ee,O],q=>{d=mt(d,q," ")}),s.textContent!==d&&(ht(t.removed,{element:s.cloneNode()}),s.textContent=d)),Ie("afterSanitizeElements",s,null),!1)},tr=function(s,d,T){if(Un&&(d==="id"||d==="name")&&(T in n||T in Vi))return!1;if(!(Z&&!k[d]&&de(_,d))){if(!(Y&&de(h,d))){if(!P[d]||k[d]){if(!(nr(s)&&(D.tagNameCheck instanceof RegExp&&de(D.tagNameCheck,s)||D.tagNameCheck instanceof Function&&D.tagNameCheck(s))&&(D.attributeNameCheck instanceof RegExp&&de(D.attributeNameCheck,d)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(d))||d==="is"&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&de(D.tagNameCheck,T)||D.tagNameCheck instanceof Function&&D.tagNameCheck(T))))return!1}else if(!nn[d]){if(!de(M,mt(T,b,""))){if(!((d==="src"||d==="xlink:href"||d==="href")&&s!=="script"&&Aa(T,"data:")===0&&Gn[s])){if(!(re&&!de(E,mt(T,b,"")))){if(T)return!1}}}}}}return!0},nr=function(s){return s!=="annotation-xml"&&Rr(s,L)},rr=function(s){Ie("beforeSanitizeAttributes",s,null);const{attributes:d}=s;if(!d)return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P};let q=d.length;for(;q--;){const ce=d[q],{name:ue,namespaceURI:be,value:Le}=ce,ut=ae(ue);let me=ue==="value"?Le:Ma(Le);if(T.attrName=ut,T.attrValue=me,T.keepAttr=!0,T.forceKeepAttr=void 0,Ie("uponSanitizeAttribute",s,T),me=T.attrValue,le&&de(/((--!?|])>)|<\/(style|title)/i,me)){Lt(ue,s);continue}if(T.forceKeepAttr||(Lt(ue,s),!T.keepAttr))continue;if(!te&&de(/\/>/i,me)){Lt(ue,s);continue}he&&Pt([se,Ee,O],or=>{me=mt(me,or," ")});const ir=ae(s.nodeName);if(tr(ir,ut,me)){if(kn&&(ut==="id"||ut==="name")&&(Lt(ue,s),me=Gi+me),H&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!be)switch(A.getAttributeType(ir,ut)){case"TrustedHTML":{me=H.createHTML(me);break}case"TrustedScriptURL":{me=H.createScriptURL(me);break}}try{be?s.setAttributeNS(be,ue,me):s.setAttribute(ue,me),Qn(s)?Ce(s):Pr(t.removed)}catch(or){}}}Ie("afterSanitizeAttributes",s,null)},Zi=function S(s){let d=null;const T=Jn(s);for(Ie("beforeSanitizeShadowDOM",s,null);d=T.nextNode();)Ie("uponSanitizeShadowNode",d,null),!er(d)&&(d.content instanceof o&&S(d.content),rr(d));Ie("afterSanitizeShadowDOM",s,null)};return t.sanitize=function(S){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=null,T=null,q=null,ce=null;if(rn=!S,rn&&(S="<!-->"),typeof S!="string"&&!Kn(S))if(typeof S.toString=="function"){if(S=S.toString(),typeof S!="string")throw dt("dirty is not a string, aborting")}else throw dt("toString is not a function");if(!t.isSupported)return S;if(Q||sn(s),t.removed=[],typeof S=="string"&&(at=!1),at){if(S.nodeName){const Le=ae(S.nodeName);if(!v[Le]||p[Le])throw dt("root node is forbidden and cannot be sanitized in-place")}}else if(S instanceof a)d=qn("<!---->"),T=d.ownerDocument.importNode(S,!0),T.nodeType===gt.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?d=T:d.appendChild(T);else{if(!Oe&&!he&&!Me&&S.indexOf("<")===-1)return H&&Mt?H.createHTML(S):S;if(d=qn(S),!d)return Oe?null:Mt?I:""}d&&ie&&Ce(d.firstChild);const ue=Jn(at?S:d);for(;q=ue.nextNode();)er(q)||(q.content instanceof o&&Zi(q.content),rr(q));if(at)return S;if(Oe){if(At)for(ce=fe.call(d.ownerDocument);d.firstChild;)ce.appendChild(d.firstChild);else ce=d;return(P.shadowroot||P.shadowrootmode)&&(ce=z.call(r,ce,!0)),ce}let be=Me?d.outerHTML:d.innerHTML;return Me&&v["!doctype"]&&d.ownerDocument&&d.ownerDocument.doctype&&d.ownerDocument.doctype.name&&de(Bi,d.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+d.ownerDocument.doctype.name+`>
|
|
22
|
-
`+be),he&&Pt([se,Ee,O],Le=>{be=mt(be,Le," ")}),H&&Mt?H.createHTML(be):be},t.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(S),Q=!0},t.clearConfig=function(){Xe=null,Q=!1},t.isValidAttribute=function(S,s,d){Xe||sn({});const T=ae(S),q=ae(s);return tr(T,q,d)},t.addHook=function(S,s){typeof s=="function"&&(C[S]=C[S]||[],ht(C[S],s))},t.removeHook=function(S){if(C[S])return Pr(C[S])},t.removeHooks=function(S){C[S]&&(C[S]=[])},t.removeAllHooks=function(){C={}},t}var Fr=$i(),Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(li,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",l="second",a="minute",c="hour",u="day",f="week",m="month",y="quarter",A="year",x="date",g="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,X={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(O){var _=["th","st","nd","rd"],h=O%100;return"["+O+(_[(h-20)%10]||_[h]||_[0])+"]"}},R=function(O,_,h){var E=String(O);return!E||E.length>=_?O:""+Array(_+1-E.length).join(h)+O},H={s:R,z:function(O){var _=-O.utcOffset(),h=Math.abs(_),E=Math.floor(h/60),b=h%60;return(_<=0?"+":"-")+R(E,2,"0")+":"+R(b,2,"0")},m:function O(_,h){if(_.date()<h.date())return-O(h,_);var E=12*(h.year()-_.year())+(h.month()-_.month()),b=_.clone().add(E,m),L=h-b<0,M=_.clone().add(E+(L?-1:1),m);return+(-(E+(h-b)/(L?b-M:M-b))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:A,w:f,d:u,D:x,h:c,m:a,s:l,ms:o,Q:y}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},I="en",V={};V[I]=X;var oe="$isDayjsObject",fe=function(O){return O instanceof se||!(!O||!O[oe])},ee=function O(_,h,E){var b;if(!_)return I;if(typeof _=="string"){var L=_.toLowerCase();V[L]&&(b=L),h&&(V[L]=h,b=L);var M=_.split("-");if(!b&&M.length>1)return O(M[0])}else{var v=_.name;V[v]=_,b=v}return!E&&b&&(I=b),b||!E&&I},z=function(O,_){if(fe(O))return O.clone();var h=typeof _=="object"?_:{};return h.date=O,h.args=arguments,new se(h)},C=H;C.l=ee,C.i=fe,C.w=function(O,_){return z(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var se=function(){function O(h){this.$L=ee(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[oe]=!0}var _=O.prototype;return _.parse=function(h){this.$d=function(E){var b=E.date,L=E.utc;if(b===null)return new Date(NaN);if(C.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var M=b.match(N);if(M){var v=M[2]-1||0,W=(M[7]||"0").substring(0,3);return L?new Date(Date.UTC(M[1],v,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)):new Date(M[1],v,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)}}return new Date(b)}(h),this.init()},_.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},_.$utils=function(){return C},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(h,E){var b=z(h);return this.startOf(E)<=b&&b<=this.endOf(E)},_.isAfter=function(h,E){return z(h)<this.startOf(E)},_.isBefore=function(h,E){return this.endOf(E)<z(h)},_.$g=function(h,E,b){return C.u(h)?this[E]:this.set(b,h)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(h,E){var b=this,L=!!C.u(E)||E,M=C.p(h),v=function(Z,re){var te=C.w(b.$u?Date.UTC(b.$y,re,Z):new Date(b.$y,re,Z),b);return L?te:te.endOf(u)},W=function(Z,re){return C.w(b.toDate()[Z].apply(b.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(re)),b)},P=this.$W,J=this.$M,D=this.$D,p="set"+(this.$u?"UTC":"");switch(M){case A:return L?v(1,0):v(31,11);case m:return L?v(1,J):v(0,J+1);case f:var k=this.$locale().weekStart||0,Y=(P<k?P+7:P)-k;return v(L?D-Y:D+(6-Y),J);case u:case x:return W(p+"Hours",0);case c:return W(p+"Minutes",1);case a:return W(p+"Seconds",2);case l:return W(p+"Milliseconds",3);default:return this.clone()}},_.endOf=function(h){return this.startOf(h,!1)},_.$set=function(h,E){var b,L=C.p(h),M="set"+(this.$u?"UTC":""),v=(b={},b[u]=M+"Date",b[x]=M+"Date",b[m]=M+"Month",b[A]=M+"FullYear",b[c]=M+"Hours",b[a]=M+"Minutes",b[l]=M+"Seconds",b[o]=M+"Milliseconds",b)[L],W=L===u?this.$D+(E-this.$W):E;if(L===m||L===A){var P=this.clone().set(x,1);P.$d[v](W),P.init(),this.$d=P.set(x,Math.min(this.$D,P.daysInMonth())).$d}else v&&this.$d[v](W);return this.init(),this},_.set=function(h,E){return this.clone().$set(h,E)},_.get=function(h){return this[C.p(h)]()},_.add=function(h,E){var b,L=this;h=Number(h);var M=C.p(E),v=function(J){var D=z(L);return C.w(D.date(D.date()+Math.round(J*h)),L)};if(M===m)return this.set(m,this.$M+h);if(M===A)return this.set(A,this.$y+h);if(M===u)return v(1);if(M===f)return v(7);var W=(b={},b[a]=r,b[c]=i,b[l]=n,b)[M]||1,P=this.$d.getTime()+h*W;return C.w(P,this)},_.subtract=function(h,E){return this.add(-1*h,E)},_.format=function(h){var E=this,b=this.$locale();if(!this.isValid())return b.invalidDate||g;var L=h||"YYYY-MM-DDTHH:mm:ssZ",M=C.z(this),v=this.$H,W=this.$m,P=this.$M,J=b.weekdays,D=b.months,p=b.meridiem,k=function(re,te,he,le){return re&&(re[te]||re(E,L))||he[te].slice(0,le)},Y=function(re){return C.s(v%12||12,re,"0")},Z=p||function(re,te,he){var le=re<12?"AM":"PM";return he?le.toLowerCase():le};return L.replace(U,function(re,te){return te||function(he){switch(he){case"YY":return String(E.$y).slice(-2);case"YYYY":return C.s(E.$y,4,"0");case"M":return P+1;case"MM":return C.s(P+1,2,"0");case"MMM":return k(b.monthsShort,P,D,3);case"MMMM":return k(D,P);case"D":return E.$D;case"DD":return C.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return k(b.weekdaysMin,E.$W,J,2);case"ddd":return k(b.weekdaysShort,E.$W,J,3);case"dddd":return J[E.$W];case"H":return String(v);case"HH":return C.s(v,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return Z(v,W,!0);case"A":return Z(v,W,!1);case"m":return String(W);case"mm":return C.s(W,2,"0");case"s":return String(E.$s);case"ss":return C.s(E.$s,2,"0");case"SSS":return C.s(E.$ms,3,"0");case"Z":return M}return null}(re)||M.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(h,E,b){var L,M=this,v=C.p(E),W=z(h),P=(W.utcOffset()-this.utcOffset())*r,J=this-W,D=function(){return C.m(M,W)};switch(v){case A:L=D()/12;break;case m:L=D();break;case y:L=D()/3;break;case f:L=(J-P)/6048e5;break;case u:L=(J-P)/864e5;break;case c:L=J/i;break;case a:L=J/r;break;case l:L=J/n;break;default:L=J}return b?L:C.a(L)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return V[this.$L]},_.locale=function(h,E){if(!h)return this.$L;var b=this.clone(),L=ee(h,E,!0);return L&&(b.$L=L),b},_.clone=function(){return C.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},O}(),Ee=se.prototype;return z.prototype=Ee,[["$ms",o],["$s",l],["$m",a],["$H",c],["$W",u],["$M",m],["$y",A],["$D",x]].forEach(function(O){Ee[O[1]]=function(_){return this.$g(_,O[0],O[1])}}),z.extend=function(O,_){return O.$i||(O(_,se,z),O.$i=!0),z},z.locale=ee,z.isDayjs=fe,z.unix=function(O){return z(1e3*O)},z.en=V[I],z.Ls=V,z.p={},z})})(Ui);var Ga=Ui.exports;const Gr=Pn(Ga);var ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(li,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,l,a){var c=l.prototype;a.utc=function(g){var N={date:g,utc:!0,args:arguments};return new l(N)},c.utc=function(g){var N=a(this.toDate(),{locale:this.$L,utc:!0});return g?N.add(this.utcOffset(),n):N},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var f=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else f.call(this)};var m=c.utcOffset;c.utcOffset=function(g,N){var U=this.$utils().u;if(U(g))return this.$u?0:U(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(I){I===void 0&&(I="");var V=I.match(r);if(!V)return null;var oe=(""+V[0]).match(i)||["-",0,0],fe=oe[0],ee=60*+oe[1]+ +oe[2];return ee===0?0:fe==="+"?ee:-ee}(g),g===null))return this;var X=Math.abs(g)<=16?60*g:g,R=this;if(N)return R.$offset=X,R.$u=g===0,R;if(g!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(R=this.local().add(X+H,n)).$offset=X,R.$x.$localOffset=H}else R=this.utc();return R};var y=c.format;c.format=function(g){var N=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,N)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var A=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var x=c.diff;c.diff=function(g,N,U){if(g&&this.$u===g.$u)return x.call(this,g,N,U);var X=this.local(),R=a(g).local();return x.call(X,R,N,U)}}})})(ki);var ja=ki.exports;const za=Pn(ja);let jr=Tt(null);function Wa(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Va(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Xa(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function Ya(e){oo(e,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const Za=e=>({}),zr=e=>({}),qa=e=>({}),Wr=e=>({}),Ja=e=>({}),Vr=e=>({}),Qa=e=>({}),Xr=e=>({class:"CashierSessionExpirationIcon"});function Yr(e){let t,n,r,i,o,l,a,c,u,f,m,y,A=e[8]("sessionExpirationHeader")+"",x,g,N,U,X,R,H,I,V,oe,fe,ee,z,C,se=e[8]("sessionExpirationEnd")+"",Ee,O,_,h,E,b,L,M,v,W,P;const J=e[23].icon,D=Dt(J,e,e[22],Xr),p=D||Ka(e),k=e[23].title,Y=Dt(k,e,e[22],Vr),Z=e[23].text,re=Dt(Z,e,e[22],Wr),te=re||el(e),he=[nl,tl],le=[];function Me(Q,ie){return Q[6]?0:1}return h=Me(e),E=le[h]=he[h](e),{c(){t=ne("div"),n=ne("div"),r=ne("div"),i=ne("div"),o=Se("svg"),l=Se("defs"),a=Se("mask"),c=Se("circle"),u=Se("rect"),f=Se("circle"),m=Se("circle"),y=Pe(),x=Ge(A),g=Pe(),N=ne("div"),U=Se("svg"),X=Se("path"),R=Pe(),H=ne("div"),I=ne("div"),p&&p.c(),V=Pe(),Y&&Y.c(),oe=Pe(),te&&te.c(),fe=Pe(),ee=ne("div"),z=ne("button"),C=ne("span"),Ee=Ge(se),O=Pe(),_=ne("button"),E.c(),w(c,"cx","100"),w(c,"cy","100"),w(c,"r","90"),w(u,"x","88"),w(u,"y","40"),w(u,"width","24"),w(u,"height","80"),w(u,"rx","12"),w(u,"fill","black"),w(f,"cx","100"),w(f,"cy","150"),w(f,"r","14"),w(f,"fill","black"),w(a,"id","exclamation-mask"),w(m,"cx","100"),w(m,"cy","100"),w(m,"r","90"),w(m,"mask","url(#exclamation-mask)"),w(o,"viewBox","0 0 200 200"),w(o,"xmlns","http://www.w3.org/2000/svg"),w(i,"class","CashierSessionExpirationModalHeaderTitle"),w(X,"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"),w(U,"xmlns","http://www.w3.org/2000/svg"),w(U,"viewBox","0 0 13 13"),w(U,"fill","none"),w(U,"class","CloseButton"),w(N,"class","ModalCloseIcon"),w(r,"class","CashierSessionExpirationModalHeader"),w(C,"class","CashierSessionExpirationButtonText"),w(z,"type","button"),w(z,"class","ModalButton Secondary"),w(_,"type","button"),w(_,"class",b="ModalButton Primary "+(e[6]?"Disabled":"")),w(ee,"class","ButtonsContainer"),w(I,"class","CashierSessionExpiration"),w(H,"class","CashierSessionExpirationModalContainer"),w(n,"class","CashierSessionExpirationModalWrapper"),w(t,"class","CashierSessionExpirationModalWindow"),w(t,"id","CashierSessionExpirationModal"),et(()=>e[25].call(t))},m(Q,ie){Ue(Q,t,ie),B(t,n),B(n,r),B(r,i),B(i,o),B(o,l),B(l,a),B(a,c),B(a,u),B(a,f),B(o,m),B(i,y),B(i,x),B(r,g),B(r,N),B(N,U),B(U,X),B(n,R),B(n,H),B(H,I),p&&p.m(I,null),B(I,V),Y&&Y.m(I,null),B(I,oe),te&&te.m(I,null),B(I,fe),B(I,ee),B(ee,z),B(z,C),B(C,Ee),B(ee,O),B(ee,_),le[h].m(_,null),e[24](I),L=co(t,e[25].bind(t)),v=!0,W||(P=[Je(U,"click",e[11]),Je(z,"click",e[11]),Je(_,"click",e[9]),Je(t,"click",e[10])],W=!0)},p(Q,ie){e=Q,(!v||ie[0]&256)&&A!==(A=e[8]("sessionExpirationHeader")+"")&&Et(x,A),D?D.p&&(!v||ie[0]&4194304)&&$t(D,J,e,e[22],v?Bt(J,e[22],ie,Qa):Ut(e[22]),Xr):p&&p.p&&(!v||ie[0]&8)&&p.p(e,v?ie:[-1,-1]),Y&&Y.p&&(!v||ie[0]&4194304)&&$t(Y,k,e,e[22],v?Bt(k,e[22],ie,Ja):Ut(e[22]),Vr),re?re.p&&(!v||ie[0]&4194304)&&$t(re,Z,e,e[22],v?Bt(Z,e[22],ie,qa):Ut(e[22]),Wr):te&&te.p&&(!v||ie[0]&384)&&te.p(e,v?ie:[-1,-1]),(!v||ie[0]&256)&&se!==(se=e[8]("sessionExpirationEnd")+"")&&Et(Ee,se);let Oe=h;h=Me(e),h===Oe?le[h].p(e,ie):(oi(),De(le[Oe],1,1,()=>{le[Oe]=null}),si(),E=le[h],E?E.p(e,ie):(E=le[h]=he[h](e),E.c()),He(E,1),E.m(_,null)),(!v||ie[0]&64&&b!==(b="ModalButton Primary "+(e[6]?"Disabled":"")))&&w(_,"class",b)},i(Q){v||(He(p,Q),He(Y,Q),He(te,Q),He(E),Q&&et(()=>{v&&(M||(M=pr(t,gr,{duration:e[2]},!0)),M.run(1))}),v=!0)},o(Q){De(p,Q),De(Y,Q),De(te,Q),De(E),Q&&(M||(M=pr(t,gr,{duration:e[2]},!1)),M.run(0)),v=!1},d(Q){Q&&Ae(t),p&&p.d(Q),Y&&Y.d(Q),te&&te.d(Q),le[h].d(),e[24](null),L(),Q&&M&&M.end(),W=!1,$e(P)}}}function Zr(e){let t,n;return{c(){t=ne("img"),fr(t.src,n=`${e[3]}/set-timeout-icon.png`)||w(t,"src",n),w(t,"width","300px"),w(t,"alt","error")},m(r,i){Ue(r,t,i)},p(r,i){i[0]&8&&!fr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&w(t,"src",n)},d(r){r&&Ae(t)}}}function Ka(e){let t,n=e[3]&&Zr(e);return{c(){n&&n.c(),t=ao()},m(r,i){n&&n.m(r,i),Ue(r,t,i)},p(r,i){r[3]?n?n.p(r,i):(n=Zr(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&Ae(t),n&&n.d(r)}}}function el(e){let t,n,r=e[8]("sessionExpirationTitle")+"",i,o,l,a=Fr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=ne("span"),n=ne("p"),i=Ge(r),o=Pe(),l=ne("p"),w(t,"class","CashierSessionExpirationText")},m(c,u){Ue(c,t,u),B(t,n),B(n,i),B(t,o),B(t,l),l.innerHTML=a},p(c,u){u[0]&256&&r!==(r=c[8]("sessionExpirationTitle")+"")&&Et(i,r),u[0]&384&&a!==(a=Fr.sanitize(c[8]("sessionExpirationGeneralText",{values:{second:c[7]}}))+"")&&(l.innerHTML=a)},d(c){c&&Ae(t)}}}function tl(e){let t;const n=e[23].button,r=Dt(n,e,e[22],zr),i=r||rl(e);return{c(){i&&i.c()},m(o,l){i&&i.m(o,l),t=!0},p(o,l){r?r.p&&(!t||l[0]&4194304)&&$t(r,n,o,o[22],t?Bt(n,o[22],l,Za):Ut(o[22]),zr):i&&i.p&&(!t||l[0]&256)&&i.p(o,t?l:[-1,-1])},i(o){t||(He(i,o),t=!0)},o(o){De(i,o),t=!1},d(o){i&&i.d(o)}}}function nl(e){let t,n,r,i,o,l=e[8]("sessionExpirationLoadingButton")+"",a;return{c(){t=ne("div"),n=Se("svg"),r=Se("path"),i=Pe(),o=ne("span"),a=Ge(l),w(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),w(r,"fill","white"),w(n,"class","CashierSessionExpirationButtonSpinner"),w(n,"xmlns","http://www.w3.org/2000/svg"),w(n,"width","15"),w(n,"height","14"),w(n,"viewBox","0 0 15 14"),w(n,"fill","none"),w(o,"class","CashierSessionExpirationButtonText")},m(c,u){Ue(c,t,u),B(t,n),B(n,r),B(t,i),B(t,o),B(o,a)},p(c,u){u[0]&256&&l!==(l=c[8]("sessionExpirationLoadingButton")+"")&&Et(a,l)},i:ye,o:ye,d(c){c&&Ae(t)}}}function rl(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=ne("span"),r=Ge(n),w(t,"class","CashierSessionExpirationButtonText")},m(i,o){Ue(i,t,o),B(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&Et(r,n)},d(i){i&&Ae(t)}}}function il(e){let t,n,r=e[5]&&Yr(e);return{c(){t=ne("div"),r&&r.c()},m(i,o){Ue(i,t,o),r&&r.m(t,null),e[26](t),n=!0},p(i,o){i[5]?r?(r.p(i,o),o[0]&32&&He(r,1)):(r=Yr(i),r.c(),He(r,1),r.m(t,null)):r&&(oi(),De(r,1,1,()=>{r=null}),si())},i(i){n||(He(r),n=!0)},o(i){De(r),n=!1},d(i){i&&Ae(t),r&&r.d(),e[26](null)}}}const ol=90;function sl(e,t,n){let r,i;hr(e,jr,p=>n(21,r=p)),hr(e,xa,p=>n(8,i=p));let{$$slots:o={},$$scope:l}=t;Gr.extend(za);let{clientstyling:a=""}=t,{clientstylingurl:c=""}=t,{width:u}=t,{height:f}=t,{duration:m=200}=t,{assetsurl:y=""}=t,{lang:A="en"}=t,{translationurl:x=""}=t,{endpoint:g}=t,{currency:N}=t,{customerid:U}=t,{selectedpaymentmethodname:X}=t,{mbsource:R=""}=t,H,I=!1,V=!1,oe,fe,ee,z,C;var se;(function(p){p.PlayerSessionIsNotValid="PlayerSessionIsNotValid",p.Success="Success",p.JwtTokenError="JwtTokenError"})(se||(se={}));const Ee=p=>{p.data.type==="StartSessionCountdown"&&(z=p.data.paymentMethodName)},O=p=>{try{return JSON.parse(atob(p.split(".")[1]))}catch(k){return null}},_=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:C},window.location.href)},h=p=>{n(5,I=!1);const k=O(p);k&&(fe=k==null?void 0:k.exp,n(7,oe=fe),ee&&clearInterval(ee),ee=setInterval(()=>{const Y=Math.floor(new Date().getTime()/1e3);n(7,oe=fe-Y),oe<=ol&&n(5,I=!0),Y>=fe&&(E(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},E=()=>{n(7,oe=0),n(5,I=!1),clearInterval(ee)},b=()=>{if(V)return;const p=new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`),k=new Headers;n(6,V=!0),k.append("accept","application/json"),k.append("Content-Type","application/json"),k.append("X-Client-Request-Timestamp",Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const Y={method:"POST",mode:"cors",headers:k,body:JSON.stringify({PaymentMethodName:z||X,Currency:N,XPaymentSessionToken:r})};fetch(p,Y).then(Z=>Z.json()).then(Z=>{if(Z.error){window.postMessage({type:"ShowSessionError",error:Z.error},window.location.href),E();return}if(Z.ResponseCode===se.PlayerSessionIsNotValid||Z.ResponseCode===se.JwtTokenError){C=Z.ResponseCode,E(),_();return}if(Z.ResponseCode!==se.Success){C=Z.ResponseCode,E();return}Z.XPaymentSessionToken&&jr.set(Z.XPaymentSessionToken)}).finally(()=>n(6,V=!1))},L=p=>{const k=p.currentTarget;p.target===k&&b()},M=()=>{fetch(x).then(k=>k.json()).then(k=>{Object.keys(k).forEach(Y=>{Hr(Y,k[Y])})}).catch(k=>{console.log(k)})},v=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),n(5,I=!1)};Object.keys(Nr).forEach(p=>{Hr(p,Nr[p])});const W=()=>{va(A)};bo(()=>(window.addEventListener("message",Ee,!1),()=>{window.removeEventListener("message",Ee)})),Eo(()=>{clearInterval(ee)});function P(p){Xt[p?"unshift":"push"](()=>{H=p,n(4,H)})}function J(){u=this.clientWidth,f=this.clientHeight,n(0,u),n(1,f)}function D(p){Xt[p?"unshift":"push"](()=>{H=p,n(4,H)})}return e.$$set=p=>{"clientstyling"in p&&n(12,a=p.clientstyling),"clientstylingurl"in p&&n(13,c=p.clientstylingurl),"width"in p&&n(0,u=p.width),"height"in p&&n(1,f=p.height),"duration"in p&&n(2,m=p.duration),"assetsurl"in p&&n(3,y=p.assetsurl),"lang"in p&&n(14,A=p.lang),"translationurl"in p&&n(15,x=p.translationurl),"endpoint"in p&&n(16,g=p.endpoint),"currency"in p&&n(17,N=p.currency),"customerid"in p&&n(18,U=p.customerid),"selectedpaymentmethodname"in p&&n(19,X=p.selectedpaymentmethodname),"mbsource"in p&&n(20,R=p.mbsource),"$$scope"in p&&n(22,l=p.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&2097152&&h(r),e.$$.dirty[0]&16384&&A&&W(),e.$$.dirty[0]&4112&&a&&H&&Wa(H,a),e.$$.dirty[0]&8208&&c&&H&&Va(H,c),e.$$.dirty[0]&1048592&&R&&H&&Xa(H,`${R}.Style`),e.$$.dirty[0]&32768&&x&&M()},[u,f,m,y,H,I,V,oe,i,b,L,v,a,c,A,x,g,N,U,X,R,r,l,o,P,J,D]}class Fi extends Ho{constructor(t){super(),Co(this,t,sl,il,Qr,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},Ya,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),pe()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),pe()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),pe()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),pe()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),pe()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),pe()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),pe()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),pe()}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),pe()}get currency(){return this.$$.ctx[17]}set currency(t){this.$$set({currency:t}),pe()}get customerid(){return this.$$.ctx[18]}set customerid(t){this.$$set({customerid:t}),pe()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),pe()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),pe()}}Lo(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
|