@everymatrix/loyalty-marketing-content 0.2.0 → 0.2.2

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,8 +0,0 @@
1
- "use strict";var Gs=Object.defineProperty,ks=Object.defineProperties;var js=Object.getOwnPropertyDescriptors;var On=Object.getOwnPropertySymbols;var qs=Object.prototype.hasOwnProperty,zs=Object.prototype.propertyIsEnumerable;var Pn=e=>{throw TypeError(e)};var Br=(e,t,r)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))qs.call(t,r)&&Br(e,r,t[r]);if(On)for(var r of On(t))zs.call(t,r)&&Br(e,r,t[r]);return e},Dt=(e,t)=>ks(e,js(t));var M=(e,t,r)=>Br(e,typeof t!="symbol"?t+"":t,r),Or=(e,t,r)=>t.has(e)||Pn("Cannot "+r);var p=(e,t,r)=>(Or(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?Pn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),b=(e,t,r,n)=>(Or(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),I=(e,t,r)=>(Or(e,t,"access private method"),r);var In=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(o){i(o)}},l=u=>{try{a(r.throw(u))}catch(o){i(o)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,l);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Vs="5";var ui,li,fi;typeof window!="undefined"&&((fi=(li=(ui=window.__svelte)!=null?ui:window.__svelte={}).v)!=null?fi:li.v=new Set).add(Vs);const Xs=1,Ws=2,Qs=16,Zs=2,ci="[",pn="[!",Cn="[?",vn="]",Tt={},G=Symbol(),di="http://www.w3.org/1999/xhtml",Ys=!1;var pi=Array.isArray,Js=Array.prototype.indexOf,St=Array.prototype.includes,yr=Array.from,dr=Object.keys,Vt=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,Ks=Object.getOwnPropertyDescriptors,ea=Object.prototype,ta=Array.prototype,vi=Object.getPrototypeOf,Rn=Object.isExtensible;const Pe=()=>{};function mi(e){for(var t=0;t<e.length;t++)e[t]()}function _i(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const F=2,At=4,Er=8,gi=1<<24,ze=16,Ee=32,je=64,Ur=128,ne=512,D=1024,j=2048,pe=4096,K=8192,ie=16384,it=32768,Mn=1<<25,Xt=65536,Ln=1<<17,ra=1<<18,st=1<<19,na=1<<20,Oe=1<<25,et=65536,Gr=1<<21,mn=1<<22,Ue=1<<23,Pr=Symbol("$state"),ia=Symbol("legacy props"),Ae=new class extends Error{constructor(){super(...arguments);M(this,"name","StaleReactionError");M(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},_n=3,er=8;function sa(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function aa(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function oa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ua(){throw new Error("https://svelte.dev/e/hydration_failed")}function la(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ha(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ca(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function xr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function da(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let B=!1;function Xe(e){B=e}let O;function se(e){if(e===null)throw xr(),Tt;return O=e}function gn(){return se(Ie(O))}function Ve(e){if(B){if(Ie(O)!==null)throw xr(),Tt;O=e}}function pa(e=1){if(B){for(var t=e,r=O;t--;)r=Ie(r);O=r}}function kr(e=!0){for(var t=0,r=O;;){if(r.nodeType===er){var n=r.data;if(n===vn){if(t===0)return r;t-=1}else(n===ci||n===pn||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ie(r);e&&r.remove(),r=i}}function va(e){if(!e||e.nodeType!==er)throw xr(),Tt;return e.data}function bi(e){return e===this.v}function yi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ei(e){return!yi(e,this.v)}let ma=!1,ve=null;function Ht(e){ve=e}function xi(e,t=!1,r){ve={p:ve,i:!1,c:null,e:null,s:e,x:null,r:S,l:null}}function wi(e){var t=ve,r=t.e;if(r!==null){t.e=null;for(var n of r)Fa(n)}return e!==void 0&&(t.x=e),t.i=!0,ve=t.p,e!=null?e:{}}function Ti(){return!0}let We=[];function Si(){var e=We;We=[],mi(e)}function dt(e){if(We.length===0&&!qt){var t=We;queueMicrotask(()=>{t===We&&Si()})}We.push(e)}function _a(){for(;We.length>0;)Si()}function Ai(e){var t=S;if(t===null)return y.f|=Ue,e;if(!(t.f&it)&&!(t.f&At))throw e;De(e,t)}function De(e,t){for(;t!==null;){if(t.f&Ur){if(!(t.f&it))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const ga=-7169;function $(e,t){e.f=e.f&ga|t}function bn(e){e.f&ne||e.deps===null?$(e,D):$(e,pe)}function Hi(e){if(e!==null)for(const t of e)!(t.f&F)||!(t.f&et)||(t.f^=et,Hi(t.deps))}function Ni(e,t,r){e.f&j?t.add(e):e.f&pe&&r.add(e),Hi(e.deps),$(e,D)}function yn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Pe;const n=us(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const ot=[];function ba(e,t){return{subscribe:wr(e,t).subscribe}}function wr(e,t=Pe){let r=null;const n=new Set;function i(a){if(yi(e,a)&&(e=a,r)){const u=!ot.length;for(const o of n)o[1](),ot.push(o,e);if(u){for(let o=0;o<ot.length;o+=2)ot[o][0](ot[o+1]);ot.length=0}}}function s(a){i(a(e))}function l(a,u=Pe){const o=[a,u];return n.add(o),n.size===1&&(r=t(i,s)||Pe),a(e),()=>{n.delete(o),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:l}}function Rt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return ba(r,(l,a)=>{let u=!1;const o=[];let f=0,d=Pe;const h=()=>{if(f)return;d();const c=t(n?o[0]:o,l,a);s?l(c):d=typeof c=="function"?c:Pe},v=i.map((c,_)=>yn(c,x=>{o[_]=x,f&=~(1<<_),u&&h()},()=>{f|=1<<_}));return u=!0,h(),function(){mi(v),d(),u=!1}})}function ya(e){let t;return yn(e,r=>t=r)(),t}let jr=Symbol();function Ea(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Tn(void 0),unsubscribe:Pe};if(n.store!==e&&!(jr in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Pe;else{var i=!0;n.unsubscribe=yn(e,l=>{i?n.source.v=l:ce(n.source,l)}),i=!1}return e&&jr in r?ya(e):L(n.source)}function xa(){const e={};function t(){Xi(()=>{for(var r in e)e[r].unsubscribe();Vt(e,jr,{enumerable:!1,value:!0})})}return[e,t]}const Ft=new Set;let T=null,k=null,qr=null,qt=!1,Ir=!1,ft=null,ar=null;var $n=0;let wa=1;var vt,mt,_t,gt,Jt,Me,bt,Le,_e,yt,q,zr,Vr,Xr,Wr,Bi;const gr=class gr{constructor(){A(this,q);M(this,"id",wa++);M(this,"current",new Map);M(this,"previous",new Map);A(this,vt,new Set);A(this,mt,new Set);A(this,_t,0);A(this,gt,0);A(this,Jt,null);A(this,Me,[]);A(this,bt,new Set);A(this,Le,new Set);A(this,_e,new Map);M(this,"is_fork",!1);A(this,yt,!1)}skip_effect(t){p(this,_e).has(t)||p(this,_e).set(t,{d:[],m:[]})}unskip_effect(t){var r=p(this,_e).get(t);if(r){p(this,_e).delete(t);for(var n of r.d)$(n,j),this.schedule(n);for(n of r.m)$(n,pe),this.schedule(n)}}capture(t,r){r!==G&&!this.previous.has(t)&&this.previous.set(t,r),t.f&Ue||(this.current.set(t,t.v),k==null||k.set(t,t.v))}activate(){T=this}deactivate(){T=null,k=null}flush(){try{if(Ir=!0,T=this,!I(this,q,zr).call(this)){for(const t of p(this,bt))p(this,Le).delete(t),$(t,j),this.schedule(t);for(const t of p(this,Le))$(t,pe),this.schedule(t)}I(this,q,Vr).call(this)}finally{$n=0,qr=null,ft=null,ar=null,Ir=!1,T=null,k=null,Ge.clear()}}discard(){for(const t of p(this,mt))t(this);p(this,mt).clear()}increment(t){b(this,_t,p(this,_t)+1),t&&b(this,gt,p(this,gt)+1)}decrement(t,r){b(this,_t,p(this,_t)-1),t&&b(this,gt,p(this,gt)-1),!(p(this,yt)||r)&&(b(this,yt,!0),dt(()=>{b(this,yt,!1),this.flush()}))}oncommit(t){p(this,vt).add(t)}ondiscard(t){p(this,mt).add(t)}settled(){var t;return((t=p(this,Jt))!=null?t:b(this,Jt,_i())).promise}static ensure(){if(T===null){const t=T=new gr;Ir||(Ft.add(T),qt||dt(()=>{T===t&&t.flush()}))}return T}apply(){}schedule(t){var i;if(qr=t,(i=t.b)!=null&&i.is_pending&&t.f&(At|Er|gi)&&!(t.f&it)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(ft!==null&&r===S&&(y===null||!(y.f&F)))return;if(n&(je|Ee)){if(!(n&D))return;r.f^=D}}p(this,Me).push(r)}};vt=new WeakMap,mt=new WeakMap,_t=new WeakMap,gt=new WeakMap,Jt=new WeakMap,Me=new WeakMap,bt=new WeakMap,Le=new WeakMap,_e=new WeakMap,yt=new WeakMap,q=new WeakSet,zr=function(){return this.is_fork||p(this,gt)>0},Vr=function(){var a,u;$n++>1e3&&Ta();const t=p(this,Me);b(this,Me,[]),this.apply();var r=ft=[],n=[],i=ar=[];for(const o of t)I(this,q,Xr).call(this,o,r,n);if(T=null,i.length>0){var s=gr.ensure();for(const o of i)s.schedule(o)}if(ft=null,ar=null,I(this,q,zr).call(this)){I(this,q,Wr).call(this,n),I(this,q,Wr).call(this,r);for(const[o,f]of p(this,_e))Ii(o,f)}else{p(this,bt).clear(),p(this,Le).clear();for(const o of p(this,vt))o(this);p(this,vt).clear(),Dn(n),Dn(r),p(this,_t)===0&&I(this,q,Bi).call(this),(a=p(this,Jt))==null||a.resolve()}var l=T;l!==null&&(Ft.add(l),I(u=l,q,Vr).call(u))},Xr=function(t,r,n){t.f^=D;for(var i=t.first;i!==null;){var s=i.f,l=(s&(Ee|je))!==0,a=l&&(s&D)!==0,u=a||(s&K)!==0||p(this,_e).has(i);if(!u&&i.fn!==null){l?i.f^=D:s&At?r.push(i):tr(i)&&(s&ze&&p(this,Le).add(i),Bt(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Wr=function(t){for(var r=0;r<t.length;r+=1)Ni(t[r],p(this,bt),p(this,Le))},Bi=function(){var i;if(Ft.size>1){this.previous.clear();var t=T,r=k,n=!0;for(const s of Ft){if(s===this){n=!1;continue}const l=[];for(const[u,o]of this.current){if(s.current.has(u))if(n&&o!==s.current.get(u))s.current.set(u,o);else continue;l.push(u)}if(l.length===0)continue;const a=[...s.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){s.activate();const u=new Set,o=new Map;for(const f of l)Oi(f,a,u,o);if(p(s,Me).length>0){s.apply();for(const f of p(s,Me))I(i=s,q,Xr).call(i,f,[],[])}s.deactivate()}}T=t,k=r}p(this,_e).clear(),Ft.delete(this)};let qe=gr;function kt(e){var t=qt;qt=!0;try{for(var r;;){if(_a(),T===null)return r;T.flush()}}finally{qt=t}}function Ta(){try{oa()}catch(e){De(e,qr)}}let fe=null;function Dn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(ie|K))&&tr(n)&&(fe=new Set,Bt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Yi(n),(fe==null?void 0:fe.size)>0)){Ge.clear();for(const i of fe){if(i.f&(ie|K))continue;const s=[i];let l=i.parent;for(;l!==null;)fe.has(l)&&(fe.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const u=s[a];u.f&(ie|K)||Bt(u)}}fe.clear()}}fe=null}}function Oi(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&F?Oi(i,t,r,n):s&(mn|ze)&&!(s&j)&&Pi(i,t,n)&&($(i,j),En(i))}}function Pi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(St.call(t,i))return!0;if(i.f&F&&Pi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function En(e){T.schedule(e)}function Ii(e,t){if(!(e.f&Ee&&e.f&D)){e.f&j?t.d.push(e):e.f&pe&&t.m.push(e),$(e,D);for(var r=e.first;r!==null;)Ii(r,t),r=r.next}}function Sa(e){let t=0,r=tt(0),n;return()=>{An()&&(L(r),Wi(()=>(t===0&&(n=us(()=>e(()=>zt(r)))),t+=1,()=>{dt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,zt(r))})})))}}var Aa=Xt|st;function Ha(e,t,r,n){new Na(e,t,r,n)}var Y,Kt,ge,Ye,X,be,J,he,He,Je,$e,Et,xt,wt,Ne,br,R,Ci,Ri,Mi,Qr,or,ur,Zr;class Na{constructor(t,r,n,i){A(this,R);M(this,"parent");M(this,"is_pending",!1);M(this,"transform_error");A(this,Y);A(this,Kt,B?O:null);A(this,ge);A(this,Ye);A(this,X);A(this,be,null);A(this,J,null);A(this,he,null);A(this,He,null);A(this,Je,0);A(this,$e,0);A(this,Et,!1);A(this,xt,new Set);A(this,wt,new Set);A(this,Ne,null);A(this,br,Sa(()=>(b(this,Ne,tt(p(this,Je))),()=>{b(this,Ne,null)})));var s,l;b(this,Y,t),b(this,ge,r),b(this,Ye,a=>{var u=S;u.b=this,u.f|=Ur,n(a)}),this.parent=S.b,this.transform_error=(l=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?l:a=>a,b(this,X,Qi(()=>{if(B){const a=p(this,Kt);gn();const u=a.data===pn;if(a.data.startsWith(Cn)){const f=JSON.parse(a.data.slice(Cn.length));I(this,R,Ri).call(this,f)}else u?I(this,R,Mi).call(this):I(this,R,Ci).call(this)}else I(this,R,Qr).call(this)},Aa)),B&&b(this,Y,O)}defer_effect(t){Ni(t,p(this,xt),p(this,wt))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!p(this,ge).pending}update_pending_count(t,r){I(this,R,Zr).call(this,t,r),b(this,Je,p(this,Je)+t),!(!p(this,Ne)||p(this,Et))&&(b(this,Et,!0),dt(()=>{b(this,Et,!1),p(this,Ne)&&Nt(p(this,Ne),p(this,Je))}))}get_effect_pending(){return p(this,br).call(this),L(p(this,Ne))}error(t){var r=p(this,ge).onerror;let n=p(this,ge).failed;if(!r&&!n)throw t;p(this,be)&&(ae(p(this,be)),b(this,be,null)),p(this,J)&&(ae(p(this,J)),b(this,J,null)),p(this,he)&&(ae(p(this,he)),b(this,he,null)),B&&(se(p(this,Kt)),pa(),se(kr()));var i=!1,s=!1;const l=()=>{if(i){da();return}i=!0,s&&ca(),p(this,he)!==null&&pt(p(this,he),()=>{b(this,he,null)}),I(this,R,ur).call(this,()=>{I(this,R,Qr).call(this)})},a=u=>{try{s=!0,r==null||r(u,l),s=!1}catch(o){De(o,p(this,X)&&p(this,X).parent)}n&&b(this,he,I(this,R,ur).call(this,()=>{try{return me(()=>{var o=S;o.b=this,o.f|=Ur,n(p(this,Y),()=>u,()=>l)})}catch(o){return De(o,p(this,X).parent),null}}))};dt(()=>{var u;try{u=this.transform_error(t)}catch(o){De(o,p(this,X)&&p(this,X).parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(a,o=>De(o,p(this,X)&&p(this,X).parent)):a(u)})}}Y=new WeakMap,Kt=new WeakMap,ge=new WeakMap,Ye=new WeakMap,X=new WeakMap,be=new WeakMap,J=new WeakMap,he=new WeakMap,He=new WeakMap,Je=new WeakMap,$e=new WeakMap,Et=new WeakMap,xt=new WeakMap,wt=new WeakMap,Ne=new WeakMap,br=new WeakMap,R=new WeakSet,Ci=function(){try{b(this,be,me(()=>p(this,Ye).call(this,p(this,Y))))}catch(t){this.error(t)}},Ri=function(t){const r=p(this,ge).failed;r&&b(this,he,me(()=>{r(p(this,Y),()=>t,()=>()=>{})}))},Mi=function(){const t=p(this,ge).pending;if(t){this.is_pending=!0,b(this,J,me(()=>t(p(this,Y))));var r=T;dt(()=>{var n=b(this,He,document.createDocumentFragment()),i=ke();n.append(i),b(this,be,I(this,R,ur).call(this,()=>me(()=>p(this,Ye).call(this,i)))),p(this,$e)===0&&(p(this,Y).before(n),b(this,He,null),pt(p(this,J),()=>{b(this,J,null)}),I(this,R,or).call(this,r))})}},Qr=function(){var t=T;try{if(this.is_pending=this.has_pending_snippet(),b(this,$e,0),b(this,Je,0),b(this,be,me(()=>{p(this,Ye).call(this,p(this,Y))})),p(this,$e)>0){var r=b(this,He,document.createDocumentFragment());ts(p(this,be),r);const n=p(this,ge).pending;b(this,J,me(()=>n(p(this,Y))))}else I(this,R,or).call(this,t)}catch(n){this.error(n)}},or=function(t){this.is_pending=!1;for(const r of p(this,xt))$(r,j),t.schedule(r);for(const r of p(this,wt))$(r,pe),t.schedule(r);p(this,xt).clear(),p(this,wt).clear()},ur=function(t){var r=S,n=y,i=ve;xe(p(this,X)),ue(p(this,X)),Ht(p(this,X).ctx);try{return qe.ensure(),t()}catch(s){return Ai(s),null}finally{xe(r),ue(n),Ht(i)}},Zr=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&I(n=this.parent,R,Zr).call(n,t,r);return}b(this,$e,p(this,$e)+t),p(this,$e)===0&&(I(this,R,or).call(this,r),p(this,J)&&pt(p(this,J),()=>{b(this,J,null)}),p(this,He)&&(p(this,Y).before(p(this,He)),b(this,He,null)))};function Ba(e,t,r,n){const i=xn;var s=e.filter(h=>!h.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var l=S,a=Oa(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function o(h){a();try{n(h)}catch(v){l.f&ie||De(v,l)}pr()}if(r.length===0){u.then(()=>o(t.map(i)));return}var f=Li();function d(){Promise.all(r.map(h=>Pa(h))).then(h=>o([...t.map(i),...h])).catch(h=>De(h,l)).finally(()=>f())}u?u.then(()=>{a(),d(),pr()}):d()}function Oa(){var e=S,t=y,r=ve,n=T;return function(s=!0){xe(e),ue(t),Ht(r),s&&!(e.f&ie)&&(n==null||n.activate(),n==null||n.apply())}}function pr(e=!0){xe(null),ue(null),Ht(null),e&&(T==null||T.deactivate())}function Li(){var e=S.b,t=T,r=e.is_rendered();return e.update_pending_count(1,t),t.increment(r),(n=!1)=>{e.update_pending_count(-1,t),t.decrement(r,n)}}function xn(e){var t=F|j,r=y!==null&&y.f&F?y:null;return S!==null&&(S.f|=st),{ctx:ve,deps:null,effects:null,equals:bi,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:r!=null?r:S,ac:null}}function Pa(e,t,r){let n=S;n===null&&sa();var i=void 0,s=tt(G),l=!y,a=new Map;return ja(()=>{var v;var u=S,o=_i();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(pr)}catch(c){o.reject(c),pr()}var f=T;if(l){if(u.f&it)var d=Li();if(n.b.is_rendered())(v=a.get(f))==null||v.reject(Ae),a.delete(f);else{for(const c of a.values())c.reject(Ae);a.clear()}a.set(f,o)}const h=(c,_=void 0)=>{if(d){var x=_===Ae;d(x)}if(!(_===Ae||u.f&ie)){if(f.activate(),_)s.f|=Ue,Nt(s,_);else{s.f&Ue&&(s.f^=Ue),Nt(s,c);for(const[m,g]of a){if(a.delete(m),m===f)break;g.reject(Ae)}}f.deactivate()}};o.promise.then(h,c=>h(null,c||"unknown"))}),Xi(()=>{for(const u of a.values())u.reject(Ae)}),new Promise(u=>{function o(f){function d(){f===i?u(s):o(i)}f.then(d,d)}o(i)})}function Ia(e){const t=xn(e);return t.equals=Ei,t}function Ca(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ae(t[r])}}function Ra(e){for(var t=e.parent;t!==null;){if(!(t.f&F))return t.f&ie?null:t;t=t.parent}return null}function wn(e){var t,r=S;xe(Ra(e));try{e.f&=~et,Ca(e),t=ss(e)}finally{xe(r)}return t}function $i(e){var t=wn(e);if(!e.equals(t)&&(e.wv=ns(),(!(T!=null&&T.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){$(e,D);return}rt||(k!==null?(An()||T!=null&&T.is_fork)&&k.set(e,t):bn(e))}function Ma(e){var t,r;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),(r=n.ac)==null||r.abort(Ae),n.teardown=Pe,n.ac=null,Qt(n,0),Hn(n))}function Di(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Bt(t)}let Yr=new Set;const Ge=new Map;let Fi=!1;function tt(e,t){var r={f:0,v:e,reactions:null,equals:bi,rv:0,wv:0};return r}function Se(e,t){const r=tt(e);return Xa(r),r}function Tn(e,t=!1,r=!0){const n=tt(e);return t||(n.equals=Ei),n}function ce(e,t,r=!1){y!==null&&(!de||y.f&Ln)&&Ti()&&y.f&(F|ze|mn|Ln)&&(oe===null||!St.call(oe,e))&&ha();let n=r?ht(t):t;return Nt(e,n,ar)}function Nt(e,t,r=null){if(!e.equals(t)){var n=e.v;rt?Ge.set(e,t):Ge.set(e,n),e.v=t;var i=qe.ensure();if(i.capture(e,n),e.f&F){const s=e;e.f&j&&wn(s),bn(s)}e.wv=ns(),Ui(e,j,r),S!==null&&S.f&D&&!(S.f&(Ee|je))&&(te===null?Wa([e]):te.push(e)),!i.is_fork&&Yr.size>0&&!Fi&&La()}return t}function La(){Fi=!1;for(const e of Yr)e.f&D&&$(e,pe),tr(e)&&Bt(e);Yr.clear()}function zt(e){ce(e,e.v+1)}function Ui(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var l=n[s],a=l.f,u=(a&j)===0;if(u&&$(l,t),a&F){var o=l;k==null||k.delete(o),a&et||(a&ne&&(l.f|=et),Ui(o,pe,r))}else if(u){var f=l;a&ze&&fe!==null&&fe.add(f),r!==null?r.push(f):En(f)}}}function ht(e){if(typeof e!="object"||e===null||Pr in e)return e;const t=vi(e);if(t!==ea&&t!==ta)return e;var r=new Map,n=pi(e),i=Se(0),s=Ke,l=a=>{if(Ke===s)return a();var u=y,o=Ke;ue(null),kn(s);var f=a();return ue(u),kn(o),f};return n&&r.set("length",Se(e.length)),new Proxy(e,{defineProperty(a,u,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&la();var f=r.get(u);return f===void 0?l(()=>{var d=Se(o.value);return r.set(u,d),d}):ce(f,o.value,!0),!0},deleteProperty(a,u){var o=r.get(u);if(o===void 0){if(u in a){const f=l(()=>Se(G));r.set(u,f),zt(i)}}else ce(o,G),zt(i);return!0},get(a,u,o){var v;if(u===Pr)return e;var f=r.get(u),d=u in a;if(f===void 0&&(!d||(v=ct(a,u))!=null&&v.writable)&&(f=l(()=>{var c=ht(d?a[u]:G),_=Se(c);return _}),r.set(u,f)),f!==void 0){var h=L(f);return h===G?void 0:h}return Reflect.get(a,u,o)},getOwnPropertyDescriptor(a,u){var o=Reflect.getOwnPropertyDescriptor(a,u);if(o&&"value"in o){var f=r.get(u);f&&(o.value=L(f))}else if(o===void 0){var d=r.get(u),h=d==null?void 0:d.v;if(d!==void 0&&h!==G)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return o},has(a,u){var h;if(u===Pr)return!0;var o=r.get(u),f=o!==void 0&&o.v!==G||Reflect.has(a,u);if(o!==void 0||S!==null&&(!f||(h=ct(a,u))!=null&&h.writable)){o===void 0&&(o=l(()=>{var v=f?ht(a[u]):G,c=Se(v);return c}),r.set(u,o));var d=L(o);if(d===G)return!1}return f},set(a,u,o,f){var H;var d=r.get(u),h=u in a;if(n&&u==="length")for(var v=o;v<d.v;v+=1){var c=r.get(v+"");c!==void 0?ce(c,G):v in a&&(c=l(()=>Se(G)),r.set(v+"",c))}if(d===void 0)(!h||(H=ct(a,u))!=null&&H.writable)&&(d=l(()=>Se(void 0)),ce(d,ht(o)),r.set(u,d));else{h=d.v!==G;var _=l(()=>ht(o));ce(d,_)}var x=Reflect.getOwnPropertyDescriptor(a,u);if(x!=null&&x.set&&x.set.call(f,o),!h){if(n&&typeof u=="string"){var m=r.get("length"),g=Number(u);Number.isInteger(g)&&g>=m.v&&ce(m,g+1)}zt(i)}return!0},ownKeys(a){L(i);var u=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==G});for(var[o,f]of r)f.v!==G&&!(o in a)&&u.push(o);return u},setPrototypeOf(){fa()}})}var Fn,Gi,ki,ji;function Jr(){if(Fn===void 0){Fn=window,Gi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ki=ct(t,"firstChild").get,ji=ct(t,"nextSibling").get,Rn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rn(r)&&(r.__t=void 0)}}function ke(e=""){return document.createTextNode(e)}function Wt(e){return ki.call(e)}function Ie(e){return ji.call(e)}function ut(e,t){if(!B)return Wt(e);var r=Wt(O);if(r===null)r=O.appendChild(ke());else if(t&&r.nodeType!==_n){var n=ke();return r==null||r.before(n),se(n),n}return t&&zi(r),se(r),r}function Un(e,t=1,r=!1){let n=B?O:e;for(var i;t--;)i=n,n=Ie(n);if(!B)return n;if(r){if((n==null?void 0:n.nodeType)!==_n){var s=ke();return n===null?i==null||i.after(s):n.before(s),se(s),s}zi(n)}return se(n),n}function qi(e){e.textContent=""}function $a(){return!1}function Sn(e,t,r){return document.createElementNS(di,e,void 0)}function zi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===_n;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Vi(e){var t=y,r=S;ue(null),xe(null);try{return e()}finally{ue(t),xe(r)}}function Da(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function we(e,t){var l;var r=S;r!==null&&r.f&K&&(e|=K);var n={ctx:ve,deps:null,nodes:null,f:e|j|ne,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if(e&At)ft!==null?ft.push(n):qe.ensure().schedule(n);else if(t!==null){try{Bt(n)}catch(a){throw ae(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&st)&&(i=i.first,e&ze&&e&Xt&&i!==null&&(i.f|=Xt))}if(i!==null&&(i.parent=r,r!==null&&Da(i,r),y!==null&&y.f&F&&!(e&je))){var s=y;((l=s.effects)!=null?l:s.effects=[]).push(i)}return n}function An(){return y!==null&&!de}function Xi(e){const t=we(Er,null);return $(t,D),t.teardown=e,t}function Fa(e){return we(At|na,e)}function Ua(e){qe.ensure();const t=we(je|st,e);return()=>{ae(t)}}function Ga(e){qe.ensure();const t=we(je|st,e);return(r={})=>new Promise(n=>{r.outro?pt(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function ka(e){return we(At,e)}function ja(e){return we(mn|st,e)}function Wi(e,t=0){return we(Er|t,e)}function qa(e,t=[],r=[],n=[]){Ba(n,t,r,i=>{we(Er,()=>e(...i.map(L)))})}function Qi(e,t=0){var r=we(ze|t,e);return r}function me(e){return we(Ee|st,e)}function Zi(e){var t=e.teardown;if(t!==null){const r=rt,n=y;Gn(!0),ue(null);try{t.call(null)}finally{Gn(r),ue(n)}}}function Hn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Vi(()=>{i.abort(Ae)});var n=r.next;r.f&je?r.parent=null:ae(r,t),r=n}}function za(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Ee||ae(t),t=r}}function ae(e,t=!0){var r=!1;(t||e.f&ra)&&e.nodes!==null&&e.nodes.end!==null&&(Va(e.nodes.start,e.nodes.end),r=!0),$(e,Mn),Hn(e,t&&!r),Qt(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Zi(e),e.f^=Mn,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&Yi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Va(e,t){for(;e!==null;){var r=e===t?null:Ie(e);e.remove(),e=r}}function Yi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function pt(e,t,r=!0){var n=[];Ji(e,n,!0);var i=()=>{r&&ae(e),t&&t()},s=n.length;if(s>0){var l=()=>--s||i();for(var a of n)a.out(l)}else i()}function Ji(e,t,r){if(!(e.f&K)){e.f^=K;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Xt)!==0||(i.f&Ee)!==0&&(e.f&ze)!==0;Ji(i,t,l?r:!1),i=s}}}function Ki(e){es(e,!0)}function es(e,t){if(e.f&K){e.f^=K,e.f&D||($(e,j),qe.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Xt)!==0||(r.f&Ee)!==0;es(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function ts(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ie(r);t.append(r),r=i}}let lr=!1,rt=!1;function Gn(e){rt=e}let y=null,de=!1;function ue(e){y=e}let S=null;function xe(e){S=e}let oe=null;function Xa(e){y!==null&&(oe===null?oe=[e]:oe.push(e))}let W=null,Z=0,te=null;function Wa(e){te=e}let rs=1,Qe=0,Ke=Qe;function kn(e){Ke=e}function ns(){return++rs}function tr(e){var t=e.f;if(t&j)return!0;if(t&F&&(e.f&=~et),t&pe){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(tr(s)&&$i(s),s.wv>e.wv)return!0}t&ne&&k===null&&$(e,D)}return!1}function is(e,t,r=!0){var n=e.reactions;if(n!==null&&!(oe!==null&&St.call(oe,e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&F?is(s,t,!1):t===s&&(r?$(s,j):s.f&D&&$(s,pe),En(s))}}function ss(e){var _,x;var t=W,r=Z,n=te,i=y,s=oe,l=ve,a=de,u=Ke,o=e.f;W=null,Z=0,te=null,y=o&(Ee|je)?null:e,oe=null,Ht(e.ctx),de=!1,Ke=++Qe,e.ac!==null&&(Vi(()=>{e.ac.abort(Ae)}),e.ac=null);try{e.f|=Gr;var f=e.fn,d=f();e.f|=it;var h=e.deps,v=T==null?void 0:T.is_fork;if(W!==null){var c;if(v||Qt(e,Z),h!==null&&Z>0)for(h.length=Z+W.length,c=0;c<W.length;c++)h[Z+c]=W[c];else e.deps=h=W;if(An()&&e.f&ne)for(c=Z;c<h.length;c++)((x=(_=h[c]).reactions)!=null?x:_.reactions=[]).push(e)}else!v&&h!==null&&Z<h.length&&(Qt(e,Z),h.length=Z);if(Ti()&&te!==null&&!de&&h!==null&&!(e.f&(F|pe|j)))for(c=0;c<te.length;c++)is(te[c],e);if(i!==null&&i!==e){if(Qe++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=Qe;if(t!==null)for(const m of t)m.rv=Qe;te!==null&&(n===null?n=te:n.push(...te))}return e.f&Ue&&(e.f^=Ue),d}catch(m){return Ai(m)}finally{e.f^=Gr,W=t,Z=r,te=n,y=i,oe=s,Ht(l),de=a,Ke=u}}function Qa(e,t){let r=t.reactions;if(r!==null){var n=Js.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&F&&(W===null||!St.call(W,t))){var s=t;s.f&ne&&(s.f^=ne,s.f&=~et),bn(s),Ma(s),Qt(s,0)}}function Qt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Qa(e,r[n])}function Bt(e){var t=e.f;if(!(t&ie)){$(e,D);var r=S,n=lr;S=e,lr=!0;try{t&(ze|gi)?za(e):Hn(e),Zi(e);var i=ss(e);e.teardown=typeof i=="function"?i:null,e.wv=rs;var s;Ys&&ma&&e.f&j&&e.deps}finally{lr=n,S=r}}}function L(e){var f;var t=e.f,r=(t&F)!==0;if(y!==null&&!de){var n=S!==null&&(S.f&ie)!==0;if(!n&&(oe===null||!St.call(oe,e))){var i=y.deps;if(y.f&Gr)e.rv<Qe&&(e.rv=Qe,W===null&&i!==null&&i[Z]===e?Z++:W===null?W=[e]:W.push(e));else{((f=y.deps)!=null?f:y.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:St.call(s,y)||s.push(y)}}}if(rt&&Ge.has(e))return Ge.get(e);if(r){var l=e;if(rt){var a=l.v;return(!(l.f&D)&&l.reactions!==null||os(l))&&(a=wn(l)),Ge.set(l,a),a}var u=(l.f&ne)===0&&!de&&y!==null&&(lr||(y.f&ne)!==0),o=(l.f&it)===0;tr(l)&&(u&&(l.f|=ne),$i(l)),u&&!o&&(Di(l),as(l))}if(k!=null&&k.has(e))return k.get(e);if(e.f&Ue)throw e.v;return e.v}function as(e){var t;if(e.f|=ne,e.deps!==null)for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&F&&!(r.f&ne)&&(Di(r),as(r))}function os(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||t.f&F&&os(t))return!0;return!1}function us(e){var t=de;try{return de=!0,e()}finally{de=t}}const Ze=Symbol("events"),ls=new Set,Kr=new Set;function Za(e,t,r){var n;((n=t[Ze])!=null?n:t[Ze]={})[e]=r}function Ya(e){for(var t=0;t<e.length;t++)ls.add(e[t]);for(var r of Kr)r(e)}let jn=null;function qn(e){var x,m;var t=this,r=t.ownerDocument,n=e.type,i=((x=e.composedPath)==null?void 0:x.call(e))||[],s=i[0]||e.target;jn=e;var l=0,a=jn===e&&e[Ze];if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e[Ze]=t;return}var o=i.indexOf(t);if(o===-1)return;u<=o&&(l=u)}if(s=i[l]||e.target,s!==t){Vt(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=y,d=S;ue(null),xe(null);try{for(var h,v=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var _=(m=s[Ze])==null?void 0:m[n];_!=null&&(!s.disabled||e.target===s)&&_.call(s,e)}catch(g){h?v.push(g):h=g}if(e.cancelBubble||c===t||c===null)break;s=c}if(h){for(let g of v)queueMicrotask(()=>{throw g});throw h}}finally{e[Ze]=t,delete e.currentTarget,ue(f),xe(d)}}}var hi;const Cr=((hi=globalThis==null?void 0:globalThis.window)==null?void 0:hi.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ja(e){var t;return(t=Cr==null?void 0:Cr.createHTML(e))!=null?t:e}function Ka(e){var t=Sn("template");return t.innerHTML=Ja(e.replaceAll("<!>","<!---->")),t.content}function en(e,t){var r=S;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function fs(e,t){var r=(t&Zs)!==0,n,i=!e.startsWith("<!>");return()=>{if(B)return en(O,null),O;n===void 0&&(n=Ka(i?e:"<!>"+e),n=Wt(n));var s=r||Gi?document.importNode(n,!0):n.cloneNode(!0);return en(s,s),s}}function tn(e,t){if(B){var r=S;(!(r.f&it)||r.nodes.end===null)&&(r.nodes.end=O),gn();return}e!==null&&e.before(t)}const eo=["touchstart","touchmove"];function to(e){return eo.includes(e)}function zn(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function hs(e,t){return cs(e,t)}function ro(e,t){var l;Jr(),t.intro=(l=t.intro)!=null?l:!1;const r=t.target,n=B,i=O;try{for(var s=Wt(r);s&&(s.nodeType!==er||s.data!==ci);)s=Ie(s);if(!s)throw Tt;Xe(!0),se(s);const a=cs(e,Dt($t({},t),{anchor:s}));return Xe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==Tt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ua(),Jr(),qi(r),Xe(!1),hs(e,t)}finally{Xe(n),se(i)}}const nr=new Map;function cs(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0,transformError:a}){Jr();var u=void 0,o=Ga(()=>{var f=r!=null?r:t.appendChild(ke());Ha(f,{pending:()=>{}},v=>{xi({});var c=ve;if(s&&(c.c=s),i&&(n.$$events=i),B&&en(v,null),u=e(v,n)||{},B&&(S.nodes.end=O,O===null||O.nodeType!==er||O.data!==vn))throw xr(),Tt;wi()},a);var d=new Set,h=v=>{for(var c=0;c<v.length;c++){var _=v[c];if(!d.has(_)){d.add(_);var x=to(_);for(const H of[t,document]){var m=nr.get(H);m===void 0&&(m=new Map,nr.set(H,m));var g=m.get(_);g===void 0?(H.addEventListener(_,qn,{passive:x}),m.set(_,1)):m.set(_,g+1)}}}};return h(yr(ls)),Kr.add(h),()=>{var x;for(var v of d)for(const m of[t,document]){var c=nr.get(m),_=c.get(v);--_==0?(m.removeEventListener(v,qn),c.delete(v),c.size===0&&nr.delete(m)):c.set(v,_)}Kr.delete(h),f!==r&&((x=f.parentNode)==null||x.removeChild(f))}});return rn.set(u,o),u}let rn=new WeakMap;function no(e,t){const r=rn.get(e);return r?(rn.delete(e),r(t)):Promise.resolve()}function io(e,t){return t}function so(e,t,r){var d;for(var n=[],i=t.length,s,l=t.length,a=0;a<i;a++){let h=t[a];pt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var v=e.outrogroups;nn(e,yr(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=n.length===0&&r!==null;if(u){var o=r,f=o.parentNode;qi(f),f.append(o),e.items.clear()}nn(e,t,!u)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function nn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const l of e.pending.values())for(const a of l)n.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=Oe;const l=document.createDocumentFragment();ts(s,l)}else ae(t[i],r)}}var lt;function ao(e,t,r,n,i,s=null){var l=e,a=new Map;{var u=e;l=B?se(Wt(u)):u.appendChild(ke())}B&&gn();var o=null,f=Ia(()=>{var g=r();return pi(g)?g:g==null?[]:yr(g)}),d,h=new Map,v=!0;function c(g){m.effect.f&ie||(m.pending.delete(g),m.fallback=o,oo(m,d,l,t,n),o!==null&&(d.length===0?o.f&Oe?(o.f^=Oe,jt(o,null,l)):Ki(o):pt(o,()=>{o=null})))}function _(g){m.pending.delete(g)}var x=Qi(()=>{d=L(f);var g=d.length;let H=!1;if(B){var z=va(l)===pn;z!==(g===0)&&(l=kr(),se(l),Xe(!1),H=!0)}for(var P=new Set,U=T,Te=$a(),le=0;le<g;le+=1){B&&O.nodeType===er&&O.data===vn&&(l=O,H=!0,Xe(!1));var Q=d[le],Ce=n(Q,le),ee=v?null:a.get(Ce);ee?(ee.v&&Nt(ee.v,Q),ee.i&&Nt(ee.i,le),Te&&U.unskip_effect(ee.e)):(ee=uo(a,v?l:lt!=null?lt:lt=ke(),Q,Ce,le,i,t,r),v||(ee.e.f|=Oe),a.set(Ce,ee)),P.add(Ce)}if(g===0&&s&&!o&&(v?o=me(()=>s(l)):(o=me(()=>s(lt!=null?lt:lt=ke())),o.f|=Oe)),g>P.size&&aa(),B&&g>0&&se(kr()),!v)if(h.set(U,P),Te){for(const[rr,Nr]of a)P.has(rr)||U.skip_effect(Nr.e);U.oncommit(c),U.ondiscard(_)}else c(U);H&&Xe(!0),L(f)}),m={effect:x,items:a,pending:h,outrogroups:null,fallback:o};v=!1,B&&(l=O)}function Ut(e){for(;e!==null&&!(e.f&Ee);)e=e.next;return e}function oo(e,t,r,n,i){var le;var s=t.length,l=e.items,a=Ut(e.effect.first),u,o=null,f=[],d=[],h,v,c,_;for(_=0;_<s;_+=1){if(h=t[_],v=i(h,_),c=l.get(v).e,e.outrogroups!==null)for(const Q of e.outrogroups)Q.pending.delete(c),Q.done.delete(c);if(c.f&Oe)if(c.f^=Oe,c===a)jt(c,null,r);else{var x=o?o.next:a;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Re(e,o,c),Re(e,c,x),jt(c,x,r),o=c,f=[],d=[],a=Ut(o.next);continue}if(c.f&K&&Ki(c),c!==a){if(u!==void 0&&u.has(c)){if(f.length<d.length){var m=d[0],g;o=m.prev;var H=f[0],z=f[f.length-1];for(g=0;g<f.length;g+=1)jt(f[g],m,r);for(g=0;g<d.length;g+=1)u.delete(d[g]);Re(e,H.prev,z.next),Re(e,o,H),Re(e,z,m),a=m,o=z,_-=1,f=[],d=[]}else u.delete(c),jt(c,a,r),Re(e,c.prev,c.next),Re(e,c,o===null?e.effect.first:o.next),Re(e,o,c),o=c;continue}for(f=[],d=[];a!==null&&a!==c;)(u!=null?u:u=new Set).add(a),d.push(a),a=Ut(a.next);if(a===null)continue}c.f&Oe||f.push(c),o=c,a=Ut(c.next)}if(e.outrogroups!==null){for(const Q of e.outrogroups)Q.pending.size===0&&(nn(e,yr(Q.done)),(le=e.outrogroups)==null||le.delete(Q));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||u!==void 0){var P=[];if(u!==void 0)for(c of u)c.f&K||P.push(c);for(;a!==null;)!(a.f&K)&&a!==e.fallback&&P.push(a),a=Ut(a.next);var U=P.length;if(U>0){var Te=s===0?r:null;so(e,P,Te)}}}function uo(e,t,r,n,i,s,l,a){var u=l&Xs?l&Qs?tt(r):Tn(r,!1,!1):null,o=l&Ws?tt(i):null;return{v:u,i:o,e:me(()=>(s(t,u!=null?u:r,o!=null?o:i,a),()=>{e.delete(n)}))}}function jt(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Oe)?t.nodes.start:r;n!==null;){var l=Ie(n);if(s.before(n),n===i)return;n=l}}function Re(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function lo(e,t){ka(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=Sn("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const Vn=[...`
3
- \r\f \v\uFEFF`];function fo(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,l=0;(l=n.indexOf(i,l))>=0;){var a=l+s;(l===0||Vn.includes(n[l-1]))&&(a===n.length||Vn.includes(n[a]))?n=(l===0?"":n.substring(0,l))+n.substring(a+1):l=a}}return n===""?null:n}function Xn(e,t,r,n,i,s){var l=e.__className;if(B||l!==r||l===void 0){var a=fo(r,n,s);(!B||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}else if(s&&i!==s)for(var u in s){var o=!!s[u];(i==null||o!==!!i[u])&&e.classList.toggle(u,o)}return s}const ho=Symbol("is custom element"),co=Symbol("is html");function po(e,t,r,n){var i=vo(e);B&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&mo(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function vo(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[ho]:e.nodeName.includes("-"),[co]:e.namespaceURI===di}}var Wn=new Map;function mo(e){var t=e.getAttribute("is")||e.nodeName,r=Wn.get(t);if(r)return r;Wn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ks(i);for(var l in n)n[l].set&&r.push(l);i=vi(i)}return r}function ir(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=l());var u;u=()=>{var h=e[t];return h===void 0?l():(s=!0,h)};var o=!1,f=xn(()=>(o=!1,u())),d=S;return function(h,v){if(arguments.length>0){const c=v?L(f):h;return ce(f,c),o=!0,i!==void 0&&(i=c),h}return rt&&o||d.f&ie?f.v:L(f)}}function _o(e){return new go(e)}var Be,re;class go{constructor(t){A(this,Be);A(this,re);var s,l;var r=new Map,n=(a,u)=>{var o=Tn(u,!1,!1);return r.set(a,o),o};const i=new Proxy(Dt($t({},t.props||{}),{$$events:{}}),{get(a,u){var o;return L((o=r.get(u))!=null?o:n(u,Reflect.get(a,u)))},has(a,u){var o;return u===ia?!0:(L((o=r.get(u))!=null?o:n(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,o){var f;return ce((f=r.get(u))!=null?f:n(u,o),o),Reflect.set(a,u,o)}});b(this,re,(t.hydrate?ro:hs)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&kt(),b(this,Be,i.$$events);for(const a of Object.keys(p(this,re)))a==="$set"||a==="$destroy"||a==="$on"||Vt(this,a,{get(){return p(this,re)[a]},set(u){p(this,re)[a]=u},enumerable:!0});p(this,re).$set=a=>{Object.assign(i,a)},p(this,re).$destroy=()=>{no(p(this,re))}}$set(t){p(this,re).$set(t)}$on(t,r){p(this,Be)[t]=p(this,Be)[t]||[];const n=(...i)=>r.call(this,...i);return p(this,Be)[t].push(n),()=>{p(this,Be)[t]=p(this,Be)[t].filter(i=>i!==n)}}$destroy(){p(this,re).$destroy()}}Be=new WeakMap,re=new WeakMap;let ds;typeof HTMLElement=="function"&&(ds=class extends HTMLElement{constructor(t,r,n){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);M(this,"$$me");M(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return In(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const l=Sn("slot");i!=="default"&&(l.name=i),tn(s,l)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bo(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=fr(s,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=_o({component:this.$$ctor,target:this.$$shadowRoot||this,props:Dt($t({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=Ua(()=>{Wi(()=>{var i;this.$$r=!0;for(const s of dr(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const l=fr(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const l=this.$$c.$on(i,s);this.$$l_u.set(s,l)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=fr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return dr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function fr(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function yo(e,t,r,n,i,s){let l=class extends ds{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return dr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return dr(t).forEach(a=>{Vt(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var d;u=fr(a,u,t),this.$$d[a]=u;var o=this.$$c;if(o){var f=(d=ct(o,a))==null?void 0:d.get;f?o[a]=u:o.$set({[a]:u})}}})}),n.forEach(a=>{Vt(l.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=l,l}function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xo=function(t){return wo(t)&&!To(t)};function wo(e){return!!e&&typeof e=="object"}function To(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ho(e)}var So=typeof Symbol=="function"&&Symbol.for,Ao=So?Symbol.for("react.element"):60103;function Ho(e){return e.$$typeof===Ao}function No(e){return Array.isArray(e)?[]:{}}function Zt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ot(No(e),e,t):e}function Bo(e,t,r){return e.concat(t).map(function(n){return Zt(n,r)})}function Oo(e,t){if(!t.customMerge)return Ot;var r=t.customMerge(e);return typeof r=="function"?r:Ot}function Po(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qn(e){return Object.keys(e).concat(Po(e))}function ps(e,t){try{return t in e}catch(r){return!1}}function Io(e,t){return ps(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Co(e,t,r){var n={};return r.isMergeableObject(e)&&Qn(e).forEach(function(i){n[i]=Zt(e[i],r)}),Qn(t).forEach(function(i){Io(e,i)||(ps(e,i)&&r.isMergeableObject(t[i])?n[i]=Oo(i,r)(e[i],t[i],r):n[i]=Zt(t[i],r))}),n}function Ot(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Bo,r.isMergeableObject=r.isMergeableObject||xo,r.cloneUnlessOtherwiseSpecified=Zt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Co(e,t,r):Zt(t,r)}Ot.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Ot(n,i,r)},{})};var Ro=Ot,Mo=Ro;const Lo=Eo(Mo);var sn=function(e,t){return sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},sn(e,t)};function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ye.apply(this,arguments)};function $o(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Rr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Mr(e,t){var r=t&&t.cache?t.cache:qo,n=t&&t.serializer?t.serializer:ko,i=t&&t.strategy?t.strategy:Uo;return i(e,{cache:r,serializer:n})}function Do(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Fo(e,t,r,n){var i=Do(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function vs(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function ms(e,t,r,n,i){return r.bind(t,e,n,i)}function Uo(e,t){var r=e.length===1?Fo:vs;return ms(e,this,r,t.cache.create(),t.serializer)}function Go(e,t){return ms(e,this,vs,t.cache.create(),t.serializer)}var ko=function(){return JSON.stringify(arguments)},jo=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}(),qo={create:function(){return new jo}},Lr={variadic:Go},vr=function(){return vr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},vr.apply(this,arguments)};var E;(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"})(E||(E={}));var N;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(N||(N={}));var Pt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pt||(Pt={}));function Zn(e){return e.type===N.literal}function zo(e){return e.type===N.argument}function _s(e){return e.type===N.number}function gs(e){return e.type===N.date}function bs(e){return e.type===N.time}function ys(e){return e.type===N.select}function Es(e){return e.type===N.plural}function Vo(e){return e.type===N.pound}function xs(e){return e.type===N.tag}function ws(e){return!!(e&&typeof e=="object"&&e.type===Pt.number)}function an(e){return!!(e&&typeof e=="object"&&e.type===Pt.dateTime)}var Ts=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xo=/(?:[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 Wo(e){var t={};return e.replace(Xo,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 C=function(){return C=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},C.apply(this,arguments)};var Qo=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zo(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Qo).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],l=s.split("/");if(l.length===0)throw new Error("Invalid number skeleton");for(var a=l[0],u=l.slice(1),o=0,f=u;o<f.length;o++){var d=f[o];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Yo(e){return e.replace(/^(.*?)-/,"")}var Yn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ss=/^(@+)?(\+|#+)?[rs]?$/g,Jo=/(\*)(0+)|(#+)(0+)|(0+)/g,As=/^(0+)$/;function Jn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ss,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Hs(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 Ko(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)),!As.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Kn(e){var t={},r=Hs(e);return r||t}function eu(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yo(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=C(C(C({},t),{notation:"scientific"}),i.options.reduce(function(u,o){return C(C({},u),Kn(o))},{}));continue;case"engineering":t=C(C(C({},t),{notation:"engineering"}),i.options.reduce(function(u,o){return C(C({},u),Kn(o))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Jo,function(u,o,f,d,h,v){if(o)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(As.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Yn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Yn,function(u,o,f,d,h,v){return f==="*"?t.minimumFractionDigits=o.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&v?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+v.length):(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length),""});var s=i.options[0];s==="w"?t=C(C({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=C(C({},t),Jn(s)));continue}if(Ss.test(i.stem)){t=C(C({},t),Jn(i.stem));continue}var l=Hs(i.stem);l&&(t=C(C({},t),l));var a=Ko(i.stem);a&&(t=C(C({},t),a))}return t}var sr={"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 tu(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var l=1+(s&1),a=s<2?1:3+(s>>1),u="a",o=ru(t);for((o=="H"||o=="k")&&(a=0);a-- >0;)r+=u;for(;l-- >0;)r=o+r}else i==="J"?r+="H":r+=i}return r}function ru(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 i=sr[n||""]||sr[r||""]||sr["".concat(r,"-001")]||sr["001"];return i[0]}var $r,nu=new RegExp("^".concat(Ts.source,"*")),iu=new RegExp("".concat(Ts.source,"*$"));function w(e,t){return{start:e,end:t}}var su=!!String.prototype.startsWith&&"_a".startsWith("a",1),au=!!String.fromCodePoint,ou=!!Object.fromEntries,uu=!!String.prototype.codePointAt,lu=!!String.prototype.trimStart,fu=!!String.prototype.trimEnd,hu=!!Number.isSafeInteger,cu=hu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},on=!0;try{var du=Bs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");on=(($r=du.exec("a"))===null||$r===void 0?void 0:$r[0])==="a"}catch(e){on=!1}var ei=su?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},un=au?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,l;i>s;){if(l=t[s++],l>1114111)throw RangeError(l+" is not a valid code point");n+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return n},ti=ou?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],l=s[0],a=s[1];r[l]=a}return r},Ns=uu?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},pu=lu?function(t){return t.trimStart()}:function(t){return t.replace(nu,"")},vu=fu?function(t){return t.trimEnd()}:function(t){return t.replace(iu,"")};function Bs(e,t){return new RegExp(e,t)}var ln;if(on){var ri=Bs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ln=function(t,r){var n;ri.lastIndex=r;var i=ri.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ln=function(t,r){for(var n=[];;){var i=Ns(t,r);if(i===void 0||Os(i)||bu(i))break;n.push(i),r+=i>=65536?2:1}return un.apply(void 0,n)};var mu=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 i=[];!this.isEOF();){var s=this.char();if(s===123){var l=this.parseArgument(t,n);if(l.err)return l;i.push(l.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:N.pound,location:w(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(E.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&fn(this.peek()||0)){var l=this.parseTag(t,r);if(l.err)return l;i.push(l.val)}else{var l=this.parseLiteral(t,r);if(l.err)return l;i.push(l.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:N.literal,value:"<".concat(i,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var l=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fn(this.char()))return this.error(E.INVALID_TAG,w(a,this.clonePosition()));var u=this.clonePosition(),o=this.parseTagName();return i!==o?this.error(E.UNMATCHED_CLOSING_TAG,w(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:N.tag,value:i,children:l,location:w(n,this.clonePosition())},err:null}:this.error(E.INVALID_TAG,w(a,this.clonePosition())))}else return this.error(E.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(E.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&gu(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var l=this.tryParseUnquoted(t,r);if(l){i+=l;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=w(n,this.clonePosition());return{val:{type:N.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_u(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 un.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(),un(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(E.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(E.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:N.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(E.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ln(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),l=w(t,s);return{value:n,location:l}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,l=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(E.EXPECT_ARGUMENT_TYPE,w(l,u));case"number":case"date":case"time":{this.bumpSpace();var o=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=vu(d.val);if(h.length===0)return this.error(E.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var v=w(f,this.clonePosition());o={style:h,styleLocation:v}}var c=this.tryParseArgumentClose(i);if(c.err)return c;var _=w(i,this.clonePosition());if(o&&ei(o==null?void 0:o.style,"::",0)){var x=pu(o.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(x,o.styleLocation);return d.err?d:{val:{type:N.number,value:n,location:_,style:d.val},err:null}}else{if(x.length===0)return this.error(E.EXPECT_DATE_TIME_SKELETON,_);var m=x;this.locale&&(m=tu(x,this.locale));var h={type:Pt.dateTime,pattern:m,location:o.styleLocation,parsedOptions:this.shouldParseSkeletons?Wo(m):{}},g=a==="date"?N.date:N.time;return{val:{type:g,value:n,location:_,style:h},err:null}}}return{val:{type:a==="number"?N.number:a==="date"?N.date:N.time,value:n,location:_,style:(s=o==null?void 0:o.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS,w(H,vr({},H)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),P=0;if(a!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),z=this.parseIdentifierIfPossible(),P=d.val}var U=this.tryParsePluralOrSelectOptions(t,a,r,z);if(U.err)return U;var c=this.tryParseArgumentClose(i);if(c.err)return c;var Te=w(i,this.clonePosition());return a==="select"?{val:{type:N.select,value:n,options:ti(U.val),location:Te},err:null}:{val:{type:N.plural,value:n,options:ti(U.val),offset:P,pluralType:a==="plural"?"cardinal":"ordinal",location:Te},err:null}}default:return this.error(E.INVALID_ARGUMENT_TYPE,w(l,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,w(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 i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(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=Zo(t)}catch(i){return this.error(E.INVALID_NUMBER_SKELETON,r)}return{val:{type:Pt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?eu(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,l=!1,a=[],u=new Set,o=i.value,f=i.location;;){if(o.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR,E.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=w(d,this.clonePosition()),o=this.message.slice(d.offset,this.offset())}else break}if(u.has(o))return this.error(r==="select"?E.DUPLICATE_SELECT_ARGUMENT_SELECTOR:E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);o==="other"&&(l=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var c=this.parseMessage(t+1,r,n);if(c.err)return c;var _=this.tryParseArgumentClose(v);if(_.err)return _;a.push([o,{value:c.val,location:w(v,this.clonePosition())}]),u.add(o),this.bumpSpace(),s=this.parseIdentifierIfPossible(),o=s.value,f=s.location}return a.length===0?this.error(r==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR:E.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(E.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,l=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,l=l*10+(a-48),this.bump();else break}var u=w(i,this.clonePosition());return s?(l*=n,cu(l)?{val:l,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=Ns(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(ei(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()&&Os(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 fn(e){return e>=97&&e<=122||e>=65&&e<=90}function _u(e){return fn(e)||e===47}function gu(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 Os(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bu(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 hn(e){e.forEach(function(t){if(delete t.location,ys(t)||Es(t))for(var r in t.options)delete t.options[r].location,hn(t.options[r].value);else _s(t)&&ws(t.style)||(gs(t)||bs(t))&&an(t.style)?delete t.style.location:xs(t)&&hn(t.children)})}function yu(e,t){t===void 0&&(t={}),t=vr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new mu(e,t).parse();if(r.err){var n=SyntaxError(E[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||hn(r.val),r.val}var It;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(It||(It={}));var Sr=function(e){Tr(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ni=function(e){Tr(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),It.INVALID_VALUE,s)||this}return t}(Sr),Eu=function(e){Tr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),It.INVALID_VALUE,i)||this}return t}(Sr),xu=function(e){Tr(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,'"'),It.MISSING_VALUE,n)||this}return t}(Sr),V;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(V||(V={}));function wu(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==V.literal||r.type!==V.literal?t.push(r):n.value+=r.value,t},[])}function Tu(e){return typeof e=="function"}function hr(e,t,r,n,i,s,l){if(e.length===1&&Zn(e[0]))return[{type:V.literal,value:e[0].value}];for(var a=[],u=0,o=e;u<o.length;u++){var f=o[u];if(Zn(f)){a.push({type:V.literal,value:f.value});continue}if(Vo(f)){typeof s=="number"&&a.push({type:V.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new xu(d,l);var h=i[d];if(zo(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?V.literal:V.object,value:h});continue}if(gs(f)){var v=typeof f.style=="string"?n.date[f.style]:an(f.style)?f.style.parsedOptions:void 0;a.push({type:V.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(bs(f)){var v=typeof f.style=="string"?n.time[f.style]:an(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:V.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(_s(f)){var v=typeof f.style=="string"?n.number[f.style]:ws(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(h=h*(v.scale||1)),a.push({type:V.literal,value:r.getNumberFormat(t,v).format(h)});continue}if(xs(f)){var c=f.children,_=f.value,x=i[_];if(!Tu(x))throw new Eu(_,"function",l);var m=hr(c,t,r,n,i,s),g=x(m.map(function(P){return P.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(P){return{type:typeof P=="string"?V.literal:V.object,value:P}}))}if(ys(f)){var H=f.options[h]||f.options.other;if(!H)throw new ni(f.value,h,Object.keys(f.options),l);a.push.apply(a,hr(H.value,t,r,n,i));continue}if(Es(f)){var H=f.options["=".concat(h)];if(!H){if(!Intl.PluralRules)throw new Sr(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,It.MISSING_INTL_API,l);var z=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));H=f.options[z]||f.options.other}if(!H)throw new ni(f.value,h,Object.keys(f.options),l);a.push.apply(a,hr(H.value,t,r,n,i,h-(f.offset||0)));continue}}return wu(a)}function Su(e,t){return t?ye(ye(ye({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ye(ye({},e[n]),t[n]||{}),r},{})):e}function Au(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Su(e[n],t[n]),r},ye({},e)):e}function Dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Hu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Rr([void 0],r,!1)))},{cache:Dr(e.number),strategy:Lr.variadic}),getDateTimeFormat:Mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Rr([void 0],r,!1)))},{cache:Dr(e.dateTime),strategy:Lr.variadic}),getPluralRules:Mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Rr([void 0],r,!1)))},{cache:Dr(e.pluralRules),strategy:Lr.variadic})}}var Nu=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var o=s.formatToParts(u);if(o.length===1)return o[0].value;var f=o.reduce(function(d,h){return!d.length||h.type!==V.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return hr(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.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 l=i||{};l.formatters;var a=$o(l,["formatters"]);this.ast=e.__parse(t,ye(ye({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Au(e.formats,n),this.formatters=i&&i.formatters||Hu(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=yu,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 Bu(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Fe={},Ou=(e,t,r)=>r&&(t in Fe||(Fe[t]={}),e in Fe[t]||(Fe[t][e]=r),r),Ps=(e,t)=>{if(t==null)return;if(t in Fe&&e in Fe[t])return Fe[t][e];const r=Ar(t);for(let n=0;n<r.length;n++){const i=r[n],s=Iu(i,e);if(s)return Ou(e,t,s)}};let Nn;const Mt=wr({});function Pu(e){return Nn[e]||null}function Is(e){return e in Nn}function Iu(e,t){if(!Is(e))return null;const r=Pu(e);return Bu(r,t)}function Cu(e){if(e==null)return;const t=Ar(e);for(let r=0;r<t.length;r++){const n=t[r];if(Is(n))return n}}function Cs(e,...t){delete Fe[e],Mt.update(r=>(r[e]=Lo.all([r[e]||{},...t]),r))}Rt([Mt],([e])=>Object.keys(e));Mt.subscribe(e=>Nn=e);const cr={};function Ru(e,t){cr[e].delete(t),cr[e].size===0&&delete cr[e]}function Rs(e){return cr[e]}function Mu(e){return Ar(e).map(t=>{const r=Rs(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function cn(e){return e==null?!1:Ar(e).some(t=>{var r;return(r=Rs(t))==null?void 0:r.size})}function Lu(e,t){return Promise.all(t.map(n=>(Ru(e,n),n().then(i=>i.default||i)))).then(n=>Cs(e,...n))}const Gt={};function Ms(e){if(!cn(e))return e in Gt?Gt[e]:Promise.resolve();const t=Mu(e);return Gt[e]=Promise.all(t.map(([r,n])=>Lu(r,n))).then(()=>{if(cn(e))return Ms(e);delete Gt[e]}),Gt[e]}const $u={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"}}},Du={fallbackLocale:null,loadingDelay:200,formats:$u,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Fu=Du;function Ct(){return Fu}const Fr=wr(!1);var Uu=Object.defineProperty,Gu=Object.defineProperties,ku=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,si=(e,t,r)=>t in e?Uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zu=(e,t)=>{for(var r in t||(t={}))ju.call(t,r)&&si(e,r,t[r]);if(ii)for(var r of ii(t))qu.call(t,r)&&si(e,r,t[r]);return e},Vu=(e,t)=>Gu(e,ku(t));let dn;const mr=wr(null);function ai(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ar(e,t=Ct().fallbackLocale){const r=ai(e);return t?[...new Set([...r,...ai(t)])]:r}function at(){return dn!=null?dn:void 0}mr.subscribe(e=>{dn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Xu=e=>{if(e&&Cu(e)&&cn(e)){const{loadingDelay:t}=Ct();let r;return typeof window!="undefined"&&at()!=null&&t?r=window.setTimeout(()=>Fr.set(!0),t):Fr.set(!0),Ms(e).then(()=>{mr.set(e)}).finally(()=>{clearTimeout(r),Fr.set(!1)})}return mr.set(e)},nt=Vu(zu({},mr),{set:Xu}),Hr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Wu=Object.defineProperty,_r=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable,oi=(e,t,r)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bn=(e,t)=>{for(var r in t||(t={}))Ls.call(t,r)&&oi(e,r,t[r]);if(_r)for(var r of _r(t))$s.call(t,r)&&oi(e,r,t[r]);return e},Lt=(e,t)=>{var r={};for(var n in e)Ls.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_r)for(var n of _r(e))t.indexOf(n)<0&&$s.call(e,n)&&(r[n]=e[n]);return r};const Yt=(e,t)=>{const{formats:r}=Ct();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qu=Hr(e=>{var t=e,{locale:r,format:n}=t,i=Lt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Yt("number",n)),new Intl.NumberFormat(r,i)}),Zu=Hr(e=>{var t=e,{locale:r,format:n}=t,i=Lt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Yt("date",n):Object.keys(i).length===0&&(i=Yt("date","short")),new Intl.DateTimeFormat(r,i)}),Yu=Hr(e=>{var t=e,{locale:r,format:n}=t,i=Lt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Yt("time",n):Object.keys(i).length===0&&(i=Yt("time","short")),new Intl.DateTimeFormat(r,i)}),Ju=(e={})=>{var t=e,{locale:r=at()}=t,n=Lt(t,["locale"]);return Qu(Bn({locale:r},n))},Ku=(e={})=>{var t=e,{locale:r=at()}=t,n=Lt(t,["locale"]);return Zu(Bn({locale:r},n))},el=(e={})=>{var t=e,{locale:r=at()}=t,n=Lt(t,["locale"]);return Yu(Bn({locale:r},n))},tl=Hr((e,t=at())=>new Nu(e,t,Ct().formats,{ignoreTag:Ct().ignoreTag})),rl=(e,t={})=>{var r,n,i,s;let l=t;typeof e=="object"&&(l=e,e=l.id);const{values:a,locale:u=at(),default:o}=l;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ps(e,u);if(!f)f=(s=(i=(n=(r=Ct()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:o}))!=null?i:o)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let d=f;try{d=tl(f,u).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},nl=(e,t)=>el(t).format(e),il=(e,t)=>Ku(t).format(e),sl=(e,t)=>Ju(t).format(e),al=(e,t=at())=>Ps(e,t),ol=Rt([nt,Mt],()=>rl);Rt([nt],()=>nl);Rt([nt],()=>il);Rt([nt],()=>sl);Rt([nt,Mt],()=>al);function ul({withLocale:e,translations:t}){nt.subscribe(r=>{r==null&&(Mt.set(t),nt.set(e))})}function ll(e,t){Cs(e,t)}const fl={en:{faqBestQuestion:"Why is {operatorName}''s program the best?",faqBestAnswer:"{operatorName} offers a unique loyalty programme that rewards players with exclusive benefits, including 50 Free Spins automatically credited every Wednesday.",faqWinningsQuestion:"How can you increase your winnings at {operatorName}?",faqWinningsAnswer:"{operatorName} provides users with regular exclusive bonuses and promotions, giving them opportunities to boost their earnings.",faqGamesQuestion:"What variety of games does {operatorName} offer?",faqGamesAnswer:"{operatorName} caters to every type of player by offering a wide range of games, from slots to table games.",faqSupportQuestion:"How is {operatorName}''s customer service?",faqSupportAnswer:"{operatorName} offers 24/7 customer support, providing players with quick and effective solutions to any queries."},tr:{faqBestQuestion:"{operatorName} programı neden en iyisi?",faqBestAnswer:"{operatorName}, oyunculara her Çarşamba otomatik olarak tanımlanan 50 Ücretsiz Dönüş dahil olmak üzere özel avantajlar sunan benzersiz bir sadakat programı sunar.",faqWinningsQuestion:"{operatorName} ile kazançlarınızı nasıl artırabilirsiniz?",faqWinningsAnswer:"{operatorName}, kullanıcılarına düzenli olarak özel bonuslar ve promosyonlar sunarak kazançlarını artırma fırsatı verir.",faqGamesQuestion:"{operatorName} ne tür oyunlar sunuyor?",faqGamesAnswer:"{operatorName}, slotlardan masa oyunlarına kadar geniş bir oyun yelpazesi sunarak her tür oyuncuya hitap eder.",faqSupportQuestion:"{operatorName} müşteri hizmetleri nasıl?",faqSupportAnswer:"{operatorName}, 7/24 müşteri desteği sunarak oyunculara her türlü soruya hızlı ve etkili çözümler sağlar."}};var hl=fs('<div class="faq__item svelte-ztcndm"><button class="faq__title svelte-ztcndm" type="button"><span class="faq__question svelte-ztcndm"> </span> <span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" class="svelte-ztcndm"><path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="svelte-ztcndm"></path></svg></span></button> <div><div class="faq__answer svelte-ztcndm"> </div></div></div>'),cl=fs('<div class="faq svelte-ztcndm"><div class="faq__list svelte-ztcndm"></div></div>');const dl={hash:"svelte-ztcndm",code:`.faq.svelte-ztcndm {color:var(--text-default, #FFFFFF);width:100%;box-sizing:border-box;}.faq__list.svelte-ztcndm {display:flex;flex-direction:column;gap:12px;}.faq__item.svelte-ztcndm {background:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));overflow:hidden;padding:16px;}.faq__title.svelte-ztcndm {width:100%;display:flex;justify-content:space-between;align-items:flex-start;background:transparent;color:var(--text-default, #FFFFFF);font-size:12px;font-weight:700;line-height:1.4;text-align:left;cursor:pointer;border:none;padding:0;}.faq__title.svelte-ztcndm:hover {background:transparent;}.faq__title.svelte-ztcndm,
6
- .faq__title.svelte-ztcndm :where(.svelte-ztcndm) {-webkit-tap-highlight-color:transparent;}.faq__question.svelte-ztcndm {text-align:left;}.faq__icon.svelte-ztcndm {flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #FFFFFF);transition:transform 0.25s ease;}.faq__icon--open.svelte-ztcndm {transform:rotate(180deg);}.faq__answer-wrapper.svelte-ztcndm {display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-4px);transition:grid-template-rows 0.35s ease,
7
- opacity 0.2s ease,
8
- transform 0.25s ease;}.faq__answer.svelte-ztcndm {overflow:hidden;font-size:12px;font-weight:500;line-height:1.5;color:var(--text-subtle, #DFE3E8);}.faq__answer-wrapper.open.svelte-ztcndm {grid-template-rows:1fr;opacity:1;transform:translateY(0);padding-top:16px;}`};function Ds(e,t){xi(t,!0),lo(e,dl);const r=()=>Ea(ol,"$_",n),[n,i]=xa(),s=ir(t,"apiEndpoint",7,""),l=ir(t,"operatorName",7,""),a=ir(t,"locale",7,"en"),u=ir(t,"isExpanded",7,!0),o=u()===!0||u()==="true",f=[{questionKey:"faqBestQuestion",answerKey:"faqBestAnswer"},{questionKey:"faqWinningsQuestion",answerKey:"faqWinningsAnswer"},{questionKey:"faqGamesQuestion",answerKey:"faqGamesAnswer"},{questionKey:"faqSupportQuestion",answerKey:"faqSupportAnswer"}];ul({withLocale:a(),translations:{}}),Object.entries(fl).forEach(([m,g])=>{ll(m,g)});let d=Se(ht(Object.fromEntries(f.map((m,g)=>[g,o]))));const h=m=>{ce(d,Dt($t({},L(d)),{[m]:!L(d)[m]}),!0)};var v={get apiEndpoint(){return s()},set apiEndpoint(m=""){s(m),kt()},get operatorName(){return l()},set operatorName(m=""){l(m),kt()},get locale(){return a()},set locale(m="en"){a(m),kt()},get isExpanded(){return u()},set isExpanded(m=!0){u(m),kt()}},c=cl(),_=ut(c);ao(_,21,()=>f,io,(m,g,H)=>{var z=hl(),P=ut(z),U=ut(P),Te=ut(U,!0);Ve(U);var le=Un(U,2);let Q;Ve(P);var Ce=Un(P,2);let ee;var rr=ut(Ce),Nr=ut(rr,!0);Ve(rr),Ve(Ce),Ve(z),qa((Fs,Us)=>{po(P,"aria-expanded",!!L(d)[H]),zn(Te,Fs),Q=Xn(le,1,"faq__icon svelte-ztcndm",null,Q,{"faq__icon--open":L(d)[H]}),ee=Xn(Ce,1,"faq__answer-wrapper svelte-ztcndm",null,ee,{open:L(d)[H]}),zn(Nr,Us)},[()=>r()(L(g).questionKey,{values:{operatorName:l()}}),()=>r()(L(g).answerKey,{values:{operatorName:l()}})]),Za("click",P,()=>h(H)),tn(m,z)}),Ve(_),Ve(c),tn(e,c);var x=wi(v);return i(),x}Ya(["click"]);customElements.define("loyalty-marketing-content",yo(Ds,{apiEndpoint:{},operatorName:{},locale:{},isExpanded:{}},[],[]));exports.default=Ds;