import{dasO,wasce}from"./index-CGCTTfAD.js";import{gastt}from"./_commonjsHelpers-Cpj98o6Y.js";import{_asb,aasJ,basrt,casK}from"./tslib.es6-pJfR_DrR.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)}varst=typeofSymbol=="function"&&Symbol.for,ot=st?Symbol.for("react.element"):60103;functionht(e){returne.$$typeof===ot}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)}):[]}functionve(e){returnObject.keys(e).concat(ct(e))}functionMe(e,t){try{returntine}catch{return!1}}functionmt(e,t){returnMe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}functionpt(e,t,r){varn={};returnr.isMergeableObject(e)&&ve(e).forEach(function(i){n[i]=j(e[i],r)}),ve(t).forEach(function(i){mt(e,i)||(Me(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=tt(gt);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_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(m||(m={}));varg;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(g||(g={}));varP;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(P||(P={}));functionde(e){returne.type===g.literal}functionxt(e){returne.type===g.argument}functionCe(e){returne.type===g.number}functionwe(e){returne.type===g.date}functionRe(e){returne.type===g.time}functionUe(e){returne.type===g.select}functionGe(e){returne.type===g.plural}functionvt(e){returne.type===g.pound}functionDe(e){ret
Note:thereareatleastoneloaderstillregisteredtothislocalethatwasn't executed.`:""}`)}const _r={fallbackLocale:null,loadingDelay:200,formats:dr,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},G=_r;function N(){return G}function Qr(e){const t=e,{formats:r}=t,n=vr(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Je.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=yr: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=ce(!1);var Hr=Object.defineProperty,Tr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Ne=(e,t,r)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))Sr.call(t,r)&&Ne(e,r,t[r]);if(Ie)for(var r of Ie(t))Ar.call(t,r)&&Ne(e,r,t[r]);return e},Ir=(e,t)=>Tr(e,Br(t));let fe;const z=ce(null);function Oe(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function X(e,t=N().fallbackLocale){const r=Oe(e);return t?[...new Set([...r,...Oe(t)])]:r}function H(){return fe??void 0}z.subscribe(e=>{fe=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Nr=e=>{if(e&&fr(e)&&Z(e)){const{loadingDelay:t}=N();let r;return typeof window<"u"&&H()!=null&&t?r=window.setTimeout(()=>ie.set(!0),t):ie.set(!0),Ye(e).then(()=>{z.set(e)}).finally(()=>{clearTimeout(r),ie.set(!1)})}return z.set(e)},M=Ir(Pr({},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 Or=Object.defineProperty,Q=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Le=(e,t,r)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ee=(e,t)=>{for(var r in t||(t={}))Ke.call(t,r)&&Le(e,r,t[r]);if(Q)for(var r of Q(t))et.call(t,r)&&Le(e,r,t[r]);return e},C=(e,t)=>{var r={};for(var n in e)Ke.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&&et.call(e,n)&&(r[n]=e[n]);return r};const V=(e,t)=>{const{formats:r}=N();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Lr=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)}),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"mustbesettoformatdates');return n?i=V("date",n):Object.keys(i).length===0&&(i=V("date","short")),new Intl.DateTimeFormat(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"mustbesettoformattimevalues');returnn?i=V("time",n):Object.keys(i).length===0&&(i=V("time","short")),newIntl.DateTimeFormat(r,i)}),wr=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnLr(Ee({locale:r},n))},Rr=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnMr(Ee({locale:r},n))},Ur=(e={})=>{vart=e,{locale:r=H()}=t,n=C(t,["locale"]);returnCr(Ee({locale:r},n))},Gr=Y((e,t=H())=>newJe(e,t,N().formats,{ignoreTag:N().ignoreTag})),Dr=(e,t={})=>{varr,n,i,a;leto=t;typeofe=="object"&&(o=e,e=o.id);const{values:h,locale:f=H(),default:u}=o;if(f==null)thrownewError("[svelte-i18n] Cannot format a message without first setting the initial locale.");lets=qe(e,f);if(!s)s=(a=(i=(n=(r=N()).handleMissingMessage)==null?void0:n.call(r,{local