import{dasN,wasme}from"./index-9ff358fd.js";import{gasrt}from"./_commonjsHelpers-725317a4.js";varnt=function(t){returnit(t)&&!at(t)};functionit(e){return!!e&&typeofe=="object"}functionat(e){vart=Object.prototype.toString.call(e);returnt==="[object RegExp]"||t==="[object Date]"||ht(e)}varot=typeofSymbol=="function"&&Symbol.for,st=ot?Symbol.for("react.element"):60103;functionht(e){returne.$$typeof===st}functionut(e){returnArray.isArray(e)?[]:{}}functionj(e,t){returnt.clone!==!1&&t.isMergeableObject(e)?A(ut(e),e,t):e}functionlt(e,t,r){returne.concat(t).map(function(n){returnj(n,r)})}functionft(e,t){if(!t.customMerge)returnA;varr=t.customMerge(e);returntypeofr=="function"?r:A}functionct(e){returnObject.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){returnObject.propertyIsEnumerable.call(e,t)}):[]}functionde(e){returnObject.keys(e).concat(ct(e))}functionCe(e,t){try{returntine}catch{return!1}}functionmt(e,t){returnCe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}functionpt(e,t,r){varn={};returnr.isMergeableObject(e)&&de(e).forEach(function(i){n[i]=j(e[i],r)}),de(t).forEach(function(i){mt(e,i)||(Ce(e,i)&&r.isMergeableObject(t[i])?n[i]=ft(i,r)(e[i],t[i],r):n[i]=j(t[i],r))}),n}functionA(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||lt,r.isMergeableObject=r.isMergeableObject||nt,r.cloneUnlessOtherwiseSpecified=j;varn=Array.isArray(t),i=Array.isArray(e),a=n===i;returna?n?r.arrayMerge(e,t,r):pt(e,t,r):j(t,r)}A.all=function(t,r){if(!Array.isArray(t))thrownewError("first argument should be an array");returnt.reduce(function(n,i){returnA(n,i,r)},{})};varbt=A,gt=bt;constEt=rt(gt);varae=function(e,t){returnae=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(r,n){r.__proto__=n}||function(r,n){for(variinn)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ae(e,t)};functionJ(e,t){if(typeoft!="function"&&t!==null)thrownewTypeError("Class extends value "+String(t)+" is not a constructor or null");ae(e,t);functionr(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,newr)}varb=function(){returnb=Object.assign||function(t){for(varr,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(varainr)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}returnt},b.apply(this,arguments)};functionxt(e,t){varr={};for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeofObject.getOwnPropertySymbols=="function")for(vari=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);returnr}functionK(e,t,r){if(r||arguments.length===2)for(varn=0,i=t.length,a;n<i;n++)(a||!(nint))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);returne.concat(a||Array.prototype.slice.call(t))}varm;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SE
Note:thereareatleastoneloaderstillregisteredtothislocalethatwasn't executed.`:""}`)}const Hr={fallbackLocale:null,loadingDelay:200,formats:yr,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},G=Hr;function I(){return G}function zr(e){const t=e,{formats:r}=t,n=dr(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{qe.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=_r:console.warn('[svelte-i18n]The"warnOnMissingMessages"optionisdeprecated.Pleaseusethe"handleMissingMessage"optioninstead.')),Object.assign(G,n,{initialLocale:i}),r&&("number"in r&&Object.assign(G.formats.number,r.number),"date"in r&&Object.assign(G.formats.date,r.date),"time"in r&&Object.assign(G.formats.time,r.time)),M.set(i)}const ie=me(!1);var Tr=Object.defineProperty,Br=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ne=(e,t,r)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Or=(e,t)=>{for(var r in t||(t={}))Ar.call(t,r)&&Ne(e,r,t[r]);if(Ie)for(var r of Ie(t))Pr.call(t,r)&&Ne(e,r,t[r]);return e},Ir=(e,t)=>Br(e,Sr(t));let ce;const z=me(null);function Le(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function X(e,t=I().fallbackLocale){const r=Le(e);return t?[...new Set([...r,...Le(t)])]:r}function H(){return ce??void 0}z.subscribe(e=>{ce=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Nr=e=>{if(e&&cr(e)&&Z(e)){const{loadingDelay:t}=I();let r;return typeof window<"u"&&H()!=null&&t?r=window.setTimeout(()=>ie.set(!0),t):ie.set(!0),Ke(e).then(()=>{z.set(e)}).finally(()=>{clearTimeout(r),ie.set(!1)})}return z.set(e)},M=Ir(Or({},z),{set:Nr}),Y=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Lr=Object.defineProperty,Q=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Me=(e,t,r)=>t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xe=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&Me(e,r,t[r]);if(Q)for(var r of Q(t))tt.call(t,r)&&Me(e,r,t[r]);return e},C=(e,t)=>{var r={};for(var n in e)et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q)for(var n of Q(e))t.indexOf(n)<0&&tt.call(e,n)&&(r[n]=e[n]);return r};const V=(e,t)=>{const{formats:r}=I();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mr=Y(e=>{var t=e,{locale:r,format:n}=t,i=C(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n]A"locale"mustbesettoformatnumbers');return n&&(i=V("number",n)),new Intl.NumberFormat(r,i)}),Cr=Y(e=>{var t=e,{locale:r,format:n}=t,i=C(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n]A"locale"mustbesettoformatdates');return n?i=V("date",n):Object.keys(i).length===0&&(i=V("date","short")),new Intl.DateTimeFormat(r,i)}),wr=Y(e=>{var t=e,{locale:r,format:n}=t,i=C(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n]A"locale"mustbesettoformattimevalues');returnn?i=V("time",n):Object.keys(i).length===0&&(i=V("time","short")),newIntl.DateTimeFormat(r,i)}),Rr=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnMr(xe({locale:r},n))},Ur=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnCr(xe({locale:r},n))},Gr=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnwr(xe({locale:r},n))},Dr=Y((e,t=H())=>newqe(e,t,I().formats,{ignoreTag:I().ignoreTag})),Fr=(e,t={})=>{varr,n,i,a;lets=t;typeofe=="object"&&(s=e,e=s.id);const{values:h,locale:f=H(),default:u}=s;if(f==null)thrownewError("[svelte-i18n] Cannot format a message without first setting the initial locale.");leto=Ye(e,f);if(!o)o=(a=(i=(n=(r=I()).handleMissingMessage)==null?void0:n.call(r,{local