@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.
- package/components/LoyaltyMarketingContent-BZxDLl1n.cjs +8 -0
- package/components/LoyaltyMarketingContent-DErOTzSl.cjs +8 -0
- package/components/{LoyaltyMarketingContent-de-lj-xT.js → LoyaltyMarketingContent-DQ0HI7oM.js} +2499 -2233
- package/components/LoyaltyMarketingContent-Dd6TMKj7.js +6814 -0
- package/es2015/loyalty-marketing-content.cjs +1 -0
- package/es2015/loyalty-marketing-content.js +28 -0
- package/esnext/loyalty-marketing-content.cjs +1 -1
- package/esnext/loyalty-marketing-content.js +9 -4
- package/package.json +10 -4
- package/components/LoyaltyMarketingContent-Bh8YSEkX.js +0 -6162
- package/components/LoyaltyMarketingContent-ByqHFFJ5.cjs +0 -8
- package/components/LoyaltyMarketingContent-CFgmQ9gq.js +0 -6084
- package/components/LoyaltyMarketingContent-CZ53_k_p.cjs +0 -8
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";const ts="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ts);const rs=1,ns=2,is=16,ss=2,Pn="[",Rr="[!",rn="[?",Dr="]",ht={},Q=Symbol(),In="http://www.w3.org/1999/xhtml",as=!1;var Cn=Array.isArray,os=Array.prototype.indexOf,ct=Array.prototype.includes,er=Array.from,Qt=Object.keys,Pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,us=Object.getOwnPropertyDescriptors,ls=Object.prototype,fs=Array.prototype,Ln=Object.getPrototypeOf,nn=Object.isExtensible;const Oe=()=>{};function Rn(e){for(var t=0;t<e.length;t++)e[t]()}function Dn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const W=2,dt=4,tr=8,kn=1<<24,Ge=16,ye=32,Fe=64,mr=128,ae=512,z=1024,Y=2048,me=4096,re=8192,oe=16384,Ke=32768,sn=1<<25,It=65536,an=1<<17,hs=1<<18,et=1<<19,cs=1<<20,Ne=1<<25,Qe=65536,gr=1<<21,kr=1<<22,Re=1<<23,ur=Symbol("$state"),ds=Symbol("legacy props"),Ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Fr=3,kt=8;function ps(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vs(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ms(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(){throw new Error("https://svelte.dev/e/hydration_failed")}function _s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Es(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let D=!1;function Ve(e){D=e}let k;function ue(e){if(e===null)throw rr(),ht;return k=e}function Gr(){return ue(Be(k))}function qe(e){if(D){if(Be(k)!==null)throw rr(),ht;k=e}}function ws(e=1){if(D){for(var t=e,r=k;t--;)r=Be(r);k=r}}function _r(e=!0){for(var t=0,r=k;;){if(r.nodeType===kt){var n=r.data;if(n===Dr){if(t===0)return r;t-=1}else(n===Pn||n===Rr||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Be(r);e&&r.remove(),r=i}}function Ss(e){if(!e||e.nodeType!==kt)throw rr(),ht;return e.data}function Fn(e){return e===this.v}function Gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!Gn(e,this.v)}let Ts=!1,ge=null;function pt(e){ge=e}function Ur(e,t=!1,r){ge={p:ge,i:!1,c:null,e:null,s:e,x:null,r:$,l:null}}function jr(e){var t=ge,r=t.e;if(r!==null){t.e=null;for(var n of r)Xs(n)}return e!==void 0&&(t.x=e),t.i=!0,ge=t.p,e??{}}function jn(){return!0}let ze=[];function qn(){var e=ze;ze=[],Rn(e)}function lt(e){if(ze.length===0&&!Bt){var t=ze;queueMicrotask(()=>{t===ze&&qn()})}ze.push(e)}function As(){for(;ze.length>0;)qn()}function Vn(e){var t=$;if(t===null)return O.f|=Re,e;if(!(t.f&Ke)&&!(t.f&dt))throw e;Ie(e,t)}function Ie(e,t){for(;t!==null;){if(t.f&mr){if(!(t.f&Ke))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Ns=-7169;function j(e,t){e.f=e.f&Ns|t}function qr(e){e.f&ae||e.deps===null?j(e,z):j(e,me)}function zn(e){if(e!==null)for(const t of e)!(t.f&W)||!(t.f&Qe)||(t.f^=Qe,zn(t.deps))}function Wn(e,t,r){e.f&Y?t.add(e):e.f&me&&r.add(e),zn(e.deps),j(e,z)}function Vr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Oe;const n=wi(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const it=[];function Hs(e,t){return{subscribe:nr(e,t).subscribe}}function nr(e,t=Oe){let r=null;const n=new Set;function i(a){if(Gn(e,a)&&(e=a,r)){const l=!it.length;for(const u of n)u[1](),it.push(u,e);if(l){for(let u=0;u<it.length;u+=2)it[u][0](it[u+1]);it.length=0}}}function s(a){i(a(e))}function o(a,l=Oe){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,s)||Oe),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function Et(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 Hs(r,(o,a)=>{let l=!1;const u=[];let f=0,h=Oe;const c=()=>{if(f)return;h();const d=t(n?u[0]:u,o,a);s?o(d):h=typeof d=="function"?d:Oe},p=i.map((d,_)=>Vr(d,A=>{u[_]=A,f&=~(1<<_),l&&c()},()=>{f|=1<<_}));return l=!0,c(),function(){Rn(p),h(),l=!1}})}function Os(e){let t;return Vr(e,r=>t=r)(),t}let br=Symbol();function $s(e,t,r){const n=r[t]??={store:null,source:Qr(void 0),unsubscribe:Oe};if(n.store!==e&&!(br in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Oe;else{var i=!0;n.unsubscribe=Vr(e,s=>{i?n.source.v=s:de(n.source,s)}),i=!1}return e&&br in r?Os(e):U(n.source)}function Bs(){const e={};function t(){ui(()=>{for(var r in e)e[r].unsubscribe();Pt(e,br,{enumerable:!1,value:!0})})}return[e,t]}const At=new Set;let C=null,pe=null,yr=null,Bt=!1,lr=!1,at=null,qt=null;var on=0;let Ms=1;class $e{id=Ms++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#o=0;#u=0;#r=null;#a=[];#n=new Set;#i=new Set;#s=new Map;is_fork=!1;#l=!1;#f(){return this.is_fork||this.#u>0}skip_effect(t){this.#s.has(t)||this.#s.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#s.get(t);if(r){this.#s.delete(t);for(var n of r.d)j(n,Y),this.schedule(n);for(n of r.m)j(n,me),this.schedule(n)}}#c(){on++>1e3&&Ps();const t=this.#a;this.#a=[],this.apply();var r=at=[],n=[],i=qt=[];for(const a of t)this.#d(a,r,n);if(C=null,i.length>0){var s=$e.ensure();for(const a of i)s.schedule(a)}if(at=null,qt=null,this.#f()){this.#p(n),this.#p(r);for(const[a,l]of this.#s)Yn(a,l)}else{this.#n.clear(),this.#i.clear();for(const a of this.#e)a(this);this.#e.clear(),un(n),un(r),this.#o===0&&this.#h(),this.#r?.resolve()}var o=C;o!==null&&(At.add(o),o.#c())}#d(t,r,n){t.f^=z;for(var i=t.first;i!==null;){var s=i.f,o=(s&(ye|Fe))!==0,a=o&&(s&z)!==0,l=a||(s&re)!==0||this.#s.has(i);if(!l&&i.fn!==null){o?i.f^=z:s&dt?r.push(i):Ft(i)&&(s&Ge&&this.#i.add(i),mt(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#p(t){for(var r=0;r<t.length;r+=1)Wn(t[r],this.#n,this.#i)}capture(t,r){r!==Q&&!this.previous.has(t)&&this.previous.set(t,r),t.f&Re||(this.current.set(t,t.v),pe?.set(t,t.v))}activate(){C=this}deactivate(){C=null,pe=null}flush(){try{if(lr=!0,C=this,!this.#f()){for(const t of this.#n)this.#i.delete(t),j(t,Y),this.schedule(t);for(const t of this.#i)j(t,me),this.schedule(t)}this.#c()}finally{on=0,yr=null,at=null,qt=null,lr=!1,C=null,pe=null,De.clear()}}discard(){for(const t of this.#t)t(this);this.#t.clear()}#h(){if(At.size>1){this.previous.clear();var t=C,r=pe,n=!0;for(const i of At){if(i===this){n=!1;continue}const s=[];for(const[a,l]of this.current){if(i.current.has(a))if(n&&l!==i.current.get(a))i.current.set(a,l);else continue;s.push(a)}if(s.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){i.activate();const a=new Set,l=new Map;for(const u of s)Xn(u,o,a,l);if(i.#a.length>0){i.apply();for(const u of i.#a)i.#d(u,[],[])}i.deactivate()}}C=t,pe=r}this.#s.clear(),At.delete(this)}increment(t){this.#o+=1,t&&(this.#u+=1)}decrement(t,r){this.#o-=1,t&&(this.#u-=1),!(this.#l||r)&&(this.#l=!0,lt(()=>{this.#l=!1,this.flush()}))}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#r??=Dn()).promise}static ensure(){if(C===null){const t=C=new $e;lr||(At.add(C),Bt||lt(()=>{C===t&&t.flush()}))}return C}apply(){}schedule(t){if(yr=t,t.b?.is_pending&&t.f&(dt|tr|kn)&&!(t.f&Ke)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(at!==null&&r===$&&(O===null||!(O.f&W)))return;if(n&(Fe|ye)){if(!(n&z))return;r.f^=z}}this.#a.push(r)}}function He(e){var t=Bt;Bt=!0;try{for(var r;;){if(As(),C===null)return r;C.flush()}}finally{Bt=t}}function Ps(){try{ms()}catch(e){Ie(e,yr)}}let Te=null;function un(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(oe|re))&&Ft(n)&&(Te=new Set,mt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&ci(n),Te?.size>0)){De.clear();for(const i of Te){if(i.f&(oe|re))continue;const s=[i];let o=i.parent;for(;o!==null;)Te.has(o)&&(Te.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];l.f&(oe|re)||mt(l)}}Te.clear()}}Te=null}}function Xn(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&W?Xn(i,t,r,n):s&(kr|Ge)&&!(s&Y)&&Qn(i,t,n)&&(j(i,Y),zr(i))}}function Qn(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(ct.call(t,i))return!0;if(i.f&W&&Qn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function zr(e){C.schedule(e)}function Yn(e,t){if(!(e.f&ye&&e.f&z)){e.f&Y?t.d.push(e):e.f&me&&t.m.push(e),j(e,z);for(var r=e.first;r!==null;)Yn(r,t),r=r.next}}function Is(e){let t=0,r=Ye(0),n;return()=>{Zr()&&(U(r),li(()=>(t===0&&(n=wi(()=>e(()=>Mt(r)))),t+=1,()=>{lt(()=>{t-=1,t===0&&(n?.(),n=void 0,Mt(r))})})))}}var Cs=It|et;function Ls(e,t,r,n){new Rs(e,t,r,n)}class Rs{parent;is_pending=!1;transform_error;#e;#t=D?k:null;#o;#u;#r;#a=null;#n=null;#i=null;#s=null;#l=0;#f=0;#c=!1;#d=new Set;#p=new Set;#h=null;#b=Is(()=>(this.#h=Ye(this.#l),()=>{this.#h=null}));constructor(t,r,n,i){this.#e=t,this.#o=r,this.#u=s=>{var o=$;o.b=this,o.f|=mr,n(s)},this.parent=$.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#r=fi(()=>{if(D){const s=this.#t;Gr();const o=s.data===Rr;if(s.data.startsWith(rn)){const l=JSON.parse(s.data.slice(rn.length));this.#E(l)}else o?this.#x():this.#y()}else this.#g()},Cs),D&&(this.#e=k)}#y(){try{this.#a=_e(()=>this.#u(this.#e))}catch(t){this.error(t)}}#E(t){const r=this.#o.failed;r&&(this.#i=_e(()=>{r(this.#e,()=>t,()=>()=>{})}))}#x(){const t=this.#o.pending;if(t){this.is_pending=!0,this.#n=_e(()=>t(this.#e));var r=C;lt(()=>{var n=this.#s=document.createDocumentFragment(),i=ke();n.append(i),this.#a=this.#m(()=>_e(()=>this.#u(i))),this.#f===0&&(this.#e.before(n),this.#s=null,ft(this.#n,()=>{this.#n=null}),this.#v(r))})}}#g(){var t=C;try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#l=0,this.#a=_e(()=>{this.#u(this.#e)}),this.#f>0){var r=this.#s=document.createDocumentFragment();mi(this.#a,r);const n=this.#o.pending;this.#n=_e(()=>n(this.#e))}else this.#v(t)}catch(n){this.error(n)}}#v(t){this.is_pending=!1;for(const r of this.#d)j(r,Y),t.schedule(r);for(const r of this.#p)j(r,me),t.schedule(r);this.#d.clear(),this.#p.clear()}defer_effect(t){Wn(t,this.#d,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#o.pending}#m(t){var r=$,n=O,i=ge;Ee(this.#r),he(this.#r),pt(this.#r.ctx);try{return $e.ensure(),t()}catch(s){return Vn(s),null}finally{Ee(r),he(n),pt(i)}}#_(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t,r);return}this.#f+=t,this.#f===0&&(this.#v(r),this.#n&&ft(this.#n,()=>{this.#n=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(t,r){this.#_(t,r),this.#l+=t,!(!this.#h||this.#c)&&(this.#c=!0,lt(()=>{this.#c=!1,this.#h&&vt(this.#h,this.#l)}))}get_effect_pending(){return this.#b(),U(this.#h)}error(t){var r=this.#o.onerror;let n=this.#o.failed;if(!r&&!n)throw t;this.#a&&(le(this.#a),this.#a=null),this.#n&&(le(this.#n),this.#n=null),this.#i&&(le(this.#i),this.#i=null),D&&(ue(this.#t),ws(),ue(_r()));var i=!1,s=!1;const o=()=>{if(i){xs();return}i=!0,s&&Es(),this.#i!==null&&ft(this.#i,()=>{this.#i=null}),this.#m(()=>{this.#g()})},a=l=>{try{s=!0,r?.(l,o),s=!1}catch(u){Ie(u,this.#r&&this.#r.parent)}n&&(this.#i=this.#m(()=>{try{return _e(()=>{var u=$;u.b=this,u.f|=mr,n(this.#e,()=>l,()=>o)})}catch(u){return Ie(u,this.#r.parent),null}}))};lt(()=>{var l;try{l=this.transform_error(t)}catch(u){Ie(u,this.#r&&this.#r.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(a,u=>Ie(u,this.#r&&this.#r.parent)):a(l)})}}function Ds(e,t,r,n){const i=Wr;var s=e.filter(c=>!c.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var o=$,a=ks(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function u(c){a();try{n(c)}catch(p){o.f&oe||Ie(p,o)}Yt()}if(r.length===0){l.then(()=>u(t.map(i)));return}var f=Zn();function h(){Promise.all(r.map(c=>Fs(c))).then(c=>u([...t.map(i),...c])).catch(c=>Ie(c,o)).finally(()=>f())}l?l.then(()=>{a(),h(),Yt()}):h()}function ks(){var e=$,t=O,r=ge,n=C;return function(s=!0){Ee(e),he(t),pt(r),s&&!(e.f&oe)&&(n?.activate(),n?.apply())}}function Yt(e=!0){Ee(null),he(null),pt(null),e&&C?.deactivate()}function Zn(){var e=$.b,t=C,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 Wr(e){var t=W|Y,r=O!==null&&O.f&W?O:null;return $!==null&&($.f|=et),{ctx:ge,deps:null,effects:null,equals:Fn,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r??$,ac:null}}function Fs(e,t,r){let n=$;n===null&&ps();var i=void 0,s=Ye(Q),o=!O,a=new Map;return Js(()=>{var l=$,u=Dn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Yt)}catch(p){u.reject(p),Yt()}var f=C;if(o){if(l.f&Ke)var h=Zn();if(n.b.is_rendered())a.get(f)?.reject(Ae),a.delete(f);else{for(const p of a.values())p.reject(Ae);a.clear()}a.set(f,u)}const c=(p,d=void 0)=>{if(h){var _=d===Ae;h(_)}if(!(d===Ae||l.f&oe)){if(f.activate(),d)s.f|=Re,vt(s,d);else{s.f&Re&&(s.f^=Re),vt(s,p);for(const[A,y]of a){if(a.delete(A),A===f)break;y.reject(Ae)}}f.deactivate()}};u.promise.then(c,p=>c(null,p||"unknown"))}),ui(()=>{for(const l of a.values())l.reject(Ae)}),new Promise(l=>{function u(f){function h(){f===i?l(s):u(i)}f.then(h,h)}u(i)})}function Gs(e){const t=Wr(e);return t.equals=Un,t}function Us(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)le(t[r])}}function js(e){for(var t=e.parent;t!==null;){if(!(t.f&W))return t.f&oe?null:t;t=t.parent}return null}function Xr(e){var t,r=$;Ee(js(e));try{e.f&=~Qe,Us(e),t=yi(e)}finally{Ee(r)}return t}function Jn(e){var t=Xr(e);if(!e.equals(t)&&(e.wv=_i(),(!C?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){j(e,z);return}Ze||(pe!==null?(Zr()||C?.is_fork)&&pe.set(e,t):qr(e))}function qs(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Ae),t.teardown=Oe,t.ac=null,Lt(t,0),Jr(t))}function Kn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&mt(t)}let Er=new Set;const De=new Map;let ei=!1;function Ye(e,t){var r={f:0,v:e,reactions:null,equals:Fn,rv:0,wv:0};return r}function Se(e,t){const r=Ye(e);return ra(r),r}function Qr(e,t=!1,r=!0){const n=Ye(e);return t||(n.equals=Un),n}function de(e,t,r=!1){O!==null&&(!ve||O.f&an)&&jn()&&O.f&(W|Ge|kr|an)&&(fe===null||!ct.call(fe,e))&&ys();let n=r?ot(t):t;return vt(e,n,qt)}function vt(e,t,r=null){if(!e.equals(t)){var n=e.v;Ze?De.set(e,t):De.set(e,n),e.v=t;var i=$e.ensure();if(i.capture(e,n),e.f&W){const s=e;e.f&Y&&Xr(s),qr(s)}e.wv=_i(),ti(e,Y,r),$!==null&&$.f&z&&!($.f&(ye|Fe))&&(se===null?na([e]):se.push(e)),!i.is_fork&&Er.size>0&&!ei&&Vs()}return t}function Vs(){ei=!1;for(const e of Er)e.f&z&&j(e,me),Ft(e)&&mt(e);Er.clear()}function Mt(e){de(e,e.v+1)}function ti(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],a=o.f,l=(a&Y)===0;if(l&&j(o,t),a&W){var u=o;pe?.delete(u),a&Qe||(a&ae&&(o.f|=Qe),ti(u,me,r))}else if(l){var f=o;a&Ge&&Te!==null&&Te.add(f),r!==null?r.push(f):zr(f)}}}function ot(e){if(typeof e!="object"||e===null||ur in e)return e;const t=Ln(e);if(t!==ls&&t!==fs)return e;var r=new Map,n=Cn(e),i=Se(0),s=Xe,o=a=>{if(Xe===s)return a();var l=O,u=Xe;he(null),cn(s);var f=a();return he(l),cn(u),f};return n&&r.set("length",Se(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_s();var f=r.get(l);return f===void 0?o(()=>{var h=Se(u.value);return r.set(l,h),h}):de(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=o(()=>Se(Q));r.set(l,f),Mt(i)}}else de(u,Q),Mt(i);return!0},get(a,l,u){if(l===ur)return e;var f=r.get(l),h=l in a;if(f===void 0&&(!h||ut(a,l)?.writable)&&(f=o(()=>{var p=ot(h?a[l]:Q),d=Se(p);return d}),r.set(l,f)),f!==void 0){var c=U(f);return c===Q?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=U(f))}else if(u===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==Q)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){if(l===ur)return!0;var u=r.get(l),f=u!==void 0&&u.v!==Q||Reflect.has(a,l);if(u!==void 0||$!==null&&(!f||ut(a,l)?.writable)){u===void 0&&(u=o(()=>{var c=f?ot(a[l]):Q,p=Se(c);return p}),r.set(l,u));var h=U(u);if(h===Q)return!1}return f},set(a,l,u,f){var h=r.get(l),c=l in a;if(n&&l==="length")for(var p=u;p<h.v;p+=1){var d=r.get(p+"");d!==void 0?de(d,Q):p in a&&(d=o(()=>Se(Q)),r.set(p+"",d))}if(h===void 0)(!c||ut(a,l)?.writable)&&(h=o(()=>Se(void 0)),de(h,ot(u)),r.set(l,h));else{c=h.v!==Q;var _=o(()=>ot(u));de(h,_)}var A=Reflect.getOwnPropertyDescriptor(a,l);if(A?.set&&A.set.call(f,u),!c){if(n&&typeof l=="string"){var y=r.get("length"),E=Number(l);Number.isInteger(E)&&E>=y.v&&de(y,E+1)}Mt(i)}return!0},ownKeys(a){U(i);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Q});for(var[u,f]of r)f.v!==Q&&!(u in a)&&l.push(u);return l},setPrototypeOf(){bs()}})}var ln,ri,ni,ii;function xr(){if(ln===void 0){ln=window,ri=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ni=ut(t,"firstChild").get,ii=ut(t,"nextSibling").get,nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),nn(r)&&(r.__t=void 0)}}function ke(e=""){return document.createTextNode(e)}function Ct(e){return ni.call(e)}function Be(e){return ii.call(e)}function st(e,t){if(!D)return Ct(e);var r=Ct(k);if(r===null)r=k.appendChild(ke());else if(t&&r.nodeType!==Fr){var n=ke();return r?.before(n),ue(n),n}return t&&ai(r),ue(r),r}function fn(e,t=1,r=!1){let n=D?k:e;for(var i;t--;)i=n,n=Be(n);if(!D)return n;if(r){if(n?.nodeType!==Fr){var s=ke();return n===null?i?.after(s):n.before(s),ue(s),s}ai(n)}return ue(n),n}function si(e){e.textContent=""}function zs(){return!1}function Yr(e,t,r){return document.createElementNS(In,e,void 0)}function ai(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Fr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function oi(e){var t=O,r=$;he(null),Ee(null);try{return e()}finally{he(t),Ee(r)}}function Ws(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function xe(e,t){var r=$;r!==null&&r.f&re&&(e|=re);var n={ctx:ge,deps:null,nodes:null,f:e|Y|ae,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&dt)at!==null?at.push(n):$e.ensure().schedule(n);else if(t!==null){try{mt(n)}catch(o){throw le(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&et)&&(i=i.first,e&Ge&&e&It&&i!==null&&(i.f|=It))}if(i!==null&&(i.parent=r,r!==null&&Ws(i,r),O!==null&&O.f&W&&!(e&Fe))){var s=O;(s.effects??=[]).push(i)}return n}function Zr(){return O!==null&&!ve}function ui(e){const t=xe(tr,null);return j(t,z),t.teardown=e,t}function Xs(e){return xe(dt|cs,e)}function Qs(e){$e.ensure();const t=xe(Fe|et,e);return()=>{le(t)}}function Ys(e){$e.ensure();const t=xe(Fe|et,e);return(r={})=>new Promise(n=>{r.outro?ft(t,()=>{le(t),n(void 0)}):(le(t),n(void 0))})}function Zs(e){return xe(dt,e)}function Js(e){return xe(kr|et,e)}function li(e,t=0){return xe(tr|t,e)}function Ks(e,t=[],r=[],n=[]){Ds(n,t,r,i=>{xe(tr,()=>e(...i.map(U)))})}function fi(e,t=0){var r=xe(Ge|t,e);return r}function _e(e){return xe(ye|et,e)}function hi(e){var t=e.teardown;if(t!==null){const r=Ze,n=O;hn(!0),he(null);try{t.call(null)}finally{hn(r),he(n)}}}function Jr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&oi(()=>{i.abort(Ae)});var n=r.next;r.f&Fe?r.parent=null:le(r,t),r=n}}function ea(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ye||le(t),t=r}}function le(e,t=!0){var r=!1;(t||e.f&hs)&&e.nodes!==null&&e.nodes.end!==null&&(ta(e.nodes.start,e.nodes.end),r=!0),j(e,sn),Jr(e,t&&!r),Lt(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();hi(e),e.f^=sn,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&ci(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ta(e,t){for(;e!==null;){var r=e===t?null:Be(e);e.remove(),e=r}}function ci(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 ft(e,t,r=!0){var n=[];di(e,n,!0);var i=()=>{r&&le(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function di(e,t,r){if(!(e.f&re)){e.f^=re;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,o=(i.f&It)!==0||(i.f&ye)!==0&&(e.f&Ge)!==0;di(i,t,o?r:!1),i=s}}}function pi(e){vi(e,!0)}function vi(e,t){if(e.f&re){e.f^=re,e.f&z||(j(e,Y),$e.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&It)!==0||(r.f&ye)!==0;vi(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function mi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Be(r);t.append(r),r=i}}let Vt=!1,Ze=!1;function hn(e){Ze=e}let O=null,ve=!1;function he(e){O=e}let $=null;function Ee(e){$=e}let fe=null;function ra(e){O!==null&&(fe===null?fe=[e]:fe.push(e))}let ee=null,te=0,se=null;function na(e){se=e}let gi=1,We=0,Xe=We;function cn(e){Xe=e}function _i(){return++gi}function Ft(e){var t=e.f;if(t&Y)return!0;if(t&W&&(e.f&=~Qe),t&me){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ft(s)&&Jn(s),s.wv>e.wv)return!0}t&ae&&pe===null&&j(e,z)}return!1}function bi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(fe!==null&&ct.call(fe,e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&W?bi(s,t,!1):t===s&&(r?j(s,Y):s.f&z&&j(s,me),zr(s))}}function yi(e){var t=ee,r=te,n=se,i=O,s=fe,o=ge,a=ve,l=Xe,u=e.f;ee=null,te=0,se=null,O=u&(ye|Fe)?null:e,fe=null,pt(e.ctx),ve=!1,Xe=++We,e.ac!==null&&(oi(()=>{e.ac.abort(Ae)}),e.ac=null);try{e.f|=gr;var f=e.fn,h=f();e.f|=Ke;var c=e.deps,p=C?.is_fork;if(ee!==null){var d;if(p||Lt(e,te),c!==null&&te>0)for(c.length=te+ee.length,d=0;d<ee.length;d++)c[te+d]=ee[d];else e.deps=c=ee;if(Zr()&&e.f&ae)for(d=te;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!p&&c!==null&&te<c.length&&(Lt(e,te),c.length=te);if(jn()&&se!==null&&!ve&&c!==null&&!(e.f&(W|me|Y)))for(d=0;d<se.length;d++)bi(se[d],e);if(i!==null&&i!==e){if(We++,i.deps!==null)for(let _=0;_<r;_+=1)i.deps[_].rv=We;if(t!==null)for(const _ of t)_.rv=We;se!==null&&(n===null?n=se:n.push(...se))}return e.f&Re&&(e.f^=Re),h}catch(_){return Vn(_)}finally{e.f^=gr,ee=t,te=r,se=n,O=i,fe=s,pt(o),ve=a,Xe=l}}function ia(e,t){let r=t.reactions;if(r!==null){var n=os.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&W&&(ee===null||!ct.call(ee,t))){var s=t;s.f&ae&&(s.f^=ae,s.f&=~Qe),qr(s),qs(s),Lt(s,0)}}function Lt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ia(e,r[n])}function mt(e){var t=e.f;if(!(t&oe)){j(e,z);var r=$,n=Vt;$=e,Vt=!0;try{t&(Ge|kn)?ea(e):Jr(e),hi(e);var i=yi(e);e.teardown=typeof i=="function"?i:null,e.wv=gi;var s;as&&Ts&&e.f&Y&&e.deps}finally{Vt=n,$=r}}}function U(e){var t=e.f,r=(t&W)!==0;if(O!==null&&!ve){var n=$!==null&&($.f&oe)!==0;if(!n&&(fe===null||!ct.call(fe,e))){var i=O.deps;if(O.f&gr)e.rv<We&&(e.rv=We,ee===null&&i!==null&&i[te]===e?te++:ee===null?ee=[e]:ee.push(e));else{(O.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[O]:ct.call(s,O)||s.push(O)}}}if(Ze&&De.has(e))return De.get(e);if(r){var o=e;if(Ze){var a=o.v;return(!(o.f&z)&&o.reactions!==null||xi(o))&&(a=Xr(o)),De.set(o,a),a}var l=(o.f&ae)===0&&!ve&&O!==null&&(Vt||(O.f&ae)!==0),u=(o.f&Ke)===0;Ft(o)&&(l&&(o.f|=ae),Jn(o)),l&&!u&&(Kn(o),Ei(o))}if(pe?.has(e))return pe.get(e);if(e.f&Re)throw e.v;return e.v}function Ei(e){if(e.f|=ae,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),t.f&W&&!(t.f&ae)&&(Kn(t),Ei(t))}function xi(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(De.has(t)||t.f&W&&xi(t))return!0;return!1}function wi(e){var t=ve;try{return ve=!0,e()}finally{ve=t}}const Ot=Symbol("events"),Si=new Set,wr=new Set;function sa(e,t,r){(t[Ot]??={})[e]=r}function aa(e){for(var t=0;t<e.length;t++)Si.add(e[t]);for(var r of wr)r(e)}let dn=null;function pn(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dn=e;var o=0,a=dn===e&&e[Ot];if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e[Ot]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(s=i[o]||e.target,s!==t){Pt(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=O,h=$;he(null),Ee(null);try{for(var c,p=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s[Ot]?.[n];_!=null&&(!s.disabled||e.target===s)&&_.call(s,e)}catch(A){c?p.push(A):c=A}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let A of p)queueMicrotask(()=>{throw A});throw c}}finally{e[Ot]=t,delete e.currentTarget,he(f),Ee(h)}}}const oa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ua(e){return oa?.createHTML(e)??e}function la(e){var t=Yr("template");return t.innerHTML=ua(e.replaceAll("<!>","<!---->")),t.content}function Sr(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ti(e,t){var r=(t&ss)!==0,n,i=!e.startsWith("<!>");return()=>{if(D)return Sr(k,null),k;n===void 0&&(n=la(i?e:"<!>"+e),n=Ct(n));var s=r||ri?document.importNode(n,!0):n.cloneNode(!0);return Sr(s,s),s}}function Tr(e,t){if(D){var r=$;(!(r.f&Ke)||r.nodes.end===null)&&(r.nodes.end=k),Gr();return}e!==null&&e.before(t)}const fa=["touchstart","touchmove"];function ha(e){return fa.includes(e)}function vn(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Ai(e,t){return Ni(e,t)}function ca(e,t){xr(),t.intro=t.intro??!1;const r=t.target,n=D,i=k;try{for(var s=Ct(r);s&&(s.nodeType!==kt||s.data!==Pn);)s=Be(s);if(!s)throw ht;Ve(!0),ue(s);const o=Ni(e,{...t,anchor:s});return Ve(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ht&&console.warn("Failed to hydrate: ",o),t.recover===!1&&gs(),xr(),si(r),Ve(!1),Ai(e,t)}finally{Ve(n),ue(i)}}const Ut=new Map;function Ni(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:a}){xr();var l=void 0,u=Ys(()=>{var f=r??t.appendChild(ke());Ls(f,{pending:()=>{}},p=>{Ur({});var d=ge;if(s&&(d.c=s),i&&(n.$$events=i),D&&Sr(p,null),l=e(p,n)||{},D&&($.nodes.end=k,k===null||k.nodeType!==kt||k.data!==Dr))throw rr(),ht;jr()},a);var h=new Set,c=p=>{for(var d=0;d<p.length;d++){var _=p[d];if(!h.has(_)){h.add(_);var A=ha(_);for(const B of[t,document]){var y=Ut.get(B);y===void 0&&(y=new Map,Ut.set(B,y));var E=y.get(_);E===void 0?(B.addEventListener(_,pn,{passive:A}),y.set(_,1)):y.set(_,E+1)}}}};return c(er(Si)),wr.add(c),()=>{for(var p of h)for(const A of[t,document]){var d=Ut.get(A),_=d.get(p);--_==0?(A.removeEventListener(p,pn),d.delete(p),d.size===0&&Ut.delete(A)):d.set(p,_)}wr.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return Ar.set(l,u),l}let Ar=new WeakMap;function da(e,t){const r=Ar.get(e);return r?(Ar.delete(e),r(t)):Promise.resolve()}function pa(e,t){return t}function va(e,t,r){for(var n=[],i=t.length,s,o=t.length,a=0;a<i;a++){let h=t[a];ft(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;Nr(e,er(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;si(f),f.append(u),e.items.clear()}Nr(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Nr(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const o of e.pending.values())for(const a of o)n.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n?.has(s)){s.f|=Ne;const o=document.createDocumentFragment();mi(s,o)}else le(t[i],r)}}var mn;function ma(e,t,r,n,i,s=null){var o=e,a=new Map;{var l=e;o=D?ue(Ct(l)):l.appendChild(ke())}D&&Gr();var u=null,f=Gs(()=>{var E=r();return Cn(E)?E:E==null?[]:er(E)}),h,c=new Map,p=!0;function d(E){y.effect.f&oe||(y.pending.delete(E),y.fallback=u,ga(y,h,o,t,n),u!==null&&(h.length===0?u.f&Ne?(u.f^=Ne,$t(u,null,o)):pi(u):ft(u,()=>{u=null})))}function _(E){y.pending.delete(E)}var A=fi(()=>{h=U(f);var E=h.length;let B=!1;if(D){var X=Ss(o)===Rr;X!==(E===0)&&(o=_r(),ue(o),Ve(!1),B=!0)}for(var M=new Set,L=C,ne=zs(),q=0;q<E;q+=1){D&&k.nodeType===kt&&k.data===Dr&&(o=k,B=!0,Ve(!1));var ce=h[q],P=n(ce,q),w=p?null:a.get(P);w?(w.v&&vt(w.v,ce),w.i&&vt(w.i,q),ne&&L.unskip_effect(w.e)):(w=_a(a,p?o:mn??=ke(),ce,P,q,i,t,r),p||(w.e.f|=Ne),a.set(P,w)),M.add(P)}if(E===0&&s&&!u&&(p?u=_e(()=>s(o)):(u=_e(()=>s(mn??=ke())),u.f|=Ne)),E>M.size&&vs(),D&&E>0&&ue(_r()),!p)if(c.set(L,M),ne){for(const[we,rt]of a)M.has(we)||L.skip_effect(rt.e);L.oncommit(d),L.ondiscard(_)}else d(L);B&&Ve(!0),U(f)}),y={effect:A,items:a,pending:c,outrogroups:null,fallback:u};p=!1,D&&(o=k)}function Nt(e){for(;e!==null&&!(e.f&ye);)e=e.next;return e}function ga(e,t,r,n,i){var s=t.length,o=e.items,a=Nt(e.effect.first),l,u=null,f=[],h=[],c,p,d,_;for(_=0;_<s;_+=1){if(c=t[_],p=i(c,_),d=o.get(p).e,e.outrogroups!==null)for(const q of e.outrogroups)q.pending.delete(d),q.done.delete(d);if(d.f&Ne)if(d.f^=Ne,d===a)$t(d,null,r);else{var A=u?u.next:a;d===e.effect.last&&(e.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),Pe(e,u,d),Pe(e,d,A),$t(d,A,r),u=d,f=[],h=[],a=Nt(u.next);continue}if(d.f&re&&pi(d),d!==a){if(l!==void 0&&l.has(d)){if(f.length<h.length){var y=h[0],E;u=y.prev;var B=f[0],X=f[f.length-1];for(E=0;E<f.length;E+=1)$t(f[E],y,r);for(E=0;E<h.length;E+=1)l.delete(h[E]);Pe(e,B.prev,X.next),Pe(e,u,B),Pe(e,X,y),a=y,u=X,_-=1,f=[],h=[]}else l.delete(d),$t(d,a,r),Pe(e,d.prev,d.next),Pe(e,d,u===null?e.effect.first:u.next),Pe(e,u,d),u=d;continue}for(f=[],h=[];a!==null&&a!==d;)(l??=new Set).add(a),h.push(a),a=Nt(a.next);if(a===null)continue}d.f&Ne||f.push(d),u=d,a=Nt(d.next)}if(e.outrogroups!==null){for(const q of e.outrogroups)q.pending.size===0&&(Nr(e,er(q.done)),e.outrogroups?.delete(q));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||l!==void 0){var M=[];if(l!==void 0)for(d of l)d.f&re||M.push(d);for(;a!==null;)!(a.f&re)&&a!==e.fallback&&M.push(a),a=Nt(a.next);var L=M.length;if(L>0){var ne=s===0?r:null;va(e,M,ne)}}}function _a(e,t,r,n,i,s,o,a){var l=o&rs?o&is?Ye(r):Qr(r,!1,!1):null,u=o&ns?Ye(i):null;return{v:l,i:u,e:_e(()=>(s(t,l??r,u??i,a),()=>{e.delete(n)}))}}function $t(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ne)?t.nodes.start:r;n!==null;){var o=Be(n);if(s.before(n),n===i)return;n=o}}function Pe(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ba(e,t){Zs(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=Yr("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const gn=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function ya(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,o=0;(o=n.indexOf(i,o))>=0;){var a=o+s;(o===0||gn.includes(n[o-1]))&&(a===n.length||gn.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function _n(e,t,r,n,i,s){var o=e.__className;if(D||o!==r||o===void 0){var a=ya(r,n,s);(!D||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}else if(s&&i!==s)for(var l in s){var u=!!s[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return s}const Ea=Symbol("is custom element"),xa=Symbol("is html");function wa(e,t,r,n){var i=Sa(e);D&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Ta(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sa(e){return e.__attributes??={[Ea]:e.nodeName.includes("-"),[xa]:e.namespaceURI===In}}var bn=new Map;function Ta(e){var t=e.getAttribute("is")||e.nodeName,r=bn.get(t);if(r)return r;bn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=us(i);for(var o in n)n[o].set&&r.push(o);i=Ln(i)}return r}function Ce(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var u=!1,f=Wr(()=>(u=!1,l())),h=$;return function(c,p){if(arguments.length>0){const d=p?U(f):c;return de(f,d),u=!0,i!==void 0&&(i=d),c}return Ze&&u||h.f&oe?f.v:U(f)}}function Aa(e){return new Na(e)}class Na{#e;#t;constructor(t){var r=new Map,n=(s,o)=>{var a=Qr(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return U(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===ds?!0:(U(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return de(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#t=(t.hydrate?ca:Ai)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&He(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Pt(this,s,{get(){return this.#t[s]},set(o){this.#t[s]=o},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{da(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let Hi;typeof HTMLElement=="function"&&(Hi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=Yr("slot");n!=="default"&&(s.name=n),Tr(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ha(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=zt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Aa({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qs(()=>{li(()=>{this.$$r=!0;for(const n of Qt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=zt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=zt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Qt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function zt(e,t,r,n){const i=r[e]?.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;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 Ha(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,n,i,s){let o=class extends Hi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Qt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Qt(t).forEach(a=>{Pt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=zt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=ut(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{Pt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ba={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oa,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",f="week",h="month",c="quarter",p="year",d="date",_="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var m=["th","st","nd","rd"],v=x%100;return"["+x+(m[(v-20)%10]||m[v]||m[0])+"]"}},B=function(x,m,v){var b=String(x);return!b||b.length>=m?x:""+Array(m+1-b.length).join(v)+x},X={s:B,z:function(x){var m=-x.utcOffset(),v=Math.abs(m),b=Math.floor(v/60),g=v%60;return(m<=0?"+":"-")+B(b,2,"0")+":"+B(g,2,"0")},m:function x(m,v){if(m.date()<v.date())return-x(v,m);var b=12*(v.year()-m.year())+(v.month()-m.month()),g=m.clone().add(b,h),S=v-g<0,T=m.clone().add(b+(S?-1:1),h);return+(-(b+(v-g)/(S?g-T:T-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:p,w:f,d:u,D:d,h:l,m:a,s:o,ms:s,Q:c}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},M="en",L={};L[M]=E;var ne="$isDayjsObject",q=function(x){return x instanceof we||!(!x||!x[ne])},ce=function x(m,v,b){var g;if(!m)return M;if(typeof m=="string"){var S=m.toLowerCase();L[S]&&(g=S),v&&(L[S]=v,g=S);var T=m.split("-");if(!g&&T.length>1)return x(T[0])}else{var I=m.name;L[I]=m,g=I}return!b&&g&&(M=g),g||!b&&M},P=function(x,m){if(q(x))return x.clone();var v=typeof m=="object"?m:{};return v.date=x,v.args=arguments,new we(v)},w=X;w.l=ce,w.i=q,w.w=function(x,m){return P(x,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var we=function(){function x(v){this.$L=ce(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[ne]=!0}var m=x.prototype;return m.parse=function(v){this.$d=function(b){var g=b.date,S=b.utc;if(g===null)return new Date(NaN);if(w.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var T=g.match(A);if(T){var I=T[2]-1||0,G=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],I,T[3]||1,T[4]||0,T[5]||0,T[6]||0,G)):new Date(T[1],I,T[3]||1,T[4]||0,T[5]||0,T[6]||0,G)}}return new Date(g)}(v),this.init()},m.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return this.$d.toString()!==_},m.isSame=function(v,b){var g=P(v);return this.startOf(b)<=g&&g<=this.endOf(b)},m.isAfter=function(v,b){return P(v)<this.startOf(b)},m.isBefore=function(v,b){return this.endOf(b)<P(v)},m.$g=function(v,b,g){return w.u(v)?this[b]:this.set(g,v)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(v,b){var g=this,S=!!w.u(b)||b,T=w.p(v),I=function(je,K){var Me=w.w(g.$u?Date.UTC(g.$y,K,je):new Date(g.$y,K,je),g);return S?Me:Me.endOf(u)},G=function(je,K){return w.w(g.toDate()[je].apply(g.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(K)),g)},V=this.$W,Z=this.$M,ie=this.$D,nt="set"+(this.$u?"UTC":"");switch(T){case p:return S?I(1,0):I(31,11);case h:return S?I(1,Z):I(0,Z+1);case f:var Ue=this.$locale().weekStart||0,St=(V<Ue?V+7:V)-Ue;return I(S?ie-St:ie+(6-St),Z);case u:case d:return G(nt+"Hours",0);case l:return G(nt+"Minutes",1);case a:return G(nt+"Seconds",2);case o:return G(nt+"Milliseconds",3);default:return this.clone()}},m.endOf=function(v){return this.startOf(v,!1)},m.$set=function(v,b){var g,S=w.p(v),T="set"+(this.$u?"UTC":""),I=(g={},g[u]=T+"Date",g[d]=T+"Date",g[h]=T+"Month",g[p]=T+"FullYear",g[l]=T+"Hours",g[a]=T+"Minutes",g[o]=T+"Seconds",g[s]=T+"Milliseconds",g)[S],G=S===u?this.$D+(b-this.$W):b;if(S===h||S===p){var V=this.clone().set(d,1);V.$d[I](G),V.init(),this.$d=V.set(d,Math.min(this.$D,V.daysInMonth())).$d}else I&&this.$d[I](G);return this.init(),this},m.set=function(v,b){return this.clone().$set(v,b)},m.get=function(v){return this[w.p(v)]()},m.add=function(v,b){var g,S=this;v=Number(v);var T=w.p(b),I=function(Z){var ie=P(S);return w.w(ie.date(ie.date()+Math.round(Z*v)),S)};if(T===h)return this.set(h,this.$M+v);if(T===p)return this.set(p,this.$y+v);if(T===u)return I(1);if(T===f)return I(7);var G=(g={},g[a]=n,g[l]=i,g[o]=r,g)[T]||1,V=this.$d.getTime()+v*G;return w.w(V,this)},m.subtract=function(v,b){return this.add(-1*v,b)},m.format=function(v){var b=this,g=this.$locale();if(!this.isValid())return g.invalidDate||_;var S=v||"YYYY-MM-DDTHH:mm:ssZ",T=w.z(this),I=this.$H,G=this.$m,V=this.$M,Z=g.weekdays,ie=g.months,nt=g.meridiem,Ue=function(K,Me,Tt,Gt){return K&&(K[Me]||K(b,S))||Tt[Me].slice(0,Gt)},St=function(K){return w.s(I%12||12,K,"0")},je=nt||function(K,Me,Tt){var Gt=K<12?"AM":"PM";return Tt?Gt.toLowerCase():Gt};return S.replace(y,function(K,Me){return Me||function(Tt){switch(Tt){case"YY":return String(b.$y).slice(-2);case"YYYY":return w.s(b.$y,4,"0");case"M":return V+1;case"MM":return w.s(V+1,2,"0");case"MMM":return Ue(g.monthsShort,V,ie,3);case"MMMM":return Ue(ie,V);case"D":return b.$D;case"DD":return w.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return Ue(g.weekdaysMin,b.$W,Z,2);case"ddd":return Ue(g.weekdaysShort,b.$W,Z,3);case"dddd":return Z[b.$W];case"H":return String(I);case"HH":return w.s(I,2,"0");case"h":return St(1);case"hh":return St(2);case"a":return je(I,G,!0);case"A":return je(I,G,!1);case"m":return String(G);case"mm":return w.s(G,2,"0");case"s":return String(b.$s);case"ss":return w.s(b.$s,2,"0");case"SSS":return w.s(b.$ms,3,"0");case"Z":return T}return null}(K)||T.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(v,b,g){var S,T=this,I=w.p(b),G=P(v),V=(G.utcOffset()-this.utcOffset())*n,Z=this-G,ie=function(){return w.m(T,G)};switch(I){case p:S=ie()/12;break;case h:S=ie();break;case c:S=ie()/3;break;case f:S=(Z-V)/6048e5;break;case u:S=(Z-V)/864e5;break;case l:S=Z/i;break;case a:S=Z/n;break;case o:S=Z/r;break;default:S=Z}return g?S:w.a(S)},m.daysInMonth=function(){return this.endOf(h).$D},m.$locale=function(){return L[this.$L]},m.locale=function(v,b){if(!v)return this.$L;var g=this.clone(),S=ce(v,b,!0);return S&&(g.$L=S),g},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},x}(),rt=we.prototype;return P.prototype=rt,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",d]].forEach(function(x){rt[x[1]]=function(m){return this.$g(m,x[0],x[1])}}),P.extend=function(x,m){return x.$i||(x(m,we,P),x.$i=!0),P},P.locale=ce,P.isDayjs=q,P.unix=function(x){return P(1e3*x)},P.en=L[M],P.Ls=L,P.p={},P})})(Ba);var Ma=function(t){return Pa(t)&&!Ia(t)};function Pa(e){return!!e&&typeof e=="object"}function Ia(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ra(e)}var Ca=typeof Symbol=="function"&&Symbol.for,La=Ca?Symbol.for("react.element"):60103;function Ra(e){return e.$$typeof===La}function Da(e){return Array.isArray(e)?[]:{}}function Rt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?gt(Da(e),e,t):e}function ka(e,t,r){return e.concat(t).map(function(n){return Rt(n,r)})}function Fa(e,t){if(!t.customMerge)return gt;var r=t.customMerge(e);return typeof r=="function"?r:gt}function Ga(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function yn(e){return Object.keys(e).concat(Ga(e))}function $i(e,t){try{return t in e}catch{return!1}}function Ua(e,t){return $i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ja(e,t,r){var n={};return r.isMergeableObject(e)&&yn(e).forEach(function(i){n[i]=Rt(e[i],r)}),yn(t).forEach(function(i){Ua(e,i)||($i(e,i)&&r.isMergeableObject(t[i])?n[i]=Fa(i,r)(e[i],t[i],r):n[i]=Rt(t[i],r))}),n}function gt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ka,r.isMergeableObject=r.isMergeableObject||Ma,r.cloneUnlessOtherwiseSpecified=Rt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):ja(e,t,r):Rt(t,r)}gt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return gt(n,i,r)},{})};var qa=gt,Va=qa;const za=$a(Va);var Hr=function(e,t){return Hr=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])},Hr(e,t)};function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=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},be.apply(this,arguments)};function Wa(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 fr(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 hr(e,t){var r=t&&t.cache?t.cache:eo,n=t&&t.serializer?t.serializer:Ja,i=t&&t.strategy?t.strategy:Ya;return i(e,{cache:r,serializer:n})}function Xa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Qa(e,t,r,n){var i=Xa(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function Bi(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function Mi(e,t,r,n,i){return r.bind(t,e,n,i)}function Ya(e,t){var r=e.length===1?Qa:Bi;return Mi(e,this,r,t.cache.create(),t.serializer)}function Za(e,t){return Mi(e,this,Bi,t.cache.create(),t.serializer)}var Ja=function(){return JSON.stringify(arguments)},Ka=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}(),eo={create:function(){return new Ka}},cr={variadic:Za},Zt=function(){return Zt=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},Zt.apply(this,arguments)};var N;(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"})(N||(N={}));var R;(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"})(R||(R={}));var _t;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(_t||(_t={}));function En(e){return e.type===R.literal}function to(e){return e.type===R.argument}function Pi(e){return e.type===R.number}function Ii(e){return e.type===R.date}function Ci(e){return e.type===R.time}function Li(e){return e.type===R.select}function Ri(e){return e.type===R.plural}function ro(e){return e.type===R.pound}function Di(e){return e.type===R.tag}function ki(e){return!!(e&&typeof e=="object"&&e.type===_t.number)}function Or(e){return!!(e&&typeof e=="object"&&e.type===_t.dateTime)}var Fi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,no=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function io(e){var t={};return e.replace(no,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 F=function(){return F=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},F.apply(this,arguments)};var so=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ao(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(so).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,f=l;u<f.length;u++){var h=f[u];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function oo(e){return e.replace(/^(.*?)-/,"")}var xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gi=/^(@+)?(\+|#+)?[rs]?$/g,uo=/(\*)(0+)|(#+)(0+)|(0+)/g,Ui=/^(0+)$/;function wn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Gi,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 ji(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 lo(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)),!Ui.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Sn(e){var t={},r=ji(e);return r||t}function fo(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=oo(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=F(F(F({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return F(F({},l),Sn(u))},{}));continue;case"engineering":t=F(F(F({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return F(F({},l),Sn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(uo,function(l,u,f,h,c,p){if(u)t.minimumIntegerDigits=f.length;else{if(h&&c)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ui.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xn,function(l,u,f,h,c,p){return f==="*"?t.minimumFractionDigits=u.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:c&&p?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=F(F({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=F(F({},t),wn(s)));continue}if(Gi.test(i.stem)){t=F(F({},t),wn(i.stem));continue}var o=ji(i.stem);o&&(t=F(F({},t),o));var a=lo(i.stem);a&&(t=F(F({},t),a))}return t}var jt={"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 ho(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 o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=co(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function co(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=jt[n||""]||jt[r||""]||jt["".concat(r,"-001")]||jt["001"];return i[0]}var dr,po=new RegExp("^".concat(Fi.source,"*")),vo=new RegExp("".concat(Fi.source,"*$"));function H(e,t){return{start:e,end:t}}var mo=!!String.prototype.startsWith&&"_a".startsWith("a",1),go=!!String.fromCodePoint,_o=!!Object.fromEntries,bo=!!String.prototype.codePointAt,yo=!!String.prototype.trimStart,Eo=!!String.prototype.trimEnd,xo=!!Number.isSafeInteger,wo=xo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$r=!0;try{var So=Vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$r=((dr=So.exec("a"))===null||dr===void 0?void 0:dr[0])==="a"}catch{$r=!1}var Tn=mo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Br=go?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},An=_o?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},qi=bo?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}},To=yo?function(t){return t.trimStart()}:function(t){return t.replace(po,"")},Ao=Eo?function(t){return t.trimEnd()}:function(t){return t.replace(vo,"")};function Vi(e,t){return new RegExp(e,t)}var Mr;if($r){var Nn=Vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mr=function(t,r){var n;Nn.lastIndex=r;var i=Nn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Mr=function(t,r){for(var n=[];;){var i=qi(t,r);if(i===void 0||zi(i)||$o(i))break;n.push(i),r+=i>=65536?2:1}return Br.apply(void 0,n)};var No=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 o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:R.pound,location:H(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(N.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Pr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.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:R.literal,value:"<".concat(i,"/>"),location:H(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Pr(this.char()))return this.error(N.INVALID_TAG,H(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(N.UNMATCHED_CLOSING_TAG,H(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:R.tag,value:i,children:o,location:H(n,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(N.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(N.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Oo(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 o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=H(n,this.clonePosition());return{val:{type:R.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ho(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 Br.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(),Br(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,H(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(N.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:R.argument,value:i,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(N.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Mr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=H(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(N.EXPECT_ARGUMENT_TYPE,H(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var c=Ao(h.val);if(c.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var p=H(f,this.clonePosition());u={style:c,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var _=H(i,this.clonePosition());if(u&&Tn(u?.style,"::",0)){var A=To(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(A,u.styleLocation);return h.err?h:{val:{type:R.number,value:n,location:_,style:h.val},err:null}}else{if(A.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,_);var y=A;this.locale&&(y=ho(A,this.locale));var c={type:_t.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?io(y):{}},E=a==="date"?R.date:R.time;return{val:{type:E,value:n,location:_,style:c},err:null}}}return{val:{type:a==="number"?R.number:a==="date"?R.date:R.time,value:n,location:_,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,H(B,Zt({},B)));this.bumpSpace();var X=this.parseIdentifierIfPossible(),M=0;if(a!=="select"&&X.value==="offset"){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),X=this.parseIdentifierIfPossible(),M=h.val}var L=this.tryParsePluralOrSelectOptions(t,a,r,X);if(L.err)return L;var d=this.tryParseArgumentClose(i);if(d.err)return d;var ne=H(i,this.clonePosition());return a==="select"?{val:{type:R.select,value:n,options:An(L.val),location:ne},err:null}:{val:{type:R.plural,value:n,options:An(L.val),offset:M,pluralType:a==="plural"?"cardinal":"ordinal",location:ne},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,H(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(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(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(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=ao(t)}catch{return this.error(N.INVALID_NUMBER_SKELETON,r)}return{val:{type:_t.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?fo(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=H(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var _=this.tryParseArgumentClose(p);if(_.err)return _;a.push([u,{value:d.val,location:H(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,f=s.location}return a.length===0?this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(N.MISSING_OTHER_CLAUSE,H(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,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=H(i,this.clonePosition());return s?(o*=n,wo(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},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=qi(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(Tn(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()&&zi(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},e}();function Pr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ho(e){return Pr(e)||e===47}function Oo(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 zi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function $o(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 Ir(e){e.forEach(function(t){if(delete t.location,Li(t)||Ri(t))for(var r in t.options)delete t.options[r].location,Ir(t.options[r].value);else Pi(t)&&ki(t.style)||(Ii(t)||Ci(t))&&Or(t.style)?delete t.style.location:Di(t)&&Ir(t.children)})}function Bo(e,t){t===void 0&&(t={}),t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new No(e,t).parse();if(r.err){var n=SyntaxError(N[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Ir(r.val),r.val}var bt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(bt||(bt={}));var sr=function(e){ir(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),Hn=function(e){ir(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('", "'),'"'),bt.INVALID_VALUE,s)||this}return t}(sr),Mo=function(e){ir(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),bt.INVALID_VALUE,i)||this}return t}(sr),Po=function(e){ir(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,'"'),bt.MISSING_VALUE,n)||this}return t}(sr),J;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(J||(J={}));function Io(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==J.literal||r.type!==J.literal?t.push(r):n.value+=r.value,t},[])}function Co(e){return typeof e=="function"}function Wt(e,t,r,n,i,s,o){if(e.length===1&&En(e[0]))return[{type:J.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var f=u[l];if(En(f)){a.push({type:J.literal,value:f.value});continue}if(ro(f)){typeof s=="number"&&a.push({type:J.literal,value:r.getNumberFormat(t).format(s)});continue}var h=f.value;if(!(i&&h in i))throw new Po(h,o);var c=i[h];if(to(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?J.literal:J.object,value:c});continue}if(Ii(f)){var p=typeof f.style=="string"?n.date[f.style]:Or(f.style)?f.style.parsedOptions:void 0;a.push({type:J.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ci(f)){var p=typeof f.style=="string"?n.time[f.style]:Or(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:J.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Pi(f)){var p=typeof f.style=="string"?n.number[f.style]:ki(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(c=c*(p.scale||1)),a.push({type:J.literal,value:r.getNumberFormat(t,p).format(c)});continue}if(Di(f)){var d=f.children,_=f.value,A=i[_];if(!Co(A))throw new Mo(_,"function",o);var y=Wt(d,t,r,n,i,s),E=A(y.map(function(M){return M.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(M){return{type:typeof M=="string"?J.literal:J.object,value:M}}))}if(Li(f)){var B=f.options[c]||f.options.other;if(!B)throw new Hn(f.value,c,Object.keys(f.options),o);a.push.apply(a,Wt(B.value,t,r,n,i));continue}if(Ri(f)){var B=f.options["=".concat(c)];if(!B){if(!Intl.PluralRules)throw new sr(`Intl.PluralRules is not available in this environment.
|
|
4
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
-
`,bt.MISSING_INTL_API,o);var X=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));B=f.options[X]||f.options.other}if(!B)throw new Hn(f.value,c,Object.keys(f.options),o);a.push.apply(a,Wt(B.value,t,r,n,i,c-(f.offset||0)));continue}}return Io(a)}function Lo(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=be(be({},e[n]),t[n]||{}),r},{})):e}function Ro(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Lo(e[n],t[n]),r},be({},e)):e}function pr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Do(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,fr([void 0],r,!1)))},{cache:pr(e.number),strategy:cr.variadic}),getDateTimeFormat:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,fr([void 0],r,!1)))},{cache:pr(e.dateTime),strategy:cr.variadic}),getPluralRules:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,fr([void 0],r,!1)))},{cache:pr(e.pluralRules),strategy:cr.variadic})}}var ko=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(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(h,c){return!h.length||c.type!==J.literal||typeof h[h.length-1]!="string"?h.push(c.value):h[h.length-1]+=c.value,h},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Wt(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.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 o=i||{};o.formatters;var a=Wa(o,["formatters"]);this.ast=e.__parse(t,be(be({},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=Ro(e.formats,n),this.formatters=i&&i.formatters||Do(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>"u")){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=Bo,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 Fo(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 Le={},Go=(e,t,r)=>r&&(t in Le||(Le[t]={}),e in Le[t]||(Le[t][e]=r),r),Wi=(e,t)=>{if(t==null)return;if(t in Le&&e in Le[t])return Le[t][e];const r=ar(t);for(let n=0;n<r.length;n++){const i=r[n],s=jo(i,e);if(s)return Go(e,t,s)}};let Kr;const xt=nr({});function Uo(e){return Kr[e]||null}function Xi(e){return e in Kr}function jo(e,t){if(!Xi(e))return null;const r=Uo(e);return Fo(r,t)}function qo(e){if(e==null)return;const t=ar(e);for(let r=0;r<t.length;r++){const n=t[r];if(Xi(n))return n}}function Qi(e,...t){delete Le[e],xt.update(r=>(r[e]=za.all([r[e]||{},...t]),r))}Et([xt],([e])=>Object.keys(e));xt.subscribe(e=>Kr=e);const Xt={};function Vo(e,t){Xt[e].delete(t),Xt[e].size===0&&delete Xt[e]}function Yi(e){return Xt[e]}function zo(e){return ar(e).map(t=>{const r=Yi(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Cr(e){return e==null?!1:ar(e).some(t=>{var r;return(r=Yi(t))==null?void 0:r.size})}function Wo(e,t){return Promise.all(t.map(n=>(Vo(e,n),n().then(i=>i.default||i)))).then(n=>Qi(e,...n))}const Ht={};function Zi(e){if(!Cr(e))return e in Ht?Ht[e]:Promise.resolve();const t=zo(e);return Ht[e]=Promise.all(t.map(([r,n])=>Wo(r,n))).then(()=>{if(Cr(e))return Zi(e);delete Ht[e]}),Ht[e]}const Xo={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"}}},Qo={fallbackLocale:null,loadingDelay:200,formats:Xo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Yo=Qo;function yt(){return Yo}const vr=nr(!1);var Zo=Object.defineProperty,Jo=Object.defineProperties,Ko=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,$n=(e,t,r)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ru=(e,t)=>{for(var r in t||(t={}))eu.call(t,r)&&$n(e,r,t[r]);if(On)for(var r of On(t))tu.call(t,r)&&$n(e,r,t[r]);return e},nu=(e,t)=>Jo(e,Ko(t));let Lr;const Jt=nr(null);function Bn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ar(e,t=yt().fallbackLocale){const r=Bn(e);return t?[...new Set([...r,...Bn(t)])]:r}function tt(){return Lr??void 0}Jt.subscribe(e=>{Lr=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const iu=e=>{if(e&&qo(e)&&Cr(e)){const{loadingDelay:t}=yt();let r;return typeof window<"u"&&tt()!=null&&t?r=window.setTimeout(()=>vr.set(!0),t):vr.set(!0),Zi(e).then(()=>{Jt.set(e)}).finally(()=>{clearTimeout(r),vr.set(!1)})}return Jt.set(e)},Je=nu(ru({},Jt),{set:iu}),or=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var su=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Mn=(e,t,r)=>t in e?su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,en=(e,t)=>{for(var r in t||(t={}))Ji.call(t,r)&&Mn(e,r,t[r]);if(Kt)for(var r of Kt(t))Ki.call(t,r)&&Mn(e,r,t[r]);return e},wt=(e,t)=>{var r={};for(var n in e)Ji.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kt)for(var n of Kt(e))t.indexOf(n)<0&&Ki.call(e,n)&&(r[n]=e[n]);return r};const Dt=(e,t)=>{const{formats:r}=yt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},au=or(e=>{var t=e,{locale:r,format:n}=t,i=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Dt("number",n)),new Intl.NumberFormat(r,i)}),ou=or(e=>{var t=e,{locale:r,format:n}=t,i=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Dt("date",n):Object.keys(i).length===0&&(i=Dt("date","short")),new Intl.DateTimeFormat(r,i)}),uu=or(e=>{var t=e,{locale:r,format:n}=t,i=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Dt("time",n):Object.keys(i).length===0&&(i=Dt("time","short")),new Intl.DateTimeFormat(r,i)}),lu=(e={})=>{var t=e,{locale:r=tt()}=t,n=wt(t,["locale"]);return au(en({locale:r},n))},fu=(e={})=>{var t=e,{locale:r=tt()}=t,n=wt(t,["locale"]);return ou(en({locale:r},n))},hu=(e={})=>{var t=e,{locale:r=tt()}=t,n=wt(t,["locale"]);return uu(en({locale:r},n))},cu=or((e,t=tt())=>new ko(e,t,yt().formats,{ignoreTag:yt().ignoreTag})),du=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=tt(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Wi(e,l);if(!f)f=(s=(i=(n=(r=yt()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=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 h=f;try{h=cu(f,l).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},pu=(e,t)=>hu(t).format(e),vu=(e,t)=>fu(t).format(e),mu=(e,t)=>lu(t).format(e),gu=(e,t=tt())=>Wi(e,t),_u=Et([Je,xt],()=>du);Et([Je],()=>pu);Et([Je],()=>vu);Et([Je],()=>mu);Et([Je,xt],()=>gu);function bu({withLocale:e,translations:t}){Je.subscribe(r=>{r==null&&(xt.set(t),Je.set(e))})}function yu(e,t){Qi(e,t)}const Eu={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."},da:{faqBestQuestion:"Hvorfor er {operatorName}s program det bedste?",faqBestAnswer:"{operatorName} tilbyder et unikt loyalitetsprogram, der belønner spillere med eksklusive fordele, herunder 50 gratis spins, som automatisk bliver krediteret hver onsdag.",faqWinningsQuestion:"Hvordan kan du øge dine gevinster hos {operatorName}?",faqWinningsAnswer:"{operatorName} tilbyder regelmæssige eksklusive bonusser og kampagner, som giver brugerne mulighed for at øge deres gevinster.",faqGamesQuestion:"Hvilket udvalg af spil tilbyder {operatorName}?",faqGamesAnswer:"{operatorName} tilbyder et bredt udvalg af spil, fra spilleautomater til bordspil, så der er noget for enhver spiller.",faqSupportQuestion:"Hvordan er {operatorName}s kundeservice?",faqSupportAnswer:"{operatorName} tilbyder kundesupport døgnet rundt med hurtige og effektive løsninger på alle spørgsmål."},de:{faqBestQuestion:"Warum ist das Programm von {operatorName} das beste?",faqBestAnswer:"{operatorName} bietet ein einzigartiges Treueprogramm mit exklusiven Vorteilen, darunter 50 Freispiele, die jeden Mittwoch automatisch gutgeschrieben werden.",faqWinningsQuestion:"Wie können Sie Ihre Gewinne bei {operatorName} steigern?",faqWinningsAnswer:"{operatorName} bietet seinen Nutzern regelmäßig exklusive Boni und Aktionen, mit denen sie ihre Gewinne steigern können.",faqGamesQuestion:"Welche Spielauswahl bietet {operatorName}?",faqGamesAnswer:"{operatorName} bietet eine große Auswahl an Spielen – von Spielautomaten bis hin zu Tischspielen – und spricht damit jeden Spielertyp an.",faqSupportQuestion:"Wie ist der Kundenservice von {operatorName}?",faqSupportAnswer:"{operatorName} bietet rund um die Uhr Kundensupport und hilft Spielern schnell und zuverlässig bei allen Fragen."},nl:{faqBestQuestion:"Waarom is het programma van {operatorName} het beste?",faqBestAnswer:"{operatorName} biedt een uniek loyaliteitsprogramma met exclusieve voordelen, waaronder 50 gratis spins die elke woensdag automatisch worden toegekend.",faqWinningsQuestion:"Hoe kun je je winst vergroten bij {operatorName}?",faqWinningsAnswer:"{operatorName} biedt gebruikers regelmatig exclusieve bonussen en promoties om hun winstkansen te vergroten.",faqGamesQuestion:"Welke spellen biedt {operatorName} aan?",faqGamesAnswer:"{operatorName} biedt een breed aanbod aan spellen, van slots tot tafelspellen, zodat er voor iedere speler iets is.",faqSupportQuestion:"Hoe is de klantenservice van {operatorName}?",faqSupportAnswer:"{operatorName} biedt 24/7 klantenservice met snelle en effectieve oplossingen voor al je vragen."},fr:{faqBestQuestion:"Pourquoi le programme de {operatorName} est-il le meilleur ?",faqBestAnswer:"{operatorName} propose un programme de fidélité unique offrant des avantages exclusifs, dont 50 tours gratuits crédités automatiquement chaque mercredi.",faqWinningsQuestion:"Comment augmenter vos gains chez {operatorName} ?",faqWinningsAnswer:"{operatorName} propose régulièrement des bonus et promotions exclusifs permettant aux joueurs d’augmenter leurs gains.",faqGamesQuestion:"Quelle variété de jeux propose {operatorName} ?",faqGamesAnswer:"{operatorName} propose un large choix de jeux, des machines à sous aux jeux de table, pour satisfaire tous les types de joueurs.",faqSupportQuestion:"Comment est le service client de {operatorName} ?",faqSupportAnswer:"{operatorName} propose un service client disponible 24h/24 et 7j/7, avec des réponses rapides et efficaces à toutes vos questions."},hu:{faqBestQuestion:"Miért a {operatorName} programja a legjobb?",faqBestAnswer:"A {operatorName} egyedülálló hűségprogramot kínál exkluzív előnyökkel, köztük minden szerdán automatikusan jóváírt 50 ingyenes pörgetéssel.",faqWinningsQuestion:"Hogyan növelheted a nyereményeidet a {operatorName} oldalon?",faqWinningsAnswer:"A {operatorName} rendszeresen exkluzív bónuszokat és promóciókat kínál, amelyek segítenek növelni a nyerési lehetőségeket.",faqGamesQuestion:"Milyen játékokat kínál a {operatorName}?",faqGamesAnswer:"A {operatorName} a nyerőgépektől az asztali játékokig széles játékválasztékot kínál, így minden játékos megtalálhatja a kedvencét.",faqSupportQuestion:"Milyen a {operatorName} ügyfélszolgálata?",faqSupportAnswer:"A {operatorName} a hét minden napján, 24 órában elérhető ügyfélszolgálatot biztosít gyors és hatékony segítséggel."}};var xu=Ti('<div class="faq__item svelte-tlosd8"><button class="faq__title svelte-tlosd8" type="button"><span class="faq__question svelte-tlosd8"> </span> <span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" class="svelte-tlosd8"><path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="svelte-tlosd8"></path></svg></span></button> <div><div class="faq__answer svelte-tlosd8"> </div></div></div>'),wu=Ti('<div class="faq svelte-tlosd8"><div class="faq__list svelte-tlosd8"></div></div>');const Su={hash:"svelte-tlosd8",code:`.faq.svelte-tlosd8 {color:var(--text-default, #FFFFFF);width:100%;box-sizing:border-box;}.faq__list.svelte-tlosd8 {display:flex;flex-direction:column;gap:12px;}.faq__item.svelte-tlosd8 {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-tlosd8 {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-tlosd8:hover {background:transparent;}.faq__title.svelte-tlosd8,
|
|
6
|
-
.faq__title.svelte-tlosd8 :where(.svelte-tlosd8) {-webkit-tap-highlight-color:transparent;}.faq__question.svelte-tlosd8 {text-align:left;}.faq__icon.svelte-tlosd8 {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-tlosd8 {transform:rotate(180deg);}.faq__answer-wrapper.svelte-tlosd8 {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-tlosd8 {overflow:hidden;font-size:12px;font-weight:500;line-height:1.5;color:var(--text-subtle, #DFE3E8);}.faq__answer-wrapper.open.svelte-tlosd8 {grid-template-rows:1fr;opacity:1;transform:translateY(0);padding-top:16px;}`};function tn(e,t){Ur(t,!0),ba(e,Su);const r=()=>$s(_u,"$_",n),[n,i]=Bs(),s=Ce(t,"apiEndpoint",7,""),o=Ce(t,"operatorName",7,""),a=Ce(t,"locale",7,"en"),l=Ce(t,"isExpanded",7,!0),u=l()===!0||l()==="true",f=[{questionKey:"faqBestQuestion",answerKey:"faqBestAnswer"},{questionKey:"faqWinningsQuestion",answerKey:"faqWinningsAnswer"},{questionKey:"faqGamesQuestion",answerKey:"faqGamesAnswer"},{questionKey:"faqSupportQuestion",answerKey:"faqSupportAnswer"}];bu({withLocale:a(),translations:{}}),Object.entries(Eu).forEach(([y,E])=>{yu(y,E)});let h=Se(ot(Object.fromEntries(f.map((y,E)=>[E,u]))));const c=y=>{de(h,{...U(h),[y]:!U(h)[y]},!0)};var p={get apiEndpoint(){return s()},set apiEndpoint(y=""){s(y),He()},get operatorName(){return o()},set operatorName(y=""){o(y),He()},get locale(){return a()},set locale(y="en"){a(y),He()},get isExpanded(){return l()},set isExpanded(y=!0){l(y),He()}},d=wu(),_=st(d);ma(_,21,()=>f,pa,(y,E,B)=>{var X=xu(),M=st(X),L=st(M),ne=st(L,!0);qe(L);var q=fn(L,2);let ce;qe(M);var P=fn(M,2);let w;var we=st(P),rt=st(we,!0);qe(we),qe(P),qe(X),Ks((x,m)=>{wa(M,"aria-expanded",!!U(h)[B]),vn(ne,x),ce=_n(q,1,"faq__icon svelte-tlosd8",null,ce,{"faq__icon--open":U(h)[B]}),w=_n(P,1,"faq__answer-wrapper svelte-tlosd8",null,w,{open:U(h)[B]}),vn(rt,m)},[()=>r()(U(E).questionKey,{values:{operatorName:o()}}),()=>r()(U(E).answerKey,{values:{operatorName:o()}})]),sa("click",M,()=>c(B)),Tr(y,X)}),qe(_),qe(d),Tr(e,d);var A=jr(p);return i(),A}aa(["click"]);Oi(tn,{apiEndpoint:{},operatorName:{},locale:{},isExpanded:{}},[],[],{mode:"open"});function es(e,t){Ur(t,!0);let r=Ce(t,"apiEndpoint",7,""),n=Ce(t,"operatorName",7,""),i=Ce(t,"locale",7,"en"),s=Ce(t,"isExpanded",7,!0);var o={get apiEndpoint(){return r()},set apiEndpoint(a=""){r(a),He()},get operatorName(){return n()},set operatorName(a=""){n(a),He()},get locale(){return i()},set locale(a="en"){i(a),He()},get isExpanded(){return s()},set isExpanded(a=!0){s(a),He()}};return tn(e,{get apiEndpoint(){return r()},get operatorName(){return n()},get locale(){return i()},get isExpanded(){return s()}}),jr(o)}customElements.define("loyalty-marketing-content",Oi(es,{apiEndpoint:{},operatorName:{},locale:{},isExpanded:{}},[],[]));const Tu=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyMarketingContent=tn;exports.LoyaltyMarketingContent_ce=Tu;
|