@everymatrix/casino-search-nd 1.87.38 → 1.87.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";var ca=Object.defineProperty,ha=Object.defineProperties;var fa=Object.getOwnPropertyDescriptors;var or=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable;var vt=(e,t,r)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bt=(e,t)=>{for(var r in t||(t={}))da.call(t,r)&&vt(e,r,t[r]);if(or)for(var r of or(t))ma.call(t,r)&&vt(e,r,t[r]);return e},sr=(e,t)=>ha(e,fa(t));var X=(e,t,r)=>(vt(e,typeof t!="symbol"?t+"":t,r),r);var yt=(e,t,r)=>new Promise((n,a)=>{var i=u=>{try{s(r.next(u))}catch(l){a(l)}},o=u=>{try{s(r.throw(u))}catch(l){a(l)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});function K(){}function Vr(e){return e()}function ur(){return Object.create(null)}function de(e){e.forEach(Vr)}function Xt(e){return typeof e=="function"}function qt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ve;function ga(e,t){return e===t?!0:(Ve||(Ve=document.createElement("a")),Ve.href=t,e===Ve.href)}function pa(e){return Object.keys(e).length===0}function Yr(e,...t){if(e==null){for(const n of t)n(void 0);return K}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Xr(e,t,r){e.$$.on_destroy.push(Yr(t,r))}function P(e,t){e.appendChild(t)}function qr(e,t,r){const n=va(e);if(!n.getElementById(t)){const a=N("style");a.id=t,a.textContent=r,ba(n,a)}}function va(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ba(e,t){return P(e.head||e,t),t.sheet}function W(e,t,r){e.insertBefore(t,r||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function ya(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function N(e){return document.createElement(e)}function Je(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function re(e){return document.createTextNode(e)}function J(){return re(" ")}function zt(){return re("")}function he(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function y(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:y(e,t,r)}function _a(e){return Array.from(e.childNodes)}function ue(e,t){t=""+t,e.data!==t&&(e.data=t)}function lr(e,t){e.value=t==null?"":t}function wa(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Sa(e,t,r){e.classList.toggle(t,!!r)}class Ea{constructor(t=!1){X(this,"is_svg",!1);X(this,"e");X(this,"n");X(this,"t");X(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,r,n=null){this.e||(this.is_svg?this.e=Je(r.nodeName):this.e=N(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let r=0;r<this.n.length;r+=1)W(this.t,this.n[r],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(j)}}function xa(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ie;function Ne(e){Ie=e}function Ta(){if(!Ie)throw new Error("Function called outside component initialization");return Ie}function zr(e){Ta().$$.on_mount.push(e)}const _e=[],Re=[];let Se=[];const cr=[],Qr=Promise.resolve();let Ht=!1;function Zr(){Ht||(Ht=!0,Qr.then(k))}function Ca(){return Zr(),Qr}function Mt(e){Se.push(e)}const _t=new Set;let ve=0;function k(){if(ve!==0)return;const e=Ie;do{try{for(;ve<_e.length;){const t=_e[ve];ve++,Ne(t),Pa(t.$$)}}catch(t){throw _e.length=0,ve=0,t}for(Ne(null),_e.length=0,ve=0;Re.length;)Re.pop()();for(let t=0;t<Se.length;t+=1){const r=Se[t];_t.has(r)||(_t.add(r),r())}Se.length=0}while(_e.length);for(;cr.length;)cr.pop()();Ht=!1,_t.clear(),Ne(e)}function Pa(e){if(e.fragment!==null){e.update(),de(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Mt)}}function Oa(e){const t=[],r=[];Se.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Se=t}const Ha=new Set;function Jr(e,t){e&&e.i&&(Ha.delete(e),e.i(t))}function At(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ma(e,t){e.d(1),t.delete(e.key)}function Aa(e,t,r,n,a,i,o,s,u,l,c,h){let d=e.length,m=i.length,p=d;const v={};for(;p--;)v[e[p].key]=p;const g=[],B=new Map,H=new Map,M=[];for(p=m;p--;){const T=h(a,i,p),O=r(T);let _=o.get(O);_?M.push(()=>_.p(T,t)):(_=l(O,T),_.c()),B.set(O,g[p]=_),O in v&&H.set(O,Math.abs(p-v[O]))}const U=new Set,x=new Set;function F(T){Jr(T,1),T.m(s,c),o.set(T.key,T),c=T.first,m--}for(;d&&m;){const T=g[m-1],O=e[d-1],_=T.key,A=O.key;T===O?(c=T.first,d--,m--):B.has(A)?!o.has(_)||U.has(_)?F(T):x.has(A)?d--:H.get(_)>H.get(A)?(x.add(_),F(T)):(U.add(A),d--):(u(O,o),d--)}for(;d--;){const T=e[d];B.has(T.key)||u(T,o)}for(;m;)F(g[m-1]);return de(M),g}function Ba(e,t,r){const{fragment:n,after_update:a}=e.$$;n&&n.m(t,r),Mt(()=>{const i=e.$$.on_mount.map(Vr).filter(Xt);e.$$.on_destroy?e.$$.on_destroy.push(...i):de(i),e.$$.on_mount=[]}),a.forEach(Mt)}function La(e,t){const r=e.$$;r.fragment!==null&&(Oa(r.after_update),de(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Na(e,t){e.$$.dirty[0]===-1&&(_e.push(e),Zr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Kr(e,t,r,n,a,i,o=null,s=[-1]){const u=Ie;Ne(e);const l=e.$$={fragment:null,ctx:[],props:i,update:K,not_equal:a,bound:ur(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:ur(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let c=!1;if(l.ctx=r?r(e,t.props||{},(h,d,...m)=>{const p=m.length?m[0]:d;return l.ctx&&a(l.ctx[h],l.ctx[h]=p)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](p),c&&Na(e,h)),d}):[],l.update(),c=!0,de(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const h=_a(t.target);l.fragment&&l.fragment.l(h),h.forEach(j)}else l.fragment&&l.fragment.c();t.intro&&Jr(e.$$.fragment),Ba(e,t.target,t.anchor),k()}Ne(u)}let en;typeof HTMLElement=="function"&&(en=class extends HTMLElement{constructor(t,r,n){super();X(this,"$$ctor");X(this,"$$s");X(this,"$$c");X(this,"$$cn",!1);X(this,"$$d",{});X(this,"$$r",!1);X(this,"$$p_d",{});X(this,"$$l",{});X(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const a=this.$$c.$on(t,r);this.$$l_u.set(r,a)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const a=this.$$l_u.get(r);a&&(a(),this.$$l_u.delete(r))}}connectedCallback(){return yt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=N("slot"),i!=="default"&&y(o,"name",i)},m:function(l,c){W(l,o,c)},d:function(l){l&&j(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=xa(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=qe(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:sr(bt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const a=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=qe(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(a),a();for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var a;this.$$r||(t=this.$$g_p(t),this.$$d[t]=qe(t,n,this.$$p_d,"toProp"),(a=this.$$c)==null||a.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function qe(e,t,r,n){var i;const a=(i=r[e])==null?void 0:i.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(a){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(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function tn(e,t,r,n,a,i){let o=class extends en{constructor(){super(e,r,a),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(u){var l;u=qe(s,u,t),this.$$d[s]=u,(l=this.$$c)==null||l.$set({[s]:u})}})}),n.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var u;return(u=this.$$c)==null?void 0:u[s]}})}),e.element=o,o}class rn{constructor(){X(this,"$$");X(this,"$$set")}$destroy(){La(this,1),this.$destroy=K}$on(t,r){if(!Xt(r))return K;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const a=n.indexOf(r);a!==-1&&n.splice(a,1)}}$set(t){this.$$set&&!pa(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ia="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ia);const be=[];function Ra(e,t){return{subscribe:ot(e,t).subscribe}}function ot(e,t=K){let r;const n=new Set;function a(s){if(qt(e,s)&&(e=s,r)){const u=!be.length;for(const l of n)l[1](),be.push(l,e);if(u){for(let l=0;l<be.length;l+=2)be[l][0](be[l+1]);be.length=0}}}function i(s){a(s(e))}function o(s,u=K){const l=[s,u];return n.add(l),n.size===1&&(r=t(a,i)||K),s(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:a,update:i,subscribe:o}}function Pe(e,t,r){const n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Ra(r,(o,s)=>{let u=!1;const l=[];let c=0,h=K;const d=()=>{if(c)return;h();const p=t(n?l[0]:l,o,s);i?o(p):h=Xt(p)?p:K},m=a.map((p,v)=>Yr(p,g=>{l[v]=g,c&=~(1<<v),u&&d()},()=>{c|=1<<v}));return u=!0,d(),function(){de(m),h(),u=!1}})}function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka=function(t){return Ua(t)&&!Fa(t)};function Ua(e){return!!e&&typeof e=="object"}function Fa(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$a(e)}var Ga=typeof Symbol=="function"&&Symbol.for,ja=Ga?Symbol.for("react.element"):60103;function $a(e){return e.$$typeof===ja}function Wa(e){return Array.isArray(e)?[]:{}}function De(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ee(Wa(e),e,t):e}function Va(e,t,r){return e.concat(t).map(function(n){return De(n,r)})}function Ya(e,t){if(!t.customMerge)return Ee;var r=t.customMerge(e);return typeof r=="function"?r:Ee}function Xa(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function hr(e){return Object.keys(e).concat(Xa(e))}function nn(e,t){try{return t in e}catch(r){return!1}}function qa(e,t){return nn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function za(e,t,r){var n={};return r.isMergeableObject(e)&&hr(e).forEach(function(a){n[a]=De(e[a],r)}),hr(t).forEach(function(a){qa(e,a)||(nn(e,a)&&r.isMergeableObject(t[a])?n[a]=Ya(a,r)(e[a],t[a],r):n[a]=De(t[a],r))}),n}function Ee(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Va,r.isMergeableObject=r.isMergeableObject||ka,r.cloneUnlessOtherwiseSpecified=De;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):za(e,t,r):De(t,r)}Ee.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Ee(n,a,r)},{})};var Qa=Ee,Za=Qa;const Ja=Da(Za);var Bt=function(e,t){return Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Bt(e,t)};function st(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var te=function(){return te=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},te.apply(this,arguments)};function Ka(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function wt(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function St(e,t){var r=t&&t.cache?t.cache:oi,n=t&&t.serializer?t.serializer:ai,a=t&&t.strategy?t.strategy:ri;return a(e,{cache:r,serializer:n})}function ei(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ti(e,t,r,n){var a=ei(n)?n:r(n),i=t.get(a);return typeof i=="undefined"&&(i=e.call(this,n),t.set(a,i)),i}function an(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),i=t.get(a);return typeof i=="undefined"&&(i=e.apply(this,n),t.set(a,i)),i}function on(e,t,r,n,a){return r.bind(t,e,n,a)}function ri(e,t){var r=e.length===1?ti:an;return on(e,this,r,t.cache.create(),t.serializer)}function ni(e,t){return on(e,this,an,t.cache.create(),t.serializer)}var ai=function(){return JSON.stringify(arguments)},ii=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),oi={create:function(){return new ii}},Et={variadic:ni},Ke=function(){return Ke=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ke.apply(this,arguments)};var S;(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"})(S||(S={}));var L;(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"})(L||(L={}));var xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(xe||(xe={}));function fr(e){return e.type===L.literal}function si(e){return e.type===L.argument}function sn(e){return e.type===L.number}function un(e){return e.type===L.date}function ln(e){return e.type===L.time}function cn(e){return e.type===L.select}function hn(e){return e.type===L.plural}function ui(e){return e.type===L.pound}function fn(e){return e.type===L.tag}function dn(e){return!!(e&&typeof e=="object"&&e.type===xe.number)}function Lt(e){return!!(e&&typeof e=="object"&&e.type===xe.dateTime)}var mn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,li=/(?:[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 ci(e){var t={};return e.replace(li,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 D=function(){return D=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},D.apply(this,arguments)};var hi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function fi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(hi).filter(function(d){return d.length>0}),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function di(e){return e.replace(/^(.*?)-/,"")}var dr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,gn=/^(@+)?(\+|#+)?[rs]?$/g,mi=/(\*)(0+)|(#+)(0+)|(0+)/g,pn=/^(0+)$/;function mr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(gn,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function vn(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 gi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function gr(e){var t={},r=vn(e);return r||t}function pi(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=di(a.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=D(D(D({},t),{notation:"scientific"}),a.options.reduce(function(u,l){return D(D({},u),gr(l))},{}));continue;case"engineering":t=D(D(D({},t),{notation:"engineering"}),a.options.reduce(function(u,l){return D(D({},u),gr(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(a.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(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(mi,function(u,l,c,h,d,m){if(l)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pn.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(dr.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(dr,function(u,l,c,h,d,m){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&m?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=D(D({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=D(D({},t),mr(i)));continue}if(gn.test(a.stem)){t=D(D({},t),mr(a.stem));continue}var o=vn(a.stem);o&&(t=D(D({},t),o));var s=gi(a.stem);s&&(t=D(D({},t),s))}return t}var Ye={"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 vi(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===a;)i++,n++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=bi(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else a==="J"?r+="H":r+=a}return r}function bi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=Ye[n||""]||Ye[r||""]||Ye["".concat(r,"-001")]||Ye["001"];return a[0]}var xt,yi=new RegExp("^".concat(mn.source,"*")),_i=new RegExp("".concat(mn.source,"*$"));function E(e,t){return{start:e,end:t}}var wi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Si=!!String.fromCodePoint,Ei=!!Object.fromEntries,xi=!!String.prototype.codePointAt,Ti=!!String.prototype.trimStart,Ci=!!String.prototype.trimEnd,Pi=!!Number.isSafeInteger,Oi=Pi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Nt=!0;try{var Hi=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nt=((xt=Hi.exec("a"))===null||xt===void 0?void 0:xt[0])==="a"}catch(e){Nt=!1}var pr=wi?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},It=Si?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},vr=Ei?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var i=a[n],o=i[0],s=i[1];r[o]=s}return r},bn=xi?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),i;return a<55296||a>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Mi=Ti?function(t){return t.trimStart()}:function(t){return t.replace(yi,"")},Ai=Ci?function(t){return t.trimEnd()}:function(t){return t.replace(_i,"")};function yn(e,t){return new RegExp(e,t)}var Rt;if(Nt){var br=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Rt=function(t,r){var n;br.lastIndex=r;var a=br.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Rt=function(t,r){for(var n=[];;){var a=bn(t,r);if(a===void 0||_n(a)||Ii(a))break;n.push(a),r+=a>=65536?2:1}return It.apply(void 0,n)};var Bi=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,n);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:L.pound,location:E(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Dt(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(a,"/>"),location:E(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dt(this.char()))return this.error(S.INVALID_TAG,E(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(S.UNMATCHED_CLOSING_TAG,E(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:a,children:o,location:E(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,E(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,E(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,E(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ni(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var i=this.tryParseQuote(r);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){a+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var u=E(n,this.clonePosition());return{val:{type:L.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Li(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return It.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),It(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,E(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:a,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Rt(this.message,r),a=r+n.length;this.bumpTo(a);var i=this.clonePosition(),o=E(t,i);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,a){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,E(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Ai(h.val);if(d.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));var m=E(c,this.clonePosition());l={style:d,styleLocation:m}}var p=this.tryParseArgumentClose(a);if(p.err)return p;var v=E(a,this.clonePosition());if(l&&pr(l==null?void 0:l.style,"::",0)){var g=Mi(l.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(g,l.styleLocation);return h.err?h:{val:{type:L.number,value:n,location:v,style:h.val},err:null}}else{if(g.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,v);var B=g;this.locale&&(B=vi(g,this.locale));var d={type:xe.dateTime,pattern:B,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ci(B):{}},H=s==="date"?L.date:L.time;return{val:{type:H,value:n,location:v,style:d},err:null}}}return{val:{type:s==="number"?L.number:s==="date"?L.date:L.time,value:n,location:v,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,E(M,Ke({},M)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),x=0;if(s!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),U=this.parseIdentifierIfPossible(),x=h.val}var F=this.tryParsePluralOrSelectOptions(t,s,r,U);if(F.err)return F;var p=this.tryParseArgumentClose(a);if(p.err)return p;var T=E(a,this.clonePosition());return s==="select"?{val:{type:L.select,value:n,options:vr(F.val),location:T},err:null}:{val:{type:L.plural,value:n,options:vr(F.val),offset:x,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,E(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=fi(t)}catch(a){return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:xe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?pi(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var i,o=!1,s=[],u=new Set,l=a.value,c=a.location;;){if(l.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=E(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var v=this.tryParseArgumentClose(m);if(v.err)return v;s.push([l,{value:p.val,location:E(m,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,c=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(S.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=E(a,this.clonePosition());return i?(o*=n,Oi(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=bn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(pr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_n(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Dt(e){return e>=97&&e<=122||e>=65&&e<=90}function Li(e){return Dt(e)||e===47}function Ni(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 _n(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ii(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 kt(e){e.forEach(function(t){if(delete t.location,cn(t)||hn(t))for(var r in t.options)delete t.options[r].location,kt(t.options[r].value);else sn(t)&&dn(t.style)||(un(t)||ln(t))&&Lt(t.style)?delete t.style.location:fn(t)&&kt(t.children)})}function Ri(e,t){t===void 0&&(t={}),t=Ke({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Bi(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||kt(r.val),r.val}var Te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Te||(Te={}));var ut=function(e){st(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),yr=function(e){st(t,e);function t(r,n,a,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return t}(ut),Di=function(e){st(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Te.INVALID_VALUE,a)||this}return t}(ut),ki=function(e){st(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Te.MISSING_VALUE,n)||this}return t}(ut),z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(z||(z={}));function Ui(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==z.literal||r.type!==z.literal?t.push(r):n.value+=r.value,t},[])}function Fi(e){return typeof e=="function"}function ze(e,t,r,n,a,i,o){if(e.length===1&&fr(e[0]))return[{type:z.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var c=l[u];if(fr(c)){s.push({type:z.literal,value:c.value});continue}if(ui(c)){typeof i=="number"&&s.push({type:z.literal,value:r.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(a&&h in a))throw new ki(h,o);var d=a[h];if(si(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?z.literal:z.object,value:d});continue}if(un(c)){var m=typeof c.style=="string"?n.date[c.style]:Lt(c.style)?c.style.parsedOptions:void 0;s.push({type:z.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(ln(c)){var m=typeof c.style=="string"?n.time[c.style]:Lt(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:z.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(sn(c)){var m=typeof c.style=="string"?n.number[c.style]:dn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(d=d*(m.scale||1)),s.push({type:z.literal,value:r.getNumberFormat(t,m).format(d)});continue}if(fn(c)){var p=c.children,v=c.value,g=a[v];if(!Fi(g))throw new Di(v,"function",o);var B=ze(p,t,r,n,a,i),H=g(B.map(function(x){return x.value}));Array.isArray(H)||(H=[H]),s.push.apply(s,H.map(function(x){return{type:typeof x=="string"?z.literal:z.object,value:x}}))}if(cn(c)){var M=c.options[d]||c.options.other;if(!M)throw new yr(c.value,d,Object.keys(c.options),o);s.push.apply(s,ze(M.value,t,r,n,a));continue}if(hn(c)){var M=c.options["=".concat(d)];if(!M){if(!Intl.PluralRules)throw new ut(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var ha=Object.defineProperty,fa=Object.defineProperties;var da=Object.getOwnPropertyDescriptors;var ur=Object.getOwnPropertySymbols;var ma=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var yt=(e,t,r)=>t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t)=>{for(var r in t||(t={}))ma.call(t,r)&&yt(e,r,t[r]);if(ur)for(var r of ur(t))ga.call(t,r)&&yt(e,r,t[r]);return e},lr=(e,t)=>fa(e,da(t));var Y=(e,t,r)=>(yt(e,typeof t!="symbol"?t+"":t,r),r);var wt=(e,t,r)=>new Promise((n,a)=>{var i=u=>{try{s(r.next(u))}catch(l){a(l)}},o=u=>{try{s(r.throw(u))}catch(l){a(l)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});function K(){}function Xr(e){return e()}function cr(){return Object.create(null)}function me(e){e.forEach(Xr)}function zt(e){return typeof e=="function"}function Qt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Xe;function pa(e,t){return e===t?!0:(Xe||(Xe=document.createElement("a")),Xe.href=t,e===Xe.href)}function va(e){return Object.keys(e).length===0}function qr(e,...t){if(e==null){for(const n of t)n(void 0);return K}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function zr(e,t,r){e.$$.on_destroy.push(qr(t,r))}function P(e,t){e.appendChild(t)}function Qr(e,t,r){const n=ba(e);if(!n.getElementById(t)){const a=N("style");a.id=t,a.textContent=r,ya(n,a)}}function ba(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ya(e,t){return P(e.head||e,t),t.sheet}function $(e,t,r){e.insertBefore(t,r||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function _a(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function N(e){return document.createElement(e)}function et(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function re(e){return document.createTextNode(e)}function J(){return re(" ")}function Zt(){return re("")}function fe(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function y(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:y(e,t,r)}function wa(e){return Array.from(e.childNodes)}function ue(e,t){t=""+t,e.data!==t&&(e.data=t)}function hr(e,t){e.value=t==null?"":t}function Sa(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ea(e,t,r){e.classList.toggle(t,!!r)}class xa{constructor(t=!1){Y(this,"is_svg",!1);Y(this,"e");Y(this,"n");Y(this,"t");Y(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,r,n=null){this.e||(this.is_svg?this.e=et(r.nodeName):this.e=N(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let r=0;r<this.n.length;r+=1)$(this.t,this.n[r],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(W)}}function Ta(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let De;function Re(e){De=e}function Ca(){if(!De)throw new Error("Function called outside component initialization");return De}function Zr(e){Ca().$$.on_mount.push(e)}const we=[],ke=[];let Ee=[];const fr=[],Jr=Promise.resolve();let At=!1;function Kr(){At||(At=!0,Jr.then(D))}function Pa(){return Kr(),Jr}function Bt(e){Ee.push(e)}const St=new Set;let be=0;function D(){if(be!==0)return;const e=De;do{try{for(;be<we.length;){const t=we[be];be++,Re(t),Oa(t.$$)}}catch(t){throw we.length=0,be=0,t}for(Re(null),we.length=0,be=0;ke.length;)ke.pop()();for(let t=0;t<Ee.length;t+=1){const r=Ee[t];St.has(r)||(St.add(r),r())}Ee.length=0}while(we.length);for(;fr.length;)fr.pop()();At=!1,St.clear(),Re(e)}function Oa(e){if(e.fragment!==null){e.update(),me(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Bt)}}function Ha(e){const t=[],r=[];Ee.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Ee=t}const Ma=new Set;function en(e,t){e&&e.i&&(Ma.delete(e),e.i(t))}function Lt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Aa(e,t){e.d(1),t.delete(e.key)}function Ba(e,t,r,n,a,i,o,s,u,l,c,h){let d=e.length,m=i.length,p=d;const v={};for(;p--;)v[e[p].key]=p;const g=[],M=new Map,O=new Map,H=[];for(p=m;p--;){const T=h(a,i,p),A=r(T);let w=o.get(A);w?H.push(()=>w.p(T,t)):(w=l(A,T),w.c()),M.set(A,g[p]=w),A in v&&O.set(A,Math.abs(p-v[A]))}const F=new Set,x=new Set;function G(T){en(T,1),T.m(s,c),o.set(T.key,T),c=T.first,m--}for(;d&&m;){const T=g[m-1],A=e[d-1],w=T.key,B=A.key;T===A?(c=T.first,d--,m--):M.has(B)?!o.has(w)||F.has(w)?G(T):x.has(B)?d--:O.get(w)>O.get(B)?(x.add(w),G(T)):(F.add(B),d--):(u(A,o),d--)}for(;d--;){const T=e[d];M.has(T.key)||u(T,o)}for(;m;)G(g[m-1]);return me(H),g}function La(e,t,r){const{fragment:n,after_update:a}=e.$$;n&&n.m(t,r),Bt(()=>{const i=e.$$.on_mount.map(Xr).filter(zt);e.$$.on_destroy?e.$$.on_destroy.push(...i):me(i),e.$$.on_mount=[]}),a.forEach(Bt)}function Na(e,t){const r=e.$$;r.fragment!==null&&(Ha(r.after_update),me(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ia(e,t){e.$$.dirty[0]===-1&&(we.push(e),Kr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function tn(e,t,r,n,a,i,o=null,s=[-1]){const u=De;Re(e);const l=e.$$={fragment:null,ctx:[],props:i,update:K,not_equal:a,bound:cr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:cr(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let c=!1;if(l.ctx=r?r(e,t.props||{},(h,d,...m)=>{const p=m.length?m[0]:d;return l.ctx&&a(l.ctx[h],l.ctx[h]=p)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](p),c&&Ia(e,h)),d}):[],l.update(),c=!0,me(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const h=wa(t.target);l.fragment&&l.fragment.l(h),h.forEach(W)}else l.fragment&&l.fragment.c();t.intro&&en(e.$$.fragment),La(e,t.target,t.anchor),D()}Re(u)}let rn;typeof HTMLElement=="function"&&(rn=class extends HTMLElement{constructor(t,r,n){super();Y(this,"$$ctor");Y(this,"$$s");Y(this,"$$c");Y(this,"$$cn",!1);Y(this,"$$d",{});Y(this,"$$r",!1);Y(this,"$$p_d",{});Y(this,"$$l",{});Y(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const a=this.$$c.$on(t,r);this.$$l_u.set(r,a)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const a=this.$$l_u.get(r);a&&(a(),this.$$l_u.delete(r))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=N("slot"),i!=="default"&&y(o,"name",i)},m:function(l,c){$(l,o,c)},d:function(l){l&&W(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Ta(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=Qe(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lr(_t({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const a=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=Qe(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(a),a();for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var a;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Qe(t,n,this.$$p_d,"toProp"),(a=this.$$c)==null||a.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Qe(e,t,r,n){var i;const a=(i=r[e])==null?void 0:i.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(a){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(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function nn(e,t,r,n,a,i){let o=class extends rn{constructor(){super(e,r,a),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(u){var l;u=Qe(s,u,t),this.$$d[s]=u,(l=this.$$c)==null||l.$set({[s]:u})}})}),n.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var u;return(u=this.$$c)==null?void 0:u[s]}})}),e.element=o,o}class an{constructor(){Y(this,"$$");Y(this,"$$set")}$destroy(){Na(this,1),this.$destroy=K}$on(t,r){if(!zt(r))return K;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const a=n.indexOf(r);a!==-1&&n.splice(a,1)}}$set(t){this.$$set&&!va(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ra="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ra);const ye=[];function Da(e,t){return{subscribe:ut(e,t).subscribe}}function ut(e,t=K){let r;const n=new Set;function a(s){if(Qt(e,s)&&(e=s,r)){const u=!ye.length;for(const l of n)l[1](),ye.push(l,e);if(u){for(let l=0;l<ye.length;l+=2)ye[l][0](ye[l+1]);ye.length=0}}}function i(s){a(s(e))}function o(s,u=K){const l=[s,u];return n.add(l),n.size===1&&(r=t(a,i)||K),s(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:a,update:i,subscribe:o}}function Oe(e,t,r){const n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Da(r,(o,s)=>{let u=!1;const l=[];let c=0,h=K;const d=()=>{if(c)return;h();const p=t(n?l[0]:l,o,s);i?o(p):h=zt(p)?p:K},m=a.map((p,v)=>qr(p,g=>{l[v]=g,c&=~(1<<v),u&&d()},()=>{c|=1<<v}));return u=!0,d(),function(){me(m),h(),u=!1}})}function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ua=function(t){return Fa(t)&&!Ga(t)};function Fa(e){return!!e&&typeof e=="object"}function Ga(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$a(e)}var ja=typeof Symbol=="function"&&Symbol.for,Wa=ja?Symbol.for("react.element"):60103;function $a(e){return e.$$typeof===Wa}function Va(e){return Array.isArray(e)?[]:{}}function Ue(e,t){return t.clone!==!1&&t.isMergeableObject(e)?xe(Va(e),e,t):e}function Ya(e,t,r){return e.concat(t).map(function(n){return Ue(n,r)})}function Xa(e,t){if(!t.customMerge)return xe;var r=t.customMerge(e);return typeof r=="function"?r:xe}function qa(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dr(e){return Object.keys(e).concat(qa(e))}function on(e,t){try{return t in e}catch(r){return!1}}function za(e,t){return on(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Qa(e,t,r){var n={};return r.isMergeableObject(e)&&dr(e).forEach(function(a){n[a]=Ue(e[a],r)}),dr(t).forEach(function(a){za(e,a)||(on(e,a)&&r.isMergeableObject(t[a])?n[a]=Xa(a,r)(e[a],t[a],r):n[a]=Ue(t[a],r))}),n}function xe(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ya,r.isMergeableObject=r.isMergeableObject||Ua,r.cloneUnlessOtherwiseSpecified=Ue;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Qa(e,t,r):Ue(t,r)}xe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return xe(n,a,r)},{})};var Za=xe,Ja=Za;const Ka=ka(Ja);var Nt=function(e,t){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Nt(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var te=function(){return te=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},te.apply(this,arguments)};function ei(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Et(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function xt(e,t){var r=t&&t.cache?t.cache:si,n=t&&t.serializer?t.serializer:ii,a=t&&t.strategy?t.strategy:ni;return a(e,{cache:r,serializer:n})}function ti(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ri(e,t,r,n){var a=ti(n)?n:r(n),i=t.get(a);return typeof i=="undefined"&&(i=e.call(this,n),t.set(a,i)),i}function sn(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),i=t.get(a);return typeof i=="undefined"&&(i=e.apply(this,n),t.set(a,i)),i}function un(e,t,r,n,a){return r.bind(t,e,n,a)}function ni(e,t){var r=e.length===1?ri:sn;return un(e,this,r,t.cache.create(),t.serializer)}function ai(e,t){return un(e,this,sn,t.cache.create(),t.serializer)}var ii=function(){return JSON.stringify(arguments)},oi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),si={create:function(){return new oi}},Tt={variadic:ai},tt=function(){return tt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},tt.apply(this,arguments)};var S;(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"})(S||(S={}));var L;(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"})(L||(L={}));var Te;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Te||(Te={}));function mr(e){return e.type===L.literal}function ui(e){return e.type===L.argument}function ln(e){return e.type===L.number}function cn(e){return e.type===L.date}function hn(e){return e.type===L.time}function fn(e){return e.type===L.select}function dn(e){return e.type===L.plural}function li(e){return e.type===L.pound}function mn(e){return e.type===L.tag}function gn(e){return!!(e&&typeof e=="object"&&e.type===Te.number)}function It(e){return!!(e&&typeof e=="object"&&e.type===Te.dateTime)}var pn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ci=/(?:[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 hi(e){var t={};return e.replace(ci,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var U=function(){return U=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},U.apply(this,arguments)};var fi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function di(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(fi).filter(function(d){return d.length>0}),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function mi(e){return e.replace(/^(.*?)-/,"")}var gr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vn=/^(@+)?(\+|#+)?[rs]?$/g,gi=/(\*)(0+)|(#+)(0+)|(0+)/g,bn=/^(0+)$/;function pr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(vn,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function yn(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 pi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!bn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vr(e){var t={},r=yn(e);return r||t}function vi(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=mi(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=U(U(U({},t),{notation:"scientific"}),a.options.reduce(function(u,l){return U(U({},u),vr(l))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),a.options.reduce(function(u,l){return U(U({},u),vr(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(a.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(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(gi,function(u,l,c,h,d,m){if(l)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(bn.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(gr.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(gr,function(u,l,c,h,d,m){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&m?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),pr(i)));continue}if(vn.test(a.stem)){t=U(U({},t),pr(a.stem));continue}var o=yn(a.stem);o&&(t=U(U({},t),o));var s=pi(a.stem);s&&(t=U(U({},t),s))}return t}var qe={"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 bi(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===a;)i++,n++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=yi(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else a==="J"?r+="H":r+=a}return r}function yi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=qe[n||""]||qe[r||""]||qe["".concat(r,"-001")]||qe["001"];return a[0]}var Ct,_i=new RegExp("^".concat(pn.source,"*")),wi=new RegExp("".concat(pn.source,"*$"));function E(e,t){return{start:e,end:t}}var Si=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ei=!!String.fromCodePoint,xi=!!Object.fromEntries,Ti=!!String.prototype.codePointAt,Ci=!!String.prototype.trimStart,Pi=!!String.prototype.trimEnd,Oi=!!Number.isSafeInteger,Hi=Oi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Rt=!0;try{var Mi=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Rt=((Ct=Mi.exec("a"))===null||Ct===void 0?void 0:Ct[0])==="a"}catch(e){Rt=!1}var br=Si?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Dt=Ei?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},yr=xi?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var i=a[n],o=i[0],s=i[1];r[o]=s}return r},_n=Ti?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),i;return a<55296||a>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Ai=Ci?function(t){return t.trimStart()}:function(t){return t.replace(_i,"")},Bi=Pi?function(t){return t.trimEnd()}:function(t){return t.replace(wi,"")};function wn(e,t){return new RegExp(e,t)}var kt;if(Rt){var _r=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kt=function(t,r){var n;_r.lastIndex=r;var a=_r.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else kt=function(t,r){for(var n=[];;){var a=_n(t,r);if(a===void 0||Sn(a)||Ri(a))break;n.push(a),r+=a>=65536?2:1}return Dt.apply(void 0,n)};var Li=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,n);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:L.pound,location:E(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Ut(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(a,"/>"),location:E(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ut(this.char()))return this.error(S.INVALID_TAG,E(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(S.UNMATCHED_CLOSING_TAG,E(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:a,children:o,location:E(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,E(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,E(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,E(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ii(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var i=this.tryParseQuote(r);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){a+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var u=E(n,this.clonePosition());return{val:{type:L.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ni(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Dt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Dt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,E(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:a,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=kt(this.message,r),a=r+n.length;this.bumpTo(a);var i=this.clonePosition(),o=E(t,i);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,a){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,E(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Bi(h.val);if(d.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));var m=E(c,this.clonePosition());l={style:d,styleLocation:m}}var p=this.tryParseArgumentClose(a);if(p.err)return p;var v=E(a,this.clonePosition());if(l&&br(l==null?void 0:l.style,"::",0)){var g=Ai(l.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(g,l.styleLocation);return h.err?h:{val:{type:L.number,value:n,location:v,style:h.val},err:null}}else{if(g.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,v);var M=g;this.locale&&(M=bi(g,this.locale));var d={type:Te.dateTime,pattern:M,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?hi(M):{}},O=s==="date"?L.date:L.time;return{val:{type:O,value:n,location:v,style:d},err:null}}}return{val:{type:s==="number"?L.number:s==="date"?L.date:L.time,value:n,location:v,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,E(H,tt({},H)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),x=0;if(s!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),F=this.parseIdentifierIfPossible(),x=h.val}var G=this.tryParsePluralOrSelectOptions(t,s,r,F);if(G.err)return G;var p=this.tryParseArgumentClose(a);if(p.err)return p;var T=E(a,this.clonePosition());return s==="select"?{val:{type:L.select,value:n,options:yr(G.val),location:T},err:null}:{val:{type:L.plural,value:n,options:yr(G.val),offset:x,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,E(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=di(t)}catch(a){return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:Te.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?vi(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var i,o=!1,s=[],u=new Set,l=a.value,c=a.location;;){if(l.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=E(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var v=this.tryParseArgumentClose(m);if(v.err)return v;s.push([l,{value:p.val,location:E(m,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,c=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(S.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=E(a,this.clonePosition());return i?(o*=n,Hi(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=_n(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(br(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Ut(e){return e>=97&&e<=122||e>=65&&e<=90}function Ni(e){return Ut(e)||e===47}function Ii(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 Sn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ri(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 Ft(e){e.forEach(function(t){if(delete t.location,fn(t)||dn(t))for(var r in t.options)delete t.options[r].location,Ft(t.options[r].value);else ln(t)&&gn(t.style)||(cn(t)||hn(t))&&It(t.style)?delete t.style.location:mn(t)&&Ft(t.children)})}function Di(e,t){t===void 0&&(t={}),t=tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Li(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ft(r.val),r.val}var Ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ce||(Ce={}));var ct=function(e){lt(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wr=function(e){lt(t,e);function t(r,n,a,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Ce.INVALID_VALUE,i)||this}return t}(ct),ki=function(e){lt(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Ce.INVALID_VALUE,a)||this}return t}(ct),Ui=function(e){lt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Ce.MISSING_VALUE,n)||this}return t}(ct),q;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(q||(q={}));function Fi(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==q.literal||r.type!==q.literal?t.push(r):n.value+=r.value,t},[])}function Gi(e){return typeof e=="function"}function Ze(e,t,r,n,a,i,o){if(e.length===1&&mr(e[0]))return[{type:q.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var c=l[u];if(mr(c)){s.push({type:q.literal,value:c.value});continue}if(li(c)){typeof i=="number"&&s.push({type:q.literal,value:r.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(a&&h in a))throw new Ui(h,o);var d=a[h];if(ui(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?q.literal:q.object,value:d});continue}if(cn(c)){var m=typeof c.style=="string"?n.date[c.style]:It(c.style)?c.style.parsedOptions:void 0;s.push({type:q.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(hn(c)){var m=typeof c.style=="string"?n.time[c.style]:It(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:q.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(ln(c)){var m=typeof c.style=="string"?n.number[c.style]:gn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(d=d*(m.scale||1)),s.push({type:q.literal,value:r.getNumberFormat(t,m).format(d)});continue}if(mn(c)){var p=c.children,v=c.value,g=a[v];if(!Gi(g))throw new ki(v,"function",o);var M=Ze(p,t,r,n,a,i),O=g(M.map(function(x){return x.value}));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map(function(x){return{type:typeof x=="string"?q.literal:q.object,value:x}}))}if(fn(c)){var H=c.options[d]||c.options.other;if(!H)throw new wr(c.value,d,Object.keys(c.options),o);s.push.apply(s,Ze(H.value,t,r,n,a));continue}if(dn(c)){var H=c.options["=".concat(d)];if(!H){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,Te.MISSING_INTL_API,o);var U=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));M=c.options[U]||c.options.other}if(!M)throw new yr(c.value,d,Object.keys(c.options),o);s.push.apply(s,ze(M.value,t,r,n,a,d-(c.offset||0)));continue}}return Ui(s)}function Gi(e,t){return t?te(te(te({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=te(te({},e[n]),t[n]||{}),r},{})):e}function ji(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Gi(e[n],t[n]),r},te({},e)):e}function Tt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function $i(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:St(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,wt([void 0],r,!1)))},{cache:Tt(e.number),strategy:Et.variadic}),getDateTimeFormat:St(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,wt([void 0],r,!1)))},{cache:Tt(e.dateTime),strategy:Et.variadic}),getPluralRules:St(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,wt([void 0],r,!1)))},{cache:Tt(e.pluralRules),strategy:Et.variadic})}}var Wi=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(h,d){return!h.length||d.type!==z.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return ze(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var s=Ka(o,["formatters"]);this.ast=e.__parse(t,te(te({},s),{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=ji(e.formats,n),this.formatters=a&&a.formatters||$i(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ri,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 Vi(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let a=0;a<r.length;a++)if(typeof n=="object"){if(a>0){const i=r.slice(a,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[a]]}else n=void 0;return n}const se={},Yi=(e,t,r)=>r&&(t in se||(se[t]={}),e in se[t]||(se[t][e]=r),r),wn=(e,t)=>{if(t==null)return;if(t in se&&e in se[t])return se[t][e];const r=lt(t);for(let n=0;n<r.length;n++){const a=r[n],i=qi(a,e);if(i)return Yi(e,t,i)}};let Qt;const Ue=ot({});function Xi(e){return Qt[e]||null}function Sn(e){return e in Qt}function qi(e,t){if(!Sn(e))return null;const r=Xi(e);return Vi(r,t)}function zi(e){if(e==null)return;const t=lt(e);for(let r=0;r<t.length;r++){const n=t[r];if(Sn(n))return n}}function Zt(e,...t){delete se[e],Ue.update(r=>(r[e]=Ja.all([r[e]||{},...t]),r))}Pe([Ue],([e])=>Object.keys(e));Ue.subscribe(e=>Qt=e);const Qe={};function Qi(e,t){Qe[e].delete(t),Qe[e].size===0&&delete Qe[e]}function En(e){return Qe[e]}function Zi(e){return lt(e).map(t=>{const r=En(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ut(e){return e==null?!1:lt(e).some(t=>{var r;return(r=En(t))==null?void 0:r.size})}function Ji(e,t){return Promise.all(t.map(n=>(Qi(e,n),n().then(a=>a.default||a)))).then(n=>Zt(e,...n))}const Ae={};function xn(e){if(!Ut(e))return e in Ae?Ae[e]:Promise.resolve();const t=Zi(e);return Ae[e]=Promise.all(t.map(([r,n])=>Ji(r,n))).then(()=>{if(Ut(e))return xn(e);delete Ae[e]}),Ae[e]}const Ki={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"}}},eo={fallbackLocale:null,loadingDelay:200,formats:Ki,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},to=eo;function Ce(){return to}const Ct=ot(!1);var ro=Object.defineProperty,no=Object.defineProperties,ao=Object.getOwnPropertyDescriptors,_r=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,wr=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,so=(e,t)=>{for(var r in t||(t={}))io.call(t,r)&&wr(e,r,t[r]);if(_r)for(var r of _r(t))oo.call(t,r)&&wr(e,r,t[r]);return e},uo=(e,t)=>no(e,ao(t));let Ft;const et=ot(null);function Sr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function lt(e,t=Ce().fallbackLocale){const r=Sr(e);return t?[...new Set([...r,...Sr(t)])]:r}function me(){return Ft!=null?Ft:void 0}et.subscribe(e=>{Ft=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const lo=e=>{if(e&&zi(e)&&Ut(e)){const{loadingDelay:t}=Ce();let r;return typeof window!="undefined"&&me()!=null&&t?r=window.setTimeout(()=>Ct.set(!0),t):Ct.set(!0),xn(e).then(()=>{et.set(e)}).finally(()=>{clearTimeout(r),Ct.set(!1)})}return et.set(e)},ge=uo(so({},et),{set:lo}),ct=e=>{const t=Object.create(null);return n=>{const a=JSON.stringify(n);return a in t?t[a]:t[a]=e(n)}};var co=Object.defineProperty,tt=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Er=(e,t,r)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t)=>{for(var r in t||(t={}))Tn.call(t,r)&&Er(e,r,t[r]);if(tt)for(var r of tt(t))Cn.call(t,r)&&Er(e,r,t[r]);return e},Oe=(e,t)=>{var r={};for(var n in e)Tn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&tt)for(var n of tt(e))t.indexOf(n)<0&&Cn.call(e,n)&&(r[n]=e[n]);return r};const ke=(e,t)=>{const{formats:r}=Ce();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ho=ct(e=>{var t=e,{locale:r,format:n}=t,a=Oe(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(a=ke("number",n)),new Intl.NumberFormat(r,a)}),fo=ct(e=>{var t=e,{locale:r,format:n}=t,a=Oe(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?a=ke("date",n):Object.keys(a).length===0&&(a=ke("date","short")),new Intl.DateTimeFormat(r,a)}),mo=ct(e=>{var t=e,{locale:r,format:n}=t,a=Oe(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?a=ke("time",n):Object.keys(a).length===0&&(a=ke("time","short")),new Intl.DateTimeFormat(r,a)}),go=(e={})=>{var t=e,{locale:r=me()}=t,n=Oe(t,["locale"]);return ho(Jt({locale:r},n))},po=(e={})=>{var t=e,{locale:r=me()}=t,n=Oe(t,["locale"]);return fo(Jt({locale:r},n))},vo=(e={})=>{var t=e,{locale:r=me()}=t,n=Oe(t,["locale"]);return mo(Jt({locale:r},n))},bo=ct((e,t=me())=>new Wi(e,t,Ce().formats,{ignoreTag:Ce().ignoreTag})),yo=(e,t={})=>{var r,n,a,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=me(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=wn(e,u);if(!c)c=(i=(a=(n=(r=Ce()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?a:l)!=null?i:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!s)return c;let h=c;try{h=bo(c,u).format(s)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},_o=(e,t)=>vo(t).format(e),wo=(e,t)=>po(t).format(e),So=(e,t)=>go(t).format(e),Eo=(e,t=me())=>wn(e,t),Pn=Pe([ge,Ue],()=>yo);Pe([ge],()=>_o);Pe([ge],()=>wo);Pe([ge],()=>So);Pe([ge,Ue],()=>Eo);function xo(e,t){Zt(e,t)}function To(e){ge.set(e)}const Co={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},we="__WIDGET_GLOBAL_STYLE_CACHE__";function On(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Hn(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const a=document.createElement("style");a.innerHTML=n,e&&e.appendChild(a)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Mn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Po(e,t),r;window[we]||(window[we]={}),r=Oo(e,t);const i=r.unsubscribe.bind(r),o=()=>{if(window[we][t]){const s=window[we][t];s.refCount>1?s.refCount=s.refCount-1:delete window[we][t]}i()};return r.unsubscribe=o,r}function Po(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Oo(e,t){return window.emMessageBus.subscribe(t,r=>{var s;if(!e)return;const n=e.getRootNode(),a=window[we];let i=(s=a[t])==null?void 0:s.sheet;i?a[t].refCount=a[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(r),a[t]={sheet:i,refCount:1});const o=n.adoptedStyleSheets||[];o.includes(i)||(n.adoptedStyleSheets=[...o,i])})}/*! *****************************************************************************
3
+ `,Ce.MISSING_INTL_API,o);var F=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));H=c.options[F]||c.options.other}if(!H)throw new wr(c.value,d,Object.keys(c.options),o);s.push.apply(s,Ze(H.value,t,r,n,a,d-(c.offset||0)));continue}}return Fi(s)}function ji(e,t){return t?te(te(te({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=te(te({},e[n]),t[n]||{}),r},{})):e}function Wi(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ji(e[n],t[n]),r},te({},e)):e}function Pt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function $i(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:xt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Et([void 0],r,!1)))},{cache:Pt(e.number),strategy:Tt.variadic}),getDateTimeFormat:xt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Et([void 0],r,!1)))},{cache:Pt(e.dateTime),strategy:Tt.variadic}),getPluralRules:xt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Et([void 0],r,!1)))},{cache:Pt(e.pluralRules),strategy:Tt.variadic})}}var Vi=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(h,d){return!h.length||d.type!==q.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return Ze(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var s=ei(o,["formatters"]);this.ast=e.__parse(t,te(te({},s),{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=Wi(e.formats,n),this.formatters=a&&a.formatters||$i(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Di,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 Yi(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let a=0;a<r.length;a++)if(typeof n=="object"){if(a>0){const i=r.slice(a,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[a]]}else n=void 0;return n}const se={},Xi=(e,t,r)=>r&&(t in se||(se[t]={}),e in se[t]||(se[t][e]=r),r),En=(e,t)=>{if(t==null)return;if(t in se&&e in se[t])return se[t][e];const r=ht(t);for(let n=0;n<r.length;n++){const a=r[n],i=zi(a,e);if(i)return Xi(e,t,i)}};let Jt;const Ge=ut({});function qi(e){return Jt[e]||null}function xn(e){return e in Jt}function zi(e,t){if(!xn(e))return null;const r=qi(e);return Yi(r,t)}function Qi(e){if(e==null)return;const t=ht(e);for(let r=0;r<t.length;r++){const n=t[r];if(xn(n))return n}}function Kt(e,...t){delete se[e],Ge.update(r=>(r[e]=Ka.all([r[e]||{},...t]),r))}Oe([Ge],([e])=>Object.keys(e));Ge.subscribe(e=>Jt=e);const Je={};function Zi(e,t){Je[e].delete(t),Je[e].size===0&&delete Je[e]}function Tn(e){return Je[e]}function Ji(e){return ht(e).map(t=>{const r=Tn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Gt(e){return e==null?!1:ht(e).some(t=>{var r;return(r=Tn(t))==null?void 0:r.size})}function Ki(e,t){return Promise.all(t.map(n=>(Zi(e,n),n().then(a=>a.default||a)))).then(n=>Kt(e,...n))}const Le={};function Cn(e){if(!Gt(e))return e in Le?Le[e]:Promise.resolve();const t=Ji(e);return Le[e]=Promise.all(t.map(([r,n])=>Ki(r,n))).then(()=>{if(Gt(e))return Cn(e);delete Le[e]}),Le[e]}const eo={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"}}},to={fallbackLocale:null,loadingDelay:200,formats:eo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ro=to;function Pe(){return ro}const Ot=ut(!1);var no=Object.defineProperty,ao=Object.defineProperties,io=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,Er=(e,t,r)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uo=(e,t)=>{for(var r in t||(t={}))oo.call(t,r)&&Er(e,r,t[r]);if(Sr)for(var r of Sr(t))so.call(t,r)&&Er(e,r,t[r]);return e},lo=(e,t)=>ao(e,io(t));let jt;const rt=ut(null);function xr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ht(e,t=Pe().fallbackLocale){const r=xr(e);return t?[...new Set([...r,...xr(t)])]:r}function ge(){return jt!=null?jt:void 0}rt.subscribe(e=>{jt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const co=e=>{if(e&&Qi(e)&&Gt(e)){const{loadingDelay:t}=Pe();let r;return typeof window!="undefined"&&ge()!=null&&t?r=window.setTimeout(()=>Ot.set(!0),t):Ot.set(!0),Cn(e).then(()=>{rt.set(e)}).finally(()=>{clearTimeout(r),Ot.set(!1)})}return rt.set(e)},pe=lo(uo({},rt),{set:co}),ft=e=>{const t=Object.create(null);return n=>{const a=JSON.stringify(n);return a in t?t[a]:t[a]=e(n)}};var ho=Object.defineProperty,nt=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Tr=(e,t,r)=>t in e?ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t)=>{for(var r in t||(t={}))Pn.call(t,r)&&Tr(e,r,t[r]);if(nt)for(var r of nt(t))On.call(t,r)&&Tr(e,r,t[r]);return e},He=(e,t)=>{var r={};for(var n in e)Pn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nt)for(var n of nt(e))t.indexOf(n)<0&&On.call(e,n)&&(r[n]=e[n]);return r};const Fe=(e,t)=>{const{formats:r}=Pe();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fo=ft(e=>{var t=e,{locale:r,format:n}=t,a=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(a=Fe("number",n)),new Intl.NumberFormat(r,a)}),mo=ft(e=>{var t=e,{locale:r,format:n}=t,a=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?a=Fe("date",n):Object.keys(a).length===0&&(a=Fe("date","short")),new Intl.DateTimeFormat(r,a)}),go=ft(e=>{var t=e,{locale:r,format:n}=t,a=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?a=Fe("time",n):Object.keys(a).length===0&&(a=Fe("time","short")),new Intl.DateTimeFormat(r,a)}),po=(e={})=>{var t=e,{locale:r=ge()}=t,n=He(t,["locale"]);return fo(er({locale:r},n))},vo=(e={})=>{var t=e,{locale:r=ge()}=t,n=He(t,["locale"]);return mo(er({locale:r},n))},bo=(e={})=>{var t=e,{locale:r=ge()}=t,n=He(t,["locale"]);return go(er({locale:r},n))},yo=ft((e,t=ge())=>new Vi(e,t,Pe().formats,{ignoreTag:Pe().ignoreTag})),_o=(e,t={})=>{var r,n,a,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=ge(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=En(e,u);if(!c)c=(i=(a=(n=(r=Pe()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?a:l)!=null?i:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!s)return c;let h=c;try{h=yo(c,u).format(s)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},wo=(e,t)=>bo(t).format(e),So=(e,t)=>vo(t).format(e),Eo=(e,t)=>po(t).format(e),xo=(e,t=ge())=>En(e,t),Hn=Oe([pe,Ge],()=>_o);Oe([pe],()=>wo);Oe([pe],()=>So);Oe([pe],()=>Eo);Oe([pe,Ge],()=>xo);function To(e,t){Kt(e,t)}function Co(e){pe.set(e)}const Po={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},Se="__WIDGET_GLOBAL_STYLE_CACHE__";function Mn(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function An(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const a=document.createElement("style");a.innerHTML=n,e&&e.appendChild(a)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Bn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Oo(e,t),r;window[Se]||(window[Se]={}),r=Ho(e,t);const i=r.unsubscribe.bind(r),o=()=>{if(window[Se][t]){const s=window[Se][t];s.refCount>1?s.refCount=s.refCount-1:delete window[Se][t]}i()};return r.unsubscribe=o,r}function Oo(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Ho(e,t){return window.emMessageBus.subscribe(t,r=>{var s;if(!e)return;const n=e.getRootNode(),a=window[Se];let i=(s=a[t])==null?void 0:s.sheet;i?a[t].refCount=a[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(r),a[t]={sheet:i,refCount:1});const o=n.adoptedStyleSheets||[];o.includes(i)||(n.adoptedStyleSheets=[...o,i])})}/*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
5
5
 
6
6
  Permission to use, copy, modify, and/or distribute this software for any
@@ -13,6 +13,6 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
13
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */var Gt=function(e,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Gt(e,t)};function Fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function jt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Wt(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}function ie(e){return typeof e=="function"}function An(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Pt=An(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
16
+ ***************************************************************************** */var Wt=function(e,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Wt(e,t)};function je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function $t(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Yt(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}function ie(e){return typeof e=="function"}function Ln(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ht=Ln(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
17
17
  `+r.map(function(n,a){return a+1+") "+n.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Vt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ht=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=jt(o),u=s.next();!u.done;u=s.next()){var l=u.value;l.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ie(c))try{c()}catch(v){i=v instanceof Pt?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=jt(h),m=d.next();!m.done;m=d.next()){var p=m.value;try{xr(p)}catch(v){i=i!=null?i:[],v instanceof Pt?i=Wt(Wt([],$t(i)),$t(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}}if(i)throw new Pt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)xr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Vt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Vt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Bn=ht.EMPTY;function Ln(e){return e instanceof ht||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function xr(e){ie(e)?e():e.unsubscribe()}var Ho={Promise:void 0},Mo={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Wt([e,t],$t(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ao(e){Mo.setTimeout(function(){throw e})}function Tr(){}function Ze(e){e()}var Nn=function(e){Fe(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ln(r)&&r.add(n)):n.destination=No,n}return t.create=function(r,n,a){return new Yt(r,n,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ht),Bo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Xe(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Xe(n)}else Xe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Xe(r)}},e}(),Yt=function(e){Fe(t,e);function t(r,n,a){var i=e.call(this)||this,o;return ie(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:o=r,i.destination=new Bo(o),i}return t}(Nn);function Xe(e){Ao(e)}function Lo(e){throw e}var No={closed:!0,next:Tr,error:Lo,complete:Tr},Io=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ro(e){return e}function Do(e){return e.length===0?Ro:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Cr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var a=this,i=Uo(t)?t:new Yt(t,r,n);return Ze(function(){var o=a,s=o.operator,u=o.source;i.add(s?s.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Pr(r),new r(function(a,i){var o=new Yt({next:function(s){try{t(s)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Io]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Do(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Pr(t),new t(function(n,a){var i;r.subscribe(function(o){return i=o},function(o){return a(o)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Pr(e){var t;return(t=e!=null?e:Ho.Promise)!==null&&t!==void 0?t:Promise}function ko(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Uo(e){return e&&e instanceof Nn||ko(e)&&Ln(e)}var Fo=An(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),In=function(e){Fe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Or(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fo},t.prototype.next=function(r){var n=this;Ze(function(){var a,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=jt(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;Ze(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ze(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,a=this,i=a.hasError,o=a.isStopped,s=a.observers;return i||o?Bn:(this.currentObservers=null,s.push(r),new ht(function(){n.currentObservers=null,Vt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,i=n.thrownError,o=n.isStopped;a?r.error(i):o&&r.complete()},t.prototype.asObservable=function(){var r=new Cr;return r.source=this,r},t.create=function(r,n){return new Or(r,n)},t}(Cr),Or=function(e){Fe(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:Bn},t}(In),Rn={now:function(){return(Rn.delegate||Date).now()},delegate:void 0},Go=function(e){Fe(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=Rn);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,a=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,u=n._windowTime;a||(i.push(r),!o&&i.push(s.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,i=a._infiniteTimeWindow,o=a._buffer,s=o.slice(),u=0;u<s.length&&!r.closed;u+=i?1:2)r.next(s[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,i=r._buffer,o=r._infiniteTimeWindow,s=(o?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!o){for(var u=a.now(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},t}(In);const Hr=[],Mr={},jo=(e,t=0)=>{if(Hr.indexOf(e)==-1){const r=new Go(t);Mr[e]=r,Hr.push(e)}return Mr[e]};window.emWidgets={topic:jo};const $o=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),rt=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const Wo=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-DdnNq_Eo.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function fe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function V(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function q(e){V(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||nt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Vo(e,t){V(2,arguments);var r=q(e).getTime(),n=fe(t);return new Date(r+n)}var Yo={};function ft(){return Yo}function Xo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qo(e){return V(1,arguments),e instanceof Date||nt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zo(e){if(V(1,arguments),!qo(e)&&typeof e!="number")return!1;var t=q(e);return!isNaN(Number(t))}function Ar(e,t){return V(2,arguments),q(e).getTime()-q(t).getTime()}function Qo(e,t){V(2,arguments);var r=fe(t);return Vo(e,-r)}var Zo=864e5;function Jo(e){V(1,arguments);var t=q(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/Zo)+1}function at(e){V(1,arguments);var t=1,r=q(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Dn(e){V(1,arguments);var t=q(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=at(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=at(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Ko(e){V(1,arguments);var t=Dn(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=at(r);return n}var es=6048e5;function ts(e){V(1,arguments);var t=q(e),r=at(t).getTime()-Ko(t).getTime();return Math.round(r/es)+1}function it(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=ft(),h=fe((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=q(e),m=d.getUTCDay(),p=(m<h?7:0)+m-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function kn(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=q(e),h=c.getUTCFullYear(),d=ft(),m=fe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,m),p.setUTCHours(0,0,0,0);var v=it(p,t),g=new Date(0);g.setUTCFullYear(h,0,m),g.setUTCHours(0,0,0,0);var B=it(g,t);return c.getTime()>=v.getTime()?h+1:c.getTime()>=B.getTime()?h:h-1}function rs(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=ft(),h=fe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=kn(e,t),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var p=it(m,t);return p}var ns=6048e5;function as(e,t){V(1,arguments);var r=q(e),n=it(r,t).getTime()-rs(r,t).getTime();return Math.round(n/ns)+1}function C(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var oe={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return C(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):C(n+1,2)},d:function(t,r){return C(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return C(t.getUTCHours()%12||12,r.length)},H:function(t,r){return C(t.getUTCHours(),r.length)},m:function(t,r){return C(t.getUTCMinutes(),r.length)},s:function(t,r){return C(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return C(i,r.length)}},ye={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},is={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oe.y(t,r)},Y:function(t,r,n,a){var i=kn(t,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return C(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):C(o,r.length)},R:function(t,r){var n=Dn(t);return C(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return C(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return C(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return C(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return oe.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return C(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=as(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):C(i,r.length)},I:function(t,r,n){var a=ts(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):C(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):oe.d(t,r)},D:function(t,r,n){var a=Jo(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):C(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return C(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return C(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=ye.noon:a===0?i=ye.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=ye.evening:a>=12?i=ye.afternoon:a>=4?i=ye.morning:i=ye.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oe.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oe.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oe.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oe.s(t,r)},S:function(t,r){return oe.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Lr(o);case"XXXX":case"XX":return ce(o);case"XXXXX":case"XXX":default:return ce(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Lr(o);case"xxxx":case"xx":return ce(o);case"xxxxx":case"xxx":default:return ce(o,":")}},O:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Br(o,":");case"OOOO":default:return"GMT"+ce(o,":")}},z:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Br(o,":");case"zzzz":default:return"GMT"+ce(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return C(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return C(o,r.length)}};function Br(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t;return r+String(a)+o+C(i,2)}function Lr(e,t){if(e%60===0){var r=e>0?"-":"+";return r+C(Math.abs(e)/60,2)}return ce(e,t)}function ce(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=C(Math.floor(a/60),2),o=C(a%60,2);return n+i+r+o}var Nr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Un=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},os=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Nr(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Nr(a,r)).replace("{{time}}",Un(i,r))},ss={p:Un,P:os},us=["D","DD"],ls=["YY","YYYY"];function cs(e){return us.indexOf(e)!==-1}function hs(e){return ls.indexOf(e)!==-1}function Ir(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ds=function(t,r,n){var a,i=fs[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Ot(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ms={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ps={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vs={date:Ot({formats:ms,defaultWidth:"full"}),time:Ot({formats:gs,defaultWidth:"full"}),dateTime:Ot({formats:ps,defaultWidth:"full"})},bs={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ys=function(t,r,n,a){return bs[t]};function Be(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var _s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ws={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ss={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Es={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xs={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ts={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cs=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ps={ordinalNumber:Cs,era:Be({values:_s,defaultWidth:"wide"}),quarter:Be({values:ws,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Be({values:Ss,defaultWidth:"wide"}),day:Be({values:Es,defaultWidth:"wide"}),dayPeriod:Be({values:xs,defaultWidth:"wide",formattingValues:Ts,defaultFormattingWidth:"wide"})};function Le(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Hs(s,function(h){return h.test(o)}):Os(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function Os(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Hs(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ms(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var As=/^(\d+)(th|st|nd|rd)?/i,Bs=/\d+/i,Ls={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ns={any:[/^b/i,/^(a|c)/i]},Is={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rs={any:[/1/i,/2/i,/3/i,/4/i]},Ds={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ks={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Us={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Fs={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gs={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},js={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$s={ordinalNumber:Ms({matchPattern:As,parsePattern:Bs,valueCallback:function(t){return parseInt(t,10)}}),era:Le({matchPatterns:Ls,defaultMatchWidth:"wide",parsePatterns:Ns,defaultParseWidth:"any"}),quarter:Le({matchPatterns:Is,defaultMatchWidth:"wide",parsePatterns:Rs,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Le({matchPatterns:Ds,defaultMatchWidth:"wide",parsePatterns:ks,defaultParseWidth:"any"}),day:Le({matchPatterns:Us,defaultMatchWidth:"wide",parsePatterns:Fs,defaultParseWidth:"any"}),dayPeriod:Le({matchPatterns:Gs,defaultMatchWidth:"any",parsePatterns:js,defaultParseWidth:"any"})},Ws={code:"en-US",formatDistance:ds,formatLong:vs,formatRelative:ys,localize:Ps,match:$s,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ys=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xs=/^'([^]*?)'?$/,qs=/''/g,zs=/[a-zA-Z]/;function Qs(e,t,r){var n,a,i,o,s,u,l,c,h,d,m,p,v,g;V(2,arguments);var B=String(t),H=ft(),M=(n=(a=void 0)!==null&&a!==void 0?a:H.locale)!==null&&n!==void 0?n:Ws,U=fe((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:H.firstWeekContainsDate)!==null&&o!==void 0?o:(l=H.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=fe((h=(d=(m=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&m!==void 0?m:H.weekStartsOn)!==null&&d!==void 0?d:(v=H.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&h!==void 0?h:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var F=q(e);if(!zo(F))throw new RangeError("Invalid time value");var T=Xo(F),O=Qo(F,T),_={firstWeekContainsDate:U,weekStartsOn:x,locale:M,_originalDate:F},A=B.match(Ys).map(function(Y){var $=Y[0];if($==="p"||$==="P"){var Z=ss[$];return Z(Y,M.formatLong)}return Y}).join("").match(Vs).map(function(Y){if(Y==="''")return"'";var $=Y[0];if($==="'")return Zs(Y);var Z=is[$];if(Z)return hs(Y)&&Ir(Y,t,String(e)),cs(Y)&&Ir(Y,t,String(e)),Z(O,Y,M.localize,_);if($.match(zs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return Y}).join("");return A}function Zs(e){var t=e.match(Xs);return t?t[1].replace(qs,"'"):e}function Js(e,t){V(2,arguments);var r=q(e),n=q(t);return r.getTime()>n.getTime()}function Ks(e,t){V(2,arguments);var r=q(e),n=q(t);return r.getTime()<n.getTime()}function Fn(e,t,r){return window.emMessageBus&&(t=window.emMessageBus.subscribe(e,r)),t}function eu(e){qr(e,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function Rr(e,t,r){const n=e.slice();return n[67]=t[r],n}function Dr(e){let t,r=e[21]("cancel")+"",n,a,i,o;return{c(){t=N("small"),n=re(r),y(t,"class",a="SearchCancelButton "+(e[16]?"NotVisible":""))},m(s,u){W(s,t,u),P(t,n),i||(o=he(t,"click",e[41]),i=!0)},p(s,u){u[0]&2097152&&r!==(r=s[21]("cancel")+"")&&ue(n,r),u[0]&65536&&a!==(a="SearchCancelButton "+(s[16]?"NotVisible":""))&&y(t,"class",a)},d(s){s&&j(t),i=!1,o()}}}function tu(e){let t,r,n,a;function i(c,h){if(c[17]==!0&&c[14].length<2)return au;if(c[13].length!=0)return nu}let o=i(e),s=o&&o(e),u=e[16]===!1&&Gr(e),l=e[14].length>=2&&e[13].length==0&&$r(e);return{c(){s&&s.c(),t=J(),r=N("div"),u&&u.c(),n=J(),l&&l.c(),y(r,"class",a="SearchResultsContainer "+(e[17]==!0?"":"NotVisible"))},m(c,h){s&&s.m(c,h),W(c,t,h),W(c,r,h),u&&u.m(r,null),P(r,n),l&&l.m(r,null)},p(c,h){o===(o=i(c))&&s?s.p(c,h):(s&&s.d(1),s=o&&o(c),s&&(s.c(),s.m(t.parentNode,t))),c[16]===!1?u?u.p(c,h):(u=Gr(c),u.c(),u.m(r,n)):u&&(u.d(1),u=null),c[14].length>=2&&c[13].length==0?l?l.p(c,h):(l=$r(c),l.c(),l.m(r,null)):l&&(l.d(1),l=null),h[0]&131072&&a!==(a="SearchResultsContainer "+(c[17]==!0?"":"NotVisible"))&&y(r,"class",a)},d(c){c&&(j(t),j(r)),s&&s.d(c),u&&u.d(),l&&l.d()}}}function ru(e){let t,r=e[21]("loading")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","LoadingContent")},m(a,i){W(a,t,i),P(t,n)},p(a,i){i[0]&2097152&&r!==(r=a[21]("loading")+"")&&ue(n,r)},d(a){a&&j(t)}}}function nu(e){let t,r=e[21]("searchResult")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","SearchMessage")},m(a,i){W(a,t,i),P(t,n)},p(a,i){i[0]&2097152&&r!==(r=a[21]("searchResult")+"")&&ue(n,r)},d(a){a&&j(t)}}}function au(e){let t,r,n=e[13].length!==0&&kr(e),a=e[13].length==0&&Ur(e);return{c(){n&&n.c(),t=J(),a&&a.c(),r=zt()},m(i,o){n&&n.m(i,o),W(i,t,o),a&&a.m(i,o),W(i,r,o)},p(i,o){i[13].length!==0?n?n.p(i,o):(n=kr(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),i[13].length==0?a?a.p(i,o):(a=Ur(i),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(i){i&&(j(t),j(r)),n&&n.d(i),a&&a.d(i)}}}function kr(e){let t,r=e[21]("recentSearch")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","SearchMessage")},m(a,i){W(a,t,i),P(t,n)},p(a,i){i[0]&2097152&&r!==(r=a[21]("recentSearch")+"")&&ue(n,r)},d(a){a&&j(t)}}}function Ur(e){let t,r,n,a=e[21]("noRecentSearches")+"",i,o,s=e[11]==="true"&&Fr();return{c(){t=N("div"),s&&s.c(),r=J(),n=N("p"),i=re(a),y(n,"class","SearchMessage"),y(t,"class",o="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(u,l){W(u,t,l),s&&s.m(t,null),P(t,r),P(t,n),P(n,i)},p(u,l){u[11]==="true"?s||(s=Fr(),s.c(),s.m(t,r)):s&&(s.d(1),s=null),l[0]&2097152&&a!==(a=u[21]("noRecentSearches")+"")&&ue(i,a),l[0]&2048&&o!==(o="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&y(t,"class",o)},d(u){u&&j(t),s&&s.d()}}}function Fr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',y(t,"class","SearchErrorIcon")},m(r,n){W(r,t,n)},d(r){r&&j(t)}}}function Gr(e){let t=[],r=new Map,n,a=At(e[13]);const i=o=>o[67].id;for(let o=0;o<a.length;o+=1){let s=Rr(e,a,o),u=i(s);r.set(u,t[o]=jr(u,s))}return{c(){for(let o=0;o<t.length;o+=1)t[o].c();n=zt()},m(o,s){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(o,s);W(o,n,s)},p(o,s){s[0]&77079551&&(a=At(o[13]),t=Aa(t,s,i,1,o,a,r,n.parentNode,Ma,jr,n,Rr))},d(o){o&&j(n);for(let s=0;s<t.length;s+=1)t[s].d(o)}}}function jr(e,t){let r,n,a,i,o,s,u,l,c,h,d,m,p;return{key:e,first:null,c(){var v,g;r=N("casino-game-thumbnail-nd"),b(r,"endpoint",t[0]),b(r,"session",t[19]),b(r,"userid",t[20]),b(r,"favorites",t[9]),b(r,"lang",t[1]),b(r,"gamethumbnail",n=t[67].thumbnail),b(r,"icon",a=t[23]((v=t[67])==null?void 0:v.icons)),b(r,"gamename",i=t[67].name),b(r,"gamevendor",o=t[67].vendor.name),b(r,"gameLaunchUrl",s=t[67].launchUrl),b(r,"gameisnew",u=t[67].isNew),b(r,"gametag",l=((g=t[67].advancedTags)==null?void 0:g.length)>0&&t[26](t[67].advancedTags)),b(r,"gamecellsize",c=t[67].cellSize),b(r,"gameid",h=t[67].id),b(r,"showgamename",t[7]),b(r,"gamefunmode",d=t[67].hasFunMode),b(r,"gamefavorite",m=t[67].isFavorite),b(r,"livelobbyendpoint",p=t[67].details?t[67].launchUrl:""),b(r,"integratedgameframedesktop",t[5]),b(r,"integratedgameframemobile",t[6]),b(r,"clientstyling",t[3]),b(r,"clientstylingurl",t[4]),b(r,"gamepagemodalurl",t[8]),b(r,"mbsource",t[2]),this.first=r},m(v,g){W(v,r,g)},p(v,g){var B,H;t=v,g[0]&1&&b(r,"endpoint",t[0]),g[0]&524288&&b(r,"session",t[19]),g[0]&1048576&&b(r,"userid",t[20]),g[0]&512&&b(r,"favorites",t[9]),g[0]&2&&b(r,"lang",t[1]),g[0]&8192&&n!==(n=t[67].thumbnail)&&b(r,"gamethumbnail",n),g[0]&8192&&a!==(a=t[23]((B=t[67])==null?void 0:B.icons))&&b(r,"icon",a),g[0]&8192&&i!==(i=t[67].name)&&b(r,"gamename",i),g[0]&8192&&o!==(o=t[67].vendor.name)&&b(r,"gamevendor",o),g[0]&8192&&s!==(s=t[67].launchUrl)&&b(r,"gameLaunchUrl",s),g[0]&8192&&u!==(u=t[67].isNew)&&b(r,"gameisnew",u),g[0]&8192&&l!==(l=((H=t[67].advancedTags)==null?void 0:H.length)>0&&t[26](t[67].advancedTags))&&b(r,"gametag",l),g[0]&8192&&c!==(c=t[67].cellSize)&&b(r,"gamecellsize",c),g[0]&8192&&h!==(h=t[67].id)&&b(r,"gameid",h),g[0]&128&&b(r,"showgamename",t[7]),g[0]&8192&&d!==(d=t[67].hasFunMode)&&b(r,"gamefunmode",d),g[0]&8192&&m!==(m=t[67].isFavorite)&&b(r,"gamefavorite",m),g[0]&8192&&p!==(p=t[67].details?t[67].launchUrl:"")&&b(r,"livelobbyendpoint",p),g[0]&32&&b(r,"integratedgameframedesktop",t[5]),g[0]&64&&b(r,"integratedgameframemobile",t[6]),g[0]&8&&b(r,"clientstyling",t[3]),g[0]&16&&b(r,"clientstylingurl",t[4]),g[0]&256&&b(r,"gamepagemodalurl",t[8]),g[0]&4&&b(r,"mbsource",t[2])},d(v){v&&j(r)}}}function $r(e){let t,r,n,a=e[21]("notFound")+"",i,o,s,u=e[21]("notFoundText")+"",l,c,h=e[11]==="true"&&Wr();return{c(){t=N("div"),h&&h.c(),r=J(),n=N("p"),i=re(a),o=J(),s=N("p"),l=re(u),y(n,"class","SearchMessage"),y(t,"class",c="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(d,m){W(d,t,m),h&&h.m(t,null),P(t,r),P(t,n),P(n,i),P(t,o),P(t,s),P(s,l)},p(d,m){d[11]==="true"?h||(h=Wr(),h.c(),h.m(t,r)):h&&(h.d(1),h=null),m[0]&2097152&&a!==(a=d[21]("notFound")+"")&&ue(i,a),m[0]&2097152&&u!==(u=d[21]("notFoundText")+"")&&ue(l,u),m[0]&2048&&c!==(c="ResultsContainerError "+(d[11]=="true"?"WithIcon":""))&&y(t,"class",c)},d(d){d&&j(t),h&&h.d()}}}function Wr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',y(t,"class","SearchErrorIcon")},m(r,n){W(r,t,n)},d(r){r&&j(t)}}}function iu(e){let t,r,n,a,i,o,s,u,l,c,h,d,m,p,v,g,B,H,M,U,x=e[10]==="true"&&Dr(e);function F(_,A){return _[18]?ru:tu}let T=F(e),O=T(e);return{c(){t=N("div"),r=N("div"),n=N("div"),a=N("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=J(),o=N("input"),u=J(),l=N("span"),c=Je("svg"),h=Je("path"),m=J(),x&&x.c(),v=J(),g=N("div"),H=J(),O.c(),y(a,"class","SearchIcon"),y(o,"class","SearchInput"),y(o,"type","search"),y(o,"placeholder",s=e[21]("placeHolderSearchGames")),y(o,"maxlength",Gn),y(h,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),y(h,"stroke","#717171"),y(h,"stroke-width","2"),y(h,"stroke-linecap","round"),y(h,"stroke-linejoin","round"),y(c,"width","11"),y(c,"height","11"),y(c,"fill","none"),y(c,"xmlns","http://www.w3.org/2000/svg"),y(l,"class",d="SearchClearButton "+(e[10]!="true"?"WithoutCancel":"")+" "+(e[14].length!=0?"":"NotVisible")),y(n,"class",p="Search "+(e[16]?"":"SearchAnimation")),y(r,"class","SearchWrap"),y(g,"class",B=e[10]!="true"?"OverlayCancel":""),y(t,"class",(rt(e[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,A){W(_,t,A),P(t,r),P(r,n),P(n,a),P(n,i),P(n,o),lr(o,e[14]),e[39](o),P(n,u),P(n,l),P(l,c),P(c,h),P(n,m),x&&x.m(n,null),P(t,v),P(t,g),P(t,H),O.m(t,null),e[42](t),M||(U=[he(o,"input",e[38]),he(o,"focus",e[24]),he(o,"input",e[29]),he(l,"click",e[40]),he(g,"click",e[25])],M=!0)},p(_,A){A[0]&2097152&&s!==(s=_[21]("placeHolderSearchGames"))&&y(o,"placeholder",s),A[0]&16384&&o.value!==_[14]&&lr(o,_[14]),A[0]&17408&&d!==(d="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&y(l,"class",d),_[10]==="true"?x?x.p(_,A):(x=Dr(_),x.c(),x.m(n,null)):x&&(x.d(1),x=null),A[0]&65536&&p!==(p="Search "+(_[16]?"":"SearchAnimation"))&&y(n,"class",p),A[0]&1024&&B!==(B=_[10]!="true"?"OverlayCancel":"")&&y(g,"class",B),T===(T=F(_))&&O?O.p(_,A):(O.d(1),O=T(_),O&&(O.c(),O.m(t,null)))},i:K,o:K,d(_){_&&j(t),e[39](null),x&&x.d(),O.d(),e[42](null),M=!1,de(U)}}}let Gn=50;function ou(e,t,r){let n;Xr(e,Pn,f=>r(21,n=f));let{endpoint:a=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:s=""}=t,{lang:u="en"}=t,{mbsource:l}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:d="false"}=t,{integratedgameframemobile:m="false"}=t,{showgamename:p=""}=t,{gamepagemodalurl:v="true"}=t,{translationurl:g=""}=t,{showfavorites:B=""}=t,{cancelbutton:H="true"}=t,{notfoundicon:M="false"}=t,{controlchannel:U="casino-search"}=t,{allowedorigins:x=window.location.origin}=t,{requiredicon:F="false"}=t;const T=()=>(x||"").split(",").map(f=>f.trim()).filter(Boolean);let O=window.navigator.userAgent,_=[],A=[],Y={},$="",Z,Ge=!0,ne=!1,ee=!1,ae,$n,Wn,je=!1,$e,We,Kt=[];const dt=f=>{Object.keys(f).forEach(w=>{xo(w,f[w])})},Vn=()=>{fetch(g).then(w=>w.json()).then(w=>{dt(w)}).catch(w=>{console.log(w)})};dt(Co);const er=f=>{var w;f.data&&f.data.type=="SearchedItemClicked"&&ta(f.data.gameId),f.data.type=="UserSessionID"&&(r(19,$e=f.data.session),r(20,We=f.data.userid),r(37,je=!0)),f.data.type=="CategoryChange"&&Me();try{const I=f.origin===window.location.origin,R=T();if(!(I||R.length>0&&R.includes(f.origin))||!f.data||f.data.channel!==U)return;switch(f.data.type){case"OpenSearch":gt();break;case"CloseSearch":tr();break;case"ToggleSearch":Xn();break;case"SetSearchQuery":qn(String((w=f.data.value)!=null?w:""));break}}catch(I){}},Yn=f=>F!=="true"?void 0:Object.values(f!=null?f:{}).pop(),mt=()=>{if(r(16,Ge=!1),r(17,ne=!0),a&&i&&u&&$.length<2){r(13,_=[]);let f=localStorage.getItem("searchedGamesWds_casino"),w=[];f&&(w=f.split(","));let I=[],R=0,G=w.length;if(G>0){for(R=0;R<G;R++){let Q=new URL(`${a}/v1/casino/games/${w[R]}`);Q.searchParams.append("language",u),Q.searchParams.append("datasource",i),Q.searchParams.append("platform",rt(O)),I.push(Zn(Q,w[R]))}Promise.all(I).then(Q=>{Q=Q.filter(function(le){return!!le}),r(13,_=Q.map(le=>(le.isFavorite=rr(le.id),le))),_.length?He("searchSuccess","SearchWidget"):He("searchFail","SearchWidget")}).catch(Q=>{He("searchError","SearchWidget")})}}ar(ne),He("searchAttempt","SearchWidget"),He("SearchInitialized","SearchWidget")};function gt(){ne||(mt(),requestAnimationFrame(()=>Z==null?void 0:Z.focus()),pe({type:"SearchOpen"}))}function tr(){ne&&(Me(),pe({type:"SearchClose"}))}function Xn(){ne?tr():gt()}function qn(f){r(14,$=(f!=null?f:"").slice(0,Gn)),ne||gt(),ir()}const He=(f,w)=>{typeof gtag=="function"&&gtag("event",f,{context:w})},zn=()=>{H!="true"&&Me()},Qn=f=>new Promise((w,I)=>{r(18,ee=!0),fetch(f.href).then(R=>R.json()).then(R=>{r(18,ee=!1),w(R)}).catch(R=>{r(18,ee=!1),console.error(R);try{pe({type:"SearchError",message:String(R)})}catch(G){}I(R)})}),Zn=(f,w)=>new Promise((I,R)=>{r(18,ee=!0),w&&Object.keys(Y).indexOf(w)>=0?(r(18,ee=!1),I(Y[w])):fetch(f).then(G=>G.json()).then(G=>{r(18,ee=!1),G.error||(Y[G[0].gameId]=G[0]),I(G[0])}).catch(G=>{r(18,ee=!1),console.error(G);try{pe({type:"SearchError",message:String(G)})}catch(Q){}R(G)})}),Jn=()=>{const f=new URL(`${a}/v1/player/${We}/favorites/`);r(18,ee=!0);let w={method:"GET",headers:{"X-SessionID":$e}};fetch(f.href,w).then(I=>I.json()).then(I=>{r(18,ee=!1),Kt=I.items.map(R=>R.id)})},Kn=()=>{r(37,je=!0),r(19,$e=o),r(20,We=s)},rr=f=>Kt.findIndex(w=>w==f)!==-1,ea=f=>{if((f==null?void 0:f.length)===0)return"";let w,I=99999999999,R;const G=new Date(Date.now());return f.forEach((Q,le)=>{const la=new Date(Q.schedules[0].startTime),pt=new Date(Q.schedules[0].endTime);Ar(new Date(pt),new Date(G))<I&&(I=Ar(new Date(pt),new Date(G)),R=le),Js(new Date(G),new Date(la))&&Ks(new Date(G),new Date(pt))&&(w=f[R].name)}),w},ta=f=>{if(A=localStorage.getItem("searchedGamesWds_casino"),A?A=A.split(","):A=[],A.indexOf(f)===-1){let w;A.unshift(f),w=A.join(","),localStorage.setItem("searchedGamesWds_casino",w)}},Me=()=>{r(14,$=""),r(16,Ge=!0),r(18,ee=!1),r(13,_=[]),r(17,ne=!1),ar(ne)},nr=()=>{r(14,$=""),Z.focus()},ar=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href),pe({type:f?"SearchOpen":"SearchClose"})};function pe(f){try{const w=bt({channel:U},f);window.postMessage(w,window.location.href)}catch(w){}}const ra=()=>{To(u)},ir=()=>yt(this,null,function*(){if($.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",i),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",rt(O)),f.searchParams.append("language",u),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${$}`),Qn(f).then(w=>{r(13,_=w.items.map(I=>(I.isFavorite=rr(I.id),I)));try{pe({type:"SearchResults",count:_.length})}catch(I){}})}else Ge||mt()}),na=Wo(ir,500);zr(()=>(window.addEventListener("message",er,!1),()=>{window.removeEventListener("message",er)}));function aa(){$=this.value,r(14,$)}function ia(f){Re[f?"unshift":"push"](()=>{Z=f,r(15,Z)})}const oa=()=>nr(),sa=()=>Me();function ua(f){Re[f?"unshift":"push"](()=>{ae=f,r(12,ae)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(30,i=f.datasource),"session"in f&&r(31,o=f.session),"userid"in f&&r(32,s=f.userid),"lang"in f&&r(1,u=f.lang),"mbsource"in f&&r(2,l=f.mbsource),"clientstyling"in f&&r(3,c=f.clientstyling),"clientstylingurl"in f&&r(4,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(5,d=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(6,m=f.integratedgameframemobile),"showgamename"in f&&r(7,p=f.showgamename),"gamepagemodalurl"in f&&r(8,v=f.gamepagemodalurl),"translationurl"in f&&r(33,g=f.translationurl),"showfavorites"in f&&r(9,B=f.showfavorites),"cancelbutton"in f&&r(10,H=f.cancelbutton),"notfoundicon"in f&&r(11,M=f.notfoundicon),"controlchannel"in f&&r(34,U=f.controlchannel),"allowedorigins"in f&&r(35,x=f.allowedorigins),"requiredicon"in f&&r(36,F=f.requiredicon)},e.$$.update=()=>{e.$$.dirty[0]&2&&u&&ra(),e.$$.dirty[1]&4&&g&&Vn(),e.$$.dirty[1]&3&&o&&s&&Kn(),e.$$.dirty[0]&512|e.$$.dirty[1]&64&&B&&je&&Jn(),e.$$.dirty[0]&4104&&c&&ae&&On(ae,c),e.$$.dirty[0]&4112&&h&&ae&&Hn(ae,h),e.$$.dirty[0]&4100&&l&&ae&&Mn(ae,`${l}.Style`,$n),e.$$.dirty[0]&4|e.$$.dirty[1]&4&&l&&!g&&Fn(`${l}.Translation`,Wn,dt)},[a,u,l,c,h,d,m,p,v,B,H,M,ae,_,$,Z,Ge,ne,ee,$e,We,n,O,Yn,mt,zn,ea,Me,nr,na,i,o,s,g,U,x,F,je,aa,ia,oa,sa,ua]}class jn extends rn{constructor(t){super(),Kr(this,t,ou,iu,qt,{endpoint:0,datasource:30,session:31,userid:32,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:33,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:34,allowedorigins:35,requiredicon:36},eu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),k()}get datasource(){return this.$$.ctx[30]}set datasource(t){this.$$set({datasource:t}),k()}get session(){return this.$$.ctx[31]}set session(t){this.$$set({session:t}),k()}get userid(){return this.$$.ctx[32]}set userid(t){this.$$set({userid:t}),k()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),k()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),k()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),k()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),k()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),k()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),k()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),k()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),k()}get translationurl(){return this.$$.ctx[33]}set translationurl(t){this.$$set({translationurl:t}),k()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),k()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),k()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),k()}get controlchannel(){return this.$$.ctx[34]}set controlchannel(t){this.$$set({controlchannel:t}),k()}get allowedorigins(){return this.$$.ctx[35]}set allowedorigins(t){this.$$set({allowedorigins:t}),k()}get requiredicon(){return this.$$.ctx[36]}set requiredicon(t){this.$$set({requiredicon:t}),k()}}tn(jn,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{}},[],[],!0);const su=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"}));exports.$format=Pn;exports.$locale=ge;exports.CasinoSearchNd_ce=su;exports.HtmlTag=Ea;exports.SvelteComponent=rn;exports.addMessages=Zt;exports.append=P;exports.append_styles=qr;exports.attr=y;exports.binding_callbacks=Re;exports.component_subscribe=Xr;exports.create_custom_element=tn;exports.destroy_each=ya;exports.detach=j;exports.element=N;exports.empty=zt;exports.ensure_array_like=At;exports.flush=k;exports.format=Qs;exports.getDevice=rt;exports.getStreamTranslations=Fn;exports.init=Kr;exports.insert=W;exports.isMobile=$o;exports.listen=he;exports.noop=K;exports.onMount=zr;exports.safe_not_equal=qt;exports.setClientStyling=On;exports.setClientStylingURL=Hn;exports.setStreamStyling=Mn;exports.set_custom_element_data=b;exports.set_data=ue;exports.set_style=wa;exports.space=J;exports.src_url_equal=ga;exports.svg_element=Je;exports.text=re;exports.tick=Ca;exports.toggle_class=Sa;
18
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Xt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var dt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$t(o),u=s.next();!u.done;u=s.next()){var l=u.value;l.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ie(c))try{c()}catch(v){i=v instanceof Ht?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=$t(h),m=d.next();!m.done;m=d.next()){var p=m.value;try{Cr(p)}catch(v){i=i!=null?i:[],v instanceof Ht?i=Yt(Yt([],Vt(i)),Vt(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}}if(i)throw new Ht(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Cr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Xt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Xt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Nn=dt.EMPTY;function In(e){return e instanceof dt||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Cr(e){ie(e)?e():e.unsubscribe()}var Mo={Promise:void 0},Ao={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Yt([e,t],Vt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Bo(e){Ao.setTimeout(function(){throw e})}function Pr(){}function Ke(e){e()}var Rn=function(e){je(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,In(r)&&r.add(n)):n.destination=Io,n}return t.create=function(r,n,a){return new qt(r,n,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(dt),Lo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ze(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ze(n)}else ze(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ze(r)}},e}(),qt=function(e){je(t,e);function t(r,n,a){var i=e.call(this)||this,o;return ie(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:o=r,i.destination=new Lo(o),i}return t}(Rn);function ze(e){Bo(e)}function No(e){throw e}var Io={closed:!0,next:Pr,error:No,complete:Pr},Ro=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Do(e){return e}function ko(e){return e.length===0?Do:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Or=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var a=this,i=Fo(t)?t:new qt(t,r,n);return Ke(function(){var o=a,s=o.operator,u=o.source;i.add(s?s.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Hr(r),new r(function(a,i){var o=new qt({next:function(s){try{t(s)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Ro]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ko(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Hr(t),new t(function(n,a){var i;r.subscribe(function(o){return i=o},function(o){return a(o)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Hr(e){var t;return(t=e!=null?e:Mo.Promise)!==null&&t!==void 0?t:Promise}function Uo(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Fo(e){return e&&e instanceof Rn||Uo(e)&&In(e)}var Go=Ln(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Dn=function(e){je(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Mr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Go},t.prototype.next=function(r){var n=this;Ke(function(){var a,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=$t(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;Ke(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,a=this,i=a.hasError,o=a.isStopped,s=a.observers;return i||o?Nn:(this.currentObservers=null,s.push(r),new dt(function(){n.currentObservers=null,Xt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,i=n.thrownError,o=n.isStopped;a?r.error(i):o&&r.complete()},t.prototype.asObservable=function(){var r=new Or;return r.source=this,r},t.create=function(r,n){return new Mr(r,n)},t}(Or),Mr=function(e){je(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:Nn},t}(Dn),kn={now:function(){return(kn.delegate||Date).now()},delegate:void 0},jo=function(e){je(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=kn);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,a=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,u=n._windowTime;a||(i.push(r),!o&&i.push(s.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,i=a._infiniteTimeWindow,o=a._buffer,s=o.slice(),u=0;u<s.length&&!r.closed;u+=i?1:2)r.next(s[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,i=r._buffer,o=r._infiniteTimeWindow,s=(o?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!o){for(var u=a.now(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},t}(Dn);const Ar=[],Br={},Wo=(e,t=0)=>{if(Ar.indexOf(e)==-1){const r=new jo(t);Br[e]=r,Ar.push(e)}return Br[e]};window.emWidgets={topic:Wo};const $o=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),at=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const Vo=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-B9BbfEj0.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function it(e){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(e)}function de(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function V(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function X(e){V(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||it(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Yo(e,t){V(2,arguments);var r=X(e).getTime(),n=de(t);return new Date(r+n)}var Xo={};function mt(){return Xo}function qo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function zo(e){return V(1,arguments),e instanceof Date||it(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qo(e){if(V(1,arguments),!zo(e)&&typeof e!="number")return!1;var t=X(e);return!isNaN(Number(t))}function Lr(e,t){return V(2,arguments),X(e).getTime()-X(t).getTime()}function Zo(e,t){V(2,arguments);var r=de(t);return Yo(e,-r)}var Jo=864e5;function Ko(e){V(1,arguments);var t=X(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/Jo)+1}function ot(e){V(1,arguments);var t=1,r=X(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Un(e){V(1,arguments);var t=X(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=ot(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=ot(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function es(e){V(1,arguments);var t=Un(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ot(r);return n}var ts=6048e5;function rs(e){V(1,arguments);var t=X(e),r=ot(t).getTime()-es(t).getTime();return Math.round(r/ts)+1}function st(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=X(e),m=d.getUTCDay(),p=(m<h?7:0)+m-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function Fn(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=X(e),h=c.getUTCFullYear(),d=mt(),m=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,m),p.setUTCHours(0,0,0,0);var v=st(p,t),g=new Date(0);g.setUTCFullYear(h,0,m),g.setUTCHours(0,0,0,0);var M=st(g,t);return c.getTime()>=v.getTime()?h+1:c.getTime()>=M.getTime()?h:h-1}function ns(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Fn(e,t),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var p=st(m,t);return p}var as=6048e5;function is(e,t){V(1,arguments);var r=X(e),n=st(r,t).getTime()-ns(r,t).getTime();return Math.round(n/as)+1}function C(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var oe={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return C(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):C(n+1,2)},d:function(t,r){return C(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return C(t.getUTCHours()%12||12,r.length)},H:function(t,r){return C(t.getUTCHours(),r.length)},m:function(t,r){return C(t.getUTCMinutes(),r.length)},s:function(t,r){return C(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return C(i,r.length)}},_e={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},os={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oe.y(t,r)},Y:function(t,r,n,a){var i=Fn(t,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return C(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):C(o,r.length)},R:function(t,r){var n=Un(t);return C(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return C(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return C(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return C(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return oe.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return C(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=is(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):C(i,r.length)},I:function(t,r,n){var a=rs(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):C(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):oe.d(t,r)},D:function(t,r,n){var a=Ko(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):C(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return C(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return C(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=_e.noon:a===0?i=_e.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=_e.evening:a>=12?i=_e.afternoon:a>=4?i=_e.morning:i=_e.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oe.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oe.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oe.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oe.s(t,r)},S:function(t,r){return oe.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Ir(o);case"XXXX":case"XX":return he(o);case"XXXXX":case"XXX":default:return he(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Ir(o);case"xxxx":case"xx":return he(o);case"xxxxx":case"xxx":default:return he(o,":")}},O:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Nr(o,":");case"OOOO":default:return"GMT"+he(o,":")}},z:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Nr(o,":");case"zzzz":default:return"GMT"+he(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return C(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return C(o,r.length)}};function Nr(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t;return r+String(a)+o+C(i,2)}function Ir(e,t){if(e%60===0){var r=e>0?"-":"+";return r+C(Math.abs(e)/60,2)}return he(e,t)}function he(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=C(Math.floor(a/60),2),o=C(a%60,2);return n+i+r+o}var Rr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},ss=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Rr(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Rr(a,r)).replace("{{time}}",Gn(i,r))},us={p:Gn,P:ss},ls=["D","DD"],cs=["YY","YYYY"];function hs(e){return ls.indexOf(e)!==-1}function fs(e){return cs.indexOf(e)!==-1}function Dr(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ds={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ms=function(t,r,n){var a,i=ds[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Mt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var gs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ps={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bs={date:Mt({formats:gs,defaultWidth:"full"}),time:Mt({formats:ps,defaultWidth:"full"}),dateTime:Mt({formats:vs,defaultWidth:"full"})},ys={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_s=function(t,r,n,a){return ys[t]};function Ne(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var ws={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ss={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Es={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xs={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ts={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cs={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ps=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Os={ordinalNumber:Ps,era:Ne({values:ws,defaultWidth:"wide"}),quarter:Ne({values:Ss,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ne({values:Es,defaultWidth:"wide"}),day:Ne({values:xs,defaultWidth:"wide"}),dayPeriod:Ne({values:Ts,defaultWidth:"wide",formattingValues:Cs,defaultFormattingWidth:"wide"})};function Ie(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Ms(s,function(h){return h.test(o)}):Hs(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function Hs(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Ms(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function As(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Bs=/^(\d+)(th|st|nd|rd)?/i,Ls=/\d+/i,Ns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Is={any:[/^b/i,/^(a|c)/i]},Rs={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ds={any:[/1/i,/2/i,/3/i,/4/i]},ks={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Us={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fs={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gs={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},js={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ws={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$s={ordinalNumber:As({matchPattern:Bs,parsePattern:Ls,valueCallback:function(t){return parseInt(t,10)}}),era:Ie({matchPatterns:Ns,defaultMatchWidth:"wide",parsePatterns:Is,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:Rs,defaultMatchWidth:"wide",parsePatterns:Ds,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ie({matchPatterns:ks,defaultMatchWidth:"wide",parsePatterns:Us,defaultParseWidth:"any"}),day:Ie({matchPatterns:Fs,defaultMatchWidth:"wide",parsePatterns:Gs,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:js,defaultMatchWidth:"any",parsePatterns:Ws,defaultParseWidth:"any"})},Vs={code:"en-US",formatDistance:ms,formatLong:bs,formatRelative:_s,localize:Os,match:$s,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ys=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qs=/^'([^]*?)'?$/,zs=/''/g,Qs=/[a-zA-Z]/;function Zs(e,t,r){var n,a,i,o,s,u,l,c,h,d,m,p,v,g;V(2,arguments);var M=String(t),O=mt(),H=(n=(a=void 0)!==null&&a!==void 0?a:O.locale)!==null&&n!==void 0?n:Vs,F=de((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(l=O.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=de((h=(d=(m=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&m!==void 0?m:O.weekStartsOn)!==null&&d!==void 0?d:(v=O.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&h!==void 0?h:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var G=X(e);if(!Qo(G))throw new RangeError("Invalid time value");var T=qo(G),A=Zo(G,T),w={firstWeekContainsDate:F,weekStartsOn:x,locale:H,_originalDate:G},B=M.match(Xs).map(function(k){var Z=k[0];if(Z==="p"||Z==="P"){var z=us[Z];return z(k,H.formatLong)}return k}).join("").match(Ys).map(function(k){if(k==="''")return"'";var Z=k[0];if(Z==="'")return Js(k);var z=os[Z];if(z)return fs(k)&&Dr(k,t,String(e)),hs(k)&&Dr(k,t,String(e)),z(A,k,H.localize,w);if(Z.match(Qs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return k}).join("");return B}function Js(e){var t=e.match(qs);return t?t[1].replace(zs,"'"):e}function Ks(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()>n.getTime()}function eu(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()<n.getTime()}function jn(e,t,r){return window.emMessageBus&&(t=window.emMessageBus.subscribe(e,r)),t}function tu(e){Qr(e,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function kr(e,t,r){const n=e.slice();return n[68]=t[r],n}function Ur(e){let t,r=e[22]("cancel")+"",n,a,i,o;return{c(){t=N("small"),n=re(r),y(t,"class",a="SearchCancelButton "+(e[17]?"NotVisible":""))},m(s,u){$(s,t,u),P(t,n),i||(o=fe(t,"click",e[43]),i=!0)},p(s,u){u[0]&4194304&&r!==(r=s[22]("cancel")+"")&&ue(n,r),u[0]&131072&&a!==(a="SearchCancelButton "+(s[17]?"NotVisible":""))&&y(t,"class",a)},d(s){s&&W(t),i=!1,o()}}}function ru(e){let t,r,n,a;function i(c,h){if(c[18]==!0&&c[15].length<2)return iu;if(c[14].length!=0)return au}let o=i(e),s=o&&o(e),u=e[17]===!1&&Wr(e),l=e[15].length>=2&&e[14].length==0&&Vr(e);return{c(){s&&s.c(),t=J(),r=N("div"),u&&u.c(),n=J(),l&&l.c(),y(r,"class",a="SearchResultsContainer "+(e[18]==!0?"":"NotVisible"))},m(c,h){s&&s.m(c,h),$(c,t,h),$(c,r,h),u&&u.m(r,null),P(r,n),l&&l.m(r,null)},p(c,h){o===(o=i(c))&&s?s.p(c,h):(s&&s.d(1),s=o&&o(c),s&&(s.c(),s.m(t.parentNode,t))),c[17]===!1?u?u.p(c,h):(u=Wr(c),u.c(),u.m(r,n)):u&&(u.d(1),u=null),c[15].length>=2&&c[14].length==0?l?l.p(c,h):(l=Vr(c),l.c(),l.m(r,null)):l&&(l.d(1),l=null),h[0]&262144&&a!==(a="SearchResultsContainer "+(c[18]==!0?"":"NotVisible"))&&y(r,"class",a)},d(c){c&&(W(t),W(r)),s&&s.d(c),u&&u.d(),l&&l.d()}}}function nu(e){let t,r=e[22]("loading")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","LoadingContent")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("loading")+"")&&ue(n,r)},d(a){a&&W(t)}}}function au(e){let t,r=e[22]("searchResult")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("searchResult")+"")&&ue(n,r)},d(a){a&&W(t)}}}function iu(e){let t,r,n=e[14].length!==0&&Fr(e),a=e[14].length==0&&Gr(e);return{c(){n&&n.c(),t=J(),a&&a.c(),r=Zt()},m(i,o){n&&n.m(i,o),$(i,t,o),a&&a.m(i,o),$(i,r,o)},p(i,o){i[14].length!==0?n?n.p(i,o):(n=Fr(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),i[14].length==0?a?a.p(i,o):(a=Gr(i),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(i){i&&(W(t),W(r)),n&&n.d(i),a&&a.d(i)}}}function Fr(e){let t,r=e[22]("recentSearch")+"",n;return{c(){t=N("p"),n=re(r),y(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("recentSearch")+"")&&ue(n,r)},d(a){a&&W(t)}}}function Gr(e){let t,r,n,a=e[22]("noRecentSearches")+"",i,o,s=e[11]==="true"&&jr();return{c(){t=N("div"),s&&s.c(),r=J(),n=N("p"),i=re(a),y(n,"class","SearchMessage"),y(t,"class",o="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(u,l){$(u,t,l),s&&s.m(t,null),P(t,r),P(t,n),P(n,i)},p(u,l){u[11]==="true"?s||(s=jr(),s.c(),s.m(t,r)):s&&(s.d(1),s=null),l[0]&4194304&&a!==(a=u[22]("noRecentSearches")+"")&&ue(i,a),l[0]&2048&&o!==(o="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&y(t,"class",o)},d(u){u&&W(t),s&&s.d()}}}function jr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',y(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function Wr(e){let t=[],r=new Map,n,a=Lt(e[14]);const i=o=>o[68].id;for(let o=0;o<a.length;o+=1){let s=kr(e,a,o),u=i(s);r.set(u,t[o]=$r(u,s))}return{c(){for(let o=0;o<t.length;o+=1)t[o].c();n=Zt()},m(o,s){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(o,s);$(o,n,s)},p(o,s){s[0]&154162175&&(a=Lt(o[14]),t=Ba(t,s,i,1,o,a,r,n.parentNode,Aa,$r,n,kr))},d(o){o&&W(n);for(let s=0;s<t.length;s+=1)t[s].d(o)}}}function $r(e,t){let r,n,a,i,o,s,u,l,c,h,d,m,p;return{key:e,first:null,c(){var v,g;r=N("casino-game-thumbnail-nd"),b(r,"endpoint",t[0]),b(r,"session",t[20]),b(r,"userid",t[21]),b(r,"favorites",t[9]),b(r,"lang",t[1]),b(r,"gamethumbnail",n=t[68].thumbnail),b(r,"icon",a=t[24]((v=t[68])==null?void 0:v.icons)),b(r,"gamename",i=t[68].name),b(r,"gamevendor",o=t[68].vendor.name),b(r,"gameLaunchUrl",s=t[68].launchUrl),b(r,"gameisnew",u=t[68].isNew),b(r,"gametag",l=((g=t[68].advancedTags)==null?void 0:g.length)>0&&t[27](t[68].advancedTags)),b(r,"gamecellsize",c=t[68].cellSize),b(r,"gameid",h=t[68].id),b(r,"showgamename",t[7]),b(r,"gamefunmode",d=t[68].hasFunMode),b(r,"gamefavorite",m=t[68].isFavorite),b(r,"livelobbyendpoint",p=t[68].details?t[68].launchUrl:""),b(r,"integratedgameframedesktop",t[5]),b(r,"integratedgameframemobile",t[6]),b(r,"clientstyling",t[3]),b(r,"clientstylingurl",t[4]),b(r,"gamepagemodalurl",t[8]),b(r,"mbsource",t[2]),b(r,"allowsingleclickgameentry",t[12]),this.first=r},m(v,g){$(v,r,g)},p(v,g){var M,O;t=v,g[0]&1&&b(r,"endpoint",t[0]),g[0]&1048576&&b(r,"session",t[20]),g[0]&2097152&&b(r,"userid",t[21]),g[0]&512&&b(r,"favorites",t[9]),g[0]&2&&b(r,"lang",t[1]),g[0]&16384&&n!==(n=t[68].thumbnail)&&b(r,"gamethumbnail",n),g[0]&16384&&a!==(a=t[24]((M=t[68])==null?void 0:M.icons))&&b(r,"icon",a),g[0]&16384&&i!==(i=t[68].name)&&b(r,"gamename",i),g[0]&16384&&o!==(o=t[68].vendor.name)&&b(r,"gamevendor",o),g[0]&16384&&s!==(s=t[68].launchUrl)&&b(r,"gameLaunchUrl",s),g[0]&16384&&u!==(u=t[68].isNew)&&b(r,"gameisnew",u),g[0]&16384&&l!==(l=((O=t[68].advancedTags)==null?void 0:O.length)>0&&t[27](t[68].advancedTags))&&b(r,"gametag",l),g[0]&16384&&c!==(c=t[68].cellSize)&&b(r,"gamecellsize",c),g[0]&16384&&h!==(h=t[68].id)&&b(r,"gameid",h),g[0]&128&&b(r,"showgamename",t[7]),g[0]&16384&&d!==(d=t[68].hasFunMode)&&b(r,"gamefunmode",d),g[0]&16384&&m!==(m=t[68].isFavorite)&&b(r,"gamefavorite",m),g[0]&16384&&p!==(p=t[68].details?t[68].launchUrl:"")&&b(r,"livelobbyendpoint",p),g[0]&32&&b(r,"integratedgameframedesktop",t[5]),g[0]&64&&b(r,"integratedgameframemobile",t[6]),g[0]&8&&b(r,"clientstyling",t[3]),g[0]&16&&b(r,"clientstylingurl",t[4]),g[0]&256&&b(r,"gamepagemodalurl",t[8]),g[0]&4&&b(r,"mbsource",t[2]),g[0]&4096&&b(r,"allowsingleclickgameentry",t[12])},d(v){v&&W(r)}}}function Vr(e){let t,r,n,a=e[22]("notFound")+"",i,o,s,u=e[22]("notFoundText")+"",l,c,h=e[11]==="true"&&Yr();return{c(){t=N("div"),h&&h.c(),r=J(),n=N("p"),i=re(a),o=J(),s=N("p"),l=re(u),y(n,"class","SearchMessage"),y(t,"class",c="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(d,m){$(d,t,m),h&&h.m(t,null),P(t,r),P(t,n),P(n,i),P(t,o),P(t,s),P(s,l)},p(d,m){d[11]==="true"?h||(h=Yr(),h.c(),h.m(t,r)):h&&(h.d(1),h=null),m[0]&4194304&&a!==(a=d[22]("notFound")+"")&&ue(i,a),m[0]&4194304&&u!==(u=d[22]("notFoundText")+"")&&ue(l,u),m[0]&2048&&c!==(c="ResultsContainerError "+(d[11]=="true"?"WithIcon":""))&&y(t,"class",c)},d(d){d&&W(t),h&&h.d()}}}function Yr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',y(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function ou(e){let t,r,n,a,i,o,s,u,l,c,h,d,m,p,v,g,M,O,H,F,x=e[10]==="true"&&Ur(e);function G(w,B){return w[19]?nu:ru}let T=G(e),A=T(e);return{c(){t=N("div"),r=N("div"),n=N("div"),a=N("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=J(),o=N("input"),u=J(),l=N("span"),c=et("svg"),h=et("path"),m=J(),x&&x.c(),v=J(),g=N("div"),O=J(),A.c(),y(a,"class","SearchIcon"),y(o,"class","SearchInput"),y(o,"type","search"),y(o,"placeholder",s=e[22]("placeHolderSearchGames")),y(o,"maxlength",Wn),y(h,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),y(h,"stroke","#717171"),y(h,"stroke-width","2"),y(h,"stroke-linecap","round"),y(h,"stroke-linejoin","round"),y(c,"width","11"),y(c,"height","11"),y(c,"fill","none"),y(c,"xmlns","http://www.w3.org/2000/svg"),y(l,"class",d="SearchClearButton "+(e[10]!="true"?"WithoutCancel":"")+" "+(e[15].length!=0?"":"NotVisible")),y(n,"class",p="Search "+(e[17]?"":"SearchAnimation")),y(r,"class","SearchWrap"),y(g,"class",M=e[10]!="true"?"OverlayCancel":""),y(t,"class",(at(e[23])!=="PC"?"":"Desktop")+" CasinoSearch")},m(w,B){$(w,t,B),P(t,r),P(r,n),P(n,a),P(n,i),P(n,o),hr(o,e[15]),e[41](o),P(n,u),P(n,l),P(l,c),P(c,h),P(n,m),x&&x.m(n,null),P(t,v),P(t,g),P(t,O),A.m(t,null),e[44](t),H||(F=[fe(o,"input",e[40]),fe(o,"focus",e[25]),fe(o,"input",e[30]),fe(l,"click",e[42]),fe(g,"click",e[26])],H=!0)},p(w,B){B[0]&4194304&&s!==(s=w[22]("placeHolderSearchGames"))&&y(o,"placeholder",s),B[0]&32768&&o.value!==w[15]&&hr(o,w[15]),B[0]&33792&&d!==(d="SearchClearButton "+(w[10]!="true"?"WithoutCancel":"")+" "+(w[15].length!=0?"":"NotVisible"))&&y(l,"class",d),w[10]==="true"?x?x.p(w,B):(x=Ur(w),x.c(),x.m(n,null)):x&&(x.d(1),x=null),B[0]&131072&&p!==(p="Search "+(w[17]?"":"SearchAnimation"))&&y(n,"class",p),B[0]&1024&&M!==(M=w[10]!="true"?"OverlayCancel":"")&&y(g,"class",M),T===(T=G(w))&&A?A.p(w,B):(A.d(1),A=T(w),A&&(A.c(),A.m(t,null)))},i:K,o:K,d(w){w&&W(t),e[41](null),x&&x.d(),A.d(),e[44](null),H=!1,me(F)}}}let Wn=50;function su(e,t,r){let n;zr(e,Hn,f=>r(22,n=f));let{endpoint:a=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:s=""}=t,{lang:u="en"}=t,{mbsource:l}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:d="false"}=t,{integratedgameframemobile:m="false"}=t,{showgamename:p=""}=t,{gamepagemodalurl:v="true"}=t,{translationurl:g=""}=t,{showfavorites:M=""}=t,{cancelbutton:O="true"}=t,{notfoundicon:H="false"}=t,{controlchannel:F="casino-search"}=t,{allowedorigins:x=window.location.origin}=t,{requiredicon:G="false"}=t,{allowsingleclickgameentry:T="false"}=t;const A=()=>(x||"").split(",").map(f=>f.trim()).filter(Boolean);let w=window.navigator.userAgent,B=[],k=[],Z={},z="",le,We=!0,ne=!1,ee=!1,ae,Me,Vn,$e=!1,Ve,Ye,tr=[];const gt=f=>{Object.keys(f).forEach(_=>{To(_,f[_])})},Yn=()=>{fetch(g).then(_=>_.json()).then(_=>{gt(_)}).catch(_=>{console.log(_)})};gt(Po);const rr=f=>{var _;f.data&&f.data.type=="SearchedItemClicked"&&ra(f.data.gameId),f.data.type=="UserSessionID"&&(r(20,Ve=f.data.session),r(21,Ye=f.data.userid),r(39,$e=!0)),f.data.type=="CategoryChange"&&Be();try{const I=f.origin===window.location.origin,R=A();if(!(I||R.length>0&&R.includes(f.origin))||!f.data||f.data.channel!==F)return;switch(f.data.type){case"OpenSearch":vt();break;case"CloseSearch":nr();break;case"ToggleSearch":qn();break;case"SetSearchQuery":zn(String((_=f.data.value)!=null?_:""));break}}catch(I){}},Xn=f=>G!=="true"?void 0:Object.values(f!=null?f:{}).pop(),pt=()=>{if(r(17,We=!1),r(18,ne=!0),a&&i&&u&&z.length<2){r(14,B=[]);let f=localStorage.getItem("searchedGamesWds_casino"),_=[];f&&(_=f.split(","));let I=[],R=0,j=_.length;if(j>0){for(R=0;R<j;R++){let Q=new URL(`${a}/v1/casino/games/${_[R]}`);Q.searchParams.append("language",u),Q.searchParams.append("datasource",i),Q.searchParams.append("platform",at(w)),I.push(Jn(Q,_[R]))}Promise.all(I).then(Q=>{Q=Q.filter(function(ce){return!!ce}),r(14,B=Q.map(ce=>(ce.isFavorite=ar(ce.id),ce))),B.length?Ae("searchSuccess","SearchWidget"):Ae("searchFail","SearchWidget")}).catch(Q=>{Ae("searchError","SearchWidget")})}}or(ne),Ae("searchAttempt","SearchWidget"),Ae("SearchInitialized","SearchWidget")};function vt(){ne||(pt(),requestAnimationFrame(()=>le==null?void 0:le.focus()),ve({type:"SearchOpen"}))}function nr(){ne&&(Be(),ve({type:"SearchClose"}))}function qn(){ne?nr():vt()}function zn(f){r(15,z=(f!=null?f:"").slice(0,Wn)),ne||vt(),sr()}const Ae=(f,_)=>{typeof gtag=="function"&&gtag("event",f,{context:_})},Qn=()=>{O!="true"&&Be()},Zn=f=>new Promise((_,I)=>{r(19,ee=!0),fetch(f.href).then(R=>R.json()).then(R=>{r(19,ee=!1),_(R)}).catch(R=>{r(19,ee=!1),console.error(R);try{ve({type:"SearchError",message:String(R)})}catch(j){}I(R)})}),Jn=(f,_)=>new Promise((I,R)=>{r(19,ee=!0),_&&Object.keys(Z).indexOf(_)>=0?(r(19,ee=!1),I(Z[_])):fetch(f).then(j=>j.json()).then(j=>{r(19,ee=!1),j.error||(Z[j[0].gameId]=j[0]),I(j[0])}).catch(j=>{r(19,ee=!1),console.error(j);try{ve({type:"SearchError",message:String(j)})}catch(Q){}R(j)})}),Kn=()=>{const f=new URL(`${a}/v1/player/${Ye}/favorites/`);r(19,ee=!0);let _={method:"GET",headers:{"X-SessionID":Ve}};fetch(f.href,_).then(I=>I.json()).then(I=>{r(19,ee=!1),tr=I.items.map(R=>R.id)})},ea=()=>{r(39,$e=!0),r(20,Ve=o),r(21,Ye=s)},ar=f=>tr.findIndex(_=>_==f)!==-1,ta=f=>{if((f==null?void 0:f.length)===0)return"";let _,I=99999999999,R;const j=new Date(Date.now());return f.forEach((Q,ce)=>{const ca=new Date(Q.schedules[0].startTime),bt=new Date(Q.schedules[0].endTime);Lr(new Date(bt),new Date(j))<I&&(I=Lr(new Date(bt),new Date(j)),R=ce),Ks(new Date(j),new Date(ca))&&eu(new Date(j),new Date(bt))&&(_=f[R].name)}),_},ra=f=>{if(k=localStorage.getItem("searchedGamesWds_casino"),k?k=k.split(","):k=[],k.indexOf(f)===-1){let _;k.unshift(f),_=k.join(","),localStorage.setItem("searchedGamesWds_casino",_)}},Be=()=>{r(15,z=""),r(17,We=!0),r(19,ee=!1),r(14,B=[]),r(18,ne=!1),or(ne)},ir=()=>{r(15,z=""),le.focus()},or=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href),ve({type:f?"SearchOpen":"SearchClose"})};function ve(f){try{const _=_t({channel:F},f);window.postMessage(_,window.location.href)}catch(_){}}const na=()=>{Co(u)},sr=()=>wt(this,null,function*(){if(z.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",i),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",at(w)),f.searchParams.append("language",u),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${z}`),Zn(f).then(_=>{r(14,B=_.items.map(I=>(I.isFavorite=ar(I.id),I)));try{ve({type:"SearchResults",count:B.length})}catch(I){}})}else We||pt()}),aa=Vo(sr,500);Zr(()=>(window.addEventListener("message",rr,!1),()=>{Me&&Me.unsubscribe(),window.removeEventListener("message",rr)}));function ia(){z=this.value,r(15,z)}function oa(f){ke[f?"unshift":"push"](()=>{le=f,r(16,le)})}const sa=()=>ir(),ua=()=>Be();function la(f){ke[f?"unshift":"push"](()=>{ae=f,r(13,ae)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(31,i=f.datasource),"session"in f&&r(32,o=f.session),"userid"in f&&r(33,s=f.userid),"lang"in f&&r(1,u=f.lang),"mbsource"in f&&r(2,l=f.mbsource),"clientstyling"in f&&r(3,c=f.clientstyling),"clientstylingurl"in f&&r(4,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(5,d=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(6,m=f.integratedgameframemobile),"showgamename"in f&&r(7,p=f.showgamename),"gamepagemodalurl"in f&&r(8,v=f.gamepagemodalurl),"translationurl"in f&&r(34,g=f.translationurl),"showfavorites"in f&&r(9,M=f.showfavorites),"cancelbutton"in f&&r(10,O=f.cancelbutton),"notfoundicon"in f&&r(11,H=f.notfoundicon),"controlchannel"in f&&r(35,F=f.controlchannel),"allowedorigins"in f&&r(36,x=f.allowedorigins),"requiredicon"in f&&r(37,G=f.requiredicon),"allowsingleclickgameentry"in f&&r(12,T=f.allowsingleclickgameentry)},e.$$.update=()=>{e.$$.dirty[0]&2&&u&&na(),e.$$.dirty[1]&8&&g&&Yn(),e.$$.dirty[1]&6&&o&&s&&ea(),e.$$.dirty[0]&512|e.$$.dirty[1]&256&&M&&$e&&Kn(),e.$$.dirty[0]&8200&&c&&ae&&Mn(ae,c),e.$$.dirty[0]&8208&&h&&ae&&An(ae,h),e.$$.dirty[0]&8196|e.$$.dirty[1]&128&&l&&ae&&r(38,Me=Bn(ae,`${l}.Style`,Me,!0)),e.$$.dirty[0]&4|e.$$.dirty[1]&8&&l&&!g&&jn(`${l}.Translation`,Vn,gt)},[a,u,l,c,h,d,m,p,v,M,O,H,T,ae,B,z,le,We,ne,ee,Ve,Ye,n,w,Xn,pt,Qn,ta,Be,ir,aa,i,o,s,g,F,x,G,Me,$e,ia,oa,sa,ua,la]}class $n extends an{constructor(t){super(),tn(this,t,su,ou,Qt,{endpoint:0,datasource:31,session:32,userid:33,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:34,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:35,allowedorigins:36,requiredicon:37,allowsingleclickgameentry:12},tu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),D()}get datasource(){return this.$$.ctx[31]}set datasource(t){this.$$set({datasource:t}),D()}get session(){return this.$$.ctx[32]}set session(t){this.$$set({session:t}),D()}get userid(){return this.$$.ctx[33]}set userid(t){this.$$set({userid:t}),D()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),D()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),D()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),D()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),D()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),D()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),D()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),D()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),D()}get translationurl(){return this.$$.ctx[34]}set translationurl(t){this.$$set({translationurl:t}),D()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),D()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),D()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),D()}get controlchannel(){return this.$$.ctx[35]}set controlchannel(t){this.$$set({controlchannel:t}),D()}get allowedorigins(){return this.$$.ctx[36]}set allowedorigins(t){this.$$set({allowedorigins:t}),D()}get requiredicon(){return this.$$.ctx[37]}set requiredicon(t){this.$$set({requiredicon:t}),D()}get allowsingleclickgameentry(){return this.$$.ctx[12]}set allowsingleclickgameentry(t){this.$$set({allowsingleclickgameentry:t}),D()}}nn($n,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{},allowsingleclickgameentry:{}},[],[],!0);const uu=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"}));exports.$format=Hn;exports.$locale=pe;exports.CasinoSearchNd_ce=uu;exports.HtmlTag=xa;exports.SvelteComponent=an;exports.addMessages=Kt;exports.append=P;exports.append_styles=Qr;exports.attr=y;exports.binding_callbacks=ke;exports.component_subscribe=zr;exports.create_custom_element=nn;exports.destroy_each=_a;exports.detach=W;exports.element=N;exports.empty=Zt;exports.ensure_array_like=Lt;exports.flush=D;exports.format=Zs;exports.getDevice=at;exports.getStreamTranslations=jn;exports.init=tn;exports.insert=$;exports.isMobile=$o;exports.listen=fe;exports.noop=K;exports.onMount=Zr;exports.safe_not_equal=Qt;exports.setClientStyling=Mn;exports.setClientStylingURL=An;exports.setStreamStyling=Bn;exports.set_custom_element_data=b;exports.set_data=ue;exports.set_style=Sa;exports.space=J;exports.src_url_equal=pa;exports.svg_element=et;exports.text=re;exports.tick=Pa;exports.toggle_class=Ea;