@sveltia/cms 0.39.4 → 0.39.5
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/README.md +3 -1
- package/dist/sveltia-cms.js +12 -12
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +12 -12
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +5 -5
package/dist/sveltia-cms.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var au=Array.isArray,gm=Array.from,eT=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,qw=Object.getOwnPropertyDescriptors,tT=Object.prototype,nT=Array.prototype,Rd=Object.getPrototypeOf;function Gu(t){return typeof t=="function"}const Je=()=>{};function rT(t){return typeof t?.then=="function"}function iT(t){return t()}function Md(t){for(var e=0;e<t.length;e++)t[e]()}function Oe(t,e,n=!1){return t===void 0?n?e():e:t}const ms=2,Hw=4,ml=8,Vw=16,Es=32,mm=64,Va=128,Fd=256,ai=512,Js=1024,Wa=2048,Ia=4096,vl=8192,sT=16384,ou=32768,aT=65536,Ww=1<<18,zo=Symbol("$state"),Gp=Symbol("");function Yw(t){return t===this.v}function Pf(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function vm(t){return!Pf(t,this.v)}function oT(t){throw new Error("effect_in_teardown")}function lT(){throw new Error("effect_in_unowned_derived")}function cT(t){throw new Error("effect_orphan")}function uT(){throw new Error("effect_update_depth_exceeded")}function dT(t){throw new Error("props_invalid_value")}function fT(){throw new Error("state_descriptors_fixed")}function hT(){throw new Error("state_prototype_fixed")}function pT(){throw new Error("state_unsafe_local_read")}function gT(){throw new Error("state_unsafe_mutation")}function Zn(t){return{f:0,v:t,reactions:null,equals:Yw,version:0}}function st(t){return Gw(Zn(t))}function Xo(t){const e=Zn(t);return e.equals=vm,Ut!==null&&Ut.l!==null&&(Ut.l.s??=[]).push(e),e}function C(t){return Gw(Xo(t))}function Gw(t){return ln!==null&&ln.f&ms&&(Ri===null?LT([t]):Ri.push(t)),t}function Xr(t,e){return x(t,ze(()=>o(t))),e}function x(t,e){return ln!==null&&jd()&&ln.f&ms&&(Ri===null||!Ri.includes(t))&&gT(),t.equals(e)||(t.v=e,t.version=fx(),Kw(t,Js),jd()&&Yt!==null&&Yt.f&ai&&!(Yt.f&Es)&&(Er!==null&&Er.includes(t)?(Kr(Yt,Js),If(Yt)):Ws===null?NT([t]):Ws.push(t))),e}function Kw(t,e){var n=t.reactions;if(n!==null)for(var r=jd(),i=n.length,s=0;s<i;s++){var a=n[s],l=a.f;l&Js||!r&&a===Yt||(Kr(a,e),l&(ai|Va)&&(l&ms?Kw(a,Wa):If(a)))}}const bm=1,_m=2,Zw=4,mT=8,vT=16,bT=1,_T=2,Jw=4,yT=8,wT=16,xT=1,kT=2,kr=Symbol(),Xw="http://www.w3.org/2000/svg";let Qw=!1;function lt(t,e=null,n){if(typeof t!="object"||t===null||zo in t)return t;const r=Rd(t);if(r!==tT&&r!==nT)return t;var i=new Map,s=au(t),a=Zn(0);s&&i.set("length",Zn(t.length));var l;return new Proxy(t,{defineProperty(c,u,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&fT();var f=i.get(u);return f===void 0?(f=Zn(d.value),i.set(u,f)):x(f,lt(d.value,l)),!0},deleteProperty(c,u){var d=i.get(u);return d===void 0?u in c&&i.set(u,Zn(kr)):(x(d,kr),i_(a)),!0},get(c,u,d){if(u===zo)return t;var f=i.get(u),h=u in c;if(f===void 0&&(!h||Hs(c,u)?.writable)&&(f=Zn(lt(h?c[u]:kr,l)),i.set(u,f)),f!==void 0){var p=o(f);return p===kr?void 0:p}return Reflect.get(c,u,d)},getOwnPropertyDescriptor(c,u){var d=Reflect.getOwnPropertyDescriptor(c,u);if(d&&"value"in d){var f=i.get(u);f&&(d.value=o(f))}else if(d===void 0){var h=i.get(u),p=h?.v;if(h!==void 0&&p!==kr)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(c,u){if(u===zo)return!0;var d=i.get(u),f=d!==void 0&&d.v!==kr||Reflect.has(c,u);if(d!==void 0||Yt!==null&&(!f||Hs(c,u)?.writable)){d===void 0&&(d=Zn(f?lt(c[u],l):kr),i.set(u,d));var h=o(d);if(h===kr)return!1}return f},set(c,u,d,f){var h=i.get(u),p=u in c;if(s&&u==="length")for(var g=d;g<h.v;g+=1){var m=i.get(g+"");m!==void 0?x(m,kr):g in c&&(m=Zn(kr),i.set(g+"",m))}h===void 0?(!p||Hs(c,u)?.writable)&&(h=Zn(void 0),x(h,lt(d,l)),i.set(u,h)):(p=h.v!==kr,x(h,lt(d,l)));var v=Reflect.getOwnPropertyDescriptor(c,u);if(v?.set&&v.set.call(f,d),!p){if(s&&typeof u=="string"){var _=i.get("length"),b=Number(u);Number.isInteger(b)&&b>=_.v&&x(_,b+1)}i_(a)}return!0},ownKeys(c){o(a);var u=Reflect.ownKeys(c).filter(h=>{var p=i.get(h);return p===void 0||p.v!==kr});for(var[d,f]of i)f.v!==kr&&!(d in c)&&u.push(d);return u},setPrototypeOf(){hT()}})}function i_(t,e=1){x(t,t.v+e)}var Qo,ym,ex,tx;function ST(){if(Qo===void 0){Qo=window,ym=document;var t=Element.prototype,e=Node.prototype;ex=Hs(e,"firstChild").get,tx=Hs(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__e=void 0,Text.prototype.__t=void 0}}function bl(t=""){return document.createTextNode(t)}function Pc(t){return ex.call(t)}function Lf(t){return tx.call(t)}function I(t){return Pc(t)}function z(t,e){{var n=Pc(t);return n instanceof Comment&&n.data===""?Lf(n):n}}function N(t,e=1,n=!1){let r=t;for(;e--;)r=Lf(r);return r}function ET(t){t.textContent=""}function nx(t){Yt===null&&ln===null&&cT(),ln!==null&&ln.f&Va&&lT(),km&&oT()}function TT(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function _l(t,e,n,r=!0){var i=(t&mm)!==0,s=Yt,a={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|Js,first:null,fn:e,last:null,next:null,parent:i?null:s,prev:null,teardown:null,transitions:null,version:0};if(n){var l=Uo;try{s_(!0),cu(a),a.f|=sT}catch(d){throw As(a),d}finally{s_(l)}}else e!==null&&If(a);var c=n&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null;if(!c&&!i&&r&&(s!==null&&TT(a,s),ln!==null&&ln.f&ms)){var u=ln;(u.children??=[]).push(a)}return a}function Nf(t){const e=_l(ml,null,!1);return Kr(e,ai),e.teardown=t,e}function Pn(t){nx();var e=Yt!==null&&(Yt.f&ml)!==0&&Ut!==null&&!Ut.m;if(e){var n=Ut;(n.e??=[]).push(t)}else{var r=lu(t);return r}}function AT(t){return nx(),ia(t)}function $T(t){const e=_l(mm,t,!0);return()=>{As(e)}}function lu(t){return _l(Hw,t,!1)}function F(t,e){var n=Ut,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=ia(()=>{t(),!r.ran&&(r.ran=!0,x(n.l.r2,!0),ze(e))})}function Ie(){var t=Ut;ia(()=>{if(o(t.l.r2)){for(var e of t.l.r1){var n=e.effect;n.f&ai&&Kr(n,Wa),yl(n)&&cu(n),e.ran=!1}t.l.r2.v=!1}})}function ia(t){return _l(ml,t,!0)}function U(t){return ia(t)}function Ts(t,e=0){return _l(ml|Vw|e,t,!0)}function Vr(t,e=!0){return _l(ml|Es,t,!0,e)}function rx(t){var e=t.teardown;if(e!==null){const n=km,r=ln;a_(!0),Ud(null);try{e.call(null)}finally{a_(n),Ud(r)}}}function As(t,e=!0){var n=!1;if((e||t.f&Ww)&&t.nodes_start!==null){for(var r=t.nodes_start,i=t.nodes_end;r!==null;){var s=r===i?null:Lf(r);r.remove(),r=s}n=!0}px(t,e&&!n),Nc(t,0),Kr(t,vl);var a=t.transitions;if(a!==null)for(const c of a)c.stop();rx(t);var l=t.parent;l!==null&&l.first!==null&&ix(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.parent=t.fn=t.nodes_start=t.nodes_end=null}function ix(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function cs(t,e){var n=[];wm(t,n,!0),sx(n,()=>{As(t),e&&e()})}function sx(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function wm(t,e,n){if(!(t.f&Ia)){if(t.f^=Ia,t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&e.push(a);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&ou)!==0||(r.f&Es)!==0;wm(r,e,s?n:!1),r=i}}}function Vs(t){ax(t,!0)}function ax(t,e){if(t.f&Ia){t.f^=Ia,yl(t)&&cu(t);for(var n=t.first;n!==null;){var r=n.next,i=(n.f&ou)!==0||(n.f&Es)!==0;ax(n,i?e:!1),n=r}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zd=!1,Kp=[];function ox(){zd=!1;const t=Kp.slice();Kp=[],Md(t)}function Ya(t){zd||(zd=!0,queueMicrotask(ox)),Kp.push(t)}function CT(){zd&&ox()}function Ve(t){let e=ms|Js;Yt===null&&(e|=Va);const n={children:null,deps:null,equals:Yw,f:e,fn:t,reactions:null,v:null,version:0};if(ln!==null&&ln.f&ms){var r=ln;(r.children??=[]).push(n)}return n}function L(t){const e=Ve(t);return e.equals=vm,e}function lx(t){var e=t.children;if(e!==null){t.children=null;for(var n=0;n<e.length;n+=1){var r=e[n];r.f&ms?OT(r):As(r)}}}function cx(t){var e;lx(t),e=hx(t);var n=(Po||t.f&Va)&&t.deps!==null?Wa:ai;Kr(t,n),t.equals(e)||(t.v=e,t.version=fx())}function OT(t){lx(t),Nc(t,0),Kr(t,vl),t.children=t.deps=t.reactions=t.fn=null}function xm(t){throw new Error("lifecycle_outside_component")}const ux=0,PT=1;let vd=ux,Lc=!1,Uo=!1,km=!1;function s_(t){Uo=t}function a_(t){km=t}let va=[],jo=0;let ln=null;function Ud(t){ln=t}let Yt=null;function o_(t){Yt=t}let Ri=null;function LT(t){Ri=t}let Er=null,zr=0,Ws=null;function NT(t){Ws=t}let dx=0,Po=!1,Ut=null;function l_(t){Ut=t}function fx(){return++dx}function jd(){return Ut!==null&&Ut.l===null}function yl(t){var e=t.f;if(e&Js)return!0;if(e&Wa){var n=t.deps,r=(e&Va)!==0;if(n!==null){var i;if(e&Fd){for(i=0;i<n.length;i++)(n[i].reactions??=[]).push(t);t.f^=Fd}for(i=0;i<n.length;i++){var s=n[i];if(yl(s)&&cx(s),r&&Yt!==null&&!Po&&!s?.reactions?.includes(t)&&(s.reactions??=[]).push(t),s.version>t.version)return!0}}r||Kr(t,ai)}return!1}function IT(t,e,n){throw t}function hx(t){var e=Er,n=zr,r=Ws,i=ln,s=Po,a=Ri;Er=null,zr=0,Ws=null,ln=t.f&(Es|mm)?null:t,Po=!Uo&&(t.f&Va)!==0,Ri=null;try{var l=(0,t.fn)(),c=t.deps;if(Er!==null){var u;if(Nc(t,zr),c!==null&&zr>0)for(c.length=zr+Er.length,u=0;u<Er.length;u++)c[zr+u]=Er[u];else t.deps=c=Er;if(!Po)for(u=zr;u<c.length;u++)(c[u].reactions??=[]).push(t)}else c!==null&&zr<c.length&&(Nc(t,zr),c.length=zr);return l}finally{Er=e,zr=n,Ws=r,ln=i,Po=s,Ri=a}}function DT(t,e){let n=e.reactions;if(n!==null){var r=n.indexOf(t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&e.f&ms&&(Kr(e,Wa),e.f&(Va|Fd)||(e.f^=Fd),Nc(e,0))}function Nc(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)DT(t,n[r])}function px(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){var r=n.next;As(n,e),n=r}}function cu(t){var e=t.f;if(!(e&vl)){Kr(t,ai);var n=t.ctx,r=Yt,i=Ut;Yt=t,Ut=n;try{e&Vw||px(t),rx(t);var s=hx(t);t.teardown=typeof s=="function"?s:null,t.version=dx}catch(a){IT(a)}finally{Yt=r,Ut=i}}}function gx(){jo>1e3&&(jo=0,uT()),jo++}function mx(t){var e=t.length;if(e!==0){gx();var n=Uo;Uo=!0;try{for(var r=0;r<e;r++){var i=t[r];if(i.first===null&&!(i.f&Es))c_([i]);else{var s=[];vx(i,s),c_(s)}}}finally{Uo=n}}}function c_(t){var e=t.length;if(e!==0)for(var n=0;n<e;n++){var r=t[n];!(r.f&(vl|Ia))&&yl(r)&&(cu(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?ix(r):r.fn=null))}}function RT(){if(Lc=!1,jo>1001)return;const t=va;va=[],mx(t),Lc||(jo=0)}function If(t){vd===ux&&(Lc||(Lc=!0,queueMicrotask(RT)));for(var e=t;e.parent!==null;){e=e.parent;var n=e.f;if(n&Es){if(!(n&ai))return;Kr(e,Wa)}}va.push(e)}function vx(t,e){var n=t.first,r=[];e:for(;n!==null;){var i=n.f,s=(i&(vl|Ia))===0,a=(i&Es)!==0,l=(i&ai)!==0,c=n.first;if(s&&(!a||!l)){if(a&&Kr(n,ai),i&ml){if(!a&&yl(n)&&cu(n),c=n.first,c!==null){n=c;continue}}else if(i&Hw)if(a||l){if(c!==null){n=c;continue}}else r.push(n)}var u=n.next;if(u===null){let h=n.parent;for(;h!==null;){if(t===h)break e;var d=h.next;if(d!==null){n=d;continue e}h=h.parent}}n=u}for(var f=0;f<r.length;f++)c=r[f],e.push(c),vx(c,e)}function Sm(t){var e=vd,n=va;try{gx();const i=[];vd=PT,va=i,Lc=!1,mx(n);var r=t?.();return CT(),(va.length>0||i.length>0)&&Sm(),jo=0,r}finally{vd=e,va=n}}async function yc(){await Promise.resolve(),Sm()}function o(t){var e=t.f;if(e&vl)return t.v;if(ln!==null){Ri!==null&&Ri.includes(t)&&pT();var n=ln.deps;Er===null&&n!==null&&n[zr]===t?zr++:Er===null?Er=[t]:Er.push(t),Ws!==null&&Yt!==null&&Yt.f&ai&&!(Yt.f&Es)&&Ws.includes(t)&&(Kr(Yt,Js),If(Yt))}if(e&ms){var r=t;yl(r)&&cx(r)}return t.v}function ze(t){const e=ln;try{return ln=null,t()}finally{ln=e}}const MT=~(Js|Wa|ai);function Kr(t,e){t.f=t.f&MT|e}function Ga(t){return _x().get(t)}function bx(t,e){return _x().set(t,e),e}function _x(t){return Ut===null&&xm(),Ut.c??=new Map(FT(Ut)||void 0)}function FT(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function u_(t,e=1){var n=+o(t);return x(t,n+e),n}function Q(t,e=!1,n){Ut={p:Ut,c:null,e:null,m:!1,s:t,x:null,l:null},e||(Ut.l={s:null,u:null,r1:[],r2:Zn(!1)})}function ee(t){const e=Ut;if(e!==null){t!==void 0&&(e.x=t);const r=e.e;if(r!==null){e.e=null;for(var n=0;n<r.length;n++)lu(r[n])}Ut=e.p,e.m=!0}return t||{}}function ce(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zo in t)Zp(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&zo in n&&Zp(n)}}}function Zp(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{Zp(t[r],e)}catch{}const n=Rd(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=qw(n);for(let i in r){const s=r[i].get;if(s)try{s.call(t)}catch{}}}}}const yx=new Set,Jp=new Set;function Bd(t,e,n,r){function i(s){if(r.capture||cc.call(e,s),!s.cancelBubble)return n.call(this,s)}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ya(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function Gl(t,e,n,r={}){var i=Bd(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function Xn(t,e,n,r,i){var s={capture:r,passive:i},a=Bd(t,e,n,s);(e===document.body||e===window||e===document)&&Nf(()=>{e.removeEventListener(t,a,s)})}function Df(t){for(var e=0;e<t.length;e++)yx.add(t[e]);for(var n of Jp)n(t)}function cc(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target,a=0,l=t.__root;if(l){var c=i.indexOf(l);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;c<=u&&(a=c)}if(s=i[a]||t.target,s!==e){eT(t,"currentTarget",{configurable:!0,get(){return s||n}});try{for(var d,f=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];if(p!==void 0&&!s.disabled)if(au(p)){var[g,...m]=p;g.apply(s,[t,...m])}else p.call(s,t)}catch(v){d?f.push(v):d=v}if(t.cancelBubble||h===e||h===null)break;s=h}if(d){for(let v of f)queueMicrotask(()=>{throw v});throw d}}finally{t.__root=e,delete t.currentTarget}}}function wx(t){var e;e=document.head.appendChild(bl());try{Ts(()=>t(e),Ww)}finally{}}function xx(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function el(t,e){var n=Yt;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function M(t,e){var n=(e&xT)!==0,r=(e&kT)!==0,i,s=!t.startsWith("<!>");return()=>{i===void 0&&(i=xx(s?t:"<!>"+t),n||(i=Pc(i)));var a=r?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Pc(a),c=a.lastChild;el(l,c)}else el(a,a);return a}}function Ge(t=""){{var e=bl(t+"");return el(e,e),e}}function Y(){var t=document.createDocumentFragment(),e=document.createComment(""),n=bl();return t.append(e,n),el(e,n),t}function T(t,e){t!==null&&t.before(e)}function zT(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const UT=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function jT(t){return UT.includes(t)}const BT={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"};function qT(t){return t=t.toLowerCase(),BT[t]??t}const HT=["wheel","mousewheel","touchstart","touchmove"];function VT(t){return HT.includes(t)}function K(t,e){e!==(t.__t??=t.nodeValue)&&(t.__t=e,t.nodeValue=e==null?"":e+"")}function kx(t,e){const n=e.anchor??e.target.appendChild(bl());return WT(t,{...e,anchor:n})}const po=new Map;function WT(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ST();var l=new Set,c=f=>{for(var h=0;h<f.length;h++){var p=f[h];if(!l.has(p)){l.add(p);var g=VT(p);e.addEventListener(p,cc,{passive:g});var m=po.get(p);m===void 0?(document.addEventListener(p,cc,{passive:g}),po.set(p,1)):po.set(p,m+1)}}};c(gm(yx)),Jp.add(c);var u=void 0,d=$T(()=>(Vr(()=>{if(s){Q({});var f=Ut;f.c=s}i&&(r.$$events=i),u=t(n,r)||{},s&&ee()}),()=>{for(var f of l){e.removeEventListener(f,cc);var h=po.get(f);--h===0?(document.removeEventListener(f,cc),po.delete(f)):po.set(f,h)}Jp.delete(c),Xp.delete(u)}));return Xp.set(u,d),u}let Xp=new WeakMap;function YT(t){const e=Xp.get(t);e&&e()}const ip=0,Ku=1,sp=2;function wl(t,e,n,r,i){var s=t,a=jd(),l=Ut,c,u,d,f,h=(a?Zn:Xo)(void 0),p=(a?Zn:Xo)(void 0),g=!1;function m(_,b){g=!0,b&&(o_(v),Ud(v),l_(l)),_===ip&&n&&(u?Vs(u):u=Vr(()=>n(s))),_===Ku&&r&&(d?Vs(d):d=Vr(()=>r(s,h))),_===sp&&i&&(f?Vs(f):f=Vr(()=>i(s,p))),_!==ip&&u&&cs(u,()=>u=null),_!==Ku&&d&&cs(d,()=>d=null),_!==sp&&f&&cs(f,()=>f=null),b&&(l_(null),Ud(null),o_(null),Sm())}var v=Ts(()=>{if(c!==(c=e())){if(rT(c)){var _=c;g=!1,_.then(b=>{_===c&&(x(h,b),m(Ku,!0))},b=>{_===c&&(x(p,b),m(sp,!0))}),Ya(()=>{g||m(ip,!0)})}else x(h,c),m(Ku,!1);return Je}})}function B(t,e,n,r=null,i=!1){var s=t,a=null,l=null,c=null,u=i?ou:0;Ts(()=>{c!==(c=!!e())&&(c?(a?Vs(a):a=Vr(()=>n(s)),l&&cs(l,()=>{l=null})):(l?Vs(l):r&&(l=Vr(()=>r(s))),a&&cs(a,()=>{a=null})))},u)}function xl(t,e,n){var r=t,i=kr,s;Ts(()=>{Pf(i,i=e())&&(s&&cs(s),s=Vr(()=>n(r)))})}function GT(t,e){ia(()=>{var n=e();for(var r in n){var i=n[r];i?t.style.setProperty(r,i):t.style.removeProperty(r)}}),Nf(()=>{t.remove()})}let Bo=null;function d_(t){Bo=t}function Nr(t,e){return e}function KT(t,e,n,r){for(var i=[],s=e.length,a=0;a<s;a++)wm(e[a].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var c=n.parentNode;ET(c),c.append(n),r.clear(),Ds(t,e[0].prev,e[s-1].next)}sx(i,()=>{for(var u=0;u<s;u++){var d=e[u];l||(r.delete(d.k),Ds(t,d.prev,d.next)),As(d.e,!l)}})}function ct(t,e,n,r,i,s=null){var a=t,l={flags:e,items:new Map,first:null},c=(e&Zw)!==0;if(c){var u=t;a=u.appendChild(bl())}var d=null;Ts(()=>{var f=n(),h=au(f)?f:f==null?[]:gm(f),p=h.length;ZT(h,l,a,i,e,r),s!==null&&(p===0?d?Vs(d):d=Vr(()=>s(a)):d!==null&&cs(d,()=>{d=null}))})}function ZT(t,e,n,r,i,s){var a=(i&mT)!==0,l=(i&(bm|_m))!==0,c=t.length,u=e.items,d=e.first,f=d,h,p=null,g,m=[],v=[],_,b,y,w;if(a)for(w=0;w<c;w+=1)_=t[w],b=s(_,w),y=u.get(b),y!==void 0&&(y.a?.measure(),(g??=new Set).add(y));for(w=0;w<c;w+=1){if(_=t[w],b=s(_,w),y=u.get(b),y===void 0){var k=f?f.e.nodes_start:n;p=XT(k,e,p,p===null?e.first:p.next,_,b,w,r,i),u.set(b,p),m=[],v=[],f=p.next;continue}if(l&&JT(y,_,w,i),y.e.f&Ia&&(Vs(y.e),a&&(y.a?.unfix(),(g??=new Set).delete(y))),y!==f){if(h!==void 0&&h.has(y)){if(m.length<v.length){var S=v[0],A;p=S.prev;var $=m[0],O=m[m.length-1];for(A=0;A<m.length;A+=1)f_(m[A],S,n);for(A=0;A<v.length;A+=1)h.delete(v[A]);Ds(e,$.prev,O.next),Ds(e,p,$),Ds(e,O,S),f=S,p=O,w-=1,m=[],v=[]}else h.delete(y),f_(y,f,n),Ds(e,y.prev,y.next),Ds(e,y,p===null?e.first:p.next),Ds(e,p,y),p=y;continue}for(m=[],v=[];f!==null&&f.k!==b;)(h??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue;y=f}m.push(y),p=y,f=y.next}if(f!==null||h!==void 0){for(var P=h===void 0?[]:gm(h);f!==null;)P.push(f),f=f.next;var D=P.length;if(D>0){var j=i&Zw&&c===0?n:null;if(a){for(w=0;w<D;w+=1)P[w].a?.measure();for(w=0;w<D;w+=1)P[w].a?.fix()}KT(e,P,j,u)}}a&&Ya(()=>{if(g!==void 0)for(y of g)y.a?.apply()}),Yt.first=e.first&&e.first.e,Yt.last=p&&p.e}function JT(t,e,n,r){r&bm&&x(t.v,e),r&_m?x(t.i,n):t.i=n}function XT(t,e,n,r,i,s,a,l,c){var u=Bo;try{var d=(c&bm)!==0,f=(c&vT)===0,h=d?f?Xo(i):Zn(i):i,p=c&_m?Zn(a):a,g={i:p,v:h,k:s,a:null,e:null,prev:n,next:r};return Bo=g,g.e=Vr(()=>l(t,h,p),Qw),g.e.prev=n&&n.e,g.e.next=r&&r.e,n===null?e.first=g:(n.next=g,n.e.next=g.e),r!==null&&(r.prev=g,r.e.prev=g.e),g}finally{Bo=u}}function f_(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,s=t.e.nodes_start;s!==r;){var a=Lf(s);i.before(s),s=a}}function Ds(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function Or(t,e,n,r,i){var s=t,a="",l;Ts(()=>{a!==(a=e()??"")&&(l!==void 0&&(As(l),l=void 0),a!==""&&(l=Vr(()=>{var c=a+"",u=xx(c);el(Pc(u),u.lastChild),s.before(u)})))})}function ei(t,e,n,r){e===void 0||e(t,n)}function je(t,e,...n){var r=t,i=Je,s;Ts(()=>{i!==(i=e())&&(s&&(As(s),s=null),s=Vr(()=>i(r,...n)))},ou)}function uu(t,e,n){var r=t,i,s;Ts(()=>{i!==(i=e())&&(s&&(cs(s),s=null),i&&(s=Vr(()=>n(r,i))))})}function QT(t,e,n,r,i,s){var a,l,c=null,u=t,d,f=Bo;Ts(()=>{const h=e()||null;var p=h==="svg"?Xw:null;if(h!==a){var g=Bo;d_(f),d&&(h===null?cs(d,()=>{d=null,l=null}):h===l?Vs(d):As(d)),h&&h!==l&&(d=Vr(()=>{if(c=p?document.createElementNS(p,h):document.createElement(h),el(c,c),r){var m=c.appendChild(bl());r(c,m)}Yt.nodes_end=c,u.before(c)})),a=h,a&&(l=a),d_(g)}},ou)}var h_=new Set;function Te(t,e,n=!1){if(!n){if(h_.has(e))return;h_.add(e)}Ya(()=>{var r=t.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,i.appendChild(s)}})}function sa(t,e,n){lu(()=>{var r=ze(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,s={};ia(()=>{var a=n();ce(a),i&&Pf(s,a)&&(s=a,r.update(a))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function eA(t,e){if(e){const n=document.body;t.autofocus=!0,Ya(()=>{document.activeElement===n&&t.focus()})}}let p_=!1;function tA(){p_||(p_=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Ce(t,e,n,r){n=n==null?null:n+"";var i=t.__attributes??={};i[e]!==(i[e]=n)&&(e==="loading"&&(t[Gp]=n),n===null?t.removeAttribute(e):t.setAttribute(e,n))}function nA(t,e,n){if(e in t){try{var r=t[e]}catch{Ce(t,e,n);return}var i=typeof r=="boolean"&&n===""?!0:n;(typeof r!="object"||r!==i)&&(t[e]=i)}else Ce(t,e,n)}function bt(t,e,n,r,i=!1,s){var a=e||{},l=t.tagName==="OPTION";for(var c in e)c in n||(n[c]=null);r!==void 0&&(n.class=n.class?n.class+" "+r:r);var u=g_.get(t.nodeName);u||g_.set(t.nodeName,u=sA(t));var d=t.__attributes??={},f=[];for(const v in n){let _=n[v];if(l&&v==="value"&&_==null){t.value=t.__value="",a[v]=_;continue}var h=a[v];if(_!==h){a[v]=_;var p=v[0]+v[1];if(p!=="$$")if(p==="on"){const b={},y="$$"+v;let w=v.slice(2);var g=jT(w);if(zT(w)&&(w=w.slice(0,-7),b.capture=!0),!g&&h){if(_!=null)continue;t.removeEventListener(w,a[y],b),a[y]=null}if(_!=null)if(g)t[`__${w}`]=_,Df([w]);else{let k=function(S){a[v].call(this,S)};e?a[y]=Bd(w,t,k,b):f.push([v,_,()=>a[y]=Bd(w,t,k,b)])}}else if(_==null)d[v]=null,t.removeAttribute(v);else if(v==="style")t.style.cssText=_+"";else if(v==="autofocus")eA(t,!!_);else if(v==="__value"||v==="value")t.value=t[v]=t.__value=_;else{var m=v;i||(m=qT(m)),u.includes(m)?t[m]=_:typeof _!="function"&&Ce(t,m,_)}}}return e||Ya(()=>{if(t.isConnected)for(const[v,_,b]of f)a[v]===_&&b()}),a}function rA(t,e,n,r){if(t.tagName.includes("-")){for(var i in e)i in n||(n[i]=null);n.class=n.class?n.class+" "+r:r;for(i in n)nA(t,i,n[i]);return n}return bt(t,e,n,r,t.namespaceURI!==Xw)}var iA=["width","height","draggable"],g_=new Map;function sA(t){for(var e=[],n,r=Rd(t);r.constructor.name!=="Element";){n=qw(r);for(var i in n)n[i].set&&!iA.includes(i)&&e.push(i);r=Rd(r)}return e}function Ic(t){if(t.loading==="lazy"){var e=t.src;t[Gp]=null,t.loading="eager",t.removeAttribute("src"),requestAnimationFrame(()=>{t[Gp]!=="eager"&&(t.loading="lazy"),t.src=e})}}function Dr(t,e){var n=t.__className,r=aA(e);(n!==r||Qw)&&(e==null?t.removeAttribute("class"):t.className=r,t.__className=r)}function aA(t){return t??""}function ut(t,e,n){if(n){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function Ar(t,e,n,r,i){var s=t.__attributes??={},a=t.style,l="style-"+e;s[l]===n&&!i||(s[l]=n,n==null?a.removeProperty(e):a.setProperty(e,n,""))}function oA(t,e,n,r=n){t.addEventListener(e,n);const i=t.__on_r;i?t.__on_r=()=>{i(),r()}:t.__on_r=r,tA()}function Rf(t,e,n){oA(t,"input",()=>{n(m_(t)?v_(t.value):t.value)}),ia(()=>{var r=e();m_(t)&&r===v_(t.value)||t.type==="date"&&!r&&!t.value||(t.value=r??"")})}function m_(t){var e=t.type;return e==="number"||e==="range"}function v_(t){return t===""?null:+t}function Dc(t,e,n){var r=Hs(t,e);r&&r.set&&(t[e]=n,Nf(()=>{t[e]=null}))}function b_(t,e){return t===e||t?.[zo]===e}function Ot(t={},e,n,r){return lu(()=>{var i,s;return ia(()=>{i=s,s=r?.()||[],ze(()=>{t!==n(...s)&&(e(t,...s),i&&b_(n(...i),t)&&e(null,...i))})}),()=>{Ya(()=>{s&&b_(n(...s),t)&&e(null,...s)})}}),t}function lA(t){return function(...e){var n=e[0];return n.stopPropagation(),t.apply(this,e)}}function Zu(t){return function(...e){var n=e[0];return n.preventDefault(),t.apply(this,e)}}function ge(){const t=Ut,e=t.l.u;e&&(e.b.length&&AT(()=>{__(t),Md(e.b)}),Pn(()=>{const n=ze(()=>e.m.map(iT));return()=>{for(const r of n)typeof r=="function"&&r()}}),e.a.length&&Pn(()=>{__(t),Md(e.a)}))}function __(t){if(t.l.s)for(const e of t.l.s)o(e);ce(t.s)}function cA(t,e){var n=t.$$events?.[e.type],r=au(n)?n.slice():n==null?[]:[n];for(var i of r)i.call(this,e)}function du(t){var e=t.$$slots?.default;return e===!0?t.children:e}const uA={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ot(t,e,n){return new Proxy({props:t,exclude:e},uA)}const dA={get(t,e){if(!t.exclude.includes(e))return o(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,n){return e in t.special||(t.special[e]=E({get[e](){return t.props[e]}},e,Jw)),t.special[e](n),u_(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),u_(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Un(t,e){return new Proxy({props:t,exclude:e,special:{},version:Zn(0)},dA)}const fA={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Gu(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Gu(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const i=Hs(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){for(let n of t.props)if(Gu(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props){Gu(n)&&(n=n());for(const r in n)e.includes(r)||e.push(r)}return e}};function Gt(...t){return new Proxy({props:t},fA)}function E(t,e,n,r){var i=(n&bT)!==0,s=(n&_T)!==0,a=(n&yT)!==0,l=(n&wT)!==0,c=t[e],u=Hs(t,e)?.set,d=r,f=!0,h=!1,p=()=>(h=!0,f&&(f=!1,l?d=ze(r):d=r),d);c===void 0&&r!==void 0&&(u&&s&&dT(),c=p(),u&&u(c));var g;if(s)g=()=>{var w=t[e];return w===void 0?p():(f=!0,h=!1,w)};else{var m=(i?Ve:L)(()=>t[e]);m.f|=aT,g=()=>{var w=o(m);return w!==void 0&&(d=void 0),w===void 0?d:w}}if(!(n&Jw))return g;if(u){var v=t.$$legacy;return function(w,k){return arguments.length>0?((!s||!k||v)&&u(k?g():w),w):g()}}var _=!1,b=Xo(c),y=Ve(()=>{var w=g(),k=o(b);return _?(_=!1,k):b.v=w});return i||(y.equals=vm),function(w,k){var S=o(y);if(arguments.length>0){const A=k?o(y):s&&a?lt(w):w;return y.equals(A)||(_=!0,x(b,A),h&&d!==void 0&&(d=A),o(y)),w}return S}}function Em(t,e,n){if(t==null)return e(void 0),n&&n(void 0),Je;const r=t.subscribe(e,n);return r.unsubscribe?()=>r.unsubscribe():r}function R(t,e,n){const r=n[e]??={store:null,source:Xo(void 0),unsubscribe:Je};if(r.store!==t)if(r.unsubscribe(),r.store=t??null,t==null)r.source.v=void 0,r.unsubscribe=Je;else{var i=!0;r.unsubscribe=Em(t,s=>{i?r.source.v=s:x(r.source,s)}),i=!1}return o(r.source)}function We(t,e){return t.set(e),e}function me(){const t={};return Nf(()=>{for(var e in t)t[e].unsubscribe()}),t}function Ct(t,e,n){return t.set(n),e}function Vt(t){Ut===null&&xm(),Ut.l!==null?pA(Ut).m.push(t):Pn(()=>{const e=ze(t);if(typeof e=="function")return e})}function hA(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function ui(){const t=Ut;return t===null&&xm(),(e,n,r)=>{const i=t.s.$$events?.[e];if(i){const s=au(i)?i.slice():[i],a=hA(e,n,r);for(const l of s)l.call(t.x,a);return!a.defaultPrevented}return!0}}function pA(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}const gA="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(gA);const mA={ok:"OK",cancel:"Cancel",close:"Close",clear:"Clear",insert:"Insert",update:"Update",remove:"Remove",collapse:"Collapse",expand:"Expand",calendar:{year:"Year",previous_decade:"Previous Decade",next_decade:"Next Decade",month:"Month",previous_month:"Previous Month",next_month:"Next Month",today:"Today"},split_button:{x_options:"{name} Options",more_options:"More Options"},combobox:{select_an_option:"Select an option…",filter_options:"Filter Options",no_matching_options:"No matching options found"},number_input:{decrease:"Decrease",increase:"Increase"},password_input:{show_password:"Show Password",hide_password:"Hide Password"},text_editor:{text_editor:"Text Editor",text_style_options:"Text Style Options",show_text_style_options:"Show Text Style Options",paragraph:"Paragraph",heading_1:"Heading 1",heading_2:"Heading 2",heading_3:"Heading 3",heading_4:"Heading 4",heading_5:"Heading 5",heading_6:"Heading 6",bulleted_list:"Bulleted List",numbered_list:"Numbered List",blockquote:"Block Quote",bold:"Bold",italic:"Italic",code:"Code",link:"Link",insert_link:"Insert Link",update_link:"Update Link",text:"Text",url:"URL",edit_in_markdown:"Edit in Markdown",converter_error:"There was an error while enabling rich text mode. Please use the plain text editor instead."}},vA=Object.freeze(Object.defineProperty({__proto__:null,strings:mA},Symbol.toStringTag,{value:"Module"})),bA={ok:"OK",cancel:"キャンセル",close:"閉じる",clear:"クリア",insert:"挿入",update:"更新",remove:"削除",collapse:"折り畳む",expand:"広げる",calendar:{year:"年",previous_decade:"前の 10 年",next_decade:"次の 10 年",month:"月",previous_month:"前月",next_month:"翌月",today:"今日"},split_button:{x_options:"{name} オプション",more_options:"その他のオプション"},combobox:{select_an_option:"オプションを選択…",filter_options:"オプションを絞り込み",no_matching_options:"一致するオプションは見つかりませんでした"},number_input:{decrease:"減らす",increase:"増やす"},password_input:{show_password:"パスワードを表示",hide_password:"パスワードを隠す"},text_editor:{text_editor:"テキストエディター",text_style_options:"テキストスタイルオプション",show_text_style_options:"テキストスタイルオプションを表示",paragraph:"段落",heading_1:"見出し 1",heading_2:"見出し 2",heading_3:"見出し 3",heading_4:"見出し 4",heading_5:"見出し 5",heading_6:"見出し 6",bulleted_list:"番号なしリスト",numbered_list:"番号付きリスト",blockquote:"ブロック引用",bold:"太字",italic:"斜体",code:"コード",link:"リンク",insert_link:"リンクを挿入",update_link:"リンクを更新",text:"テキスト",url:"URL",edit_in_markdown:"マークダウンで編集",converter_error:"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。"}},_A=Object.freeze(Object.defineProperty({__proto__:null,strings:bA},Symbol.toStringTag,{value:"Module"})),go=[];function yA(t,e){return{subscribe:Ke(t,e).subscribe}}function Ke(t,e=Je){let n=null;const r=new Set;function i(l){if(Pf(t,l)&&(t=l,n)){const c=!go.length;for(const u of r)u[1](),go.push(u,t);if(c){for(let u=0;u<go.length;u+=2)go[u][0](go[u+1]);go.length=0}}}function s(l){i(l(t))}function a(l,c=Je){const u=[l,c];return r.add(u),r.size===1&&(n=e(i,s)||Je),l(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:a}}function Vn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return yA(n,(a,l)=>{let c=!1;const u=[];let d=0,f=Je;const h=()=>{if(d)return;f();const g=e(r?u[0]:u,a,l);s?a(g):f=typeof g=="function"?g:Je},p=i.map((g,m)=>Em(g,v=>{u[m]=v,d&=~(1<<m),c&&h()},()=>{d|=1<<m}));return c=!0,h(),function(){Md(p),f(),c=!1}})}function re(t){let e;return Em(t,n=>e=n)(),e}var Qp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wA=function(e){return xA(e)&&!kA(e)};function xA(t){return!!t&&typeof t=="object"}function kA(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||TA(t)}var SA=typeof Symbol=="function"&&Symbol.for,EA=SA?Symbol.for("react.element"):60103;function TA(t){return t.$$typeof===EA}function AA(t){return Array.isArray(t)?[]:{}}function Rc(t,e){return e.clone!==!1&&e.isMergeableObject(t)?tl(AA(t),t,e):t}function $A(t,e,n){return t.concat(e).map(function(r){return Rc(r,n)})}function CA(t,e){if(!e.customMerge)return tl;var n=e.customMerge(t);return typeof n=="function"?n:tl}function OA(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function y_(t){return Object.keys(t).concat(OA(t))}function Sx(t,e){try{return e in t}catch{return!1}}function PA(t,e){return Sx(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function LA(t,e,n){var r={};return n.isMergeableObject(t)&&y_(t).forEach(function(i){r[i]=Rc(t[i],n)}),y_(e).forEach(function(i){PA(t,i)||(Sx(t,i)&&n.isMergeableObject(e[i])?r[i]=CA(i,n)(t[i],e[i],n):r[i]=Rc(e[i],n))}),r}function tl(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||$A,n.isMergeableObject=n.isMergeableObject||wA,n.cloneUnlessOtherwiseSpecified=Rc;var r=Array.isArray(e),i=Array.isArray(t),s=r===i;return s?r?n.arrayMerge(t,e,n):LA(t,e,n):Rc(e,n)}tl.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return tl(r,i,n)},{})};var NA=tl,IA=NA;const Ex=Tm(IA);var eg=function(t,e){return eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},eg(t,e)};function Mf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");eg(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Nt=function(){return Nt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Nt.apply(this,arguments)};function DA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function ap(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var Et;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Et||(Et={}));var tn;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(tn||(tn={}));var nl;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(nl||(nl={}));function w_(t){return t.type===tn.literal}function RA(t){return t.type===tn.argument}function Tx(t){return t.type===tn.number}function Ax(t){return t.type===tn.date}function $x(t){return t.type===tn.time}function Cx(t){return t.type===tn.select}function Ox(t){return t.type===tn.plural}function MA(t){return t.type===tn.pound}function Px(t){return t.type===tn.tag}function Lx(t){return!!(t&&typeof t=="object"&&t.type===nl.number)}function tg(t){return!!(t&&typeof t=="object"&&t.type===nl.dateTime)}var Nx=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FA=/(?:[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 zA(t){var e={};return t.replace(FA,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var UA=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jA(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(UA).filter(function(h){return h.length>0}),n=[],r=0,i=e;r<i.length;r++){var s=i[r],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],c=a.slice(1),u=0,d=c;u<d.length;u++){var f=d[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:c})}return n}function BA(t){return t.replace(/^(.*?)-/,"")}var x_=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ix=/^(@+)?(\+|#+)?[rs]?$/g,qA=/(\*)(0+)|(#+)(0+)|(0+)/g,Dx=/^(0+)$/;function k_(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Ix,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Rx(t){switch(t){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 HA(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Dx.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function S_(t){var e={},n=Rx(t);return n||e}function VA(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=BA(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Nt(Nt(Nt({},e),{notation:"scientific"}),i.options.reduce(function(c,u){return Nt(Nt({},c),S_(u))},{}));continue;case"engineering":e=Nt(Nt(Nt({},e),{notation:"engineering"}),i.options.reduce(function(c,u){return Nt(Nt({},c),S_(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.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(qA,function(c,u,d,f,h,p){if(u)e.minimumIntegerDigits=d.length;else{if(f&&h)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(Dx.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(x_.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(x_,function(c,u,d,f,h,p){return d==="*"?e.minimumFractionDigits=u.length:f&&f[0]==="#"?e.maximumFractionDigits=f.length:h&&p?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+p.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?e=Nt(Nt({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=Nt(Nt({},e),k_(s)));continue}if(Ix.test(i.stem)){e=Nt(Nt({},e),k_(i.stem));continue}var a=Rx(i.stem);a&&(e=Nt(Nt({},e),a));var l=HA(i.stem);l&&(e=Nt(Nt({},e),l))}return e}var Ju={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 WA(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var s=0;r+1<t.length&&t.charAt(r+1)===i;)s++,r++;var a=1+(s&1),l=s<2?1:3+(s>>1),c="a",u=YA(e);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=c;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function YA(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=Ju[r||""]||Ju[n||""]||Ju["".concat(n,"-001")]||Ju["001"];return i[0]}var op,GA=new RegExp("^".concat(Nx.source,"*")),KA=new RegExp("".concat(Nx.source,"*$"));function At(t,e){return{start:t,end:e}}var ZA=!!String.prototype.startsWith&&"_a".startsWith("a",1),JA=!!String.fromCodePoint,XA=!!Object.fromEntries,QA=!!String.prototype.codePointAt,e2=!!String.prototype.trimStart,t2=!!String.prototype.trimEnd,n2=!!Number.isSafeInteger,r2=n2?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ng=!0;try{var i2=Fx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ng=((op=i2.exec("a"))===null||op===void 0?void 0:op[0])==="a"}catch{ng=!1}var E_=ZA?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},rg=JA?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,s=0,a;i>s;){if(a=e[s++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},T_=XA?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var s=i[r],a=s[0],l=s[1];n[a]=l}return n},Mx=QA?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=e.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},s2=e2?function(e){return e.trimStart()}:function(e){return e.replace(GA,"")},a2=t2?function(e){return e.trimEnd()}:function(e){return e.replace(KA,"")};function Fx(t,e){return new RegExp(t,e)}var ig;if(ng){var A_=Fx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ig=function(e,n){var r;A_.lastIndex=n;var i=A_.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else ig=function(e,n){for(var r=[];;){var i=Mx(e,n);if(i===void 0||zx(i)||u2(i))break;r.push(i),n+=i>=65536?2:1}return rg.apply(void 0,r)};var o2=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(e,r);if(a.err)return a;i.push(a.val)}else{if(s===125&&e>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:tn.pound,location:At(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Et.UNMATCHED_CLOSING_TAG,At(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&sg(this.peek()||0)){var a=this.parseTag(e,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(e,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:tn.literal,value:"<".concat(i,"/>"),location:At(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,n,!0);if(s.err)return s;var a=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sg(this.char()))return this.error(Et.INVALID_TAG,At(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(Et.UNMATCHED_CLOSING_TAG,At(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:tn.tag,value:i,children:a,location:At(r,this.clonePosition())},err:null}:this.error(Et.INVALID_TAG,At(l,this.clonePosition())))}else return this.error(Et.UNCLOSED_TAG,At(r,this.clonePosition()))}else return this.error(Et.INVALID_TAG,At(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&c2(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var a=this.tryParseUnquoted(e,n);if(a){i+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=At(r,this.clonePosition());return{val:{type:tn.literal,value:i,location:c},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!l2(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return rg.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),rg(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Et.EMPTY_ARGUMENT,At(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Et.MALFORMED_ARGUMENT,At(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:tn.argument,value:i,location:At(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(Et.MALFORMED_ARGUMENT,At(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=ig(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),a=At(e,s);return{value:r,location:a}},t.prototype.parseArgumentOptions=function(e,n,r,i){var s,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(Et.EXPECT_ARGUMENT_TYPE,At(a,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=a2(f.val);if(h.length===0)return this.error(Et.EXPECT_ARGUMENT_STYLE,At(this.clonePosition(),this.clonePosition()));var p=At(d,this.clonePosition());u={style:h,styleLocation:p}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var m=At(i,this.clonePosition());if(u&&E_(u?.style,"::",0)){var v=s2(u.style.slice(2));if(l==="number"){var f=this.parseNumberSkeletonFromString(v,u.styleLocation);return f.err?f:{val:{type:tn.number,value:r,location:m,style:f.val},err:null}}else{if(v.length===0)return this.error(Et.EXPECT_DATE_TIME_SKELETON,m);var _=v;this.locale&&(_=WA(v,this.locale));var h={type:nl.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?zA(_):{}},b=l==="date"?tn.date:tn.time;return{val:{type:b,value:r,location:m,style:h},err:null}}}return{val:{type:l==="number"?tn.number:l==="date"?tn.date:tn.time,value:r,location:m,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Et.EXPECT_SELECT_ARGUMENT_OPTIONS,At(y,Nt({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),k=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,At(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Et.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(e,l,n,w);if(S.err)return S;var g=this.tryParseArgumentClose(i);if(g.err)return g;var A=At(i,this.clonePosition());return l==="select"?{val:{type:tn.select,value:r,options:T_(S.val),location:A},err:null}:{val:{type:tn.plural,value:r,options:T_(S.val),offset:k,pluralType:l==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(Et.INVALID_ARGUMENT_TYPE,At(a,c))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Et.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,At(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=jA(e)}catch{return this.error(Et.INVALID_NUMBER_SKELETON,n)}return{val:{type:nl.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?VA(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var s,a=!1,l=[],c=new Set,u=i.value,d=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Et.EXPECT_PLURAL_ARGUMENT_SELECTOR,Et.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=At(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?Et.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Et.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Et.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Et.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,At(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,n,r);if(g.err)return g;var m=this.tryParseArgumentClose(p);if(m.err)return m;l.push([u,{value:g.val,location:At(p,this.clonePosition())}]),c.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return l.length===0?this.error(n==="select"?Et.EXPECT_SELECT_ARGUMENT_SELECTOR:Et.EXPECT_PLURAL_ARGUMENT_SELECTOR,At(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Et.MISSING_OTHER_CLAUSE,At(this.clonePosition(),this.clonePosition())):{val:l,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,a=a*10+(l-48),this.bump();else break}var c=At(i,this.clonePosition());return s?(a*=r,r2(a)?{val:a,err:null}:this.error(n,c)):this.error(e,c)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Mx(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(E_(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&zx(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r??null},t}();function sg(t){return t>=97&&t<=122||t>=65&&t<=90}function l2(t){return sg(t)||t===47}function c2(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function zx(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function u2(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function ag(t){t.forEach(function(e){if(delete e.location,Cx(e)||Ox(e))for(var n in e.options)delete e.options[n].location,ag(e.options[n].value);else Tx(e)&&Lx(e.style)||(Ax(e)||$x(e))&&tg(e.style)?delete e.style.location:Px(e)&&ag(e.children)})}function d2(t,e){e===void 0&&(e={}),e=Nt({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new o2(t,e).parse();if(n.err){var r=SyntaxError(Et[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e?.captureLocation||ag(n.val),n.val}function lp(t,e){var n=e&&e.cache?e.cache:v2,r=e&&e.serializer?e.serializer:m2,i=e&&e.strategy?e.strategy:h2;return i(t,{cache:n,serializer:r})}function f2(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ux(t,e,n,r){var i=f2(r)?r:n(r),s=e.get(i);return typeof s>"u"&&(s=t.call(this,r),e.set(i,s)),s}function jx(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=e.get(i);return typeof s>"u"&&(s=t.apply(this,r),e.set(i,s)),s}function Am(t,e,n,r,i){return n.bind(e,t,r,i)}function h2(t,e){var n=t.length===1?Ux:jx;return Am(t,this,n,e.cache.create(),e.serializer)}function p2(t,e){return Am(t,this,jx,e.cache.create(),e.serializer)}function g2(t,e){return Am(t,this,Ux,e.cache.create(),e.serializer)}var m2=function(){return JSON.stringify(arguments)};function $m(){this.cache=Object.create(null)}$m.prototype.get=function(t){return this.cache[t]};$m.prototype.set=function(t,e){this.cache[t]=e};var v2={create:function(){return new $m}},cp={variadic:p2,monadic:g2},rl;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(rl||(rl={}));var Ff=function(t){Mf(e,t);function e(n,r,i){var s=t.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),$_=function(t){Mf(e,t);function e(n,r,i,s){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),rl.INVALID_VALUE,s)||this}return e}(Ff),b2=function(t){Mf(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),rl.INVALID_VALUE,i)||this}return e}(Ff),_2=function(t){Mf(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),rl.MISSING_VALUE,r)||this}return e}(Ff),or;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(or||(or={}));function y2(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==or.literal||n.type!==or.literal?e.push(n):r.value+=n.value,e},[])}function w2(t){return typeof t=="function"}function bd(t,e,n,r,i,s,a){if(t.length===1&&w_(t[0]))return[{type:or.literal,value:t[0].value}];for(var l=[],c=0,u=t;c<u.length;c++){var d=u[c];if(w_(d)){l.push({type:or.literal,value:d.value});continue}if(MA(d)){typeof s=="number"&&l.push({type:or.literal,value:n.getNumberFormat(e).format(s)});continue}var f=d.value;if(!(i&&f in i))throw new _2(f,a);var h=i[f];if(RA(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?or.literal:or.object,value:h});continue}if(Ax(d)){var p=typeof d.style=="string"?r.date[d.style]:tg(d.style)?d.style.parsedOptions:void 0;l.push({type:or.literal,value:n.getDateTimeFormat(e,p).format(h)});continue}if($x(d)){var p=typeof d.style=="string"?r.time[d.style]:tg(d.style)?d.style.parsedOptions:r.time.medium;l.push({type:or.literal,value:n.getDateTimeFormat(e,p).format(h)});continue}if(Tx(d)){var p=typeof d.style=="string"?r.number[d.style]:Lx(d.style)?d.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),l.push({type:or.literal,value:n.getNumberFormat(e,p).format(h)});continue}if(Px(d)){var g=d.children,m=d.value,v=i[m];if(!w2(v))throw new b2(m,"function",a);var _=bd(g,e,n,r,i,s),b=v(_.map(function(k){return k.value}));Array.isArray(b)||(b=[b]),l.push.apply(l,b.map(function(k){return{type:typeof k=="string"?or.literal:or.object,value:k}}))}if(Cx(d)){var y=d.options[h]||d.options.other;if(!y)throw new $_(d.value,h,Object.keys(d.options),a);l.push.apply(l,bd(y.value,e,n,r,i));continue}if(Ox(d)){var y=d.options["=".concat(h)];if(!y){if(!Intl.PluralRules)throw new Ff(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
var au=Array.isArray,gm=Array.from,eT=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,qw=Object.getOwnPropertyDescriptors,tT=Object.prototype,nT=Array.prototype,Rd=Object.getPrototypeOf;function Gu(t){return typeof t=="function"}const Je=()=>{};function rT(t){return typeof t?.then=="function"}function iT(t){return t()}function Md(t){for(var e=0;e<t.length;e++)t[e]()}function Oe(t,e,n=!1){return t===void 0?n?e():e:t}const ms=2,Hw=4,ml=8,Vw=16,Es=32,mm=64,Va=128,Fd=256,ai=512,Js=1024,Wa=2048,Ia=4096,vl=8192,sT=16384,ou=32768,aT=65536,Ww=1<<18,zo=Symbol("$state"),Gp=Symbol("");function Yw(t){return t===this.v}function Pf(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function vm(t){return!Pf(t,this.v)}function oT(t){throw new Error("effect_in_teardown")}function lT(){throw new Error("effect_in_unowned_derived")}function cT(t){throw new Error("effect_orphan")}function uT(){throw new Error("effect_update_depth_exceeded")}function dT(t){throw new Error("props_invalid_value")}function fT(){throw new Error("state_descriptors_fixed")}function hT(){throw new Error("state_prototype_fixed")}function pT(){throw new Error("state_unsafe_local_read")}function gT(){throw new Error("state_unsafe_mutation")}function Zn(t){return{f:0,v:t,reactions:null,equals:Yw,version:0}}function st(t){return Gw(Zn(t))}function Xo(t){const e=Zn(t);return e.equals=vm,Ut!==null&&Ut.l!==null&&(Ut.l.s??=[]).push(e),e}function C(t){return Gw(Xo(t))}function Gw(t){return ln!==null&&ln.f&ms&&(Ri===null?LT([t]):Ri.push(t)),t}function Xr(t,e){return x(t,ze(()=>o(t))),e}function x(t,e){return ln!==null&&jd()&&ln.f&ms&&(Ri===null||!Ri.includes(t))&&gT(),t.equals(e)||(t.v=e,t.version=fx(),Kw(t,Js),jd()&&Yt!==null&&Yt.f&ai&&!(Yt.f&Es)&&(Er!==null&&Er.includes(t)?(Kr(Yt,Js),If(Yt)):Ws===null?NT([t]):Ws.push(t))),e}function Kw(t,e){var n=t.reactions;if(n!==null)for(var r=jd(),i=n.length,s=0;s<i;s++){var a=n[s],l=a.f;l&Js||!r&&a===Yt||(Kr(a,e),l&(ai|Va)&&(l&ms?Kw(a,Wa):If(a)))}}const bm=1,_m=2,Zw=4,mT=8,vT=16,bT=1,_T=2,Jw=4,yT=8,wT=16,xT=1,kT=2,kr=Symbol(),Xw="http://www.w3.org/2000/svg";let Qw=!1;function lt(t,e=null,n){if(typeof t!="object"||t===null||zo in t)return t;const r=Rd(t);if(r!==tT&&r!==nT)return t;var i=new Map,s=au(t),a=Zn(0);s&&i.set("length",Zn(t.length));var l;return new Proxy(t,{defineProperty(c,u,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&fT();var f=i.get(u);return f===void 0?(f=Zn(d.value),i.set(u,f)):x(f,lt(d.value,l)),!0},deleteProperty(c,u){var d=i.get(u);return d===void 0?u in c&&i.set(u,Zn(kr)):(x(d,kr),i_(a)),!0},get(c,u,d){if(u===zo)return t;var f=i.get(u),h=u in c;if(f===void 0&&(!h||Hs(c,u)?.writable)&&(f=Zn(lt(h?c[u]:kr,l)),i.set(u,f)),f!==void 0){var p=o(f);return p===kr?void 0:p}return Reflect.get(c,u,d)},getOwnPropertyDescriptor(c,u){var d=Reflect.getOwnPropertyDescriptor(c,u);if(d&&"value"in d){var f=i.get(u);f&&(d.value=o(f))}else if(d===void 0){var h=i.get(u),p=h?.v;if(h!==void 0&&p!==kr)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(c,u){if(u===zo)return!0;var d=i.get(u),f=d!==void 0&&d.v!==kr||Reflect.has(c,u);if(d!==void 0||Yt!==null&&(!f||Hs(c,u)?.writable)){d===void 0&&(d=Zn(f?lt(c[u],l):kr),i.set(u,d));var h=o(d);if(h===kr)return!1}return f},set(c,u,d,f){var h=i.get(u),p=u in c;if(s&&u==="length")for(var g=d;g<h.v;g+=1){var m=i.get(g+"");m!==void 0?x(m,kr):g in c&&(m=Zn(kr),i.set(g+"",m))}h===void 0?(!p||Hs(c,u)?.writable)&&(h=Zn(void 0),x(h,lt(d,l)),i.set(u,h)):(p=h.v!==kr,x(h,lt(d,l)));var v=Reflect.getOwnPropertyDescriptor(c,u);if(v?.set&&v.set.call(f,d),!p){if(s&&typeof u=="string"){var _=i.get("length"),b=Number(u);Number.isInteger(b)&&b>=_.v&&x(_,b+1)}i_(a)}return!0},ownKeys(c){o(a);var u=Reflect.ownKeys(c).filter(h=>{var p=i.get(h);return p===void 0||p.v!==kr});for(var[d,f]of i)f.v!==kr&&!(d in c)&&u.push(d);return u},setPrototypeOf(){hT()}})}function i_(t,e=1){x(t,t.v+e)}var Qo,ym,ex,tx;function ST(){if(Qo===void 0){Qo=window,ym=document;var t=Element.prototype,e=Node.prototype;ex=Hs(e,"firstChild").get,tx=Hs(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__e=void 0,Text.prototype.__t=void 0}}function bl(t=""){return document.createTextNode(t)}function Pc(t){return ex.call(t)}function Lf(t){return tx.call(t)}function I(t){return Pc(t)}function z(t,e){{var n=Pc(t);return n instanceof Comment&&n.data===""?Lf(n):n}}function N(t,e=1,n=!1){let r=t;for(;e--;)r=Lf(r);return r}function ET(t){t.textContent=""}function nx(t){Yt===null&&ln===null&&cT(),ln!==null&&ln.f&Va&&lT(),km&&oT()}function TT(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function _l(t,e,n,r=!0){var i=(t&mm)!==0,s=Yt,a={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|Js,first:null,fn:e,last:null,next:null,parent:i?null:s,prev:null,teardown:null,transitions:null,version:0};if(n){var l=Uo;try{s_(!0),cu(a),a.f|=sT}catch(d){throw As(a),d}finally{s_(l)}}else e!==null&&If(a);var c=n&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null;if(!c&&!i&&r&&(s!==null&&TT(a,s),ln!==null&&ln.f&ms)){var u=ln;(u.children??=[]).push(a)}return a}function Nf(t){const e=_l(ml,null,!1);return Kr(e,ai),e.teardown=t,e}function Pn(t){nx();var e=Yt!==null&&(Yt.f&ml)!==0&&Ut!==null&&!Ut.m;if(e){var n=Ut;(n.e??=[]).push(t)}else{var r=lu(t);return r}}function AT(t){return nx(),ia(t)}function $T(t){const e=_l(mm,t,!0);return()=>{As(e)}}function lu(t){return _l(Hw,t,!1)}function F(t,e){var n=Ut,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=ia(()=>{t(),!r.ran&&(r.ran=!0,x(n.l.r2,!0),ze(e))})}function Ie(){var t=Ut;ia(()=>{if(o(t.l.r2)){for(var e of t.l.r1){var n=e.effect;n.f&ai&&Kr(n,Wa),yl(n)&&cu(n),e.ran=!1}t.l.r2.v=!1}})}function ia(t){return _l(ml,t,!0)}function U(t){return ia(t)}function Ts(t,e=0){return _l(ml|Vw|e,t,!0)}function Vr(t,e=!0){return _l(ml|Es,t,!0,e)}function rx(t){var e=t.teardown;if(e!==null){const n=km,r=ln;a_(!0),Ud(null);try{e.call(null)}finally{a_(n),Ud(r)}}}function As(t,e=!0){var n=!1;if((e||t.f&Ww)&&t.nodes_start!==null){for(var r=t.nodes_start,i=t.nodes_end;r!==null;){var s=r===i?null:Lf(r);r.remove(),r=s}n=!0}px(t,e&&!n),Nc(t,0),Kr(t,vl);var a=t.transitions;if(a!==null)for(const c of a)c.stop();rx(t);var l=t.parent;l!==null&&l.first!==null&&ix(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.parent=t.fn=t.nodes_start=t.nodes_end=null}function ix(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function cs(t,e){var n=[];wm(t,n,!0),sx(n,()=>{As(t),e&&e()})}function sx(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function wm(t,e,n){if(!(t.f&Ia)){if(t.f^=Ia,t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&e.push(a);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&ou)!==0||(r.f&Es)!==0;wm(r,e,s?n:!1),r=i}}}function Vs(t){ax(t,!0)}function ax(t,e){if(t.f&Ia){t.f^=Ia,yl(t)&&cu(t);for(var n=t.first;n!==null;){var r=n.next,i=(n.f&ou)!==0||(n.f&Es)!==0;ax(n,i?e:!1),n=r}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zd=!1,Kp=[];function ox(){zd=!1;const t=Kp.slice();Kp=[],Md(t)}function Ya(t){zd||(zd=!0,queueMicrotask(ox)),Kp.push(t)}function CT(){zd&&ox()}function Ve(t){let e=ms|Js;Yt===null&&(e|=Va);const n={children:null,deps:null,equals:Yw,f:e,fn:t,reactions:null,v:null,version:0};if(ln!==null&&ln.f&ms){var r=ln;(r.children??=[]).push(n)}return n}function L(t){const e=Ve(t);return e.equals=vm,e}function lx(t){var e=t.children;if(e!==null){t.children=null;for(var n=0;n<e.length;n+=1){var r=e[n];r.f&ms?OT(r):As(r)}}}function cx(t){var e;lx(t),e=hx(t);var n=(Po||t.f&Va)&&t.deps!==null?Wa:ai;Kr(t,n),t.equals(e)||(t.v=e,t.version=fx())}function OT(t){lx(t),Nc(t,0),Kr(t,vl),t.children=t.deps=t.reactions=t.fn=null}function xm(t){throw new Error("lifecycle_outside_component")}const ux=0,PT=1;let vd=ux,Lc=!1,Uo=!1,km=!1;function s_(t){Uo=t}function a_(t){km=t}let va=[],jo=0;let ln=null;function Ud(t){ln=t}let Yt=null;function o_(t){Yt=t}let Ri=null;function LT(t){Ri=t}let Er=null,zr=0,Ws=null;function NT(t){Ws=t}let dx=0,Po=!1,Ut=null;function l_(t){Ut=t}function fx(){return++dx}function jd(){return Ut!==null&&Ut.l===null}function yl(t){var e=t.f;if(e&Js)return!0;if(e&Wa){var n=t.deps,r=(e&Va)!==0;if(n!==null){var i;if(e&Fd){for(i=0;i<n.length;i++)(n[i].reactions??=[]).push(t);t.f^=Fd}for(i=0;i<n.length;i++){var s=n[i];if(yl(s)&&cx(s),r&&Yt!==null&&!Po&&!s?.reactions?.includes(t)&&(s.reactions??=[]).push(t),s.version>t.version)return!0}}r||Kr(t,ai)}return!1}function IT(t,e,n){throw t}function hx(t){var e=Er,n=zr,r=Ws,i=ln,s=Po,a=Ri;Er=null,zr=0,Ws=null,ln=t.f&(Es|mm)?null:t,Po=!Uo&&(t.f&Va)!==0,Ri=null;try{var l=(0,t.fn)(),c=t.deps;if(Er!==null){var u;if(Nc(t,zr),c!==null&&zr>0)for(c.length=zr+Er.length,u=0;u<Er.length;u++)c[zr+u]=Er[u];else t.deps=c=Er;if(!Po)for(u=zr;u<c.length;u++)(c[u].reactions??=[]).push(t)}else c!==null&&zr<c.length&&(Nc(t,zr),c.length=zr);return l}finally{Er=e,zr=n,Ws=r,ln=i,Po=s,Ri=a}}function DT(t,e){let n=e.reactions;if(n!==null){var r=n.indexOf(t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&e.f&ms&&(Kr(e,Wa),e.f&(Va|Fd)||(e.f^=Fd),Nc(e,0))}function Nc(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)DT(t,n[r])}function px(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){var r=n.next;As(n,e),n=r}}function cu(t){var e=t.f;if(!(e&vl)){Kr(t,ai);var n=t.ctx,r=Yt,i=Ut;Yt=t,Ut=n;try{e&Vw||px(t),rx(t);var s=hx(t);t.teardown=typeof s=="function"?s:null,t.version=dx}catch(a){IT(a)}finally{Yt=r,Ut=i}}}function gx(){jo>1e3&&(jo=0,uT()),jo++}function mx(t){var e=t.length;if(e!==0){gx();var n=Uo;Uo=!0;try{for(var r=0;r<e;r++){var i=t[r];if(i.first===null&&!(i.f&Es))c_([i]);else{var s=[];vx(i,s),c_(s)}}}finally{Uo=n}}}function c_(t){var e=t.length;if(e!==0)for(var n=0;n<e;n++){var r=t[n];!(r.f&(vl|Ia))&&yl(r)&&(cu(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?ix(r):r.fn=null))}}function RT(){if(Lc=!1,jo>1001)return;const t=va;va=[],mx(t),Lc||(jo=0)}function If(t){vd===ux&&(Lc||(Lc=!0,queueMicrotask(RT)));for(var e=t;e.parent!==null;){e=e.parent;var n=e.f;if(n&Es){if(!(n&ai))return;Kr(e,Wa)}}va.push(e)}function vx(t,e){var n=t.first,r=[];e:for(;n!==null;){var i=n.f,s=(i&(vl|Ia))===0,a=(i&Es)!==0,l=(i&ai)!==0,c=n.first;if(s&&(!a||!l)){if(a&&Kr(n,ai),i&ml){if(!a&&yl(n)&&cu(n),c=n.first,c!==null){n=c;continue}}else if(i&Hw)if(a||l){if(c!==null){n=c;continue}}else r.push(n)}var u=n.next;if(u===null){let h=n.parent;for(;h!==null;){if(t===h)break e;var d=h.next;if(d!==null){n=d;continue e}h=h.parent}}n=u}for(var f=0;f<r.length;f++)c=r[f],e.push(c),vx(c,e)}function Sm(t){var e=vd,n=va;try{gx();const i=[];vd=PT,va=i,Lc=!1,mx(n);var r=t?.();return CT(),(va.length>0||i.length>0)&&Sm(),jo=0,r}finally{vd=e,va=n}}async function yc(){await Promise.resolve(),Sm()}function o(t){var e=t.f;if(e&vl)return t.v;if(ln!==null){Ri!==null&&Ri.includes(t)&&pT();var n=ln.deps;Er===null&&n!==null&&n[zr]===t?zr++:Er===null?Er=[t]:Er.push(t),Ws!==null&&Yt!==null&&Yt.f&ai&&!(Yt.f&Es)&&Ws.includes(t)&&(Kr(Yt,Js),If(Yt))}if(e&ms){var r=t;yl(r)&&cx(r)}return t.v}function ze(t){const e=ln;try{return ln=null,t()}finally{ln=e}}const MT=~(Js|Wa|ai);function Kr(t,e){t.f=t.f&MT|e}function Ga(t){return _x().get(t)}function bx(t,e){return _x().set(t,e),e}function _x(t){return Ut===null&&xm(),Ut.c??=new Map(FT(Ut)||void 0)}function FT(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function u_(t,e=1){var n=+o(t);return x(t,n+e),n}function Q(t,e=!1,n){Ut={p:Ut,c:null,e:null,m:!1,s:t,x:null,l:null},e||(Ut.l={s:null,u:null,r1:[],r2:Zn(!1)})}function ee(t){const e=Ut;if(e!==null){t!==void 0&&(e.x=t);const r=e.e;if(r!==null){e.e=null;for(var n=0;n<r.length;n++)lu(r[n])}Ut=e.p,e.m=!0}return t||{}}function ce(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zo in t)Zp(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&zo in n&&Zp(n)}}}function Zp(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{Zp(t[r],e)}catch{}const n=Rd(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=qw(n);for(let i in r){const s=r[i].get;if(s)try{s.call(t)}catch{}}}}}const yx=new Set,Jp=new Set;function Bd(t,e,n,r){function i(s){if(r.capture||cc.call(e,s),!s.cancelBubble)return n.call(this,s)}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ya(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function Gl(t,e,n,r={}){var i=Bd(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function Xn(t,e,n,r,i){var s={capture:r,passive:i},a=Bd(t,e,n,s);(e===document.body||e===window||e===document)&&Nf(()=>{e.removeEventListener(t,a,s)})}function Df(t){for(var e=0;e<t.length;e++)yx.add(t[e]);for(var n of Jp)n(t)}function cc(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target,a=0,l=t.__root;if(l){var c=i.indexOf(l);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;c<=u&&(a=c)}if(s=i[a]||t.target,s!==e){eT(t,"currentTarget",{configurable:!0,get(){return s||n}});try{for(var d,f=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];if(p!==void 0&&!s.disabled)if(au(p)){var[g,...m]=p;g.apply(s,[t,...m])}else p.call(s,t)}catch(v){d?f.push(v):d=v}if(t.cancelBubble||h===e||h===null)break;s=h}if(d){for(let v of f)queueMicrotask(()=>{throw v});throw d}}finally{t.__root=e,delete t.currentTarget}}}function wx(t){var e;e=document.head.appendChild(bl());try{Ts(()=>t(e),Ww)}finally{}}function xx(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function el(t,e){var n=Yt;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function M(t,e){var n=(e&xT)!==0,r=(e&kT)!==0,i,s=!t.startsWith("<!>");return()=>{i===void 0&&(i=xx(s?t:"<!>"+t),n||(i=Pc(i)));var a=r?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Pc(a),c=a.lastChild;el(l,c)}else el(a,a);return a}}function Ge(t=""){{var e=bl(t+"");return el(e,e),e}}function Y(){var t=document.createDocumentFragment(),e=document.createComment(""),n=bl();return t.append(e,n),el(e,n),t}function T(t,e){t!==null&&t.before(e)}function zT(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const UT=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function jT(t){return UT.includes(t)}const BT={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"};function qT(t){return t=t.toLowerCase(),BT[t]??t}const HT=["wheel","mousewheel","touchstart","touchmove"];function VT(t){return HT.includes(t)}function K(t,e){e!==(t.__t??=t.nodeValue)&&(t.__t=e,t.nodeValue=e==null?"":e+"")}function kx(t,e){const n=e.anchor??e.target.appendChild(bl());return WT(t,{...e,anchor:n})}const po=new Map;function WT(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ST();var l=new Set,c=f=>{for(var h=0;h<f.length;h++){var p=f[h];if(!l.has(p)){l.add(p);var g=VT(p);e.addEventListener(p,cc,{passive:g});var m=po.get(p);m===void 0?(document.addEventListener(p,cc,{passive:g}),po.set(p,1)):po.set(p,m+1)}}};c(gm(yx)),Jp.add(c);var u=void 0,d=$T(()=>(Vr(()=>{if(s){Q({});var f=Ut;f.c=s}i&&(r.$$events=i),u=t(n,r)||{},s&&ee()}),()=>{for(var f of l){e.removeEventListener(f,cc);var h=po.get(f);--h===0?(document.removeEventListener(f,cc),po.delete(f)):po.set(f,h)}Jp.delete(c),Xp.delete(u)}));return Xp.set(u,d),u}let Xp=new WeakMap;function YT(t){const e=Xp.get(t);e&&e()}const ip=0,Ku=1,sp=2;function wl(t,e,n,r,i){var s=t,a=jd(),l=Ut,c,u,d,f,h=(a?Zn:Xo)(void 0),p=(a?Zn:Xo)(void 0),g=!1;function m(_,b){g=!0,b&&(o_(v),Ud(v),l_(l)),_===ip&&n&&(u?Vs(u):u=Vr(()=>n(s))),_===Ku&&r&&(d?Vs(d):d=Vr(()=>r(s,h))),_===sp&&i&&(f?Vs(f):f=Vr(()=>i(s,p))),_!==ip&&u&&cs(u,()=>u=null),_!==Ku&&d&&cs(d,()=>d=null),_!==sp&&f&&cs(f,()=>f=null),b&&(l_(null),Ud(null),o_(null),Sm())}var v=Ts(()=>{if(c!==(c=e())){if(rT(c)){var _=c;g=!1,_.then(b=>{_===c&&(x(h,b),m(Ku,!0))},b=>{_===c&&(x(p,b),m(sp,!0))}),Ya(()=>{g||m(ip,!0)})}else x(h,c),m(Ku,!1);return()=>c=null}})}function B(t,e,n,r=null,i=!1){var s=t,a=null,l=null,c=null,u=i?ou:0;Ts(()=>{c!==(c=!!e())&&(c?(a?Vs(a):a=Vr(()=>n(s)),l&&cs(l,()=>{l=null})):(l?Vs(l):r&&(l=Vr(()=>r(s))),a&&cs(a,()=>{a=null})))},u)}function xl(t,e,n){var r=t,i=kr,s;Ts(()=>{Pf(i,i=e())&&(s&&cs(s),s=Vr(()=>n(r)))})}function GT(t,e){ia(()=>{var n=e();for(var r in n){var i=n[r];i?t.style.setProperty(r,i):t.style.removeProperty(r)}}),Nf(()=>{t.remove()})}let Bo=null;function d_(t){Bo=t}function Nr(t,e){return e}function KT(t,e,n,r){for(var i=[],s=e.length,a=0;a<s;a++)wm(e[a].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var c=n.parentNode;ET(c),c.append(n),r.clear(),Ds(t,e[0].prev,e[s-1].next)}sx(i,()=>{for(var u=0;u<s;u++){var d=e[u];l||(r.delete(d.k),Ds(t,d.prev,d.next)),As(d.e,!l)}})}function ct(t,e,n,r,i,s=null){var a=t,l={flags:e,items:new Map,first:null},c=(e&Zw)!==0;if(c){var u=t;a=u.appendChild(bl())}var d=null;Ts(()=>{var f=n(),h=au(f)?f:f==null?[]:gm(f),p=h.length;ZT(h,l,a,i,e,r),s!==null&&(p===0?d?Vs(d):d=Vr(()=>s(a)):d!==null&&cs(d,()=>{d=null}))})}function ZT(t,e,n,r,i,s){var a=(i&mT)!==0,l=(i&(bm|_m))!==0,c=t.length,u=e.items,d=e.first,f=d,h,p=null,g,m=[],v=[],_,b,y,w;if(a)for(w=0;w<c;w+=1)_=t[w],b=s(_,w),y=u.get(b),y!==void 0&&(y.a?.measure(),(g??=new Set).add(y));for(w=0;w<c;w+=1){if(_=t[w],b=s(_,w),y=u.get(b),y===void 0){var k=f?f.e.nodes_start:n;p=XT(k,e,p,p===null?e.first:p.next,_,b,w,r,i),u.set(b,p),m=[],v=[],f=p.next;continue}if(l&&JT(y,_,w,i),y.e.f&Ia&&(Vs(y.e),a&&(y.a?.unfix(),(g??=new Set).delete(y))),y!==f){if(h!==void 0&&h.has(y)){if(m.length<v.length){var S=v[0],A;p=S.prev;var $=m[0],O=m[m.length-1];for(A=0;A<m.length;A+=1)f_(m[A],S,n);for(A=0;A<v.length;A+=1)h.delete(v[A]);Ds(e,$.prev,O.next),Ds(e,p,$),Ds(e,O,S),f=S,p=O,w-=1,m=[],v=[]}else h.delete(y),f_(y,f,n),Ds(e,y.prev,y.next),Ds(e,y,p===null?e.first:p.next),Ds(e,p,y),p=y;continue}for(m=[],v=[];f!==null&&f.k!==b;)(h??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue;y=f}m.push(y),p=y,f=y.next}if(f!==null||h!==void 0){for(var P=h===void 0?[]:gm(h);f!==null;)P.push(f),f=f.next;var D=P.length;if(D>0){var j=i&Zw&&c===0?n:null;if(a){for(w=0;w<D;w+=1)P[w].a?.measure();for(w=0;w<D;w+=1)P[w].a?.fix()}KT(e,P,j,u)}}a&&Ya(()=>{if(g!==void 0)for(y of g)y.a?.apply()}),Yt.first=e.first&&e.first.e,Yt.last=p&&p.e}function JT(t,e,n,r){r&bm&&x(t.v,e),r&_m?x(t.i,n):t.i=n}function XT(t,e,n,r,i,s,a,l,c){var u=Bo;try{var d=(c&bm)!==0,f=(c&vT)===0,h=d?f?Xo(i):Zn(i):i,p=c&_m?Zn(a):a,g={i:p,v:h,k:s,a:null,e:null,prev:n,next:r};return Bo=g,g.e=Vr(()=>l(t,h,p),Qw),g.e.prev=n&&n.e,g.e.next=r&&r.e,n===null?e.first=g:(n.next=g,n.e.next=g.e),r!==null&&(r.prev=g,r.e.prev=g.e),g}finally{Bo=u}}function f_(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,s=t.e.nodes_start;s!==r;){var a=Lf(s);i.before(s),s=a}}function Ds(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function Or(t,e,n,r,i){var s=t,a="",l;Ts(()=>{a!==(a=e()??"")&&(l!==void 0&&(As(l),l=void 0),a!==""&&(l=Vr(()=>{var c=a+"",u=xx(c);el(Pc(u),u.lastChild),s.before(u)})))})}function ei(t,e,n,r){e===void 0||e(t,n)}function je(t,e,...n){var r=t,i=Je,s;Ts(()=>{i!==(i=e())&&(s&&(As(s),s=null),s=Vr(()=>i(r,...n)))},ou)}function uu(t,e,n){var r=t,i,s;Ts(()=>{i!==(i=e())&&(s&&(cs(s),s=null),i&&(s=Vr(()=>n(r,i))))})}function QT(t,e,n,r,i,s){var a,l,c=null,u=t,d,f=Bo;Ts(()=>{const h=e()||null;var p=h==="svg"?Xw:null;if(h!==a){var g=Bo;d_(f),d&&(h===null?cs(d,()=>{d=null,l=null}):h===l?Vs(d):As(d)),h&&h!==l&&(d=Vr(()=>{if(c=p?document.createElementNS(p,h):document.createElement(h),el(c,c),r){var m=c.appendChild(bl());r(c,m)}Yt.nodes_end=c,u.before(c)})),a=h,a&&(l=a),d_(g)}},ou)}var h_=new Set;function Te(t,e,n=!1){if(!n){if(h_.has(e))return;h_.add(e)}Ya(()=>{var r=t.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,i.appendChild(s)}})}function sa(t,e,n){lu(()=>{var r=ze(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,s={};ia(()=>{var a=n();ce(a),i&&Pf(s,a)&&(s=a,r.update(a))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function eA(t,e){if(e){const n=document.body;t.autofocus=!0,Ya(()=>{document.activeElement===n&&t.focus()})}}let p_=!1;function tA(){p_||(p_=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Ce(t,e,n,r){n=n==null?null:n+"";var i=t.__attributes??={};i[e]!==(i[e]=n)&&(e==="loading"&&(t[Gp]=n),n===null?t.removeAttribute(e):t.setAttribute(e,n))}function nA(t,e,n){if(e in t){try{var r=t[e]}catch{Ce(t,e,n);return}var i=typeof r=="boolean"&&n===""?!0:n;(typeof r!="object"||r!==i)&&(t[e]=i)}else Ce(t,e,n)}function bt(t,e,n,r,i=!1,s){var a=e||{},l=t.tagName==="OPTION";for(var c in e)c in n||(n[c]=null);r!==void 0&&(n.class=n.class?n.class+" "+r:r);var u=g_.get(t.nodeName);u||g_.set(t.nodeName,u=sA(t));var d=t.__attributes??={},f=[];for(const v in n){let _=n[v];if(l&&v==="value"&&_==null){t.value=t.__value="",a[v]=_;continue}var h=a[v];if(_!==h){a[v]=_;var p=v[0]+v[1];if(p!=="$$")if(p==="on"){const b={},y="$$"+v;let w=v.slice(2);var g=jT(w);if(zT(w)&&(w=w.slice(0,-7),b.capture=!0),!g&&h){if(_!=null)continue;t.removeEventListener(w,a[y],b),a[y]=null}if(_!=null)if(g)t[`__${w}`]=_,Df([w]);else{let k=function(S){a[v].call(this,S)};e?a[y]=Bd(w,t,k,b):f.push([v,_,()=>a[y]=Bd(w,t,k,b)])}}else if(_==null)d[v]=null,t.removeAttribute(v);else if(v==="style")t.style.cssText=_+"";else if(v==="autofocus")eA(t,!!_);else if(v==="__value"||v==="value")t.value=t[v]=t.__value=_;else{var m=v;i||(m=qT(m)),u.includes(m)?t[m]=_:typeof _!="function"&&Ce(t,m,_)}}}return e||Ya(()=>{if(t.isConnected)for(const[v,_,b]of f)a[v]===_&&b()}),a}function rA(t,e,n,r){if(t.tagName.includes("-")){for(var i in e)i in n||(n[i]=null);n.class=n.class?n.class+" "+r:r;for(i in n)nA(t,i,n[i]);return n}return bt(t,e,n,r,t.namespaceURI!==Xw)}var iA=["width","height","draggable"],g_=new Map;function sA(t){for(var e=[],n,r=Rd(t);r.constructor.name!=="Element";){n=qw(r);for(var i in n)n[i].set&&!iA.includes(i)&&e.push(i);r=Rd(r)}return e}function Ic(t){if(t.loading==="lazy"){var e=t.src;t[Gp]=null,t.loading="eager",t.removeAttribute("src"),requestAnimationFrame(()=>{t[Gp]!=="eager"&&(t.loading="lazy"),t.src=e})}}function Dr(t,e){var n=t.__className,r=aA(e);(n!==r||Qw)&&(e==null?t.removeAttribute("class"):t.className=r,t.__className=r)}function aA(t){return t??""}function ut(t,e,n){if(n){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function Ar(t,e,n,r,i){var s=t.__attributes??={},a=t.style,l="style-"+e;s[l]===n&&!i||(s[l]=n,n==null?a.removeProperty(e):a.setProperty(e,n,""))}function oA(t,e,n,r=n){t.addEventListener(e,n);const i=t.__on_r;i?t.__on_r=()=>{i(),r()}:t.__on_r=r,tA()}function Rf(t,e,n){oA(t,"input",()=>{n(m_(t)?v_(t.value):t.value)}),ia(()=>{var r=e();m_(t)&&r===v_(t.value)||t.type==="date"&&!r&&!t.value||(t.value=r??"")})}function m_(t){var e=t.type;return e==="number"||e==="range"}function v_(t){return t===""?null:+t}function Dc(t,e,n){var r=Hs(t,e);r&&r.set&&(t[e]=n,Nf(()=>{t[e]=null}))}function b_(t,e){return t===e||t?.[zo]===e}function Ot(t={},e,n,r){return lu(()=>{var i,s;return ia(()=>{i=s,s=r?.()||[],ze(()=>{t!==n(...s)&&(e(t,...s),i&&b_(n(...i),t)&&e(null,...i))})}),()=>{Ya(()=>{s&&b_(n(...s),t)&&e(null,...s)})}}),t}function lA(t){return function(...e){var n=e[0];return n.stopPropagation(),t.apply(this,e)}}function Zu(t){return function(...e){var n=e[0];return n.preventDefault(),t.apply(this,e)}}function ge(){const t=Ut,e=t.l.u;e&&(e.b.length&&AT(()=>{__(t),Md(e.b)}),Pn(()=>{const n=ze(()=>e.m.map(iT));return()=>{for(const r of n)typeof r=="function"&&r()}}),e.a.length&&Pn(()=>{__(t),Md(e.a)}))}function __(t){if(t.l.s)for(const e of t.l.s)o(e);ce(t.s)}function cA(t,e){var n=t.$$events?.[e.type],r=au(n)?n.slice():n==null?[]:[n];for(var i of r)i.call(this,e)}function du(t){var e=t.$$slots?.default;return e===!0?t.children:e}const uA={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ot(t,e,n){return new Proxy({props:t,exclude:e},uA)}const dA={get(t,e){if(!t.exclude.includes(e))return o(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,n){return e in t.special||(t.special[e]=E({get[e](){return t.props[e]}},e,Jw)),t.special[e](n),u_(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),u_(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Un(t,e){return new Proxy({props:t,exclude:e,special:{},version:Zn(0)},dA)}const fA={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Gu(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Gu(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const i=Hs(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){for(let n of t.props)if(Gu(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props){Gu(n)&&(n=n());for(const r in n)e.includes(r)||e.push(r)}return e}};function Gt(...t){return new Proxy({props:t},fA)}function E(t,e,n,r){var i=(n&bT)!==0,s=(n&_T)!==0,a=(n&yT)!==0,l=(n&wT)!==0,c=t[e],u=Hs(t,e)?.set,d=r,f=!0,h=!1,p=()=>(h=!0,f&&(f=!1,l?d=ze(r):d=r),d);c===void 0&&r!==void 0&&(u&&s&&dT(),c=p(),u&&u(c));var g;if(s)g=()=>{var w=t[e];return w===void 0?p():(f=!0,h=!1,w)};else{var m=(i?Ve:L)(()=>t[e]);m.f|=aT,g=()=>{var w=o(m);return w!==void 0&&(d=void 0),w===void 0?d:w}}if(!(n&Jw))return g;if(u){var v=t.$$legacy;return function(w,k){return arguments.length>0?((!s||!k||v)&&u(k?g():w),w):g()}}var _=!1,b=Xo(c),y=Ve(()=>{var w=g(),k=o(b);return _?(_=!1,k):b.v=w});return i||(y.equals=vm),function(w,k){var S=o(y);if(arguments.length>0){const A=k?o(y):s&&a?lt(w):w;return y.equals(A)||(_=!0,x(b,A),h&&d!==void 0&&(d=A),o(y)),w}return S}}function Em(t,e,n){if(t==null)return e(void 0),n&&n(void 0),Je;const r=t.subscribe(e,n);return r.unsubscribe?()=>r.unsubscribe():r}function R(t,e,n){const r=n[e]??={store:null,source:Xo(void 0),unsubscribe:Je};if(r.store!==t)if(r.unsubscribe(),r.store=t??null,t==null)r.source.v=void 0,r.unsubscribe=Je;else{var i=!0;r.unsubscribe=Em(t,s=>{i?r.source.v=s:x(r.source,s)}),i=!1}return o(r.source)}function We(t,e){return t.set(e),e}function me(){const t={};return Nf(()=>{for(var e in t)t[e].unsubscribe()}),t}function Ct(t,e,n){return t.set(n),e}function Vt(t){Ut===null&&xm(),Ut.l!==null?pA(Ut).m.push(t):Pn(()=>{const e=ze(t);if(typeof e=="function")return e})}function hA(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function ui(){const t=Ut;return t===null&&xm(),(e,n,r)=>{const i=t.s.$$events?.[e];if(i){const s=au(i)?i.slice():[i],a=hA(e,n,r);for(const l of s)l.call(t.x,a);return!a.defaultPrevented}return!0}}function pA(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}const gA="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(gA);const mA={ok:"OK",cancel:"Cancel",close:"Close",clear:"Clear",insert:"Insert",update:"Update",remove:"Remove",collapse:"Collapse",expand:"Expand",calendar:{year:"Year",previous_decade:"Previous Decade",next_decade:"Next Decade",month:"Month",previous_month:"Previous Month",next_month:"Next Month",today:"Today"},split_button:{x_options:"{name} Options",more_options:"More Options"},combobox:{select_an_option:"Select an option…",filter_options:"Filter Options",no_matching_options:"No matching options found"},number_input:{decrease:"Decrease",increase:"Increase"},password_input:{show_password:"Show Password",hide_password:"Hide Password"},text_editor:{text_editor:"Text Editor",text_style_options:"Text Style Options",show_text_style_options:"Show Text Style Options",paragraph:"Paragraph",heading_1:"Heading 1",heading_2:"Heading 2",heading_3:"Heading 3",heading_4:"Heading 4",heading_5:"Heading 5",heading_6:"Heading 6",bulleted_list:"Bulleted List",numbered_list:"Numbered List",blockquote:"Block Quote",bold:"Bold",italic:"Italic",code:"Code",link:"Link",insert_link:"Insert Link",update_link:"Update Link",text:"Text",url:"URL",edit_in_markdown:"Edit in Markdown",converter_error:"There was an error while enabling rich text mode. Please use the plain text editor instead."}},vA=Object.freeze(Object.defineProperty({__proto__:null,strings:mA},Symbol.toStringTag,{value:"Module"})),bA={ok:"OK",cancel:"キャンセル",close:"閉じる",clear:"クリア",insert:"挿入",update:"更新",remove:"削除",collapse:"折り畳む",expand:"広げる",calendar:{year:"年",previous_decade:"前の 10 年",next_decade:"次の 10 年",month:"月",previous_month:"前月",next_month:"翌月",today:"今日"},split_button:{x_options:"{name} オプション",more_options:"その他のオプション"},combobox:{select_an_option:"オプションを選択…",filter_options:"オプションを絞り込み",no_matching_options:"一致するオプションは見つかりませんでした"},number_input:{decrease:"減らす",increase:"増やす"},password_input:{show_password:"パスワードを表示",hide_password:"パスワードを隠す"},text_editor:{text_editor:"テキストエディター",text_style_options:"テキストスタイルオプション",show_text_style_options:"テキストスタイルオプションを表示",paragraph:"段落",heading_1:"見出し 1",heading_2:"見出し 2",heading_3:"見出し 3",heading_4:"見出し 4",heading_5:"見出し 5",heading_6:"見出し 6",bulleted_list:"番号なしリスト",numbered_list:"番号付きリスト",blockquote:"ブロック引用",bold:"太字",italic:"斜体",code:"コード",link:"リンク",insert_link:"リンクを挿入",update_link:"リンクを更新",text:"テキスト",url:"URL",edit_in_markdown:"マークダウンで編集",converter_error:"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。"}},_A=Object.freeze(Object.defineProperty({__proto__:null,strings:bA},Symbol.toStringTag,{value:"Module"})),go=[];function yA(t,e){return{subscribe:Ke(t,e).subscribe}}function Ke(t,e=Je){let n=null;const r=new Set;function i(l){if(Pf(t,l)&&(t=l,n)){const c=!go.length;for(const u of r)u[1](),go.push(u,t);if(c){for(let u=0;u<go.length;u+=2)go[u][0](go[u+1]);go.length=0}}}function s(l){i(l(t))}function a(l,c=Je){const u=[l,c];return r.add(u),r.size===1&&(n=e(i,s)||Je),l(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:a}}function Vn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return yA(n,(a,l)=>{let c=!1;const u=[];let d=0,f=Je;const h=()=>{if(d)return;f();const g=e(r?u[0]:u,a,l);s?a(g):f=typeof g=="function"?g:Je},p=i.map((g,m)=>Em(g,v=>{u[m]=v,d&=~(1<<m),c&&h()},()=>{d|=1<<m}));return c=!0,h(),function(){Md(p),f(),c=!1}})}function re(t){let e;return Em(t,n=>e=n)(),e}var Qp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wA=function(e){return xA(e)&&!kA(e)};function xA(t){return!!t&&typeof t=="object"}function kA(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||TA(t)}var SA=typeof Symbol=="function"&&Symbol.for,EA=SA?Symbol.for("react.element"):60103;function TA(t){return t.$$typeof===EA}function AA(t){return Array.isArray(t)?[]:{}}function Rc(t,e){return e.clone!==!1&&e.isMergeableObject(t)?tl(AA(t),t,e):t}function $A(t,e,n){return t.concat(e).map(function(r){return Rc(r,n)})}function CA(t,e){if(!e.customMerge)return tl;var n=e.customMerge(t);return typeof n=="function"?n:tl}function OA(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function y_(t){return Object.keys(t).concat(OA(t))}function Sx(t,e){try{return e in t}catch{return!1}}function PA(t,e){return Sx(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function LA(t,e,n){var r={};return n.isMergeableObject(t)&&y_(t).forEach(function(i){r[i]=Rc(t[i],n)}),y_(e).forEach(function(i){PA(t,i)||(Sx(t,i)&&n.isMergeableObject(e[i])?r[i]=CA(i,n)(t[i],e[i],n):r[i]=Rc(e[i],n))}),r}function tl(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||$A,n.isMergeableObject=n.isMergeableObject||wA,n.cloneUnlessOtherwiseSpecified=Rc;var r=Array.isArray(e),i=Array.isArray(t),s=r===i;return s?r?n.arrayMerge(t,e,n):LA(t,e,n):Rc(e,n)}tl.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return tl(r,i,n)},{})};var NA=tl,IA=NA;const Ex=Tm(IA);var eg=function(t,e){return eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},eg(t,e)};function Mf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");eg(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Nt=function(){return Nt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Nt.apply(this,arguments)};function DA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function ap(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var Et;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Et||(Et={}));var tn;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(tn||(tn={}));var nl;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(nl||(nl={}));function w_(t){return t.type===tn.literal}function RA(t){return t.type===tn.argument}function Tx(t){return t.type===tn.number}function Ax(t){return t.type===tn.date}function $x(t){return t.type===tn.time}function Cx(t){return t.type===tn.select}function Ox(t){return t.type===tn.plural}function MA(t){return t.type===tn.pound}function Px(t){return t.type===tn.tag}function Lx(t){return!!(t&&typeof t=="object"&&t.type===nl.number)}function tg(t){return!!(t&&typeof t=="object"&&t.type===nl.dateTime)}var Nx=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FA=/(?:[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 zA(t){var e={};return t.replace(FA,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var UA=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jA(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(UA).filter(function(h){return h.length>0}),n=[],r=0,i=e;r<i.length;r++){var s=i[r],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],c=a.slice(1),u=0,d=c;u<d.length;u++){var f=d[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:c})}return n}function BA(t){return t.replace(/^(.*?)-/,"")}var x_=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ix=/^(@+)?(\+|#+)?[rs]?$/g,qA=/(\*)(0+)|(#+)(0+)|(0+)/g,Dx=/^(0+)$/;function k_(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Ix,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Rx(t){switch(t){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 HA(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Dx.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function S_(t){var e={},n=Rx(t);return n||e}function VA(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=BA(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Nt(Nt(Nt({},e),{notation:"scientific"}),i.options.reduce(function(c,u){return Nt(Nt({},c),S_(u))},{}));continue;case"engineering":e=Nt(Nt(Nt({},e),{notation:"engineering"}),i.options.reduce(function(c,u){return Nt(Nt({},c),S_(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.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(qA,function(c,u,d,f,h,p){if(u)e.minimumIntegerDigits=d.length;else{if(f&&h)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(Dx.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(x_.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(x_,function(c,u,d,f,h,p){return d==="*"?e.minimumFractionDigits=u.length:f&&f[0]==="#"?e.maximumFractionDigits=f.length:h&&p?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+p.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?e=Nt(Nt({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=Nt(Nt({},e),k_(s)));continue}if(Ix.test(i.stem)){e=Nt(Nt({},e),k_(i.stem));continue}var a=Rx(i.stem);a&&(e=Nt(Nt({},e),a));var l=HA(i.stem);l&&(e=Nt(Nt({},e),l))}return e}var Ju={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 WA(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var s=0;r+1<t.length&&t.charAt(r+1)===i;)s++,r++;var a=1+(s&1),l=s<2?1:3+(s>>1),c="a",u=YA(e);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=c;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function YA(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=Ju[r||""]||Ju[n||""]||Ju["".concat(n,"-001")]||Ju["001"];return i[0]}var op,GA=new RegExp("^".concat(Nx.source,"*")),KA=new RegExp("".concat(Nx.source,"*$"));function At(t,e){return{start:t,end:e}}var ZA=!!String.prototype.startsWith&&"_a".startsWith("a",1),JA=!!String.fromCodePoint,XA=!!Object.fromEntries,QA=!!String.prototype.codePointAt,e2=!!String.prototype.trimStart,t2=!!String.prototype.trimEnd,n2=!!Number.isSafeInteger,r2=n2?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ng=!0;try{var i2=Fx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ng=((op=i2.exec("a"))===null||op===void 0?void 0:op[0])==="a"}catch{ng=!1}var E_=ZA?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},rg=JA?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,s=0,a;i>s;){if(a=e[s++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},T_=XA?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var s=i[r],a=s[0],l=s[1];n[a]=l}return n},Mx=QA?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=e.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},s2=e2?function(e){return e.trimStart()}:function(e){return e.replace(GA,"")},a2=t2?function(e){return e.trimEnd()}:function(e){return e.replace(KA,"")};function Fx(t,e){return new RegExp(t,e)}var ig;if(ng){var A_=Fx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ig=function(e,n){var r;A_.lastIndex=n;var i=A_.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else ig=function(e,n){for(var r=[];;){var i=Mx(e,n);if(i===void 0||zx(i)||u2(i))break;r.push(i),n+=i>=65536?2:1}return rg.apply(void 0,r)};var o2=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(e,r);if(a.err)return a;i.push(a.val)}else{if(s===125&&e>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:tn.pound,location:At(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Et.UNMATCHED_CLOSING_TAG,At(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&sg(this.peek()||0)){var a=this.parseTag(e,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(e,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:tn.literal,value:"<".concat(i,"/>"),location:At(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,n,!0);if(s.err)return s;var a=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sg(this.char()))return this.error(Et.INVALID_TAG,At(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(Et.UNMATCHED_CLOSING_TAG,At(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:tn.tag,value:i,children:a,location:At(r,this.clonePosition())},err:null}:this.error(Et.INVALID_TAG,At(l,this.clonePosition())))}else return this.error(Et.UNCLOSED_TAG,At(r,this.clonePosition()))}else return this.error(Et.INVALID_TAG,At(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&c2(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var a=this.tryParseUnquoted(e,n);if(a){i+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=At(r,this.clonePosition());return{val:{type:tn.literal,value:i,location:c},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!l2(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return rg.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),rg(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Et.EMPTY_ARGUMENT,At(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Et.MALFORMED_ARGUMENT,At(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:tn.argument,value:i,location:At(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(Et.MALFORMED_ARGUMENT,At(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=ig(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),a=At(e,s);return{value:r,location:a}},t.prototype.parseArgumentOptions=function(e,n,r,i){var s,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(Et.EXPECT_ARGUMENT_TYPE,At(a,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=a2(f.val);if(h.length===0)return this.error(Et.EXPECT_ARGUMENT_STYLE,At(this.clonePosition(),this.clonePosition()));var p=At(d,this.clonePosition());u={style:h,styleLocation:p}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var m=At(i,this.clonePosition());if(u&&E_(u?.style,"::",0)){var v=s2(u.style.slice(2));if(l==="number"){var f=this.parseNumberSkeletonFromString(v,u.styleLocation);return f.err?f:{val:{type:tn.number,value:r,location:m,style:f.val},err:null}}else{if(v.length===0)return this.error(Et.EXPECT_DATE_TIME_SKELETON,m);var _=v;this.locale&&(_=WA(v,this.locale));var h={type:nl.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?zA(_):{}},b=l==="date"?tn.date:tn.time;return{val:{type:b,value:r,location:m,style:h},err:null}}}return{val:{type:l==="number"?tn.number:l==="date"?tn.date:tn.time,value:r,location:m,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Et.EXPECT_SELECT_ARGUMENT_OPTIONS,At(y,Nt({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),k=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,At(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Et.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(e,l,n,w);if(S.err)return S;var g=this.tryParseArgumentClose(i);if(g.err)return g;var A=At(i,this.clonePosition());return l==="select"?{val:{type:tn.select,value:r,options:T_(S.val),location:A},err:null}:{val:{type:tn.plural,value:r,options:T_(S.val),offset:k,pluralType:l==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(Et.INVALID_ARGUMENT_TYPE,At(a,c))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Et.EXPECT_ARGUMENT_CLOSING_BRACE,At(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Et.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,At(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=jA(e)}catch{return this.error(Et.INVALID_NUMBER_SKELETON,n)}return{val:{type:nl.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?VA(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var s,a=!1,l=[],c=new Set,u=i.value,d=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Et.EXPECT_PLURAL_ARGUMENT_SELECTOR,Et.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=At(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?Et.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Et.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Et.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Et.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,At(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,n,r);if(g.err)return g;var m=this.tryParseArgumentClose(p);if(m.err)return m;l.push([u,{value:g.val,location:At(p,this.clonePosition())}]),c.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return l.length===0?this.error(n==="select"?Et.EXPECT_SELECT_ARGUMENT_SELECTOR:Et.EXPECT_PLURAL_ARGUMENT_SELECTOR,At(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Et.MISSING_OTHER_CLAUSE,At(this.clonePosition(),this.clonePosition())):{val:l,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,a=a*10+(l-48),this.bump();else break}var c=At(i,this.clonePosition());return s?(a*=r,r2(a)?{val:a,err:null}:this.error(n,c)):this.error(e,c)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Mx(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(E_(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&zx(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r??null},t}();function sg(t){return t>=97&&t<=122||t>=65&&t<=90}function l2(t){return sg(t)||t===47}function c2(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function zx(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function u2(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function ag(t){t.forEach(function(e){if(delete e.location,Cx(e)||Ox(e))for(var n in e.options)delete e.options[n].location,ag(e.options[n].value);else Tx(e)&&Lx(e.style)||(Ax(e)||$x(e))&&tg(e.style)?delete e.style.location:Px(e)&&ag(e.children)})}function d2(t,e){e===void 0&&(e={}),e=Nt({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new o2(t,e).parse();if(n.err){var r=SyntaxError(Et[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e?.captureLocation||ag(n.val),n.val}function lp(t,e){var n=e&&e.cache?e.cache:v2,r=e&&e.serializer?e.serializer:m2,i=e&&e.strategy?e.strategy:h2;return i(t,{cache:n,serializer:r})}function f2(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ux(t,e,n,r){var i=f2(r)?r:n(r),s=e.get(i);return typeof s>"u"&&(s=t.call(this,r),e.set(i,s)),s}function jx(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=e.get(i);return typeof s>"u"&&(s=t.apply(this,r),e.set(i,s)),s}function Am(t,e,n,r,i){return n.bind(e,t,r,i)}function h2(t,e){var n=t.length===1?Ux:jx;return Am(t,this,n,e.cache.create(),e.serializer)}function p2(t,e){return Am(t,this,jx,e.cache.create(),e.serializer)}function g2(t,e){return Am(t,this,Ux,e.cache.create(),e.serializer)}var m2=function(){return JSON.stringify(arguments)};function $m(){this.cache=Object.create(null)}$m.prototype.get=function(t){return this.cache[t]};$m.prototype.set=function(t,e){this.cache[t]=e};var v2={create:function(){return new $m}},cp={variadic:p2,monadic:g2},rl;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(rl||(rl={}));var Ff=function(t){Mf(e,t);function e(n,r,i){var s=t.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),$_=function(t){Mf(e,t);function e(n,r,i,s){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),rl.INVALID_VALUE,s)||this}return e}(Ff),b2=function(t){Mf(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),rl.INVALID_VALUE,i)||this}return e}(Ff),_2=function(t){Mf(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),rl.MISSING_VALUE,r)||this}return e}(Ff),or;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(or||(or={}));function y2(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==or.literal||n.type!==or.literal?e.push(n):r.value+=n.value,e},[])}function w2(t){return typeof t=="function"}function bd(t,e,n,r,i,s,a){if(t.length===1&&w_(t[0]))return[{type:or.literal,value:t[0].value}];for(var l=[],c=0,u=t;c<u.length;c++){var d=u[c];if(w_(d)){l.push({type:or.literal,value:d.value});continue}if(MA(d)){typeof s=="number"&&l.push({type:or.literal,value:n.getNumberFormat(e).format(s)});continue}var f=d.value;if(!(i&&f in i))throw new _2(f,a);var h=i[f];if(RA(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?or.literal:or.object,value:h});continue}if(Ax(d)){var p=typeof d.style=="string"?r.date[d.style]:tg(d.style)?d.style.parsedOptions:void 0;l.push({type:or.literal,value:n.getDateTimeFormat(e,p).format(h)});continue}if($x(d)){var p=typeof d.style=="string"?r.time[d.style]:tg(d.style)?d.style.parsedOptions:r.time.medium;l.push({type:or.literal,value:n.getDateTimeFormat(e,p).format(h)});continue}if(Tx(d)){var p=typeof d.style=="string"?r.number[d.style]:Lx(d.style)?d.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),l.push({type:or.literal,value:n.getNumberFormat(e,p).format(h)});continue}if(Px(d)){var g=d.children,m=d.value,v=i[m];if(!w2(v))throw new b2(m,"function",a);var _=bd(g,e,n,r,i,s),b=v(_.map(function(k){return k.value}));Array.isArray(b)||(b=[b]),l.push.apply(l,b.map(function(k){return{type:typeof k=="string"?or.literal:or.object,value:k}}))}if(Cx(d)){var y=d.options[h]||d.options.other;if(!y)throw new $_(d.value,h,Object.keys(d.options),a);l.push.apply(l,bd(y.value,e,n,r,i));continue}if(Ox(d)){var y=d.options["=".concat(h)];if(!y){if(!Intl.PluralRules)throw new Ff(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,rl.MISSING_INTL_API,a);var w=n.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));y=d.options[w]||d.options.other}if(!y)throw new $_(d.value,h,Object.keys(d.options),a);l.push.apply(l,bd(y.value,e,n,r,i,h-(d.offset||0)));continue}}return y2(l)}function x2(t,e){return e?Nt(Nt(Nt({},t||{}),e||{}),Object.keys(t).reduce(function(n,r){return n[r]=Nt(Nt({},t[r]),e[r]||{}),n},{})):t}function k2(t,e){return e?Object.keys(t).reduce(function(n,r){return n[r]=x2(t[r],e[r]),n},Nt({},t)):t}function up(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function S2(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lp(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ap([void 0],n,!1)))},{cache:up(t.number),strategy:cp.variadic}),getDateTimeFormat:lp(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ap([void 0],n,!1)))},{cache:up(t.dateTime),strategy:cp.variadic}),getPluralRules:lp(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ap([void 0],n,!1)))},{cache:up(t.pluralRules),strategy:cp.variadic})}}var Bx=function(){function t(e,n,r,i){var s=this;if(n===void 0&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=s.formatToParts(c);if(u.length===1)return u[0].value;var d=u.reduce(function(f,h){return!f.length||h.type!==or.literal||typeof f[f.length-1]!="string"?f.push(h.value):f[f.length-1]+=h.value,f},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return bd(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var l=DA(a,["formatters"]);this.ast=t.__parse(e,Nt(Nt({},l),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=k2(t.formats,r),this.formatters=i&&i.formatters||S2(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=d2,t.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"}}},t}();function E2(t,e){if(e==null)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const s=n.slice(i,n.length).join(".");if(s in r){r=r[s];break}}r=r[n[i]]}else r=void 0;return r}const Fs={},T2=(t,e,n)=>n&&(e in Fs||(Fs[e]={}),t in Fs[e]||(Fs[e][t]=n),n),qx=(t,e)=>{if(e==null)return;if(e in Fs&&t in Fs[e])return Fs[e][t];const n=hu(e);for(let r=0;r<n.length;r++){const i=n[r],s=$2(i,t);if(s)return T2(t,e,s)}};let Cm;const fu=Ke({});function A2(t){return Cm[t]||null}function Hx(t){return t in Cm}function $2(t,e){if(!Hx(t))return null;const n=A2(t);return E2(n,e)}function C2(t){if(t==null)return;const e=hu(t);for(let n=0;n<e.length;n++){const r=e[n];if(Hx(r))return r}}function Om(t,...e){delete Fs[t],fu.update(n=>(n[t]=Ex.all([n[t]||{},...e]),n))}const Vx=Vn([fu],([t])=>Object.keys(t));fu.subscribe(t=>Cm=t);const _d={};function O2(t,e){_d[t].delete(e),_d[t].size===0&&delete _d[t]}function Wx(t){return _d[t]}function P2(t){return hu(t).map(e=>{const n=Wx(e);return[e,n?[...n]:[]]}).filter(([,e])=>e.length>0)}function qd(t){return t==null?!1:hu(t).some(e=>{var n;return(n=Wx(e))==null?void 0:n.size})}function L2(t,e){return Promise.all(e.map(r=>(O2(t,r),r().then(i=>i.default||i)))).then(r=>Om(t,...r))}const Kl={};function Yx(t){if(!qd(t))return t in Kl?Kl[t]:Promise.resolve();const e=P2(t);return Kl[t]=Promise.all(e.map(([n,r])=>L2(n,r))).then(()=>{if(qd(t))return Yx(t);delete Kl[t]}),Kl[t]}var C_=Object.getOwnPropertySymbols,N2=Object.prototype.hasOwnProperty,I2=Object.prototype.propertyIsEnumerable,D2=(t,e)=>{var n={};for(var r in t)N2.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C_)for(var r of C_(t))e.indexOf(r)<0&&I2.call(t,r)&&(n[r]=t[r]);return n};const R2={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function M2({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${hu(t).join('", "')}".${qd(aa())?`
|
|
4
4
|
|
|
@@ -655,7 +655,7 @@ input.svelte-1lbg3e3::placeholder,
|
|
|
655
655
|
text-align: var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, left));
|
|
656
656
|
text-indent: var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));
|
|
657
657
|
letter-spacing: var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));
|
|
658
|
-
}`};function Ln(t,e){Q(e,!0),Te(t,aC);let n=E(e,"value",15),r=E(e,"element",15),i=E(e,"role",3,"textbox"),s=E(e,"keyShortcuts",3,void 0),a=E(e,"name",3,void 0),l=E(e,"showInlineLabel",3,!1),c=E(e,"inputmode",3,"text"),u=E(e,"flex",3,!1),d=E(e,"hidden",3,!1),f=E(e,"disabled",3,!1),h=E(e,"readonly",3,!1),p=E(e,"required",3,!1),g=E(e,"invalid",3,!1),m=ot(e,["$$slots","$$events","$$legacy","value","element","role","keyShortcuts","name","showInlineLabel","inputmode","flex","class","hidden","disabled","readonly","required","invalid","aria-label","children"
|
|
658
|
+
}`};function Ln(t,e){Q(e,!0),Te(t,aC);let n=E(e,"value",15),r=E(e,"element",15),i=E(e,"role",3,"textbox"),s=E(e,"keyShortcuts",3,void 0),a=E(e,"name",3,void 0),l=E(e,"showInlineLabel",3,!1),c=E(e,"inputmode",3,"text"),u=E(e,"flex",3,!1),d=E(e,"hidden",3,!1),f=E(e,"disabled",3,!1),h=E(e,"readonly",3,!1),p=E(e,"required",3,!1),g=E(e,"invalid",3,!1),m=ot(e,["$$slots","$$events","$$legacy","value","element","role","keyShortcuts","name","showInlineLabel","inputmode","flex","class","hidden","disabled","readonly","required","invalid","aria-label","children"]);const v=sr("input");var _=sC(),b=I(_);Ot(b,k=>r(k),()=>r());let y;var w=N(b,2);B(w,()=>e["aria-label"]&&l(),k=>{var S=iC();Ce(S,"id",`${v??""}-label`);var A=I(S);U(()=>{ut(S,"hidden",!!n()),K(A,e["aria-label"])}),T(k,S)}),U(()=>{Dr(_,`sui text-input ${e.class??""} svelte-1lbg3e3`),_.hidden=d(),ut(_,"flex",u()),ut(_,"disabled",f()),ut(_,"readonly",h()),y=bt(b,y,{...m,type:"text",role:i(),name:a()||void 0,tabindex:f()?-1:0,disabled:f()||void 0,readOnly:h()||void 0,inputmode:c(),"aria-hidden":d(),"aria-disabled":f(),"aria-readonly":h(),"aria-required":p(),"aria-invalid":g()},"svelte-1lbg3e3")}),lu(()=>Rf(b,n,k=>n(k))),sa(b,(k,S)=>Jx(k,S),s),T(t,_),ee()}var oC=M('<!> <div class="input-outer svelte-1cxrmev"><!></div>',1);const lC={hash:"svelte-1cxrmev",code:`.input-outer.svelte-1cxrmev {
|
|
659
659
|
margin: 12px 0 0;
|
|
660
660
|
}`};function cC(t,e){Q(e,!0),Te(t,lC);let n=E(e,"open",15,!1),r=E(e,"value",15,""),i=E(e,"textboxAttrs",19,()=>({})),s=ot(e,["$$slots","$$events","$$legacy","open","value","textboxAttrs","children","input","onkeydown","onkeyup","onkeypress","oninput"]);Vi(t,Gt(()=>s,{get open(){return n()},set open(a){n(a)},role:"alertdialog",children:(a,l)=>{var c=oC(),u=z(c);je(u,()=>e.children??Je);var d=N(u,2),f=I(d);B(f,()=>e.input,h=>{var p=Y(),g=z(p);je(g,()=>e.input),T(h,p)},h=>{Ln(h,Gt({get value(){return r()},set value(p){r(p)},flex:!0,autofocus:!0},i,{get onkeydown(){return e.onkeydown},get onkeyup(){return e.onkeyup},get onkeypress(){return e.onkeypress},get oninput(){return e.oninput}}))}),T(a,c)},$$slots:{default:!0}})),ee()}var uC=M('<div role="row" class="row-group-caption svelte-qoydnw"><!></div>'),dC=M("<div><!> <!></div>");const fC={hash:"svelte-qoydnw",code:`[role=rowgroup].svelte-qoydnw {
|
|
661
661
|
display: table-row-group;
|
|
@@ -690,7 +690,7 @@ input.svelte-1lbg3e3::placeholder,
|
|
|
690
690
|
.grid.svelte-s4077y.data .grid-cell {
|
|
691
691
|
border: 1px solid var(--sui-secondary-border-color);
|
|
692
692
|
padding: 8px 8px;
|
|
693
|
-
}`};function _C(t,e){Q(e,!0),Te(t,bC);let n=E(e,"element",15),r=E(e,"multiple",3,!1),i=E(e,"clickToSelect",3,!0),s=ot(e,["$$slots","$$events","$$legacy","element","class","multiple","clickToSelect","children","onChange"]);var a=vC();Ot(a,
|
|
693
|
+
}`};function _C(t,e){Q(e,!0),Te(t,bC);let n=E(e,"element",15),r=E(e,"multiple",3,!1),i=E(e,"clickToSelect",3,!0),s=ot(e,["$$slots","$$events","$$legacy","element","class","multiple","clickToSelect","children","onChange"]);var a=vC();Ot(a,d=>n(d),()=>n());var l=d=>{e.onChange?.(d)};let c;var u=I(a);je(u,()=>e.children??Je),U(()=>c=bt(a,c,{...s,role:"grid",class:`sui grid ${e.class??""}`,"aria-multiselectable":r(),onChange:l},"svelte-s4077y")),sa(a,(d,f)=>Sl(d,f),()=>({clickToSelect:i()})),T(t,a),ee()}var yC=M('<div><div role="none" class="inner svelte-1i49j4h"><!></div></div>');const wC={hash:"svelte-1i49j4h",code:`[role=listbox].svelte-1i49j4h {
|
|
694
694
|
display: flex;
|
|
695
695
|
flex-direction: column;
|
|
696
696
|
margin: var(--sui-focus-ring-width);
|
|
@@ -798,7 +798,7 @@ input.svelte-1lbg3e3::placeholder,
|
|
|
798
798
|
.menu.svelte-p2ez68 [role="separator"] {
|
|
799
799
|
margin: var(--sui-menu-divider-margin, 4px);
|
|
800
800
|
background-color: var(--sui-menu-divider-color, var(--sui-control-border-color));
|
|
801
|
-
}`};function mr(t,e){Q(e,!0),Te(t,$C);let n=E(e,"hidden",3,!1),r=E(e,"disabled",3,!1),i=ot(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children","onChange"]);var s=AC();let
|
|
801
|
+
}`};function mr(t,e){Q(e,!0),Te(t,$C);let n=E(e,"hidden",3,!1),r=E(e,"disabled",3,!1),i=ot(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children","onChange"]);var s=AC(),a=u=>{e.onChange?.(u)};let l;var c=I(s);je(c,()=>e.children??Je),U(()=>l=bt(s,l,{...i,role:"menu",class:`sui menu ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),onChange:a},"svelte-p2ez68")),sa(s,u=>Sl(u)),T(t,s),ee()}var CC=M('<span role="none" class="icon-outer svelte-1vfv2b4"><!></span>'),OC=M('<div role="none" class="content svelte-1vfv2b4"><!></div> <!>',1),PC=M('<div role="none"><!> <!></div>');const LC={hash:"svelte-1vfv2b4",code:`.menuitem.svelte-1vfv2b4 {
|
|
802
802
|
position: relative;
|
|
803
803
|
}
|
|
804
804
|
.menuitem.svelte-1vfv2b4 button {
|
|
@@ -868,7 +868,7 @@ input.svelte-1lbg3e3::placeholder,
|
|
|
868
868
|
|
|
869
869
|
.inner.svelte-vlpdko {
|
|
870
870
|
display: contents;
|
|
871
|
-
}`};function DC(t,e){Q(e,!0),Te(t,IC);let n=E(e,"hidden",3,!1),r=E(e,"disabled",3,!1),i=E(e,"readonly",3,!1),s=E(e,"required",3,!1),a=E(e,"invalid",3,!1),l=E(e,"orientation",3,"horizontal"),c=ot(e,["$$slots","$$events","$$legacy","class","hidden","disabled","readonly","required","invalid","orientation","children","onChange"]);var u=NC();let
|
|
871
|
+
}`};function DC(t,e){Q(e,!0),Te(t,IC);let n=E(e,"hidden",3,!1),r=E(e,"disabled",3,!1),i=E(e,"readonly",3,!1),s=E(e,"required",3,!1),a=E(e,"invalid",3,!1),l=E(e,"orientation",3,"horizontal"),c=ot(e,["$$slots","$$events","$$legacy","class","hidden","disabled","readonly","required","invalid","orientation","children","onChange"]);var u=NC(),d=g=>{e.onChange?.(g)};let f;var h=I(u),p=I(h);je(p,()=>e.children??Je),U(()=>{f=bt(u,f,{...c,role:"radiogroup",class:`sui radio-group ${e.class??""} ${l()??""}`,tabindex:"-1",hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":s(),"aria-invalid":a(),"aria-orientation":l(),onChange:d},"svelte-vlpdko"),h.inert=r()}),sa(u,g=>Sl(g)),T(t,u),ee()}var RC=M('<label class="svelte-1r3lwmu"><!></label>'),MC=M("<span><!> <!></span>");const FC={hash:"svelte-1r3lwmu",code:`.radio.svelte-1r3lwmu {
|
|
872
872
|
display: inline-flex;
|
|
873
873
|
align-items: center;
|
|
874
874
|
gap: 8px;
|
|
@@ -2656,8 +2656,8 @@ ${f}`}catch(h){console.error(h)}}return""},jp=(t,e,n)=>{const r=br(t);if(!r)retu
|
|
|
2656
2656
|
height: 100%;
|
|
2657
2657
|
background-color: var(--sui-info-foreground-color);
|
|
2658
2658
|
transition: width 250ms;
|
|
2659
|
-
}`};function aj(t,e){Q(e,!1),Te(t,sj);const n=me(),r=()=>R(le,"$_",n),i=()=>R(Ai,"$user",n),s=()=>R(hl,"$dataLoaded",n),a=()=>R(_t,"$siteConfig",n),l=()=>R(Vg,"$siteConfigError",n),c=()=>R(Bg,"$prefsError",n),u=()=>R(xt,"$prefs",n),d=()=>R(Mu,"$signInError",n),f=()=>R(X1,"$inAuthPopup",n),h=()=>R(Ha,"$unauthenticated",n),p=()=>R(Nd,"$dataLoadedProgress",n);F(()=>r(),()=>{We(Ii,r()("welcome_to_sveltia_cms"))}),Ie(),ge();var g=ij(),m=I(g),v=I(m),_=N(v,4);B(_,l,b=>{var y=JU(),w=I(y);U(()=>K(w,`${l().message??""}
|
|
2660
|
-
${r()("config.error.try_again")??""}`)),T(b,y)},b=>{var y=Y(),w=z(y);B(w,c,k=>{var S=XU(),A=I(S);U(()=>K(A,r()(`prefs.error.${c().type}`))),T(k,S)},k=>{var S=Y(),A=z(S);B(A,()=>!a()||!u(),$=>{var O=QU(),P=I(O);U(()=>K(P,r()("loading_site_config"))),T($,O)},$=>{var O=Y(),P=z(O);B(P,()=>d().message&&!d().canRetry,D=>{var j=ej(),H=I(j),q=I(H);U(()=>K(q,r()("loading_site_data_error")));var W=N(H,2),G=I(W);Or(G,()=>li.sanitize(It.parseInline(d().message),{ALLOWED_TAGS:["a","code"],ALLOWED_ATTR:["href"]})),T(D,j)},D=>{var j=Y(),H=z(j);B(H,f,q=>{var W=tj(),G=I(W);U(()=>K(G,r()("authorizing"))),T(q,W)},q=>{var W=Y(),G=z(W);B(G,()=>!i()||h(),te=>{GU(te,{})},te=>{var J=Y(),V=z(J);B(V,()=>!s(),Z=>{var ae=rj(),ne=z(ae),ve=I(ne);U(()=>K(ve,r()("loading_site_data")));var se=N(ne,2);B(se,()=>p()!==void 0,oe=>{var fe=nj(),Ee=I(fe);U(()=>{Ce(fe,"aria-valuenow",p()),Ar(Ee,"width",`${p()}%`)}),T(oe,fe)}),T(Z,ae)},null,!0),T(te,J)},!0),T(q,W)},!0),T(D,j)},!0),T($,O)},!0),T(k,S)},!0),T(b,y)}),U(()=>
|
|
2659
|
+
}`};function aj(t,e){Q(e,!1),Te(t,sj);const n=me(),r=()=>R(le,"$_",n),i=()=>R(Ai,"$user",n),s=()=>R(hl,"$dataLoaded",n),a=()=>R(_t,"$siteConfig",n),l=()=>R(Vg,"$siteConfigError",n),c=()=>R(Bg,"$prefsError",n),u=()=>R(xt,"$prefs",n),d=()=>R(Mu,"$signInError",n),f=()=>R(X1,"$inAuthPopup",n),h=()=>R(Ha,"$unauthenticated",n),p=()=>R(Nd,"$dataLoadedProgress",n);F(()=>r(),()=>{We(Ii,r()("welcome_to_sveltia_cms"))}),Ie(),ge();var g=ij(),m=I(g),v=I(m);U(()=>Ce(v,"src",a()?.logo_url||`data:image/svg+xml;base64,${btoa(U1)}`));var _=N(v,4);B(_,l,b=>{var y=JU(),w=I(y);U(()=>K(w,`${l().message??""}
|
|
2660
|
+
${r()("config.error.try_again")??""}`)),T(b,y)},b=>{var y=Y(),w=z(y);B(w,c,k=>{var S=XU(),A=I(S);U(()=>K(A,r()(`prefs.error.${c().type}`))),T(k,S)},k=>{var S=Y(),A=z(S);B(A,()=>!a()||!u(),$=>{var O=QU(),P=I(O);U(()=>K(P,r()("loading_site_config"))),T($,O)},$=>{var O=Y(),P=z(O);B(P,()=>d().message&&!d().canRetry,D=>{var j=ej(),H=I(j),q=I(H);U(()=>K(q,r()("loading_site_data_error")));var W=N(H,2),G=I(W);Or(G,()=>li.sanitize(It.parseInline(d().message),{ALLOWED_TAGS:["a","code"],ALLOWED_ATTR:["href"]})),T(D,j)},D=>{var j=Y(),H=z(j);B(H,f,q=>{var W=tj(),G=I(W);U(()=>K(G,r()("authorizing"))),T(q,W)},q=>{var W=Y(),G=z(W);B(G,()=>!i()||h(),te=>{GU(te,{})},te=>{var J=Y(),V=z(J);B(V,()=>!s(),Z=>{var ae=rj(),ne=z(ae),ve=I(ne);U(()=>K(ve,r()("loading_site_data")));var se=N(ne,2);B(se,()=>p()!==void 0,oe=>{var fe=nj(),Ee=I(fe);U(()=>{Ce(fe,"aria-valuenow",p()),Ar(Ee,"width",`${p()}%`)}),T(oe,fe)}),T(Z,ae)},null,!0),T(te,J)},!0),T(q,W)},!0),T(D,j)},!0),T($,O)},!0),T(k,S)},!0),T(b,y)}),U(()=>g.inert=i()&&s()),Ic(v),T(t,g),ee()}var oj=M('<div role="alert"> <!></div>');const lj={hash:"svelte-1tew8xu",code:`.wrapper.svelte-1tew8xu {
|
|
2661
2661
|
flex: none;
|
|
2662
2662
|
display: flex;
|
|
2663
2663
|
align-items: center;
|
|
@@ -2680,7 +2680,7 @@ ${f}`}catch(h){console.error(h)}}return""},jp=(t,e,n)=>{const r=br(t);if(!r)retu
|
|
|
2680
2680
|
}
|
|
2681
2681
|
.wrapper.svelte-1tew8xu button {
|
|
2682
2682
|
font-size: inherit !important;
|
|
2683
|
-
}`};function cj(t,e){Q(e,!1),Te(t,lj);const n=me(),r=()=>R(cn,"$backend",n),i=()=>R(_t,"$siteConfig",n),s=()=>R(le,"$_",n),a=5*60*1e3;let l=C(!1),c=0,u=C("none");const d=async()=>{r()?.checkStatus&&x(u,await r().checkStatus())},f=()=>{d(),c=window.setInterval(()=>{d()},a)},h=()=>{window.clearInterval(c),x(u,"none")},p=()=>{o(l)&&(r()?.checkStatus&&!i()?.backend.api_root?f():h())};Vt(()=>(x(l,!0),()=>{h()})),F(()=>(o(l),r(),i()),()=>{o(l),r(),i(),p()}),Ie(),ge();var g=Y(),m=z(g);B(m,()=>["minor","major"].includes(o(u)),v=>{var _=oj(),b=I(_);U(()=>K(b,`${s()(`backend_status.${o(u)}_incident`,{values:{service:r()?.label}})??""} `));var y=N(b),w=L(()=>s()("details"));Qe(y,{variant:"link",get label(){return o(w)},onclick:()=>{window.open(r()?.statusDashboardURL,"_blank")}}),U(()=>Dr(_,`wrapper ${o(u)??""} svelte-1tew8xu`)),T(v,_)}),T(t,g),ee()}const gE="0.39.
|
|
2683
|
+
}`};function cj(t,e){Q(e,!1),Te(t,lj);const n=me(),r=()=>R(cn,"$backend",n),i=()=>R(_t,"$siteConfig",n),s=()=>R(le,"$_",n),a=5*60*1e3;let l=C(!1),c=0,u=C("none");const d=async()=>{r()?.checkStatus&&x(u,await r().checkStatus())},f=()=>{d(),c=window.setInterval(()=>{d()},a)},h=()=>{window.clearInterval(c),x(u,"none")},p=()=>{o(l)&&(r()?.checkStatus&&!i()?.backend.api_root?f():h())};Vt(()=>(x(l,!0),()=>{h()})),F(()=>(o(l),r(),i()),()=>{o(l),r(),i(),p()}),Ie(),ge();var g=Y(),m=z(g);B(m,()=>["minor","major"].includes(o(u)),v=>{var _=oj(),b=I(_);U(()=>K(b,`${s()(`backend_status.${o(u)}_incident`,{values:{service:r()?.label}})??""} `));var y=N(b),w=L(()=>s()("details"));Qe(y,{variant:"link",get label(){return o(w)},onclick:()=>{window.open(r()?.statusDashboardURL,"_blank")}}),U(()=>Dr(_,`wrapper ${o(u)??""} svelte-1tew8xu`)),T(v,_)}),T(t,g),ee()}const gE="0.39.5";var uj=M('<div role="alert" class="wrapper svelte-103hdap"> <!></div>');const dj={hash:"svelte-103hdap",code:`.wrapper.svelte-103hdap {
|
|
2684
2684
|
flex: none;
|
|
2685
2685
|
display: flex;
|
|
2686
2686
|
align-items: center;
|
|
@@ -3570,10 +3570,10 @@ div.svelte-1xowtfp :is(video, img) {
|
|
|
3570
3570
|
width: 100%;
|
|
3571
3571
|
height: auto;
|
|
3572
3572
|
aspect-ratio: 16/9;
|
|
3573
|
-
}`};function Pq(t,e){Q(e,!1),Te(t,Oq);const n=me(),r=()=>R(le,"$_",n),i=C();let s=E(e,"url",8),a=C(),l=C(!0);Vt(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:d,violatedDirective:f})=>{d===new URL(o(i)).origin&&f==="frame-src"&&x(l,!1)})}),F(()=>ce(s()),()=>{x(i,NU(s()))}),Ie(),ge();var c=Cq();Ot(c,d=>x(a,d),()=>o(a));var u=I(c);B(u,()=>o(l),d=>{var f=Y(),h=z(f);wl(h,()=>Ra(o(a)),null,p=>{var g=Aq();U(()=>Ce(g,"
|
|
3573
|
+
}`};function Pq(t,e){Q(e,!1),Te(t,Oq);const n=me(),r=()=>R(le,"$_",n),i=C();let s=E(e,"url",8),a=C(),l=C(!0);Vt(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:d,violatedDirective:f})=>{d===new URL(o(i)).origin&&f==="frame-src"&&x(l,!1)})}),F(()=>ce(s()),()=>{x(i,NU(s()))}),Ie(),ge();var c=Cq();Ot(c,d=>x(a,d),()=>o(a));var u=I(c);B(u,()=>o(l),d=>{var f=Y(),h=z(f);wl(h,()=>Ra(o(a)),null,p=>{var g=Aq();U(()=>Ce(g,"src",encodeURI(o(i)))),U(()=>Ce(g,"title",r()("youtube_video_player"))),T(p,g)}),T(d,f)},d=>{var f=$q();U(()=>Ce(f,"href",encodeURI(s())));var h=I(f);U(()=>K(h,s())),T(d,f)}),T(t,c),ee()}var Lq=M("<a> </a>"),Nq=M("<a> </a>"),Iq=M('<p class="svelte-162himw"><!></p>');const Dq={hash:"svelte-162himw",code:`.title.svelte-162himw {
|
|
3574
3574
|
font-size: var(--sui-font-size-xxx-large);
|
|
3575
3575
|
font-weight: 600;
|
|
3576
|
-
}`};function Rq(t,e){Q(e,!1),Te(t,Dq);const n=C(),r=C();E(e,"locale",8),E(e,"keyPath",8);let i=E(e,"fieldConfig",8),s=E(e,"currentValue",8);F(()=>(o(n),o(r),ce(i())),()=>{(c=>(x(n,c.name),x(r,Oe(c.type,"text"))))(i())}),Ie(),ge();var a=Y(),l=z(a);B(l,()=>typeof s()=="string"&&s().trim(),c=>{var u=Iq(),d=I(u);B(d,()=>o(r)==="url"||Tc(s()),f=>{var h=Y(),p=z(h);B(p,()=>LU(s()),g=>{Pq(g,{get url(){return s()}})},g=>{var m=Lq()
|
|
3576
|
+
}`};function Rq(t,e){Q(e,!1),Te(t,Dq);const n=C(),r=C();E(e,"locale",8),E(e,"keyPath",8);let i=E(e,"fieldConfig",8),s=E(e,"currentValue",8);F(()=>(o(n),o(r),ce(i())),()=>{(c=>(x(n,c.name),x(r,Oe(c.type,"text"))))(i())}),Ie(),ge();var a=Y(),l=z(a);B(l,()=>typeof s()=="string"&&s().trim(),c=>{var u=Iq(),d=I(u);B(d,()=>o(r)==="url"||Tc(s()),f=>{var h=Y(),p=z(h);B(p,()=>LU(s()),g=>{Pq(g,{get url(){return s()}})},g=>{var m=Lq();U(()=>Ce(m,"href",encodeURI(s())));var v=I(m);U(()=>K(v,s())),T(g,m)}),T(f,h)},f=>{var h=Y(),p=z(h);B(p,()=>o(r)==="email",g=>{var m=Nq();U(()=>Ce(m,"href",`mailto:${encodeURI(s())??""}`));var v=I(m);U(()=>K(v,s())),T(g,m)},g=>{var m=Ge();U(()=>K(m,s())),T(g,m)},!0),T(f,h)}),U(()=>ut(u,"title",o(n)==="title")),T(c,u)}),T(t,a),ee()}function Mq(t,e){Q(e,!1),me(),E(e,"locale",8),E(e,"keyPath",8);let n=E(e,"fieldId",8);E(e,"fieldLabel",8),E(e,"fieldConfig",8);let r=E(e,"currentValue",12),i=E(e,"readonly",8,!1),s=E(e,"required",8,!1),a=E(e,"invalid",8,!1),l=C("");const c=f=>{o(l)!==f&&x(l,f)},u=f=>{r()!==f&&r(f)},{extraHint:d}=Ga("field-editor");We(d,BE),F(()=>ce(r()),()=>{c(typeof r()=="string"?r().trim():"")}),F(()=>o(l),()=>{u(o(l)?.trim()??"")}),Ie(),ge(),qf(t,{get value(){return o(l)},set value(f){x(l,f)},flex:!0,get readonly(){return i()},get required(){return s()},get invalid(){return a()},get"aria-labelledby"(){return`${n()??""}-label`},get"aria-errormessage"(){return`${n()??""}-error`},autoResize:!0,$$legacy:!0}),ee()}var Fq=M('<p class="svelte-tzbr78"> </p>');const zq={hash:"svelte-tzbr78",code:`p.svelte-tzbr78 {
|
|
3577
3577
|
white-space: pre-wrap;
|
|
3578
3578
|
}`};function Uq(t,e){Q(e,!1),Te(t,zq),E(e,"locale",8),E(e,"keyPath",8),E(e,"fieldConfig",8);let n=E(e,"currentValue",8);ge();var r=Y(),i=z(r);B(i,()=>typeof n()=="string"&&n().trim(),s=>{var a=Fq(),l=I(a);U(()=>K(l,n())),T(s,a)}),T(t,r),ee()}function jq(t,e){Q(e,!1);const n=me(),r=()=>R(at,"$entryDraft",n),i=C(),s=C(),a=C();let l=E(e,"locale",8);E(e,"keyPath",8);let c=E(e,"fieldId",8);E(e,"fieldLabel",8);let u=E(e,"fieldConfig",8),d=E(e,"currentValue",12),f=E(e,"readonly",8,!1),h=E(e,"required",8,!1),p=E(e,"invalid",8,!1);Vt(()=>{d()||(l()===o(a)||[!0,"translate"].includes(u()?.i18n??!1))&&d(LE(u()))}),F(()=>(o(i),o(s),r()),()=>{(m=>(x(i,m.collection),x(s,m.collectionFile)))(r()??{})}),F(()=>(o(a),o(s),o(i),ir),()=>{(m=>x(a,m.defaultLocale))((o(s)??o(i))?._i18n??ir)}),Ie(),ge();var g=L(()=>f()||u().read_only!==!1);Ln(t,{get value(){return d()},set value(m){d(m)},flex:!0,get readonly(){return o(g)},get required(){return h()},get invalid(){return p()},get"aria-labelledby"(){return`${c()??""}-label`},get"aria-errormessage"(){return`${c()??""}-error`},$$legacy:!0}),ee()}var Bq=M('<p class="svelte-1e2mlgo"> </p>');const qq={hash:"svelte-1e2mlgo",code:`p.svelte-1e2mlgo {
|
|
3579
3579
|
font-family: var(--sui-font-family-monospace);
|
|
@@ -3820,7 +3820,7 @@ kbd.svelte-h10dbf {
|
|
|
3820
3820
|
font-family: var(--sui-control-font-family);
|
|
3821
3821
|
font-size: var(--sui-control-font-size);
|
|
3822
3822
|
line-height: var(--sui-control-line-height);
|
|
3823
|
-
}`};function T6(t,e){Q(e,!1),Te(t,E6);const n=me(),r=()=>R(le,"$_",n);let i=E(e,"open",12,!1);const s=ui(),a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let l=C("Ctrl");Vt(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&x(l,"⌘")}),ge();var c=L(()=>r()("help.keyboard_shortcuts"));Vi(t,{get title(){return o(c)},get open(){return i()},set open(u){i(u)},showOk:!1,showCancel:!1,showClose:!0,onClose:u=>{s("close",u.detail)},children:(u,d)=>{var f=S6(),h=I(f),p=L(()=>r()("help.keyboard_shortcuts"));vO(h,{get"aria-label"(){return o(p)},children:(g,m)=>{var v=Y(),_=z(v);ct(_,1,()=>a,({feature:b,keys:y})=>y,(b,y)=>{let w=()=>o(y).feature,k=()=>o(y).keys;pO(b,{children:(S,A)=>{var $=k6(),O=z($);I_(O,{class:"feature",children:(D,j)=>{var H=Ge();U(()=>K(H,r()(`keyboard_shortcuts.${w()}`))),T(D,H)},$$slots:{default:!0}});var P=N(O,2);I_(P,{class:"keys",children:(D,j)=>{var H=Y(),q=z(H);ct(q,1,()=>k().split("+"),Nr,(W,G)=>{var te=x6(),J=I(te);U(()=>K(J,o(G).replace("Accel",o(l)))),T(W,te)}),T(D,H)},$$slots:{default:!0}}),T(S,$)},$$slots:{default:!0}})}),T(g,v)},$$slots:{default:!0}}),T(u,f)},$$slots:{default:!0},$$legacy:!0}),ee()}var A6=M('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function $6(t,e){Q(e,!1);const n=me(),r=()=>R(xt,"$prefs",n),i=()=>R(le,"$_",n),s=C();F(()=>r(),()=>{x(s,r().underlineLinks)}),F(()=>(r(),o(s)),()=>{r().underlineLinks!==o(s)&&Ct(xt,ze(r).underlineLinks=!!o(s),ze(r))}),Ie(),ge(),Tl(t,{id:"prefs-tab-accessibility",children:(a,l)=>{var c=A6(),u=I(c),d=I(u);U(()=>K(d,i()("prefs.accessibility.underline_links.title")));var f=N(u,2),h=I(f);U(()=>K(h,i()("prefs.accessibility.underline_links.description")));var p=N(f,2),g=I(p),m=L(()=>i()("prefs.accessibility.underline_links.switch_label"));mu(g,{get checked(){return o(s)},set checked(v){x(s,v)},get label(){return o(m)},$$legacy:!0}),T(a,c)},$$slots:{default:!0}}),ee()}var C6=M('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),O6=M('<!> <section><h4> </h4> <p> </p> <div role="none"><!></div></section>',1);function P6(t,e){Q(e,!1);const n=me(),r=()=>R(_t,"$siteConfig",n),i=()=>R(xt,"$prefs",n),s=()=>R(le,"$_",n),a=C(),l=C(),c=ui();F(()=>(o(a),r()),()=>{(u=>x(a,Oe(Oe(u.backend,()=>({}),!0).automatic_deployments,void 0)))(r()??{})}),F(()=>i(),()=>{x(l,i().devModeEnabled)}),F(()=>(i(),o(l)),()=>{i().devModeEnabled!==o(l)&&Ct(xt,ze(i).devModeEnabled=!!o(l),ze(i))}),Ie(),ge(),Tl(t,{id:"prefs-tab-advanced",children:(u,d)=>{var f=O6(),h=z(f);B(h,()=>typeof o(a)=="boolean",k=>{var S=C6(),A=I(S),$=I(A);U(()=>K($,s()("prefs.advanced.deploy_hook.title")));var O=N(A,2),P=I(O);U(()=>K(P,s()("prefs.advanced.deploy_hook.description")));var D=N(O,2),j=I(D),H=L(()=>s()("prefs.advanced.deploy_hook.field_label"));Ln(j,{get value(){return i().deployHookURL},set value(q){Ct(xt,ze(i).deployHookURL=q,ze(i))},flex:!0,get label(){return o(H)},
|
|
3823
|
+
}`};function T6(t,e){Q(e,!1),Te(t,E6);const n=me(),r=()=>R(le,"$_",n);let i=E(e,"open",12,!1);const s=ui(),a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let l=C("Ctrl");Vt(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&x(l,"⌘")}),ge();var c=L(()=>r()("help.keyboard_shortcuts"));Vi(t,{get title(){return o(c)},get open(){return i()},set open(u){i(u)},showOk:!1,showCancel:!1,showClose:!0,onClose:u=>{s("close",u.detail)},children:(u,d)=>{var f=S6(),h=I(f),p=L(()=>r()("help.keyboard_shortcuts"));vO(h,{get"aria-label"(){return o(p)},children:(g,m)=>{var v=Y(),_=z(v);ct(_,1,()=>a,({feature:b,keys:y})=>y,(b,y)=>{let w=()=>o(y).feature,k=()=>o(y).keys;pO(b,{children:(S,A)=>{var $=k6(),O=z($);I_(O,{class:"feature",children:(D,j)=>{var H=Ge();U(()=>K(H,r()(`keyboard_shortcuts.${w()}`))),T(D,H)},$$slots:{default:!0}});var P=N(O,2);I_(P,{class:"keys",children:(D,j)=>{var H=Y(),q=z(H);ct(q,1,()=>k().split("+"),Nr,(W,G)=>{var te=x6(),J=I(te);U(()=>K(J,o(G).replace("Accel",o(l)))),T(W,te)}),T(D,H)},$$slots:{default:!0}}),T(S,$)},$$slots:{default:!0}})}),T(g,v)},$$slots:{default:!0}}),T(u,f)},$$slots:{default:!0},$$legacy:!0}),ee()}var A6=M('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function $6(t,e){Q(e,!1);const n=me(),r=()=>R(xt,"$prefs",n),i=()=>R(le,"$_",n),s=C();F(()=>r(),()=>{x(s,r().underlineLinks)}),F(()=>(r(),o(s)),()=>{r().underlineLinks!==o(s)&&Ct(xt,ze(r).underlineLinks=!!o(s),ze(r))}),Ie(),ge(),Tl(t,{id:"prefs-tab-accessibility",children:(a,l)=>{var c=A6(),u=I(c),d=I(u);U(()=>K(d,i()("prefs.accessibility.underline_links.title")));var f=N(u,2),h=I(f);U(()=>K(h,i()("prefs.accessibility.underline_links.description")));var p=N(f,2),g=I(p),m=L(()=>i()("prefs.accessibility.underline_links.switch_label"));mu(g,{get checked(){return o(s)},set checked(v){x(s,v)},get label(){return o(m)},$$legacy:!0}),T(a,c)},$$slots:{default:!0}}),ee()}var C6=M('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),O6=M('<!> <section><h4> </h4> <p> </p> <div role="none"><!></div></section>',1);function P6(t,e){Q(e,!1);const n=me(),r=()=>R(_t,"$siteConfig",n),i=()=>R(xt,"$prefs",n),s=()=>R(le,"$_",n),a=C(),l=C(),c=ui();F(()=>(o(a),r()),()=>{(u=>x(a,Oe(Oe(u.backend,()=>({}),!0).automatic_deployments,void 0)))(r()??{})}),F(()=>i(),()=>{x(l,i().devModeEnabled)}),F(()=>(i(),o(l)),()=>{i().devModeEnabled!==o(l)&&Ct(xt,ze(i).devModeEnabled=!!o(l),ze(i))}),Ie(),ge(),Tl(t,{id:"prefs-tab-advanced",children:(u,d)=>{var f=O6(),h=z(f);B(h,()=>typeof o(a)=="boolean",k=>{var S=C6(),A=I(S),$=I(A);U(()=>K($,s()("prefs.advanced.deploy_hook.title")));var O=N(A,2),P=I(O);U(()=>K(P,s()("prefs.advanced.deploy_hook.description")));var D=N(O,2),j=I(D),H=L(()=>s()("prefs.advanced.deploy_hook.field_label"));Ln(j,{get value(){return i().deployHookURL},set value(q){Ct(xt,ze(i).deployHookURL=q,ze(i))},flex:!0,get label(){return o(H)},onchange:()=>{c("change",{message:s()(i().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},$$legacy:!0}),T(k,S)});var p=N(h,2),g=I(p),m=I(g);U(()=>K(m,s()("prefs.advanced.developer_mode.title")));var v=N(g,2),_=I(v);U(()=>K(_,s()("prefs.advanced.developer_mode.description")));var b=N(v,2),y=I(b),w=L(()=>s()("prefs.advanced.developer_mode.switch_label"));mu(y,{get checked(){return o(l)},set checked(k){x(l,k)},get label(){return o(w)},$$legacy:!0}),T(u,f)},$$slots:{default:!0}}),ee()}var L6=M('<section><h4> </h4> <div role="none"><!></div></section>');function N6(t,e){Q(e,!1);const n=me(),r=()=>R(le,"$_",n),i=()=>R(xt,"$prefs",n);ge(),Tl(t,{id:"prefs-tab-appearance",children:(s,a)=>{var l=L6(),c=I(l),u=I(c);U(()=>K(u,r()("prefs.appearance.theme")));var d=N(c,2),f=I(d),h=L(()=>r()("prefs.appearance.select_theme"));jf(f,{get"aria-label"(){return o(h)},onChange:p=>{We(xt,{...i(),theme:p.detail.value})},children:(p,g)=>{var m=Y(),v=z(m);ct(v,0,()=>["auto","dark","light"],Nr,(_,b)=>{var y=L(()=>r()(`prefs.theme.${b}`)),w=L(()=>!i().theme&&b==="auto"||i().theme===b);sl(_,{variant:"tertiary",get label(){return o(y)},get value(){return b},get selected(){return o(w)}})}),T(p,m)},$$slots:{default:!0}}),T(s,l)},$$slots:{default:!0}}),ee()}var I6=M('<section><h4> </h4> <div role="none"><!></div></section>');function D6(t,e){Q(e,!1);const n=me(),r=()=>R(xt,"$prefs",n),i=()=>R(le,"$_",n),s=C();F(()=>r(),()=>{x(s,r().closeOnSave)}),F(()=>(r(),o(s)),()=>{r().closeOnSave!==o(s)&&Ct(xt,ze(r).closeOnSave=!!o(s),ze(r))}),Ie(),ge(),Tl(t,{id:"prefs-tab-contents",children:(a,l)=>{var c=I6(),u=I(c),d=I(u);U(()=>K(d,i()("prefs.contents.editor.title")));var f=N(u,2),h=I(f),p=L(()=>i()("prefs.contents.editor.close_on_save.switch_label"));mu(h,{get label(){return o(p)},get checked(){return o(s)},set checked(g){x(s,g)},$$legacy:!0}),T(a,c)},$$slots:{default:!0}}),ee()}var R6=M('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),M6=M('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function F6(t,e){Q(e,!1);const n=me(),r=()=>R(le,"$_",n),i=()=>R(vn,"$appLocale",n),s=()=>R(xt,"$prefs",n),a=()=>R(Vx,"$appLocales",n),l=()=>R(_t,"$siteConfig",n),c=ui();ge(),Tl(t,{id:"prefs-tab-languages",children:(u,d)=>{var f=M6(),h=z(f),p=I(h),g=I(p);U(()=>K(g,r()("prefs.languages.ui_language.title")));var m=N(p,2),v=I(m);xl(v,i,b=>{var y=L(()=>r()("prefs.languages.ui_language.select_language")),w=L(()=>i()??void 0);Nm(b,{get"aria-label"(){return o(y)},get value(){return o(w)},onChange:k=>{We(xt,{...s(),locale:k.detail.value})},children:(k,S)=>{var A=Y(),$=z(A);ct($,1,a,Nr,(O,P)=>{var D=L(()=>xs(o(P))),j=L(()=>o(P)===i());Tr(O,{get label(){return o(D)},get value(){return o(P)},get selected(){return o(j)}})}),T(k,A)},$$slots:{default:!0}})});var _=N(h,2);B(_,()=>(l()?.i18n?.locales?.length??0)>1,b=>{var y=Y(),w=z(y);ct(w,1,()=>Object.entries(AB),([k,S])=>k,(k,S)=>{let A=()=>o(S)[0],$=()=>o(S)[1];var O=R6();const P=L(()=>{const{serviceLabel:te,developerURL:J,apiKeyURL:V}=$();return{serviceLabel:te,developerURL:J,apiKeyURL:V}});var D=I(O),j=I(D);U(()=>K(j,r()("prefs.languages.translator.title",{values:{service:o(P).serviceLabel}})));var H=N(D,2),q=I(H);Or(q,()=>li.sanitize(r()("prefs.languages.translator.description",{values:{service:o(P).serviceLabel,homeHref:`href="${o(P).developerURL}"`,apiKeyHref:`href="${o(P).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var W=N(H,2),G=I(W);B(G,()=>s().apiKeys,te=>{var J=L(()=>r()("prefs.languages.translator.field_label",{values:{service:o(P).serviceLabel}}));Ln(te,{get value(){return s().apiKeys[A()]},set value(V){Ct(xt,ze(s).apiKeys[A()]=V,ze(s))},flex:!0,spellcheck:"false",get"aria-label"(){return o(J)},onChange:()=>{c("change",{message:r()(s().apiKeys?.[A()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},$$legacy:!0})}),T(k,O)}),T(b,y)}),T(u,f)},$$slots:{default:!0}}),ee()}var z6=M('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function U6(t,e){Q(e,!1);const n=me(),r=()=>R(le,"$_",n),i=()=>R(xt,"$prefs",n),s=ui();ge(),Tl(t,{id:"prefs-tab-media",children:(a,l)=>{var c=Y(),u=z(c);ct(u,1,()=>Object.entries(_c),([d,f])=>d,(d,f)=>{let h=()=>o(f)[0],p=()=>o(f)[1];var g=z6();const m=L(()=>{const{serviceLabel:S,developerURL:A,apiKeyURL:$}=p();return{serviceLabel:S,developerURL:A,apiKeyURL:$}});var v=I(g),_=I(v);U(()=>K(_,r()("prefs.media.stock_photos.title",{values:{service:o(m).serviceLabel}})));var b=N(v,2),y=I(b);Or(y,()=>li.sanitize(r()("prefs.media.stock_photos.description",{values:{service:o(m).serviceLabel,homeHref:`href="${o(m).developerURL}"`,apiKeyHref:`href="${o(m).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var w=N(b,2),k=I(w);B(k,()=>i().apiKeys,S=>{var A=L(()=>r()("prefs.media.stock_photos.field_label",{values:{service:o(m).serviceLabel}}));Ln(S,{get value(){return i().apiKeys[h()]},set value($){Ct(xt,ze(i).apiKeys[h()]=$,ze(i))},flex:!0,spellcheck:"false",get"aria-label"(){return o(A)},onChange:()=>{s("change",{message:r()(i().apiKeys?.[h()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},$$legacy:!0})}),T(d,g)}),T(a,c)},$$slots:{default:!0}}),ee()}var j6=M('<div role="none" class="wrapper svelte-187mn00"><!> <!></div>'),B6=M("<!> <!>",1);const q6={hash:"svelte-187mn00",code:`.wrapper.svelte-187mn00 {
|
|
3824
3824
|
display: flex;
|
|
3825
3825
|
}
|
|
3826
3826
|
.wrapper.svelte-187mn00 .tab-list {
|
|
@@ -3978,7 +3978,7 @@ header.svelte-13wd1r4 h2:where(.svelte-13wd1r4) {
|
|
|
3978
3978
|
pointer-events: none;
|
|
3979
3979
|
-webkit-user-select: none;
|
|
3980
3980
|
user-select: none;
|
|
3981
|
-
}`};function U5(t,e){Q(e,!1),Te(t,z5);const n=me(),r=()=>R(_t,"$siteConfig",n),i=()=>R(yd,"$isLoading",n),s=()=>R(cn,"$backend",n),a=()=>R(Ai,"$user",n),l=()=>R(hl,"$dataLoaded",n),c=()=>R(Ii,"$announcedPageStatus",n),u=C();let d=E(e,"config",8);Vt(()=>{I5(),pR(d())}),Vt(()=>{const f=document.querySelector("#nc-root");if(f&&window.getComputedStyle(f).position==="static"){const{top:h,height:p}=f.getBoundingClientRect();p?f.style.position="relative":(f.style.position="fixed",f.style.inset=`${h}px 0 0 0`)}}),F(()=>r(),()=>{x(u,r()?.logo_url)}),Ie(),ge(),wx(f=>{var h=R5(),p=N(z(h),2);U(()=>Ce(p,"type",o(u)?ys.getType(o(u))??void 0:"image/svg+xml"));var g=N(p,2);B(g,()=>Hg,m=>{var v=D5();Ce(v,"href",`${Hg??""}/admin/config.yml`),T(m,v)}),
|
|
3981
|
+
}`};function U5(t,e){Q(e,!1),Te(t,z5);const n=me(),r=()=>R(_t,"$siteConfig",n),i=()=>R(yd,"$isLoading",n),s=()=>R(cn,"$backend",n),a=()=>R(Ai,"$user",n),l=()=>R(hl,"$dataLoaded",n),c=()=>R(Ii,"$announcedPageStatus",n),u=C();let d=E(e,"config",8);Vt(()=>{I5(),pR(d())}),Vt(()=>{const f=document.querySelector("#nc-root");if(f&&window.getComputedStyle(f).position==="static"){const{top:h,height:p}=f.getBoundingClientRect();p?f.style.position="relative":(f.style.position="fixed",f.style.inset=`${h}px 0 0 0`)}}),F(()=>r(),()=>{x(u,r()?.logo_url)}),Ie(),ge(),wx(f=>{var h=R5(),p=N(z(h),2);U(()=>Ce(p,"href",o(u)||`data:image/svg+xml;base64,${btoa(U1)}`)),U(()=>Ce(p,"type",o(u)?ys.getType(o(u))??void 0:"image/svg+xml"));var g=N(p,2);B(g,()=>Hg,m=>{var v=D5();Ce(v,"href",`${Hg??""}/admin/config.yml`),T(m,v)}),T(f,h)}),Xn("mousedown",ym.body,f=>{f?.target?.matches("a")&&f.target.origin!==window.location.origin&&(f.target.target="_blank")}),aI(t,{children:(f,h)=>{var p=F5(),g=z(p);B(g,()=>!i(),_=>{var b=M5(),y=I(b);fj(y,{});var w=N(y,2);B(w,s,$=>{cj($,{})});var k=N(w,2),S=I(k);aj(S,{});var A=N(S,2);B(A,()=>a()&&l(),$=>{C5($,{})}),T(_,b)});var m=N(g,2),v=I(m);U(()=>K(v,c())),T(f,p)},$$slots:{default:!0}}),ee()}const j5=["registerCustomFormat","registerEditorComponent","registerEventListener","registerLocale","registerPreviewStyle","registerPreviewTemplate","registerWidget"],B5=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],q5="https://github.com/sveltia/sveltia-cms#compatibility";let Bw=!1;const Nb=async({config:t={}}={})=>{Bw||(Bw=!0,document.querySelector("#nc-root")||await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),kx(U5,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},H5=new Proxy({init:Nb},{get:(t,e)=>{if(e in t)return t[e];let n="";if(j5.includes(e)&&(n="CMS.%s() is not yet supported in Sveltia CMS, but we plan to implement it soon."),B5.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,q5),()=>{}}});window.CMS=H5;window.initCMS=Nb;!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&Nb();export{H5 as default,Nb as init};
|
|
3982
3982
|
/**
|
|
3983
3983
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3984
3984
|
*
|