diff --git a/_app/immutable/chunks/BbXH6iBM.js b/_app/immutable/chunks/BbXH6iBM.js deleted file mode 100644 index 7ac494896..000000000 --- a/_app/immutable/chunks/BbXH6iBM.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_tihjtd)==null?void 0:s.base)??"/svelte-fluent";var t;const a=((t=globalThis.__sveltekit_tihjtd)==null?void 0:t.assets)??e;export{a,e as b}; diff --git a/_app/immutable/chunks/BtymlV4B.js b/_app/immutable/chunks/BtymlV4B.js new file mode 100644 index 000000000..2c5fe49d5 --- /dev/null +++ b/_app/immutable/chunks/BtymlV4B.js @@ -0,0 +1 @@ +var s;const t=((s=globalThis.__sveltekit_1dcp7n8)==null?void 0:s.base)??"/svelte-fluent";var e;const a=((e=globalThis.__sveltekit_1dcp7n8)==null?void 0:e.assets)??t;export{a,t as b}; diff --git a/_app/immutable/chunks/BLiMFxIK.js b/_app/immutable/chunks/BulkGmrm.js similarity index 96% rename from _app/immutable/chunks/BLiMFxIK.js rename to _app/immutable/chunks/BulkGmrm.js index ee2a52e89..9dc19a2be 100644 --- a/_app/immutable/chunks/BLiMFxIK.js +++ b/_app/immutable/chunks/BulkGmrm.js @@ -1 +1 @@ -import{t as i,a as d}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as c,s as t,c as p,at as o,r as h}from"./HSyAO-bR.js";import{h as f}from"./CfcRz03H.js";import{R as m}from"./BbHEq2Iy.js";const g={title:"SvelteFluent"},{title:u}=g;var v=i('
The SvelteFluent
object provides methods and properties for localization with svelte-fluent
.
You can create the SvelteFluent
object with the function.
Localize a fluent message.
Name | Type | Description |
---|---|---|
id | string | Identifier of the fluent message |
args | Record<string, FluentVariable> | Interpolation arguments for the message |
The localized message as a string
.
fluent.localize('example-message', { name: 'Example' });
`),o(8),d(s,a)}export{F as _,g as m};
+import{t as i,a as d}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as c,s as t,c as p,at as o,r as h}from"./HSyAO-bR.js";import{h as f}from"./CfcRz03H.js";import{R as m}from"./CSU6ZshI.js";const g={title:"SvelteFluent"},{title:u}=g;var v=i(' The SvelteFluent
object provides methods and properties for localization with svelte-fluent
.
You can create the SvelteFluent
object with the function.
Localize a fluent message.
Name | Type | Description |
---|---|---|
id | string | Identifier of the fluent message |
args | Record<string, FluentVariable> | Interpolation arguments for the message |
The localized message as a string
.
fluent.localize('example-message', { name: 'Example' });
`),o(8),d(s,a)}export{F as _,g as m};
diff --git a/_app/immutable/chunks/DYfHKpLH.js b/_app/immutable/chunks/BzgXux7P.js
similarity index 96%
rename from _app/immutable/chunks/DYfHKpLH.js
rename to _app/immutable/chunks/BzgXux7P.js
index eba800e7d..ce0583c12 100644
--- a/_app/immutable/chunks/DYfHKpLH.js
+++ b/_app/immutable/chunks/BzgXux7P.js
@@ -1 +1 @@
-import{t as h,a as u}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as m,s as e,c as o,at as r,r as d}from"./HSyAO-bR.js";import{h as D}from"./CfcRz03H.js";import{R as p}from"./BbHEq2Iy.js";const v={title:"createSvelteFluent"},{title:g}=v;var b=h(' Create a new object using the specified fluent bundles.
Name | Type | Description |
---|---|---|
bundles | FluentBundle[] | Defines the fluent bundles to be be used for localization |
options | {onError: (msg: string) => void} | Options |
The object.
',1);function k(i){var a=b(),l=m(a);l.textContent=g;var t=e(l,2),c=e(o(t));p(c,{name:"SvelteFluent"}),r(),d(t);var n=e(t,2);D(n,()=>'const fluent = createSvelteFluent(bundles, options);
');var s=e(n,8),f=e(o(s));p(f,{name:"SvelteFluent"}),r(),d(s),u(i,a)}export{k as _,v as m};
+import{t as h,a as u}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as m,s as e,c as o,at as r,r as d}from"./HSyAO-bR.js";import{h as D}from"./CfcRz03H.js";import{R as p}from"./CSU6ZshI.js";const v={title:"createSvelteFluent"},{title:g}=v;var b=h(' Create a new object using the specified fluent bundles.
Name | Type | Description |
---|---|---|
bundles | FluentBundle[] | Defines the fluent bundles to be be used for localization |
options | {onError: (msg: string) => void} | Options |
The object.
',1);function k(i){var a=b(),l=m(a);l.textContent=g;var t=e(l,2),c=e(o(t));p(c,{name:"SvelteFluent"}),r(),d(t);var n=e(t,2);D(n,()=>'const fluent = createSvelteFluent(bundles, options);
');var s=e(n,8),f=e(o(s));p(f,{name:"SvelteFluent"}),r(),d(s),u(i,a)}export{k as _,v as m};
diff --git a/_app/immutable/chunks/BbHEq2Iy.js b/_app/immutable/chunks/CSU6ZshI.js
similarity index 82%
rename from _app/immutable/chunks/BbHEq2Iy.js
rename to _app/immutable/chunks/CSU6ZshI.js
index 8d2cfcd52..7d024295a 100644
--- a/_app/immutable/chunks/BbHEq2Iy.js
+++ b/_app/immutable/chunks/CSU6ZshI.js
@@ -1 +1 @@
-import{t as m,a as s}from"./DU7dP48_.js";import{t as o,c as f,r as c}from"./HSyAO-bR.js";import{s as i}from"./Bba2NgsV.js";import{s as n}from"./CVILMKYO.js";import{b as p}from"./BbXH6iBM.js";var l=m(" ");function _(a,t){var e=l(),r=f(e,!0);c(e),o(()=>{n(e,"href",p+"/docs/"+(t.legacy?"legacy":"reference")+"/"+t.name),i(r,t.name)}),s(a,e)}export{_ as R};
+import{t as m,a as s}from"./DU7dP48_.js";import{t as o,c as f,r as c}from"./HSyAO-bR.js";import{s as i}from"./Bba2NgsV.js";import{s as n}from"./CVILMKYO.js";import{b as p}from"./BtymlV4B.js";var l=m(" ");function _(a,t){var e=l(),r=f(e,!0);c(e),o(()=>{n(e,"href",p+"/docs/"+(t.legacy?"legacy":"reference")+"/"+t.name),i(r,t.name)}),s(a,e)}export{_ as R};
diff --git a/_app/immutable/chunks/BunBbhm2.js b/_app/immutable/chunks/C_DsgZuw.js
similarity index 76%
rename from _app/immutable/chunks/BunBbhm2.js
rename to _app/immutable/chunks/C_DsgZuw.js
index 5f13e720b..a1f20926e 100644
--- a/_app/immutable/chunks/BunBbhm2.js
+++ b/_app/immutable/chunks/C_DsgZuw.js
@@ -1 +1 @@
-import{m as i}from"./tAksebgW.js";import{m as l}from"./DyVZAf8R.js";import{b as o}from"./BbXH6iBM.js";const c=(s,e)=>s.startsWith(e)?s.slice(e.length):s,n=(s,e)=>s.endsWith(e)?s.slice(0,-e.length):s,r=Object.fromEntries(Object.entries(Object.assign({"./Localized/+page.svelte.md":i,"./Overlay/+page.svelte.md":l})).map(([s,e])=>[n(c(s,"./"),"/+page.svelte.md"),e])),t=Object.entries(r).map(([s,e])=>({text:(e==null?void 0:e.menuTitle)??(e==null?void 0:e.title),title:e==null?void 0:e.title,href:o+"/docs/legacy/"+s}));export{t as s};
+import{m as i}from"./D18bs-Pz.js";import{m as l}from"./mu4nSBiY.js";import{b as o}from"./BtymlV4B.js";const c=(s,e)=>s.startsWith(e)?s.slice(e.length):s,n=(s,e)=>s.endsWith(e)?s.slice(0,-e.length):s,r=Object.fromEntries(Object.entries(Object.assign({"./Localized/+page.svelte.md":i,"./Overlay/+page.svelte.md":l})).map(([s,e])=>[n(c(s,"./"),"/+page.svelte.md"),e])),t=Object.entries(r).map(([s,e])=>({text:(e==null?void 0:e.menuTitle)??(e==null?void 0:e.title),title:e==null?void 0:e.title,href:o+"/docs/legacy/"+s}));export{t as s};
diff --git a/_app/immutable/chunks/De7Wx6Lc.js b/_app/immutable/chunks/ChO4W963.js
similarity index 73%
rename from _app/immutable/chunks/De7Wx6Lc.js
rename to _app/immutable/chunks/ChO4W963.js
index d7832e951..f6e66b67a 100644
--- a/_app/immutable/chunks/De7Wx6Lc.js
+++ b/_app/immutable/chunks/ChO4W963.js
@@ -1 +1 @@
-import{m as s}from"./AiDXwOfh.js";import{m}from"./lAnBkW51.js";import{m as o}from"./CodjaLSH.js";import{m as r}from"./BPazXxgC.js";import{m as i}from"./BLiMFxIK.js";import{m as l}from"./DYfHKpLH.js";import{m as n}from"./C9gjURsn.js";import{m as p}from"./CKnkVSe3.js";import{b as c}from"./BbXH6iBM.js";const g=(t,e)=>t.startsWith(e)?t.slice(e.length):t,v=(t,e)=>t.endsWith(e)?t.slice(0,-e.length):t,f=Object.fromEntries(Object.entries(Object.assign({"./FluentContext/+page.svelte.md":s,"./FluentProvider/+page.svelte.md":m,"./Localized/+page.svelte.md":o,"./Overlay/+page.svelte.md":r,"./SvelteFluent/+page.svelte.md":i,"./createSvelteFluent/+page.svelte.md":l,"./getFluentContext/+page.svelte.md":n,"./initFluentContext/+page.svelte.md":p})).map(([t,e])=>[v(g(t,"./"),"/+page.svelte.md"),e])),j=Object.entries(f).map(([t,e])=>({text:(e==null?void 0:e.menuTitle)??(e==null?void 0:e.title),title:e==null?void 0:e.title,href:c+"/docs/reference/"+t}));export{j as s};
+import{m as s}from"./D8B_DDTW.js";import{m}from"./lAnBkW51.js";import{m as o}from"./CodjaLSH.js";import{m as r}from"./BPazXxgC.js";import{m as i}from"./BulkGmrm.js";import{m as l}from"./BzgXux7P.js";import{m as n}from"./fxJuOqUj.js";import{m as p}from"./DBZ0V8io.js";import{b as c}from"./BtymlV4B.js";const g=(t,e)=>t.startsWith(e)?t.slice(e.length):t,v=(t,e)=>t.endsWith(e)?t.slice(0,-e.length):t,f=Object.fromEntries(Object.entries(Object.assign({"./FluentContext/+page.svelte.md":s,"./FluentProvider/+page.svelte.md":m,"./Localized/+page.svelte.md":o,"./Overlay/+page.svelte.md":r,"./SvelteFluent/+page.svelte.md":i,"./createSvelteFluent/+page.svelte.md":l,"./getFluentContext/+page.svelte.md":n,"./initFluentContext/+page.svelte.md":p})).map(([t,e])=>[v(g(t,"./"),"/+page.svelte.md"),e])),j=Object.entries(f).map(([t,e])=>({text:(e==null?void 0:e.menuTitle)??(e==null?void 0:e.title),title:e==null?void 0:e.title,href:c+"/docs/reference/"+t}));export{j as s};
diff --git a/_app/immutable/chunks/Bf6Zvjcp.js b/_app/immutable/chunks/CtiUiiFr.js
similarity index 99%
rename from _app/immutable/chunks/Bf6Zvjcp.js
rename to _app/immutable/chunks/CtiUiiFr.js
index 67c41bb95..efaf4c19b 100644
--- a/_app/immutable/chunks/Bf6Zvjcp.js
+++ b/_app/immutable/chunks/CtiUiiFr.js
@@ -1,4 +1,4 @@
-import{t as x,a as L}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as E,Z as F,f as B,c as i,s as c,r as C,g as b,I,t as O,a0 as P,a1 as M,a2 as H,at as S}from"./HSyAO-bR.js";import{s as K}from"./CVILMKYO.js";import{b as N}from"./BbXH6iBM.js";import{R as w}from"./BbHEq2Iy.js";import{F as g,a as U,b as m,L as d,c as h,E as A,x as q,y as T,z as Y,A as _,B as J,D as V,G,H as X,I as Z,J as Q}from"./C6LsEgJM.js";import{i as k}from"./QfER5Q5a.js";import{b as ss}from"./DNh6f7hg.js";import{p as ns,s as as}from"./DJCR0f5C.js";function ls(o,s){E(s,!1);const n="hello = Hello, world!",a=new g("en");a.addResource(new U(n)),m(()=>h([a])),k(),d(o,{id:"hello"}),F()}const os=`<script>
+import{t as x,a as L}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as E,Z as F,f as B,c as i,s as c,r as C,g as b,I,t as O,a0 as P,a1 as M,a2 as H,at as S}from"./HSyAO-bR.js";import{s as K}from"./CVILMKYO.js";import{b as N}from"./BtymlV4B.js";import{R as w}from"./CSU6ZshI.js";import{F as g,a as U,b as m,L as d,c as h,E as A,x as q,y as T,z as Y,A as _,B as J,D as V,G,H as X,I as Z,J as Q}from"./C6LsEgJM.js";import{i as k}from"./QfER5Q5a.js";import{b as ss}from"./DNh6f7hg.js";import{p as ns,s as as}from"./DJCR0f5C.js";function ls(o,s){E(s,!1);const n="hello = Hello, world!",a=new g("en");a.addResource(new U(n)),m(()=>h([a])),k(),d(o,{id:"hello"}),F()}const os=`<script>
import { FluentBundle, FluentResource } from '@fluent/bundle';
import { createSvelteFluent, initFluentContext, Localized } from '@nubolab-ffwd/svelte-fluent';
diff --git a/_app/immutable/chunks/tAksebgW.js b/_app/immutable/chunks/D18bs-Pz.js
similarity index 99%
rename from _app/immutable/chunks/tAksebgW.js
rename to _app/immutable/chunks/D18bs-Pz.js
index 80616ea52..f95a99367 100644
--- a/_app/immutable/chunks/tAksebgW.js
+++ b/_app/immutable/chunks/D18bs-Pz.js
@@ -1,4 +1,4 @@
-import{t as c,a as r}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as d,Z as i,f as y,s as n,c as D,at as C,r as f}from"./HSyAO-bR.js";import{h as u}from"./CfcRz03H.js";import{R as h}from"./BbHEq2Iy.js";import{F as m,r as g,b as E,C as b,c as x,E as v}from"./C6LsEgJM.js";import{i as k}from"./QfER5Q5a.js";function F(l,s){d(s,!1);const a=new m("en");a.addResource(g),E(()=>x([a])),k(),b(l),i()}const L=`<script>
+import{t as c,a as r}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as d,Z as i,f as y,s as n,c as D,at as C,r as f}from"./HSyAO-bR.js";import{h as u}from"./CfcRz03H.js";import{R as h}from"./CSU6ZshI.js";import{F as m,r as g,b as E,C as b,c as x,E as v}from"./C6LsEgJM.js";import{i as k}from"./QfER5Q5a.js";function F(l,s){d(s,!1);const a=new m("en");a.addResource(g),E(()=>x([a])),k(),b(l),i()}const L=`<script>
import { Localized } from '@nubolab-ffwd/svelte-fluent/legacy';
</script>
diff --git a/_app/immutable/chunks/AiDXwOfh.js b/_app/immutable/chunks/D8B_DDTW.js
similarity index 99%
rename from _app/immutable/chunks/AiDXwOfh.js
rename to _app/immutable/chunks/D8B_DDTW.js
index bb54b5384..3f81dff6e 100644
--- a/_app/immutable/chunks/AiDXwOfh.js
+++ b/_app/immutable/chunks/D8B_DDTW.js
@@ -1,4 +1,4 @@
-import{t as w,a as z}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as r,Z as D,f as $,s as e,c as p,at as g,r as c}from"./HSyAO-bR.js";import{h as _}from"./CfcRz03H.js";import{R as l}from"./BbHEq2Iy.js";import{F as i,d as S,b as y,f as R,c as d,E as C,g as T,h as q,j as L,k as P}from"./C6LsEgJM.js";import{i as u}from"./QfER5Q5a.js";function B(a,s){r(s,!1);const n=new i("en");n.addResource(S),y(()=>d([n])),u(),R(a,{}),D()}const I=`<script>
+import{t as w,a as z}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as r,Z as D,f as $,s as e,c as p,at as g,r as c}from"./HSyAO-bR.js";import{h as _}from"./CfcRz03H.js";import{R as l}from"./CSU6ZshI.js";import{F as i,d as S,b as y,f as R,c as d,E as C,g as T,h as q,j as L,k as P}from"./C6LsEgJM.js";import{i as u}from"./QfER5Q5a.js";function B(a,s){r(s,!1);const n=new i("en");n.addResource(S),y(()=>d([n])),u(),R(a,{}),D()}const I=`<script>
import { getFluentContext } from '@nubolab-ffwd/svelte-fluent';
const { localize } = getFluentContext();
</script>
diff --git a/_app/immutable/chunks/CKnkVSe3.js b/_app/immutable/chunks/DBZ0V8io.js
similarity index 95%
rename from _app/immutable/chunks/CKnkVSe3.js
rename to _app/immutable/chunks/DBZ0V8io.js
index a21d820f8..660093133 100644
--- a/_app/immutable/chunks/CKnkVSe3.js
+++ b/_app/immutable/chunks/DBZ0V8io.js
@@ -1,2 +1,2 @@
-import{t as y,a as C}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as x,s as t,c as e,at as o,r as a}from"./HSyAO-bR.js";import{h as _}from"./CfcRz03H.js";import{R as n}from"./BbHEq2Iy.js";const F={title:"initFluentContext"},{title:k}=F;var E=y(` Initializes a new with the given object
+import{t as y,a as C}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as x,s as t,c as e,at as o,r as a}from"./HSyAO-bR.js";import{h as _}from"./CfcRz03H.js";import{R as n}from"./CSU6ZshI.js";const F={title:"initFluentContext"},{title:k}=F;var E=y(`
Initializes a new with the given object
and adds it to the svelte context.
Parameters
Name Type Description fn
() => SvelteFluent
Defines the object to be used
Return value
The object.
`,1);function T(u){var s=E(),i=x(s);i.textContent=k;var r=t(i,2),d=t(e(r));n(d,{name:"FluentContext"});var D=t(d,2);n(D,{name:"SvelteFluent"}),o(),a(r);var p=t(r,2);_(p,()=>'initFluentContext(() => fluent);
');var l=t(p,4),c=e(l),h=t(e(c)),v=e(h),m=t(e(v),2),b=t(e(m));n(b,{name:"SvelteFluent"}),o(),a(m),a(v),a(h),a(c),a(l);var f=t(l,4),g=t(e(f));n(g,{name:"FluentContext"}),o(),a(f),C(u,s)}export{T as _,F as m};
diff --git a/_app/immutable/chunks/Bdc8bdGj.js b/_app/immutable/chunks/Dj54AaxL.js
similarity index 99%
rename from _app/immutable/chunks/Bdc8bdGj.js
rename to _app/immutable/chunks/Dj54AaxL.js
index 286d6d9ff..d1da7eeb7 100644
--- a/_app/immutable/chunks/Bdc8bdGj.js
+++ b/_app/immutable/chunks/Dj54AaxL.js
@@ -1,4 +1,4 @@
-import{t as Z,a as G}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as J,s,f as Q,Z as V,c as n,at as o,r as l}from"./HSyAO-bR.js";import{h as a}from"./CfcRz03H.js";import{s as p}from"./CVILMKYO.js";import{i as ss}from"./QfER5Q5a.js";import{R as e}from"./BbHEq2Iy.js";const as=`<!-- src/routes/+layout.svelte -->
+import{t as Z,a as G}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{X as J,s,f as Q,Z as V,c as n,at as o,r as l}from"./HSyAO-bR.js";import{h as a}from"./CfcRz03H.js";import{s as p}from"./CVILMKYO.js";import{i as ss}from"./QfER5Q5a.js";import{R as e}from"./CSU6ZshI.js";const as=`<!-- src/routes/+layout.svelte -->
<script lang="ts">
import { initFluentContext } from '@nubolab-ffwd/svelte-fluent';
diff --git a/_app/immutable/chunks/DKXcWinK.js b/_app/immutable/chunks/RYRP6iBn.js
similarity index 99%
rename from _app/immutable/chunks/DKXcWinK.js
rename to _app/immutable/chunks/RYRP6iBn.js
index 119924081..9f9076360 100644
--- a/_app/immutable/chunks/DKXcWinK.js
+++ b/_app/immutable/chunks/RYRP6iBn.js
@@ -1,4 +1,4 @@
-import{t as j,a as I}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{s,f as W,c as a,at as e,r as o}from"./HSyAO-bR.js";import{h as n}from"./CfcRz03H.js";import{s as z}from"./CVILMKYO.js";import{b as _}from"./BbXH6iBM.js";import{R as l}from"./BbHEq2Iy.js";const N=[{rank:1,text:"Version 1",id:"version-1"},{rank:2,text:"What’s new?",id:"whats-new"},{rank:3,text:"Svelte 5 support",id:"svelte-5-support"},{rank:3,text:"Server-side localizations",id:"server-side-localizations"},{rank:3,text:"Loading .ftl files",id:"loading-ftl-files"},{rank:2,text:"Breaking changes",id:"breaking-changes"},{rank:2,text:"Migration Guide",id:"migration-guide"},{rank:3,text:"$localized store",id:"localized-store"},{rank:3,text:"FluentProvider deprecation",id:"fluentprovider-deprecation"},{rank:3,text:"Replace Localize/Overlay slots with snippets",id:"replace-localizeoverlay-slots-with-snippets"},{rank:3,text:"Continue using Localize/Overlay components with slots",id:"continue-using-localizeoverlay-components-with-slots"},{rank:3,text:"vite/rollup plugin import paths",id:"viterollup-plugin-import-paths"},{rank:3,text:"Ftl file loading",id:"ftl-file-loading"}];var G=j(`Version 1
What’s new?
Svelte 5 support
Svelte 5 is now fully supported by svelte-fluent
.
Server-side localizations
In previous versions, svelte-fluent
could only be used inside of components. With the introduction
+import{t as j,a as I}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{s,f as W,c as a,at as e,r as o}from"./HSyAO-bR.js";import{h as n}from"./CfcRz03H.js";import{s as z}from"./CVILMKYO.js";import{b as _}from"./BtymlV4B.js";import{R as l}from"./CSU6ZshI.js";const N=[{rank:1,text:"Version 1",id:"version-1"},{rank:2,text:"What’s new?",id:"whats-new"},{rank:3,text:"Svelte 5 support",id:"svelte-5-support"},{rank:3,text:"Server-side localizations",id:"server-side-localizations"},{rank:3,text:"Loading .ftl files",id:"loading-ftl-files"},{rank:2,text:"Breaking changes",id:"breaking-changes"},{rank:2,text:"Migration Guide",id:"migration-guide"},{rank:3,text:"$localized store",id:"localized-store"},{rank:3,text:"FluentProvider deprecation",id:"fluentprovider-deprecation"},{rank:3,text:"Replace Localize/Overlay slots with snippets",id:"replace-localizeoverlay-slots-with-snippets"},{rank:3,text:"Continue using Localize/Overlay components with slots",id:"continue-using-localizeoverlay-components-with-slots"},{rank:3,text:"vite/rollup plugin import paths",id:"viterollup-plugin-import-paths"},{rank:3,text:"Ftl file loading",id:"ftl-file-loading"}];var G=j(`
Version 1
What’s new?
Svelte 5 support
Svelte 5 is now fully supported by svelte-fluent
.
Server-side localizations
In previous versions, svelte-fluent
could only be used inside of components. With the introduction
of the object in version 1, you can now use svelte-fluent
anywhere you want.
For an example how to integrate it with SvelteKit .server.js
files and form actions, check out the SvelteKit integration guide.
Loading .ftl files
The bundler plugin of svelte-fluent
now allows you to directly import your .ftl
files.
Previous versions relied on loading the .ftl
files as raw strings either via vite’s ?raw
import or
adding rollup-plugin-string
.
Breaking changes
- Svelte-fluent now requires svelte 5
- The
$localized
store was removed - The component is now considered deprecated and will be removed in a later release
- The and components now use svelte snippets.
diff --git a/_app/immutable/chunks/CsI-_j_C.js b/_app/immutable/chunks/XzXiTbL0.js
similarity index 99%
rename from _app/immutable/chunks/CsI-_j_C.js
rename to _app/immutable/chunks/XzXiTbL0.js
index b566916ee..202c2fcbd 100644
--- a/_app/immutable/chunks/CsI-_j_C.js
+++ b/_app/immutable/chunks/XzXiTbL0.js
@@ -1,3 +1,3 @@
-var Yt=t=>{throw TypeError(t)};var Pe=(t,e,n)=>e.has(t)||Yt("Cannot "+n);var A=(t,e,n)=>(Pe(t,e,"read from private field"),n?n.call(t):e.get(t)),P=(t,e,n)=>e.has(t)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{av as C,g as O,a7 as N,aw as xe}from"./HSyAO-bR.js";import{w as Ct}from"./DtO3nUDQ.js";import{a as Ce,b as x}from"./BbXH6iBM.js";import{H as vt,S as Ot,R as Nt}from"./CYgJF_JY.js";import{o as zt}from"./Co2NNI44.js";new URL("sveltekit-internal://");function Oe(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Ne(t){return t.split("%25").map(decodeURI).join("%25")}function je(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Rt({href:t}){return t.split("#")[0]}function $e(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));e();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function De(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function Fe(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r
((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&W.delete(jt(t)),Ve(t,e));const W=new Map;function Be(t,e){const n=jt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&W.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Fe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function Ge(t,e,n){if(W.size>0){const r=jt(t,n),a=W.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return It(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return It(String.fromCharCode(...c.slice(2).split("-").map(d=>parseInt(d,16))));const u=Me.exec(c),[,p,y,l,m]=u;return e.push({name:l,matcher:m,optional:!!p,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":p?"([^/]*)?":"([^/]+?)"}return It(c)}).join("")}).join("")}/?$`),params:e}}function He(t){return!/^\([^)]+\)$/.test(t)}function Ke(t){return t.slice(1).split("/").filter(He)}function We(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;ou).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const u=e[o+1],p=a[o+1];u&&!u.rest&&u.optional&&p&&c.chained&&(i=0),!u&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function It(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ye({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[c,f,u]])=>{const{pattern:p,params:y}=qe(o),l={id:o,exec:m=>{const d=p.exec(m);if(d)return We(d,y,r)},errors:[1,...u||[]].map(m=>t[m]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function ce(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function Jt(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}const ze="1739535448614",le="sveltekit:snapshot",fe="sveltekit:scroll",ue="sveltekit:states",Je="sveltekit:pageurl",G="sveltekit:history",J="sveltekit:navigation",ut={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ft=location.origin;function he(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function $t(){return{x:pageXOffset,y:pageYOffset}}function B(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Xt={...ut,"":ut.hover};function de(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function pe(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=de(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||bt(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===ft&&t.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ht(t){let e=null,n=null,r=null,a=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),e===null&&(e=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=de(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Xt[r??"off"],preload_data:Xt[a??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Zt(t){const e=Ct(t);let n=!0;function r(){n=!0,e.update(i=>i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const ge={v:()=>{}};function Xe(){const{set:t,subscribe:e}=Ct(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ce}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==ze;return i&&(t(!0),ge.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function bt(t,e,n){return t.origin!==ft||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Qt(t){const e=Qe(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let a=0;a>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const tn=-1,en=-2,nn=-3,rn=-4,an=-5,on=-6;function sn(t,e){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function a(s,i=!1){if(s===tn)return;if(s===nn)return NaN;if(s===rn)return 1/0;if(s===an)return-1/0;if(s===on)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=e==null?void 0:e[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const u=new Set;r[s]=u;for(let l=1;le!=null)}const fn="x-sveltekit-invalidated",un="x-sveltekit-trailing-slash";function dt(t){return t instanceof vt||t instanceof Ot?t.status:500}function hn(t){return t instanceof Ot?t.text:"Internal Error"}let U,X,Ut;const dn=zt.toString().includes("$$")||/function \w+\(\) \{\}/.test(zt.toString());var tt,et,nt,rt,at,ot,st,it,oe,ct,se,lt,ie;dn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},Ut={current:!1}):(U=new(oe=class{constructor(){P(this,tt,C({}));P(this,et,C(null));P(this,nt,C(null));P(this,rt,C({}));P(this,at,C({id:null}));P(this,ot,C({}));P(this,st,C(-1));P(this,it,C(new URL("https://example.com")))}get data(){return O(A(this,tt))}set data(e){N(A(this,tt),e)}get form(){return O(A(this,et))}set form(e){N(A(this,et),e)}get error(){return O(A(this,nt))}set error(e){N(A(this,nt),e)}get params(){return O(A(this,rt))}set params(e){N(A(this,rt),e)}get route(){return O(A(this,at))}set route(e){N(A(this,at),e)}get state(){return O(A(this,ot))}set state(e){N(A(this,ot),e)}get status(){return O(A(this,st))}set status(e){N(A(this,st),e)}get url(){return O(A(this,it))}set url(e){N(A(this,it),e)}},tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,at=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,oe),X=new(se=class{constructor(){P(this,ct,C(null))}get current(){return O(A(this,ct))}set current(e){N(A(this,ct),e)}},ct=new WeakMap,se),Ut=new(ie=class{constructor(){P(this,lt,C(!1))}get current(){return O(A(this,lt))}set current(e){N(A(this,lt),e)}},lt=new WeakMap,ie),ge.v=()=>Ut.current=!0);function pn(t){Object.assign(U,t)}const gn="/__data.json",mn=".html__data.json";function yn(t){return t.endsWith(".html")?t.replace(/\.html$/,mn):t.replace(/\/$/,"")+gn}const wn=new Set(["icon","shortcut icon","apple-touch-icon"]),V=ce(fe)??{},Z=ce(le)??{},$={url:Zt({}),page:Zt({}),navigating:Ct(null),updated:Xe()};function Dt(t){V[t]=$t()}function _n(t,e){let n=t+1;for(;V[n];)delete V[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function q(t){return location.href=t.href,new Promise(()=>{})}async function ye(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(x||"/");t&&await t.update()}}function te(){}let Ft,Pt,pt,j,xt,S;const gt=[],mt=[];let L=null;const we=new Set,vn=new Set,Y=new Set;let v={branch:[],error:null,url:null},Vt=!1,yt=!1,ee=!0,Q=!1,H=!1,_e=!1,Bt=!1,ve,R,T,F;const z=new Set;async function Gn(t,e,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),S=t,await((s=(a=t.hooks).init)==null?void 0:s.call(a)),Ft=Ye(t),j=document.documentElement,xt=e,Pt=t.nodes[0],pt=t.nodes[1],Pt(),pt(),R=(i=history.state)==null?void 0:i[G],T=(o=history.state)==null?void 0:o[J],R||(R=T=Date.now(),history.replaceState({...history.state,[G]:R,[J]:T},""));const r=V[R];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Pn(xt,n):Un(S.hash?Te(new URL(location.href)):location.href,{replaceState:!0}),Tn()}function bn(){gt.length=0,Bt=!1}function be(t){mt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=mt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=mt[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ne(){Dt(R),Jt(fe,V),be(T),Jt(le,Z)}async function Gt(t,e,n,r){return K({type:"goto",url:he(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Bt=!0),e.invalidate&&e.invalidate.forEach(Ln)}})}async function An(t){if(t.id!==(L==null?void 0:L.id)){const e={};z.add(e),L={id:t.id,token:e,promise:ke({...t,preload:e}).then(n=>(z.delete(e),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Lt(t){var n;const e=(n=await St(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}function Se(t,e,n){var s;v=t.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(U,t.props.page),ve=new S.root({target:e,props:{...t.props,stores:$,components:mt},hydrate:n,sync:!1}),Ae(T);const a={from:null,to:{params:v.params,route:{id:((s=v.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(a)),yt=!0}function wt({url:t,params:e,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(x&&(t.pathname===x||t.pathname===x+"/"))o="always";else for(const l of n)(l==null?void 0:l.slash)!==void 0&&(o=l.slash);t.pathname=Oe(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:ln(n).map(l=>l.node.component),page:Ht(U)}};i!==void 0&&(c.props.form=i);let f={},u=!U,p=0;for(let l=0;l(o&&(c.route=!0),d[h])}),params:new Proxy(r,{get:(d,h)=>(o&&c.params.add(h),d[h])}),data:(s==null?void 0:s.data)??null,url:$e(n,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},S.hash),async fetch(d,h){let w;d instanceof Request?(w=d.url,h={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length?d.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...h}):w=d;const k=new URL(w,n);return o&&l(k.href),k.origin===n.origin&&(w=k.href.slice(n.origin.length)),yt?Ge(w,k.href,h):Be(w,h)},setHeaders:()=>{},depends:l,parent(){return o&&(c.parent=!0),e()},untrack(d){o=!1;try{return d()}finally{o=!0}}};i=await f.universal.load.call(null,m)??null}return{node:f,loader:t,server:s,universal:(p=f.universal)!=null&&p.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function re(t,e,n,r,a,s){if(Bt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==v.params[i])return!0;for(const i of a.dependencies)if(gt.some(o=>o(new URL(i))))return!0;return!1}function qt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Sn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ae({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Ht(U),constructors:[]}}}async function ke({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===t)return z.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),f.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let u=null;const p=v.url?t!==_t(v.url):!1,y=v.route?a.id!==v.route.id:!1,l=Sn(v.url,n);let m=!1;const d=f.map((g,_)=>{var D;const b=v.branch[_],E=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||re(m,y,p,l,(D=b.server)==null?void 0:D.uses,r));return E&&(m=!0),E});if(d.some(Boolean)){try{u=await Ie(n,d)}catch(g){const _=await M(g,{url:n,params:r,route:{id:t}});return z.has(s)?ae({error:_,url:n,params:r,route:a}):At({status:dt(g),error:_,url:n,route:a})}if(u.type==="redirect")return u}const h=u==null?void 0:u.nodes;let w=!1;const k=f.map(async(g,_)=>{var kt;if(!g)return;const b=v.branch[_],E=h==null?void 0:h[_];if((!E||E.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!re(w,y,p,l,(kt=b.universal)==null?void 0:kt.uses,r))return b;if(w=!0,(E==null?void 0:E.type)==="error")throw E;return Mt({loader:g[1],url:n,params:r,route:a,parent:async()=>{var Wt;const Kt={};for(let Et=0;Et<_;Et+=1)Object.assign(Kt,(Wt=await k[Et])==null?void 0:Wt.data);return Kt},server_data_node:qt(E===void 0&&g[0]?{type:"skip"}:E??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of k)g.catch(()=>{});const I=[];for(let g=0;gPromise.resolve({}),server_data_node:qt(s)}),c={node:await pt(),loader:pt,universal:null,server:null,data:null};return wt({url:n,params:a,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof Nt)return Gt(new URL(o.location,location.href),{},0);throw o}}function En(t){let e;try{if(e=S.hooks.reroute({url:new URL(t)})??t,typeof e=="string"){const n=new URL(t);S.hash?n.hash=e:n.pathname=e,e=n}}catch{return}return e}async function St(t,e){if(t&&!bt(t,x,S.hash)){const n=En(t);if(!n)return;const r=Rn(n);for(const a of Ft){const s=a.exec(r);if(s)return{id:_t(t),invalidating:e,route:a,params:je(s),url:t}}}}function Rn(t){return Ne(S.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(x.length))||"/"}function _t(t){return(S.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ee({url:t,type:e,intent:n,delta:r}){let a=!1;const s=Le(v,n,t,e);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||we.forEach(o=>o(i)),a?null:s}async function K({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=te,block:u=te}){const p=F;F=c;const y=await St(e,!1),l=Ee({url:e,type:t,delta:n==null?void 0:n.delta,intent:y});if(!l){u(),F===c&&(F=p);return}const m=R,d=T;f(),Q=!0,yt&&$.navigating.set(X.current=l.navigation);let h=y&&await ke(y);if(!h){if(bt(e,x,S.hash))return await q(e);h=await Re(e,{id:null},await M(new Ot(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(y==null?void 0:y.url)||e,F!==c)return l.reject(new Error("navigation aborted")),!1;if(h.type==="redirect")if(o>=20)h=await At({status:500,error:await M(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return Gt(new URL(h.location,e).href,{},o+1,c),!1;else h.props.page.status>=400&&await $.updated.check()&&(await ye(),await q(e));if(bn(),Dt(m),be(d),h.props.page.url.pathname!==e.pathname&&(e.pathname=h.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,_={[G]:R+=g,[J]:T+=g,[ue]:i};(s?history.replaceState:history.pushState).call(history,_,"",e),s||_n(R,T)}if(L=null,h.props.page.state=i,yt){v=h.state,h.props.page&&(h.props.page.url=e);const g=(await Promise.all(Array.from(vn,_=>_(l.navigation)))).filter(_=>typeof _=="function");if(g.length>0){let _=function(){g.forEach(b=>{Y.delete(b)})};g.push(_),g.forEach(b=>{Y.add(b)})}ve.$set(h.props),pn(h.props.page),_e=!0}else Se(h,xt,!1);const{activeElement:w}=document;await xe();const k=n?n.scroll:a?$t():null;if(ee){const g=e.hash&&document.getElementById(decodeURIComponent(S.hash?e.hash.split("#")[2]??"":e.hash.slice(1)));k?scrollTo(k.x,k.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==w&&document.activeElement!==document.body;!r&&!I&&xn(),ee=!0,h.props.page&&Object.assign(U,h.props.page),Q=!1,t==="popstate"&&Ae(T),l.fulfil(void 0),Y.forEach(g=>g(l.navigation)),$.navigating.set(X.current=null)}async function Re(t,e,n,r){return t.origin===ft&&t.pathname===location.pathname&&!Vt?await At({status:r,error:n,url:t,route:e}):await q(t)}function In(){let t,e;j.addEventListener("mousemove",i=>{const o=i.target;clearTimeout(t),t=setTimeout(()=>{a(o,2)},20)});function n(i){i.defaultPrevented||a(i.composedPath()[0],1)}j.addEventListener("mousedown",n),j.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(i=>{for(const o of i)o.isIntersecting&&(Lt(new URL(o.target.href)),r.unobserve(o.target))},{threshold:0});async function a(i,o){const c=pe(i,j);if(!c||c===e)return;e=c;const{url:f,external:u,download:p}=Tt(c,x,S.hash);if(u||p)return;const y=ht(c),l=f&&_t(v.url)===_t(f);if(!y.reload&&!l)if(o<=y.preload_data){const m=await St(f,!1);m&&An(m)}else o<=y.preload_code&&Lt(f)}function s(){r.disconnect();for(const i of j.querySelectorAll("a")){const{url:o,external:c,download:f}=Tt(i,x,S.hash);if(c||f)continue;const u=ht(i);u.reload||(u.preload_code===ut.viewport&&r.observe(i),u.preload_code===ut.eager&&Lt(o))}}Y.add(s),s()}function M(t,e){if(t instanceof vt)return t.body;const n=dt(t),r=hn(t);return S.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function Un(t,e={}){return t=new URL(he(t)),t.origin!==ft?Promise.reject(new Error("goto: invalid URL")):Gt(t,e,0)}function Ln(t){if(typeof t=="function")gt.push(t);else{const{href:e}=new URL(t,location.href);gt.push(n=>n.href===e)}}function Tn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ne(),!Q){const a=Le(v,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ne()}),(e=navigator.connection)!=null&&e.saveData||In(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=pe(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Tt(r,x,S.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ht(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[u,p]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=u===Rt(location);if(s||c.reload&&(!y||!p)){Ee({url:a,type:"link"})?Q=!0:n.preventDefault();return}if(p!==void 0&&y){const[,l]=v.url.href.split("#");if(l===p){if(n.preventDefault(),p===""||p==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(p));m&&(m.scrollIntoView(),m.focus())}return}if(H=!0,Dt(R),t(a),!c.replace_state)return;H=!1}n.preventDefault(),await new Promise(l=>{requestAnimationFrame(()=>{setTimeout(l,0)}),setTimeout(l,100)}),K({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(bt(o,x,!1))return;const c=n.target,f=ht(c);if(f.reload)return;n.preventDefault(),n.stopPropagation();const u=new FormData(c),p=a==null?void 0:a.getAttribute("name");p&&u.append(p,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(u).toString(),K({type:"form",url:o,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[G]){const a=n.state[G];if(F={},a===R)return;const s=V[a],i=n.state[ue]??{},o=new URL(n.state[Je]??location.href),c=n.state[J],f=v.url?Rt(location)===Rt(v.url):!1;if(c===T&&(_e||f)){i!==U.state&&(U.state=i),t(o),V[R]=$t(),s&&scrollTo(s.x,s.y),R=a;return}const p=a-R;await K({type:"popstate",url:o,popped:{state:i,scroll:s,delta:p},accept:()=>{R=a,T=c},block:()=>{history.go(-p)},nav_token:F})}else if(!H){const a=new URL(location.href);t(a)}}),addEventListener("hashchange",()=>{H?(H=!1,history.replaceState({...history.state,[G]:++R,[J]:T},"",location.href)):S.hash&&v.url.hash===location.hash&&K({type:"goto",url:Te(v.url)})});for(const n of document.querySelectorAll("link"))wn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(X.current=null)});function t(n){v.url=U.url=n,$.page.set(Ht(U)),$.page.notify()}}async function Pn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Vt=!0;const f=new URL(location.href);let u;({params:a={},route:s={id:null}}=await St(f,!1)||{}),u=Ft.find(({id:l})=>l===s.id);let p,y=!0;try{const l=r.map(async(d,h)=>{const w=o[h];return w!=null&&w.uses&&(w.uses=Ue(w.uses)),Mt({loader:S.nodes[d],url:f,params:a,route:s,parent:async()=>{const k={};for(let I=0;Ii?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new vt(a.status,i)}return new Promise(async i=>{var y;const o=new Map,c=a.body.getReader(),f=new TextDecoder;function u(l){return sn(l,{...S.decoders,Promise:m=>new Promise((d,h)=>{o.set(m,{fulfil:d,reject:h})})})}let p="";for(;;){const{done:l,value:m}=await c.read();if(l&&!p)break;for(p+=!m&&p?`
+var Yt=t=>{throw TypeError(t)};var Pe=(t,e,n)=>e.has(t)||Yt("Cannot "+n);var A=(t,e,n)=>(Pe(t,e,"read from private field"),n?n.call(t):e.get(t)),P=(t,e,n)=>e.has(t)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{av as C,g as O,a7 as N,aw as xe}from"./HSyAO-bR.js";import{w as Ct}from"./DtO3nUDQ.js";import{a as Ce,b as x}from"./BtymlV4B.js";import{H as vt,S as Ot,R as Nt}from"./CYgJF_JY.js";import{o as zt}from"./Co2NNI44.js";new URL("sveltekit-internal://");function Oe(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Ne(t){return t.split("%25").map(decodeURI).join("%25")}function je(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Rt({href:t}){return t.split("#")[0]}function $e(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));e();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function De(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function Fe(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&W.delete(jt(t)),Ve(t,e));const W=new Map;function Be(t,e){const n=jt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&W.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Fe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function Ge(t,e,n){if(W.size>0){const r=jt(t,n),a=W.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return It(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return It(String.fromCharCode(...c.slice(2).split("-").map(d=>parseInt(d,16))));const u=Me.exec(c),[,p,y,l,m]=u;return e.push({name:l,matcher:m,optional:!!p,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":p?"([^/]*)?":"([^/]+?)"}return It(c)}).join("")}).join("")}/?$`),params:e}}function He(t){return!/^\([^)]+\)$/.test(t)}function Ke(t){return t.slice(1).split("/").filter(He)}function We(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;ou).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const u=e[o+1],p=a[o+1];u&&!u.rest&&u.optional&&p&&c.chained&&(i=0),!u&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function It(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ye({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[c,f,u]])=>{const{pattern:p,params:y}=qe(o),l={id:o,exec:m=>{const d=p.exec(m);if(d)return We(d,y,r)},errors:[1,...u||[]].map(m=>t[m]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function ce(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function Jt(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}const ze="1739535934330",le="sveltekit:snapshot",fe="sveltekit:scroll",ue="sveltekit:states",Je="sveltekit:pageurl",G="sveltekit:history",J="sveltekit:navigation",ut={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ft=location.origin;function he(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function $t(){return{x:pageXOffset,y:pageYOffset}}function B(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Xt={...ut,"":ut.hover};function de(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function pe(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=de(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||bt(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===ft&&t.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ht(t){let e=null,n=null,r=null,a=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),e===null&&(e=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=de(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Xt[r??"off"],preload_data:Xt[a??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Zt(t){const e=Ct(t);let n=!0;function r(){n=!0,e.update(i=>i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const ge={v:()=>{}};function Xe(){const{set:t,subscribe:e}=Ct(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ce}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==ze;return i&&(t(!0),ge.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function bt(t,e,n){return t.origin!==ft||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Qt(t){const e=Qe(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let a=0;a>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const tn=-1,en=-2,nn=-3,rn=-4,an=-5,on=-6;function sn(t,e){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function a(s,i=!1){if(s===tn)return;if(s===nn)return NaN;if(s===rn)return 1/0;if(s===an)return-1/0;if(s===on)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=e==null?void 0:e[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const u=new Set;r[s]=u;for(let l=1;le!=null)}const fn="x-sveltekit-invalidated",un="x-sveltekit-trailing-slash";function dt(t){return t instanceof vt||t instanceof Ot?t.status:500}function hn(t){return t instanceof Ot?t.text:"Internal Error"}let U,X,Ut;const dn=zt.toString().includes("$$")||/function \w+\(\) \{\}/.test(zt.toString());var tt,et,nt,rt,at,ot,st,it,oe,ct,se,lt,ie;dn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},Ut={current:!1}):(U=new(oe=class{constructor(){P(this,tt,C({}));P(this,et,C(null));P(this,nt,C(null));P(this,rt,C({}));P(this,at,C({id:null}));P(this,ot,C({}));P(this,st,C(-1));P(this,it,C(new URL("https://example.com")))}get data(){return O(A(this,tt))}set data(e){N(A(this,tt),e)}get form(){return O(A(this,et))}set form(e){N(A(this,et),e)}get error(){return O(A(this,nt))}set error(e){N(A(this,nt),e)}get params(){return O(A(this,rt))}set params(e){N(A(this,rt),e)}get route(){return O(A(this,at))}set route(e){N(A(this,at),e)}get state(){return O(A(this,ot))}set state(e){N(A(this,ot),e)}get status(){return O(A(this,st))}set status(e){N(A(this,st),e)}get url(){return O(A(this,it))}set url(e){N(A(this,it),e)}},tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,at=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,oe),X=new(se=class{constructor(){P(this,ct,C(null))}get current(){return O(A(this,ct))}set current(e){N(A(this,ct),e)}},ct=new WeakMap,se),Ut=new(ie=class{constructor(){P(this,lt,C(!1))}get current(){return O(A(this,lt))}set current(e){N(A(this,lt),e)}},lt=new WeakMap,ie),ge.v=()=>Ut.current=!0);function pn(t){Object.assign(U,t)}const gn="/__data.json",mn=".html__data.json";function yn(t){return t.endsWith(".html")?t.replace(/\.html$/,mn):t.replace(/\/$/,"")+gn}const wn=new Set(["icon","shortcut icon","apple-touch-icon"]),V=ce(fe)??{},Z=ce(le)??{},$={url:Zt({}),page:Zt({}),navigating:Ct(null),updated:Xe()};function Dt(t){V[t]=$t()}function _n(t,e){let n=t+1;for(;V[n];)delete V[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function q(t){return location.href=t.href,new Promise(()=>{})}async function ye(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(x||"/");t&&await t.update()}}function te(){}let Ft,Pt,pt,j,xt,S;const gt=[],mt=[];let L=null;const we=new Set,vn=new Set,Y=new Set;let v={branch:[],error:null,url:null},Vt=!1,yt=!1,ee=!0,Q=!1,H=!1,_e=!1,Bt=!1,ve,R,T,F;const z=new Set;async function Gn(t,e,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),S=t,await((s=(a=t.hooks).init)==null?void 0:s.call(a)),Ft=Ye(t),j=document.documentElement,xt=e,Pt=t.nodes[0],pt=t.nodes[1],Pt(),pt(),R=(i=history.state)==null?void 0:i[G],T=(o=history.state)==null?void 0:o[J],R||(R=T=Date.now(),history.replaceState({...history.state,[G]:R,[J]:T},""));const r=V[R];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Pn(xt,n):Un(S.hash?Te(new URL(location.href)):location.href,{replaceState:!0}),Tn()}function bn(){gt.length=0,Bt=!1}function be(t){mt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=mt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=mt[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ne(){Dt(R),Jt(fe,V),be(T),Jt(le,Z)}async function Gt(t,e,n,r){return K({type:"goto",url:he(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Bt=!0),e.invalidate&&e.invalidate.forEach(Ln)}})}async function An(t){if(t.id!==(L==null?void 0:L.id)){const e={};z.add(e),L={id:t.id,token:e,promise:ke({...t,preload:e}).then(n=>(z.delete(e),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Lt(t){var n;const e=(n=await St(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}function Se(t,e,n){var s;v=t.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(U,t.props.page),ve=new S.root({target:e,props:{...t.props,stores:$,components:mt},hydrate:n,sync:!1}),Ae(T);const a={from:null,to:{params:v.params,route:{id:((s=v.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(a)),yt=!0}function wt({url:t,params:e,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(x&&(t.pathname===x||t.pathname===x+"/"))o="always";else for(const l of n)(l==null?void 0:l.slash)!==void 0&&(o=l.slash);t.pathname=Oe(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:ln(n).map(l=>l.node.component),page:Ht(U)}};i!==void 0&&(c.props.form=i);let f={},u=!U,p=0;for(let l=0;l(o&&(c.route=!0),d[h])}),params:new Proxy(r,{get:(d,h)=>(o&&c.params.add(h),d[h])}),data:(s==null?void 0:s.data)??null,url:$e(n,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},S.hash),async fetch(d,h){let w;d instanceof Request?(w=d.url,h={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length?d.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...h}):w=d;const k=new URL(w,n);return o&&l(k.href),k.origin===n.origin&&(w=k.href.slice(n.origin.length)),yt?Ge(w,k.href,h):Be(w,h)},setHeaders:()=>{},depends:l,parent(){return o&&(c.parent=!0),e()},untrack(d){o=!1;try{return d()}finally{o=!0}}};i=await f.universal.load.call(null,m)??null}return{node:f,loader:t,server:s,universal:(p=f.universal)!=null&&p.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function re(t,e,n,r,a,s){if(Bt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==v.params[i])return!0;for(const i of a.dependencies)if(gt.some(o=>o(new URL(i))))return!0;return!1}function qt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Sn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ae({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Ht(U),constructors:[]}}}async function ke({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===t)return z.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),f.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let u=null;const p=v.url?t!==_t(v.url):!1,y=v.route?a.id!==v.route.id:!1,l=Sn(v.url,n);let m=!1;const d=f.map((g,_)=>{var D;const b=v.branch[_],E=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||re(m,y,p,l,(D=b.server)==null?void 0:D.uses,r));return E&&(m=!0),E});if(d.some(Boolean)){try{u=await Ie(n,d)}catch(g){const _=await M(g,{url:n,params:r,route:{id:t}});return z.has(s)?ae({error:_,url:n,params:r,route:a}):At({status:dt(g),error:_,url:n,route:a})}if(u.type==="redirect")return u}const h=u==null?void 0:u.nodes;let w=!1;const k=f.map(async(g,_)=>{var kt;if(!g)return;const b=v.branch[_],E=h==null?void 0:h[_];if((!E||E.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!re(w,y,p,l,(kt=b.universal)==null?void 0:kt.uses,r))return b;if(w=!0,(E==null?void 0:E.type)==="error")throw E;return Mt({loader:g[1],url:n,params:r,route:a,parent:async()=>{var Wt;const Kt={};for(let Et=0;Et<_;Et+=1)Object.assign(Kt,(Wt=await k[Et])==null?void 0:Wt.data);return Kt},server_data_node:qt(E===void 0&&g[0]?{type:"skip"}:E??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of k)g.catch(()=>{});const I=[];for(let g=0;gPromise.resolve({}),server_data_node:qt(s)}),c={node:await pt(),loader:pt,universal:null,server:null,data:null};return wt({url:n,params:a,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof Nt)return Gt(new URL(o.location,location.href),{},0);throw o}}function En(t){let e;try{if(e=S.hooks.reroute({url:new URL(t)})??t,typeof e=="string"){const n=new URL(t);S.hash?n.hash=e:n.pathname=e,e=n}}catch{return}return e}async function St(t,e){if(t&&!bt(t,x,S.hash)){const n=En(t);if(!n)return;const r=Rn(n);for(const a of Ft){const s=a.exec(r);if(s)return{id:_t(t),invalidating:e,route:a,params:je(s),url:t}}}}function Rn(t){return Ne(S.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(x.length))||"/"}function _t(t){return(S.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ee({url:t,type:e,intent:n,delta:r}){let a=!1;const s=Le(v,n,t,e);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||we.forEach(o=>o(i)),a?null:s}async function K({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=te,block:u=te}){const p=F;F=c;const y=await St(e,!1),l=Ee({url:e,type:t,delta:n==null?void 0:n.delta,intent:y});if(!l){u(),F===c&&(F=p);return}const m=R,d=T;f(),Q=!0,yt&&$.navigating.set(X.current=l.navigation);let h=y&&await ke(y);if(!h){if(bt(e,x,S.hash))return await q(e);h=await Re(e,{id:null},await M(new Ot(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(y==null?void 0:y.url)||e,F!==c)return l.reject(new Error("navigation aborted")),!1;if(h.type==="redirect")if(o>=20)h=await At({status:500,error:await M(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return Gt(new URL(h.location,e).href,{},o+1,c),!1;else h.props.page.status>=400&&await $.updated.check()&&(await ye(),await q(e));if(bn(),Dt(m),be(d),h.props.page.url.pathname!==e.pathname&&(e.pathname=h.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,_={[G]:R+=g,[J]:T+=g,[ue]:i};(s?history.replaceState:history.pushState).call(history,_,"",e),s||_n(R,T)}if(L=null,h.props.page.state=i,yt){v=h.state,h.props.page&&(h.props.page.url=e);const g=(await Promise.all(Array.from(vn,_=>_(l.navigation)))).filter(_=>typeof _=="function");if(g.length>0){let _=function(){g.forEach(b=>{Y.delete(b)})};g.push(_),g.forEach(b=>{Y.add(b)})}ve.$set(h.props),pn(h.props.page),_e=!0}else Se(h,xt,!1);const{activeElement:w}=document;await xe();const k=n?n.scroll:a?$t():null;if(ee){const g=e.hash&&document.getElementById(decodeURIComponent(S.hash?e.hash.split("#")[2]??"":e.hash.slice(1)));k?scrollTo(k.x,k.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==w&&document.activeElement!==document.body;!r&&!I&&xn(),ee=!0,h.props.page&&Object.assign(U,h.props.page),Q=!1,t==="popstate"&&Ae(T),l.fulfil(void 0),Y.forEach(g=>g(l.navigation)),$.navigating.set(X.current=null)}async function Re(t,e,n,r){return t.origin===ft&&t.pathname===location.pathname&&!Vt?await At({status:r,error:n,url:t,route:e}):await q(t)}function In(){let t,e;j.addEventListener("mousemove",i=>{const o=i.target;clearTimeout(t),t=setTimeout(()=>{a(o,2)},20)});function n(i){i.defaultPrevented||a(i.composedPath()[0],1)}j.addEventListener("mousedown",n),j.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(i=>{for(const o of i)o.isIntersecting&&(Lt(new URL(o.target.href)),r.unobserve(o.target))},{threshold:0});async function a(i,o){const c=pe(i,j);if(!c||c===e)return;e=c;const{url:f,external:u,download:p}=Tt(c,x,S.hash);if(u||p)return;const y=ht(c),l=f&&_t(v.url)===_t(f);if(!y.reload&&!l)if(o<=y.preload_data){const m=await St(f,!1);m&&An(m)}else o<=y.preload_code&&Lt(f)}function s(){r.disconnect();for(const i of j.querySelectorAll("a")){const{url:o,external:c,download:f}=Tt(i,x,S.hash);if(c||f)continue;const u=ht(i);u.reload||(u.preload_code===ut.viewport&&r.observe(i),u.preload_code===ut.eager&&Lt(o))}}Y.add(s),s()}function M(t,e){if(t instanceof vt)return t.body;const n=dt(t),r=hn(t);return S.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function Un(t,e={}){return t=new URL(he(t)),t.origin!==ft?Promise.reject(new Error("goto: invalid URL")):Gt(t,e,0)}function Ln(t){if(typeof t=="function")gt.push(t);else{const{href:e}=new URL(t,location.href);gt.push(n=>n.href===e)}}function Tn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ne(),!Q){const a=Le(v,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ne()}),(e=navigator.connection)!=null&&e.saveData||In(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=pe(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Tt(r,x,S.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ht(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[u,p]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=u===Rt(location);if(s||c.reload&&(!y||!p)){Ee({url:a,type:"link"})?Q=!0:n.preventDefault();return}if(p!==void 0&&y){const[,l]=v.url.href.split("#");if(l===p){if(n.preventDefault(),p===""||p==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(p));m&&(m.scrollIntoView(),m.focus())}return}if(H=!0,Dt(R),t(a),!c.replace_state)return;H=!1}n.preventDefault(),await new Promise(l=>{requestAnimationFrame(()=>{setTimeout(l,0)}),setTimeout(l,100)}),K({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(bt(o,x,!1))return;const c=n.target,f=ht(c);if(f.reload)return;n.preventDefault(),n.stopPropagation();const u=new FormData(c),p=a==null?void 0:a.getAttribute("name");p&&u.append(p,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(u).toString(),K({type:"form",url:o,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[G]){const a=n.state[G];if(F={},a===R)return;const s=V[a],i=n.state[ue]??{},o=new URL(n.state[Je]??location.href),c=n.state[J],f=v.url?Rt(location)===Rt(v.url):!1;if(c===T&&(_e||f)){i!==U.state&&(U.state=i),t(o),V[R]=$t(),s&&scrollTo(s.x,s.y),R=a;return}const p=a-R;await K({type:"popstate",url:o,popped:{state:i,scroll:s,delta:p},accept:()=>{R=a,T=c},block:()=>{history.go(-p)},nav_token:F})}else if(!H){const a=new URL(location.href);t(a)}}),addEventListener("hashchange",()=>{H?(H=!1,history.replaceState({...history.state,[G]:++R,[J]:T},"",location.href)):S.hash&&v.url.hash===location.hash&&K({type:"goto",url:Te(v.url)})});for(const n of document.querySelectorAll("link"))wn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(X.current=null)});function t(n){v.url=U.url=n,$.page.set(Ht(U)),$.page.notify()}}async function Pn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Vt=!0;const f=new URL(location.href);let u;({params:a={},route:s={id:null}}=await St(f,!1)||{}),u=Ft.find(({id:l})=>l===s.id);let p,y=!0;try{const l=r.map(async(d,h)=>{const w=o[h];return w!=null&&w.uses&&(w.uses=Ue(w.uses)),Mt({loader:S.nodes[d],url:f,params:a,route:s,parent:async()=>{const k={};for(let I=0;Ii?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new vt(a.status,i)}return new Promise(async i=>{var y;const o=new Map,c=a.body.getReader(),f=new TextDecoder;function u(l){return sn(l,{...S.decoders,Promise:m=>new Promise((d,h)=>{o.set(m,{fulfil:d,reject:h})})})}let p="";for(;;){const{done:l,value:m}=await c.read();if(l&&!p)break;for(p+=!m&&p?`
`:f.decode(m,{stream:!0});;){const d=p.indexOf(`
`);if(d===-1)break;const h=JSON.parse(p.slice(0,d));if(p=p.slice(d+1),h.type==="redirect")return i(h);if(h.type==="data")(y=h.nodes)==null||y.forEach(w=>{(w==null?void 0:w.type)==="data"&&(w.uses=Ue(w.uses),w.data=u(w.data))}),i(h);else if(h.type==="chunk"){const{id:w,data:k,error:I}=h,g=o.get(w);o.delete(w),I?g.reject(u(I)):g.fulfil(u(k))}}}})}function Ue(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}function xn(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const e=document.body,n=e.getAttribute("tabindex");e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),n!==null?e.setAttribute("tabindex",n):e.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=u,s=p});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((f=e==null?void 0:e.route)==null?void 0:f.id)??null},url:n},willUnload:!e,type:r,complete:i},fulfil:a,reject:s}}function Ht(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Te(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}export{Gn as a,U as p,$ as s};
diff --git a/_app/immutable/chunks/C9gjURsn.js b/_app/immutable/chunks/fxJuOqUj.js
similarity index 93%
rename from _app/immutable/chunks/C9gjURsn.js
rename to _app/immutable/chunks/fxJuOqUj.js
index a53dce751..c76c5c1b5 100644
--- a/_app/immutable/chunks/C9gjURsn.js
+++ b/_app/immutable/chunks/fxJuOqUj.js
@@ -1 +1 @@
-import{t as D,a as h}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as u,s as e,c as r,at as l,r as p}from"./HSyAO-bR.js";import{h as v}from"./CfcRz03H.js";import{R as c}from"./BbHEq2Iy.js";const f={title:"getFluentContext"},{title:x}=f;var C=D(' Retrieves the current objects from the svelte context.
Return value
The object.
',1);function k(i){var a=C(),n=u(a);n.textContent=x;var t=e(n,2),m=e(r(t));c(m,{name:"FluentContext"}),l(),p(t);var o=e(t,2);v(o,()=>'const { localize } = getFluentContext();
');var s=e(o,4),d=e(r(s));c(d,{name:"FluentContext"}),l(),p(s),h(i,a)}export{k as _,f as m};
+import{t as D,a as h}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as u,s as e,c as r,at as l,r as p}from"./HSyAO-bR.js";import{h as v}from"./CfcRz03H.js";import{R as c}from"./CSU6ZshI.js";const f={title:"getFluentContext"},{title:x}=f;var C=D(' Retrieves the current objects from the svelte context.
Return value
The object.
',1);function k(i){var a=C(),n=u(a);n.textContent=x;var t=e(n,2),m=e(r(t));c(m,{name:"FluentContext"}),l(),p(t);var o=e(t,2);v(o,()=>'const { localize } = getFluentContext();
');var s=e(o,4),d=e(r(s));c(d,{name:"FluentContext"}),l(),p(s),h(i,a)}export{k as _,f as m};
diff --git a/_app/immutable/chunks/BnIOxPF8.js b/_app/immutable/chunks/iUTK1cXb.js
similarity index 99%
rename from _app/immutable/chunks/BnIOxPF8.js
rename to _app/immutable/chunks/iUTK1cXb.js
index d33d96861..6323d0434 100644
--- a/_app/immutable/chunks/BnIOxPF8.js
+++ b/_app/immutable/chunks/iUTK1cXb.js
@@ -1,4 +1,4 @@
-import{t as v,a as h}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{s,f as m,c as l,at as d,r as o}from"./HSyAO-bR.js";import{h as a}from"./CfcRz03H.js";import{s as g}from"./CVILMKYO.js";import{b as k}from"./BbXH6iBM.js";import{R as E}from"./BbHEq2Iy.js";import{F as b}from"./lnLaEpDI.js";import"./C6LsEgJM.js";const K=[{rank:1,text:"Getting started",id:"getting-started"},{rank:2,text:"What is svelte-fluent?",id:"what-is-svelte-fluent"},{rank:3,text:"Example",id:"example"},{rank:2,text:"Installation",id:"installation"},{rank:2,text:"Configure bundler",id:"configure-bundler"},{rank:3,text:"SvelteKit",id:"sveltekit"},{rank:3,text:"Vite",id:"vite"},{rank:3,text:"Rollup / Sapper",id:"rollup--sapper"}];var F=v(`Getting started
What is svelte-fluent?
svelte-fluent
is a svelte component library that aims to make it effortless to localize applications using
+import{t as v,a as h}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{s,f as m,c as l,at as d,r as o}from"./HSyAO-bR.js";import{h as a}from"./CfcRz03H.js";import{s as g}from"./CVILMKYO.js";import{b as k}from"./BtymlV4B.js";import{R as E}from"./CSU6ZshI.js";import{F as b}from"./lnLaEpDI.js";import"./C6LsEgJM.js";const K=[{rank:1,text:"Getting started",id:"getting-started"},{rank:2,text:"What is svelte-fluent?",id:"what-is-svelte-fluent"},{rank:3,text:"Example",id:"example"},{rank:2,text:"Installation",id:"installation"},{rank:2,text:"Configure bundler",id:"configure-bundler"},{rank:3,text:"SvelteKit",id:"sveltekit"},{rank:3,text:"Vite",id:"vite"},{rank:3,text:"Rollup / Sapper",id:"rollup--sapper"}];var F=v(`
Getting started
What is svelte-fluent?
svelte-fluent
is a svelte component library that aims to make it effortless to localize applications using
the Fluent localization system by Mozilla.
Example
Installation
Using SvelteKit? Check out the SvelteKit integration guide!
Install svelte-fluent
with your package manager of choice.
| Note: the jsdom
dependency is for the server-side rendering of the component. It will not increase your frontend bundle size.
Configure bundler
You need to add the svelte-fluent
plugin to your bundler configuration for all features to work.
Currently vite and rollup are supported.
The plugin serves 2 functions:
- It provides SSR support for the Overlay component.
- It allows you to import
.ftl
files via import resources from 'path/to/messages.ftl'
, directly providing you a FluentResource
instance instead of having to constructing your own from a string imported via Vite’s ?raw
syntax.
SvelteKit
vite.config.js
Vite
vite.config.js
Rollup / Sapper
rollup.config.js
`,1);function q(y){var p=F(),t=s(m(p),8);b(t);var e=s(t,4),r=l(e),u=s(l(r));g(u,"href",`${k??""}/docs/integration#sveltekit`),d(),o(r),o(e);var i=s(e,4);a(i,()=>`npm install --save-dev @nubolab-ffwd/svelte-fluent
npm install --save jsdom
`);var n=s(i,2),C=s(l(n),3);E(C,{name:"Overlay"}),d(),o(n);var c=s(n,14);a(c,()=>`import { sveltekit } from '@sveltejs/kit/vite';
diff --git a/_app/immutable/chunks/DyVZAf8R.js b/_app/immutable/chunks/mu4nSBiY.js
similarity index 96%
rename from _app/immutable/chunks/DyVZAf8R.js
rename to _app/immutable/chunks/mu4nSBiY.js
index 612b47fda..44e2d223a 100644
--- a/_app/immutable/chunks/DyVZAf8R.js
+++ b/_app/immutable/chunks/mu4nSBiY.js
@@ -1,2 +1,2 @@
-import{t as r,a as n}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as s,s as d,c as p,at as l,r as f}from"./HSyAO-bR.js";import{R as c}from"./BbHEq2Iy.js";const h={title:"Overlay (legacy)",menuTitle:"Overlay"},{title:g,menuTitle:w}=h;var m=r(` The Overlay
component exported from @nubolab-ffwd/svelte-fluent/legacy
is a wrapper around the
+import{t as r,a as n}from"./DU7dP48_.js";import"./C4cq9Azi.js";import{f as s,s as d,c as p,at as l,r as f}from"./HSyAO-bR.js";import{R as c}from"./CSU6ZshI.js";const h={title:"Overlay (legacy)",menuTitle:"Overlay"},{title:g,menuTitle:w}=h;var m=r(`
The Overlay
component exported from @nubolab-ffwd/svelte-fluent/legacy
is a wrapper around the
regular component that allows you to use slots instead of snippets.
Props
Name Type Default Description id
string
undefined
Unique identifier for the translation args
Record<string, FluentVariable>
undefined
Arguments for interpolation
Slots
Slots are provided for backwards compatibility. New code should opt to use snippets.
Name Description default
Defines the markup the Overlay is applied upon
`,1);function O(o){var t=m(),e=s(t);e.textContent=g;var a=d(e,2),i=d(p(a),5);c(i,{name:"Overlay"}),l(),f(a),l(10),n(o,t)}export{O as _,h as m};
diff --git a/_app/immutable/entry/app.DCqcn2h_.js b/_app/immutable/entry/app.CvGQ2E48.js
similarity index 73%
rename from _app/immutable/entry/app.DCqcn2h_.js
rename to _app/immutable/entry/app.CvGQ2E48.js
index 077e64d12..a78485176 100644
--- a/_app/immutable/entry/app.DCqcn2h_.js
+++ b/_app/immutable/entry/app.CvGQ2E48.js
@@ -1,2 +1,2 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.Bs3gqmn2.js","_app/immutable/chunks/DU7dP48_.js","_app/immutable/chunks/HSyAO-bR.js","_app/immutable/chunks/B1MsCI6X.js","_app/immutable/chunks/uL5EIN6x.js","_app/immutable/chunks/CVILMKYO.js","_app/immutable/chunks/DJCR0f5C.js","_app/immutable/chunks/DtO3nUDQ.js","_app/immutable/chunks/C4cq9Azi.js","_app/immutable/chunks/PwPRnE0L.js","_app/immutable/chunks/BbXH6iBM.js","_app/immutable/chunks/CobRr6I-.js","_app/immutable/chunks/CfcRz03H.js","_app/immutable/chunks/CsI-_j_C.js","_app/immutable/chunks/CYgJF_JY.js","_app/immutable/chunks/Co2NNI44.js","_app/immutable/assets/0.CZDQMnz0.css","_app/immutable/nodes/1.DFpZPMXh.js","_app/immutable/chunks/Bba2NgsV.js","_app/immutable/chunks/QfER5Q5a.js","_app/immutable/nodes/2.QQsQ2pm8.js","_app/immutable/chunks/BnIOxPF8.js","_app/immutable/chunks/BbHEq2Iy.js","_app/immutable/chunks/lnLaEpDI.js","_app/immutable/chunks/DdJWLrcK.js","_app/immutable/chunks/DNh6f7hg.js","_app/immutable/chunks/C6LsEgJM.js","_app/immutable/assets/en.GDt0QtHe.css","_app/immutable/chunks/Bf6Zvjcp.js","_app/immutable/chunks/DKXcWinK.js","_app/immutable/chunks/Bdc8bdGj.js","_app/immutable/assets/6.DRmeVqd_.css","_app/immutable/chunks/De7Wx6Lc.js","_app/immutable/chunks/AiDXwOfh.js","_app/immutable/chunks/lAnBkW51.js","_app/immutable/chunks/CodjaLSH.js","_app/immutable/chunks/BPazXxgC.js","_app/immutable/chunks/BEWBL7dX.js","_app/immutable/chunks/BLiMFxIK.js","_app/immutable/chunks/DYfHKpLH.js","_app/immutable/chunks/C9gjURsn.js","_app/immutable/chunks/CKnkVSe3.js","_app/immutable/chunks/BunBbhm2.js","_app/immutable/chunks/tAksebgW.js","_app/immutable/chunks/DyVZAf8R.js","_app/immutable/assets/2.4L7Bed0P.css","_app/immutable/nodes/3.BZbEHFmB.js","_app/immutable/assets/3.QyXMVIo7.css","_app/immutable/nodes/4.DKDFzRsA.js","_app/immutable/nodes/5.B0-j5Y2Q.js","_app/immutable/nodes/6.Drb5q5E3.js","_app/immutable/nodes/7.CIxcIiO1.js","_app/immutable/nodes/8.CugUVKx6.js","_app/immutable/nodes/9.B8NtyoPt.js","_app/immutable/nodes/10.CrRdashZ.js","_app/immutable/nodes/11.CY7zSAXX.js","_app/immutable/nodes/12.grHaVJRq.js","_app/immutable/nodes/13.Cu53w5ul.js","_app/immutable/nodes/14.g23HkH7l.js","_app/immutable/nodes/15.QLJNzo3y.js","_app/immutable/nodes/16.DsQ7wArA.js","_app/immutable/nodes/17.CRCjPIHP.js","_app/immutable/nodes/18.CWazki6I.js","_app/immutable/nodes/19.C4bH1Al4.js","_app/immutable/nodes/20.taBSH7Ro.js"])))=>i.map(i=>d[i]);
-var H=o=>{throw TypeError(o)};var J=(o,e,t)=>e.has(o)||H("Cannot "+t);var _=(o,e,t)=>(J(o,e,"read from private field"),t?t.call(o):e.get(o)),N=(o,e,t)=>e.has(o)?H("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),W=(o,e,t,i)=>(J(o,e,"write to private field"),i?i.call(o,t):e.set(o,t),t);import{k as K,w as ce,m as ie,E as _e,n as de,B as ue,v as le,a7 as F,ak as fe,g as h,au as me,ac as ve,ad as he,X as Ee,C as ge,u as Pe,av as X,aw as ye,f as R,s as Re,Z as Oe,c as Le,r as Ae,I as V,t as Te}from"../chunks/HSyAO-bR.js";import{h as be,m as Ie,u as De,s as Ve}from"../chunks/Bba2NgsV.js";import{t as M,a as g,c as T,q as xe}from"../chunks/DU7dP48_.js";import{i as S}from"../chunks/B1MsCI6X.js";import{p,a as we}from"../chunks/DJCR0f5C.js";import{b as x}from"../chunks/BEWBL7dX.js";import{o as ke}from"../chunks/Co2NNI44.js";function w(o,e,t){K&&ce();var i=o,a,d;ie(()=>{a!==(a=e())&&(d&&(ue(d),d=null),a&&(d=de(()=>t(i,a))))},_e),K&&(i=le)}function Ce(o){return class extends Se{constructor(e){super({component:o,...e})}}}var P,l;class Se{constructor(e){N(this,P);N(this,l);var d;var t=new Map,i=(r,s)=>{var c=he(s);return t.set(r,c),c};const a=new Proxy({...e.props||{},$$events:{}},{get(r,s){return h(t.get(s)??i(s,Reflect.get(r,s)))},has(r,s){return s===fe?!0:(h(t.get(s)??i(s,Reflect.get(r,s))),Reflect.has(r,s))},set(r,s,c){return F(t.get(s)??i(s,c),c),Reflect.set(r,s,c)}});W(this,l,(e.hydrate?be:Ie)(e.component,{target:e.target,anchor:e.anchor,props:a,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((d=e==null?void 0:e.props)!=null&&d.$$host)||e.sync===!1)&&me(),W(this,P,a.$$events);for(const r of Object.keys(_(this,l)))r==="$set"||r==="$destroy"||r==="$on"||ve(this,r,{get(){return _(this,l)[r]},set(s){_(this,l)[r]=s},enumerable:!0});_(this,l).$set=r=>{Object.assign(a,r)},_(this,l).$destroy=()=>{De(_(this,l))}}$set(e){_(this,l).$set(e)}$on(e,t){_(this,P)[e]=_(this,P)[e]||[];const i=(...a)=>t.call(this,...a);return _(this,P)[e].push(i),()=>{_(this,P)[e]=_(this,P)[e].filter(a=>a!==i)}}$destroy(){_(this,l).$destroy()}}P=new WeakMap,l=new WeakMap;const pe="modulepreload",Fe=function(o){return"/svelte-fluent/"+o},Q={},n=function(e,t,i){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));a=Promise.allSettled(t.map(c=>{if(c=Fe(c),c in Q)return;Q[c]=!0;const O=c.endsWith(".css"),k=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${k}`))return;const f=document.createElement("link");if(f.rel=O?"stylesheet":pe,O||(f.as="script"),f.crossOrigin="",f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),O)return new Promise((j,q)=>{f.addEventListener("load",j),f.addEventListener("error",()=>q(new Error(`Unable to preload CSS for ${c}`)))})}))}function d(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return a.then(r=>{for(const s of r||[])s.status==="rejected"&&d(s.reason);return e().catch(d)})},Me={};var je=M(''),qe=M(" ",1);function Ue(o,e){Ee(e,!0);let t=p(e,"components",23,()=>[]),i=p(e,"data_0",3,null),a=p(e,"data_1",3,null),d=p(e,"data_2",3,null);ge(()=>e.stores.page.set(e.page)),Pe(()=>{e.stores,e.page,e.constructors,t(),e.form,i(),a(),d(),e.stores.page.notify()});let r=X(!1),s=X(!1),c=X(null);ke(()=>{const u=e.stores.page.subscribe(()=>{h(r)&&(F(s,!0),ye().then(()=>{F(c,we(document.title||"untitled page"))}))});return F(r,!0),u});const O=V(()=>e.constructors[2]);var k=qe(),f=R(k);{var j=u=>{var E=T();const b=V(()=>e.constructors[0]);var I=R(E);w(I,()=>h(b),(y,L)=>{x(L(y,{get data(){return i()},get form(){return e.form},children:(m,Ge)=>{var Y=T(),te=R(Y);{var re=A=>{var D=T();const U=V(()=>e.constructors[1]);var z=R(D);w(z,()=>h(U),(B,G)=>{x(G(B,{get data(){return a()},get form(){return e.form},children:(v,Ne)=>{var Z=T(),se=R(Z);w(se,()=>h(O),(ne,ae)=>{x(ae(ne,{get data(){return d()},get form(){return e.form}}),C=>t()[2]=C,()=>{var C;return(C=t())==null?void 0:C[2]})}),g(v,Z)},$$slots:{default:!0}}),v=>t()[1]=v,()=>{var v;return(v=t())==null?void 0:v[1]})}),g(A,D)},oe=A=>{var D=T();const U=V(()=>e.constructors[1]);var z=R(D);w(z,()=>h(U),(B,G)=>{x(G(B,{get data(){return a()},get form(){return e.form}}),v=>t()[1]=v,()=>{var v;return(v=t())==null?void 0:v[1]})}),g(A,D)};S(te,A=>{e.constructors[2]?A(re):A(oe,!1)})}g(m,Y)},$$slots:{default:!0}}),m=>t()[0]=m,()=>{var m;return(m=t())==null?void 0:m[0]})}),g(u,E)},q=u=>{var E=T();const b=V(()=>e.constructors[0]);var I=R(E);w(I,()=>h(b),(y,L)=>{x(L(y,{get data(){return i()},get form(){return e.form}}),m=>t()[0]=m,()=>{var m;return(m=t())==null?void 0:m[0]})}),g(u,E)};S(f,u=>{e.constructors[1]?u(j):u(q,!1)})}var $=Re(f,2);{var ee=u=>{var E=je(),b=Le(E);{var I=y=>{var L=xe();Te(()=>Ve(L,h(c))),g(y,L)};S(b,y=>{h(s)&&y(I)})}Ae(E),g(u,E)};S($,u=>{h(r)&&u(ee)})}g(o,k),Oe()}const $e=Ce(Ue),et=[()=>n(()=>import("../nodes/0.Bs3gqmn2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])),()=>n(()=>import("../nodes/1.DFpZPMXh.js"),__vite__mapDeps([17,1,2,8,18,19,13,7,10,14,15])),()=>n(()=>import("../nodes/2.QQsQ2pm8.js"),__vite__mapDeps([20,21,1,2,8,12,5,10,22,18,23,9,24,25,6,7,26,3,4,19,27,28,29,30,31,32,33,34,15,35,36,37,38,39,40,41,42,43,44,45])),()=>n(()=>import("../nodes/3.BZbEHFmB.js"),__vite__mapDeps([46,1,2,8,23,5,9,24,25,6,7,26,18,3,12,4,19,27,11,10,47])),()=>n(()=>import("../nodes/4.DKDFzRsA.js"),__vite__mapDeps([48,10,14])),()=>n(()=>import("../nodes/5.B0-j5Y2Q.js"),__vite__mapDeps([49,21,1,2,8,12,5,10,22,18,23,9,24,25,6,7,26,3,4,19,27])),()=>n(()=>import("../nodes/6.Drb5q5E3.js"),__vite__mapDeps([50,30,1,2,8,12,5,19,22,18,10,31])),()=>n(()=>import("../nodes/7.CIxcIiO1.js"),__vite__mapDeps([51,1,2,8,18,26,3,12,4,19,27,5,42,43,22,10,44])),()=>n(()=>import("../nodes/8.CugUVKx6.js"),__vite__mapDeps([52,43,1,2,8,12,22,18,5,10,26,3,4,19,27])),()=>n(()=>import("../nodes/9.B8NtyoPt.js"),__vite__mapDeps([53,44,1,2,8,22,18,5,10])),()=>n(()=>import("../nodes/10.CrRdashZ.js"),__vite__mapDeps([54,1,2,8,18,26,3,12,4,19,27,5,32,33,22,10,34,15,35,24,6,7,36,9,37,38,39,40,41])),()=>n(()=>import("../nodes/11.CY7zSAXX.js"),__vite__mapDeps([55,33,1,2,8,12,22,18,5,10,26,3,4,19,27])),()=>n(()=>import("../nodes/12.grHaVJRq.js"),__vite__mapDeps([56,34,1,2,8,26,18,3,12,4,19,27,15])),()=>n(()=>import("../nodes/13.Cu53w5ul.js"),__vite__mapDeps([57,35,1,2,8,19,26,18,3,12,4,27,5,24,6,7])),()=>n(()=>import("../nodes/14.g23HkH7l.js"),__vite__mapDeps([58,36,1,2,8,26,18,3,12,4,19,27,5,24,6,7,9,37])),()=>n(()=>import("../nodes/15.QLJNzo3y.js"),__vite__mapDeps([59,38,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/16.DsQ7wArA.js"),__vite__mapDeps([60,39,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/17.CRCjPIHP.js"),__vite__mapDeps([61,40,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/18.CWazki6I.js"),__vite__mapDeps([62,41,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/19.C4bH1Al4.js"),__vite__mapDeps([63,28,1,2,8,5,10,22,18,26,3,12,4,19,27,25,6,7])),()=>n(()=>import("../nodes/20.taBSH7Ro.js"),__vite__mapDeps([64,29,1,2,8,12,5,10,22,18]))],tt=[],rt={"/":[3],"/docs":[4,[2]],"/docs/getting-started":[5,[2]],"/docs/integration":[6,[2]],"/docs/legacy":[7,[2]],"/docs/legacy/Localized":[8,[2]],"/docs/legacy/Overlay":[9,[2]],"/docs/reference":[10,[2]],"/docs/reference/FluentContext":[11,[2]],"/docs/reference/FluentProvider":[12,[2]],"/docs/reference/Localized":[13,[2]],"/docs/reference/Overlay":[14,[2]],"/docs/reference/SvelteFluent":[15,[2]],"/docs/reference/createSvelteFluent":[16,[2]],"/docs/reference/getFluentContext":[17,[2]],"/docs/reference/initFluentContext":[18,[2]],"/docs/tutorial":[19,[2]],"/docs/version-1":[20,[2]]},ze={handleError:({error:o})=>{console.error(o)},reroute:()=>{},transport:{}},Be=Object.fromEntries(Object.entries(ze.transport).map(([o,e])=>[o,e.decode])),ot=!1,st=(o,e)=>Be[o](e);export{st as decode,Be as decoders,rt as dictionary,ot as hash,ze as hooks,Me as matchers,et as nodes,$e as root,tt as server_loads};
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.CzJguzZQ.js","_app/immutable/chunks/DU7dP48_.js","_app/immutable/chunks/HSyAO-bR.js","_app/immutable/chunks/B1MsCI6X.js","_app/immutable/chunks/uL5EIN6x.js","_app/immutable/chunks/CVILMKYO.js","_app/immutable/chunks/DJCR0f5C.js","_app/immutable/chunks/DtO3nUDQ.js","_app/immutable/chunks/C4cq9Azi.js","_app/immutable/chunks/PwPRnE0L.js","_app/immutable/chunks/BtymlV4B.js","_app/immutable/chunks/CobRr6I-.js","_app/immutable/chunks/CfcRz03H.js","_app/immutable/chunks/XzXiTbL0.js","_app/immutable/chunks/CYgJF_JY.js","_app/immutable/chunks/Co2NNI44.js","_app/immutable/assets/0.CZDQMnz0.css","_app/immutable/nodes/1.V3OYu2eF.js","_app/immutable/chunks/Bba2NgsV.js","_app/immutable/chunks/QfER5Q5a.js","_app/immutable/nodes/2.CuVDno4Z.js","_app/immutable/chunks/iUTK1cXb.js","_app/immutable/chunks/CSU6ZshI.js","_app/immutable/chunks/lnLaEpDI.js","_app/immutable/chunks/DdJWLrcK.js","_app/immutable/chunks/DNh6f7hg.js","_app/immutable/chunks/C6LsEgJM.js","_app/immutable/assets/en.GDt0QtHe.css","_app/immutable/chunks/CtiUiiFr.js","_app/immutable/chunks/RYRP6iBn.js","_app/immutable/chunks/Dj54AaxL.js","_app/immutable/assets/6.DRmeVqd_.css","_app/immutable/chunks/ChO4W963.js","_app/immutable/chunks/D8B_DDTW.js","_app/immutable/chunks/lAnBkW51.js","_app/immutable/chunks/CodjaLSH.js","_app/immutable/chunks/BPazXxgC.js","_app/immutable/chunks/BEWBL7dX.js","_app/immutable/chunks/BulkGmrm.js","_app/immutable/chunks/BzgXux7P.js","_app/immutable/chunks/fxJuOqUj.js","_app/immutable/chunks/DBZ0V8io.js","_app/immutable/chunks/C_DsgZuw.js","_app/immutable/chunks/D18bs-Pz.js","_app/immutable/chunks/mu4nSBiY.js","_app/immutable/assets/2.4L7Bed0P.css","_app/immutable/nodes/3.C0jai1pM.js","_app/immutable/assets/3.QyXMVIo7.css","_app/immutable/nodes/4.DlOw-DTr.js","_app/immutable/nodes/5.rnv-f1y1.js","_app/immutable/nodes/6.j-4gpjyb.js","_app/immutable/nodes/7.bg6TjWT_.js","_app/immutable/nodes/8.CRNDhpbu.js","_app/immutable/nodes/9.B5Mm48nk.js","_app/immutable/nodes/10.B1KDcZ9_.js","_app/immutable/nodes/11.Dik1047-.js","_app/immutable/nodes/12.grHaVJRq.js","_app/immutable/nodes/13.Cu53w5ul.js","_app/immutable/nodes/14.g23HkH7l.js","_app/immutable/nodes/15.DBlOBpt8.js","_app/immutable/nodes/16.tbN1LagV.js","_app/immutable/nodes/17.IByeFfke.js","_app/immutable/nodes/18.Bq-BhrsP.js","_app/immutable/nodes/19.Bt60OS6X.js","_app/immutable/nodes/20.DsfGDHUL.js"])))=>i.map(i=>d[i]);
+var H=o=>{throw TypeError(o)};var J=(o,e,t)=>e.has(o)||H("Cannot "+t);var _=(o,e,t)=>(J(o,e,"read from private field"),t?t.call(o):e.get(o)),N=(o,e,t)=>e.has(o)?H("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),W=(o,e,t,i)=>(J(o,e,"write to private field"),i?i.call(o,t):e.set(o,t),t);import{k as K,w as ce,m as ie,E as _e,n as de,B as ue,v as le,a7 as F,ak as fe,g as h,au as me,ac as ve,ad as he,X as Ee,C as ge,u as Pe,av as X,aw as ye,f as R,s as Re,Z as Oe,c as Le,r as Ae,I as V,t as Te}from"../chunks/HSyAO-bR.js";import{h as be,m as Ie,u as De,s as Ve}from"../chunks/Bba2NgsV.js";import{t as M,a as g,c as T,q as xe}from"../chunks/DU7dP48_.js";import{i as S}from"../chunks/B1MsCI6X.js";import{p,a as we}from"../chunks/DJCR0f5C.js";import{b as x}from"../chunks/BEWBL7dX.js";import{o as ke}from"../chunks/Co2NNI44.js";function w(o,e,t){K&&ce();var i=o,a,d;ie(()=>{a!==(a=e())&&(d&&(ue(d),d=null),a&&(d=de(()=>t(i,a))))},_e),K&&(i=le)}function Ce(o){return class extends Se{constructor(e){super({component:o,...e})}}}var P,l;class Se{constructor(e){N(this,P);N(this,l);var d;var t=new Map,i=(r,s)=>{var c=he(s);return t.set(r,c),c};const a=new Proxy({...e.props||{},$$events:{}},{get(r,s){return h(t.get(s)??i(s,Reflect.get(r,s)))},has(r,s){return s===fe?!0:(h(t.get(s)??i(s,Reflect.get(r,s))),Reflect.has(r,s))},set(r,s,c){return F(t.get(s)??i(s,c),c),Reflect.set(r,s,c)}});W(this,l,(e.hydrate?be:Ie)(e.component,{target:e.target,anchor:e.anchor,props:a,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((d=e==null?void 0:e.props)!=null&&d.$$host)||e.sync===!1)&&me(),W(this,P,a.$$events);for(const r of Object.keys(_(this,l)))r==="$set"||r==="$destroy"||r==="$on"||ve(this,r,{get(){return _(this,l)[r]},set(s){_(this,l)[r]=s},enumerable:!0});_(this,l).$set=r=>{Object.assign(a,r)},_(this,l).$destroy=()=>{De(_(this,l))}}$set(e){_(this,l).$set(e)}$on(e,t){_(this,P)[e]=_(this,P)[e]||[];const i=(...a)=>t.call(this,...a);return _(this,P)[e].push(i),()=>{_(this,P)[e]=_(this,P)[e].filter(a=>a!==i)}}$destroy(){_(this,l).$destroy()}}P=new WeakMap,l=new WeakMap;const pe="modulepreload",Fe=function(o){return"/svelte-fluent/"+o},Q={},n=function(e,t,i){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));a=Promise.allSettled(t.map(c=>{if(c=Fe(c),c in Q)return;Q[c]=!0;const O=c.endsWith(".css"),k=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${k}`))return;const f=document.createElement("link");if(f.rel=O?"stylesheet":pe,O||(f.as="script"),f.crossOrigin="",f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),O)return new Promise((j,q)=>{f.addEventListener("load",j),f.addEventListener("error",()=>q(new Error(`Unable to preload CSS for ${c}`)))})}))}function d(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return a.then(r=>{for(const s of r||[])s.status==="rejected"&&d(s.reason);return e().catch(d)})},Me={};var je=M(''),qe=M(" ",1);function Ue(o,e){Ee(e,!0);let t=p(e,"components",23,()=>[]),i=p(e,"data_0",3,null),a=p(e,"data_1",3,null),d=p(e,"data_2",3,null);ge(()=>e.stores.page.set(e.page)),Pe(()=>{e.stores,e.page,e.constructors,t(),e.form,i(),a(),d(),e.stores.page.notify()});let r=X(!1),s=X(!1),c=X(null);ke(()=>{const u=e.stores.page.subscribe(()=>{h(r)&&(F(s,!0),ye().then(()=>{F(c,we(document.title||"untitled page"))}))});return F(r,!0),u});const O=V(()=>e.constructors[2]);var k=qe(),f=R(k);{var j=u=>{var E=T();const b=V(()=>e.constructors[0]);var I=R(E);w(I,()=>h(b),(y,L)=>{x(L(y,{get data(){return i()},get form(){return e.form},children:(m,Ge)=>{var Y=T(),te=R(Y);{var re=A=>{var D=T();const U=V(()=>e.constructors[1]);var z=R(D);w(z,()=>h(U),(B,G)=>{x(G(B,{get data(){return a()},get form(){return e.form},children:(v,Ne)=>{var Z=T(),se=R(Z);w(se,()=>h(O),(ne,ae)=>{x(ae(ne,{get data(){return d()},get form(){return e.form}}),C=>t()[2]=C,()=>{var C;return(C=t())==null?void 0:C[2]})}),g(v,Z)},$$slots:{default:!0}}),v=>t()[1]=v,()=>{var v;return(v=t())==null?void 0:v[1]})}),g(A,D)},oe=A=>{var D=T();const U=V(()=>e.constructors[1]);var z=R(D);w(z,()=>h(U),(B,G)=>{x(G(B,{get data(){return a()},get form(){return e.form}}),v=>t()[1]=v,()=>{var v;return(v=t())==null?void 0:v[1]})}),g(A,D)};S(te,A=>{e.constructors[2]?A(re):A(oe,!1)})}g(m,Y)},$$slots:{default:!0}}),m=>t()[0]=m,()=>{var m;return(m=t())==null?void 0:m[0]})}),g(u,E)},q=u=>{var E=T();const b=V(()=>e.constructors[0]);var I=R(E);w(I,()=>h(b),(y,L)=>{x(L(y,{get data(){return i()},get form(){return e.form}}),m=>t()[0]=m,()=>{var m;return(m=t())==null?void 0:m[0]})}),g(u,E)};S(f,u=>{e.constructors[1]?u(j):u(q,!1)})}var $=Re(f,2);{var ee=u=>{var E=je(),b=Le(E);{var I=y=>{var L=xe();Te(()=>Ve(L,h(c))),g(y,L)};S(b,y=>{h(s)&&y(I)})}Ae(E),g(u,E)};S($,u=>{h(r)&&u(ee)})}g(o,k),Oe()}const $e=Ce(Ue),et=[()=>n(()=>import("../nodes/0.CzJguzZQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])),()=>n(()=>import("../nodes/1.V3OYu2eF.js"),__vite__mapDeps([17,1,2,8,18,19,13,7,10,14,15])),()=>n(()=>import("../nodes/2.CuVDno4Z.js"),__vite__mapDeps([20,21,1,2,8,12,5,10,22,18,23,9,24,25,6,7,26,3,4,19,27,28,29,30,31,32,33,34,15,35,36,37,38,39,40,41,42,43,44,45])),()=>n(()=>import("../nodes/3.C0jai1pM.js"),__vite__mapDeps([46,1,2,8,23,5,9,24,25,6,7,26,18,3,12,4,19,27,11,10,47])),()=>n(()=>import("../nodes/4.DlOw-DTr.js"),__vite__mapDeps([48,10,14])),()=>n(()=>import("../nodes/5.rnv-f1y1.js"),__vite__mapDeps([49,21,1,2,8,12,5,10,22,18,23,9,24,25,6,7,26,3,4,19,27])),()=>n(()=>import("../nodes/6.j-4gpjyb.js"),__vite__mapDeps([50,30,1,2,8,12,5,19,22,18,10,31])),()=>n(()=>import("../nodes/7.bg6TjWT_.js"),__vite__mapDeps([51,1,2,8,18,26,3,12,4,19,27,5,42,43,22,10,44])),()=>n(()=>import("../nodes/8.CRNDhpbu.js"),__vite__mapDeps([52,43,1,2,8,12,22,18,5,10,26,3,4,19,27])),()=>n(()=>import("../nodes/9.B5Mm48nk.js"),__vite__mapDeps([53,44,1,2,8,22,18,5,10])),()=>n(()=>import("../nodes/10.B1KDcZ9_.js"),__vite__mapDeps([54,1,2,8,18,26,3,12,4,19,27,5,32,33,22,10,34,15,35,24,6,7,36,9,37,38,39,40,41])),()=>n(()=>import("../nodes/11.Dik1047-.js"),__vite__mapDeps([55,33,1,2,8,12,22,18,5,10,26,3,4,19,27])),()=>n(()=>import("../nodes/12.grHaVJRq.js"),__vite__mapDeps([56,34,1,2,8,26,18,3,12,4,19,27,15])),()=>n(()=>import("../nodes/13.Cu53w5ul.js"),__vite__mapDeps([57,35,1,2,8,19,26,18,3,12,4,27,5,24,6,7])),()=>n(()=>import("../nodes/14.g23HkH7l.js"),__vite__mapDeps([58,36,1,2,8,26,18,3,12,4,19,27,5,24,6,7,9,37])),()=>n(()=>import("../nodes/15.DBlOBpt8.js"),__vite__mapDeps([59,38,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/16.tbN1LagV.js"),__vite__mapDeps([60,39,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/17.IByeFfke.js"),__vite__mapDeps([61,40,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/18.Bq-BhrsP.js"),__vite__mapDeps([62,41,1,2,8,12,22,18,5,10])),()=>n(()=>import("../nodes/19.Bt60OS6X.js"),__vite__mapDeps([63,28,1,2,8,5,10,22,18,26,3,12,4,19,27,25,6,7])),()=>n(()=>import("../nodes/20.DsfGDHUL.js"),__vite__mapDeps([64,29,1,2,8,12,5,10,22,18]))],tt=[],rt={"/":[3],"/docs":[4,[2]],"/docs/getting-started":[5,[2]],"/docs/integration":[6,[2]],"/docs/legacy":[7,[2]],"/docs/legacy/Localized":[8,[2]],"/docs/legacy/Overlay":[9,[2]],"/docs/reference":[10,[2]],"/docs/reference/FluentContext":[11,[2]],"/docs/reference/FluentProvider":[12,[2]],"/docs/reference/Localized":[13,[2]],"/docs/reference/Overlay":[14,[2]],"/docs/reference/SvelteFluent":[15,[2]],"/docs/reference/createSvelteFluent":[16,[2]],"/docs/reference/getFluentContext":[17,[2]],"/docs/reference/initFluentContext":[18,[2]],"/docs/tutorial":[19,[2]],"/docs/version-1":[20,[2]]},ze={handleError:({error:o})=>{console.error(o)},reroute:()=>{},transport:{}},Be=Object.fromEntries(Object.entries(ze.transport).map(([o,e])=>[o,e.decode])),ot=!1,st=(o,e)=>Be[o](e);export{st as decode,Be as decoders,rt as dictionary,ot as hash,ze as hooks,Me as matchers,et as nodes,$e as root,tt as server_loads};
diff --git a/_app/immutable/entry/start.B5FHNl29.js b/_app/immutable/entry/start.B5FHNl29.js
deleted file mode 100644
index ff04ddd09..000000000
--- a/_app/immutable/entry/start.B5FHNl29.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as t}from"../chunks/CsI-_j_C.js";export{t as start};
diff --git a/_app/immutable/entry/start.CNok2xT9.js b/_app/immutable/entry/start.CNok2xT9.js
new file mode 100644
index 000000000..4e264ca92
--- /dev/null
+++ b/_app/immutable/entry/start.CNok2xT9.js
@@ -0,0 +1 @@
+import{a as t}from"../chunks/XzXiTbL0.js";export{t as start};
diff --git a/_app/immutable/nodes/0.Bs3gqmn2.js b/_app/immutable/nodes/0.CzJguzZQ.js
similarity index 95%
rename from _app/immutable/nodes/0.Bs3gqmn2.js
rename to _app/immutable/nodes/0.CzJguzZQ.js
index 3c9c5ca32..89c96ea6c 100644
--- a/_app/immutable/nodes/0.Bs3gqmn2.js
+++ b/_app/immutable/nodes/0.CzJguzZQ.js
@@ -1 +1 @@
-import{s as T,a as d,t as h,u as k,c as A}from"../chunks/DU7dP48_.js";import{t as g,c as r,at as B,r as o,s as b,X as C,f as x,Z as G,g as f,I as H,ax as L}from"../chunks/HSyAO-bR.js";import{i as M}from"../chunks/B1MsCI6X.js";import{s as O}from"../chunks/uL5EIN6x.js";import{a as P,s as _}from"../chunks/CVILMKYO.js";import{r as V,b as z,c as D}from"../chunks/DJCR0f5C.js";import"../chunks/C4cq9Azi.js";import{s as I}from"../chunks/PwPRnE0L.js";import{b as y}from"../chunks/BbXH6iBM.js";import{L as X}from"../chunks/CobRr6I-.js";import{s as Z}from"../chunks/CsI-_j_C.js";const q=!0,E="always",ve=Object.freeze(Object.defineProperty({__proto__:null,prerender:q,trailingSlash:E},Symbol.toStringTag,{value:"Module"}));var F=T('');function J(e,t){const i=V(t,["$$slots","$$events","$$legacy"]);var s=F();let a;g(()=>a=P(s,a,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...i},void 0,!0)),d(e,s)}var K=h(' ');function N(e){var t=K(),i=r(t);I(i,"--justify","space-between");var s=r(i),a=r(s);_(a,"href",`${y??""}/`);var c=r(a);X(c),B(),o(a),o(s);var l=b(s,2),v=r(l);_(v,"href",`${y??""}/docs`);var p=b(v,2),u=r(p),n=r(u);J(n,{}),o(u),o(p),o(l),o(i),o(t),d(e,t)}const Q=()=>{const e=Z;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},R={subscribe(e){return Q().page.subscribe(e)}};"navigator"in globalThis||(globalThis.navigator={languages:[]});var U=h(''),W=h(' ',1);function pe(e,t){C(t,!0);const[i,s]=z(),a=()=>D(R,"$page",i);let c=H(()=>{var n;return{...a().data.seo,title:[(n=a().data.seo)==null?void 0:n.title,"svelte-fluent"].filter(Boolean).join(" | ")}});var l=W();k(n=>{var $=A(),j=x($);{var S=m=>{var w=U();g(()=>_(w,"content",f(c).description)),d(m,w)};M(j,m=>{f(c).description&&m(S)})}g(()=>L.title=f(c).title),d(n,$)});var v=x(l);N(v);var p=b(v,2),u=r(p);O(u,()=>t.children),o(p),d(e,l),G(),s()}export{pe as component,ve as universal};
+import{s as T,a as d,t as h,u as k,c as A}from"../chunks/DU7dP48_.js";import{t as g,c as r,at as B,r as o,s as b,X as C,f as x,Z as G,g as f,I as H,ax as L}from"../chunks/HSyAO-bR.js";import{i as M}from"../chunks/B1MsCI6X.js";import{s as O}from"../chunks/uL5EIN6x.js";import{a as P,s as _}from"../chunks/CVILMKYO.js";import{r as V,b as z,c as D}from"../chunks/DJCR0f5C.js";import"../chunks/C4cq9Azi.js";import{s as I}from"../chunks/PwPRnE0L.js";import{b as y}from"../chunks/BtymlV4B.js";import{L as X}from"../chunks/CobRr6I-.js";import{s as Z}from"../chunks/XzXiTbL0.js";const q=!0,E="always",ve=Object.freeze(Object.defineProperty({__proto__:null,prerender:q,trailingSlash:E},Symbol.toStringTag,{value:"Module"}));var F=T('');function J(e,t){const i=V(t,["$$slots","$$events","$$legacy"]);var s=F();let a;g(()=>a=P(s,a,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...i},void 0,!0)),d(e,s)}var K=h(' ');function N(e){var t=K(),i=r(t);I(i,"--justify","space-between");var s=r(i),a=r(s);_(a,"href",`${y??""}/`);var c=r(a);X(c),B(),o(a),o(s);var l=b(s,2),v=r(l);_(v,"href",`${y??""}/docs`);var p=b(v,2),u=r(p),n=r(u);J(n,{}),o(u),o(p),o(l),o(i),o(t),d(e,t)}const Q=()=>{const e=Z;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},R={subscribe(e){return Q().page.subscribe(e)}};"navigator"in globalThis||(globalThis.navigator={languages:[]});var U=h(''),W=h(' ',1);function pe(e,t){C(t,!0);const[i,s]=z(),a=()=>D(R,"$page",i);let c=H(()=>{var n;return{...a().data.seo,title:[(n=a().data.seo)==null?void 0:n.title,"svelte-fluent"].filter(Boolean).join(" | ")}});var l=W();k(n=>{var $=A(),j=x($);{var S=m=>{var w=U();g(()=>_(w,"content",f(c).description)),d(m,w)};M(j,m=>{f(c).description&&m(S)})}g(()=>L.title=f(c).title),d(n,$)});var v=x(l);N(v);var p=b(v,2),u=r(p);O(u,()=>t.children),o(p),d(e,l),G(),s()}export{pe as component,ve as universal};
diff --git a/_app/immutable/nodes/1.DFpZPMXh.js b/_app/immutable/nodes/1.V3OYu2eF.js
similarity index 89%
rename from _app/immutable/nodes/1.DFpZPMXh.js
rename to _app/immutable/nodes/1.V3OYu2eF.js
index 85991cfa9..983f1fe52 100644
--- a/_app/immutable/nodes/1.DFpZPMXh.js
+++ b/_app/immutable/nodes/1.V3OYu2eF.js
@@ -1 +1 @@
-import{t as g,a as h}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{X as l,f as v,t as d,Z as x,c as a,r as o,s as _}from"../chunks/HSyAO-bR.js";import{s as p}from"../chunks/Bba2NgsV.js";import{i as $}from"../chunks/QfER5Q5a.js";import{s as k,p as m}from"../chunks/CsI-_j_C.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var E=g("
",1);function z(c,f){l(f,!1),$();var r=E(),t=v(r),n=a(t,!0);o(t);var e=_(t,2),u=a(e,!0);o(e),d(()=>{var s;p(n,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(c,r),x()}export{z as component};
+import{t as g,a as h}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{X as l,f as v,t as d,Z as x,c as a,r as o,s as _}from"../chunks/HSyAO-bR.js";import{s as p}from"../chunks/Bba2NgsV.js";import{i as $}from"../chunks/QfER5Q5a.js";import{s as k,p as m}from"../chunks/XzXiTbL0.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var E=g("
",1);function z(c,f){l(f,!1),$();var r=E(),t=v(r),n=a(t,!0);o(t);var e=_(t,2),u=a(e,!0);o(e),d(()=>{var s;p(n,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(c,r),x()}export{z as component};
diff --git a/_app/immutable/nodes/10.CrRdashZ.js b/_app/immutable/nodes/10.B1KDcZ9_.js
similarity index 77%
rename from _app/immutable/nodes/10.CrRdashZ.js
rename to _app/immutable/nodes/10.B1KDcZ9_.js
index 5ea2f75a6..d7f31a1f0 100644
--- a/_app/immutable/nodes/10.CrRdashZ.js
+++ b/_app/immutable/nodes/10.B1KDcZ9_.js
@@ -1 +1 @@
-import{t as p,a as i}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{s as u,f as h,r,c as m,t as v,g as f}from"../chunks/HSyAO-bR.js";import{s as _}from"../chunks/Bba2NgsV.js";import{e as g,i as x}from"../chunks/C6LsEgJM.js";import{s as d}from"../chunks/CVILMKYO.js";import{s as b}from"../chunks/De7Wx6Lc.js";var R=p("-
"),j=p("Reference
",1);function C(l){var e=j(),s=u(h(e),2);g(s,5,()=>b,x,(n,o)=>{var t=R(),a=m(t),c=m(a,!0);r(a),r(t),v(()=>{d(a,"href",f(o).href),_(c,f(o).text)}),i(n,t)}),r(s),i(l,e)}export{C as component};
+import{t as p,a as i}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{s as u,f as h,r,c as m,t as v,g as f}from"../chunks/HSyAO-bR.js";import{s as _}from"../chunks/Bba2NgsV.js";import{e as g,i as x}from"../chunks/C6LsEgJM.js";import{s as d}from"../chunks/CVILMKYO.js";import{s as b}from"../chunks/ChO4W963.js";var R=p("-
"),j=p("Reference
",1);function C(l){var e=j(),s=u(h(e),2);g(s,5,()=>b,x,(n,o)=>{var t=R(),a=m(t),c=m(a,!0);r(a),r(t),v(()=>{d(a,"href",f(o).href),_(c,f(o).text)}),i(n,t)}),r(s),i(l,e)}export{C as component};
diff --git a/_app/immutable/nodes/11.CY7zSAXX.js b/_app/immutable/nodes/11.CY7zSAXX.js
deleted file mode 100644
index 2f1a95211..000000000
--- a/_app/immutable/nodes/11.CY7zSAXX.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/AiDXwOfh.js";export{m as component};
diff --git a/_app/immutable/nodes/11.Dik1047-.js b/_app/immutable/nodes/11.Dik1047-.js
new file mode 100644
index 000000000..656ff9d4b
--- /dev/null
+++ b/_app/immutable/nodes/11.Dik1047-.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/D8B_DDTW.js";export{m as component};
diff --git a/_app/immutable/nodes/15.DBlOBpt8.js b/_app/immutable/nodes/15.DBlOBpt8.js
new file mode 100644
index 000000000..7b2c50e66
--- /dev/null
+++ b/_app/immutable/nodes/15.DBlOBpt8.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/BulkGmrm.js";export{m as component};
diff --git a/_app/immutable/nodes/15.QLJNzo3y.js b/_app/immutable/nodes/15.QLJNzo3y.js
deleted file mode 100644
index 1119050d6..000000000
--- a/_app/immutable/nodes/15.QLJNzo3y.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/BLiMFxIK.js";export{m as component};
diff --git a/_app/immutable/nodes/16.DsQ7wArA.js b/_app/immutable/nodes/16.DsQ7wArA.js
deleted file mode 100644
index 3dc3b3971..000000000
--- a/_app/immutable/nodes/16.DsQ7wArA.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/DYfHKpLH.js";export{m as component};
diff --git a/_app/immutable/nodes/16.tbN1LagV.js b/_app/immutable/nodes/16.tbN1LagV.js
new file mode 100644
index 000000000..592bc74e4
--- /dev/null
+++ b/_app/immutable/nodes/16.tbN1LagV.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/BzgXux7P.js";export{m as component};
diff --git a/_app/immutable/nodes/17.CRCjPIHP.js b/_app/immutable/nodes/17.CRCjPIHP.js
deleted file mode 100644
index 79509ec95..000000000
--- a/_app/immutable/nodes/17.CRCjPIHP.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/C9gjURsn.js";export{m as component};
diff --git a/_app/immutable/nodes/17.IByeFfke.js b/_app/immutable/nodes/17.IByeFfke.js
new file mode 100644
index 000000000..c50570802
--- /dev/null
+++ b/_app/immutable/nodes/17.IByeFfke.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/fxJuOqUj.js";export{m as component};
diff --git a/_app/immutable/nodes/18.Bq-BhrsP.js b/_app/immutable/nodes/18.Bq-BhrsP.js
new file mode 100644
index 000000000..06e7c70d7
--- /dev/null
+++ b/_app/immutable/nodes/18.Bq-BhrsP.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/DBZ0V8io.js";export{m as component};
diff --git a/_app/immutable/nodes/18.CWazki6I.js b/_app/immutable/nodes/18.CWazki6I.js
deleted file mode 100644
index d1429bf80..000000000
--- a/_app/immutable/nodes/18.CWazki6I.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/CKnkVSe3.js";export{m as component};
diff --git a/_app/immutable/nodes/19.Bt60OS6X.js b/_app/immutable/nodes/19.Bt60OS6X.js
new file mode 100644
index 000000000..7d934c895
--- /dev/null
+++ b/_app/immutable/nodes/19.Bt60OS6X.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/CtiUiiFr.js";export{m as component};
diff --git a/_app/immutable/nodes/19.C4bH1Al4.js b/_app/immutable/nodes/19.C4bH1Al4.js
deleted file mode 100644
index 9d2049e69..000000000
--- a/_app/immutable/nodes/19.C4bH1Al4.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/Bf6Zvjcp.js";export{m as component};
diff --git a/_app/immutable/nodes/2.QQsQ2pm8.js b/_app/immutable/nodes/2.CuVDno4Z.js
similarity index 92%
rename from _app/immutable/nodes/2.QQsQ2pm8.js
rename to _app/immutable/nodes/2.CuVDno4Z.js
index 67ec7a793..4e3083319 100644
--- a/_app/immutable/nodes/2.QQsQ2pm8.js
+++ b/_app/immutable/nodes/2.CuVDno4Z.js
@@ -1 +1 @@
-import{h as C}from"../chunks/BnIOxPF8.js";import{h as E}from"../chunks/Bf6Zvjcp.js";import{h as F}from"../chunks/DKXcWinK.js";import{h as G}from"../chunks/Bdc8bdGj.js";import{s as J}from"../chunks/De7Wx6Lc.js";import{s as K}from"../chunks/BunBbhm2.js";import{b as I}from"../chunks/BbXH6iBM.js";import{t as g,a as x,q as Q}from"../chunks/DU7dP48_.js";import{X as Z,Z as A,c as v,g as e,I as b,s as M,r as i,t as P}from"../chunks/HSyAO-bR.js";import{s as R}from"../chunks/uL5EIN6x.js";import{s as X}from"../chunks/PwPRnE0L.js";import{s as D}from"../chunks/Bba2NgsV.js";import{i as N}from"../chunks/B1MsCI6X.js";import{s as T}from"../chunks/CVILMKYO.js";import{e as U,i as V,t as W}from"../chunks/C6LsEgJM.js";function w(l,s,a,t){const r=a.find(u=>u.rank===t),o=s;return{text:(r==null?void 0:r.text)??"",href:o,submenu:Y(s,a,t+1)}}function Y(l,s,a){return s.filter(t=>t.rank===a).map(t=>{const r=`${l}#${t.id}`;return{text:t.text,href:r,active:!1}})}const H=async l=>{const s=[w(l,I+"/docs/getting-started",C,1),w(l,I+"/docs/version-1",F,1),w(l,I+"/docs/tutorial",E,1),w(l,I+"/docs/integration",G,1),{text:"Reference",href:I+"/docs/reference",submenu:J},{text:"Legacy",href:I+"/docs/legacy",submenu:K}];let a,t;for(const o of s){o.href===l.url.pathname&&(a=o);for(const u of o.submenu??[])u.href===l.url.pathname&&(a=o,t=u);if(a)break}const r=(t==null?void 0:t.title)??(t==null?void 0:t.text)??(a==null?void 0:a.title)??(a==null?void 0:a.text)??"Documentation";return{menu:s,activeMenuItem:a,activeSubmenuItem:t,seo:{title:r,description:r}}},Se=Object.freeze(Object.defineProperty({__proto__:null,load:H},Symbol.toStringTag,{value:"Module"}));var $=g('Previous page '),ee=g(''),te=g('Next page '),ae=g(''),se=g(' ');function re(l,s){Z(s,!0);let a=b(()=>{var n;return s.activeSubmenuItem?((n=s.activeMenuItem)==null?void 0:n.submenu)??[]:s.menu}),t=b(()=>s.activeSubmenuItem&&s.menu),r=b(()=>s.activeSubmenuItem??s.activeMenuItem),o=b(()=>s.activeSubmenuItem&&s.activeMenuItem),u=b(()=>e(r)?e(a).indexOf(e(r)):0),d=b(()=>e(o)&&e(t)?e(t).indexOf(e(o)):0),f=b(()=>e(u)>0?e(a)[e(u)-1]:e(t)&&e(d)>0?e(t)[e(d)-1]:null),h=b(()=>e(a).length>e(u)+1?e(a)[e(u)+1]:e(t)&&e(t).length>e(d)+1?e(t)[e(d)+1]:null);var p=se(),y=v(p);{var S=n=>{var c=$(),j=M(v(c),2),L=v(j,!0);i(j),i(c),P(()=>{var k,O;T(c,"href",(k=e(f))==null?void 0:k.href),D(L,(O=e(f))==null?void 0:O.text)}),x(n,c)},q=n=>{var c=ee();x(n,c)};N(y,n=>{e(f)?n(S):n(q,!1)})}var z=M(y,2);{var m=n=>{var c=te(),j=M(v(c),2),L=v(j,!0);i(j),i(c),P(()=>{var k,O;T(c,"href",(k=e(h))==null?void 0:k.href),D(L,(O=e(h))==null?void 0:O.text)}),x(n,c)},_=n=>{var c=ae();x(n,c)};N(z,n=>{e(h)?n(m):n(_,!1)})}i(p),x(l,p),A()}var ne=g(' '),ie=g('-
'),ve=g('
');function B(l,s){var a=ve();U(a,21,()=>s.items,V,(t,r)=>{let o=()=>e(r).text,u=()=>e(r).href,d=()=>e(r).submenu;var f=ie(),h=v(f),p=v(h);{var y=m=>{var _=ne(),n=v(_,!0);i(_),P(()=>{T(_,"href",u()),D(n,o())}),x(m,_)},S=m=>{var _=Q();P(()=>D(_,o())),x(m,_)};N(p,m=>{u()?m(y):m(S,!1)})}i(h);var q=M(h,2);{var z=m=>{B(m,{get items(){return d()}})};N(q,m=>{d()&&m(z)})}i(f),P(()=>W(f,"has-submenu",!!d())),x(t,f)}),i(a),x(l,a)}var le=g('');function je(l,s){Z(s,!0);var a=le(),t=v(a);X(t,"--gap","var(--s5) var(--space)"),X(t,"--content-min","66%");var r=v(t),o=v(r),u=v(o);B(u,{get items(){return s.data.menu}}),i(o),i(r);var d=M(r,2),f=v(d),h=v(f),p=v(h);R(p,()=>s.children),i(h);var y=M(h,4),S=v(y);re(S,{get menu(){return s.data.menu},get activeMenuItem(){return s.data.activeMenuItem},get activeSubmenuItem(){return s.data.activeSubmenuItem}}),i(y),i(f),i(d),i(t),i(a),x(l,a),A()}export{je as component,Se as universal};
+import{h as C}from"../chunks/iUTK1cXb.js";import{h as E}from"../chunks/CtiUiiFr.js";import{h as F}from"../chunks/RYRP6iBn.js";import{h as G}from"../chunks/Dj54AaxL.js";import{s as J}from"../chunks/ChO4W963.js";import{s as K}from"../chunks/C_DsgZuw.js";import{b as I}from"../chunks/BtymlV4B.js";import{t as g,a as x,q as Q}from"../chunks/DU7dP48_.js";import{X as Z,Z as A,c as v,g as e,I as b,s as M,r as i,t as P}from"../chunks/HSyAO-bR.js";import{s as R}from"../chunks/uL5EIN6x.js";import{s as X}from"../chunks/PwPRnE0L.js";import{s as D}from"../chunks/Bba2NgsV.js";import{i as N}from"../chunks/B1MsCI6X.js";import{s as T}from"../chunks/CVILMKYO.js";import{e as U,i as V,t as W}from"../chunks/C6LsEgJM.js";function w(l,s,a,t){const r=a.find(u=>u.rank===t),o=s;return{text:(r==null?void 0:r.text)??"",href:o,submenu:Y(s,a,t+1)}}function Y(l,s,a){return s.filter(t=>t.rank===a).map(t=>{const r=`${l}#${t.id}`;return{text:t.text,href:r,active:!1}})}const H=async l=>{const s=[w(l,I+"/docs/getting-started",C,1),w(l,I+"/docs/version-1",F,1),w(l,I+"/docs/tutorial",E,1),w(l,I+"/docs/integration",G,1),{text:"Reference",href:I+"/docs/reference",submenu:J},{text:"Legacy",href:I+"/docs/legacy",submenu:K}];let a,t;for(const o of s){o.href===l.url.pathname&&(a=o);for(const u of o.submenu??[])u.href===l.url.pathname&&(a=o,t=u);if(a)break}const r=(t==null?void 0:t.title)??(t==null?void 0:t.text)??(a==null?void 0:a.title)??(a==null?void 0:a.text)??"Documentation";return{menu:s,activeMenuItem:a,activeSubmenuItem:t,seo:{title:r,description:r}}},Se=Object.freeze(Object.defineProperty({__proto__:null,load:H},Symbol.toStringTag,{value:"Module"}));var $=g('Previous page '),ee=g(''),te=g('Next page '),ae=g(''),se=g(' ');function re(l,s){Z(s,!0);let a=b(()=>{var n;return s.activeSubmenuItem?((n=s.activeMenuItem)==null?void 0:n.submenu)??[]:s.menu}),t=b(()=>s.activeSubmenuItem&&s.menu),r=b(()=>s.activeSubmenuItem??s.activeMenuItem),o=b(()=>s.activeSubmenuItem&&s.activeMenuItem),u=b(()=>e(r)?e(a).indexOf(e(r)):0),d=b(()=>e(o)&&e(t)?e(t).indexOf(e(o)):0),f=b(()=>e(u)>0?e(a)[e(u)-1]:e(t)&&e(d)>0?e(t)[e(d)-1]:null),h=b(()=>e(a).length>e(u)+1?e(a)[e(u)+1]:e(t)&&e(t).length>e(d)+1?e(t)[e(d)+1]:null);var p=se(),y=v(p);{var S=n=>{var c=$(),j=M(v(c),2),L=v(j,!0);i(j),i(c),P(()=>{var k,O;T(c,"href",(k=e(f))==null?void 0:k.href),D(L,(O=e(f))==null?void 0:O.text)}),x(n,c)},q=n=>{var c=ee();x(n,c)};N(y,n=>{e(f)?n(S):n(q,!1)})}var z=M(y,2);{var m=n=>{var c=te(),j=M(v(c),2),L=v(j,!0);i(j),i(c),P(()=>{var k,O;T(c,"href",(k=e(h))==null?void 0:k.href),D(L,(O=e(h))==null?void 0:O.text)}),x(n,c)},_=n=>{var c=ae();x(n,c)};N(z,n=>{e(h)?n(m):n(_,!1)})}i(p),x(l,p),A()}var ne=g(' '),ie=g('-
'),ve=g('
');function B(l,s){var a=ve();U(a,21,()=>s.items,V,(t,r)=>{let o=()=>e(r).text,u=()=>e(r).href,d=()=>e(r).submenu;var f=ie(),h=v(f),p=v(h);{var y=m=>{var _=ne(),n=v(_,!0);i(_),P(()=>{T(_,"href",u()),D(n,o())}),x(m,_)},S=m=>{var _=Q();P(()=>D(_,o())),x(m,_)};N(p,m=>{u()?m(y):m(S,!1)})}i(h);var q=M(h,2);{var z=m=>{B(m,{get items(){return d()}})};N(q,m=>{d()&&m(z)})}i(f),P(()=>W(f,"has-submenu",!!d())),x(t,f)}),i(a),x(l,a)}var le=g('');function je(l,s){Z(s,!0);var a=le(),t=v(a);X(t,"--gap","var(--s5) var(--space)"),X(t,"--content-min","66%");var r=v(t),o=v(r),u=v(o);B(u,{get items(){return s.data.menu}}),i(o),i(r);var d=M(r,2),f=v(d),h=v(f),p=v(h);R(p,()=>s.children),i(h);var y=M(h,4),S=v(y);re(S,{get menu(){return s.data.menu},get activeMenuItem(){return s.data.activeMenuItem},get activeSubmenuItem(){return s.data.activeSubmenuItem}}),i(y),i(f),i(d),i(t),i(a),x(l,a),A()}export{je as component,Se as universal};
diff --git a/_app/immutable/nodes/20.DsfGDHUL.js b/_app/immutable/nodes/20.DsfGDHUL.js
new file mode 100644
index 000000000..e19315f98
--- /dev/null
+++ b/_app/immutable/nodes/20.DsfGDHUL.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/RYRP6iBn.js";export{m as component};
diff --git a/_app/immutable/nodes/20.taBSH7Ro.js b/_app/immutable/nodes/20.taBSH7Ro.js
deleted file mode 100644
index 1955dc990..000000000
--- a/_app/immutable/nodes/20.taBSH7Ro.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/DKXcWinK.js";export{m as component};
diff --git a/_app/immutable/nodes/3.BZbEHFmB.js b/_app/immutable/nodes/3.C0jai1pM.js
similarity index 97%
rename from _app/immutable/nodes/3.BZbEHFmB.js
rename to _app/immutable/nodes/3.C0jai1pM.js
index 311233d2c..852ca195c 100644
--- a/_app/immutable/nodes/3.BZbEHFmB.js
+++ b/_app/immutable/nodes/3.C0jai1pM.js
@@ -1,4 +1,4 @@
-import{t as d,a as p}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{c as a,s as n,at as v,r as s}from"../chunks/HSyAO-bR.js";import{F as u}from"../chunks/lnLaEpDI.js";import"../chunks/C6LsEgJM.js";import{s as m}from"../chunks/CVILMKYO.js";import{s as f}from"../chunks/PwPRnE0L.js";import{L as h}from"../chunks/CobRr6I-.js";import{b as g}from"../chunks/BbXH6iBM.js";const b=async()=>({seo:{title:"The expressive Svelte localization library",description:"The expressive Svelte localization library"}}),M=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));var y=d(` `);function z(r){var e=y();f(e,"--content-min","50%");var t=a(e),o=n(a(t),2),i=a(o);m(i,"href",`${g??""}/docs/getting-started`),v(2),s(o),s(t);var l=n(t,2),c=a(l);h(c),s(l),s(e),p(r,e)}var _=d(` With svelte-fluent, developers can focus on building the core functionality of their
+import{t as d,a as p}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{c as a,s as n,at as v,r as s}from"../chunks/HSyAO-bR.js";import{F as u}from"../chunks/lnLaEpDI.js";import"../chunks/C6LsEgJM.js";import{s as m}from"../chunks/CVILMKYO.js";import{s as f}from"../chunks/PwPRnE0L.js";import{L as h}from"../chunks/CobRr6I-.js";import{b as g}from"../chunks/BtymlV4B.js";const b=async()=>({seo:{title:"The expressive Svelte localization library",description:"The expressive Svelte localization library"}}),M=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));var y=d(`
`);function z(r){var e=y();f(e,"--content-min","50%");var t=a(e),o=n(a(t),2),i=a(o);m(i,"href",`${g??""}/docs/getting-started`),v(2),s(o),s(t);var l=n(t,2),c=a(l);h(c),s(l),s(e),p(r,e)}var _=d(` With svelte-fluent, developers can focus on building the core functionality of their
application while not standing in the way of translating it into multiple languages.
Fluent is a localization system developed by Mozilla to address the limitations of traditional localization systems. They designed it to make it easier
to create translations of software interfaces and content and to support more complex language
structures than traditional localization systems can handle.
The example below shows how you can use svelte-fluent and FTL, the format for describing
diff --git a/_app/immutable/nodes/4.DKDFzRsA.js b/_app/immutable/nodes/4.DlOw-DTr.js
similarity index 79%
rename from _app/immutable/nodes/4.DKDFzRsA.js
rename to _app/immutable/nodes/4.DlOw-DTr.js
index bf3efe534..64c6a21fa 100644
--- a/_app/immutable/nodes/4.DKDFzRsA.js
+++ b/_app/immutable/nodes/4.DlOw-DTr.js
@@ -1 +1 @@
-import{b as o}from"../chunks/BbXH6iBM.js";import{R as r}from"../chunks/CYgJF_JY.js";function n(e,t){throw new r(e,t.toString())}new TextEncoder;const a=()=>{n(302,o+"/docs/getting-started")},s=Object.freeze(Object.defineProperty({__proto__:null,load:a},Symbol.toStringTag,{value:"Module"}));export{s as universal};
+import{b as o}from"../chunks/BtymlV4B.js";import{R as r}from"../chunks/CYgJF_JY.js";function n(e,t){throw new r(e,t.toString())}new TextEncoder;const a=()=>{n(302,o+"/docs/getting-started")},s=Object.freeze(Object.defineProperty({__proto__:null,load:a},Symbol.toStringTag,{value:"Module"}));export{s as universal};
diff --git a/_app/immutable/nodes/5.B0-j5Y2Q.js b/_app/immutable/nodes/5.B0-j5Y2Q.js
deleted file mode 100644
index 0bd063156..000000000
--- a/_app/immutable/nodes/5.B0-j5Y2Q.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/BnIOxPF8.js";export{m as component};
diff --git a/_app/immutable/nodes/5.rnv-f1y1.js b/_app/immutable/nodes/5.rnv-f1y1.js
new file mode 100644
index 000000000..9aea8fb97
--- /dev/null
+++ b/_app/immutable/nodes/5.rnv-f1y1.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/iUTK1cXb.js";export{m as component};
diff --git a/_app/immutable/nodes/6.Drb5q5E3.js b/_app/immutable/nodes/6.Drb5q5E3.js
deleted file mode 100644
index 74bd0fb6b..000000000
--- a/_app/immutable/nodes/6.Drb5q5E3.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/Bdc8bdGj.js";export{m as component};
diff --git a/_app/immutable/nodes/6.j-4gpjyb.js b/_app/immutable/nodes/6.j-4gpjyb.js
new file mode 100644
index 000000000..98ef4acc8
--- /dev/null
+++ b/_app/immutable/nodes/6.j-4gpjyb.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/Dj54AaxL.js";export{m as component};
diff --git a/_app/immutable/nodes/7.CIxcIiO1.js b/_app/immutable/nodes/7.bg6TjWT_.js
similarity index 77%
rename from _app/immutable/nodes/7.CIxcIiO1.js
rename to _app/immutable/nodes/7.bg6TjWT_.js
index 8566b8c24..aeff747c9 100644
--- a/_app/immutable/nodes/7.CIxcIiO1.js
+++ b/_app/immutable/nodes/7.bg6TjWT_.js
@@ -1 +1 @@
-import{t as p,a as i}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{s as u,f as h,r,c as m,t as v,g as f}from"../chunks/HSyAO-bR.js";import{s as g}from"../chunks/Bba2NgsV.js";import{e as _,i as x}from"../chunks/C6LsEgJM.js";import{s as d}from"../chunks/CVILMKYO.js";import{s as b}from"../chunks/BunBbhm2.js";var y=p("
-
"),L=p("Legacy
",1);function C(l){var e=L(),s=u(h(e),2);_(s,5,()=>b,x,(n,o)=>{var t=y(),a=m(t),c=m(a,!0);r(a),r(t),v(()=>{d(a,"href",f(o).href),g(c,f(o).text)}),i(n,t)}),r(s),i(l,e)}export{C as component};
+import{t as p,a as i}from"../chunks/DU7dP48_.js";import"../chunks/C4cq9Azi.js";import{s as u,f as h,r,c as m,t as v,g as f}from"../chunks/HSyAO-bR.js";import{s as g}from"../chunks/Bba2NgsV.js";import{e as _,i as x}from"../chunks/C6LsEgJM.js";import{s as d}from"../chunks/CVILMKYO.js";import{s as b}from"../chunks/C_DsgZuw.js";var y=p("-
"),L=p("Legacy
",1);function C(l){var e=L(),s=u(h(e),2);_(s,5,()=>b,x,(n,o)=>{var t=y(),a=m(t),c=m(a,!0);r(a),r(t),v(()=>{d(a,"href",f(o).href),g(c,f(o).text)}),i(n,t)}),r(s),i(l,e)}export{C as component};
diff --git a/_app/immutable/nodes/8.CRNDhpbu.js b/_app/immutable/nodes/8.CRNDhpbu.js
new file mode 100644
index 000000000..8a2b6106f
--- /dev/null
+++ b/_app/immutable/nodes/8.CRNDhpbu.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/D18bs-Pz.js";export{m as component};
diff --git a/_app/immutable/nodes/8.CugUVKx6.js b/_app/immutable/nodes/8.CugUVKx6.js
deleted file mode 100644
index 2c4528502..000000000
--- a/_app/immutable/nodes/8.CugUVKx6.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/tAksebgW.js";export{m as component};
diff --git a/_app/immutable/nodes/9.B5Mm48nk.js b/_app/immutable/nodes/9.B5Mm48nk.js
new file mode 100644
index 000000000..628145a1b
--- /dev/null
+++ b/_app/immutable/nodes/9.B5Mm48nk.js
@@ -0,0 +1 @@
+import{_ as m}from"../chunks/mu4nSBiY.js";export{m as component};
diff --git a/_app/immutable/nodes/9.B8NtyoPt.js b/_app/immutable/nodes/9.B8NtyoPt.js
deleted file mode 100644
index 02bb982b8..000000000
--- a/_app/immutable/nodes/9.B8NtyoPt.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as m}from"../chunks/DyVZAf8R.js";export{m as component};
diff --git a/_app/version.json b/_app/version.json
index e9234b246..bd003f211 100644
--- a/_app/version.json
+++ b/_app/version.json
@@ -1 +1 @@
-{"version":"1739535448614"}
\ No newline at end of file
+{"version":"1739535934330"}
\ No newline at end of file
diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html
index d1ace0a73..c5014bd45 100644
--- a/docs/getting-started/index.html
+++ b/docs/getting-started/index.html
@@ -9,50 +9,50 @@
-
-
+
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
- Documentation | svelte-fluent
+
+
+
+
+
+
+
+ Documentation | svelte-fluent