@everymatrix/cashier-session-expiration-modal 1.74.7 → 1.74.10
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-BOSjOfU2.js → CashierSessionExpirationModal-0NoY0y90.js} +843 -841
- package/components/{CashierSessionExpirationModal-C86Sxd4B.js → CashierSessionExpirationModal-DfvSYdpz.js} +819 -817
- package/components/CashierSessionExpirationModal-uM4jfPMr.cjs +22 -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-5NHcewhZ.cjs +0 -22
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";var Zi=Object.defineProperty,qi=Object.defineProperties;var Ji=Object.getOwnPropertyDescriptors;var sr=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable;var on=(e,t,n)=>t in e?Zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,or=(e,t)=>{for(var n in t||(t={}))Qi.call(t,n)&&on(e,n,t[n]);if(sr)for(var n of sr(t))Ki.call(t,n)&&on(e,n,t[n]);return e},ar=(e,t)=>qi(e,Ji(t));var Ee=(e,t,n)=>(on(e,typeof t!="symbol"?t+"":t,n),n);var ur=(e,t,n)=>new Promise((r,i)=>{var s=c=>{try{u(n.next(c))}catch(l){i(l)}},a=c=>{try{u(n.throw(c))}catch(l){i(l)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function de(){}const Yr=e=>e;function es(e,t){for(const n in t)e[n]=t[n];return e}function Zr(e){return e()}function lr(){return Object.create(null)}function Re(e){e.forEach(Zr)}function Xt(e){return typeof e=="function"}function qr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let wt;function yn(e,t){return e===t?!0:(wt||(wt=document.createElement("a")),wt.href=t,e===wt.href)}function ts(e){return Object.keys(e).length===0}function Jr(e,...t){if(e==null){for(const r of t)r(void 0);return de}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function cr(e,t,n){e.$$.on_destroy.push(Jr(t,n))}function Lt(e,t,n,r){if(e){const i=Qr(e,t,n,r);return e[0](i)}}function Qr(e,t,n,r){return e[1]&&r?es(n.ctx.slice(),e[1](r(t))):n.ctx}function Ht(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 s=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)s[u]=t.dirty[u]|i[u];return s}return t.dirty|i}return t.dirty}function Rt(e,t,n,r,i,s){if(i){const a=Qr(t,n,r,s);e.p(a,i)}}function Pt(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 Kr=typeof window!="undefined";let ns=Kr?()=>window.performance.now():()=>Date.now(),Hn=Kr?e=>requestAnimationFrame(e):de;const Ve=new Set;function ei(e){Ve.forEach(t=>{t.c(e)||(Ve.delete(t),t.f())}),Ve.size!==0&&Hn(ei)}function rs(e){let t;return Ve.size===0&&Hn(ei),{promise:new Promise(n=>{Ve.add(t={c:e,f:n})}),abort(){Ve.delete(t)}}}function q(e,t){e.appendChild(t)}function is(e,t,n){const r=Rn(e);if(!r.getElementById(t)){const i=te("style");i.id=t,i.textContent=n,ti(r,i)}}function Rn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ss(e){const t=te("style");return t.textContent="/* empty */",ti(Rn(e),t),t.sheet}function ti(e,t){return q(e.head||e,t),t.sheet}function we(e,t,n){e.insertBefore(t,n||null)}function ge(e){e.parentNode&&e.parentNode.removeChild(e)}function te(e){return document.createElement(e)}function fr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ke(e){return document.createTextNode(e)}function ht(){return Ke(" ")}function ni(){return Ke("")}function Ft(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function j(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function os(e){return Array.from(e.childNodes)}function Yt(e,t){t=""+t,e.data!==t&&(e.data=t)}let Ot;function as(){if(Ot===void 0){Ot=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ot=!0}}return Ot}function us(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const r=te("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=as();let s;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Ft(window,"message",a=>{a.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{s=Ft(r.contentWindow,"resize",t),t()}),q(e,r),()=>{(i||s&&r.contentWindow)&&s(),ge(r)}}function ls(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function cs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Gt=new Map;let $t=0;function fs(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function hs(e,t){const n={stylesheet:ss(t),rules:{}};return Gt.set(e,n),n}function hr(e,t,n,r,i,s,a,u=0){const c=16.666/r;let l=`{
|
|
2
|
+
`;for(let M=0;M<=1;M+=c){const $=t+(n-t)*s(M);l+=M*100+`%{${a($,1-$)}}
|
|
3
|
+
`}const f=l+`100% {${a(n,1-n)}}
|
|
4
|
+
}`,b=`__svelte_${fs(f)}_${u}`,y=Rn(e),{stylesheet:O,rules:E}=Gt.get(y)||hs(y,e);E[b]||(E[b]=!0,O.insertRule(`@keyframes ${b} ${f}`,O.cssRules.length));const d=e.style.animation||"";return e.style.animation=`${d?`${d}, `:""}${b} ${r}ms linear ${i}ms 1 both`,$t+=1,b}function ms(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),$t-=i,$t||ds())}function ds(){Hn(()=>{$t||(Gt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&ge(t)}),Gt.clear())})}let pt;function dt(e){pt=e}function ri(){if(!pt)throw new Error("Function called outside component initialization");return pt}function ps(e){ri().$$.on_mount.push(e)}function gs(e){ri().$$.on_destroy.push(e)}const We=[],jt=[];let Xe=[];const mr=[],bs=Promise.resolve();let Tn=!1;function Es(){Tn||(Tn=!0,bs.then(le))}function Ye(e){Xe.push(e)}const an=new Set;let je=0;function le(){if(je!==0)return;const e=pt;do{try{for(;je<We.length;){const t=We[je];je++,dt(t),_s(t.$$)}}catch(t){throw We.length=0,je=0,t}for(dt(null),We.length=0,je=0;jt.length;)jt.pop()();for(let t=0;t<Xe.length;t+=1){const n=Xe[t];an.has(n)||(an.add(n),n())}Xe.length=0}while(We.length);for(;mr.length;)mr.pop()();Tn=!1,an.clear(),dt(e)}function _s(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ye)}}function ys(e){const t=[],n=[];Xe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Xe=t}let st;function Ts(){return st||(st=Promise.resolve(),st.then(()=>{st=null})),st}function un(e,t,n){e.dispatchEvent(ls(`${t?"intro":"outro"}${n}`))}const It=new Set;let Ce;function ii(){Ce={r:0,c:[],p:Ce}}function si(){Ce.r||Re(Ce.c),Ce=Ce.p}function Ae(e,t){e&&e.i&&(It.delete(e),e.i(t))}function Le(e,t,n,r){if(e&&e.o){if(It.has(e))return;It.add(e),Ce.c.push(()=>{It.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const xs={duration:0};function dr(e,t,n,r){let s=t(e,n,{direction:"both"}),a=r?0:1,u=null,c=null,l=null,f;function b(){l&&ms(e,l)}function y(E,d){const M=E.b-a;return d*=Math.abs(M),{a,b:E.b,d:M,duration:d,start:E.start,end:E.start+d,group:E.group}}function O(E){const{delay:d=0,duration:M=300,easing:$=Yr,tick:U=de,css:S}=s||xs,H={start:ns()+d,b:E};E||(H.group=Ce,Ce.r+=1),"inert"in e&&(E?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),u||c?c=H:(S&&(b(),l=hr(e,a,E,M,d,$,S)),E&&U(0,1),u=y(H,M),Ye(()=>un(e,E,"start")),rs(I=>{if(c&&I>c.start&&(u=y(c,M),c=null,un(e,u.b,"start"),S&&(b(),l=hr(e,a,u.b,u.duration,0,$,s.css))),u){if(I>=u.end)U(a=u.b,1-a),un(e,u.b,"end"),c||(u.b?b():--u.group.r||Re(u.group.c)),u=null;else if(I>=u.start){const G=I-u.start;a=u.a+u.d*$(G/u.duration),U(a,1-a)}}return!!(u||c)}))}return{run(E){Xt(s)?Ts().then(()=>{s=s({direction:E?"in":"out"}),O(E)}):O(E)},end(){b(),u=c=null}}}function vs(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Ye(()=>{const s=e.$$.on_mount.map(Zr).filter(Xt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Re(s),e.$$.on_mount=[]}),i.forEach(Ye)}function Ss(e,t){const n=e.$$;n.fragment!==null&&(ys(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function As(e,t){e.$$.dirty[0]===-1&&(We.push(e),Es(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ws(e,t,n,r,i,s,a=null,u=[-1]){const c=pt;dt(e);const l=e.$$={fragment:null,ctx:[],props:s,update:de,not_equal:i,bound:lr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:lr(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let f=!1;if(l.ctx=n(e,t.props||{},(b,y,...O)=>{const E=O.length?O[0]:y;return l.ctx&&i(l.ctx[b],l.ctx[b]=E)&&(!l.skip_bound&&l.bound[b]&&l.bound[b](E),f&&As(e,b)),y}),l.update(),f=!0,Re(l.before_update),l.fragment=r(l.ctx),t.target){if(t.hydrate){const b=os(t.target);l.fragment&&l.fragment.l(b),b.forEach(ge)}else l.fragment&&l.fragment.c();t.intro&&Ae(e.$$.fragment),vs(e,t.target,t.anchor),le()}dt(c)}let oi;typeof HTMLElement=="function"&&(oi=class extends HTMLElement{constructor(t,n,r){super();Ee(this,"$$ctor");Ee(this,"$$s");Ee(this,"$$c");Ee(this,"$$cn",!1);Ee(this,"$$d",{});Ee(this,"$$r",!1);Ee(this,"$$p_d",{});Ee(this,"$$l",{});Ee(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(s){return()=>{let a;return{c:function(){a=te("slot"),s!=="default"&&j(a,"name",s)},m:function(l,f){we(l,a,f)},d:function(l){l&&ge(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=cs(this);for(const s of this.$$s)s in r&&(n[s]=[t(s)]);for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Dt(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ar(or({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const a=Dt(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const a of this.$$l[s]){const u=this.$$c.$on(s,a);this.$$l_u.set(a,u)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Dt(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 Dt(e,t,n,r){var s;const i=(s=n[e])==null?void 0:s.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 Os(e,t,n,r,i,s){let a=class extends oi{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=Dt(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(a.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=a,a}class Ms{constructor(){Ee(this,"$$");Ee(this,"$$set")}$destroy(){Ss(this,1),this.$destroy=de}$on(t,n){if(!Xt(n))return de;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&&!ts(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Cs="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cs);function pr(e,{delay:t=0,duration:n=400,easing:r=Yr}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:s=>`opacity: ${s*i}`}}const ze=[];function Ns(e,t){return{subscribe:Et(e,t).subscribe}}function Et(e,t=de){let n;const r=new Set;function i(u){if(qr(e,u)&&(e=u,n)){const c=!ze.length;for(const l of r)l[1](),ze.push(l,e);if(c){for(let l=0;l<ze.length;l+=2)ze[l][0](ze[l+1]);ze.length=0}}}function s(u){i(u(e))}function a(u,c=de){const l=[u,c];return r.add(l),r.size===1&&(n=t(i,s)||de),u(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:a}}function et(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 s=t.length<2;return Ns(n,(a,u)=>{let c=!1;const l=[];let f=0,b=de;const y=()=>{if(f)return;b();const E=t(r?l[0]:l,a,u);s?a(E):b=Xt(E)?E:de},O=i.map((E,d)=>Jr(E,M=>{l[d]=M,f&=~(1<<d),c&&y()},()=>{f|=1<<d}));return c=!0,y(),function(){Re(O),b(),c=!1}})}var ai=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 Ls=function(t){return Hs(t)&&!Rs(t)};function Hs(e){return!!e&&typeof e=="object"}function Rs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ds(e)}var Ps=typeof Symbol=="function"&&Symbol.for,Is=Ps?Symbol.for("react.element"):60103;function Ds(e){return e.$$typeof===Is}function Bs(e){return Array.isArray(e)?[]:{}}function gt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ze(Bs(e),e,t):e}function Us(e,t,n){return e.concat(t).map(function(r){return gt(r,n)})}function ks(e,t){if(!t.customMerge)return Ze;var n=t.customMerge(e);return typeof n=="function"?n:Ze}function Fs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function gr(e){return Object.keys(e).concat(Fs(e))}function ui(e,t){try{return t in e}catch(n){return!1}}function Gs(e,t){return ui(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $s(e,t,n){var r={};return n.isMergeableObject(e)&&gr(e).forEach(function(i){r[i]=gt(e[i],n)}),gr(t).forEach(function(i){Gs(e,i)||(ui(e,i)&&n.isMergeableObject(t[i])?r[i]=ks(i,n)(e[i],t[i],n):r[i]=gt(t[i],n))}),r}function Ze(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Us,n.isMergeableObject=n.isMergeableObject||Ls,n.cloneUnlessOtherwiseSpecified=gt;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):$s(e,t,n):gt(t,n)}Ze.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ze(r,i,n)},{})};var js=Ze,zs=js;const Ws=Pn(zs);/*! *****************************************************************************
|
|
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 xn=function(e,t){return xn=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])},xn(e,t)};function Zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var F=function(){return F=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},F.apply(this,arguments)};function Vs(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 ln(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||t)}function cn(e,t){var n=t&&t.cache?t.cache:Ks,r=t&&t.serializer?t.serializer:Js,i=t&&t.strategy?t.strategy:Ys;return i(e,{cache:n,serializer:r})}function Xs(e){return e==null||typeof e=="number"||typeof e=="boolean"}function li(e,t,n,r){var i=Xs(r)?r:n(r),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,r),t.set(i,s)),s}function ci(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,r),t.set(i,s)),s}function In(e,t,n,r,i){return n.bind(t,e,r,i)}function Ys(e,t){var n=e.length===1?li:ci;return In(e,this,n,t.cache.create(),t.serializer)}function Zs(e,t){return In(e,this,ci,t.cache.create(),t.serializer)}function qs(e,t){return In(e,this,li,t.cache.create(),t.serializer)}var Js=function(){return JSON.stringify(arguments)},Qs=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ks={create:function(){return new Qs}},fn={variadic:Zs,monadic:qs},D;(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"})(D||(D={}));var X;(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"})(X||(X={}));var qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(qe||(qe={}));function br(e){return e.type===X.literal}function eo(e){return e.type===X.argument}function fi(e){return e.type===X.number}function hi(e){return e.type===X.date}function mi(e){return e.type===X.time}function di(e){return e.type===X.select}function pi(e){return e.type===X.plural}function to(e){return e.type===X.pound}function gi(e){return e.type===X.tag}function bi(e){return!!(e&&typeof e=="object"&&e.type===qe.number)}function vn(e){return!!(e&&typeof e=="object"&&e.type===qe.dateTime)}var Ei=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,no=/(?:[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 ro(e){var t={};return e.replace(no,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 io=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function so(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(io).filter(function(y){return y.length>0}),n=[],r=0,i=t;r<i.length;r++){var s=i[r],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var u=a[0],c=a.slice(1),l=0,f=c;l<f.length;l++){var b=f[l];if(b.length===0)throw new Error("Invalid number skeleton")}n.push({stem:u,options:c})}return n}function oo(e){return e.replace(/^(.*?)-/,"")}var Er=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_i=/^(@+)?(\+|#+)?[rs]?$/g,ao=/(\*)(0+)|(#+)(0+)|(0+)/g,yi=/^(0+)$/;function _r(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(_i,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 Ti(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 uo(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)),!yi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function yr(e){var t={},n=Ti(e);return n||t}function lo(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=oo(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=F(F(F({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return F(F({},c),yr(l))},{}));continue;case"engineering":t=F(F(F({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return F(F({},c),yr(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(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(ao,function(c,l,f,b,y,O){if(l)t.minimumIntegerDigits=f.length;else{if(b&&y)throw new Error("We currently do not support maximum integer digits");if(O)throw new Error("We currently do not support exact integer digits")}return""});continue}if(yi.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,l,f,b,y,O){return f==="*"?t.minimumFractionDigits=l.length:b&&b[0]==="#"?t.maximumFractionDigits=b.length:y&&O?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+O.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=F(F({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=F(F({},t),_r(s)));continue}if(_i.test(i.stem)){t=F(F({},t),_r(i.stem));continue}var a=Ti(i.stem);a&&(t=F(F({},t),a));var u=uo(i.stem);u&&(t=F(F({},t),u))}return t}var Mt={"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 co(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var a=1+(s&1),u=s<2?1:3+(s>>1),c="a",l=fo(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)n+=c;for(;a-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function fo(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=Mt[r||""]||Mt[n||""]||Mt["".concat(n,"-001")]||Mt["001"];return i[0]}var hn,ho=new RegExp("^".concat(Ei.source,"*")),mo=new RegExp("".concat(Ei.source,"*$"));function B(e,t){return{start:e,end:t}}var po=!!String.prototype.startsWith&&"_a".startsWith("a",1),go=!!String.fromCodePoint,bo=!!Object.fromEntries,Eo=!!String.prototype.codePointAt,_o=!!String.prototype.trimStart,yo=!!String.prototype.trimEnd,To=!!Number.isSafeInteger,xo=To?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Sn=!0;try{var vo=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Sn=((hn=vo.exec("a"))===null||hn===void 0?void 0:hn[0])==="a"}catch(e){Sn=!1}var Tr=po?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},An=go?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},xr=bo?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r],a=s[0],u=s[1];n[a]=u}return n},xi=Eo?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},So=_o?function(t){return t.trimStart()}:function(t){return t.replace(ho,"")},Ao=yo?function(t){return t.trimEnd()}:function(t){return t.replace(mo,"")};function vi(e,t){return new RegExp(e,t)}var wn;if(Sn){var vr=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,n){var r;vr.lastIndex=n;var i=vr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else wn=function(t,n){for(var r=[];;){var i=xi(t,n);if(i===void 0||Si(i)||Co(i))break;r.push(i),n+=i>=65536?2:1}return An.apply(void 0,r)};var wo=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 s=this.char();if(s===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:X.pound,location:B(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&On(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.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:X.literal,value:"<".concat(i,"/>"),location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var a=s.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!On(this.char()))return this.error(D.INVALID_TAG,B(u,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,B(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:X.tag,value:i,children:a,location:B(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,B(u,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,B(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,B(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Mo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var c=B(r,this.clonePosition());return{val:{type:X.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Oo(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 An.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(),An(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,B(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:i,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=wn(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),a=B(t,s);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,B(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var y=Ao(b.val);if(y.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var O=B(f,this.clonePosition());l={style:y,styleLocation:O}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var d=B(i,this.clonePosition());if(l&&Tr(l==null?void 0:l.style,"::",0)){var M=So(l.style.slice(2));if(u==="number"){var b=this.parseNumberSkeletonFromString(M,l.styleLocation);return b.err?b:{val:{type:X.number,value:r,location:d,style:b.val},err:null}}else{if(M.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var $=M;this.locale&&($=co(M,this.locale));var y={type:qe.dateTime,pattern:$,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ro($):{}},U=u==="date"?X.date:X.time;return{val:{type:U,value:r,location:d,style:y},err:null}}}return{val:{type:u==="number"?X.number:u==="date"?X.date:X.time,value:r,location:d,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,B(S,F({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),I=0;if(u!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),H=this.parseIdentifierIfPossible(),I=b.val}var G=this.tryParsePluralOrSelectOptions(t,u,n,H);if(G.err)return G;var E=this.tryParseArgumentClose(i);if(E.err)return E;var Y=B(i,this.clonePosition());return u==="select"?{val:{type:X.select,value:r,options:xr(G.val),location:Y},err:null}:{val:{type:X.plural,value:r,options:xr(G.val),offset:I,pluralType:u==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,B(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(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(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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=so(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:qe.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?lo(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,a=!1,u=[],c=new Set,l=i.value,f=i.location;;){if(l.length===0){var b=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=B(b,this.clonePosition()),l=this.message.slice(b.offset,this.offset())}else break}if(c.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var O=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var d=this.tryParseArgumentClose(O);if(d.err)return d;u.push([l,{value:E.val,location:B(O,this.clonePosition())}]),c.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return u.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(D.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,a=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)s=!0,a=a*10+(u-48),this.bump();else break}var c=B(i,this.clonePosition());return s?(a*=r,xo(a)?{val:a,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=xi(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(Tr(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()&&Si(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 On(e){return e>=97&&e<=122||e>=65&&e<=90}function Oo(e){return On(e)||e===47}function Mo(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 Si(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Co(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 Mn(e){e.forEach(function(t){if(delete t.location,di(t)||pi(t))for(var n in t.options)delete t.options[n].location,Mn(t.options[n].value);else fi(t)&&bi(t.style)||(hi(t)||mi(t))&&vn(t.style)?delete t.style.location:gi(t)&&Mn(t.children)})}function No(e,t){t===void 0&&(t={}),t=F({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new wo(e,t).parse();if(n.err){var r=SyntaxError(D[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Mn(n.val),n.val}var Je;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Je||(Je={}));var qt=function(e){Zt(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Sr=function(e){Zt(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Je.INVALID_VALUE,s)||this}return t}(qt),Lo=function(e){Zt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Je.INVALID_VALUE,i)||this}return t}(qt),Ho=function(e){Zt(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,'"'),Je.MISSING_VALUE,r)||this}return t}(qt),ce;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ce||(ce={}));function Ro(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ce.literal||n.type!==ce.literal?t.push(n):r.value+=n.value,t},[])}function Po(e){return typeof e=="function"}function Bt(e,t,n,r,i,s,a){if(e.length===1&&br(e[0]))return[{type:ce.literal,value:e[0].value}];for(var u=[],c=0,l=e;c<l.length;c++){var f=l[c];if(br(f)){u.push({type:ce.literal,value:f.value});continue}if(to(f)){typeof s=="number"&&u.push({type:ce.literal,value:n.getNumberFormat(t).format(s)});continue}var b=f.value;if(!(i&&b in i))throw new Ho(b,a);var y=i[b];if(eo(f)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),u.push({type:typeof y=="string"?ce.literal:ce.object,value:y});continue}if(hi(f)){var O=typeof f.style=="string"?r.date[f.style]:vn(f.style)?f.style.parsedOptions:void 0;u.push({type:ce.literal,value:n.getDateTimeFormat(t,O).format(y)});continue}if(mi(f)){var O=typeof f.style=="string"?r.time[f.style]:vn(f.style)?f.style.parsedOptions:r.time.medium;u.push({type:ce.literal,value:n.getDateTimeFormat(t,O).format(y)});continue}if(fi(f)){var O=typeof f.style=="string"?r.number[f.style]:bi(f.style)?f.style.parsedOptions:void 0;O&&O.scale&&(y=y*(O.scale||1)),u.push({type:ce.literal,value:n.getNumberFormat(t,O).format(y)});continue}if(gi(f)){var E=f.children,d=f.value,M=i[d];if(!Po(M))throw new Lo(d,"function",a);var $=Bt(E,t,n,r,i,s),U=M($.map(function(I){return I.value}));Array.isArray(U)||(U=[U]),u.push.apply(u,U.map(function(I){return{type:typeof I=="string"?ce.literal:ce.object,value:I}}))}if(di(f)){var S=f.options[y]||f.options.other;if(!S)throw new Sr(f.value,y,Object.keys(f.options),a);u.push.apply(u,Bt(S.value,t,n,r,i));continue}if(pi(f)){var S=f.options["=".concat(y)];if(!S){if(!Intl.PluralRules)throw new qt(`Intl.PluralRules is not available in this environment.
|
|
18
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
19
|
+
`,Je.MISSING_INTL_API,a);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));S=f.options[H]||f.options.other}if(!S)throw new Sr(f.value,y,Object.keys(f.options),a);u.push.apply(u,Bt(S.value,t,n,r,i,y-(f.offset||0)));continue}}return Ro(u)}function Io(e,t){return t?F(F(F({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=F(F({},e[r]),t[r]||{}),n},{})):e}function Do(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Io(e[r],t[r]),n},F({},e)):e}function mn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Bo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.number),strategy:fn.variadic}),getDateTimeFormat:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.dateTime),strategy:fn.variadic}),getPluralRules:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.pluralRules),strategy:fn.variadic})}}var Ai=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=s.formatToParts(c);if(l.length===1)return l[0].value;var f=l.reduce(function(b,y){return!b.length||y.type!==ce.literal||typeof b[b.length-1]!="string"?b.push(y.value):b[b.length-1]+=y.value,b},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return Bt(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.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 a=i||{};a.formatters;var u=Vs(a,["formatters"]);this.ast=e.__parse(t,F(F({},u),{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=Do(e.formats,r),this.formatters=i&&i.formatters||Bo(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=No,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 Uo(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 s=n.slice(i,n.length).join(".");if(s in r){r=r[s];break}}r=r[n[i]]}else r=void 0;return r}const He={},ko=(e,t,n)=>n&&(t in He||(He[t]={}),e in He[t]||(He[t][e]=n),n),wi=(e,t)=>{if(t==null)return;if(t in He&&e in He[t])return He[t][e];const n=yt(t);for(let r=0;r<n.length;r++){const i=n[r],s=Go(i,e);if(s)return ko(e,t,s)}};let Dn;const _t=Et({});function Fo(e){return Dn[e]||null}function Oi(e){return e in Dn}function Go(e,t){if(!Oi(e))return null;const n=Fo(e);return Uo(n,t)}function $o(e){if(e==null)return;const t=yt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Oi(r))return r}}function Mi(e,...t){delete He[e],_t.update(n=>(n[e]=Ws.all([n[e]||{},...t]),n))}et([_t],([e])=>Object.keys(e));_t.subscribe(e=>Dn=e);const Ut={};function jo(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Ci(e){return Ut[e]}function zo(e){return yt(e).map(t=>{const n=Ci(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function zt(e){return e==null?!1:yt(e).some(t=>{var n;return(n=Ci(t))==null?void 0:n.size})}function Wo(e,t){return Promise.all(t.map(r=>(jo(e,r),r().then(i=>i.default||i)))).then(r=>Mi(e,...r))}const ot={};function Ni(e){if(!zt(e))return e in ot?ot[e]:Promise.resolve();const t=zo(e);return ot[e]=Promise.all(t.map(([n,r])=>Wo(n,r))).then(()=>{if(zt(e))return Ni(e);delete ot[e]}),ot[e]}var Ar=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,Yo=(e,t)=>{var n={};for(var r in e)Vo.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&&Xo.call(e,r)&&(n[r]=e[r]);return n};const Zo={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 qo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${yt(e).join('", "')}".${zt(Pe())?`
|
|
20
|
+
|
|
21
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Jo={fallbackLocale:null,loadingDelay:200,formats:Zo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},mt=Jo;function Qe(){return mt}function Qo(e){const t=e,{formats:n}=t,r=Yo(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Ai.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){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=qo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(mt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(mt.formats.number,n.number),"date"in n&&Object.assign(mt.formats.date,n.date),"time"in n&&Object.assign(mt.formats.time,n.time)),Be.set(i)}const dn=Et(!1);var Ko=Object.defineProperty,ea=Object.defineProperties,ta=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable,Or=(e,t,n)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t)na.call(t,n)&&Or(e,n,t[n]);if(wr)for(var n of wr(t))ra.call(t,n)&&Or(e,n,t[n]);return e},sa=(e,t)=>ea(e,ta(t));let Cn;const Wt=Et(null);function Mr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function yt(e,t=Qe().fallbackLocale){const n=Mr(e);return t?[...new Set([...n,...Mr(t)])]:n}function Pe(){return Cn!=null?Cn:void 0}Wt.subscribe(e=>{Cn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const oa=e=>{if(e&&$o(e)&&zt(e)){const{loadingDelay:t}=Qe();let n;return typeof window!="undefined"&&Pe()!=null&&t?n=window.setTimeout(()=>dn.set(!0),t):dn.set(!0),Ni(e).then(()=>{Wt.set(e)}).finally(()=>{clearTimeout(n),dn.set(!1)})}return Wt.set(e)},Be=sa(ia({},Wt),{set:oa}),Jt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var aa=Object.defineProperty,Vt=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Cr=(e,t,n)=>t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Li.call(t,n)&&Cr(e,n,t[n]);if(Vt)for(var n of Vt(t))Hi.call(t,n)&&Cr(e,n,t[n]);return e},tt=(e,t)=>{var n={};for(var r in e)Li.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Hi.call(e,r)&&(n[r]=e[r]);return n};const bt=(e,t)=>{const{formats:n}=Qe();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ua=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=bt("number",r)),new Intl.NumberFormat(n,i)}),la=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=bt("date",r):Object.keys(i).length===0&&(i=bt("date","short")),new Intl.DateTimeFormat(n,i)}),ca=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=bt("time",r):Object.keys(i).length===0&&(i=bt("time","short")),new Intl.DateTimeFormat(n,i)}),fa=(e={})=>{var t=e,{locale:n=Pe()}=t,r=tt(t,["locale"]);return ua(Bn({locale:n},r))},ha=(e={})=>{var t=e,{locale:n=Pe()}=t,r=tt(t,["locale"]);return la(Bn({locale:n},r))},ma=(e={})=>{var t=e,{locale:n=Pe()}=t,r=tt(t,["locale"]);return ca(Bn({locale:n},r))},da=Jt((e,t=Pe())=>new Ai(e,t,Qe().formats,{ignoreTag:Qe().ignoreTag})),pa=(e,t={})=>{var n,r,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:u,locale:c=Pe(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=wi(e,c);if(!f)f=(s=(i=(r=(n=Qe()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?s: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(!u)return f;let b=f;try{b=da(f,c).format(u)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return b},ga=(e,t)=>ma(t).format(e),ba=(e,t)=>ha(t).format(e),Ea=(e,t)=>fa(t).format(e),_a=(e,t=Pe())=>wi(e,t),ya=et([Be,_t],()=>pa);et([Be],()=>ga);et([Be],()=>ba);et([Be],()=>Ea);et([Be,_t],()=>_a);function Nr(e,t){Mi(e,t)}function Ta(e){Qo({fallbackLocale:"en"}),Be.set(e)}const Lr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."},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..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @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:Ri,setPrototypeOf:Hr,isFrozen:xa,getPrototypeOf:va,getOwnPropertyDescriptor:Sa}=Object;let{freeze:fe,seal:_e,create:Pi}=Object,{apply:Nn,construct:Ln}=typeof Reflect!="undefined"&&Reflect;fe||(fe=function(t){return t});_e||(_e=function(t){return t});Nn||(Nn=function(t,n,r){return t.apply(n,r)});Ln||(Ln=function(t,n){return new t(...n)});const Ct=pe(Array.prototype.forEach),Rr=pe(Array.prototype.pop),at=pe(Array.prototype.push),kt=pe(String.prototype.toLowerCase),pn=pe(String.prototype.toString),Pr=pe(String.prototype.match),ut=pe(String.prototype.replace),Aa=pe(String.prototype.indexOf),wa=pe(String.prototype.trim),xe=pe(Object.prototype.hasOwnProperty),ue=pe(RegExp.prototype.test),lt=Oa(TypeError);function pe(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 Nn(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 Ln(e,n)}}function P(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;Hr&&Hr(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(xa(t)||(t[r]=s),i=s)}e[i]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)xe(e,t)||(e[t]=null);return e}function De(e){const t=Pi(null);for(const[n,r]of Ri(e))xe(e,n)&&(Array.isArray(r)?t[n]=Ma(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=De(r):t[n]=r);return t}function ct(e,t){for(;e!==null;){const r=Sa(e,t);if(r){if(r.get)return pe(r.get);if(typeof r.value=="function")return pe(r.value)}e=va(e)}function n(){return null}return n}const Ir=fe(["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"]),gn=fe(["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=fe(["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"]),Ca=fe(["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=fe(["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"]),Na=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dr=fe(["#text"]),Br=fe(["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"]),_n=fe(["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=fe(["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"]),Nt=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),La=_e(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ha=_e(/<%[\w\W]*|[\w\W]*%>/gm),Ra=_e(/\${[\w\W]*}/gm),Pa=_e(/^data-[\-\w.\u00B7-\uFFFF]/),Ia=_e(/^aria-[\-\w]+$/),Ii=_e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Da=_e(/^(?:\w+script|data):/i),Ba=_e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Di=_e(/^html$/i),Ua=_e(/^[a-z][.\w]*(-[.\w]+)+$/i);var kr=Object.freeze({__proto__:null,MUSTACHE_EXPR:La,ERB_EXPR:Ha,TMPLIT_EXPR:Ra,DATA_ATTR:Pa,ARIA_ATTR:Ia,IS_ALLOWED_URI:Ii,IS_SCRIPT_OR_DATA:Da,ATTR_WHITESPACE:Ba,DOCTYPE_NAME:Di,CUSTOM_ELEMENT:Ua});const ft={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 s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ka();const t=w=>Bi(w);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==ft.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:u,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:y,trustedTypes:O}=e,E=c.prototype,d=ct(E,"cloneNode"),M=ct(E,"remove"),$=ct(E,"nextSibling"),U=ct(E,"childNodes"),S=ct(E,"parentNode");if(typeof a=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let H,I="";const{implementation:G,createNodeIterator:Y,createDocumentFragment:J,getElementsByTagName:Q}=n,{importNode:z}=r;let C={};t.isSupported=typeof Ri=="function"&&typeof S=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:he,TMPLIT_EXPR:A,DATA_ATTR:_,ARIA_ATTR:g,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:h,CUSTOM_ELEMENT:T}=kr;let{IS_ALLOWED_URI:N}=kr,L=null;const W=P({},[...Ir,...gn,...bn,...En,...Dr]);let R=null;const Z=P({},[...Br,..._n,...Ur,...Nt]);let m=Object.seal(Pi(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}})),k=null,ee=null,K=!0,ye=!0,ie=!1,Te=!0,be=!1,Ne=!0,Ie=!1,Qt=!1,Kt=!1,Ue=!1,Tt=!1,xt=!1,Un=!0,kn=!1;const Gi="user-content-";let en=!0,nt=!1,ke={},Fe=null;const Fn=P({},["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 $n=P({},["audio","video","img","source","image","track"]);let tn=null;const jn=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let Ge=Oe,nn=!1,rn=null;const $i=P({},[vt,St,Oe],pn);let rt=null;const ji=["application/xhtml+xml","text/html"],zi="text/html";let re=null,$e=null;const Wi=n.createElement("form"),zn=function(o){return o instanceof RegExp||o instanceof Function},sn=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===o)){if((!o||typeof o!="object")&&(o={}),o=De(o),rt=ji.indexOf(o.PARSER_MEDIA_TYPE)===-1?zi:o.PARSER_MEDIA_TYPE,re=rt==="application/xhtml+xml"?pn:kt,L=xe(o,"ALLOWED_TAGS")?P({},o.ALLOWED_TAGS,re):W,R=xe(o,"ALLOWED_ATTR")?P({},o.ALLOWED_ATTR,re):Z,rn=xe(o,"ALLOWED_NAMESPACES")?P({},o.ALLOWED_NAMESPACES,pn):$i,tn=xe(o,"ADD_URI_SAFE_ATTR")?P(De(jn),o.ADD_URI_SAFE_ATTR,re):jn,Gn=xe(o,"ADD_DATA_URI_TAGS")?P(De($n),o.ADD_DATA_URI_TAGS,re):$n,Fe=xe(o,"FORBID_CONTENTS")?P({},o.FORBID_CONTENTS,re):Fn,k=xe(o,"FORBID_TAGS")?P({},o.FORBID_TAGS,re):{},ee=xe(o,"FORBID_ATTR")?P({},o.FORBID_ATTR,re):{},ke=xe(o,"USE_PROFILES")?o.USE_PROFILES:!1,K=o.ALLOW_ARIA_ATTR!==!1,ye=o.ALLOW_DATA_ATTR!==!1,ie=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=o.SAFE_FOR_TEMPLATES||!1,Ne=o.SAFE_FOR_XML!==!1,Ie=o.WHOLE_DOCUMENT||!1,Ue=o.RETURN_DOM||!1,Tt=o.RETURN_DOM_FRAGMENT||!1,xt=o.RETURN_TRUSTED_TYPE||!1,Kt=o.FORCE_BODY||!1,Un=o.SANITIZE_DOM!==!1,kn=o.SANITIZE_NAMED_PROPS||!1,en=o.KEEP_CONTENT!==!1,nt=o.IN_PLACE||!1,N=o.ALLOWED_URI_REGEXP||Ii,Ge=o.NAMESPACE||Oe,m=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&zn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&zn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(ye=!1),Tt&&(Ue=!0),ke&&(L=P({},Dr),R=[],ke.html===!0&&(P(L,Ir),P(R,Br)),ke.svg===!0&&(P(L,gn),P(R,_n),P(R,Nt)),ke.svgFilters===!0&&(P(L,bn),P(R,_n),P(R,Nt)),ke.mathMl===!0&&(P(L,En),P(R,Ur),P(R,Nt))),o.ADD_TAGS&&(L===W&&(L=De(L)),P(L,o.ADD_TAGS,re)),o.ADD_ATTR&&(R===Z&&(R=De(R)),P(R,o.ADD_ATTR,re)),o.ADD_URI_SAFE_ATTR&&P(tn,o.ADD_URI_SAFE_ATTR,re),o.FORBID_CONTENTS&&(Fe===Fn&&(Fe=De(Fe)),P(Fe,o.FORBID_CONTENTS,re)),en&&(L["#text"]=!0),Ie&&P(L,["html","head","body"]),L.table&&(P(L,["tbody"]),delete k.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=o.TRUSTED_TYPES_POLICY,I=H.createHTML("")}else H===void 0&&(H=Fa(O,i)),H!==null&&typeof I=="string"&&(I=H.createHTML(""));fe&&fe(o),$e=o}},Wn=P({},["mi","mo","mn","ms","mtext"]),Vn=P({},["foreignobject","annotation-xml"]),Vi=P({},["title","style","font","a","script"]),Xn=P({},[...gn,...bn,...Ca]),Yn=P({},[...En,...Na]),Xi=function(o){let p=S(o);(!p||!p.tagName)&&(p={namespaceURI:Ge,tagName:"template"});const v=kt(o.tagName),V=kt(p.tagName);return rn[o.namespaceURI]?o.namespaceURI===St?p.namespaceURI===Oe?v==="svg":p.namespaceURI===vt?v==="svg"&&(V==="annotation-xml"||Wn[V]):!!Xn[v]:o.namespaceURI===vt?p.namespaceURI===Oe?v==="math":p.namespaceURI===St?v==="math"&&Vn[V]:!!Yn[v]:o.namespaceURI===Oe?p.namespaceURI===St&&!Vn[V]||p.namespaceURI===vt&&!Wn[V]?!1:!Yn[v]&&(Vi[v]||!Xn[v]):!!(rt==="application/xhtml+xml"&&rn[o.namespaceURI]):!1},ve=function(o){at(t.removed,{element:o});try{S(o).removeChild(o)}catch(p){M(o)}},At=function(o,p){try{at(t.removed,{attribute:p.getAttributeNode(o),from:p})}catch(v){at(t.removed,{attribute:null,from:p})}if(p.removeAttribute(o),o==="is"&&!R[o])if(Ue||Tt)try{ve(p)}catch(v){}else try{p.setAttribute(o,"")}catch(v){}},Zn=function(o){let p=null,v=null;if(Kt)o="<remove></remove>"+o;else{const se=Pr(o,/^[\r\n\t ]+/);v=se&&se[0]}rt==="application/xhtml+xml"&&Ge===Oe&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const V=H?H.createHTML(o):o;if(Ge===Oe)try{p=new y().parseFromString(V,rt)}catch(se){}if(!p||!p.documentElement){p=G.createDocument(Ge,"template",null);try{p.documentElement.innerHTML=nn?I:V}catch(se){}}const oe=p.body||p.documentElement;return o&&v&&oe.insertBefore(n.createTextNode(v),oe.childNodes[0]||null),Ge===Oe?Q.call(p,Ie?"html":"body")[0]:Ie?p.documentElement:oe},qn=function(o){return Y.call(o.ownerDocument||o,o,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Jn=function(o){return o instanceof b&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof f)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Qn=function(o){return typeof u=="function"&&o instanceof u},Me=function(o,p,v){C[o]&&Ct(C[o],V=>{V.call(t,p,v,$e)})},Kn=function(o){let p=null;if(Me("beforeSanitizeElements",o,null),Jn(o))return ve(o),!0;const v=re(o.nodeName);if(Me("uponSanitizeElement",o,{tagName:v,allowedTags:L}),o.hasChildNodes()&&!Qn(o.firstElementChild)&&ue(/<[/\w]/g,o.innerHTML)&&ue(/<[/\w]/g,o.textContent)||o.nodeType===ft.progressingInstruction||Ne&&o.nodeType===ft.comment&&ue(/<[/\w]/g,o.data))return ve(o),!0;if(!L[v]||k[v]){if(!k[v]&&tr(v)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,v)||m.tagNameCheck instanceof Function&&m.tagNameCheck(v)))return!1;if(en&&!Fe[v]){const V=S(o)||o.parentNode,oe=U(o)||o.childNodes;if(oe&&V){const se=oe.length;for(let me=se-1;me>=0;--me){const Se=d(oe[me],!0);Se.__removalCount=(o.__removalCount||0)+1,V.insertBefore(Se,$(o))}}}return ve(o),!0}return o instanceof c&&!Xi(o)||(v==="noscript"||v==="noembed"||v==="noframes")&&ue(/<\/no(script|embed|frames)/i,o.innerHTML)?(ve(o),!0):(be&&o.nodeType===ft.text&&(p=o.textContent,Ct([ne,he,A],V=>{p=ut(p,V," ")}),o.textContent!==p&&(at(t.removed,{element:o.cloneNode()}),o.textContent=p)),Me("afterSanitizeElements",o,null),!1)},er=function(o,p,v){if(Un&&(p==="id"||p==="name")&&(v in n||v in Wi))return!1;if(!(ye&&!ee[p]&&ue(_,p))){if(!(K&&ue(g,p))){if(!R[p]||ee[p]){if(!(tr(o)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))&&(m.attributeNameCheck instanceof RegExp&&ue(m.attributeNameCheck,p)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(p))||p==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,v)||m.tagNameCheck instanceof Function&&m.tagNameCheck(v))))return!1}else if(!tn[p]){if(!ue(N,ut(v,h,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&o!=="script"&&Aa(v,"data:")===0&&Gn[o])){if(!(ie&&!ue(x,ut(v,h,"")))){if(v)return!1}}}}}}return!0},tr=function(o){return o!=="annotation-xml"&&Pr(o,T)},nr=function(o){Me("beforeSanitizeAttributes",o,null);const{attributes:p}=o;if(!p)return;const v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R};let V=p.length;for(;V--;){const oe=p[V],{name:se,namespaceURI:me,value:Se}=oe,it=re(se);let ae=se==="value"?Se:wa(Se);if(v.attrName=it,v.attrValue=ae,v.keepAttr=!0,v.forceKeepAttr=void 0,Me("uponSanitizeAttribute",o,v),ae=v.attrValue,Ne&&ue(/((--!?|])>)|<\/(style|title)/i,ae)){At(se,o);continue}if(v.forceKeepAttr||(At(se,o),!v.keepAttr))continue;if(!Te&&ue(/\/>/i,ae)){At(se,o);continue}be&&Ct([ne,he,A],ir=>{ae=ut(ae,ir," ")});const rr=re(o.nodeName);if(er(rr,it,ae)){if(kn&&(it==="id"||it==="name")&&(At(se,o),ae=Gi+ae),H&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!me)switch(O.getAttributeType(rr,it)){case"TrustedHTML":{ae=H.createHTML(ae);break}case"TrustedScriptURL":{ae=H.createScriptURL(ae);break}}try{me?o.setAttributeNS(me,se,ae):o.setAttribute(se,ae),Jn(o)?ve(o):Rr(t.removed)}catch(ir){}}}Me("afterSanitizeAttributes",o,null)},Yi=function w(o){let p=null;const v=qn(o);for(Me("beforeSanitizeShadowDOM",o,null);p=v.nextNode();)Me("uponSanitizeShadowNode",p,null),!Kn(p)&&(p.content instanceof s&&w(p.content),nr(p));Me("afterSanitizeShadowDOM",o,null)};return t.sanitize=function(w){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,v=null,V=null,oe=null;if(nn=!w,nn&&(w="<!-->"),typeof w!="string"&&!Qn(w))if(typeof w.toString=="function"){if(w=w.toString(),typeof w!="string")throw lt("dirty is not a string, aborting")}else throw lt("toString is not a function");if(!t.isSupported)return w;if(Qt||sn(o),t.removed=[],typeof w=="string"&&(nt=!1),nt){if(w.nodeName){const Se=re(w.nodeName);if(!L[Se]||k[Se])throw lt("root node is forbidden and cannot be sanitized in-place")}}else if(w instanceof u)p=Zn("<!---->"),v=p.ownerDocument.importNode(w,!0),v.nodeType===ft.element&&v.nodeName==="BODY"||v.nodeName==="HTML"?p=v:p.appendChild(v);else{if(!Ue&&!be&&!Ie&&w.indexOf("<")===-1)return H&&xt?H.createHTML(w):w;if(p=Zn(w),!p)return Ue?null:xt?I:""}p&&Kt&&ve(p.firstChild);const se=qn(nt?w:p);for(;V=se.nextNode();)Kn(V)||(V.content instanceof s&&Yi(V.content),nr(V));if(nt)return w;if(Ue){if(Tt)for(oe=J.call(p.ownerDocument);p.firstChild;)oe.appendChild(p.firstChild);else oe=p;return(R.shadowroot||R.shadowrootmode)&&(oe=z.call(r,oe,!0)),oe}let me=Ie?p.outerHTML:p.innerHTML;return Ie&&L["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ue(Di,p.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
|
|
22
|
+
`+me),be&&Ct([ne,he,A],Se=>{me=ut(me,Se," ")}),H&&xt?H.createHTML(me):me},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(w),Qt=!0},t.clearConfig=function(){$e=null,Qt=!1},t.isValidAttribute=function(w,o,p){$e||sn({});const v=re(w),V=re(o);return er(v,V,p)},t.addHook=function(w,o){typeof o=="function"&&(C[w]=C[w]||[],at(C[w],o))},t.removeHook=function(w){if(C[w])return Rr(C[w])},t.removeHooks=function(w){C[w]&&(C[w]=[])},t.removeAllHooks=function(){C={}},t}var Fr=Bi();const Ga="data:image/webp;base64,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";var Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ai,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",u="minute",c="hour",l="day",f="week",b="month",y="quarter",O="year",E="date",d="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,U={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(A){var _=["th","st","nd","rd"],g=A%100;return"["+A+(_[(g-20)%10]||_[g]||_[0])+"]"}},S=function(A,_,g){var x=String(A);return!x||x.length>=_?A:""+Array(_+1-x.length).join(g)+A},H={s:S,z:function(A){var _=-A.utcOffset(),g=Math.abs(_),x=Math.floor(g/60),h=g%60;return(_<=0?"+":"-")+S(x,2,"0")+":"+S(h,2,"0")},m:function A(_,g){if(_.date()<g.date())return-A(g,_);var x=12*(g.year()-_.year())+(g.month()-_.month()),h=_.clone().add(x,b),T=g-h<0,N=_.clone().add(x+(T?-1:1),b);return+(-(x+(g-h)/(T?h-N:N-h))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:b,y:O,w:f,d:l,D:E,h:c,m:u,s:a,ms:s,Q:y}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},I="en",G={};G[I]=U;var Y="$isDayjsObject",J=function(A){return A instanceof ne||!(!A||!A[Y])},Q=function A(_,g,x){var h;if(!_)return I;if(typeof _=="string"){var T=_.toLowerCase();G[T]&&(h=T),g&&(G[T]=g,h=T);var N=_.split("-");if(!h&&N.length>1)return A(N[0])}else{var L=_.name;G[L]=_,h=L}return!x&&h&&(I=h),h||!x&&I},z=function(A,_){if(J(A))return A.clone();var g=typeof _=="object"?_:{};return g.date=A,g.args=arguments,new ne(g)},C=H;C.l=Q,C.i=J,C.w=function(A,_){return z(A,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ne=function(){function A(g){this.$L=Q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Y]=!0}var _=A.prototype;return _.parse=function(g){this.$d=function(x){var h=x.date,T=x.utc;if(h===null)return new Date(NaN);if(C.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var N=h.match(M);if(N){var L=N[2]-1||0,W=(N[7]||"0").substring(0,3);return T?new Date(Date.UTC(N[1],L,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)):new Date(N[1],L,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)}}return new Date(h)}(g),this.init()},_.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},_.$utils=function(){return C},_.isValid=function(){return this.$d.toString()!==d},_.isSame=function(g,x){var h=z(g);return this.startOf(x)<=h&&h<=this.endOf(x)},_.isAfter=function(g,x){return z(g)<this.startOf(x)},_.isBefore=function(g,x){return this.endOf(x)<z(g)},_.$g=function(g,x,h){return C.u(g)?this[x]:this.set(h,g)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(g,x){var h=this,T=!!C.u(x)||x,N=C.p(g),L=function(ye,ie){var Te=C.w(h.$u?Date.UTC(h.$y,ie,ye):new Date(h.$y,ie,ye),h);return T?Te:Te.endOf(l)},W=function(ye,ie){return C.w(h.toDate()[ye].apply(h.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ie)),h)},R=this.$W,Z=this.$M,m=this.$D,k="set"+(this.$u?"UTC":"");switch(N){case O:return T?L(1,0):L(31,11);case b:return T?L(1,Z):L(0,Z+1);case f:var ee=this.$locale().weekStart||0,K=(R<ee?R+7:R)-ee;return L(T?m-K:m+(6-K),Z);case l:case E:return W(k+"Hours",0);case c:return W(k+"Minutes",1);case u:return W(k+"Seconds",2);case a:return W(k+"Milliseconds",3);default:return this.clone()}},_.endOf=function(g){return this.startOf(g,!1)},_.$set=function(g,x){var h,T=C.p(g),N="set"+(this.$u?"UTC":""),L=(h={},h[l]=N+"Date",h[E]=N+"Date",h[b]=N+"Month",h[O]=N+"FullYear",h[c]=N+"Hours",h[u]=N+"Minutes",h[a]=N+"Seconds",h[s]=N+"Milliseconds",h)[T],W=T===l?this.$D+(x-this.$W):x;if(T===b||T===O){var R=this.clone().set(E,1);R.$d[L](W),R.init(),this.$d=R.set(E,Math.min(this.$D,R.daysInMonth())).$d}else L&&this.$d[L](W);return this.init(),this},_.set=function(g,x){return this.clone().$set(g,x)},_.get=function(g){return this[C.p(g)]()},_.add=function(g,x){var h,T=this;g=Number(g);var N=C.p(x),L=function(Z){var m=z(T);return C.w(m.date(m.date()+Math.round(Z*g)),T)};if(N===b)return this.set(b,this.$M+g);if(N===O)return this.set(O,this.$y+g);if(N===l)return L(1);if(N===f)return L(7);var W=(h={},h[u]=r,h[c]=i,h[a]=n,h)[N]||1,R=this.$d.getTime()+g*W;return C.w(R,this)},_.subtract=function(g,x){return this.add(-1*g,x)},_.format=function(g){var x=this,h=this.$locale();if(!this.isValid())return h.invalidDate||d;var T=g||"YYYY-MM-DDTHH:mm:ssZ",N=C.z(this),L=this.$H,W=this.$m,R=this.$M,Z=h.weekdays,m=h.months,k=h.meridiem,ee=function(ie,Te,be,Ne){return ie&&(ie[Te]||ie(x,T))||be[Te].slice(0,Ne)},K=function(ie){return C.s(L%12||12,ie,"0")},ye=k||function(ie,Te,be){var Ne=ie<12?"AM":"PM";return be?Ne.toLowerCase():Ne};return T.replace($,function(ie,Te){return Te||function(be){switch(be){case"YY":return String(x.$y).slice(-2);case"YYYY":return C.s(x.$y,4,"0");case"M":return R+1;case"MM":return C.s(R+1,2,"0");case"MMM":return ee(h.monthsShort,R,m,3);case"MMMM":return ee(m,R);case"D":return x.$D;case"DD":return C.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return ee(h.weekdaysMin,x.$W,Z,2);case"ddd":return ee(h.weekdaysShort,x.$W,Z,3);case"dddd":return Z[x.$W];case"H":return String(L);case"HH":return C.s(L,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ye(L,W,!0);case"A":return ye(L,W,!1);case"m":return String(W);case"mm":return C.s(W,2,"0");case"s":return String(x.$s);case"ss":return C.s(x.$s,2,"0");case"SSS":return C.s(x.$ms,3,"0");case"Z":return N}return null}(ie)||N.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(g,x,h){var T,N=this,L=C.p(x),W=z(g),R=(W.utcOffset()-this.utcOffset())*r,Z=this-W,m=function(){return C.m(N,W)};switch(L){case O:T=m()/12;break;case b:T=m();break;case y:T=m()/3;break;case f:T=(Z-R)/6048e5;break;case l:T=(Z-R)/864e5;break;case c:T=Z/i;break;case u:T=Z/r;break;case a:T=Z/n;break;default:T=Z}return h?T:C.a(T)},_.daysInMonth=function(){return this.endOf(b).$D},_.$locale=function(){return G[this.$L]},_.locale=function(g,x){if(!g)return this.$L;var h=this.clone(),T=Q(g,x,!0);return T&&(h.$L=T),h},_.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()},A}(),he=ne.prototype;return z.prototype=he,[["$ms",s],["$s",a],["$m",u],["$H",c],["$W",l],["$M",b],["$y",O],["$D",E]].forEach(function(A){he[A[1]]=function(_){return this.$g(_,A[0],A[1])}}),z.extend=function(A,_){return A.$i||(A(_,ne,z),A.$i=!0),z},z.locale=Q,z.isDayjs=J,z.unix=function(A){return z(1e3*A)},z.en=G[I],z.Ls=G,z.p={},z})})(Ui);var $a=Ui.exports;const Gr=Pn($a);var ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ai,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,u){var c=a.prototype;u.utc=function(d){var M={date:d,utc:!0,args:arguments};return new a(M)},c.utc=function(d){var M=u(this.toDate(),{locale:this.$L,utc:!0});return d?M.add(this.utcOffset(),n):M},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var b=c.utcOffset;c.utcOffset=function(d,M){var $=this.$utils().u;if($(d))return this.$u?0:$(this.$offset)?b.call(this):this.$offset;if(typeof d=="string"&&(d=function(I){I===void 0&&(I="");var G=I.match(r);if(!G)return null;var Y=(""+G[0]).match(i)||["-",0,0],J=Y[0],Q=60*+Y[1]+ +Y[2];return Q===0?0:J==="+"?Q:-Q}(d),d===null))return this;var U=Math.abs(d)<=16?60*d:d,S=this;if(M)return S.$offset=U,S.$u=d===0,S;if(d!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(U+H,n)).$offset=U,S.$x.$localOffset=H}else S=this.utc();return S};var y=c.format;c.format=function(d){var M=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,M)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var O=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():O.call(this)};var E=c.diff;c.diff=function(d,M,$){if(d&&this.$u===d.$u)return E.call(this,d,M,$);var U=this.local(),S=u(d).local();return E.call(U,S,M,$)}}})})(ki);var ja=ki.exports;const za=Pn(ja);let $r=Et(null);function Wa(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Va(e,t){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){is(e,"svelte-1cb9n1l","*,*::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:5;top:0;left:0;background-color:var(--mmw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-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}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--mmw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--mmw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);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}}")}const Za=e=>({}),jr=e=>({}),qa=e=>({}),zr=e=>({}),Ja=e=>({}),Wr=e=>({}),Qa=e=>({}),Vr=e=>({class:"CashierSessionExpirationIcon"});function Xr(e){let t,n,r,i,s,a=e[8]("sessionExpirationHeader")+"",u,c,l,f,b,y,O,E,d,M,$,U,S,H,I;const G=e[22].icon,Y=Lt(G,e,e[21],Vr),J=Y||tu(e),Q=e[22].title,z=Lt(Q,e,e[21],Wr),C=z||nu(e),ne=e[22].text,he=Lt(ne,e,e[21],zr),A=he||ru(e),_=[su,iu],g=[];function x(h,T){return h[6]?0:1}return d=x(e),M=g[d]=_[d](e),{c(){t=te("div"),n=te("div"),r=te("div"),i=te("div"),s=te("div"),u=Ke(a),c=ht(),l=te("div"),f=te("div"),J.c(),b=ht(),C.c(),y=ht(),A.c(),O=ht(),E=te("button"),M.c(),j(s,"class","CashierSessionExpirationModalHeaderTitle"),j(i,"class","CashierSessionExpirationModalHeader"),j(E,"type","button"),E.disabled=e[6],j(E,"class","CashierSessionExpirationButton"),j(f,"class","CashierSessionExpiration"),j(l,"class","CashierSessionExpirationModalContainer"),j(r,"class","CashierSessionExpirationModalWrapper"),j(n,"class","CashierSessionExpirationModalWindow"),j(n,"id","CashierSessionExpirationModal"),Ye(()=>e[24].call(n))},m(h,T){we(h,t,T),q(t,n),q(n,r),q(r,i),q(i,s),q(s,u),q(r,c),q(r,l),q(l,f),J.m(f,null),q(f,b),C.m(f,null),q(f,y),A.m(f,null),q(f,O),q(f,E),g[d].m(E,null),e[23](f),$=us(n,e[24].bind(n)),e[25](t),S=!0,H||(I=[Ft(E,"click",e[9]),Ft(n,"click",e[10])],H=!0)},p(h,T){e=h,(!S||T[0]&256)&&a!==(a=e[8]("sessionExpirationHeader")+"")&&Yt(u,a),Y?Y.p&&(!S||T[0]&2097152)&&Rt(Y,G,e,e[21],S?Ht(G,e[21],T,Qa):Pt(e[21]),Vr):J.p&&(!S||T[0]&8)&&J.p(e,S?T:[-1,-1]),z?z.p&&(!S||T[0]&2097152)&&Rt(z,Q,e,e[21],S?Ht(Q,e[21],T,Ja):Pt(e[21]),Wr):C.p&&(!S||T[0]&256)&&C.p(e,S?T:[-1,-1]),he?he.p&&(!S||T[0]&2097152)&&Rt(he,ne,e,e[21],S?Ht(ne,e[21],T,qa):Pt(e[21]),zr):A.p&&(!S||T[0]&384)&&A.p(e,S?T:[-1,-1]);let N=d;d=x(e),d===N?g[d].p(e,T):(ii(),Le(g[N],1,1,()=>{g[N]=null}),si(),M=g[d],M?M.p(e,T):(M=g[d]=_[d](e),M.c()),Ae(M,1),M.m(E,null)),(!S||T[0]&64)&&(E.disabled=e[6])},i(h){S||(Ae(J,h),Ae(C,h),Ae(A,h),Ae(M),h&&Ye(()=>{S&&(U||(U=dr(n,pr,{duration:e[2]},!0)),U.run(1))}),S=!0)},o(h){Le(J,h),Le(C,h),Le(A,h),Le(M),h&&(U||(U=dr(n,pr,{duration:e[2]},!1)),U.run(0)),S=!1},d(h){h&&ge(t),J.d(h),C.d(h),A.d(h),g[d].d(),e[23](null),$(),h&&U&&U.end(),e[25](null),H=!1,Re(I)}}}function Ka(e){let t,n;return{c(){t=te("img"),yn(t.src,n=Ga)||j(t,"src",n),j(t,"width","300px"),j(t,"alt","error")},m(r,i){we(r,t,i)},p:de,d(r){r&&ge(t)}}}function eu(e){let t,n;return{c(){t=te("img"),yn(t.src,n=`${e[3]}/set-timeout-icon.png`)||j(t,"src",n),j(t,"width","300px"),j(t,"alt","error")},m(r,i){we(r,t,i)},p(r,i){i[0]&8&&!yn(t.src,n=`${r[3]}/set-timeout-icon.png`)&&j(t,"src",n)},d(r){r&&ge(t)}}}function tu(e){let t;function n(s,a){return s[3]?eu:Ka}let r=n(e),i=r(e);return{c(){i.c(),t=ni()},m(s,a){i.m(s,a),we(s,t,a)},p(s,a){r===(r=n(s))&&i?i.p(s,a):(i.d(1),i=r(s),i&&(i.c(),i.m(t.parentNode,t)))},d(s){s&&ge(t),i.d(s)}}}function nu(e){let t,n=e[8]("sessionExpirationTitle")+"",r;return{c(){t=te("span"),r=Ke(n),j(t,"class","CashierSessionExpirationTitle")},m(i,s){we(i,t,s),q(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationTitle")+"")&&Yt(r,n)},d(i){i&&ge(t)}}}function ru(e){let t,n=Fr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=te("span"),j(t,"class","CashierSessionExpirationText")},m(r,i){we(r,t,i),t.innerHTML=n},p(r,i){i[0]&384&&n!==(n=Fr.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(t.innerHTML=n)},d(r){r&&ge(t)}}}function iu(e){let t;const n=e[22].button,r=Lt(n,e,e[21],jr),i=r||ou(e);return{c(){i.c()},m(s,a){i.m(s,a),t=!0},p(s,a){r?r.p&&(!t||a[0]&2097152)&&Rt(r,n,s,s[21],t?Ht(n,s[21],a,Za):Pt(s[21]),jr):i.p&&(!t||a[0]&256)&&i.p(s,t?a:[-1,-1])},i(s){t||(Ae(i,s),t=!0)},o(s){Le(i,s),t=!1},d(s){i.d(s)}}}function su(e){let t,n,r,i,s,a=e[8]("sessionExpirationLoadingButton")+"",u;return{c(){t=te("div"),n=fr("svg"),r=fr("path"),i=ht(),s=te("span"),u=Ke(a),j(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"),j(r,"fill","white"),j(n,"class","CashierSessionExpirationButtonSpinner"),j(n,"xmlns","http://www.w3.org/2000/svg"),j(n,"width","15"),j(n,"height","14"),j(n,"viewBox","0 0 15 14"),j(n,"fill","none"),j(s,"class","CashierSessionExpirationButtonText")},m(c,l){we(c,t,l),q(t,n),q(n,r),q(t,i),q(t,s),q(s,u)},p(c,l){l[0]&256&&a!==(a=c[8]("sessionExpirationLoadingButton")+"")&&Yt(u,a)},i:de,o:de,d(c){c&&ge(t)}}}function ou(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=te("span"),r=Ke(n),j(t,"class","CashierSessionExpirationButtonText")},m(i,s){we(i,t,s),q(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&Yt(r,n)},d(i){i&&ge(t)}}}function au(e){let t,n,r=e[5]&&Xr(e);return{c(){r&&r.c(),t=ni()},m(i,s){r&&r.m(i,s),we(i,t,s),n=!0},p(i,s){i[5]?r?(r.p(i,s),s[0]&32&&Ae(r,1)):(r=Xr(i),r.c(),Ae(r,1),r.m(t.parentNode,t)):r&&(ii(),Le(r,1,1,()=>{r=null}),si())},i(i){n||(Ae(r),n=!0)},o(i){Le(r),n=!1},d(i){i&&ge(t),r&&r.d(i)}}}const uu=90;function lu(e,t,n){let r,i;cr(e,$r,m=>n(20,r=m)),cr(e,ya,m=>n(8,i=m));let{$$slots:s={},$$scope:a}=t;Gr.extend(za);let{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{width:l}=t,{height:f}=t,{duration:b=200}=t,{assetsurl:y=""}=t,{lang:O="en"}=t,{translationurl:E=""}=t,{endpoint:d}=t,{currency:M}=t,{customerid:$}=t,{selectedpaymentmethodname:U}=t,{mbsource:S=""}=t,H,I=!1,G=!1,Y,J,Q,z,C;var ne;(function(m){m.PlayerSessionIsNotValid="PlayerSessionIsNotValid",m.Success="Success",m.JwtTokenError="JwtTokenError"})(ne||(ne={}));const he=m=>{m.data.type==="StartSessionCountdown"&&(z=m.data.paymentMethodName)},A=m=>{try{return JSON.parse(atob(m.split(".")[1]))}catch(k){return null}},_=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:C},window.location.href)},g=m=>{n(5,I=!1);const k=A(m);k&&(J=k==null?void 0:k.exp,n(7,Y=J),Q&&clearInterval(Q),Q=setInterval(()=>{const ee=Math.floor(new Date().getTime()/1e3);n(7,Y=J-ee),Y<=uu&&n(5,I=!0),ee>=J&&(x(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},x=()=>{n(7,Y=0),n(5,I=!1),clearInterval(Q)},h=()=>{if(G)return;const m=new URL(`${d}/v1/player/${$}/payment/GetPaymentMethod`),k=new Headers;n(6,G=!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 ee={method:"POST",mode:"cors",headers:k,body:JSON.stringify({PaymentMethodName:z||U,Currency:M,XPaymentSessionToken:r})};fetch(m,ee).then(K=>K.json()).then(K=>{if(K.error){window.postMessage({type:"ShowSessionError",error:K.error},window.location.href),x();return}if(K.ResponseCode===ne.PlayerSessionIsNotValid||K.ResponseCode===ne.JwtTokenError){C=K.ResponseCode,x(),_();return}if(K.ResponseCode!==ne.Success){C=K.ResponseCode,x();return}K.XPaymentSessionToken&&$r.set(K.XPaymentSessionToken)}).finally(()=>n(6,G=!1))},T=m=>{const k=m.currentTarget;m.target===k&&h()},N=()=>{fetch(E).then(k=>k.json()).then(k=>{Object.keys(k).forEach(ee=>{Nr(ee,k[ee])})}).catch(k=>{console.log(k)})};Object.keys(Lr).forEach(m=>{Nr(m,Lr[m])});const L=()=>{Ta(O)};ps(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)})),gs(()=>{clearInterval(Q)});function W(m){jt[m?"unshift":"push"](()=>{H=m,n(4,H)})}function R(){l=this.clientWidth,f=this.clientHeight,n(0,l),n(1,f)}function Z(m){jt[m?"unshift":"push"](()=>{H=m,n(4,H)})}return e.$$set=m=>{"clientstyling"in m&&n(11,u=m.clientstyling),"clientstylingurl"in m&&n(12,c=m.clientstylingurl),"width"in m&&n(0,l=m.width),"height"in m&&n(1,f=m.height),"duration"in m&&n(2,b=m.duration),"assetsurl"in m&&n(3,y=m.assetsurl),"lang"in m&&n(13,O=m.lang),"translationurl"in m&&n(14,E=m.translationurl),"endpoint"in m&&n(15,d=m.endpoint),"currency"in m&&n(16,M=m.currency),"customerid"in m&&n(17,$=m.customerid),"selectedpaymentmethodname"in m&&n(18,U=m.selectedpaymentmethodname),"mbsource"in m&&n(19,S=m.mbsource),"$$scope"in m&&n(21,a=m.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&g(r),e.$$.dirty[0]&8192&&O&&L(),e.$$.dirty[0]&2064&&u&&H&&Wa(H,u),e.$$.dirty[0]&4112&&c&&H&&Va(H,c),e.$$.dirty[0]&524304&&S&&H&&Xa(H,`${S}.Style`),e.$$.dirty[0]&16384&&E&&N()},[l,f,b,y,H,I,G,Y,i,h,T,u,c,O,E,d,M,$,U,S,r,a,s,W,R,Z]}class Fi extends Ms{constructor(t){super(),ws(this,t,lu,au,qr,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Ya,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),le()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),le()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),le()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),le()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),le()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),le()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),le()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),le()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),le()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),le()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),le()}}Os(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-uM4jfPMr.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-0NoY0y90.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-session-expiration-modal") && customElements.define("cashier-session-expiration-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED