@everymatrix/loyalty-marketing-content 0.1.11 → 0.1.13
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-6RhbaOM1.cjs +8 -0
- package/components/{LoyaltyMarketingContent-DK0YWU5W.js → LoyaltyMarketingContent-BbfBw5yt.js} +2244 -2629
- package/components/LoyaltyMarketingContent-BxOH8tCP.js +6332 -0
- package/components/LoyaltyMarketingContent-Dg-x4jSz.cjs +8 -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 +5 -2
- package/components/LoyaltyMarketingContent-CxOh-wiw.cjs +0 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const zi="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(zi);const Wi=1,Xi=2,Qi=16,Yi=2,Tn="[",Ir="[!",Cr="]",ft={},X=Symbol(),Zi="http://www.w3.org/1999/xhtml",dr=!1;var An=Array.isArray,Ji=Array.prototype.indexOf,Zt=Array.from,qt=Object.keys,Ht=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyDescriptors,es=Object.prototype,ts=Array.prototype,Nn=Object.getPrototypeOf,Jr=Object.isExtensible;const Ce=()=>{};function Hn(e){for(var t=0;t<e.length;t++)e[t]()}function On(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Q=2,jt=4,Jt=8,$n=1<<24,Ne=16,ke=32,Fe=64,Lr=128,le=512,Z=1024,K=2048,He=4096,se=8192,Se=16384,Rr=32768,Ot=65536,Kr=1<<17,Bn=1<<18,et=1<<19,rs=1<<20,Me=1<<25,Ye=32768,pr=1<<21,Dr=1<<22,Le=1<<23,ar=Symbol("$state"),ns=Symbol("legacy props"),at=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Mn=3,_t=8;function is(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ss(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function as(){throw new Error("https://svelte.dev/e/hydration_failed")}function os(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function us(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ls(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Kt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function hs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Ve(e){R=e}let D;function fe(e){if(e===null)throw Kt(),ft;return D=e}function kr(){return fe(Oe(D))}function je(e){if(R){if(Oe(D)!==null)throw Kt(),ft;D=e}}function cs(e=1){if(R){for(var t=e,r=D;t--;)r=Oe(r);D=r}}function vr(e=!0){for(var t=0,r=D;;){if(r.nodeType===_t){var n=r.data;if(n===Cr){if(t===0)return r;t-=1}else(n===Tn||n===Ir)&&(t+=1)}var i=Oe(r);e&&r.remove(),r=i}}function ds(e){if(!e||e.nodeType!==_t)throw Kt(),ft;return e.data}function Pn(e){return e===this.v}function In(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cn(e){return!In(e,this.v)}let ps=!1,me=null;function ht(e){me=e}function Fr(e,t=!1,r){me={p:me,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gr(e){var t=me,r=t.e;if(r!==null){t.e=null;for(var n of r)$s(n)}return e!==void 0&&(t.x=e),t.i=!0,me=t.p,e??{}}function Ln(){return!0}let ze=[];function Rn(){var e=ze;ze=[],Hn(e)}function Ur(e){if(ze.length===0&&!At){var t=ze;queueMicrotask(()=>{t===ze&&Rn()})}ze.push(e)}function vs(){for(;ze.length>0;)Rn()}function Dn(e){var t=$;if(t===null)return H.f|=Le,e;if(t.f&Rr)ct(e,t);else{if(!(t.f&Lr))throw e;t.b.error(e)}}function ct(e,t){for(;t!==null;){if(t.f&Lr)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const ms=-7169;function V(e,t){e.f=e.f&ms|t}function qr(e){e.f&le||e.deps===null?V(e,Z):V(e,He)}function kn(e){if(e!==null)for(const t of e)!(t.f&Q)||!(t.f&Ye)||(t.f^=Ye,kn(t.deps))}function Fn(e,t,r){e.f&K?t.add(e):e.f&He&&r.add(e),kn(e.deps),V(e,Z)}const Rt=new Set;let G=null,de=null,ue=[],er=null,mr=!1,At=!1;class pe{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#i=0;#o=0;#s=null;#n=new Set;#r=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#o>0}process(t){ue=[],this.apply();var r=[],n=[];for(const i of t)this.#a(i,r,n);this.is_fork||this.#l(),this.is_deferred()?(this.#u(n),this.#u(r)):(G=null,en(n),en(r),this.#s?.resolve()),de=null}#a(t,r,n){t.f^=Z;for(var i=t.first,s=null;i!==null;){var a=i.f,o=(a&(ke|Fe))!==0,l=o&&(a&Z)!==0,u=l||(a&se)!==0||this.skipped_effects.has(i);if(!u&&i.fn!==null){o?i.f^=Z:s!==null&&a&(jt|Jt|$n)?s.b.defer_effect(i):a&jt?r.push(i):It(i)&&(a&Ne&&this.#n.add(i),Bt(i));var f=i.first;if(f!==null){i=f;continue}}var h=i.parent;for(i=i.next;i===null&&h!==null;)h===s&&(s=null),i=h.next,h=h.parent}}#u(t){for(var r=0;r<t.length;r+=1)Fn(t[r],this.#n,this.#r)}capture(t,r){r!==X&&!this.previous.has(t)&&this.previous.set(t,r),t.f&Le||(this.current.set(t,t.v),de?.set(t,t.v))}activate(){G=this,this.apply()}deactivate(){G===this&&(G=null,de=null)}flush(){if(this.activate(),ue.length>0){if(Gn(),G!==null&&G!==this)return}else this.#i===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#l(){if(this.#o===0){for(const t of this.#e)t();this.#e.clear()}this.#i===0&&this.#f()}#f(){if(Rt.size>1){this.previous.clear();var t=de,r=!0;for(const i of Rt){if(i===this){r=!1;continue}const s=[];for(const[o,l]of this.current){if(i.current.has(o))if(r&&l!==i.current.get(o))i.current.set(o,l);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var n=ue;ue=[];const o=new Set,l=new Map;for(const u of s)Un(u,a,o,l);if(ue.length>0){G=i,i.apply();for(const u of ue)i.#a(u,[],[]);i.deactivate()}ue=n}}G=null,de=t}this.committed=!0,Rt.delete(this)}increment(t){this.#i+=1,t&&(this.#o+=1)}decrement(t){this.#i-=1,t&&(this.#o-=1),this.revive()}revive(){for(const t of this.#n)this.#r.delete(t),V(t,K),Ae(t);for(const t of this.#r)V(t,He),Ae(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=On()).promise}static ensure(){if(G===null){const t=G=new pe;Rt.add(G),At||pe.enqueue(()=>{G===t&&t.flush()})}return G}static enqueue(t){Ur(t)}apply(){}}function we(e){var t=At;At=!0;try{for(var r;;){if(vs(),ue.length===0&&(G?.flush(),ue.length===0))return er=null,r;Gn()}}finally{At=t}}function Gn(){var e=Xe;mr=!0;var t=null;try{var r=0;for(zt(!0);ue.length>0;){var n=pe.ensure();if(r++>1e3){var i,s;gs()}n.process(ue),Re.clear()}}finally{mr=!1,zt(e),er=null}}function gs(){try{ss()}catch(e){ct(e,er)}}let xe=null;function en(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Se|se))&&It(n)&&(xe=new Set,Bt(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?ii(n):n.fn=null),xe?.size>0)){Re.clear();for(const i of xe){if(i.f&(Se|se))continue;const s=[i];let a=i.parent;for(;a!==null;)xe.has(a)&&(xe.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];l.f&(Se|se)||Bt(l)}}xe.clear()}}xe=null}}function Un(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&Q?Un(i,t,r,n):s&(Dr|Ne)&&!(s&K)&&qn(i,t,n)&&(V(i,K),Ae(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(t.includes(i))return!0;if(i.f&Q&&qn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Ae(e){for(var t=er=e;t.parent!==null;){t=t.parent;var r=t.f;if(mr&&t===$&&r&Ne&&!(r&Bn))return;if(r&(Fe|ke)){if(!(r&Z))return;t.f^=Z}}ue.push(t)}function _s(e){let t=0,r=Ze(0),n;return()=>{Wr()&&(U(r),ei(()=>(t===0&&(n=pi(()=>e(()=>Nt(r)))),t+=1,()=>{Ur(()=>{t-=1,t===0&&(n?.(),n=void 0,Nt(r))})})))}}var bs=Ot|et|Lr;function ys(e,t,r){new Es(e,t,r)}class Es{parent;is_pending=!1;#e;#t=R?D:null;#i;#o;#s;#n=null;#r=null;#a=null;#u=null;#l=null;#f=0;#h=0;#d=!1;#p=new Set;#v=new Set;#c=null;#y=_s(()=>(this.#c=Ze(this.#f),()=>{this.#c=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#o=n,this.parent=$.b,this.is_pending=!!this.#i.pending,this.#s=ti(()=>{if($.b=this,R){const s=this.#t;kr(),s.nodeType===_t&&s.data===Ir?this.#x():(this.#E(),this.#h===0&&(this.is_pending=!1))}else{var i=this.#_();try{this.#n=ge(()=>n(i))}catch(s){this.error(s)}this.#h>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},bs),R&&(this.#e=D)}#E(){try{this.#n=ge(()=>this.#o(this.#e))}catch(t){this.error(t)}}#x(){const t=this.#i.pending;t&&(this.#r=ge(()=>t(this.#e)),pe.enqueue(()=>{var r=this.#_();this.#n=this.#m(()=>(pe.ensure(),ge(()=>this.#o(r)))),this.#h>0?this.#g():(lt(this.#r,()=>{this.#r=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#l=De(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){Fn(t,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#m(t){var r=$,n=H,i=me;be(this.#s),re(this.#s),ht(this.#s.ctx);try{return t()}catch(s){return Dn(s),null}finally{be(r),re(n),ht(i)}}#g(){const t=this.#i.pending;this.#n!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#l),Ds(this.#n,this.#u)),this.#r===null&&(this.#r=ge(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#h+=t,this.#h===0){this.is_pending=!1;for(const r of this.#p)V(r,K),Ae(r);for(const r of this.#v)V(r,He),Ae(r);this.#p.clear(),this.#v.clear(),this.#r&<(this.#r,()=>{this.#r=null}),this.#u&&(this.#e.before(this.#u),this.#u=null)}}update_pending_count(t){this.#b(t),this.#f+=t,this.#c&&dt(this.#c,this.#f)}get_effect_pending(){return this.#y(),U(this.#c)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#d||!r&&!n)throw t;this.#n&&(he(this.#n),this.#n=null),this.#r&&(he(this.#r),this.#r=null),this.#a&&(he(this.#a),this.#a=null),R&&(fe(this.#t),cs(),fe(vr()));var i=!1,s=!1;const a=()=>{if(i){hs();return}i=!0,s&&fs(),pe.ensure(),this.#f=0,this.#a!==null&<(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#n=this.#m(()=>(this.#d=!1,ge(()=>this.#o(this.#e)))),this.#h>0?this.#g():this.is_pending=!1};var o=H;try{re(null),s=!0,r?.(t,a),s=!1}catch(l){ct(l,this.#s&&this.#s.parent)}finally{re(o)}n&&Ur(()=>{this.#a=this.#m(()=>{pe.ensure(),this.#d=!0;try{return ge(()=>{n(this.#e,()=>t,()=>a)})}catch(l){return ct(l,this.#s.parent),null}finally{this.#d=!1}})})}}function xs(e,t,r,n){const i=jr;if(r.length===0&&e.length===0){n(t.map(i));return}var s=G,a=$,o=ws();function l(){Promise.all(r.map(u=>Ss(u))).then(u=>{o();try{n([...t.map(i),...u])}catch(f){a.f&Se||ct(f,a)}s?.deactivate(),Vt()}).catch(u=>{ct(u,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{s?.deactivate(),Vt()}}):l()}function ws(){var e=$,t=H,r=me,n=G;return function(s=!0){be(e),re(t),ht(r),s&&n?.activate()}}function Vt(){be(null),re(null),ht(null)}function jr(e){var t=Q|K,r=H!==null&&H.f&Q?H:null;return $!==null&&($.f|=et),{ctx:me,deps:null,effects:null,equals:Pn,f:t,fn:e,reactions:null,rv:0,v:X,wv:0,parent:r??$,ac:null}}function Ss(e,t,r){let n=$;n===null&&is();var i=n.b,s=void 0,a=Ze(X),o=!H,l=new Map;return Is(()=>{var u=On();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{f===G&&f.committed&&f.deactivate(),Vt()})}catch(p){u.reject(p),Vt()}var f=G;if(o){var h=i.is_rendered();i.update_pending_count(1),f.increment(h),l.get(f)?.reject(at),l.delete(f),l.set(f,u)}const c=(p,d=void 0)=>{if(f.activate(),d)d!==at&&(a.f|=Le,dt(a,d));else{a.f&Le&&(a.f^=Le),dt(a,p);for(const[y,w]of l){if(l.delete(y),y===f)break;w.reject(at)}}o&&(i.update_pending_count(-1),f.decrement(h))};u.promise.then(c,p=>c(null,p||"unknown"))}),Kn(()=>{for(const u of l.values())u.reject(at)}),new Promise(u=>{function f(h){function c(){h===s?u(a):f(s)}h.then(c,c)}f(s)})}function Ts(e){const t=jr(e);return t.equals=Cn,t}function jn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)he(t[r])}}function As(e){for(var t=e.parent;t!==null;){if(!(t.f&Q))return t.f&Se?null:t;t=t.parent}return null}function Vr(e){var t,r=$;be(As(e));try{e.f&=~Ye,jn(e),t=hi(e)}finally{be(r)}return t}function Vn(e){var t=Vr(e);if(!e.equals(t)&&(e.wv=li(),(!G?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){V(e,Z);return}Je||(de!==null?(Wr()||G?.is_fork)&&de.set(e,t):qr(e))}let gr=new Set;const Re=new Map;let zn=!1;function Ze(e,t){var r={f:0,v:e,reactions:null,equals:Pn,rv:0,wv:0};return r}function Ee(e,t){const r=Ze(e);return ks(r),r}function zr(e,t=!1,r=!0){const n=Ze(e);return t||(n.equals=Cn),n}function ce(e,t,r=!1){H!==null&&(!ve||H.f&Kr)&&Ln()&&H.f&(Q|Ne|Dr|Kr)&&!Te?.includes(e)&&ls();let n=r?ot(t):t;return dt(e,n)}function dt(e,t){if(!e.equals(t)){var r=e.v;Je?Re.set(e,t):Re.set(e,r),e.v=t;var n=pe.ensure();if(n.capture(e,r),e.f&Q){const i=e;e.f&K&&Vr(i),qr(i)}e.wv=li(),Wn(e,K),$!==null&&$.f&Z&&!($.f&(ke|Fe))&&(oe===null?Fs([e]):oe.push(e)),!n.is_fork&&gr.size>0&&!zn&&Ns()}return t}function Ns(){zn=!1;var e=Xe;zt(!0);const t=Array.from(gr);try{for(const r of t)r.f&Z&&V(r,He),It(r)&&Bt(r)}finally{zt(e)}gr.clear()}function Nt(e){ce(e,e.v+1)}function Wn(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&K)===0;if(o&&V(s,t),a&Q){var l=s;de?.delete(l),a&Ye||(a&le&&(s.f|=Ye),Wn(l,He))}else o&&(a&Ne&&xe!==null&&xe.add(s),Ae(s))}}function ot(e){if(typeof e!="object"||e===null||ar in e)return e;const t=Nn(e);if(t!==es&&t!==ts)return e;var r=new Map,n=An(e),i=Ee(0),s=Qe,a=o=>{if(Qe===s)return o();var l=H,u=Qe;re(null),sn(s);var f=o();return re(l),sn(u),f};return n&&r.set("length",Ee(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&os();var f=r.get(l);return f===void 0?f=a(()=>{var h=Ee(u.value);return r.set(l,h),h}):ce(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>Ee(X));r.set(l,f),Nt(i)}}else ce(u,X),Nt(i);return!0},get(o,l,u){if(l===ar)return e;var f=r.get(l),h=l in o;if(f===void 0&&(!h||ut(o,l)?.writable)&&(f=a(()=>{var p=ot(h?o[l]:X),d=Ee(p);return d}),r.set(l,f)),f!==void 0){var c=U(f);return c===X?void 0:c}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,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!==X)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,l){if(l===ar)return!0;var u=r.get(l),f=u!==void 0&&u.v!==X||Reflect.has(o,l);if(u!==void 0||$!==null&&(!f||ut(o,l)?.writable)){u===void 0&&(u=a(()=>{var c=f?ot(o[l]):X,p=Ee(c);return p}),r.set(l,u));var h=U(u);if(h===X)return!1}return f},set(o,l,u,f){var h=r.get(l),c=l in o;if(n&&l==="length")for(var p=u;p<h.v;p+=1){var d=r.get(p+"");d!==void 0?ce(d,X):p in o&&(d=a(()=>Ee(X)),r.set(p+"",d))}if(h===void 0)(!c||ut(o,l)?.writable)&&(h=a(()=>Ee(void 0)),ce(h,ot(u)),r.set(l,h));else{c=h.v!==X;var y=a(()=>ot(u));ce(h,y)}var w=Reflect.getOwnPropertyDescriptor(o,l);if(w?.set&&w.set.call(f,u),!c){if(n&&typeof l=="string"){var S=r.get("length"),O=Number(l);Number.isInteger(O)&&O>=S.v&&ce(S,O+1)}Nt(i)}return!0},ownKeys(o){U(i);var l=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==X});for(var[u,f]of r)f.v!==X&&!(u in o)&&l.push(u);return l},setPrototypeOf(){us()}})}var tn,Xn,Qn,Yn;function _r(){if(tn===void 0){tn=window,Xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qn=ut(t,"firstChild").get,Yn=ut(t,"nextSibling").get,Jr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Jr(r)&&(r.__t=void 0)}}function De(e=""){return document.createTextNode(e)}function $t(e){return Qn.call(e)}function Oe(e){return Yn.call(e)}function nt(e,t){if(!R)return $t(e);var r=$t(D);if(r===null)r=D.appendChild(De());else if(t&&r.nodeType!==Mn){var n=De();return r?.before(n),fe(n),n}return fe(r),r}function rn(e,t=1,r=!1){let n=R?D:e;for(var i;t--;)i=n,n=Oe(n);if(!R)return n;if(r&&n?.nodeType!==Mn){var s=De();return n===null?i?.after(s):n.before(s),fe(s),s}return fe(n),n}function Zn(e){e.textContent=""}function Hs(){return!1}function Jn(e){var t=H,r=$;re(null),be(null);try{return e()}finally{re(t),be(r)}}function Os(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ye(e,t,r){var n=$;n!==null&&n.f&se&&(e|=se);var i={ctx:me,deps:null,nodes:null,f:e|K|le,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Bt(i),i.f|=Rr}catch(o){throw he(i),o}else t!==null&&Ae(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&et)&&(s=s.first,e&Ne&&e&Ot&&s!==null&&(s.f|=Ot)),s!==null&&(s.parent=n,n!==null&&Os(s,n),H!==null&&H.f&Q&&!(e&Fe))){var a=H;(a.effects??=[]).push(s)}return i}function Wr(){return H!==null&&!ve}function Kn(e){const t=ye(Jt,null,!1);return V(t,Z),t.teardown=e,t}function $s(e){return ye(jt|rs,e,!1)}function Bs(e){pe.ensure();const t=ye(Fe|et,e,!0);return()=>{he(t)}}function Ms(e){pe.ensure();const t=ye(Fe|et,e,!0);return(r={})=>new Promise(n=>{r.outro?lt(t,()=>{he(t),n(void 0)}):(he(t),n(void 0))})}function Ps(e){return ye(jt,e,!1)}function Is(e){return ye(Dr|et,e,!0)}function ei(e,t=0){return ye(Jt|t,e,!0)}function Cs(e,t=[],r=[],n=[]){xs(n,t,r,i=>{ye(Jt,()=>e(...i.map(U)),!0)})}function ti(e,t=0){var r=ye(Ne|t,e,!0);return r}function ge(e){return ye(ke|et,e,!0)}function ri(e){var t=e.teardown;if(t!==null){const r=Je,n=H;nn(!0),re(null);try{t.call(null)}finally{nn(r),re(n)}}}function ni(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Jn(()=>{i.abort(at)});var n=r.next;r.f&Fe?r.parent=null:he(r,t),r=n}}function Ls(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ke||he(t),t=r}}function he(e,t=!0){var r=!1;(t||e.f&Bn)&&e.nodes!==null&&e.nodes.end!==null&&(Rs(e.nodes.start,e.nodes.end),r=!0),ni(e,t&&!r),Wt(e,0),V(e,Se);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ri(e);var i=e.parent;i!==null&&i.first!==null&&ii(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Rs(e,t){for(;e!==null;){var r=e===t?null:Oe(e);e.remove(),e=r}}function ii(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 lt(e,t,r=!0){var n=[];si(e,n,!0);var i=()=>{r&&he(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function si(e,t,r){if(!(e.f&se)){e.f^=se;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&Ot)!==0||(i.f&ke)!==0&&(e.f&Ne)!==0;si(i,t,a?r:!1),i=s}}}function ai(e){oi(e,!0)}function oi(e,t){if(e.f&se){e.f^=se,e.f&Z||(V(e,K),Ae(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ot)!==0||(r.f&ke)!==0;oi(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Ds(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Oe(r);t.append(r),r=i}}let Xe=!1;function zt(e){Xe=e}let Je=!1;function nn(e){Je=e}let H=null,ve=!1;function re(e){H=e}let $=null;function be(e){$=e}let Te=null;function ks(e){H!==null&&(Te===null?Te=[e]:Te.push(e))}let te=null,ie=0,oe=null;function Fs(e){oe=e}let ui=1,We=0,Qe=We;function sn(e){Qe=e}function li(){return++ui}function It(e){var t=e.f;if(t&K)return!0;if(t&Q&&(e.f&=~Ye),t&He){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(It(s)&&Vn(s),s.wv>e.wv)return!0}t&le&&de===null&&V(e,Z)}return!1}function fi(e,t,r=!0){var n=e.reactions;if(n!==null&&!Te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];s.f&Q?fi(s,t,!1):t===s&&(r?V(s,K):s.f&Z&&V(s,He),Ae(s))}}function hi(e){var t=te,r=ie,n=oe,i=H,s=Te,a=me,o=ve,l=Qe,u=e.f;te=null,ie=0,oe=null,H=u&(ke|Fe)?null:e,Te=null,ht(e.ctx),ve=!1,Qe=++We,e.ac!==null&&(Jn(()=>{e.ac.abort(at)}),e.ac=null);try{e.f|=pr;var f=e.fn,h=f(),c=e.deps;if(te!==null){var p;if(Wt(e,ie),c!==null&&ie>0)for(c.length=ie+te.length,p=0;p<te.length;p++)c[ie+p]=te[p];else e.deps=c=te;if(Wr()&&e.f&le)for(p=ie;p<c.length;p++)(c[p].reactions??=[]).push(e)}else c!==null&&ie<c.length&&(Wt(e,ie),c.length=ie);if(Ln()&&oe!==null&&!ve&&c!==null&&!(e.f&(Q|He|K)))for(p=0;p<oe.length;p++)fi(oe[p],e);if(i!==null&&i!==e){if(We++,i.deps!==null)for(let d=0;d<r;d+=1)i.deps[d].rv=We;if(t!==null)for(const d of t)d.rv=We;oe!==null&&(n===null?n=oe:n.push(...oe))}return e.f&Le&&(e.f^=Le),h}catch(d){return Dn(d)}finally{e.f^=pr,te=t,ie=r,oe=n,H=i,Te=s,ht(a),ve=o,Qe=l}}function Gs(e,t){let r=t.reactions;if(r!==null){var n=Ji.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&Q&&(te===null||!te.includes(t))){var s=t;s.f&le&&(s.f^=le,s.f&=~Ye),qr(s),jn(s),Wt(s,0)}}function Wt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Gs(e,r[n])}function Bt(e){var t=e.f;if(!(t&Se)){V(e,Z);var r=$,n=Xe;$=e,Xe=!0;try{t&(Ne|$n)?Ls(e):ni(e),ri(e);var i=hi(e);e.teardown=typeof i=="function"?i:null,e.wv=ui;var s;dr&&ps&&e.f&K&&e.deps}finally{Xe=n,$=r}}}function U(e){var t=e.f,r=(t&Q)!==0;if(H!==null&&!ve){var n=$!==null&&($.f&Se)!==0;if(!n&&!Te?.includes(e)){var i=H.deps;if(H.f&pr)e.rv<We&&(e.rv=We,te===null&&i!==null&&i[ie]===e?ie++:te===null?te=[e]:te.push(e));else{(H.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[H]:s.includes(H)||s.push(H)}}}if(Je&&Re.has(e))return Re.get(e);if(r){var a=e;if(Je){var o=a.v;return(!(a.f&Z)&&a.reactions!==null||di(a))&&(o=Vr(a)),Re.set(a,o),o}var l=(a.f&le)===0&&!ve&&H!==null&&(Xe||(H.f&le)!==0),u=a.deps===null;It(a)&&(l&&(a.f|=le),Vn(a)),l&&!u&&ci(a)}if(de?.has(e))return de.get(e);if(e.f&Le)throw e.v;return e.v}function ci(e){if(e.deps!==null){e.f|=le;for(const t of e.deps)(t.reactions??=[]).push(e),t.f&Q&&!(t.f&le)&&ci(t)}}function di(e){if(e.v===X)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||t.f&Q&&di(t))return!0;return!1}function pi(e){var t=ve;try{return ve=!0,e()}finally{ve=t}}const vi=new Set,br=new Set;function Us(e){for(var t=0;t<e.length;t++)vi.add(e[t]);for(var r of br)r(e)}let an=null;function Dt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;an=e;var a=0,o=an===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){Ht(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=H,h=$;re(null),be(null);try{for(var c,p=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];y!=null&&(!s.disabled||e.target===s)&&y.call(s,e)}catch(w){c?p.push(w):c=w}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let w of p)queueMicrotask(()=>{throw w});throw c}}finally{e.__root=t,delete e.currentTarget,re(f),be(h)}}}function qs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function yr(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function mi(e,t){var r=(t&Yi)!==0,n,i=!e.startsWith("<!>");return()=>{if(R)return yr(D,null),D;n===void 0&&(n=qs(i?e:"<!>"+e),n=$t(n));var s=r||Xn?document.importNode(n,!0):n.cloneNode(!0);return yr(s,s),s}}function Er(e,t){if(R){var r=$;(!(r.f&Rr)||r.nodes.end===null)&&(r.nodes.end=D),kr();return}e!==null&&e.before(t)}const js=["touchstart","touchmove"];function Vs(e){return js.includes(e)}function on(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function gi(e,t){return _i(e,t)}function zs(e,t){_r(),t.intro=t.intro??!1;const r=t.target,n=R,i=D;try{for(var s=$t(r);s&&(s.nodeType!==_t||s.data!==Tn);)s=Oe(s);if(!s)throw ft;Ve(!0),fe(s);const a=_i(e,{...t,anchor:s});return Ve(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ft&&console.warn("Failed to hydrate: ",a),t.recover===!1&&as(),_r(),Zn(r),Ve(!1),gi(e,t)}finally{Ve(n),fe(i)}}const it=new Map;function _i(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){_r();var o=new Set,l=h=>{for(var c=0;c<h.length;c++){var p=h[c];if(!o.has(p)){o.add(p);var d=Vs(p);t.addEventListener(p,Dt,{passive:d});var y=it.get(p);y===void 0?(document.addEventListener(p,Dt,{passive:d}),it.set(p,1)):it.set(p,y+1)}}};l(Zt(vi)),br.add(l);var u=void 0,f=Ms(()=>{var h=r??t.appendChild(De());return ys(h,{pending:()=>{}},c=>{if(s){Fr({});var p=me;p.c=s}if(i&&(n.$$events=i),R&&yr(c,null),u=e(c,n)||{},R&&($.nodes.end=D,D===null||D.nodeType!==_t||D.data!==Cr))throw Kt(),ft;s&&Gr()}),()=>{for(var c of o){t.removeEventListener(c,Dt);var p=it.get(c);--p===0?(document.removeEventListener(c,Dt),it.delete(c)):it.set(c,p)}br.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return xr.set(u,f),u}let xr=new WeakMap;function Ws(e,t){const r=xr.get(e);return r?(xr.delete(e),r(t)):Promise.resolve()}function Xs(e,t){return t}function Qs(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let h=t[o];lt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;wr(Zt(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;Zn(f),f.append(u),e.items.clear()}wr(t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function wr(e,t=!0){for(var r=0;r<e.length;r++)he(e[r],t)}var un;function Ys(e,t,r,n,i,s=null){var a=e,o=new Map;{var l=e;a=R?fe($t(l)):l.appendChild(De())}R&&kr();var u=null,f=Ts(()=>{var w=r();return An(w)?w:w==null?[]:Zt(w)}),h,c=!0;function p(){y.fallback=u,Zs(y,h,a,t,n),u!==null&&(h.length===0?u.f&Me?(u.f^=Me,Tt(u,null,a)):ai(u):lt(u,()=>{u=null}))}var d=ti(()=>{h=U(f);var w=h.length;let S=!1;if(R){var O=ds(a)===Ir;O!==(w===0)&&(a=vr(),fe(a),Ve(!1),S=!0)}for(var P=new Set,q=G,B=Hs(),I=0;I<w;I+=1){R&&D.nodeType===_t&&D.data===Cr&&(a=D,S=!0,Ve(!1));var ne=h[I],z=n(ne,I),W=c?null:o.get(z);W?(W.v&&dt(W.v,ne),W.i&&dt(W.i,I),B&&q.skipped_effects.delete(W.e)):(W=Js(o,c?a:un??=De(),ne,z,I,i,t,r),c||(W.e.f|=Me),o.set(z,W)),P.add(z)}if(w===0&&s&&!u&&(c?u=ge(()=>s(a)):(u=ge(()=>s(un??=De())),u.f|=Me)),R&&w>0&&fe(vr()),!c)if(B){for(const[C,N]of o)P.has(C)||q.skipped_effects.add(N.e);q.oncommit(p),q.ondiscard(()=>{})}else p();S&&Ve(!0),U(f)}),y={effect:d,items:o,outrogroups:null,fallback:u};c=!1,R&&(a=D)}function Zs(e,t,r,n,i){var s=t.length,a=e.items,o=e.effect.first,l,u=null,f=[],h=[],c,p,d,y;for(y=0;y<s;y+=1){if(c=t[y],p=i(c,y),d=a.get(p).e,e.outrogroups!==null)for(const z of e.outrogroups)z.pending.delete(d),z.done.delete(d);if(d.f&Me)if(d.f^=Me,d===o)Tt(d,null,r);else{var w=u?u.next:o;d===e.effect.last&&(e.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),Be(e,u,d),Be(e,d,w),Tt(d,w,r),u=d,f=[],h=[],o=u.next;continue}if(d.f&se&&ai(d),d!==o){if(l!==void 0&&l.has(d)){if(f.length<h.length){var S=h[0],O;u=S.prev;var P=f[0],q=f[f.length-1];for(O=0;O<f.length;O+=1)Tt(f[O],S,r);for(O=0;O<h.length;O+=1)l.delete(h[O]);Be(e,P.prev,q.next),Be(e,u,P),Be(e,q,S),o=S,u=q,y-=1,f=[],h=[]}else l.delete(d),Tt(d,o,r),Be(e,d.prev,d.next),Be(e,d,u===null?e.effect.first:u.next),Be(e,u,d),u=d;continue}for(f=[],h=[];o!==null&&o!==d;)(l??=new Set).add(o),h.push(o),o=o.next;if(o===null)continue}d.f&Me||f.push(d),u=d,o=d.next}if(e.outrogroups!==null){for(const z of e.outrogroups)z.pending.size===0&&(wr(Zt(z.done)),e.outrogroups?.delete(z));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||l!==void 0){var B=[];if(l!==void 0)for(d of l)d.f&se||B.push(d);for(;o!==null;)!(o.f&se)&&o!==e.fallback&&B.push(o),o=o.next;var I=B.length;if(I>0){var ne=s===0?r:null;Qs(e,B,ne)}}}function Js(e,t,r,n,i,s,a,o){var l=a&Wi?a&Qi?Ze(r):zr(r,!1,!1):null,u=a&Xi?Ze(i):null;return{v:l,i:u,e:ge(()=>(s(t,l??r,u??i,o),()=>{e.delete(n)}))}}function Tt(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Me)?t.nodes.start:r;n!==null;){var a=Oe(n);if(s.before(n),n===i)return;n=a}}function Be(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ks(e,t){Ps(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const ln=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function ea(e,t,r){var n=e==null?"":""+e;if(r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||ln.includes(n[a-1]))&&(o===n.length||ln.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function fn(e,t,r,n,i,s){var a=e.__className;if(R||a!==r||a===void 0){var o=ea(r,n,s);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),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 ta=Symbol("is custom element"),ra=Symbol("is html");function na(e,t,r,n){var i=ia(e);R&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&sa(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ia(e){return e.__attributes??={[ta]:e.nodeName.includes("-"),[ra]:e.namespaceURI===Zi}}var hn=new Map;function sa(e){var t=e.getAttribute("is")||e.nodeName,r=hn.get(t);if(r)return r;hn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ki(i);for(var a in n)n[a].set&&r.push(a);i=Nn(i)}return r}function Xr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ce;const n=pi(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const st=[];function aa(e,t){return{subscribe:tr(e,t).subscribe}}function tr(e,t=Ce){let r=null;const n=new Set;function i(o){if(In(e,o)&&(e=o,r)){const l=!st.length;for(const u of n)u[1](),st.push(u,e);if(l){for(let u=0;u<st.length;u+=2)st[u][0](st[u+1]);st.length=0}}}function s(o){i(o(e))}function a(o,l=Ce){const u=[o,l];return n.add(u),n.size===1&&(r=t(i,s)||Ce),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function bt(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 aa(r,(a,o)=>{let l=!1;const u=[];let f=0,h=Ce;const c=()=>{if(f)return;h();const d=t(n?u[0]:u,a,o);s?a(d):h=typeof d=="function"?d:Ce},p=i.map((d,y)=>Xr(d,w=>{u[y]=w,f&=~(1<<y),l&&c()},()=>{f|=1<<y}));return l=!0,c(),function(){Hn(p),h(),l=!1}})}function oa(e){let t;return Xr(e,r=>t=r)(),t}let Sr=Symbol();function ua(e,t,r){const n=r[t]??={store:null,source:zr(void 0),unsubscribe:Ce};if(n.store!==e&&!(Sr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ce;else{var i=!0;n.unsubscribe=Xr(e,s=>{i?n.source.v=s:ce(n.source,s)}),i=!1}return e&&Sr in r?oa(e):U(n.source)}function la(){const e={};function t(){Kn(()=>{for(var r in e)e[r].unsubscribe();Ht(e,Sr,{enumerable:!1,value:!0})})}return[e,t]}function Pe(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=jr(()=>(u=!1,l())),h=$;return function(c,p){if(arguments.length>0){const d=p?U(f):c;return ce(f,d),u=!0,i!==void 0&&(i=d),c}return Je&&u||h.f&Se?f.v:U(f)}}function fa(e){return new ha(e)}class ha{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=zr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return U(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===ns?!0:(U(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ce(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?zs:gi)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&we(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Ht(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Ws(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 bi;typeof HTMLElement=="function"&&(bi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}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 t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),Er(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ca(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Ft(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=fa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Bs(()=>{ei(()=>{this.$$r=!0;for(const i of qt(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Ft(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ft(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 Ft(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 ca(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function yi(e,t,r,n,i,s){let a=class extends bi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return qt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qt(t).forEach(o=>{Ht(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ft(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=ut(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{Ht(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var da=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var va={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(da,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",f="week",h="month",c="quarter",p="year",d="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,O={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(b){var m=["th","st","nd","rd"],v=b%100;return"["+b+(m[(v-20)%10]||m[v]||m[0])+"]"}},P=function(b,m,v){var _=String(b);return!_||_.length>=m?b:""+Array(m+1-_.length).join(v)+b},q={s:P,z:function(b){var m=-b.utcOffset(),v=Math.abs(m),_=Math.floor(v/60),g=v%60;return(m<=0?"+":"-")+P(_,2,"0")+":"+P(g,2,"0")},m:function b(m,v){if(m.date()<v.date())return-b(v,m);var _=12*(v.year()-m.year())+(v.month()-m.month()),g=m.clone().add(_,h),E=v-g<0,x=m.clone().add(_+(E?-1:1),h);return+(-(_+(v-g)/(E?g-x:x-g))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y:p,w:f,d:u,D:d,h:l,m:o,s:a,ms:s,Q:c}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},B="en",I={};I[B]=O;var ne="$isDayjsObject",z=function(b){return b instanceof Ge||!(!b||!b[ne])},W=function b(m,v,_){var g;if(!m)return B;if(typeof m=="string"){var E=m.toLowerCase();I[E]&&(g=E),v&&(I[E]=v,g=E);var x=m.split("-");if(!g&&x.length>1)return b(x[0])}else{var M=m.name;I[M]=m,g=M}return!_&&g&&(B=g),g||!_&&B},C=function(b,m){if(z(b))return b.clone();var v=typeof m=="object"?m:{};return v.date=b,v.args=arguments,new Ge(v)},N=q;N.l=W,N.i=z,N.w=function(b,m){return C(b,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var Ge=function(){function b(v){this.$L=W(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[ne]=!0}var m=b.prototype;return m.parse=function(v){this.$d=function(_){var g=_.date,E=_.utc;if(g===null)return new Date(NaN);if(N.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var x=g.match(w);if(x){var M=x[2]-1||0,F=(x[7]||"0").substring(0,3);return E?new Date(Date.UTC(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,F)):new Date(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,F)}}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 N},m.isValid=function(){return this.$d.toString()!==y},m.isSame=function(v,_){var g=C(v);return this.startOf(_)<=g&&g<=this.endOf(_)},m.isAfter=function(v,_){return C(v)<this.startOf(_)},m.isBefore=function(v,_){return this.endOf(_)<C(v)},m.$g=function(v,_,g){return N.u(v)?this[_]:this.set(g,v)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(v,_){var g=this,E=!!N.u(_)||_,x=N.p(v),M=function(qe,ee){var $e=N.w(g.$u?Date.UTC(g.$y,ee,qe):new Date(g.$y,ee,qe),g);return E?$e:$e.endOf(u)},F=function(qe,ee){return N.w(g.toDate()[qe].apply(g.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(ee)),g)},j=this.$W,Y=this.$M,ae=this.$D,rt="set"+(this.$u?"UTC":"");switch(x){case p:return E?M(1,0):M(31,11);case h:return E?M(1,Y):M(0,Y+1);case f:var Ue=this.$locale().weekStart||0,xt=(j<Ue?j+7:j)-Ue;return M(E?ae-xt:ae+(6-xt),Y);case u:case d:return F(rt+"Hours",0);case l:return F(rt+"Minutes",1);case o:return F(rt+"Seconds",2);case a:return F(rt+"Milliseconds",3);default:return this.clone()}},m.endOf=function(v){return this.startOf(v,!1)},m.$set=function(v,_){var g,E=N.p(v),x="set"+(this.$u?"UTC":""),M=(g={},g[u]=x+"Date",g[d]=x+"Date",g[h]=x+"Month",g[p]=x+"FullYear",g[l]=x+"Hours",g[o]=x+"Minutes",g[a]=x+"Seconds",g[s]=x+"Milliseconds",g)[E],F=E===u?this.$D+(_-this.$W):_;if(E===h||E===p){var j=this.clone().set(d,1);j.$d[M](F),j.init(),this.$d=j.set(d,Math.min(this.$D,j.daysInMonth())).$d}else M&&this.$d[M](F);return this.init(),this},m.set=function(v,_){return this.clone().$set(v,_)},m.get=function(v){return this[N.p(v)]()},m.add=function(v,_){var g,E=this;v=Number(v);var x=N.p(_),M=function(Y){var ae=C(E);return N.w(ae.date(ae.date()+Math.round(Y*v)),E)};if(x===h)return this.set(h,this.$M+v);if(x===p)return this.set(p,this.$y+v);if(x===u)return M(1);if(x===f)return M(7);var F=(g={},g[o]=n,g[l]=i,g[a]=r,g)[x]||1,j=this.$d.getTime()+v*F;return N.w(j,this)},m.subtract=function(v,_){return this.add(-1*v,_)},m.format=function(v){var _=this,g=this.$locale();if(!this.isValid())return g.invalidDate||y;var E=v||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),M=this.$H,F=this.$m,j=this.$M,Y=g.weekdays,ae=g.months,rt=g.meridiem,Ue=function(ee,$e,wt,Lt){return ee&&(ee[$e]||ee(_,E))||wt[$e].slice(0,Lt)},xt=function(ee){return N.s(M%12||12,ee,"0")},qe=rt||function(ee,$e,wt){var Lt=ee<12?"AM":"PM";return wt?Lt.toLowerCase():Lt};return E.replace(S,function(ee,$e){return $e||function(wt){switch(wt){case"YY":return String(_.$y).slice(-2);case"YYYY":return N.s(_.$y,4,"0");case"M":return j+1;case"MM":return N.s(j+1,2,"0");case"MMM":return Ue(g.monthsShort,j,ae,3);case"MMMM":return Ue(ae,j);case"D":return _.$D;case"DD":return N.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ue(g.weekdaysMin,_.$W,Y,2);case"ddd":return Ue(g.weekdaysShort,_.$W,Y,3);case"dddd":return Y[_.$W];case"H":return String(M);case"HH":return N.s(M,2,"0");case"h":return xt(1);case"hh":return xt(2);case"a":return qe(M,F,!0);case"A":return qe(M,F,!1);case"m":return String(F);case"mm":return N.s(F,2,"0");case"s":return String(_.$s);case"ss":return N.s(_.$s,2,"0");case"SSS":return N.s(_.$ms,3,"0");case"Z":return x}return null}(ee)||x.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(v,_,g){var E,x=this,M=N.p(_),F=C(v),j=(F.utcOffset()-this.utcOffset())*n,Y=this-F,ae=function(){return N.m(x,F)};switch(M){case p:E=ae()/12;break;case h:E=ae();break;case c:E=ae()/3;break;case f:E=(Y-j)/6048e5;break;case u:E=(Y-j)/864e5;break;case l:E=Y/i;break;case o:E=Y/n;break;case a:E=Y/r;break;default:E=Y}return g?E:N.a(E)},m.daysInMonth=function(){return this.endOf(h).$D},m.$locale=function(){return I[this.$L]},m.locale=function(v,_){if(!v)return this.$L;var g=this.clone(),E=W(v,_,!0);return E&&(g.$L=E),g},m.clone=function(){return N.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()},b}(),Ct=Ge.prototype;return C.prototype=Ct,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",h],["$y",p],["$D",d]].forEach(function(b){Ct[b[1]]=function(m){return this.$g(m,b[0],b[1])}}),C.extend=function(b,m){return b.$i||(b(m,Ge,C),b.$i=!0),C},C.locale=W,C.isDayjs=z,C.unix=function(b){return C(1e3*b)},C.en=I[B],C.Ls=I,C.p={},C})})(va);var ma=function(t){return ga(t)&&!_a(t)};function ga(e){return!!e&&typeof e=="object"}function _a(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ea(e)}var ba=typeof Symbol=="function"&&Symbol.for,ya=ba?Symbol.for("react.element"):60103;function Ea(e){return e.$$typeof===ya}function xa(e){return Array.isArray(e)?[]:{}}function Mt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pt(xa(e),e,t):e}function wa(e,t,r){return e.concat(t).map(function(n){return Mt(n,r)})}function Sa(e,t){if(!t.customMerge)return pt;var r=t.customMerge(e);return typeof r=="function"?r:pt}function Ta(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function cn(e){return Object.keys(e).concat(Ta(e))}function Ei(e,t){try{return t in e}catch{return!1}}function Aa(e,t){return Ei(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Na(e,t,r){var n={};return r.isMergeableObject(e)&&cn(e).forEach(function(i){n[i]=Mt(e[i],r)}),cn(t).forEach(function(i){Aa(e,i)||(Ei(e,i)&&r.isMergeableObject(t[i])?n[i]=Sa(i,r)(e[i],t[i],r):n[i]=Mt(t[i],r))}),n}function pt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||wa,r.isMergeableObject=r.isMergeableObject||ma,r.cloneUnlessOtherwiseSpecified=Mt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Na(e,t,r):Mt(t,r)}pt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return pt(n,i,r)},{})};var Ha=pt,Oa=Ha;const $a=pa(Oa);var Tr=function(e,t){return Tr=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])},Tr(e,t)};function rr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=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},_e.apply(this,arguments)};function Ba(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 or(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 ur(e,t){var r=t&&t.cache?t.cache:Da,n=t&&t.serializer?t.serializer:La,i=t&&t.strategy?t.strategy:Ia;return i(e,{cache:r,serializer:n})}function Ma(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Pa(e,t,r,n){var i=Ma(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function xi(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 wi(e,t,r,n,i){return r.bind(t,e,n,i)}function Ia(e,t){var r=e.length===1?Pa:xi;return wi(e,this,r,t.cache.create(),t.serializer)}function Ca(e,t){return wi(e,this,xi,t.cache.create(),t.serializer)}var La=function(){return JSON.stringify(arguments)},Ra=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}(),Da={create:function(){return new Ra}},lr={variadic:Ca},Xt=function(){return Xt=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},Xt.apply(this,arguments)};var T;(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"})(T||(T={}));var L;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(L||(L={}));var vt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(vt||(vt={}));function dn(e){return e.type===L.literal}function ka(e){return e.type===L.argument}function Si(e){return e.type===L.number}function Ti(e){return e.type===L.date}function Ai(e){return e.type===L.time}function Ni(e){return e.type===L.select}function Hi(e){return e.type===L.plural}function Fa(e){return e.type===L.pound}function Oi(e){return e.type===L.tag}function $i(e){return!!(e&&typeof e=="object"&&e.type===vt.number)}function Ar(e){return!!(e&&typeof e=="object"&&e.type===vt.dateTime)}var Bi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ga=/(?:[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 Ua(e){var t={};return e.replace(Ga,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 k=function(){return k=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},k.apply(this,arguments)};var qa=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ja(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(qa).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],l=a.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:o,options:l})}return r}function Va(e){return e.replace(/^(.*?)-/,"")}var pn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mi=/^(@+)?(\+|#+)?[rs]?$/g,za=/(\*)(0+)|(#+)(0+)|(0+)/g,Pi=/^(0+)$/;function vn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Mi,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 Ii(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 Wa(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)),!Pi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function mn(e){var t={},r=Ii(e);return r||t}function Xa(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=Va(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=k(k(k({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return k(k({},l),mn(u))},{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return k(k({},l),mn(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(za,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(Pi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(pn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(pn,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=k(k({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=k(k({},t),vn(s)));continue}if(Mi.test(i.stem)){t=k(k({},t),vn(i.stem));continue}var a=Ii(i.stem);a&&(t=k(k({},t),a));var o=Wa(i.stem);o&&(t=k(k({},t),o))}return t}var kt={"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 Qa(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 a=1+(s&1),o=s<2?1:3+(s>>1),l="a",u=Ya(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;a-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function Ya(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=kt[n||""]||kt[r||""]||kt["".concat(r,"-001")]||kt["001"];return i[0]}var fr,Za=new RegExp("^".concat(Bi.source,"*")),Ja=new RegExp("".concat(Bi.source,"*$"));function A(e,t){return{start:e,end:t}}var Ka=!!String.prototype.startsWith&&"_a".startsWith("a",1),eo=!!String.fromCodePoint,to=!!Object.fromEntries,ro=!!String.prototype.codePointAt,no=!!String.prototype.trimStart,io=!!String.prototype.trimEnd,so=!!Number.isSafeInteger,ao=so?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Nr=!0;try{var oo=Li("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nr=((fr=oo.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch{Nr=!1}var gn=Ka?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Hr=eo?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},_n=to?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},Ci=ro?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}},uo=no?function(t){return t.trimStart()}:function(t){return t.replace(Za,"")},lo=io?function(t){return t.trimEnd()}:function(t){return t.replace(Ja,"")};function Li(e,t){return new RegExp(e,t)}var Or;if(Nr){var bn=Li("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Or=function(t,r){var n;bn.lastIndex=r;var i=bn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Or=function(t,r){for(var n=[];;){var i=Ci(t,r);if(i===void 0||Ri(i)||po(i))break;n.push(i),r+=i>=65536?2:1}return Hr.apply(void 0,n)};var fo=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 a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:L.pound,location:A(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$r(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.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:L.literal,value:"<".concat(i,"/>"),location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$r(this.char()))return this.error(T.INVALID_TAG,A(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(T.UNMATCHED_CLOSING_TAG,A(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:i,children:a,location:A(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,A(o,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&co(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 a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=A(n,this.clonePosition());return{val:{type:L.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 Hr.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(),Hr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(T.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(T.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Or(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=A(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,A(a,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=lo(h.val);if(c.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var p=A(f,this.clonePosition());u={style:c,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var y=A(i,this.clonePosition());if(u&&gn(u?.style,"::",0)){var w=uo(u.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(w,u.styleLocation);return h.err?h:{val:{type:L.number,value:n,location:y,style:h.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,y);var S=w;this.locale&&(S=Qa(w,this.locale));var c={type:vt.dateTime,pattern:S,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ua(S):{}},O=o==="date"?L.date:L.time;return{val:{type:O,value:n,location:y,style:c},err:null}}}return{val:{type:o==="number"?L.number:o==="date"?L.date:L.time,value:n,location:y,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,A(P,Xt({},P)));this.bumpSpace();var q=this.parseIdentifierIfPossible(),B=0;if(o!=="select"&&q.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),q=this.parseIdentifierIfPossible(),B=h.val}var I=this.tryParsePluralOrSelectOptions(t,o,r,q);if(I.err)return I;var d=this.tryParseArgumentClose(i);if(d.err)return d;var ne=A(i,this.clonePosition());return o==="select"?{val:{type:L.select,value:n,options:_n(I.val),location:ne},err:null}:{val:{type:L.plural,value:n,options:_n(I.val),offset:B,pluralType:o==="plural"?"cardinal":"ordinal",location:ne},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,A(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,A(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(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(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=ja(t)}catch{return this.error(T.INVALID_NUMBER_SKELETON,r)}return{val:{type:vt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Xa(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],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(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=A(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var y=this.tryParseArgumentClose(p);if(y.err)return y;o.push([u,{value:d.val,location:A(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,f=s.location}return o.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(T.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var l=A(i,this.clonePosition());return s?(a*=n,ao(a)?{val:a,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=Ci(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(gn(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()&&Ri(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 $r(e){return e>=97&&e<=122||e>=65&&e<=90}function ho(e){return $r(e)||e===47}function co(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 Ri(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function po(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 Br(e){e.forEach(function(t){if(delete t.location,Ni(t)||Hi(t))for(var r in t.options)delete t.options[r].location,Br(t.options[r].value);else Si(t)&&$i(t.style)||(Ti(t)||Ai(t))&&Ar(t.style)?delete t.style.location:Oi(t)&&Br(t.children)})}function vo(e,t){t===void 0&&(t={}),t=Xt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new fo(e,t).parse();if(r.err){var n=SyntaxError(T[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Br(r.val),r.val}var mt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(mt||(mt={}));var nr=function(e){rr(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),yn=function(e){rr(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('", "'),'"'),mt.INVALID_VALUE,s)||this}return t}(nr),mo=function(e){rr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),mt.INVALID_VALUE,i)||this}return t}(nr),go=function(e){rr(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,'"'),mt.MISSING_VALUE,n)||this}return t}(nr),J;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(J||(J={}));function _o(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 bo(e){return typeof e=="function"}function Gt(e,t,r,n,i,s,a){if(e.length===1&&dn(e[0]))return[{type:J.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var f=u[l];if(dn(f)){o.push({type:J.literal,value:f.value});continue}if(Fa(f)){typeof s=="number"&&o.push({type:J.literal,value:r.getNumberFormat(t).format(s)});continue}var h=f.value;if(!(i&&h in i))throw new go(h,a);var c=i[h];if(ka(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?J.literal:J.object,value:c});continue}if(Ti(f)){var p=typeof f.style=="string"?n.date[f.style]:Ar(f.style)?f.style.parsedOptions:void 0;o.push({type:J.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ai(f)){var p=typeof f.style=="string"?n.time[f.style]:Ar(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:J.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Si(f)){var p=typeof f.style=="string"?n.number[f.style]:$i(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(c=c*(p.scale||1)),o.push({type:J.literal,value:r.getNumberFormat(t,p).format(c)});continue}if(Oi(f)){var d=f.children,y=f.value,w=i[y];if(!bo(w))throw new mo(y,"function",a);var S=Gt(d,t,r,n,i,s),O=w(S.map(function(B){return B.value}));Array.isArray(O)||(O=[O]),o.push.apply(o,O.map(function(B){return{type:typeof B=="string"?J.literal:J.object,value:B}}))}if(Ni(f)){var P=f.options[c]||f.options.other;if(!P)throw new yn(f.value,c,Object.keys(f.options),a);o.push.apply(o,Gt(P.value,t,r,n,i));continue}if(Hi(f)){var P=f.options["=".concat(c)];if(!P){if(!Intl.PluralRules)throw new nr(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,mt.MISSING_INTL_API,a);var q=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));P=f.options[q]||f.options.other}if(!P)throw new yn(f.value,c,Object.keys(f.options),a);o.push.apply(o,Gt(P.value,t,r,n,i,c-(f.offset||0)));continue}}return _o(o)}function yo(e,t){return t?_e(_e(_e({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=_e(_e({},e[n]),t[n]||{}),r},{})):e}function Eo(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=yo(e[n],t[n]),r},_e({},e)):e}function hr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function xo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,or([void 0],r,!1)))},{cache:hr(e.number),strategy:lr.variadic}),getDateTimeFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,or([void 0],r,!1)))},{cache:hr(e.dateTime),strategy:lr.variadic}),getPluralRules:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,or([void 0],r,!1)))},{cache:hr(e.pluralRules),strategy:lr.variadic})}}var wo=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 Gt(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 a=i||{};a.formatters;var o=Ba(a,["formatters"]);this.ast=e.__parse(t,_e(_e({},o),{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=Eo(e.formats,n),this.formatters=i&&i.formatters||xo(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=vo,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 So(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 Ie={},To=(e,t,r)=>r&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=r),r),Di=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const r=ir(t);for(let n=0;n<r.length;n++){const i=r[n],s=No(i,e);if(s)return To(e,t,s)}};let Qr;const yt=tr({});function Ao(e){return Qr[e]||null}function ki(e){return e in Qr}function No(e,t){if(!ki(e))return null;const r=Ao(e);return So(r,t)}function Ho(e){if(e==null)return;const t=ir(e);for(let r=0;r<t.length;r++){const n=t[r];if(ki(n))return n}}function Fi(e,...t){delete Ie[e],yt.update(r=>(r[e]=$a.all([r[e]||{},...t]),r))}bt([yt],([e])=>Object.keys(e));yt.subscribe(e=>Qr=e);const Ut={};function Oo(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Gi(e){return Ut[e]}function $o(e){return ir(e).map(t=>{const r=Gi(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Mr(e){return e==null?!1:ir(e).some(t=>{var r;return(r=Gi(t))==null?void 0:r.size})}function Bo(e,t){return Promise.all(t.map(n=>(Oo(e,n),n().then(i=>i.default||i)))).then(n=>Fi(e,...n))}const St={};function Ui(e){if(!Mr(e))return e in St?St[e]:Promise.resolve();const t=$o(e);return St[e]=Promise.all(t.map(([r,n])=>Bo(r,n))).then(()=>{if(Mr(e))return Ui(e);delete St[e]}),St[e]}const Mo={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"}}},Po={fallbackLocale:null,loadingDelay:200,formats:Mo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Io=Po;function gt(){return Io}const cr=tr(!1);var Co=Object.defineProperty,Lo=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,En=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,xn=(e,t,r)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fo=(e,t)=>{for(var r in t||(t={}))Do.call(t,r)&&xn(e,r,t[r]);if(En)for(var r of En(t))ko.call(t,r)&&xn(e,r,t[r]);return e},Go=(e,t)=>Lo(e,Ro(t));let Pr;const Qt=tr(null);function wn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ir(e,t=gt().fallbackLocale){const r=wn(e);return t?[...new Set([...r,...wn(t)])]:r}function tt(){return Pr??void 0}Qt.subscribe(e=>{Pr=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Uo=e=>{if(e&&Ho(e)&&Mr(e)){const{loadingDelay:t}=gt();let r;return typeof window<"u"&&tt()!=null&&t?r=window.setTimeout(()=>cr.set(!0),t):cr.set(!0),Ui(e).then(()=>{Qt.set(e)}).finally(()=>{clearTimeout(r),cr.set(!1)})}return Qt.set(e)},Ke=Go(Fo({},Qt),{set:Uo}),sr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var qo=Object.defineProperty,Yt=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,Sn=(e,t,r)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))qi.call(t,r)&&Sn(e,r,t[r]);if(Yt)for(var r of Yt(t))ji.call(t,r)&&Sn(e,r,t[r]);return e},Et=(e,t)=>{var r={};for(var n in e)qi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Yt)for(var n of Yt(e))t.indexOf(n)<0&&ji.call(e,n)&&(r[n]=e[n]);return r};const Pt=(e,t)=>{const{formats:r}=gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},jo=sr(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Pt("number",n)),new Intl.NumberFormat(r,i)}),Vo=sr(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Pt("date",n):Object.keys(i).length===0&&(i=Pt("date","short")),new Intl.DateTimeFormat(r,i)}),zo=sr(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Pt("time",n):Object.keys(i).length===0&&(i=Pt("time","short")),new Intl.DateTimeFormat(r,i)}),Wo=(e={})=>{var t=e,{locale:r=tt()}=t,n=Et(t,["locale"]);return jo(Yr({locale:r},n))},Xo=(e={})=>{var t=e,{locale:r=tt()}=t,n=Et(t,["locale"]);return Vo(Yr({locale:r},n))},Qo=(e={})=>{var t=e,{locale:r=tt()}=t,n=Et(t,["locale"]);return zo(Yr({locale:r},n))},Yo=sr((e,t=tt())=>new wo(e,t,gt().formats,{ignoreTag:gt().ignoreTag})),Zo=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=tt(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Di(e,l);if(!f)f=(s=(i=(n=(r=gt()).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(!o)return f;let h=f;try{h=Yo(f,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},Jo=(e,t)=>Qo(t).format(e),Ko=(e,t)=>Xo(t).format(e),eu=(e,t)=>Wo(t).format(e),tu=(e,t=tt())=>Di(e,t),ru=bt([Ke,yt],()=>Zo);bt([Ke],()=>Jo);bt([Ke],()=>Ko);bt([Ke],()=>eu);bt([Ke,yt],()=>tu);function nu({withLocale:e,translations:t}){Ke.subscribe(r=>{r==null&&(yt.set(t),Ke.set(e))})}function iu(e,t){Fi(e,t)}const su={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 au=mi('<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>'),ou=mi('<div class="faq svelte-tlosd8"><div class="faq__list svelte-tlosd8"></div></div>');const uu={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 Zr(e,t){Fr(t,!0),Ks(e,uu);const r=()=>ua(ru,"$_",n),[n,i]=la(),s=Pe(t,"apiEndpoint",7,""),a=Pe(t,"operatorName",7,""),o=Pe(t,"locale",7,"en"),l=Pe(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"}];nu({withLocale:o(),translations:{}}),Object.entries(su).forEach(([S,O])=>{iu(S,O)});let h=Ee(ot(Object.fromEntries(f.map((S,O)=>[O,u]))));const c=S=>{ce(h,{...U(h),[S]:!U(h)[S]},!0)};var p={get apiEndpoint(){return s()},set apiEndpoint(S=""){s(S),we()},get operatorName(){return a()},set operatorName(S=""){a(S),we()},get locale(){return o()},set locale(S="en"){o(S),we()},get isExpanded(){return l()},set isExpanded(S=!0){l(S),we()}},d=ou(),y=nt(d);Ys(y,21,()=>f,Xs,(S,O,P)=>{var q=au(),B=nt(q);B.__click=()=>c(P);var I=nt(B),ne=nt(I,!0);je(I);var z=rn(I,2);let W;je(B);var C=rn(B,2);let N;var Ge=nt(C),Ct=nt(Ge,!0);je(Ge),je(C),je(q),Cs((b,m)=>{na(B,"aria-expanded",!!U(h)[P]),on(ne,b),W=fn(z,1,"faq__icon svelte-tlosd8",null,W,{"faq__icon--open":U(h)[P]}),N=fn(C,1,"faq__answer-wrapper svelte-tlosd8",null,N,{open:U(h)[P]}),on(Ct,m)},[()=>r()(U(O).questionKey,{values:{operatorName:a()}}),()=>r()(U(O).answerKey,{values:{operatorName:a()}})]),Er(S,q)}),je(y),je(d),Er(e,d);var w=Gr(p);return i(),w}Us(["click"]);yi(Zr,{apiEndpoint:{},operatorName:{},locale:{},isExpanded:{}},[],[],!0);function Vi(e,t){Fr(t,!0);let r=Pe(t,"apiEndpoint",7,""),n=Pe(t,"operatorName",7,""),i=Pe(t,"locale",7,"en"),s=Pe(t,"isExpanded",7,!0);var a={get apiEndpoint(){return r()},set apiEndpoint(o=""){r(o),we()},get operatorName(){return n()},set operatorName(o=""){n(o),we()},get locale(){return i()},set locale(o="en"){i(o),we()},get isExpanded(){return s()},set isExpanded(o=!0){s(o),we()}};return Zr(e,{get apiEndpoint(){return r()},get operatorName(){return n()},get locale(){return i()},get isExpanded(){return s()}}),Gr(a)}customElements.define("loyalty-marketing-content",yi(Vi,{apiEndpoint:{},operatorName:{},locale:{},isExpanded:{}},[],[],!1));const lu=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyMarketingContent=Zr;exports.LoyaltyMarketingContent_ce=lu;
|