diff --git a/_app/immutable/assets/Prism.3ee0c064.css b/_app/immutable/assets/Prism.59b1fbdf.css similarity index 64% rename from _app/immutable/assets/Prism.3ee0c064.css rename to _app/immutable/assets/Prism.59b1fbdf.css index 69ebea5..02d8495 100644 --- a/_app/immutable/assets/Prism.3ee0c064.css +++ b/_app/immutable/assets/Prism.59b1fbdf.css @@ -1 +1 @@ -code[class*=language-],pre[class*=language-]{color:#ebdbb2;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.token.comment,.token.prolog,.token.cdata{color:#a89984}.token.delimiter,.token.boolean,.token.keyword,.token.selector,.token.important,.token.atrule{color:#fb4934}.token.operator,.token.punctuation,.token.attr-name{color:#a89984}.token.tag,.token.tag .punctuation,.token.doctype,.token.builtin{color:#fabd2f}.token.entity,.token.number,.token.symbol{color:#d3869b}.token.property,.token.constant,.token.variable{color:#fb4934}.token.string,.token.char{color:#b8bb26}.token.attr-value,.token.attr-value .punctuation{color:#a89984}.token.url{color:#b8bb26;text-decoration:underline}.token.function{color:#fabd2f}.token.regex{background:#b8bb26}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#a89984}.token.deleted{background:#fb4934} +code[class*=language-],pre[class*=language-]{color:#ebdbb2;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.token.comment,.token.prolog,.token.cdata{color:#a89984}.token.delimiter,.token.boolean,.token.keyword,.token.selector,.token.important,.token.atrule{color:#fb4934}.token.operator,.token.punctuation,.token.attr-name{color:#a89984}.token.tag,.token.tag .punctuation,.token.doctype,.token.builtin{color:#fabd2f}.token.entity,.token.number,.token.symbol{color:#d3869b}.token.property,.token.constant,.token.variable{color:#fb4934}.token.string,.token.char,.token.attr-value,.token.attr-value .punctuation{color:#b8bb26}.token.url{color:#b8bb26;text-decoration:underline}.token.function{color:#fabd2f}.token.regex{background:#b8bb26}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#a89984}.token.deleted{background:#fb4934} diff --git a/_app/immutable/assets/better-i18n-demo.9d09ebe6.gif b/_app/immutable/assets/better-i18n-demo.9d09ebe6.gif new file mode 100644 index 0000000..ff6ed4b Binary files /dev/null and b/_app/immutable/assets/better-i18n-demo.9d09ebe6.gif differ diff --git a/_app/immutable/chunks/Callout.686e165a.js b/_app/immutable/chunks/Callout.686e165a.js new file mode 100644 index 0000000..0256a20 --- /dev/null +++ b/_app/immutable/chunks/Callout.686e165a.js @@ -0,0 +1 @@ +import{S as y,i as k,s as $,M as d,N as S,O as H,m as g,h as u,P as p,b as B,Q as I,E as b,R as x,I as J,k as M,a as K,l as Z,c as N,n as E,D as L,v as O,d as v,f as Q,g as w,J as R,K as j,L as F,y as D,z as T,A as V,B as P}from"./index.90d50ca5.js";function G(r){let e,n='',t=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},r[0]],s={};for(let l=0;l{n(0,e=d(d({},e),x(t)))},e=x(e),[e]}class W extends y{constructor(e){super(),k(this,e,U,G,$,{})}}function X(r){let e,n='',t=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},r[0]],s={};for(let l=0;l{n(0,e=d(d({},e),x(t)))},e=x(e),[e]}class ee extends y{constructor(e){super(),k(this,e,Y,X,$,{})}}function te(r){let e,n='',t=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},r[0]],s={};for(let l=0;l{n(0,e=d(d({},e),x(t)))},e=x(e),[e]}class ne extends y{constructor(e){super(),k(this,e,le,te,$,{})}}function re(r){let e,n;return e=new W({props:{class:"mt-1 h-4 w-4 flex-none text-blue-500"}}),{c(){D(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){V(e,t,s),n=!0},i(t){n||(w(e.$$.fragment,t),n=!0)},o(t){v(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function se(r){let e,n;return e=new ee({props:{class:"mt-1 h-4 w-4 flex-none text-orange-500"}}),{c(){D(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){V(e,t,s),n=!0},i(t){n||(w(e.$$.fragment,t),n=!0)},o(t){v(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ae(r){let e,n;return e=new ne({props:{class:"mt-1 h-4 w-4 flex-none text-emerald-500"}}),{c(){D(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){V(e,t,s),n=!0},i(t){n||(w(e.$$.fragment,t),n=!0)},o(t){v(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ie(r){let e,n,t,s,l,a,f,_;const q=[ae,se,re],h=[];function z(i,c){return i[0]==="success"?0:i[0]==="warning"?1:i[0]==="info"?2:-1}~(n=z(r))&&(t=h[n]=q[n](r));const C=r[3].default,o=J(C,r,r[2],null);return{c(){e=M("div"),t&&t.c(),s=K(),l=M("div"),a=M("p"),o&&o.c(),this.h()},l(i){e=Z(i,"DIV",{class:!0});var c=g(e);t&&t.l(c),s=N(c),l=Z(c,"DIV",{class:!0});var m=g(l);a=Z(m,"P",{});var A=g(a);o&&o.l(A),A.forEach(u),m.forEach(u),c.forEach(u),this.h()},h(){E(l,"class","[&>:first-child]:mt-0 [&>:last-child]:mb-0"),E(e,"class",f="not-prose my-6 flex gap-2.5 p-4 rounded-2xl leading-6 border "+r[1][r[0]])},m(i,c){B(i,e,c),~n&&h[n].m(e,null),L(e,s),L(e,l),L(l,a),o&&o.m(a,null),_=!0},p(i,[c]){let m=n;n=z(i),n!==m&&(t&&(O(),v(h[m],1,1,()=>{h[m]=null}),Q()),~n?(t=h[n],t||(t=h[n]=q[n](i),t.c()),w(t,1),t.m(e,s)):t=null),o&&o.p&&(!_||c&4)&&R(o,C,i,i[2],_?F(C,i[2],c,null):j(i[2]),null),(!_||c&1&&f!==(f="not-prose my-6 flex gap-2.5 p-4 rounded-2xl leading-6 border "+i[1][i[0]]))&&E(e,"class",f)},i(i){_||(w(t),w(o,i),_=!0)},o(i){v(t),v(o,i),_=!1},d(i){i&&u(e),~n&&h[n].d(),o&&o.d(i)}}}function oe(r,e,n){let{$$slots:t={},$$scope:s}=e,{type:l="info"}=e;const a={success:"border-emerald-500/20 bg-emerald-50/50 text-emerald-900",warning:"border-orange-500/20 bg-orange-50 text-orange-900",info:"border-blue-500/20 bg-blue-50 text-gray-900"};return r.$$set=f=>{"type"in f&&n(0,l=f.type),"$$scope"in f&&n(2,s=f.$$scope)},[l,a,s,t]}class ue extends y{constructor(e){super(),k(this,e,oe,ie,$,{type:0})}}export{ue as C}; diff --git a/_app/immutable/chunks/Prism.42f81a6a.js b/_app/immutable/chunks/Prism.a7e47b46.js similarity index 85% rename from _app/immutable/chunks/Prism.42f81a6a.js rename to _app/immutable/chunks/Prism.a7e47b46.js index 2ac027c..b67333a 100644 --- a/_app/immutable/chunks/Prism.42f81a6a.js +++ b/_app/immutable/chunks/Prism.a7e47b46.js @@ -1,9 +1,9 @@ -import{S as se,i as ie,a0 as ue,k as W,l as K,m as V,h as U,n as H,b as oe,D as le,E as J}from"./index.90d50ca5.js";import{c as Q,g as ce}from"./_commonjsHelpers.725317a4.js";var ee={exports:{}};(function(g){var m=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{S as se,i as ie,a0 as ue,k as W,l as K,m as V,h as U,n as H,b as le,D as oe,E as J}from"./index.90d50ca5.js";import{c as Q,g as ce}from"./_commonjsHelpers.725317a4.js";var ee={exports:{}};(function(g){var m=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var a=function(l){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,d=0,f={},i={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof S?new S(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:f,plaintext:f,text:f,txt:f,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){r=r||i.languages;var s=r[t],o={};for(var c in s)if(s.hasOwnProperty(c)){if(c==e)for(var u in n)n.hasOwnProperty(u)&&(o[u]=n[u]);n.hasOwnProperty(c)||(o[c]=s[c])}var F=r[t];return r[t]=o,i.languages.DFS(i.languages,function(A,E){E===F&&A!=t&&(this[A]=o)}),o},DFS:function t(e,n,r,s){s=s||{};var o=i.util.objId;for(var c in e)if(e.hasOwnProperty(c)){n.call(e,c,e[c],r||c);var u=e[c],F=i.util.type(u);F==="Object"&&!s[o(u)]?(s[o(u)]=!0,t(u,n,null,s)):F==="Array"&&!s[o(u)]&&(s[o(u)]=!0,t(u,n,c,s))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var s=0,o;o=r.elements[s++];)i.highlightElement(o,e===!0,r.callback)},highlightElement:function(t,e,n){var r=i.util.getLanguage(t),s=i.languages[r];i.util.setLanguage(t,r);var o=t.parentElement;o&&o.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(o,r);var c=t.textContent,u={element:t,language:r,grammar:s,code:c};function F(E){u.highlightedCode=E,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),n&&n.call(u.element)}if(i.hooks.run("before-sanity-check",u),o=u.element.parentElement,o&&o.nodeName.toLowerCase()==="pre"&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),n&&n.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar){F(i.util.encode(u.code));return}if(e&&l.Worker){var A=new Worker(i.filename);A.onmessage=function(E){F(E.data)},A.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else F(i.highlight(u.code,u.grammar,u.language))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),S.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var s=new O;return _(s,s.head,t),P(t,s,e,s.head,0),D(s)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(!(!n||!n.length))for(var r=0,s;s=n[r++];)s(e)}},Token:S};l.Prism=i;function S(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=(r||"").length|0}S.stringify=function t(e,n){if(typeof e=="string")return e;if(Array.isArray(e)){var r="";return e.forEach(function(F){r+=t(F,n)}),r}var s={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(s.classes,o):s.classes.push(o)),i.hooks.run("wrap",s);var c="";for(var u in s.attributes)c+=" "+u+'="'+(s.attributes[u]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+c+">"+s.content+""};function I(t,e,n,r){t.lastIndex=e;var s=t.exec(n);if(s&&r&&s[1]){var o=s[1].length;s.index+=o,s[0]=s[0].slice(o)}return s}function P(t,e,n,r,s,o){for(var c in n)if(!(!n.hasOwnProperty(c)||!n[c])){var u=n[c];u=Array.isArray(u)?u:[u];for(var F=0;F=o.reach);w+=y.value.length,y=y.next){var $=y.value;if(e.length>t.length)return;if(!($ instanceof S)){var L=1,x;if(X){if(x=I(q,w,t,Z),!x||x.index>=t.length)break;var C=x.index,ne=x.index+x[0].length,k=w;for(k+=y.value.length;C>=k;)y=y.next,k+=y.value.length;if(k-=y.value.length,w=k,y.value instanceof S)continue;for(var R=y;R!==e.tail&&(ko.reach&&(o.reach=j);var M=y.prev;z&&(M=_(e,M,z),w+=z.length),G(e,M,L);var re=new S(c,E?i.tokenize(N,E):N,te,N);if(y=_(e,M,re),Y&&_(e,y,Y),L>1){var B={cause:c+","+F,reach:j};P(t,e,n,y.prev,w,B),o&&B.reach>o.reach&&(o.reach=B.reach)}}}}}}function O(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function _(t,e,n){var r=e.next,s={value:n,prev:e,next:r};return e.next=s,r.prev=s,t.length++,s}function G(t,e,n){for(var r=e.next,s=0;s/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(p,d){var f={};f["language-"+d]={pattern:/(^$)/i,lookbehind:!0,inside:a.languages[d]},f.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:f}};i["language-"+d]={pattern:/[\s\S]+/,inside:a.languages[d]};var S={};S[p]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:i},a.languages.insertBefore("markup","cdata",S)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(l,p){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:a.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(l){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var d=l.languages.markup;d&&(d.tag.addInlined("style","css"),d.tag.addAttribute("style","css"))}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",p=function(b,h){return"✖ Error "+b+" while fetching file: "+h},d="✖ Error: File does not exist or is empty",f={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",S="loading",I="loaded",P="failed",O="pre[data-src]:not(["+i+'="'+I+'"]):not(['+i+'="'+S+'"])';function _(b,h,v){var t=new XMLHttpRequest;t.open("GET",b,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?h(t.responseText):t.status>=400?v(p(t.status,t.statusText)):v(d))},t.send(null)}function G(b){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(h){var v=Number(h[1]),t=h[2],e=h[3];return t?e?[v,Number(e)]:[v,void 0]:[v,v]}}a.hooks.add("before-highlightall",function(b){b.selector+=", "+O}),a.hooks.add("before-sanity-check",function(b){var h=b.element;if(h.matches(O)){b.code="",h.setAttribute(i,S);var v=h.appendChild(document.createElement("CODE"));v.textContent=l;var t=h.getAttribute("data-src"),e=b.language;if(e==="none"){var n=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=f[n]||n}a.util.setLanguage(v,e),a.util.setLanguage(h,e);var r=a.plugins.autoloader;r&&r.loadLanguages(e),_(t,function(s){h.setAttribute(i,I);var o=G(h.getAttribute("data-range"));if(o){var c=s.split(/\r\n?|\n/g),u=o[0],F=o[1]==null?c.length:o[1];u<0&&(u+=c.length),u=Math.max(0,Math.min(u-1,c.length)),F<0&&(F+=c.length),F=Math.max(0,Math.min(F,c.length)),s=c.slice(u,F).join(` -`),h.hasAttribute("data-start")||h.setAttribute("data-start",String(u+1))}v.textContent=s,a.highlightElement(v)},function(s){h.setAttribute(i,P),v.textContent=s})}}),a.plugins.fileHighlight={highlight:function(h){for(var v=(h||document).querySelectorAll(O),t=0,e;e=v[t++];)a.highlightElement(e)}};var D=!1;a.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ee);var ge=ee.exports;const T=ce(ge);Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(g){g.languages.typescript=g.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),g.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete g.languages.typescript.parameter,delete g.languages.typescript["literal-property"];var m=g.languages.extend("typescript",{});delete m["class-name"],g.languages.typescript["class-name"].inside=m,g.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:m}}}}),g.languages.ts=g.languages.typescript})(Prism);(function(g){var m="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:a,environment:{pattern:RegExp("\\$"+m),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+m),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};g.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+m),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+m),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=g.languages.bash;for(var p=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=l.variable[1].inside,f=0;f{"language"in i&&a(0,d=i.language),"code"in i&&a(2,f=i.code)},g.$$.update=()=>{g.$$.dirty&13&&a(1,l=T.highlight(f,p[d],d))},[d,l,f,T]}class me extends se{constructor(m){super(),ie(this,m,pe,de,ue,{language:0,code:2})}}export{me as P}; + */var a=function(o){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,d=0,f={},i={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof S?new S(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:f,plaintext:f,text:f,txt:f,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){r=r||i.languages;var s=r[t],l={};for(var c in s)if(s.hasOwnProperty(c)){if(c==e)for(var u in n)n.hasOwnProperty(u)&&(l[u]=n[u]);n.hasOwnProperty(c)||(l[c]=s[c])}var F=r[t];return r[t]=l,i.languages.DFS(i.languages,function(A,E){E===F&&A!=t&&(this[A]=l)}),l},DFS:function t(e,n,r,s){s=s||{};var l=i.util.objId;for(var c in e)if(e.hasOwnProperty(c)){n.call(e,c,e[c],r||c);var u=e[c],F=i.util.type(u);F==="Object"&&!s[l(u)]?(s[l(u)]=!0,t(u,n,null,s)):F==="Array"&&!s[l(u)]&&(s[l(u)]=!0,t(u,n,c,s))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var s=0,l;l=r.elements[s++];)i.highlightElement(l,e===!0,r.callback)},highlightElement:function(t,e,n){var r=i.util.getLanguage(t),s=i.languages[r];i.util.setLanguage(t,r);var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(l,r);var c=t.textContent,u={element:t,language:r,grammar:s,code:c};function F(E){u.highlightedCode=E,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),n&&n.call(u.element)}if(i.hooks.run("before-sanity-check",u),l=u.element.parentElement,l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),n&&n.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar){F(i.util.encode(u.code));return}if(e&&o.Worker){var A=new Worker(i.filename);A.onmessage=function(E){F(E.data)},A.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else F(i.highlight(u.code,u.grammar,u.language))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),S.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var s=new O;return $(s,s.head,t),P(t,s,e,s.head,0),D(s)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(!(!n||!n.length))for(var r=0,s;s=n[r++];)s(e)}},Token:S};o.Prism=i;function S(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=(r||"").length|0}S.stringify=function t(e,n){if(typeof e=="string")return e;if(Array.isArray(e)){var r="";return e.forEach(function(F){r+=t(F,n)}),r}var s={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},l=e.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(s.classes,l):s.classes.push(l)),i.hooks.run("wrap",s);var c="";for(var u in s.attributes)c+=" "+u+'="'+(s.attributes[u]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+c+">"+s.content+""};function I(t,e,n,r){t.lastIndex=e;var s=t.exec(n);if(s&&r&&s[1]){var l=s[1].length;s.index+=l,s[0]=s[0].slice(l)}return s}function P(t,e,n,r,s,l){for(var c in n)if(!(!n.hasOwnProperty(c)||!n[c])){var u=n[c];u=Array.isArray(u)?u:[u];for(var F=0;F=l.reach);w+=y.value.length,y=y.next){var T=y.value;if(e.length>t.length)return;if(!(T instanceof S)){var L=1,x;if(X){if(x=I(q,w,t,Z),!x||x.index>=t.length)break;var C=x.index,ne=x.index+x[0].length,k=w;for(k+=y.value.length;C>=k;)y=y.next,k+=y.value.length;if(k-=y.value.length,w=k,y.value instanceof S)continue;for(var R=y;R!==e.tail&&(kl.reach&&(l.reach=j);var M=y.prev;z&&(M=$(e,M,z),w+=z.length),G(e,M,L);var re=new S(c,E?i.tokenize(N,E):N,te,N);if(y=$(e,M,re),Y&&$(e,y,Y),L>1){var B={cause:c+","+F,reach:j};P(t,e,n,y.prev,w,B),l&&B.reach>l.reach&&(l.reach=B.reach)}}}}}}function O(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function $(t,e,n){var r=e.next,s={value:n,prev:e,next:r};return e.next=s,r.prev=s,t.length++,s}function G(t,e,n){for(var r=e.next,s=0;s/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(p,d){var f={};f["language-"+d]={pattern:/(^$)/i,lookbehind:!0,inside:a.languages[d]},f.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:f}};i["language-"+d]={pattern:/[\s\S]+/,inside:a.languages[d]};var S={};S[p]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:i},a.languages.insertBefore("markup","cdata",S)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(o,p){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:a.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(o){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var d=o.languages.markup;d&&(d.tag.addInlined("style","css"),d.tag.addAttribute("style","css"))}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",p=function(b,h){return"✖ Error "+b+" while fetching file: "+h},d="✖ Error: File does not exist or is empty",f={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",S="loading",I="loaded",P="failed",O="pre[data-src]:not(["+i+'="'+I+'"]):not(['+i+'="'+S+'"])';function $(b,h,v){var t=new XMLHttpRequest;t.open("GET",b,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?h(t.responseText):t.status>=400?v(p(t.status,t.statusText)):v(d))},t.send(null)}function G(b){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(h){var v=Number(h[1]),t=h[2],e=h[3];return t?e?[v,Number(e)]:[v,void 0]:[v,v]}}a.hooks.add("before-highlightall",function(b){b.selector+=", "+O}),a.hooks.add("before-sanity-check",function(b){var h=b.element;if(h.matches(O)){b.code="",h.setAttribute(i,S);var v=h.appendChild(document.createElement("CODE"));v.textContent=o;var t=h.getAttribute("data-src"),e=b.language;if(e==="none"){var n=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=f[n]||n}a.util.setLanguage(v,e),a.util.setLanguage(h,e);var r=a.plugins.autoloader;r&&r.loadLanguages(e),$(t,function(s){h.setAttribute(i,I);var l=G(h.getAttribute("data-range"));if(l){var c=s.split(/\r\n?|\n/g),u=l[0],F=l[1]==null?c.length:l[1];u<0&&(u+=c.length),u=Math.max(0,Math.min(u-1,c.length)),F<0&&(F+=c.length),F=Math.max(0,Math.min(F,c.length)),s=c.slice(u,F).join(` +`),h.hasAttribute("data-start")||h.setAttribute("data-start",String(u+1))}v.textContent=s,a.highlightElement(v)},function(s){h.setAttribute(i,P),v.textContent=s})}}),a.plugins.fileHighlight={highlight:function(h){for(var v=(h||document).querySelectorAll(O),t=0,e;e=v[t++];)a.highlightElement(e)}};var D=!1;a.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ee);var ge=ee.exports;const _=ce(ge);Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(g){g.languages.typescript=g.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),g.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete g.languages.typescript.parameter,delete g.languages.typescript["literal-property"];var m=g.languages.extend("typescript",{});delete m["class-name"],g.languages.typescript["class-name"].inside=m,g.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:m}}}}),g.languages.ts=g.languages.typescript})(Prism);(function(g){var m="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+m),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+m),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};g.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+m),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+m),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=g.languages.bash;for(var p=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=o.variable[1].inside,f=0;f{"language"in i&&a(0,d=i.language),"code"in i&&a(2,f=i.code)},g.$$.update=()=>{g.$$.dirty&13&&a(1,o=_.highlight(f,p[d],d))},[d,o,f,_]}class me extends se{constructor(m){super(),ie(this,m,pe,de,ue,{language:0,code:2})}}export{me as P}; diff --git a/_app/immutable/chunks/index.f644e0f8.js b/_app/immutable/chunks/index.c5d02fa2.js similarity index 96% rename from _app/immutable/chunks/index.f644e0f8.js rename to _app/immutable/chunks/index.c5d02fa2.js index 586998f..a2c8788 100644 --- a/_app/immutable/chunks/index.f644e0f8.js +++ b/_app/immutable/chunks/index.c5d02fa2.js @@ -1 +1 @@ -import{w as h}from"./index.0229d0e6.js";import{H as b}from"./index.90d50ca5.js";const k="modulepreload",R=function(e,t){return new URL(e,t).href},w={},p=function(t,n,o){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=R(s,o),s in w)return;w[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let u=a.length-1;u>=0;u--){const f=a[u];if(f.href===s&&(!r||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":k,r||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),r)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=s,window.dispatchEvent(r),!r.defaultPrevented)throw s})},S=["en","de"],E="en",v="messages",C=200,T={en:{messages:async()=>(await p(()=>import("./_t18s-dictionary_en_messages.fa3ec860.js"),[],import.meta.url)).default},de:{messages:async()=>(await p(()=>import("./_t18s-dictionary_de_messages.7277f217.js"),[],import.meta.url)).default}};function L(e){return(t,n)=>{const o=e[t];if(o)return o[n]}}function B(e){return(t,n,o)=>{const a=e[t];a?a[n]=o:e[t]={[n]:o}}}function I(e){return new Promise(t=>setTimeout(t,e))}const y=h(null),F=y.set,G=e=>S.includes(e),_=h(!1);let K=T;const P=L(K),g={},O=L(g),D=B(g),$=async(e,t)=>{const n=P(e,t);if(!n)return;const o=await n();D(e,t,o),m.set(d)},j=new Set([v]);async function A(e){const t=[...j],n=[e];n.push(E);const o=[];for(const s of n)for(const r of t){const i=P(s,r);i&&o.push(new Promise((l,c)=>{i().then(u=>l({locale:s,domain:r,dictionary:u})).catch(c)}))}const a=await Promise.allSettled(o);for(const s of a){if(s.status==="rejected")continue;const{locale:r,domain:i,dictionary:l}=s.value;D(r,i,l)}}async function N(e){let t=!1;try{I(C).then(()=>{t||_.set(!0)}),await A(e)}catch{}finally{_.set(!1),t=!0}}function U(e){const[t,n]=e.split(":");if(!t)throw new Error("[t18s] Invalid key: "+e);return n?{domain:t,key:n}:{domain:v,key:t}}const d=(e,t=void 0)=>{const n=b(y);if(n===null)throw new Error("[t18s] No locale set. Did you forget to set one in `+layout.js`?");const{domain:o,key:a}=U(e),s=[n];s.push(E);let r;for(const i of s){const l=O(i,o);if(l){if(r=V(l,a,t),r)break}else $(i,o)}return r||e},m=h(d);y.subscribe(e=>{e!==null&&(e in g?m.set(d):N(e).then(()=>m.set(d)))});function V(e,t,n){const o=e[t];if(o)return typeof o=="string"?o:o(n)}export{p as _,G as i,S as l,A as p,F as s}; +import{w as h}from"./index.0229d0e6.js";import{H as b}from"./index.90d50ca5.js";const k="modulepreload",R=function(e,t){return new URL(e,t).href},w={},p=function(t,n,o){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=R(s,o),s in w)return;w[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let u=a.length-1;u>=0;u--){const f=a[u];if(f.href===s&&(!r||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":k,r||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),r)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=s,window.dispatchEvent(r),!r.defaultPrevented)throw s})},S=["en","de"],E="en",v="messages",C=200,T={en:{messages:async()=>(await p(()=>import("./_t18s-dictionary_en_messages.fa3ec860.js"),[],import.meta.url)).default},de:{messages:async()=>(await p(()=>import("./_t18s-dictionary_de_messages.7277f217.js"),[],import.meta.url)).default}};function L(e){return(t,n)=>{const o=e[t];if(o)return o[n]}}function B(e){return(t,n,o)=>{const a=e[t];a?a[n]=o:e[t]={[n]:o}}}function I(e){return new Promise(t=>setTimeout(t,e))}const y=h(null),F=y.set,G=e=>S.includes(e),_=h(!1);let K=T;const P=L(K),g={},O=L(g),D=B(g),$=async(e,t)=>{const n=P(e,t);if(!n)return;const o=await n();D(e,t,o),m.set(d)},j=new Set([v]);async function A(e){const t=[...j],n=[e];n.push(E);const o=[];for(const s of n)for(const r of t){const i=P(s,r);i&&o.push(new Promise((l,c)=>{i().then(u=>l({locale:s,domain:r,dictionary:u})).catch(c)}))}const a=await Promise.allSettled(o);for(const s of a){if(s.status==="rejected")continue;const{locale:r,domain:i,dictionary:l}=s.value;D(r,i,l)}}async function N(e){let t=!1;try{I(C).then(()=>{t||_.set(!0)}),await A(e)}catch{}finally{_.set(!1),t=!0}}function U(e){const[t,n]=e.split(":");if(!t)throw new Error("[t18s] Invalid key: "+e);return n?{domain:t,key:n}:{domain:v,key:t}}const d=(e,t=void 0)=>{const n=b(y);if(n===null)throw new Error("[t18s] No locale set. Did you forget to set one in `+layout.js`?");const{domain:o,key:a}=U(e),s=[n];s.push(E);let r;for(const i of s){const l=O(i,o);if(l){if(r=V(l,a,t),r)break}else $(i,o)}return r||e},m=h(d);y.subscribe(e=>{e!==null&&(e in g?m.set(d):N(e).then(()=>m.set(d)))});function V(e,t,n){const o=e[t];if(o)return typeof o=="string"?o:o(n)}export{p as _,y as a,G as i,S as l,A as p,F as s}; diff --git a/_app/immutable/chunks/singletons.4c3847c7.js b/_app/immutable/chunks/singletons.4c3847c7.js deleted file mode 100644 index 4b0d146..0000000 --- a/_app/immutable/chunks/singletons.4c3847c7.js +++ /dev/null @@ -1 +0,0 @@ -import{w as u}from"./index.0229d0e6.js";var _;const v=((_=globalThis.__sveltekit_ok1yqe)==null?void 0:_.base)??"";var g;const k=((g=globalThis.__sveltekit_ok1yqe)==null?void 0:g.assets)??v,m="1698141771426",A="sveltekit:snapshot",R="sveltekit:scroll",T="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function h(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=h(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||y(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function w(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==m;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function y(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:w()};export{T as I,f as P,R as S,A as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,y as i,S as s}; diff --git a/_app/immutable/chunks/singletons.ae078cb6.js b/_app/immutable/chunks/singletons.ae078cb6.js new file mode 100644 index 0000000..6d54c11 --- /dev/null +++ b/_app/immutable/chunks/singletons.ae078cb6.js @@ -0,0 +1 @@ +import{w as u}from"./index.0229d0e6.js";var _;const v=((_=globalThis.__sveltekit_1ihbvg5)==null?void 0:_.base)??"";var g;const k=((g=globalThis.__sveltekit_1ihbvg5)==null?void 0:g.assets)??v,m="1698148296879",R="sveltekit:snapshot",T="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function h(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=h(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function w(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==m;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:w()};export{y as I,f as P,T as S,R as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,E as i,S as s}; diff --git a/_app/immutable/chunks/stores.b0221e88.js b/_app/immutable/chunks/stores.085d1224.js similarity index 73% rename from _app/immutable/chunks/stores.b0221e88.js rename to _app/immutable/chunks/stores.085d1224.js index 412dadb..c798126 100644 --- a/_app/immutable/chunks/stores.b0221e88.js +++ b/_app/immutable/chunks/stores.085d1224.js @@ -1 +1 @@ -import{d as e}from"./singletons.4c3847c7.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; +import{d as e}from"./singletons.ae078cb6.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/_app/immutable/entry/app.981045e4.js b/_app/immutable/entry/app.2a4fc54e.js similarity index 75% rename from _app/immutable/entry/app.981045e4.js rename to _app/immutable/entry/app.2a4fc54e.js index 0199eba..9eebc7b 100644 --- a/_app/immutable/entry/app.981045e4.js +++ b/_app/immutable/entry/app.2a4fc54e.js @@ -1 +1 @@ -import{i as z,_ as w}from"../chunks/index.f644e0f8.js";import{S as B,i as C,s as M,a as U,e as u,c as F,b as g,d as m,f as D,g as p,h as d,j as G,o as H,k as J,l as K,m as Q,n as V,p as A,q as W,r as X,u as Y,v as I,t as Z,w as P,x as b,y as k,z as R,A as E,B as v}from"../chunks/index.90d50ca5.js";const x=z,_e={locale:x};function ee(r){let e,n,s;var i=r[1][0];function c(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=b(i,c(r)),r[15](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&8&&(a.data=t[3]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][0])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[15](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[15](null),t&&d(n),e&&v(e,t)}}}function te(r){let e,n,s;var i=r[1][0];function c(t){return{props:{data:t[3],$$slots:{default:[oe]},$$scope:{ctx:t}}}}return i&&(e=b(i,c(r)),r[14](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&8&&(a.data=t[3]),o&65591&&(a.$$scope={dirty:o,ctx:t}),o&2&&i!==(i=t[1][0])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[14](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[14](null),t&&d(n),e&&v(e,t)}}}function ne(r){let e,n,s;var i=r[1][1];function c(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=b(i,c(r)),r[13](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&16&&(a.data=t[4]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][1])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[13](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[13](null),t&&d(n),e&&v(e,t)}}}function ie(r){let e,n,s;var i=r[1][1];function c(t){return{props:{data:t[4],$$slots:{default:[se]},$$scope:{ctx:t}}}}return i&&(e=b(i,c(r)),r[12](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&16&&(a.data=t[4]),o&65575&&(a.$$scope={dirty:o,ctx:t}),o&2&&i!==(i=t[1][1])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[12](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[12](null),t&&d(n),e&&v(e,t)}}}function se(r){let e,n,s;var i=r[1][2];function c(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=b(i,c(r)),r[11](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&32&&(a.data=t[5]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][2])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[11](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[11](null),t&&d(n),e&&v(e,t)}}}function oe(r){let e,n,s,i;const c=[ie,ne],t=[];function o(a,l){return a[1][2]?0:1}return e=o(r),n=t[e]=c[e](r),{c(){n.c(),s=u()},l(a){n.l(a),s=u()},m(a,l){t[e].m(a,l),g(a,s,l),i=!0},p(a,l){let _=e;e=o(a),e===_?t[e].p(a,l):(I(),m(t[_],1,1,()=>{t[_]=null}),D(),n=t[e],n?n.p(a,l):(n=t[e]=c[e](a),n.c()),p(n,1),n.m(s.parentNode,s))},i(a){i||(p(n),i=!0)},o(a){m(n),i=!1},d(a){t[e].d(a),a&&d(s)}}}function T(r){let e,n=r[7]&&N(r);return{c(){e=J("div"),n&&n.c(),this.h()},l(s){e=K(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=Q(e);n&&n.l(i),i.forEach(d),this.h()},h(){V(e,"id","svelte-announcer"),V(e,"aria-live","assertive"),V(e,"aria-atomic","true"),A(e,"position","absolute"),A(e,"left","0"),A(e,"top","0"),A(e,"clip","rect(0 0 0 0)"),A(e,"clip-path","inset(50%)"),A(e,"overflow","hidden"),A(e,"white-space","nowrap"),A(e,"width","1px"),A(e,"height","1px")},m(s,i){g(s,e,i),n&&n.m(e,null)},p(s,i){s[7]?n?n.p(s,i):(n=N(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(s){s&&d(e),n&&n.d()}}}function N(r){let e;return{c(){e=W(r[8])},l(n){e=X(n,r[8])},m(n,s){g(n,e,s)},p(n,s){s&256&&Y(e,n[8])},d(n){n&&d(e)}}}function re(r){let e,n,s,i,c;const t=[te,ee],o=[];function a(_,h){return _[1][1]?0:1}e=a(r),n=o[e]=t[e](r);let l=r[6]&&T(r);return{c(){n.c(),s=U(),l&&l.c(),i=u()},l(_){n.l(_),s=F(_),l&&l.l(_),i=u()},m(_,h){o[e].m(_,h),g(_,s,h),l&&l.m(_,h),g(_,i,h),c=!0},p(_,[h]){let L=e;e=a(_),e===L?o[e].p(_,h):(I(),m(o[L],1,1,()=>{o[L]=null}),D(),n=o[e],n?n.p(_,h):(n=o[e]=t[e](_),n.c()),p(n,1),n.m(s.parentNode,s)),_[6]?l?l.p(_,h):(l=T(_),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(_){c||(p(n),c=!0)},o(_){m(n),c=!1},d(_){o[e].d(_),_&&d(s),l&&l.d(_),_&&d(i)}}}function ae(r,e,n){let{stores:s}=e,{page:i}=e,{constructors:c}=e,{components:t=[]}=e,{form:o}=e,{data_0:a=null}=e,{data_1:l=null}=e,{data_2:_=null}=e;G(s.page.notify);let h=!1,L=!1,O=null;H(()=>{const f=s.page.subscribe(()=>{h&&(n(7,L=!0),Z().then(()=>{n(8,O=document.title||"untitled page")}))});return n(6,h=!0),f});function $(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function q(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function y(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return r.$$set=f=>{"stores"in f&&n(9,s=f.stores),"page"in f&&n(10,i=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,a=f.data_0),"data_1"in f&&n(4,l=f.data_1),"data_2"in f&&n(5,_=f.data_2)},r.$$.update=()=>{r.$$.dirty&1536&&s.page.set(i)},[t,c,o,a,l,_,h,L,O,s,i,$,q,S,j,y]}class ce extends B{constructor(e){super(),C(this,e,ae,re,M,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ue=[()=>w(()=>import("../nodes/0.e1540c07.js"),["../nodes/0.e1540c07.js","../chunks/routing.f0b9763f.js","../chunks/index.f644e0f8.js","../chunks/index.0229d0e6.js","../chunks/index.90d50ca5.js","../chunks/stores.b0221e88.js","../chunks/singletons.4c3847c7.js","../assets/0.c41173b7.css"],import.meta.url),()=>w(()=>import("../nodes/1.c1536d82.js"),["../nodes/1.c1536d82.js","../chunks/index.90d50ca5.js","../chunks/stores.b0221e88.js","../chunks/singletons.4c3847c7.js","../chunks/index.0229d0e6.js","../chunks/NotFoundPage.9f3bd46c.js","../chunks/github.9c21d12c.js","../assets/NotFoundPage.6a5b3c5e.css"],import.meta.url),()=>w(()=>import("../nodes/2.eba3dc72.js"),["../nodes/2.eba3dc72.js","../chunks/index.90d50ca5.js","../chunks/class-merge.a51d4999.js","../chunks/stores.b0221e88.js","../chunks/singletons.4c3847c7.js","../chunks/index.0229d0e6.js","../chunks/_commonjsHelpers.725317a4.js","../chunks/github.9c21d12c.js"],import.meta.url),()=>w(()=>import("../nodes/3.1ff83407.js"),["../nodes/3.1ff83407.js","../chunks/index.90d50ca5.js","../chunks/NotFoundPage.9f3bd46c.js","../chunks/github.9c21d12c.js","../assets/NotFoundPage.6a5b3c5e.css"],import.meta.url),()=>w(()=>import("../nodes/4.6329451e.js"),["../nodes/4.6329451e.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js","../chunks/Prism.42f81a6a.js","../chunks/_commonjsHelpers.725317a4.js","../assets/Prism.3ee0c064.css"],import.meta.url),()=>w(()=>import("../nodes/5.9c5fa693.js"),["../nodes/5.9c5fa693.js","../chunks/index.90d50ca5.js"],import.meta.url),()=>w(()=>import("../nodes/6.232eb4a4.js"),["../nodes/6.232eb4a4.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js","../chunks/Prism.42f81a6a.js","../chunks/_commonjsHelpers.725317a4.js","../assets/Prism.3ee0c064.css"],import.meta.url),()=>w(()=>import("../nodes/7.e2796615.js"),["../nodes/7.e2796615.js","../chunks/index.90d50ca5.js"],import.meta.url),()=>w(()=>import("../nodes/8.f5dd2087.js"),["../nodes/8.f5dd2087.js","../chunks/index.90d50ca5.js"],import.meta.url),()=>w(()=>import("../nodes/9.bb6122df.js"),["../nodes/9.bb6122df.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js"],import.meta.url)],me=[],pe={"/404":[3],"/[[locale=locale]]/comparisons":[5,[2]],"/[[locale=locale]]/getting-started":[6,[2]],"/[[locale=locale]]/roadmap":[7,[2]],"/[[locale=locale]]/seo":[8,[2]],"/[[locale=locale]]/syntax":[9,[2]],"/[[locale=locale]]":[4,[2]]},he={handleError:({error:r})=>{console.error(r)}};export{pe as dictionary,he as hooks,_e as matchers,ue as nodes,ce as root,me as server_loads}; +import{i as z,_ as w}from"../chunks/index.c5d02fa2.js";import{S as B,i as C,s as M,a as U,e as u,c as F,b as g,d as m,f as D,g as p,h as d,j as G,o as H,k as J,l as K,m as Q,n as V,p as A,q as W,r as X,u as Y,v as I,t as Z,w as P,x as b,y as k,z as R,A as E,B as v}from"../chunks/index.90d50ca5.js";const x=z,_e={locale:x};function ee(r){let e,n,s;var i=r[1][0];function c(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=b(i,c(r)),r[15](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&8&&(a.data=t[3]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][0])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[15](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[15](null),t&&d(n),e&&v(e,t)}}}function te(r){let e,n,s;var i=r[1][0];function c(t){return{props:{data:t[3],$$slots:{default:[oe]},$$scope:{ctx:t}}}}return i&&(e=b(i,c(r)),r[14](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&8&&(a.data=t[3]),o&65591&&(a.$$scope={dirty:o,ctx:t}),o&2&&i!==(i=t[1][0])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[14](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[14](null),t&&d(n),e&&v(e,t)}}}function ne(r){let e,n,s;var i=r[1][1];function c(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=b(i,c(r)),r[13](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&16&&(a.data=t[4]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][1])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[13](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[13](null),t&&d(n),e&&v(e,t)}}}function ie(r){let e,n,s;var i=r[1][1];function c(t){return{props:{data:t[4],$$slots:{default:[se]},$$scope:{ctx:t}}}}return i&&(e=b(i,c(r)),r[12](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&16&&(a.data=t[4]),o&65575&&(a.$$scope={dirty:o,ctx:t}),o&2&&i!==(i=t[1][1])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[12](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[12](null),t&&d(n),e&&v(e,t)}}}function se(r){let e,n,s;var i=r[1][2];function c(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=b(i,c(r)),r[11](e)),{c(){e&&k(e.$$.fragment),n=u()},l(t){e&&R(e.$$.fragment,t),n=u()},m(t,o){e&&E(e,t,o),g(t,n,o),s=!0},p(t,o){const a={};if(o&32&&(a.data=t[5]),o&4&&(a.form=t[2]),o&2&&i!==(i=t[1][2])){if(e){I();const l=e;m(l.$$.fragment,1,0,()=>{v(l,1)}),D()}i?(e=b(i,c(t)),t[11](e),k(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){s||(e&&p(e.$$.fragment,t),s=!0)},o(t){e&&m(e.$$.fragment,t),s=!1},d(t){r[11](null),t&&d(n),e&&v(e,t)}}}function oe(r){let e,n,s,i;const c=[ie,ne],t=[];function o(a,l){return a[1][2]?0:1}return e=o(r),n=t[e]=c[e](r),{c(){n.c(),s=u()},l(a){n.l(a),s=u()},m(a,l){t[e].m(a,l),g(a,s,l),i=!0},p(a,l){let _=e;e=o(a),e===_?t[e].p(a,l):(I(),m(t[_],1,1,()=>{t[_]=null}),D(),n=t[e],n?n.p(a,l):(n=t[e]=c[e](a),n.c()),p(n,1),n.m(s.parentNode,s))},i(a){i||(p(n),i=!0)},o(a){m(n),i=!1},d(a){t[e].d(a),a&&d(s)}}}function T(r){let e,n=r[7]&&N(r);return{c(){e=J("div"),n&&n.c(),this.h()},l(s){e=K(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=Q(e);n&&n.l(i),i.forEach(d),this.h()},h(){V(e,"id","svelte-announcer"),V(e,"aria-live","assertive"),V(e,"aria-atomic","true"),A(e,"position","absolute"),A(e,"left","0"),A(e,"top","0"),A(e,"clip","rect(0 0 0 0)"),A(e,"clip-path","inset(50%)"),A(e,"overflow","hidden"),A(e,"white-space","nowrap"),A(e,"width","1px"),A(e,"height","1px")},m(s,i){g(s,e,i),n&&n.m(e,null)},p(s,i){s[7]?n?n.p(s,i):(n=N(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(s){s&&d(e),n&&n.d()}}}function N(r){let e;return{c(){e=W(r[8])},l(n){e=X(n,r[8])},m(n,s){g(n,e,s)},p(n,s){s&256&&Y(e,n[8])},d(n){n&&d(e)}}}function re(r){let e,n,s,i,c;const t=[te,ee],o=[];function a(_,h){return _[1][1]?0:1}e=a(r),n=o[e]=t[e](r);let l=r[6]&&T(r);return{c(){n.c(),s=U(),l&&l.c(),i=u()},l(_){n.l(_),s=F(_),l&&l.l(_),i=u()},m(_,h){o[e].m(_,h),g(_,s,h),l&&l.m(_,h),g(_,i,h),c=!0},p(_,[h]){let L=e;e=a(_),e===L?o[e].p(_,h):(I(),m(o[L],1,1,()=>{o[L]=null}),D(),n=o[e],n?n.p(_,h):(n=o[e]=t[e](_),n.c()),p(n,1),n.m(s.parentNode,s)),_[6]?l?l.p(_,h):(l=T(_),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(_){c||(p(n),c=!0)},o(_){m(n),c=!1},d(_){o[e].d(_),_&&d(s),l&&l.d(_),_&&d(i)}}}function ae(r,e,n){let{stores:s}=e,{page:i}=e,{constructors:c}=e,{components:t=[]}=e,{form:o}=e,{data_0:a=null}=e,{data_1:l=null}=e,{data_2:_=null}=e;G(s.page.notify);let h=!1,L=!1,O=null;H(()=>{const f=s.page.subscribe(()=>{h&&(n(7,L=!0),Z().then(()=>{n(8,O=document.title||"untitled page")}))});return n(6,h=!0),f});function $(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function q(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function y(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return r.$$set=f=>{"stores"in f&&n(9,s=f.stores),"page"in f&&n(10,i=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,a=f.data_0),"data_1"in f&&n(4,l=f.data_1),"data_2"in f&&n(5,_=f.data_2)},r.$$.update=()=>{r.$$.dirty&1536&&s.page.set(i)},[t,c,o,a,l,_,h,L,O,s,i,$,q,S,j,y]}class ce extends B{constructor(e){super(),C(this,e,ae,re,M,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ue=[()=>w(()=>import("../nodes/0.57c59368.js"),["../nodes/0.57c59368.js","../chunks/routing.f0b9763f.js","../chunks/index.c5d02fa2.js","../chunks/index.0229d0e6.js","../chunks/index.90d50ca5.js","../chunks/stores.085d1224.js","../chunks/singletons.ae078cb6.js","../assets/0.c41173b7.css"],import.meta.url),()=>w(()=>import("../nodes/1.6b886106.js"),["../nodes/1.6b886106.js","../chunks/index.90d50ca5.js","../chunks/stores.085d1224.js","../chunks/singletons.ae078cb6.js","../chunks/index.0229d0e6.js","../chunks/NotFoundPage.9f3bd46c.js","../chunks/github.9c21d12c.js","../assets/NotFoundPage.6a5b3c5e.css"],import.meta.url),()=>w(()=>import("../nodes/2.3af20a79.js"),["../nodes/2.3af20a79.js","../chunks/index.90d50ca5.js","../chunks/class-merge.a51d4999.js","../chunks/stores.085d1224.js","../chunks/singletons.ae078cb6.js","../chunks/index.0229d0e6.js","../chunks/_commonjsHelpers.725317a4.js","../chunks/github.9c21d12c.js"],import.meta.url),()=>w(()=>import("../nodes/3.1ff83407.js"),["../nodes/3.1ff83407.js","../chunks/index.90d50ca5.js","../chunks/NotFoundPage.9f3bd46c.js","../chunks/github.9c21d12c.js","../assets/NotFoundPage.6a5b3c5e.css"],import.meta.url),()=>w(()=>import("../nodes/4.22353d91.js"),["../nodes/4.22353d91.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js","../chunks/Prism.a7e47b46.js","../chunks/_commonjsHelpers.725317a4.js","../assets/Prism.59b1fbdf.css"],import.meta.url),()=>w(()=>import("../nodes/5.9c5fa693.js"),["../nodes/5.9c5fa693.js","../chunks/index.90d50ca5.js"],import.meta.url),()=>w(()=>import("../nodes/6.9363806b.js"),["../nodes/6.9363806b.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js","../chunks/Prism.a7e47b46.js","../chunks/_commonjsHelpers.725317a4.js","../assets/Prism.59b1fbdf.css"],import.meta.url),()=>w(()=>import("../nodes/7.523ef0f1.js"),["../nodes/7.523ef0f1.js","../chunks/index.90d50ca5.js"],import.meta.url),()=>w(()=>import("../nodes/8.b269b298.js"),["../nodes/8.b269b298.js","../chunks/index.90d50ca5.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js","../chunks/Prism.a7e47b46.js","../chunks/_commonjsHelpers.725317a4.js","../assets/Prism.59b1fbdf.css","../chunks/Callout.686e165a.js"],import.meta.url),()=>w(()=>import("../nodes/9.4dcb6d0d.js"),["../nodes/9.4dcb6d0d.js","../chunks/index.90d50ca5.js","../chunks/Callout.686e165a.js","../chunks/CodeGroup.56f46765.js","../chunks/class-merge.a51d4999.js","../chunks/index.0229d0e6.js"],import.meta.url)],me=[],pe={"/404":[3],"/[[locale=locale]]/comparisons":[5,[2]],"/[[locale=locale]]/getting-started":[6,[2]],"/[[locale=locale]]/roadmap":[7,[2]],"/[[locale=locale]]/seo":[8,[2]],"/[[locale=locale]]/syntax":[9,[2]],"/[[locale=locale]]":[4,[2]]},he={handleError:({error:r})=>{console.error(r)}};export{pe as dictionary,he as hooks,_e as matchers,ue as nodes,ce as root,me as server_loads}; diff --git a/_app/immutable/entry/start.5bf083fd.js b/_app/immutable/entry/start.73d0cc37.js similarity index 99% rename from _app/immutable/entry/start.5bf083fd.js rename to _app/immutable/entry/start.73d0cc37.js index ecd79e3..95c1bb8 100644 --- a/_app/immutable/entry/start.5bf083fd.js +++ b/_app/immutable/entry/start.73d0cc37.js @@ -1,3 +1,3 @@ -import{o as me,t as ye}from"../chunks/index.90d50ca5.js";import{p as We,e as Xe}from"../chunks/routing.f0b9763f.js";import{S as He,a as Be,I as M,g as De,f as Ce,b as we,c as le,s as te,i as _e,d as F,e as J,P as $e,h as Ze}from"../chunks/singletons.4c3847c7.js";function Qe(n,o){return n==="/"||o==="ignore"?n:o==="never"?n.endsWith("/")?n.slice(0,-1):n:o==="always"&&!n.endsWith("/")?n+"/":n}function et(n){return n.split("%25").map(decodeURI).join("%25")}function tt(n){for(const o in n)n[o]=decodeURIComponent(n[o]);return n}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(n,o){const l=new URL(n);for(const c of nt)Object.defineProperty(l,c,{get(){return o(),n[c]},enumerable:!0,configurable:!0});return rt(l),l}function rt(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(n){return n.replace(/\/$/,"")+ot}function st(...n){let o=5381;for(const l of n)if(typeof l=="string"){let c=l.length;for(;c;)o=o*33^l.charCodeAt(--c)}else if(ArrayBuffer.isView(l)){const c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);let h=c.length;for(;h;)o=o*33^c[--h]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const Ge=window.fetch;window.fetch=(n,o)=>((n instanceof Request?n.method:(o==null?void 0:o.method)||"GET")!=="GET"&&ae.delete(Ee(n)),Ge(n,o));const ae=new Map;function ct(n,o){const l=Ee(n,o),c=document.querySelector(l);if(c!=null&&c.textContent){const{body:h,...d}=JSON.parse(c.textContent),O=c.getAttribute("data-ttl");return O&&ae.set(l,{body:h,init:d,ttl:1e3*Number(O)}),Promise.resolve(new Response(h,d))}return window.fetch(n,o)}function lt(n,o,l){if(ae.size>0){const c=Ee(n,l),h=ae.get(c);if(h){if(performance.now(){const{pattern:C,params:D}=We(f),k={id:f,exec:x=>{const U=C.exec(x);if(U)return Xe(U,D,c)},errors:[1,...y||[]].map(x=>n[x]),layouts:[0,...m||[]].map(O),leaf:d(E)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function d(f){const E=f<0;return E&&(f=~f),[E,n[f]]}function O(f){return f===void 0?f:[h.has(f),n[f]]}}function Je(n){try{return JSON.parse(sessionStorage[n])}catch{}}function Me(n,o){const l=JSON.stringify(o);try{sessionStorage[n]=l}catch{}}const ut=-1,dt=-2,pt=-3,ht=-4,gt=-5,mt=-6;function yt(n,o){if(typeof n=="number")return h(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const l=n,c=Array(l.length);function h(d,O=!1){if(d===ut)return;if(d===pt)return NaN;if(d===ht)return 1/0;if(d===gt)return-1/0;if(d===mt)return-0;if(O)throw new Error("Invalid input");if(d in c)return c[d];const f=l[d];if(!f||typeof f!="object")c[d]=f;else if(Array.isArray(f))if(typeof f[0]=="string"){const E=f[0],m=o==null?void 0:o[E];if(m)return c[d]=m(h(f[1]));switch(E){case"Date":c[d]=new Date(f[1]);break;case"Set":const y=new Set;c[d]=y;for(let k=1;ko!=null)}const Ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Ke];const _t=new Set([...Ke]);[..._t];async function vt(n){var o;for(const l in n)if(typeof((o=n[l])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([c,h])=>[c,await h])));return n}class ne{constructor(o,l){this.status=o,typeof l=="string"?this.body={message:l}:l?this.body=l:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}}class Ve{constructor(o,l){this.status=o,this.location=l}}const bt="x-sveltekit-invalidated",Et="x-sveltekit-trailing-slash",K=Je(He)??{},ee=Je(Be)??{};function ve(n){K[n]=te()}function St(n,o){var je;const l=ft(n),c=n.nodes[0],h=n.nodes[1];c(),h();const d=document.documentElement,O=[],f=[];let E=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let y={branch:[],error:null,url:null},C=!1,D=!1,k=!0,x=!1,U=!1,H=!1,B=!1,V,T=(je=history.state)==null?void 0:je[M];T||(T=Date.now(),history.replaceState({...history.state,[M]:T},"",location.href));const fe=K[T];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,W;async function Se(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=Z(e,!0);E=null;const t=z={},r=i&&await pe(i);if(t===z&&r){if(r.type==="redirect")return re(new URL(r.location,e).href,{},1,t);r.props.page!==void 0&&(q=r.props.page),V.$set(r.props)}}function ke(e){f.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=f.map(i=>{var t;return(t=i==null?void 0:i.snapshot)==null?void 0:t.capture()}))}function Re(e){var i;(i=ee[e])==null||i.forEach((t,r)=>{var a,s;(s=(a=f[r])==null?void 0:a.snapshot)==null||s.restore(t)})}function Ae(){ve(T),Me(He,K),ke(T),Me(Be,ee)}async function re(e,{noScroll:i=!1,replaceState:t=!1,keepFocus:r=!1,state:a={},invalidateAll:s=!1},u,_){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:r,redirect_count:u,details:{state:a,replaceState:t},nav_token:_,accepted:()=>{s&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return E={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(E=null),i))},E.promise}async function oe(...e){const t=l.filter(r=>e.some(a=>r.exec(a))).map(r=>Promise.all([...r.layouts,r.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(t)}function Ie(e){var r;y=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new n.root({target:o,props:{...e.props,stores:F,components:f},hydrate:!0}),Re(T);const t={from:null,to:{params:y.params,route:{id:((r=y.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(t)),D=!0}async function X({url:e,params:i,branch:t,status:r,error:a,route:s,form:u}){let _="never";for(const g of t)(g==null?void 0:g.slash)!==void 0&&(_=g.slash);e.pathname=Qe(e.pathname,_),e.search=e.search;const v={type:"loaded",state:{url:e,params:i,branch:t,error:a,route:s},props:{constructors:wt(t).map(g=>g.node.component)}};u!==void 0&&(v.props.form=u);let w={},L=!q,R=0;for(let g=0;g(_.route=!0,p[P])}),params:new Proxy(r,{get:(p,P)=>(_.params.add(P),p[P])}),data:(s==null?void 0:s.data)??null,url:at(t,()=>{_.url=!0}),async fetch(p,P){let N;p instanceof Request?(N=p.url,P={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:p.headers,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...P}):N=p;const $=new URL(N,t);return I($.href),$.origin===t.origin&&(N=$.href.slice(t.origin.length)),D?lt(N,$.href,P):ct(N,P)},setHeaders:()=>{},depends:I,parent(){return _.parent=!0,i()}};u=await v.universal.load.call(null,g)??null,u=u?await vt(u):null}return{node:v,loader:e,server:s,universal:(L=v.universal)!=null&&L.load?{type:"data",data:u,uses:_}:null,data:u??(s==null?void 0:s.data)??null,slash:((R=v.universal)==null?void 0:R.trailingSlash)??(s==null?void 0:s.slash)}}function Pe(e,i,t,r,a){if(B)return!0;if(!r)return!1;if(r.parent&&e||r.route&&i||r.url&&t)return!0;for(const s of r.params)if(a[s]!==y.params[s])return!0;for(const s of r.dependencies)if(O.some(u=>u(new URL(s))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:t,params:r,route:a}){if((E==null?void 0:E.id)===e)return E.promise;const{errors:s,layouts:u,leaf:_}=a,v=[...u,_];s.forEach(b=>b==null?void 0:b().catch(()=>{})),v.forEach(b=>b==null?void 0:b[1]().catch(()=>{}));let w=null;const L=y.url?e!==y.url.pathname+y.url.search:!1,R=y.route?a.id!==y.route.id:!1;let I=!1;const g=v.map((b,A)=>{var G;const S=y.branch[A],j=!!(b!=null&&b[0])&&((S==null?void 0:S.loader)!==b[1]||Pe(I,R,L,(G=S.server)==null?void 0:G.uses,r));return j&&(I=!0),j});if(g.some(Boolean)){try{w=await qe(t,g)}catch(b){return ie({status:b instanceof ne?b.status:500,error:await Q(b,{url:t,params:r,route:{id:a.id}}),url:t,route:a})}if(w.type==="redirect")return w}const p=w==null?void 0:w.nodes;let P=!1;const N=v.map(async(b,A)=>{var he;if(!b)return;const S=y.branch[A],j=p==null?void 0:p[A];if((!j||j.type==="skip")&&b[1]===(S==null?void 0:S.loader)&&!Pe(P,R,L,(he=S.universal)==null?void 0:he.uses,r))return S;if(P=!0,(j==null?void 0:j.type)==="error")throw j;return ue({loader:b[1],url:t,params:r,route:a,parent:async()=>{var xe;const Te={};for(let ge=0;ge{});const $=[];for(let b=0;bPromise.resolve({}),server_data_node:de(s)}),v={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:t,params:a,branch:[_,v],status:e,error:i,route:null})}function Z(e,i){if(_e(e,J))return;const t=se(e);for(const r of l){const a=r.exec(t);if(a)return{id:e.pathname+e.search,invalidating:i,route:r,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(J.length)||"/")}function Ue({url:e,type:i,intent:t,delta:r}){let a=!1;const s=Fe(y,t,e,i);r!==void 0&&(s.navigation.delta=r);const u={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(_=>_(u)),a?null:s}async function ce({url:e,scroll:i,keepfocus:t,redirect_count:r,details:a,type:s,delta:u,nav_token:_={},accepted:v,blocked:w}){var N,$,b;const L=Z(e,!1),R=Ue({url:e,type:s,delta:u,intent:L});if(!R){w();return}const I=T;v(),U=!0,D&&F.navigating.set(R.navigation),z=_;let g=L&&await pe(L);if(!g){if(_e(e,J))return await Y(e);g=await Ne(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==_)return R.reject(new Error("navigation was aborted")),!1;if(g.type==="redirect")if(r>=20)g=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(g.location,e).href,{},r+1,_),!1;else((N=g.props.page)==null?void 0:N.status)>=400&&await F.updated.check()&&await Y(e);if(O.length=0,B=!1,x=!0,ve(I),ke(I),($=g.props.page)!=null&&$.url&&g.props.page.url.pathname!==e.pathname&&(e.pathname=(b=g.props.page)==null?void 0:b.url.pathname),a){const A=a.replaceState?0:1;if(a.state[M]=T+=A,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let S=T+1;for(;ee[S]||K[S];)delete ee[S],delete K[S],S+=1}}if(E=null,D){y=g.state,g.props.page&&(g.props.page.url=e);const A=(await Promise.all(m.on_navigate.map(S=>S(R.navigation)))).filter(S=>typeof S=="function");if(A.length>0){let S=function(){m.after_navigate=m.after_navigate.filter(j=>!A.includes(j))};A.push(S),m.after_navigate.push(...A)}V.$set(g.props)}else Ie(g);const{activeElement:p}=document;if(await ye(),k){const A=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):A?A.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==p&&document.activeElement!==document.body;!t&&!P&&be(),k=!0,g.props.page&&(q=g.props.page),U=!1,s==="popstate"&&Re(T),R.fulfil(void 0),m.after_navigate.forEach(A=>A(R.navigation)),F.navigating.set(null),x=!1}async function Ne(e,i,t,r){return e.origin===location.origin&&e.pathname===location.pathname&&!C?await ie({status:r,error:t,url:e,route:i}):await Y(e)}function Y(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;d.addEventListener("mousemove",s=>{const u=s.target;clearTimeout(e),e=setTimeout(()=>{r(u,2)},20)});function i(s){r(s.composedPath()[0],1)}d.addEventListener("mousedown",i),d.addEventListener("touchstart",i,{passive:!0});const t=new IntersectionObserver(s=>{for(const u of s)u.isIntersecting&&(oe(se(new URL(u.target.href))),t.unobserve(u.target))},{threshold:0});function r(s,u){const _=Ce(s,d);if(!_)return;const{url:v,external:w,download:L}=we(_,J);if(w||L)return;const R=le(_);if(!R.reload)if(u<=R.preload_data){const I=Z(v,!1);I&&Le(I)}else u<=R.preload_code&&oe(se(v))}function a(){t.disconnect();for(const s of d.querySelectorAll("a")){const{url:u,external:_,download:v}=we(s,J);if(_||v)continue;const w=le(s);w.reload||(w.preload_code===$e.viewport&&t.observe(s),w.preload_code===$e.eager&&oe(se(u)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:n.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(x||!D)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")O.push(e);else{const{href:i}=new URL(e,location.href);O.push(t=>t.href===i)}return Se()},invalidate_all:()=>(B=!0,Se()),preload_data:async e=>{const i=new URL(e,De(document)),t=Z(i,!1);if(!t)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(t)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:t,route:r}=y;if(!r)return;const a=await Oe(y.branch.length,t,r.errors);if(a){const s=await X({url:i,params:y.params,branch:t.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:r});y=s.state,V.$set(s.props),ye().then(be)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&be())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ae(),!U){const a=Fe(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(u=>u(s))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ae()}),(i=navigator.connection)!=null&&i.saveData||Ye(),d.addEventListener("click",t=>{var I;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ce(t.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:u,download:_}=we(r,J);if(!a)return;if(u==="_parent"||u==="_top"){if(window.parent!==window)return}else if(u&&u!=="_self")return;const v=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||_)return;if(s||v.reload){Ue({url:a,type:"link"})?U=!0:t.preventDefault();return}const[L,R]=a.href.split("#");if(R!==void 0&&L===location.href.split("#")[0]){if(y.url.hash===a.hash){t.preventDefault(),(I=r.ownerDocument.getElementById(R))==null||I.scrollIntoView();return}if(H=!0,ve(T),e(a),!v.replace_state)return;H=!1,t.preventDefault()}ce({url:a,scroll:v.noscroll?te():null,keepfocus:v.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:v.replace_state??a.href===location.href},accepted:()=>t.preventDefault(),blocked:()=>t.preventDefault(),type:"link"})}),d.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const u=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(u,J))return;const _=t.target,{keep_focus:v,noscroll:w,reload:L,replace_state:R}=le(_);if(L)return;t.preventDefault(),t.stopPropagation();const I=new FormData(_),g=a==null?void 0:a.getAttribute("name");g&&I.append(g,(a==null?void 0:a.getAttribute("value"))??""),u.search=new URLSearchParams(I).toString(),ce({url:u,scroll:w?te():null,keepfocus:v??!1,redirect_count:0,details:{state:{},replaceState:R??u.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async t=>{var r;if(z={},(r=t.state)!=null&&r[M]){if(t.state[M]===T)return;const a=K[t.state[M]],s=new URL(location.href);if(y.url.href.split("#")[0]===location.href.split("#")[0]){e(s),K[T]=te(),T=t.state[M],scrollTo(a.x,a.y);return}const u=t.state[M]-T;await ce({url:s,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{T=t.state[M]},blocked:()=>{history.go(-u)},type:"popstate",delta:u,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++T},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&F.navigating.set(null)});function e(t){y.url=t,F.page.set({...q,url:t}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:t,params:r,route:a,data:s,form:u})=>{C=!0;const _=new URL(location.href);({params:r={},route:a={id:null}}=Z(_,!1)||{});let v;try{const w=t.map(async(I,g)=>{const p=s[g];return p!=null&&p.uses&&(p.uses=ze(p.uses)),ue({loader:n.nodes[I],url:_,params:r,route:a,parent:async()=>{const P={};for(let N=0;NI===a.id);if(R){const I=R.layouts;for(let g=0;gh?"1":"0").join(""));const c=await Ge(l.href);if(!c.ok)throw new ne(c.status,await c.json());return new Promise(async h=>{var y;const d=new Map,O=c.body.getReader(),f=new TextDecoder;function E(C){return yt(C,{Promise:D=>new Promise((k,x)=>{d.set(D,{fulfil:k,reject:x})})})}let m="";for(;;){const{done:C,value:D}=await O.read();if(C&&!m)break;for(m+=!D&&m?` +import{o as me,t as ye}from"../chunks/index.90d50ca5.js";import{p as We,e as Xe}from"../chunks/routing.f0b9763f.js";import{S as He,a as Be,I as M,g as De,f as Ce,b as we,c as le,s as te,i as _e,d as F,e as J,P as $e,h as Ze}from"../chunks/singletons.ae078cb6.js";function Qe(n,o){return n==="/"||o==="ignore"?n:o==="never"?n.endsWith("/")?n.slice(0,-1):n:o==="always"&&!n.endsWith("/")?n+"/":n}function et(n){return n.split("%25").map(decodeURI).join("%25")}function tt(n){for(const o in n)n[o]=decodeURIComponent(n[o]);return n}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(n,o){const l=new URL(n);for(const c of nt)Object.defineProperty(l,c,{get(){return o(),n[c]},enumerable:!0,configurable:!0});return rt(l),l}function rt(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(n){return n.replace(/\/$/,"")+ot}function st(...n){let o=5381;for(const l of n)if(typeof l=="string"){let c=l.length;for(;c;)o=o*33^l.charCodeAt(--c)}else if(ArrayBuffer.isView(l)){const c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);let h=c.length;for(;h;)o=o*33^c[--h]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const Ge=window.fetch;window.fetch=(n,o)=>((n instanceof Request?n.method:(o==null?void 0:o.method)||"GET")!=="GET"&&ae.delete(Ee(n)),Ge(n,o));const ae=new Map;function ct(n,o){const l=Ee(n,o),c=document.querySelector(l);if(c!=null&&c.textContent){const{body:h,...d}=JSON.parse(c.textContent),O=c.getAttribute("data-ttl");return O&&ae.set(l,{body:h,init:d,ttl:1e3*Number(O)}),Promise.resolve(new Response(h,d))}return window.fetch(n,o)}function lt(n,o,l){if(ae.size>0){const c=Ee(n,l),h=ae.get(c);if(h){if(performance.now(){const{pattern:C,params:D}=We(f),k={id:f,exec:x=>{const U=C.exec(x);if(U)return Xe(U,D,c)},errors:[1,...y||[]].map(x=>n[x]),layouts:[0,...m||[]].map(O),leaf:d(E)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function d(f){const E=f<0;return E&&(f=~f),[E,n[f]]}function O(f){return f===void 0?f:[h.has(f),n[f]]}}function Je(n){try{return JSON.parse(sessionStorage[n])}catch{}}function Me(n,o){const l=JSON.stringify(o);try{sessionStorage[n]=l}catch{}}const ut=-1,dt=-2,pt=-3,ht=-4,gt=-5,mt=-6;function yt(n,o){if(typeof n=="number")return h(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const l=n,c=Array(l.length);function h(d,O=!1){if(d===ut)return;if(d===pt)return NaN;if(d===ht)return 1/0;if(d===gt)return-1/0;if(d===mt)return-0;if(O)throw new Error("Invalid input");if(d in c)return c[d];const f=l[d];if(!f||typeof f!="object")c[d]=f;else if(Array.isArray(f))if(typeof f[0]=="string"){const E=f[0],m=o==null?void 0:o[E];if(m)return c[d]=m(h(f[1]));switch(E){case"Date":c[d]=new Date(f[1]);break;case"Set":const y=new Set;c[d]=y;for(let k=1;ko!=null)}const Ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Ke];const _t=new Set([...Ke]);[..._t];async function vt(n){var o;for(const l in n)if(typeof((o=n[l])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([c,h])=>[c,await h])));return n}class ne{constructor(o,l){this.status=o,typeof l=="string"?this.body={message:l}:l?this.body=l:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}}class Ve{constructor(o,l){this.status=o,this.location=l}}const bt="x-sveltekit-invalidated",Et="x-sveltekit-trailing-slash",K=Je(He)??{},ee=Je(Be)??{};function ve(n){K[n]=te()}function St(n,o){var je;const l=ft(n),c=n.nodes[0],h=n.nodes[1];c(),h();const d=document.documentElement,O=[],f=[];let E=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let y={branch:[],error:null,url:null},C=!1,D=!1,k=!0,x=!1,U=!1,H=!1,B=!1,V,T=(je=history.state)==null?void 0:je[M];T||(T=Date.now(),history.replaceState({...history.state,[M]:T},"",location.href));const fe=K[T];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,W;async function Se(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=Z(e,!0);E=null;const t=z={},r=i&&await pe(i);if(t===z&&r){if(r.type==="redirect")return re(new URL(r.location,e).href,{},1,t);r.props.page!==void 0&&(q=r.props.page),V.$set(r.props)}}function ke(e){f.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=f.map(i=>{var t;return(t=i==null?void 0:i.snapshot)==null?void 0:t.capture()}))}function Re(e){var i;(i=ee[e])==null||i.forEach((t,r)=>{var a,s;(s=(a=f[r])==null?void 0:a.snapshot)==null||s.restore(t)})}function Ae(){ve(T),Me(He,K),ke(T),Me(Be,ee)}async function re(e,{noScroll:i=!1,replaceState:t=!1,keepFocus:r=!1,state:a={},invalidateAll:s=!1},u,_){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:r,redirect_count:u,details:{state:a,replaceState:t},nav_token:_,accepted:()=>{s&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return E={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(E=null),i))},E.promise}async function oe(...e){const t=l.filter(r=>e.some(a=>r.exec(a))).map(r=>Promise.all([...r.layouts,r.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(t)}function Ie(e){var r;y=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new n.root({target:o,props:{...e.props,stores:F,components:f},hydrate:!0}),Re(T);const t={from:null,to:{params:y.params,route:{id:((r=y.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(t)),D=!0}async function X({url:e,params:i,branch:t,status:r,error:a,route:s,form:u}){let _="never";for(const g of t)(g==null?void 0:g.slash)!==void 0&&(_=g.slash);e.pathname=Qe(e.pathname,_),e.search=e.search;const v={type:"loaded",state:{url:e,params:i,branch:t,error:a,route:s},props:{constructors:wt(t).map(g=>g.node.component)}};u!==void 0&&(v.props.form=u);let w={},L=!q,R=0;for(let g=0;g(_.route=!0,p[P])}),params:new Proxy(r,{get:(p,P)=>(_.params.add(P),p[P])}),data:(s==null?void 0:s.data)??null,url:at(t,()=>{_.url=!0}),async fetch(p,P){let N;p instanceof Request?(N=p.url,P={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:p.headers,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...P}):N=p;const $=new URL(N,t);return I($.href),$.origin===t.origin&&(N=$.href.slice(t.origin.length)),D?lt(N,$.href,P):ct(N,P)},setHeaders:()=>{},depends:I,parent(){return _.parent=!0,i()}};u=await v.universal.load.call(null,g)??null,u=u?await vt(u):null}return{node:v,loader:e,server:s,universal:(L=v.universal)!=null&&L.load?{type:"data",data:u,uses:_}:null,data:u??(s==null?void 0:s.data)??null,slash:((R=v.universal)==null?void 0:R.trailingSlash)??(s==null?void 0:s.slash)}}function Pe(e,i,t,r,a){if(B)return!0;if(!r)return!1;if(r.parent&&e||r.route&&i||r.url&&t)return!0;for(const s of r.params)if(a[s]!==y.params[s])return!0;for(const s of r.dependencies)if(O.some(u=>u(new URL(s))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:t,params:r,route:a}){if((E==null?void 0:E.id)===e)return E.promise;const{errors:s,layouts:u,leaf:_}=a,v=[...u,_];s.forEach(b=>b==null?void 0:b().catch(()=>{})),v.forEach(b=>b==null?void 0:b[1]().catch(()=>{}));let w=null;const L=y.url?e!==y.url.pathname+y.url.search:!1,R=y.route?a.id!==y.route.id:!1;let I=!1;const g=v.map((b,A)=>{var G;const S=y.branch[A],j=!!(b!=null&&b[0])&&((S==null?void 0:S.loader)!==b[1]||Pe(I,R,L,(G=S.server)==null?void 0:G.uses,r));return j&&(I=!0),j});if(g.some(Boolean)){try{w=await qe(t,g)}catch(b){return ie({status:b instanceof ne?b.status:500,error:await Q(b,{url:t,params:r,route:{id:a.id}}),url:t,route:a})}if(w.type==="redirect")return w}const p=w==null?void 0:w.nodes;let P=!1;const N=v.map(async(b,A)=>{var he;if(!b)return;const S=y.branch[A],j=p==null?void 0:p[A];if((!j||j.type==="skip")&&b[1]===(S==null?void 0:S.loader)&&!Pe(P,R,L,(he=S.universal)==null?void 0:he.uses,r))return S;if(P=!0,(j==null?void 0:j.type)==="error")throw j;return ue({loader:b[1],url:t,params:r,route:a,parent:async()=>{var xe;const Te={};for(let ge=0;ge{});const $=[];for(let b=0;bPromise.resolve({}),server_data_node:de(s)}),v={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:t,params:a,branch:[_,v],status:e,error:i,route:null})}function Z(e,i){if(_e(e,J))return;const t=se(e);for(const r of l){const a=r.exec(t);if(a)return{id:e.pathname+e.search,invalidating:i,route:r,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(J.length)||"/")}function Ue({url:e,type:i,intent:t,delta:r}){let a=!1;const s=Fe(y,t,e,i);r!==void 0&&(s.navigation.delta=r);const u={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(_=>_(u)),a?null:s}async function ce({url:e,scroll:i,keepfocus:t,redirect_count:r,details:a,type:s,delta:u,nav_token:_={},accepted:v,blocked:w}){var N,$,b;const L=Z(e,!1),R=Ue({url:e,type:s,delta:u,intent:L});if(!R){w();return}const I=T;v(),U=!0,D&&F.navigating.set(R.navigation),z=_;let g=L&&await pe(L);if(!g){if(_e(e,J))return await Y(e);g=await Ne(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==_)return R.reject(new Error("navigation was aborted")),!1;if(g.type==="redirect")if(r>=20)g=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(g.location,e).href,{},r+1,_),!1;else((N=g.props.page)==null?void 0:N.status)>=400&&await F.updated.check()&&await Y(e);if(O.length=0,B=!1,x=!0,ve(I),ke(I),($=g.props.page)!=null&&$.url&&g.props.page.url.pathname!==e.pathname&&(e.pathname=(b=g.props.page)==null?void 0:b.url.pathname),a){const A=a.replaceState?0:1;if(a.state[M]=T+=A,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let S=T+1;for(;ee[S]||K[S];)delete ee[S],delete K[S],S+=1}}if(E=null,D){y=g.state,g.props.page&&(g.props.page.url=e);const A=(await Promise.all(m.on_navigate.map(S=>S(R.navigation)))).filter(S=>typeof S=="function");if(A.length>0){let S=function(){m.after_navigate=m.after_navigate.filter(j=>!A.includes(j))};A.push(S),m.after_navigate.push(...A)}V.$set(g.props)}else Ie(g);const{activeElement:p}=document;if(await ye(),k){const A=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):A?A.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==p&&document.activeElement!==document.body;!t&&!P&&be(),k=!0,g.props.page&&(q=g.props.page),U=!1,s==="popstate"&&Re(T),R.fulfil(void 0),m.after_navigate.forEach(A=>A(R.navigation)),F.navigating.set(null),x=!1}async function Ne(e,i,t,r){return e.origin===location.origin&&e.pathname===location.pathname&&!C?await ie({status:r,error:t,url:e,route:i}):await Y(e)}function Y(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;d.addEventListener("mousemove",s=>{const u=s.target;clearTimeout(e),e=setTimeout(()=>{r(u,2)},20)});function i(s){r(s.composedPath()[0],1)}d.addEventListener("mousedown",i),d.addEventListener("touchstart",i,{passive:!0});const t=new IntersectionObserver(s=>{for(const u of s)u.isIntersecting&&(oe(se(new URL(u.target.href))),t.unobserve(u.target))},{threshold:0});function r(s,u){const _=Ce(s,d);if(!_)return;const{url:v,external:w,download:L}=we(_,J);if(w||L)return;const R=le(_);if(!R.reload)if(u<=R.preload_data){const I=Z(v,!1);I&&Le(I)}else u<=R.preload_code&&oe(se(v))}function a(){t.disconnect();for(const s of d.querySelectorAll("a")){const{url:u,external:_,download:v}=we(s,J);if(_||v)continue;const w=le(s);w.reload||(w.preload_code===$e.viewport&&t.observe(s),w.preload_code===$e.eager&&oe(se(u)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:n.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(x||!D)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")O.push(e);else{const{href:i}=new URL(e,location.href);O.push(t=>t.href===i)}return Se()},invalidate_all:()=>(B=!0,Se()),preload_data:async e=>{const i=new URL(e,De(document)),t=Z(i,!1);if(!t)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(t)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:t,route:r}=y;if(!r)return;const a=await Oe(y.branch.length,t,r.errors);if(a){const s=await X({url:i,params:y.params,branch:t.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:r});y=s.state,V.$set(s.props),ye().then(be)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&be())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ae(),!U){const a=Fe(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(u=>u(s))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ae()}),(i=navigator.connection)!=null&&i.saveData||Ye(),d.addEventListener("click",t=>{var I;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ce(t.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:u,download:_}=we(r,J);if(!a)return;if(u==="_parent"||u==="_top"){if(window.parent!==window)return}else if(u&&u!=="_self")return;const v=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||_)return;if(s||v.reload){Ue({url:a,type:"link"})?U=!0:t.preventDefault();return}const[L,R]=a.href.split("#");if(R!==void 0&&L===location.href.split("#")[0]){if(y.url.hash===a.hash){t.preventDefault(),(I=r.ownerDocument.getElementById(R))==null||I.scrollIntoView();return}if(H=!0,ve(T),e(a),!v.replace_state)return;H=!1,t.preventDefault()}ce({url:a,scroll:v.noscroll?te():null,keepfocus:v.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:v.replace_state??a.href===location.href},accepted:()=>t.preventDefault(),blocked:()=>t.preventDefault(),type:"link"})}),d.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const u=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(u,J))return;const _=t.target,{keep_focus:v,noscroll:w,reload:L,replace_state:R}=le(_);if(L)return;t.preventDefault(),t.stopPropagation();const I=new FormData(_),g=a==null?void 0:a.getAttribute("name");g&&I.append(g,(a==null?void 0:a.getAttribute("value"))??""),u.search=new URLSearchParams(I).toString(),ce({url:u,scroll:w?te():null,keepfocus:v??!1,redirect_count:0,details:{state:{},replaceState:R??u.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async t=>{var r;if(z={},(r=t.state)!=null&&r[M]){if(t.state[M]===T)return;const a=K[t.state[M]],s=new URL(location.href);if(y.url.href.split("#")[0]===location.href.split("#")[0]){e(s),K[T]=te(),T=t.state[M],scrollTo(a.x,a.y);return}const u=t.state[M]-T;await ce({url:s,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{T=t.state[M]},blocked:()=>{history.go(-u)},type:"popstate",delta:u,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++T},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&F.navigating.set(null)});function e(t){y.url=t,F.page.set({...q,url:t}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:t,params:r,route:a,data:s,form:u})=>{C=!0;const _=new URL(location.href);({params:r={},route:a={id:null}}=Z(_,!1)||{});let v;try{const w=t.map(async(I,g)=>{const p=s[g];return p!=null&&p.uses&&(p.uses=ze(p.uses)),ue({loader:n.nodes[I],url:_,params:r,route:a,parent:async()=>{const P={};for(let N=0;NI===a.id);if(R){const I=R.layouts;for(let g=0;gh?"1":"0").join(""));const c=await Ge(l.href);if(!c.ok)throw new ne(c.status,await c.json());return new Promise(async h=>{var y;const d=new Map,O=c.body.getReader(),f=new TextDecoder;function E(C){return yt(C,{Promise:D=>new Promise((k,x)=>{d.set(D,{fulfil:k,reject:x})})})}let m="";for(;;){const{done:C,value:D}=await O.read();if(C&&!m)break;for(m+=!D&&m?` `:f.decode(D);;){const k=m.indexOf(` `);if(k===-1)break;const x=JSON.parse(m.slice(0,k));if(m=m.slice(k+1),x.type==="redirect")return h(x);if(x.type==="data")(y=x.nodes)==null||y.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=ze(U.uses),U.data=E(U.data))}),h(x);else if(x.type==="chunk"){const{id:U,data:H,error:B}=x,V=d.get(U);d.delete(U),B?V.reject(E(B)):V.fulfil(E(H))}}}})}function ze(n){return{dependencies:new Set((n==null?void 0:n.dependencies)??[]),params:new Set((n==null?void 0:n.params)??[]),parent:!!(n!=null&&n.parent),route:!!(n!=null&&n.route),url:!!(n!=null&&n.url)}}function be(){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const o=document.body,l=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),l!==null?o.setAttribute("tabindex",l):o.removeAttribute("tabindex");const c=getSelection();if(c&&c.type!=="None"){const h=[];for(let d=0;d{if(c.rangeCount===h.length){for(let d=0;d{h=y,d=C});return O.catch(()=>{}),{navigation:{from:{params:n.params,route:{id:((E=n.route)==null?void 0:E.id)??null},url:n.url},to:l&&{params:(o==null?void 0:o.params)??null,route:{id:((m=o==null?void 0:o.route)==null?void 0:m.id)??null},url:l},willUnload:!o,type:c,complete:O},fulfil:h,reject:d}}async function Lt(n,o,l){const c=St(n,o);Ze({client:c}),l?await c._hydrate(l):c.goto(location.href,{replaceState:!0}),c._start_router()}export{Lt as start}; diff --git a/_app/immutable/nodes/0.57c59368.js b/_app/immutable/nodes/0.57c59368.js new file mode 100644 index 0000000..e5c45be --- /dev/null +++ b/_app/immutable/nodes/0.57c59368.js @@ -0,0 +1 @@ +import{g as T}from"../chunks/routing.f0b9763f.js";import{p as z,l as g,s as B,a as D}from"../chunks/index.c5d02fa2.js";import{S as v,i as N,s as S,e as m,C as F,h as f,D as H,E as h,F as I,a as j,c as A,b as _,G as M,k as C,l as K,n as c,H as b,I as W,y as q,z as G,A as J,J as U,K as Q,L as R,g as k,d as L,B as V}from"../chunks/index.90d50ca5.js";import{p as d}from"../chunks/stores.085d1224.js";new TextEncoder;const X=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function Y(s,t){return"/"+T(s).map(l=>l.replace(X,(r,o,e,n)=>{const i=t[n];if(!i){if(o||e&&i!==void 0)return"";throw new Error(`Missing parameter '${n}' in route ${s}`)}if(i.startsWith("/")||i.endsWith("/"))throw new Error(`Parameter '${n}' in route ${s} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return i})).filter(Boolean).join("/")}const p="en",Z=!0;async function $({params:s}){const t=s.locale??p;return await z(t),{locale:t}}const ie=Object.freeze(Object.defineProperty({__proto__:null,load:$,prerender:Z},Symbol.toStringTag,{value:"Module"}));function w(s,t,a){const l=s.slice();return l[4]=t[a],l}function y(s){let t,a,l=g,r=[];for(let e=0;ea(1,l=n));let{localeParam:r="locale"}=t,{defaultLocale:o=null}=t;function e(n){let u=b(d).params;n===p?delete u[r]:u[r]=n;const O=b(d).route.id??"";return Y(O,u)}return s.$$set=n=>{"localeParam"in n&&a(3,r=n.localeParam),"defaultLocale"in n&&a(0,o=n.defaultLocale)},[o,l,e,r]}class te extends v{constructor(t){super(),N(this,t,ee,x,S,{localeParam:3,defaultLocale:0})}}function ae(s){let t,a,l;t=new te({props:{defaultLocale:p}});const r=s[3].default,o=W(r,s,s[2],null);return{c(){q(t.$$.fragment),a=j(),o&&o.c()},l(e){G(t.$$.fragment,e),a=A(e),o&&o.l(e)},m(e,n){J(t,e,n),_(e,a,n),o&&o.m(e,n),l=!0},p(e,[n]){o&&o.p&&(!l||n&4)&&U(o,r,e,e[2],l?R(r,e[2],n,null):Q(e[2]),null)},i(e){l||(k(t.$$.fragment,e),k(o,e),l=!0)},o(e){L(t.$$.fragment,e),L(o,e),l=!1},d(e){V(t,e),e&&f(a),o&&o.d(e)}}}function le(s,t,a){let l;I(s,D,n=>a(1,l=n));let{$$slots:r={},$$scope:o}=t,{data:e}=t;return s.$$set=n=>{"data"in n&&a(0,e=n.data),"$$scope"in n&&a(2,o=n.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&B(e.locale),s.$$.dirty&2&&(document.documentElement.lang=l)},[e,l,o,r]}class ce extends v{constructor(t){super(),N(this,t,le,ae,S,{data:0})}}export{ce as component,ie as universal}; diff --git a/_app/immutable/nodes/0.e1540c07.js b/_app/immutable/nodes/0.e1540c07.js deleted file mode 100644 index fdc77a9..0000000 --- a/_app/immutable/nodes/0.e1540c07.js +++ /dev/null @@ -1 +0,0 @@ -import{g as O}from"../chunks/routing.f0b9763f.js";import{p as T,l as g,s as $}from"../chunks/index.f644e0f8.js";import{S as v,i as N,s as I,e as m,C as z,h as c,D as B,E as h,F as D,a as S,c as j,b as _,G as F,k as A,l as C,n as f,H as b,I as H,y as M,z as W,A as q,J as G,K as J,L as U,g as k,d as L,B as Q}from"../chunks/index.90d50ca5.js";import{p as d}from"../chunks/stores.b0221e88.js";new TextEncoder;const R=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function V(o,t){return"/"+O(o).map(l=>l.replace(R,(n,r,e,s)=>{const i=t[s];if(!i){if(r||e&&i!==void 0)return"";throw new Error(`Missing parameter '${s}' in route ${o}`)}if(i.startsWith("/")||i.endsWith("/"))throw new Error(`Parameter '${s}' in route ${o} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return i})).filter(Boolean).join("/")}const p="en",X=!0;async function Y({params:o}){const t=o.locale??p;return await T(t),{locale:t}}const se=Object.freeze(Object.defineProperty({__proto__:null,load:Y,prerender:X},Symbol.toStringTag,{value:"Module"}));function w(o,t,a){const l=o.slice();return l[4]=t[a],l}function y(o){let t,a,l=g,n=[];for(let e=0;ea(1,l=s));let{localeParam:n="locale"}=t,{defaultLocale:r=null}=t;function e(s){let u=b(d).params;s===p?delete u[n]:u[n]=s;const K=b(d).route.id??"";return V(K,u)}return o.$$set=s=>{"localeParam"in s&&a(3,n=s.localeParam),"defaultLocale"in s&&a(0,r=s.defaultLocale)},[r,l,e,n]}class ee extends v{constructor(t){super(),N(this,t,x,Z,I,{localeParam:3,defaultLocale:0})}}function te(o){let t,a,l;t=new ee({props:{defaultLocale:p}});const n=o[2].default,r=H(n,o,o[1],null);return{c(){M(t.$$.fragment),a=S(),r&&r.c()},l(e){W(t.$$.fragment,e),a=j(e),r&&r.l(e)},m(e,s){q(t,e,s),_(e,a,s),r&&r.m(e,s),l=!0},p(e,[s]){r&&r.p&&(!l||s&2)&&G(r,n,e,e[1],l?U(n,e[1],s,null):J(e[1]),null)},i(e){l||(k(t.$$.fragment,e),k(r,e),l=!0)},o(e){L(t.$$.fragment,e),L(r,e),l=!1},d(e){Q(t,e),e&&c(a),r&&r.d(e)}}}function ae(o,t,a){let{$$slots:l={},$$scope:n}=t,{data:r}=t;return o.$$set=e=>{"data"in e&&a(0,r=e.data),"$$scope"in e&&a(1,n=e.$$scope)},o.$$.update=()=>{o.$$.dirty&1&&$(r.locale),o.$$.dirty&1&&(document.documentElement.lang=r.locale)},[r,n,l]}class ie extends v{constructor(t){super(),N(this,t,ae,te,I,{data:0})}}export{ie as component,se as universal}; diff --git a/_app/immutable/nodes/1.c1536d82.js b/_app/immutable/nodes/1.6b886106.js similarity index 95% rename from _app/immutable/nodes/1.c1536d82.js rename to _app/immutable/nodes/1.6b886106.js index 51be97b..0921d30 100644 --- a/_app/immutable/nodes/1.c1536d82.js +++ b/_app/immutable/nodes/1.6b886106.js @@ -1 +1 @@ -import{S as $,i as y,s as v,e as d,b as k,d as u,f as w,g as _,h as m,F as S,v as x,k as E,q as g,l as N,m as q,r as b,D as h,u as F,E as f,y as z,z as A,A as B,B as C}from"../chunks/index.90d50ca5.js";import{p as D}from"../chunks/stores.b0221e88.js";import{N as H}from"../chunks/NotFoundPage.9f3bd46c.js";function P(l){let e,n,t=l[0].status+"",a;return{c(){e=E("h1"),n=g("Something went wrong "),a=g(t)},l(s){e=N(s,"H1",{});var o=q(e);n=b(o,"Something went wrong "),a=b(o,t),o.forEach(m)},m(s,o){k(s,e,o),h(e,n),h(e,a)},p(s,o){o&1&&t!==(t=s[0].status+"")&&F(a,t)},i:f,o:f,d(s){s&&m(e)}}}function j(l){let e,n;return e=new H({}),{c(){z(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,a){B(e,t,a),n=!0},p:f,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function G(l){let e,n,t,a;const s=[j,P],o=[];function p(r,c){return r[0].status===404?0:1}return e=p(l),n=o[e]=s[e](l),{c(){n.c(),t=d()},l(r){n.l(r),t=d()},m(r,c){o[e].m(r,c),k(r,t,c),a=!0},p(r,[c]){let i=e;e=p(r),e===i?o[e].p(r,c):(x(),u(o[i],1,1,()=>{o[i]=null}),w(),n=o[e],n?n.p(r,c):(n=o[e]=s[e](r),n.c()),_(n,1),n.m(t.parentNode,t))},i(r){a||(_(n),a=!0)},o(r){u(n),a=!1},d(r){o[e].d(r),r&&m(t)}}}function I(l,e,n){let t;return S(l,D,a=>n(0,t=a)),[t]}class M extends ${constructor(e){super(),y(this,e,I,G,v,{})}}export{M as component}; +import{S as $,i as y,s as v,e as d,b as k,d as u,f as w,g as _,h as m,F as S,v as x,k as E,q as g,l as N,m as q,r as b,D as h,u as F,E as f,y as z,z as A,A as B,B as C}from"../chunks/index.90d50ca5.js";import{p as D}from"../chunks/stores.085d1224.js";import{N as H}from"../chunks/NotFoundPage.9f3bd46c.js";function P(l){let e,n,t=l[0].status+"",a;return{c(){e=E("h1"),n=g("Something went wrong "),a=g(t)},l(s){e=N(s,"H1",{});var o=q(e);n=b(o,"Something went wrong "),a=b(o,t),o.forEach(m)},m(s,o){k(s,e,o),h(e,n),h(e,a)},p(s,o){o&1&&t!==(t=s[0].status+"")&&F(a,t)},i:f,o:f,d(s){s&&m(e)}}}function j(l){let e,n;return e=new H({}),{c(){z(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,a){B(e,t,a),n=!0},p:f,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function G(l){let e,n,t,a;const s=[j,P],o=[];function p(r,c){return r[0].status===404?0:1}return e=p(l),n=o[e]=s[e](l),{c(){n.c(),t=d()},l(r){n.l(r),t=d()},m(r,c){o[e].m(r,c),k(r,t,c),a=!0},p(r,[c]){let i=e;e=p(r),e===i?o[e].p(r,c):(x(),u(o[i],1,1,()=>{o[i]=null}),w(),n=o[e],n?n.p(r,c):(n=o[e]=s[e](r),n.c()),_(n,1),n.m(t.parentNode,t))},i(r){a||(_(n),a=!0)},o(r){u(n),a=!1},d(r){o[e].d(r),r&&m(t)}}}function I(l,e,n){let t;return S(l,D,a=>n(0,t=a)),[t]}class M extends ${constructor(e){super(),y(this,e,I,G,v,{})}}export{M as component}; diff --git a/_app/immutable/nodes/2.eba3dc72.js b/_app/immutable/nodes/2.3af20a79.js similarity index 99% rename from _app/immutable/nodes/2.eba3dc72.js rename to _app/immutable/nodes/2.3af20a79.js index d5e7987..71ef8f9 100644 --- a/_app/immutable/nodes/2.eba3dc72.js +++ b/_app/immutable/nodes/2.3af20a79.js @@ -1,4 +1,4 @@ -import{S as ee,i as te,s as ne,M as re,N as Ae,O as Me,m as T,h,P as me,b as v,Q as Pe,E as ue,R as ge,I as ce,k as C,l as O,n as m,D as w,J as pe,K as $e,L as de,g as k,d as S,a as K,q as Z,c as D,r as J,T as De,U as we,V as Ge,v as Se,f as Ee,W as Ve,X as Ue,F as Ne,y as I,z as R,A as j,B as H,Y as Ce,Z as ze,_ as Xe,$ as xe}from"../chunks/index.90d50ca5.js";import{m as ke}from"../chunks/class-merge.a51d4999.js";import{p as Ie}from"../chunks/stores.b0221e88.js";import{g as Ye}from"../chunks/_commonjsHelpers.725317a4.js";import{G as Ze}from"../chunks/github.9c21d12c.js";function Je(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class We extends ee{constructor(e){super(),te(this,e,Qe,Je,ne,{})}}function Fe(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class tt extends ee{constructor(e){super(),te(this,e,et,Fe,ne,{})}}function nt(a){let e,t,r,s;const n=a[3].default,l=ce(n,a,a[2],null);return{c(){e=C("a"),t=C("span"),l&&l.c(),this.h()},l(i){e=O(i,"A",{href:!0,class:!0});var p=T(e);t=O(p,"SPAN",{class:!0});var u=T(t);l&&l.l(u),u.forEach(h),p.forEach(h),this.h()},h(){m(t,"class","truncate"),m(e,"href",a[1]),m(e,"class",r=ke("flex justify-between gap-2 py-2 px-2 rounded-md text-sm transition text-zinc-600 hover:text-zinc-900",a[0]&&"bg-orange-50"))},m(i,p){v(i,e,p),w(e,t),l&&l.m(t,null),s=!0},p(i,[p]){l&&l.p&&(!s||p&4)&&pe(l,n,i,i[2],s?de(n,i[2],p,null):$e(i[2]),null),(!s||p&2)&&m(e,"href",i[1]),(!s||p&1&&r!==(r=ke("flex justify-between gap-2 py-2 px-2 rounded-md text-sm transition text-zinc-600 hover:text-zinc-900",i[0]&&"bg-orange-50")))&&m(e,"class",r)},i(i){s||(k(l,i),s=!0)},o(i){S(l,i),s=!1},d(i){i&&h(e),l&&l.d(i)}}}function rt(a,e,t){let{$$slots:r={},$$scope:s}=e,{active:n=!1}=e,{href:l="#"}=e;return a.$$set=i=>{"active"in i&&t(0,n=i.active),"href"in i&&t(1,l=i.href),"$$scope"in i&&t(2,s=i.$$scope)},[n,l,s,r]}class st extends ee{constructor(e){super(),te(this,e,rt,nt,ne,{active:0,href:1})}}function at(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],null);return{c(){e=C("h3"),s&&s.c(),this.h()},l(n){e=O(n,"H3",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","uppercase font-bold text-gray-500 text-sm py-2")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,null):$e(n[0]),null)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function lt(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class it extends ee{constructor(e){super(),te(this,e,lt,at,ne,{})}}const ft=a=>({}),Oe=a=>({Link:st,Heading:it});function ot(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],Oe);return{c(){e=C("div"),s&&s.c(),this.h()},l(n){e=O(n,"DIV",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","grid")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,ft):$e(n[0]),Oe)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function ut(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class ct extends ee{constructor(e){super(),te(this,e,ut,ot,ne,{})}}var Re={exports:{}};(function(a){(function(e,t,r){if(!e)return;for(var s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},n={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},i={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p,u=1;u<20;++u)s[111+u]="f"+u;for(u=0;u<=9;++u)s[u+96]=u.toString();function c(o,$,_){if(o.addEventListener){o.addEventListener($,_,!1);return}o.attachEvent("on"+$,_)}function f(o){if(o.type=="keypress"){var $=String.fromCharCode(o.which);return o.shiftKey||($=$.toLowerCase()),$}return s[o.which]?s[o.which]:n[o.which]?n[o.which]:String.fromCharCode(o.which).toLowerCase()}function d(o,$){return o.sort().join(",")===$.sort().join(",")}function E(o){var $=[];return o.shiftKey&&$.push("shift"),o.altKey&&$.push("alt"),o.ctrlKey&&$.push("ctrl"),o.metaKey&&$.push("meta"),$}function M(o){if(o.preventDefault){o.preventDefault();return}o.returnValue=!1}function G(o){if(o.stopPropagation){o.stopPropagation();return}o.cancelBubble=!0}function z(o){return o=="shift"||o=="ctrl"||o=="alt"||o=="meta"}function X(){if(!p){p={};for(var o in s)o>95&&o<112||s.hasOwnProperty(o)&&(p[s[o]]=o)}return p}function se(o,$,_){return _||(_=X()[o]?"keydown":"keypress"),_=="keypress"&&$.length&&(_="keydown"),_}function B(o){return o==="+"?["+"]:(o=o.replace(/\+{2}/g,"+plus"),o.split("+"))}function W(o,$){var _,y,Y,g=[];for(_=B(o),Y=0;Y<_.length;++Y)y=_[Y],i[y]&&(y=i[y]),$&&$!="keypress"&&l[y]&&(y=l[y],g.push("shift")),z(y)&&g.push(y);return $=se(y,g,$),{key:y,modifiers:g,action:$}}function x(o,$){return o===null||o===t?!1:o===$?!0:x(o.parentNode,$)}function P(o){var $=this;if(o=o||t,!($ instanceof P))return new P(o);$.target=o,$._callbacks={},$._directMap={};var _={},y,Y=!1,g=!1,A=!1;function F(b){b=b||{};var q=!1,N;for(N in _){if(b[N]){q=!0;continue}_[N]=0}q||(A=!1)}function ae(b,q,N,L,U,fe){var V,Q,_e=[],oe=N.type;if(!$._callbacks[b])return[];for(oe=="keyup"&&z(b)&&(q=[b]),V=0;V<$._callbacks[b].length;++V)if(Q=$._callbacks[b][V],!(!L&&Q.seq&&_[Q.seq]!=Q.level)&&oe==Q.action&&(oe=="keypress"&&!N.metaKey&&!N.ctrlKey||d(q,Q.modifiers))){var je=!L&&Q.combo==U,He=L&&Q.seq==L&&Q.level==fe;(je||He)&&$._callbacks[b].splice(V,1),_e.push(Q)}return _e}function ie(b,q,N,L){$.stopCallback(q,q.target||q.srcElement,N,L)||b(q,N)===!1&&(M(q),G(q))}$._handleKey=function(b,q,N){var L=ae(b,q,N),U,fe={},V=0,Q=!1;for(U=0;U1){he(b,fe,q,N);return}V=W(b,N),$._callbacks[V.key]=$._callbacks[V.key]||[],ae(V.key,V.modifiers,{type:V.action},L,b,U),$._callbacks[V.key][L?"unshift":"push"]({callback:q,modifiers:V.modifiers,action:V.action,seq:L,level:U,combo:b})}$._bindMultiple=function(b,q,N){for(var L=0;L-1||x($,_.target))return!1;if("composedPath"in o&&typeof o.composedPath=="function"){var y=o.composedPath()[0];y!==o.target&&($=y)}return $.tagName=="INPUT"||$.tagName=="SELECT"||$.tagName=="TEXTAREA"||$.isContentEditable},P.prototype.handleKey=function(){var o=this;return o._handleKey.apply(o,arguments)},P.addKeycodes=function(o){for(var $ in o)o.hasOwnProperty($)&&(s[$]=o[$]);p=null},P.init=function(){var o=P(t);for(var $ in o)$.charAt(0)!=="_"&&(P[$]=function(_){return function(){return o[_].apply(o,arguments)}}($))},P.init(),e.Mousetrap=P,a.exports&&(a.exports=P),typeof r=="function"&&r.amd&&r(function(){return P})})(typeof window<"u"?window:null,typeof window<"u"?document:null)})(Re);var pt=Re.exports;const Te=Ye(pt);function $t(a){return(...e)=>a.reduce((t,r)=>t=[r(...t)],e||[])}function dt(a){let e=document.defaultView.getComputedStyle(a,null);return e.getPropertyValue("display")!=="none"&&e.getPropertyValue("visibility")!=="hidden"}const ht=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'];function _t(a){const e={"alt+tab":i,end:u,home:p,"shift+tab":i,down:l,tab:l,up:i};Object.entries(e).forEach(([c,f])=>{Te.bind(c,$t([d=>({event:d}),t,r,s,n,f]))});function t(c){return c.event.preventDefault(),c}function r(c){return c.event.stopPropagation(),c}function s(c){let f=[...a.querySelectorAll(ht)];return{...c,allFocusableItems:f.filter(dt)}}function n(c){let f=document.activeElement;return f&&!a.contains(f)?c:{...c,currentlyFocusedItem:f}}function l({allFocusableItems:c,currentlyFocusedItem:f}){if(!f){c[0]&&c[0].focus();return}let d=c.indexOf(f);if(c.length-1===d){c[0]&&c[0].focus();return}c[d+1]&&c[d+1].focus()}function i({allFocusableItems:c,currentlyFocusedItem:f}){if(!f){c[c.length-1].focus();return}let d=c.indexOf(f);if(d===0){c[c.length-1]&&c[c.length-1].focus();return}c[d-1]&&c[d-1].focus()}function p({allFocusableItems:c}){c[0]&&c[0].focus()}function u({allFocusableItems:c}){c[c.length-1].focus()}return{destroy(){Object.keys(e).forEach(c=>Te.unbind(c))}}}function mt(a,e){let t=null;function r(s){if(s){const{destroy:n}=_t(a);t=n}else t&&t(),t=null}return r(e),{update:r,destroy(){t&&t(),t=null}}}function Le(a){let e,t,r;return{c(){e=C("div"),this.h()},l(s){e=O(s,"DIV",{class:!0}),T(e).forEach(h),this.h()},h(){m(e,"class","fixed inset-0 bg-black bg-opacity-30 z-40 md:hidden")},m(s,n){v(s,e,n),t||(r=we(e,"click",a[2]),t=!0)},p:ue,d(s){s&&h(e),t=!1,r()}}}function gt(a){let e,t;return e=new We({props:{class:"w-6 h-6"}}),{c(){I(e.$$.fragment)},l(r){R(e.$$.fragment,r)},m(r,s){j(e,r,s),t=!0},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){H(e,r)}}}function vt(a){let e,t;return e=new tt({props:{class:"w-6 h-6"}}),{c(){I(e.$$.fragment)},l(r){R(e.$$.fragment,r)},m(r,s){j(e,r,s),t=!0},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){H(e,r)}}}function Be(a){let e,t,r,s,n;return t=new ct({props:{$$slots:{default:[Et,({Link:l,Heading:i})=>({5:l,6:i}),({Link:l,Heading:i})=>(l?32:0)|(i?64:0)]},$$scope:{ctx:a}}}),{c(){e=C("nav"),I(t.$$.fragment),this.h()},l(l){e=O(l,"NAV",{class:!0});var i=T(e);R(t.$$.fragment,i),i.forEach(h),this.h()},h(){m(e,"class","absolute grid gap-2 top-0 left-0 -translate-y-full bg-white rounded-t-lg border-t w-full p-4 max-h-96 overflow-y-auto")},m(l,i){v(l,e,i),j(t,e,null),r=!0,s||(n=we(e,"click",a[4]),s=!0)},p(l,i){const p={};i&130&&(p.$$scope={dirty:i,ctx:l}),t.$set(p)},i(l){r||(k(t.$$.fragment,l),r=!0)},o(l){S(t.$$.fragment,l),r=!1},d(l){l&&h(e),H(t),s=!1,n()}}}function bt(a){let e;return{c(){e=Z("Getting Started")},l(t){e=J(t,"Getting Started")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function kt(a){let e;return{c(){e=Z("Installation")},l(t){e=J(t,"Installation")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function wt(a){let e;return{c(){e=Z("Setting Up")},l(t){e=J(t,"Setting Up")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function yt(a){let e;return{c(){e=Z("Roadmap")},l(t){e=J(t,"Roadmap")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function St(a){let e;return{c(){e=Z("Syntax")},l(t){e=J(t,"Syntax")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function Et(a){let e,t,r,s,n,l,i,p,u,c;return e=new a[6]({props:{$$slots:{default:[bt]},$$scope:{ctx:a}}}),r=new a[5]({props:{href:"/",active:a[1].url.pathname==="/",$$slots:{default:[kt]},$$scope:{ctx:a}}}),n=new a[5]({props:{href:"/getting-started",active:a[1].url.pathname==="/getting-started",$$slots:{default:[wt]},$$scope:{ctx:a}}}),i=new a[5]({props:{href:"/roadmap",active:a[1].url.pathname==="/roadmap",$$slots:{default:[yt]},$$scope:{ctx:a}}}),u=new a[5]({props:{href:"/syntax",active:a[1].url.pathname==="/syntax",$$slots:{default:[St]},$$scope:{ctx:a}}}),{c(){I(e.$$.fragment),t=K(),I(r.$$.fragment),s=K(),I(n.$$.fragment),l=K(),I(i.$$.fragment),p=K(),I(u.$$.fragment)},l(f){R(e.$$.fragment,f),t=D(f),R(r.$$.fragment,f),s=D(f),R(n.$$.fragment,f),l=D(f),R(i.$$.fragment,f),p=D(f),R(u.$$.fragment,f)},m(f,d){j(e,f,d),v(f,t,d),j(r,f,d),v(f,s,d),j(n,f,d),v(f,l,d),j(i,f,d),v(f,p,d),j(u,f,d),c=!0},p(f,d){const E={};d&128&&(E.$$scope={dirty:d,ctx:f}),e.$set(E);const M={};d&2&&(M.active=f[1].url.pathname==="/"),d&128&&(M.$$scope={dirty:d,ctx:f}),r.$set(M);const G={};d&2&&(G.active=f[1].url.pathname==="/getting-started"),d&128&&(G.$$scope={dirty:d,ctx:f}),n.$set(G);const z={};d&2&&(z.active=f[1].url.pathname==="/roadmap"),d&128&&(z.$$scope={dirty:d,ctx:f}),i.$set(z);const X={};d&2&&(X.active=f[1].url.pathname==="/syntax"),d&128&&(X.$$scope={dirty:d,ctx:f}),u.$set(X)},i(f){c||(k(e.$$.fragment,f),k(r.$$.fragment,f),k(n.$$.fragment,f),k(i.$$.fragment,f),k(u.$$.fragment,f),c=!0)},o(f){S(e.$$.fragment,f),S(r.$$.fragment,f),S(n.$$.fragment,f),S(i.$$.fragment,f),S(u.$$.fragment,f),c=!1},d(f){H(e,f),f&&h(t),H(r,f),f&&h(s),H(n,f),f&&h(l),H(i,f),f&&h(p),H(u,f)}}}function At(a){let e,t,r,s,n,l,i,p,u,c,f,d,E,M,G,z,X,se,B=a[0]&&Le(a);const W=[vt,gt],x=[];function P($,_){return $[0]?0:1}d=P(a),E=x[d]=W[d](a);let o=a[0]&&Be(a);return{c(){B&&B.c(),e=K(),t=C("header"),r=C("div"),s=C("a"),n=C("img"),i=K(),p=C("span"),u=Z("T18S"),c=K(),f=C("button"),E.c(),M=K(),o&&o.c(),this.h()},l($){B&&B.l($),e=D($),t=O($,"HEADER",{class:!0});var _=T(t);r=O(_,"DIV",{class:!0});var y=T(r);s=O(y,"A",{class:!0,href:!0});var Y=T(s);n=O(Y,"IMG",{src:!0,alt:!0,class:!0}),i=D(Y),p=O(Y,"SPAN",{class:!0});var g=T(p);u=J(g,"T18S"),g.forEach(h),Y.forEach(h),c=D(y),f=O(y,"BUTTON",{});var A=T(f);E.l(A),A.forEach(h),y.forEach(h),M=D(_),o&&o.l(_),_.forEach(h),this.h()},h(){De(n.src,l="/icon.svg")||m(n,"src",l),m(n,"alt","t18s"),m(n,"class","w-6 h-6"),m(p,"class","font-semibold"),m(s,"class","flex gap-2"),m(s,"href","/"),m(r,"class","flex p-4 border-t items-center justify-between z-50 bg-white"),m(t,"class","block md:hidden relative z-50")},m($,_){B&&B.m($,_),v($,e,_),v($,t,_),w(t,r),w(r,s),w(s,n),w(s,i),w(s,p),w(p,u),w(r,c),w(r,f),x[d].m(f,null),w(t,M),o&&o.m(t,null),z=!0,X||(se=[we(f,"click",a[3]),Ge(G=mt.call(null,t,a[0]))],X=!0)},p($,[_]){$[0]?B?B.p($,_):(B=Le($),B.c(),B.m(e.parentNode,e)):B&&(B.d(1),B=null);let y=d;d=P($),d!==y&&(Se(),S(x[y],1,1,()=>{x[y]=null}),Ee(),E=x[d],E||(E=x[d]=W[d]($),E.c()),k(E,1),E.m(f,null)),$[0]?o?(o.p($,_),_&1&&k(o,1)):(o=Be($),o.c(),k(o,1),o.m(t,null)):o&&(Se(),S(o,1,1,()=>{o=null}),Ee()),G&&Ve(G.update)&&_&1&&G.update.call(null,$[0])},i($){z||(k(E),k(o),z=!0)},o($){S(E),S(o),z=!1},d($){B&&B.d($),$&&h(e),$&&h(t),x[d].d(),o&&o.d(),X=!1,Ue(se)}}}function Mt(a,e,t){let r;Ne(a,Ie,p=>t(1,r=p));let s=!1;return[s,r,()=>t(0,s=!1),()=>t(0,s=!s),()=>t(0,s=!1)]}class Pt extends ee{constructor(e){super(),te(this,e,Mt,At,ne,{})}}function Ct(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class Tt extends ee{constructor(e){super(),te(this,e,Ot,Ct,ne,{})}}function Lt(a){let e,t,r,s,n,l,i,p,u,c;return t=new Tt({props:{class:"text-gray-400 w-4 h-4 min-w-max"}}),{c(){e=C("label"),I(t.$$.fragment),r=K(),s=C("span"),n=Z("Search"),l=K(),i=C("input"),this.h()},l(f){e=O(f,"LABEL",{class:!0});var d=T(e);R(t.$$.fragment,d),r=D(d),s=O(d,"SPAN",{class:!0});var E=T(s);n=J(E,"Search"),E.forEach(h),l=D(d),i=O(d,"INPUT",{type:!0,class:!0,placeholder:!0}),d.forEach(h),this.h()},h(){m(s,"class","sr-only"),m(i,"type","text"),m(i,"class","bg-transparent py-2 pe-2 focus-within:outline-none placeholder:text-gray-400"),m(i,"placeholder","Search"),m(e,"class","flex gap-2 bg-gray-100 text-gray-800 pl-4 rounded-md items-center focus-within:ring-2 ring-orange-600")},m(f,d){v(f,e,d),j(t,e,null),w(e,r),w(e,s),w(s,n),w(e,l),w(e,i),Ce(i,a[0]),p=!0,u||(c=we(i,"input",a[1]),u=!0)},p(f,[d]){d&1&&i.value!==f[0]&&Ce(i,f[0])},i(f){p||(k(t.$$.fragment,f),p=!0)},o(f){S(t.$$.fragment,f),p=!1},d(f){f&&h(e),H(t),u=!1,c()}}}function Bt(a,e,t){let{query:r=""}=e;function s(){r=this.value,t(0,r)}return a.$$set=n=>{"query"in n&&t(0,r=n.query)},[r,s]}class qt extends ee{constructor(e){super(),te(this,e,Bt,Lt,ne,{query:0})}}function Kt(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],null);return{c(){e=C("h3"),s&&s.c(),this.h()},l(n){e=O(n,"H3",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","uppercase font-bold text-gray-500 text-sm")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,null):$e(n[0]),null)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function Dt(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class Vt extends ee{constructor(e){super(),te(this,e,Dt,Kt,ne,{})}}function Nt(a){return a<.5?4*a*a*a:.5*Math.pow(2*a-2,3)+1}function It(a){const e=a-1;return e*e*e+1}function Rt(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);sMath.sqrt(o)*30,easing:d=It}=re(re({},t),u),E=i.getBoundingClientRect(),M=p.getBoundingClientRect(),G=E.left-M.left,z=E.top-M.top,X=E.width/M.width,se=E.height/M.height,B=Math.sqrt(G*G+z*z),W=getComputedStyle(p),x=W.transform==="none"?"":W.transform,P=+W.opacity;return{delay:c,duration:Ve(f)?f(B):f,easing:d,css:(o,$)=>` +import{S as ee,i as te,s as ne,M as re,N as Ae,O as Me,m as T,h,P as me,b as v,Q as Pe,E as ue,R as ge,I as ce,k as C,l as O,n as m,D as w,J as pe,K as $e,L as de,g as k,d as S,a as K,q as Z,c as D,r as J,T as De,U as we,V as Ge,v as Se,f as Ee,W as Ve,X as Ue,F as Ne,y as I,z as R,A as j,B as H,Y as Ce,Z as ze,_ as Xe,$ as xe}from"../chunks/index.90d50ca5.js";import{m as ke}from"../chunks/class-merge.a51d4999.js";import{p as Ie}from"../chunks/stores.085d1224.js";import{g as Ye}from"../chunks/_commonjsHelpers.725317a4.js";import{G as Ze}from"../chunks/github.9c21d12c.js";function Je(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class We extends ee{constructor(e){super(),te(this,e,Qe,Je,ne,{})}}function Fe(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class tt extends ee{constructor(e){super(),te(this,e,et,Fe,ne,{})}}function nt(a){let e,t,r,s;const n=a[3].default,l=ce(n,a,a[2],null);return{c(){e=C("a"),t=C("span"),l&&l.c(),this.h()},l(i){e=O(i,"A",{href:!0,class:!0});var p=T(e);t=O(p,"SPAN",{class:!0});var u=T(t);l&&l.l(u),u.forEach(h),p.forEach(h),this.h()},h(){m(t,"class","truncate"),m(e,"href",a[1]),m(e,"class",r=ke("flex justify-between gap-2 py-2 px-2 rounded-md text-sm transition text-zinc-600 hover:text-zinc-900",a[0]&&"bg-orange-50"))},m(i,p){v(i,e,p),w(e,t),l&&l.m(t,null),s=!0},p(i,[p]){l&&l.p&&(!s||p&4)&&pe(l,n,i,i[2],s?de(n,i[2],p,null):$e(i[2]),null),(!s||p&2)&&m(e,"href",i[1]),(!s||p&1&&r!==(r=ke("flex justify-between gap-2 py-2 px-2 rounded-md text-sm transition text-zinc-600 hover:text-zinc-900",i[0]&&"bg-orange-50")))&&m(e,"class",r)},i(i){s||(k(l,i),s=!0)},o(i){S(l,i),s=!1},d(i){i&&h(e),l&&l.d(i)}}}function rt(a,e,t){let{$$slots:r={},$$scope:s}=e,{active:n=!1}=e,{href:l="#"}=e;return a.$$set=i=>{"active"in i&&t(0,n=i.active),"href"in i&&t(1,l=i.href),"$$scope"in i&&t(2,s=i.$$scope)},[n,l,s,r]}class st extends ee{constructor(e){super(),te(this,e,rt,nt,ne,{active:0,href:1})}}function at(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],null);return{c(){e=C("h3"),s&&s.c(),this.h()},l(n){e=O(n,"H3",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","uppercase font-bold text-gray-500 text-sm py-2")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,null):$e(n[0]),null)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function lt(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class it extends ee{constructor(e){super(),te(this,e,lt,at,ne,{})}}const ft=a=>({}),Oe=a=>({Link:st,Heading:it});function ot(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],Oe);return{c(){e=C("div"),s&&s.c(),this.h()},l(n){e=O(n,"DIV",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","grid")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,ft):$e(n[0]),Oe)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function ut(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class ct extends ee{constructor(e){super(),te(this,e,ut,ot,ne,{})}}var Re={exports:{}};(function(a){(function(e,t,r){if(!e)return;for(var s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},n={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},i={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p,u=1;u<20;++u)s[111+u]="f"+u;for(u=0;u<=9;++u)s[u+96]=u.toString();function c(o,$,_){if(o.addEventListener){o.addEventListener($,_,!1);return}o.attachEvent("on"+$,_)}function f(o){if(o.type=="keypress"){var $=String.fromCharCode(o.which);return o.shiftKey||($=$.toLowerCase()),$}return s[o.which]?s[o.which]:n[o.which]?n[o.which]:String.fromCharCode(o.which).toLowerCase()}function d(o,$){return o.sort().join(",")===$.sort().join(",")}function E(o){var $=[];return o.shiftKey&&$.push("shift"),o.altKey&&$.push("alt"),o.ctrlKey&&$.push("ctrl"),o.metaKey&&$.push("meta"),$}function M(o){if(o.preventDefault){o.preventDefault();return}o.returnValue=!1}function G(o){if(o.stopPropagation){o.stopPropagation();return}o.cancelBubble=!0}function z(o){return o=="shift"||o=="ctrl"||o=="alt"||o=="meta"}function X(){if(!p){p={};for(var o in s)o>95&&o<112||s.hasOwnProperty(o)&&(p[s[o]]=o)}return p}function se(o,$,_){return _||(_=X()[o]?"keydown":"keypress"),_=="keypress"&&$.length&&(_="keydown"),_}function B(o){return o==="+"?["+"]:(o=o.replace(/\+{2}/g,"+plus"),o.split("+"))}function W(o,$){var _,y,Y,g=[];for(_=B(o),Y=0;Y<_.length;++Y)y=_[Y],i[y]&&(y=i[y]),$&&$!="keypress"&&l[y]&&(y=l[y],g.push("shift")),z(y)&&g.push(y);return $=se(y,g,$),{key:y,modifiers:g,action:$}}function x(o,$){return o===null||o===t?!1:o===$?!0:x(o.parentNode,$)}function P(o){var $=this;if(o=o||t,!($ instanceof P))return new P(o);$.target=o,$._callbacks={},$._directMap={};var _={},y,Y=!1,g=!1,A=!1;function F(b){b=b||{};var q=!1,N;for(N in _){if(b[N]){q=!0;continue}_[N]=0}q||(A=!1)}function ae(b,q,N,L,U,fe){var V,Q,_e=[],oe=N.type;if(!$._callbacks[b])return[];for(oe=="keyup"&&z(b)&&(q=[b]),V=0;V<$._callbacks[b].length;++V)if(Q=$._callbacks[b][V],!(!L&&Q.seq&&_[Q.seq]!=Q.level)&&oe==Q.action&&(oe=="keypress"&&!N.metaKey&&!N.ctrlKey||d(q,Q.modifiers))){var je=!L&&Q.combo==U,He=L&&Q.seq==L&&Q.level==fe;(je||He)&&$._callbacks[b].splice(V,1),_e.push(Q)}return _e}function ie(b,q,N,L){$.stopCallback(q,q.target||q.srcElement,N,L)||b(q,N)===!1&&(M(q),G(q))}$._handleKey=function(b,q,N){var L=ae(b,q,N),U,fe={},V=0,Q=!1;for(U=0;U1){he(b,fe,q,N);return}V=W(b,N),$._callbacks[V.key]=$._callbacks[V.key]||[],ae(V.key,V.modifiers,{type:V.action},L,b,U),$._callbacks[V.key][L?"unshift":"push"]({callback:q,modifiers:V.modifiers,action:V.action,seq:L,level:U,combo:b})}$._bindMultiple=function(b,q,N){for(var L=0;L-1||x($,_.target))return!1;if("composedPath"in o&&typeof o.composedPath=="function"){var y=o.composedPath()[0];y!==o.target&&($=y)}return $.tagName=="INPUT"||$.tagName=="SELECT"||$.tagName=="TEXTAREA"||$.isContentEditable},P.prototype.handleKey=function(){var o=this;return o._handleKey.apply(o,arguments)},P.addKeycodes=function(o){for(var $ in o)o.hasOwnProperty($)&&(s[$]=o[$]);p=null},P.init=function(){var o=P(t);for(var $ in o)$.charAt(0)!=="_"&&(P[$]=function(_){return function(){return o[_].apply(o,arguments)}}($))},P.init(),e.Mousetrap=P,a.exports&&(a.exports=P),typeof r=="function"&&r.amd&&r(function(){return P})})(typeof window<"u"?window:null,typeof window<"u"?document:null)})(Re);var pt=Re.exports;const Te=Ye(pt);function $t(a){return(...e)=>a.reduce((t,r)=>t=[r(...t)],e||[])}function dt(a){let e=document.defaultView.getComputedStyle(a,null);return e.getPropertyValue("display")!=="none"&&e.getPropertyValue("visibility")!=="hidden"}const ht=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'];function _t(a){const e={"alt+tab":i,end:u,home:p,"shift+tab":i,down:l,tab:l,up:i};Object.entries(e).forEach(([c,f])=>{Te.bind(c,$t([d=>({event:d}),t,r,s,n,f]))});function t(c){return c.event.preventDefault(),c}function r(c){return c.event.stopPropagation(),c}function s(c){let f=[...a.querySelectorAll(ht)];return{...c,allFocusableItems:f.filter(dt)}}function n(c){let f=document.activeElement;return f&&!a.contains(f)?c:{...c,currentlyFocusedItem:f}}function l({allFocusableItems:c,currentlyFocusedItem:f}){if(!f){c[0]&&c[0].focus();return}let d=c.indexOf(f);if(c.length-1===d){c[0]&&c[0].focus();return}c[d+1]&&c[d+1].focus()}function i({allFocusableItems:c,currentlyFocusedItem:f}){if(!f){c[c.length-1].focus();return}let d=c.indexOf(f);if(d===0){c[c.length-1]&&c[c.length-1].focus();return}c[d-1]&&c[d-1].focus()}function p({allFocusableItems:c}){c[0]&&c[0].focus()}function u({allFocusableItems:c}){c[c.length-1].focus()}return{destroy(){Object.keys(e).forEach(c=>Te.unbind(c))}}}function mt(a,e){let t=null;function r(s){if(s){const{destroy:n}=_t(a);t=n}else t&&t(),t=null}return r(e),{update:r,destroy(){t&&t(),t=null}}}function Le(a){let e,t,r;return{c(){e=C("div"),this.h()},l(s){e=O(s,"DIV",{class:!0}),T(e).forEach(h),this.h()},h(){m(e,"class","fixed inset-0 bg-black bg-opacity-30 z-40 md:hidden")},m(s,n){v(s,e,n),t||(r=we(e,"click",a[2]),t=!0)},p:ue,d(s){s&&h(e),t=!1,r()}}}function gt(a){let e,t;return e=new We({props:{class:"w-6 h-6"}}),{c(){I(e.$$.fragment)},l(r){R(e.$$.fragment,r)},m(r,s){j(e,r,s),t=!0},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){H(e,r)}}}function vt(a){let e,t;return e=new tt({props:{class:"w-6 h-6"}}),{c(){I(e.$$.fragment)},l(r){R(e.$$.fragment,r)},m(r,s){j(e,r,s),t=!0},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){H(e,r)}}}function Be(a){let e,t,r,s,n;return t=new ct({props:{$$slots:{default:[Et,({Link:l,Heading:i})=>({5:l,6:i}),({Link:l,Heading:i})=>(l?32:0)|(i?64:0)]},$$scope:{ctx:a}}}),{c(){e=C("nav"),I(t.$$.fragment),this.h()},l(l){e=O(l,"NAV",{class:!0});var i=T(e);R(t.$$.fragment,i),i.forEach(h),this.h()},h(){m(e,"class","absolute grid gap-2 top-0 left-0 -translate-y-full bg-white rounded-t-lg border-t w-full p-4 max-h-96 overflow-y-auto")},m(l,i){v(l,e,i),j(t,e,null),r=!0,s||(n=we(e,"click",a[4]),s=!0)},p(l,i){const p={};i&130&&(p.$$scope={dirty:i,ctx:l}),t.$set(p)},i(l){r||(k(t.$$.fragment,l),r=!0)},o(l){S(t.$$.fragment,l),r=!1},d(l){l&&h(e),H(t),s=!1,n()}}}function bt(a){let e;return{c(){e=Z("Getting Started")},l(t){e=J(t,"Getting Started")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function kt(a){let e;return{c(){e=Z("Installation")},l(t){e=J(t,"Installation")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function wt(a){let e;return{c(){e=Z("Setting Up")},l(t){e=J(t,"Setting Up")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function yt(a){let e;return{c(){e=Z("Roadmap")},l(t){e=J(t,"Roadmap")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function St(a){let e;return{c(){e=Z("Syntax")},l(t){e=J(t,"Syntax")},m(t,r){v(t,e,r)},d(t){t&&h(e)}}}function Et(a){let e,t,r,s,n,l,i,p,u,c;return e=new a[6]({props:{$$slots:{default:[bt]},$$scope:{ctx:a}}}),r=new a[5]({props:{href:"/",active:a[1].url.pathname==="/",$$slots:{default:[kt]},$$scope:{ctx:a}}}),n=new a[5]({props:{href:"/getting-started",active:a[1].url.pathname==="/getting-started",$$slots:{default:[wt]},$$scope:{ctx:a}}}),i=new a[5]({props:{href:"/roadmap",active:a[1].url.pathname==="/roadmap",$$slots:{default:[yt]},$$scope:{ctx:a}}}),u=new a[5]({props:{href:"/syntax",active:a[1].url.pathname==="/syntax",$$slots:{default:[St]},$$scope:{ctx:a}}}),{c(){I(e.$$.fragment),t=K(),I(r.$$.fragment),s=K(),I(n.$$.fragment),l=K(),I(i.$$.fragment),p=K(),I(u.$$.fragment)},l(f){R(e.$$.fragment,f),t=D(f),R(r.$$.fragment,f),s=D(f),R(n.$$.fragment,f),l=D(f),R(i.$$.fragment,f),p=D(f),R(u.$$.fragment,f)},m(f,d){j(e,f,d),v(f,t,d),j(r,f,d),v(f,s,d),j(n,f,d),v(f,l,d),j(i,f,d),v(f,p,d),j(u,f,d),c=!0},p(f,d){const E={};d&128&&(E.$$scope={dirty:d,ctx:f}),e.$set(E);const M={};d&2&&(M.active=f[1].url.pathname==="/"),d&128&&(M.$$scope={dirty:d,ctx:f}),r.$set(M);const G={};d&2&&(G.active=f[1].url.pathname==="/getting-started"),d&128&&(G.$$scope={dirty:d,ctx:f}),n.$set(G);const z={};d&2&&(z.active=f[1].url.pathname==="/roadmap"),d&128&&(z.$$scope={dirty:d,ctx:f}),i.$set(z);const X={};d&2&&(X.active=f[1].url.pathname==="/syntax"),d&128&&(X.$$scope={dirty:d,ctx:f}),u.$set(X)},i(f){c||(k(e.$$.fragment,f),k(r.$$.fragment,f),k(n.$$.fragment,f),k(i.$$.fragment,f),k(u.$$.fragment,f),c=!0)},o(f){S(e.$$.fragment,f),S(r.$$.fragment,f),S(n.$$.fragment,f),S(i.$$.fragment,f),S(u.$$.fragment,f),c=!1},d(f){H(e,f),f&&h(t),H(r,f),f&&h(s),H(n,f),f&&h(l),H(i,f),f&&h(p),H(u,f)}}}function At(a){let e,t,r,s,n,l,i,p,u,c,f,d,E,M,G,z,X,se,B=a[0]&&Le(a);const W=[vt,gt],x=[];function P($,_){return $[0]?0:1}d=P(a),E=x[d]=W[d](a);let o=a[0]&&Be(a);return{c(){B&&B.c(),e=K(),t=C("header"),r=C("div"),s=C("a"),n=C("img"),i=K(),p=C("span"),u=Z("T18S"),c=K(),f=C("button"),E.c(),M=K(),o&&o.c(),this.h()},l($){B&&B.l($),e=D($),t=O($,"HEADER",{class:!0});var _=T(t);r=O(_,"DIV",{class:!0});var y=T(r);s=O(y,"A",{class:!0,href:!0});var Y=T(s);n=O(Y,"IMG",{src:!0,alt:!0,class:!0}),i=D(Y),p=O(Y,"SPAN",{class:!0});var g=T(p);u=J(g,"T18S"),g.forEach(h),Y.forEach(h),c=D(y),f=O(y,"BUTTON",{});var A=T(f);E.l(A),A.forEach(h),y.forEach(h),M=D(_),o&&o.l(_),_.forEach(h),this.h()},h(){De(n.src,l="/icon.svg")||m(n,"src",l),m(n,"alt","t18s"),m(n,"class","w-6 h-6"),m(p,"class","font-semibold"),m(s,"class","flex gap-2"),m(s,"href","/"),m(r,"class","flex p-4 border-t items-center justify-between z-50 bg-white"),m(t,"class","block md:hidden relative z-50")},m($,_){B&&B.m($,_),v($,e,_),v($,t,_),w(t,r),w(r,s),w(s,n),w(s,i),w(s,p),w(p,u),w(r,c),w(r,f),x[d].m(f,null),w(t,M),o&&o.m(t,null),z=!0,X||(se=[we(f,"click",a[3]),Ge(G=mt.call(null,t,a[0]))],X=!0)},p($,[_]){$[0]?B?B.p($,_):(B=Le($),B.c(),B.m(e.parentNode,e)):B&&(B.d(1),B=null);let y=d;d=P($),d!==y&&(Se(),S(x[y],1,1,()=>{x[y]=null}),Ee(),E=x[d],E||(E=x[d]=W[d]($),E.c()),k(E,1),E.m(f,null)),$[0]?o?(o.p($,_),_&1&&k(o,1)):(o=Be($),o.c(),k(o,1),o.m(t,null)):o&&(Se(),S(o,1,1,()=>{o=null}),Ee()),G&&Ve(G.update)&&_&1&&G.update.call(null,$[0])},i($){z||(k(E),k(o),z=!0)},o($){S(E),S(o),z=!1},d($){B&&B.d($),$&&h(e),$&&h(t),x[d].d(),o&&o.d(),X=!1,Ue(se)}}}function Mt(a,e,t){let r;Ne(a,Ie,p=>t(1,r=p));let s=!1;return[s,r,()=>t(0,s=!1),()=>t(0,s=!s),()=>t(0,s=!1)]}class Pt extends ee{constructor(e){super(),te(this,e,Mt,At,ne,{})}}function Ct(a){let e,t='',r=[{viewBox:"0 0 24 24"},{width:"1.2em"},{height:"1.2em"},a[0]],s={};for(let n=0;n{t(0,e=re(re({},e),ge(r)))},e=ge(e),[e]}class Tt extends ee{constructor(e){super(),te(this,e,Ot,Ct,ne,{})}}function Lt(a){let e,t,r,s,n,l,i,p,u,c;return t=new Tt({props:{class:"text-gray-400 w-4 h-4 min-w-max"}}),{c(){e=C("label"),I(t.$$.fragment),r=K(),s=C("span"),n=Z("Search"),l=K(),i=C("input"),this.h()},l(f){e=O(f,"LABEL",{class:!0});var d=T(e);R(t.$$.fragment,d),r=D(d),s=O(d,"SPAN",{class:!0});var E=T(s);n=J(E,"Search"),E.forEach(h),l=D(d),i=O(d,"INPUT",{type:!0,class:!0,placeholder:!0}),d.forEach(h),this.h()},h(){m(s,"class","sr-only"),m(i,"type","text"),m(i,"class","bg-transparent py-2 pe-2 focus-within:outline-none placeholder:text-gray-400"),m(i,"placeholder","Search"),m(e,"class","flex gap-2 bg-gray-100 text-gray-800 pl-4 rounded-md items-center focus-within:ring-2 ring-orange-600")},m(f,d){v(f,e,d),j(t,e,null),w(e,r),w(e,s),w(s,n),w(e,l),w(e,i),Ce(i,a[0]),p=!0,u||(c=we(i,"input",a[1]),u=!0)},p(f,[d]){d&1&&i.value!==f[0]&&Ce(i,f[0])},i(f){p||(k(t.$$.fragment,f),p=!0)},o(f){S(t.$$.fragment,f),p=!1},d(f){f&&h(e),H(t),u=!1,c()}}}function Bt(a,e,t){let{query:r=""}=e;function s(){r=this.value,t(0,r)}return a.$$set=n=>{"query"in n&&t(0,r=n.query)},[r,s]}class qt extends ee{constructor(e){super(),te(this,e,Bt,Lt,ne,{query:0})}}function Kt(a){let e,t;const r=a[1].default,s=ce(r,a,a[0],null);return{c(){e=C("h3"),s&&s.c(),this.h()},l(n){e=O(n,"H3",{class:!0});var l=T(e);s&&s.l(l),l.forEach(h),this.h()},h(){m(e,"class","uppercase font-bold text-gray-500 text-sm")},m(n,l){v(n,e,l),s&&s.m(e,null),t=!0},p(n,[l]){s&&s.p&&(!t||l&1)&&pe(s,r,n,n[0],t?de(r,n[0],l,null):$e(n[0]),null)},i(n){t||(k(s,n),t=!0)},o(n){S(s,n),t=!1},d(n){n&&h(e),s&&s.d(n)}}}function Dt(a,e,t){let{$$slots:r={},$$scope:s}=e;return a.$$set=n=>{"$$scope"in n&&t(0,s=n.$$scope)},[s,r]}class Vt extends ee{constructor(e){super(),te(this,e,Dt,Kt,ne,{})}}function Nt(a){return a<.5?4*a*a*a:.5*Math.pow(2*a-2,3)+1}function It(a){const e=a-1;return e*e*e+1}function Rt(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);sMath.sqrt(o)*30,easing:d=It}=re(re({},t),u),E=i.getBoundingClientRect(),M=p.getBoundingClientRect(),G=E.left-M.left,z=E.top-M.top,X=E.width/M.width,se=E.height/M.height,B=Math.sqrt(G*G+z*z),W=getComputedStyle(p),x=W.transform==="none"?"":W.transform,P=+W.opacity;return{delay:c,duration:Ve(f)?f(B):f,easing:d,css:(o,$)=>` opacity: ${o*P}; transform-origin: top left; transform: ${x} translate(${$*G}px,${$*z}px) scale(${o+(1-o)*X}, ${o+(1-o)*se}); diff --git a/_app/immutable/nodes/4.6329451e.js b/_app/immutable/nodes/4.22353d91.js similarity index 55% rename from _app/immutable/nodes/4.6329451e.js rename to _app/immutable/nodes/4.22353d91.js index 8d78025..316a002 100644 --- a/_app/immutable/nodes/4.6329451e.js +++ b/_app/immutable/nodes/4.22353d91.js @@ -1 +1 @@ -import{S as z,i as A,s as B,y as p,a as d,z as u,c as b,A as l,b as w,g,d as i,B as c,h as v,E as C}from"../chunks/index.90d50ca5.js";import{C as q}from"../chunks/CodeGroup.56f46765.js";import{P}from"../chunks/Prism.42f81a6a.js";function E(f){let t,n;return t=new P({props:{code:"npm install --save-dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function G(f){let t,n;return t=new P({props:{code:"yarn add --dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function I(f){let t,n;return t=new P({props:{code:"pnpm add --save-dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function W(f){let t,n,e,s,$,a,m,_;return t=new f[0]({props:{title:"Installation"}}),e=new f[1]({props:{name:"npm",$$slots:{default:[E]},$$scope:{ctx:f}}}),$=new f[1]({props:{name:"yarn",$$slots:{default:[G]},$$scope:{ctx:f}}}),m=new f[1]({props:{name:"pnpm",$$slots:{default:[I]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment),s=d(),p($.$$.fragment),a=d(),p(m.$$.fragment)},l(r){u(t.$$.fragment,r),n=b(r),u(e.$$.fragment,r),s=b(r),u($.$$.fragment,r),a=b(r),u(m.$$.fragment,r)},m(r,o){l(t,r,o),w(r,n,o),l(e,r,o),w(r,s,o),l($,r,o),w(r,a,o),l(m,r,o),_=!0},p(r,o){const H={};o&4&&(H.$$scope={dirty:o,ctx:r}),e.$set(H);const S={};o&4&&(S.$$scope={dirty:o,ctx:r}),$.$set(S);const j={};o&4&&(j.$$scope={dirty:o,ctx:r}),m.$set(j)},i(r){_||(g(t.$$.fragment,r),g(e.$$.fragment,r),g($.$$.fragment,r),g(m.$$.fragment,r),_=!0)},o(r){i(t.$$.fragment,r),i(e.$$.fragment,r),i($.$$.fragment,r),i(m.$$.fragment,r),_=!1},d(r){c(t,r),r&&v(n),c(e,r),r&&v(s),c($,r),r&&v(a),c(m,r)}}}function k(f){let t,n;return t=new P({props:{code:"console.log('Hello World')",language:"javascript"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function D(f){let t,n,e,s;return t=new f[0]({props:{title:"Highlighting"}}),e=new f[1]({props:{$$slots:{default:[k]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment)},l($){u(t.$$.fragment,$),n=b($),u(e.$$.fragment,$)},m($,a){l(t,$,a),w($,n,a),l(e,$,a),s=!0},p($,a){const m={};a&4&&(m.$$scope={dirty:a,ctx:$}),e.$set(m)},i($){s||(g(t.$$.fragment,$),g(e.$$.fragment,$),s=!0)},o($){i(t.$$.fragment,$),i(e.$$.fragment,$),s=!1},d($){c(t,$),$&&v(n),c(e,$)}}}function F(f){let t,n,e,s;return t=new q({props:{$$slots:{default:[W,({Header:$,Tab:a})=>({0:$,1:a}),({Header:$,Tab:a})=>($?1:0)|(a?2:0)]},$$scope:{ctx:f}}}),e=new q({props:{$$slots:{default:[D,({Header:$,Tab:a})=>({0:$,1:a}),({Header:$,Tab:a})=>($?1:0)|(a?2:0)]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment)},l($){u(t.$$.fragment,$),n=b($),u(e.$$.fragment,$)},m($,a){l(t,$,a),w($,n,a),l(e,$,a),s=!0},p($,[a]){const m={};a&4&&(m.$$scope={dirty:a,ctx:$}),t.$set(m);const _={};a&4&&(_.$$scope={dirty:a,ctx:$}),e.$set(_)},i($){s||(g(t.$$.fragment,$),g(e.$$.fragment,$),s=!0)},o($){i(t.$$.fragment,$),i(e.$$.fragment,$),s=!1},d($){c(t,$),$&&v(n),c(e,$)}}}class M extends z{constructor(t){super(),A(this,t,null,F,B,{})}}export{M as component}; +import{S as z,i as A,s as B,y as p,a as d,z as u,c as b,A as l,b as w,g,d as i,B as c,h as v,E as C}from"../chunks/index.90d50ca5.js";import{C as q}from"../chunks/CodeGroup.56f46765.js";import{P}from"../chunks/Prism.a7e47b46.js";function E(f){let t,n;return t=new P({props:{code:"npm install --save-dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function G(f){let t,n;return t=new P({props:{code:"yarn add --dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function I(f){let t,n;return t=new P({props:{code:"pnpm add --save-dev t18s",language:"bash"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function J(f){let t,n,e,s,$,a,m,_;return t=new f[0]({props:{title:"Installation"}}),e=new f[1]({props:{name:"npm",$$slots:{default:[E]},$$scope:{ctx:f}}}),$=new f[1]({props:{name:"yarn",$$slots:{default:[G]},$$scope:{ctx:f}}}),m=new f[1]({props:{name:"pnpm",$$slots:{default:[I]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment),s=d(),p($.$$.fragment),a=d(),p(m.$$.fragment)},l(r){u(t.$$.fragment,r),n=b(r),u(e.$$.fragment,r),s=b(r),u($.$$.fragment,r),a=b(r),u(m.$$.fragment,r)},m(r,o){l(t,r,o),w(r,n,o),l(e,r,o),w(r,s,o),l($,r,o),w(r,a,o),l(m,r,o),_=!0},p(r,o){const S={};o&4&&(S.$$scope={dirty:o,ctx:r}),e.$set(S);const H={};o&4&&(H.$$scope={dirty:o,ctx:r}),$.$set(H);const j={};o&4&&(j.$$scope={dirty:o,ctx:r}),m.$set(j)},i(r){_||(g(t.$$.fragment,r),g(e.$$.fragment,r),g($.$$.fragment,r),g(m.$$.fragment,r),_=!0)},o(r){i(t.$$.fragment,r),i(e.$$.fragment,r),i($.$$.fragment,r),i(m.$$.fragment,r),_=!1},d(r){c(t,r),r&&v(n),c(e,r),r&&v(s),c($,r),r&&v(a),c(m,r)}}}function W(f){let t,n;return t=new P({props:{code:"console.log('Hello World')",language:"javascript"}}),{c(){p(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,s){l(t,e,s),n=!0},p:C,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){i(t.$$.fragment,e),n=!1},d(e){c(t,e)}}}function k(f){let t,n,e,s;return t=new f[0]({props:{title:"Highlighting"}}),e=new f[1]({props:{name:"JS",$$slots:{default:[W]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment)},l($){u(t.$$.fragment,$),n=b($),u(e.$$.fragment,$)},m($,a){l(t,$,a),w($,n,a),l(e,$,a),s=!0},p($,a){const m={};a&4&&(m.$$scope={dirty:a,ctx:$}),e.$set(m)},i($){s||(g(t.$$.fragment,$),g(e.$$.fragment,$),s=!0)},o($){i(t.$$.fragment,$),i(e.$$.fragment,$),s=!1},d($){c(t,$),$&&v(n),c(e,$)}}}function D(f){let t,n,e,s;return t=new q({props:{$$slots:{default:[J,({Header:$,Tab:a})=>({0:$,1:a}),({Header:$,Tab:a})=>($?1:0)|(a?2:0)]},$$scope:{ctx:f}}}),e=new q({props:{$$slots:{default:[k,({Header:$,Tab:a})=>({0:$,1:a}),({Header:$,Tab:a})=>($?1:0)|(a?2:0)]},$$scope:{ctx:f}}}),{c(){p(t.$$.fragment),n=d(),p(e.$$.fragment)},l($){u(t.$$.fragment,$),n=b($),u(e.$$.fragment,$)},m($,a){l(t,$,a),w($,n,a),l(e,$,a),s=!0},p($,[a]){const m={};a&4&&(m.$$scope={dirty:a,ctx:$}),t.$set(m);const _={};a&4&&(_.$$scope={dirty:a,ctx:$}),e.$set(_)},i($){s||(g(t.$$.fragment,$),g(e.$$.fragment,$),s=!0)},o($){i(t.$$.fragment,$),i(e.$$.fragment,$),s=!1},d($){c(t,$),$&&v(n),c(e,$)}}}class M extends z{constructor(t){super(),A(this,t,null,D,B,{})}}export{M as component}; diff --git a/_app/immutable/nodes/6.232eb4a4.js b/_app/immutable/nodes/6.232eb4a4.js deleted file mode 100644 index 463f2e8..0000000 --- a/_app/immutable/nodes/6.232eb4a4.js +++ /dev/null @@ -1,16 +0,0 @@ -import{S as V,i as I,s as J,k as x,q as j,a as _,y as d,l as F,m as T,r as k,h as f,c as g,z as v,b as p,D as z,A as w,g as y,d as b,B as S,E as K}from"../chunks/index.90d50ca5.js";import{C as L}from"../chunks/CodeGroup.56f46765.js";import{P as M}from"../chunks/Prism.42f81a6a.js";const N=`import { sveltekit } from "@sveltejs/kit/vite"; -import { t18s } from "t18s"; -import { defineConfig } from "vite"; - -export default defineConfig({ - plugins: [ - sveltekit(), - t18s({ - locales: ["en", "de"], - fallbackLocale: "en", - }), - ], -}); -`;function O(i){let t;return{c(){t=j("npm install --save-dev t18s")},l(r){t=k(r,"npm install --save-dev t18s")},m(r,n){p(r,t,n)},d(r){r&&f(t)}}}function Q(i){let t,r;return t=new i[1]({props:{$$slots:{default:[O]},$$scope:{ctx:i}}}),{c(){d(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,o){w(t,n,o),r=!0},p(n,o){const s={};o&4&&(s.$$scope={dirty:o,ctx:n}),t.$set(s)},i(n){r||(y(t.$$.fragment,n),r=!0)},o(n){b(t.$$.fragment,n),r=!1},d(n){S(t,n)}}}function R(i){let t,r;return t=new M({props:{code:N,language:"javascript"}}),{c(){d(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,o){w(t,n,o),r=!0},p:K,i(n){r||(y(t.$$.fragment,n),r=!0)},o(n){b(t.$$.fragment,n),r=!1},d(n){S(t,n)}}}function U(i){let t,r,n,o;return t=new i[0]({props:{title:"vite.config.js"}}),n=new i[1]({props:{$$slots:{default:[R]},$$scope:{ctx:i}}}),{c(){d(t.$$.fragment),r=_(),d(n.$$.fragment)},l(s){v(t.$$.fragment,s),r=g(s),v(n.$$.fragment,s)},m(s,l){w(t,s,l),p(s,r,l),w(n,s,l),o=!0},p(s,l){const $={};l&4&&($.$$scope={dirty:l,ctx:s}),n.$set($)},i(s){o||(y(t.$$.fragment,s),y(n.$$.fragment,s),o=!0)},o(s){b(t.$$.fragment,s),b(n.$$.fragment,s),o=!1},d(s){S(t,s),s&&f(r),S(n,s)}}}function W(i){let t,r,n,o,s,l,$,E,u,B,A,m,G,c,D,q;return $=new L({props:{$$slots:{default:[Q,({Tab:e})=>({1:e}),({Tab:e})=>e?2:0]},$$scope:{ctx:i}}}),m=new L({props:{$$slots:{default:[U,({Header:e,Tab:a})=>({0:e,1:a}),({Header:e,Tab:a})=>(e?1:0)|(a?2:0)]},$$scope:{ctx:i}}}),{c(){t=x("h1"),r=j("Getting Started"),n=_(),o=x("p"),s=j("First you need to install t18s as a dev dependency."),l=_(),d($.$$.fragment),E=_(),u=x("p"),B=j(`T18S isn't just a library, it's a vite-plugin, so you will need to register it - in your vite config.`),A=_(),d(m.$$.fragment),G=_(),c=x("p"),D=j("Aaaand we're off.")},l(e){t=F(e,"H1",{});var a=T(t);r=k(a,"Getting Started"),a.forEach(f),n=g(e),o=F(e,"P",{});var C=T(o);s=k(C,"First you need to install t18s as a dev dependency."),C.forEach(f),l=g(e),v($.$$.fragment,e),E=g(e),u=F(e,"P",{});var P=T(u);B=k(P,`T18S isn't just a library, it's a vite-plugin, so you will need to register it - in your vite config.`),P.forEach(f),A=g(e),v(m.$$.fragment,e),G=g(e),c=F(e,"P",{});var H=T(c);D=k(H,"Aaaand we're off."),H.forEach(f)},m(e,a){p(e,t,a),z(t,r),p(e,n,a),p(e,o,a),z(o,s),p(e,l,a),w($,e,a),p(e,E,a),p(e,u,a),z(u,B),p(e,A,a),w(m,e,a),p(e,G,a),p(e,c,a),z(c,D),q=!0},p(e,[a]){const C={};a&4&&(C.$$scope={dirty:a,ctx:e}),$.$set(C);const P={};a&4&&(P.$$scope={dirty:a,ctx:e}),m.$set(P)},i(e){q||(y($.$$.fragment,e),y(m.$$.fragment,e),q=!0)},o(e){b($.$$.fragment,e),b(m.$$.fragment,e),q=!1},d(e){e&&f(t),e&&f(n),e&&f(o),e&&f(l),S($,e),e&&f(E),e&&f(u),e&&f(A),S(m,e),e&&f(G),e&&f(c)}}}class h extends V{constructor(t){super(),I(this,t,null,W,J,{})}}export{h as component}; diff --git a/_app/immutable/nodes/6.9363806b.js b/_app/immutable/nodes/6.9363806b.js new file mode 100644 index 0000000..8c16c4c --- /dev/null +++ b/_app/immutable/nodes/6.9363806b.js @@ -0,0 +1,16 @@ +import{S as K,i as M,s as N,k as q,q as F,a as S,y as g,l as T,m as z,r as B,h as o,c as C,z as _,b as u,D,A as c,g as v,d,B as w,E as H}from"../chunks/index.90d50ca5.js";import{C as J}from"../chunks/CodeGroup.56f46765.js";import{P as I}from"../chunks/Prism.a7e47b46.js";const O=`import { sveltekit } from "@sveltejs/kit/vite"; +import { t18s } from "t18s"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [ + sveltekit(), + t18s({ + locales: ["en", "de"], + fallbackLocale: "en", + }), + ], +}); +`;function Q(p){let t,$;return t=new I({props:{code:"npm install --save-dev t18s",language:"bash"}}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,f){c(t,e,f),$=!0},p:H,i(e){$||(v(t.$$.fragment,e),$=!0)},o(e){d(t.$$.fragment,e),$=!1},d(e){w(t,e)}}}function R(p){let t,$;return t=new I({props:{code:"yarn add --dev t18s",language:"bash"}}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,f){c(t,e,f),$=!0},p:H,i(e){$||(v(t.$$.fragment,e),$=!0)},o(e){d(t.$$.fragment,e),$=!1},d(e){w(t,e)}}}function U(p){let t,$;return t=new I({props:{code:"pnpm add --save-dev t18s",language:"bash"}}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,f){c(t,e,f),$=!0},p:H,i(e){$||(v(t.$$.fragment,e),$=!0)},o(e){d(t.$$.fragment,e),$=!1},d(e){w(t,e)}}}function W(p){let t,$,e,f,s,i,l,y;return t=new p[0]({props:{title:"Installation"}}),e=new p[1]({props:{name:"npm",$$slots:{default:[Q]},$$scope:{ctx:p}}}),s=new p[1]({props:{name:"yarn",$$slots:{default:[R]},$$scope:{ctx:p}}}),l=new p[1]({props:{name:"pnpm",$$slots:{default:[U]},$$scope:{ctx:p}}}),{c(){g(t.$$.fragment),$=S(),g(e.$$.fragment),f=S(),g(s.$$.fragment),i=S(),g(l.$$.fragment)},l(r){_(t.$$.fragment,r),$=C(r),_(e.$$.fragment,r),f=C(r),_(s.$$.fragment,r),i=C(r),_(l.$$.fragment,r)},m(r,m){c(t,r,m),u(r,$,m),c(e,r,m),u(r,f,m),c(s,r,m),u(r,i,m),c(l,r,m),y=!0},p(r,m){const P={};m&4&&(P.$$scope={dirty:m,ctx:r}),e.$set(P);const b={};m&4&&(b.$$scope={dirty:m,ctx:r}),s.$set(b);const j={};m&4&&(j.$$scope={dirty:m,ctx:r}),l.$set(j)},i(r){y||(v(t.$$.fragment,r),v(e.$$.fragment,r),v(s.$$.fragment,r),v(l.$$.fragment,r),y=!0)},o(r){d(t.$$.fragment,r),d(e.$$.fragment,r),d(s.$$.fragment,r),d(l.$$.fragment,r),y=!1},d(r){w(t,r),r&&o($),w(e,r),r&&o(f),w(s,r),r&&o(i),w(l,r)}}}function X(p){let t,$;return t=new I({props:{code:O,language:"javascript"}}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,f){c(t,e,f),$=!0},p:H,i(e){$||(v(t.$$.fragment,e),$=!0)},o(e){d(t.$$.fragment,e),$=!1},d(e){w(t,e)}}}function Y(p){let t,$,e,f;return t=new p[0]({props:{title:"vite.config.js"}}),e=new p[1]({props:{$$slots:{default:[X]},$$scope:{ctx:p}}}),{c(){g(t.$$.fragment),$=S(),g(e.$$.fragment)},l(s){_(t.$$.fragment,s),$=C(s),_(e.$$.fragment,s)},m(s,i){c(t,s,i),u(s,$,i),c(e,s,i),f=!0},p(s,i){const l={};i&4&&(l.$$scope={dirty:i,ctx:s}),e.$set(l)},i(s){f||(v(t.$$.fragment,s),v(e.$$.fragment,s),f=!0)},o(s){d(t.$$.fragment,s),d(e.$$.fragment,s),f=!1},d(s){w(t,s),s&&o($),w(e,s)}}}function Z(p){let t,$,e,f,s,i,l,y,r,m,P,b,j,k,L,G;return l=new J({props:{$$slots:{default:[W,({Header:n,Tab:a})=>({0:n,1:a}),({Header:n,Tab:a})=>(n?1:0)|(a?2:0)]},$$scope:{ctx:p}}}),b=new J({props:{$$slots:{default:[Y,({Header:n,Tab:a})=>({0:n,1:a}),({Header:n,Tab:a})=>(n?1:0)|(a?2:0)]},$$scope:{ctx:p}}}),{c(){t=q("h1"),$=F("Getting Started"),e=S(),f=q("p"),s=F("First you need to install t18s as a dev dependency."),i=S(),g(l.$$.fragment),y=S(),r=q("p"),m=F(`T18S isn't just a library, it's a vite-plugin, so you will need to register it + in your vite config.`),P=S(),g(b.$$.fragment),j=S(),k=q("p"),L=F("Aaaand we're off.")},l(n){t=T(n,"H1",{});var a=z(t);$=B(a,"Getting Started"),a.forEach(o),e=C(n),f=T(n,"P",{});var E=z(f);s=B(E,"First you need to install t18s as a dev dependency."),E.forEach(o),i=C(n),_(l.$$.fragment,n),y=C(n),r=T(n,"P",{});var A=z(r);m=B(A,`T18S isn't just a library, it's a vite-plugin, so you will need to register it + in your vite config.`),A.forEach(o),P=C(n),_(b.$$.fragment,n),j=C(n),k=T(n,"P",{});var V=z(k);L=B(V,"Aaaand we're off."),V.forEach(o)},m(n,a){u(n,t,a),D(t,$),u(n,e,a),u(n,f,a),D(f,s),u(n,i,a),c(l,n,a),u(n,y,a),u(n,r,a),D(r,m),u(n,P,a),c(b,n,a),u(n,j,a),u(n,k,a),D(k,L),G=!0},p(n,[a]){const E={};a&4&&(E.$$scope={dirty:a,ctx:n}),l.$set(E);const A={};a&4&&(A.$$scope={dirty:a,ctx:n}),b.$set(A)},i(n){G||(v(l.$$.fragment,n),v(b.$$.fragment,n),G=!0)},o(n){d(l.$$.fragment,n),d(b.$$.fragment,n),G=!1},d(n){n&&o(t),n&&o(e),n&&o(f),n&&o(i),w(l,n),n&&o(y),n&&o(r),n&&o(P),w(b,n),n&&o(j),n&&o(k)}}}class te extends K{constructor(t){super(),M(this,t,null,Z,N,{})}}export{te as component}; diff --git a/_app/immutable/nodes/7.523ef0f1.js b/_app/immutable/nodes/7.523ef0f1.js new file mode 100644 index 0000000..da4f654 --- /dev/null +++ b/_app/immutable/nodes/7.523ef0f1.js @@ -0,0 +1,25 @@ +import{S as de,i as me,s as ve,k as r,q as l,a as h,l as a,m as f,r as n,h as t,c as p,n as v,T as be,b as i,D as s,E as ee}from"../chunks/index.90d50ca5.js";const ce=""+new URL("../assets/better-i18n-demo.9d09ebe6.gif",import.meta.url).href;function ye(we){let w,C,I,b,G,k,c,L,P,y,M,W,_,j,R,x,J,z,T,N,F,E,Q,B,H,V,D,d,X,m,Y,Z,U,u,te,K,S,$,O,q,g;return{c(){w=r("h1"),C=l("Roadmap"),I=h(),b=r("p"),G=l(`T18S is not done. There is still a lot we want to add. Here are some of our + ideas for the future in no particular order.`),k=h(),c=r("h2"),L=l("Robustness"),P=h(),y=r("p"),M=l(`T18S is still relatively new, and hasn't handled all the edge cases yet. This causes occasional + problems with the dev-server, reloading translations and other inconveniences. We want to make sure + that t18s is as robust as possible and can deliver the best experience possible.`),W=h(),_=r("h2"),j=l("Support more File Formats"),R=h(),x=r("p"),J=l(`There exists a wide range of file formats for translations. We want to support as many of them as possible + in order to allow developers and translators to use the tools they are most comfortable with.`),z=h(),T=r("h2"),N=l("Built in Internationalized Routing"),F=h(),E=r("p"),Q=l(`SvelteKit currently doesn't offer a built in way to internationalize routes. It's left + to the developer to implement this. We want to provide a standard and straight forward + way to do this. Due to the complexity of the problem there are still a lot of open questions here, + and there is a lot of experimenting left to be done.`),B=h(),H=r("h2"),V=l("Interactive Translation"),D=h(),d=r("p"),X=l(`There are a few proof-of-concept tools & sites out there that push the + boundary of how we interact with the things we build. One of those is + `),m=r("a"),Y=l("better-i18n-for-svelte"),Z=l(`. It's a proof of concept for editing translations in your dev-browser + directly, instead of files.`),U=h(),u=r("img"),K=h(),S=r("p"),$=l(`We want to experiment with implementing features like this in t18s. There are a lot of open questions + with this though. How do we determine which text came from a translation? How do we handle variable interpolation + in the editor, how do we add new translations?`),O=h(),q=r("p"),g=l("Until we have answers to these questions, this will remain relatively low priority."),this.h()},l(e){w=a(e,"H1",{});var o=f(w);C=n(o,"Roadmap"),o.forEach(t),I=p(e),b=a(e,"P",{});var oe=f(b);G=n(oe,`T18S is not done. There is still a lot we want to add. Here are some of our + ideas for the future in no particular order.`),oe.forEach(t),k=p(e),c=a(e,"H2",{});var ie=f(c);L=n(ie,"Robustness"),ie.forEach(t),P=p(e),y=a(e,"P",{});var se=f(y);M=n(se,`T18S is still relatively new, and hasn't handled all the edge cases yet. This causes occasional + problems with the dev-server, reloading translations and other inconveniences. We want to make sure + that t18s is as robust as possible and can deliver the best experience possible.`),se.forEach(t),W=p(e),_=a(e,"H2",{});var re=f(_);j=n(re,"Support more File Formats"),re.forEach(t),R=p(e),x=a(e,"P",{});var le=f(x);J=n(le,`There exists a wide range of file formats for translations. We want to support as many of them as possible + in order to allow developers and translators to use the tools they are most comfortable with.`),le.forEach(t),z=p(e),T=a(e,"H2",{});var ae=f(T);N=n(ae,"Built in Internationalized Routing"),ae.forEach(t),F=p(e),E=a(e,"P",{});var ne=f(E);Q=n(ne,`SvelteKit currently doesn't offer a built in way to internationalize routes. It's left + to the developer to implement this. We want to provide a standard and straight forward + way to do this. Due to the complexity of the problem there are still a lot of open questions here, + and there is a lot of experimenting left to be done.`),ne.forEach(t),B=p(e),H=a(e,"H2",{});var fe=f(H);V=n(fe,"Interactive Translation"),fe.forEach(t),D=p(e),d=a(e,"P",{});var A=f(d);X=n(A,`There are a few proof-of-concept tools & sites out there that push the + boundary of how we interact with the things we build. One of those is + `),m=a(A,"A",{href:!0,target:!0,rel:!0});var he=f(m);Y=n(he,"better-i18n-for-svelte"),he.forEach(t),Z=n(A,`. It's a proof of concept for editing translations in your dev-browser + directly, instead of files.`),A.forEach(t),U=p(e),u=a(e,"IMG",{src:!0,width:!0,height:!0,loading:!0,alt:!0}),K=p(e),S=a(e,"P",{});var pe=f(S);$=n(pe,`We want to experiment with implementing features like this in t18s. There are a lot of open questions + with this though. How do we determine which text came from a translation? How do we handle variable interpolation + in the editor, how do we add new translations?`),pe.forEach(t),O=p(e),q=a(e,"P",{});var ue=f(q);g=n(ue,"Until we have answers to these questions, this will remain relatively low priority."),ue.forEach(t),this.h()},h(){v(m,"href","https://github.com/versiobit/better-i18n-for-svelte"),v(m,"target","_blank"),v(m,"rel","noopener noreferrer"),be(u.src,te=ce)||v(u,"src",te),v(u,"width","1100"),v(u,"height","700"),v(u,"loading","lazy"),v(u,"alt","Better i18n for Svelte allowing you to click on some text and edit it directly in the browser. The changes are then saved to disk.")},m(e,o){i(e,w,o),s(w,C),i(e,I,o),i(e,b,o),s(b,G),i(e,k,o),i(e,c,o),s(c,L),i(e,P,o),i(e,y,o),s(y,M),i(e,W,o),i(e,_,o),s(_,j),i(e,R,o),i(e,x,o),s(x,J),i(e,z,o),i(e,T,o),s(T,N),i(e,F,o),i(e,E,o),s(E,Q),i(e,B,o),i(e,H,o),s(H,V),i(e,D,o),i(e,d,o),s(d,X),s(d,m),s(m,Y),s(d,Z),i(e,U,o),i(e,u,o),i(e,K,o),i(e,S,o),s(S,$),i(e,O,o),i(e,q,o),s(q,g)},p:ee,i:ee,o:ee,d(e){e&&t(w),e&&t(I),e&&t(b),e&&t(k),e&&t(c),e&&t(P),e&&t(y),e&&t(W),e&&t(_),e&&t(R),e&&t(x),e&&t(z),e&&t(T),e&&t(F),e&&t(E),e&&t(B),e&&t(H),e&&t(D),e&&t(d),e&&t(U),e&&t(u),e&&t(K),e&&t(S),e&&t(O),e&&t(q)}}}class xe extends de{constructor(w){super(),me(this,w,null,ye,ve,{})}}export{xe as component}; diff --git a/_app/immutable/nodes/7.e2796615.js b/_app/immutable/nodes/7.e2796615.js deleted file mode 100644 index 4eef6b4..0000000 --- a/_app/immutable/nodes/7.e2796615.js +++ /dev/null @@ -1,3 +0,0 @@ -import{S as D,i as H,s as P,k as d,q as u,a as E,l as c,m as _,r as h,h as o,c as O,b as l,D as T,E as x}from"../chunks/index.90d50ca5.js";function q(S){let a,p,i,s,f,n,r,m;return{c(){a=d("h1"),p=u("Roadmap"),i=E(),s=d("p"),f=u(`T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future - in no particular order.`),n=E(),r=d("p"),m=u("TODO")},l(e){a=c(e,"H1",{});var t=_(a);p=h(t,"Roadmap"),t.forEach(o),i=O(e),s=c(e,"P",{});var v=_(s);f=h(v,`T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future - in no particular order.`),v.forEach(o),n=O(e),r=c(e,"P",{});var w=_(r);m=h(w,"TODO"),w.forEach(o)},m(e,t){l(e,a,t),T(a,p),l(e,i,t),l(e,s,t),T(s,f),l(e,n,t),l(e,r,t),T(r,m)},p:x,i:x,o:x,d(e){e&&o(a),e&&o(i),e&&o(s),e&&o(n),e&&o(r)}}}class R extends D{constructor(a){super(),H(this,a,null,q,P,{})}}export{R as component}; diff --git a/_app/immutable/nodes/8.b269b298.js b/_app/immutable/nodes/8.b269b298.js new file mode 100644 index 0000000..86d6d04 --- /dev/null +++ b/_app/immutable/nodes/8.b269b298.js @@ -0,0 +1,66 @@ +import{S as Vt,i as Xt,s as Zt,k as m,q as u,a as g,y as w,l as h,m as c,r as $,h as l,c as d,z as v,b as i,D as o,A as b,g as E,d as k,B as y,E as X}from"../chunks/index.90d50ca5.js";import{C as V}from"../chunks/CodeGroup.56f46765.js";import{P as Z}from"../chunks/Prism.a7e47b46.js";import{C as en}from"../chunks/Callout.686e165a.js";const tn=` + + +`,nn=` + + + + + + +`,an=` + + + +`,ln=`export const handle = async ({ event, resolve }) => { + //Determine the locale from the URL. + //Implementing this is up to you, depending on your routing solution. + const locale = getLocale(event); + + const response = await resolve(event, { + //Replace the placeholder %lang% with the current locale. + transformPageChunk({ html }) { + html = html.replace("%lang%", locale); + return html; + }, + }); + + return response; +}; +`,rn=` \ No newline at end of file +

Comparisons to other Libraries

There are quite a few i18n libraries available for Svelte. Here is how t18s compares to the most popular ones.

\ No newline at end of file diff --git a/de.html b/de.html index 18c1d7f..9ba5b78 100644 --- a/de.html +++ b/de.html @@ -1 +1 @@ -

Installation

npm install --save-dev t18s

Highlighting

console.log('Hello World')
\ No newline at end of file +

Installation

npm install --save-dev t18s

Highlighting

console.log('Hello World')
\ No newline at end of file diff --git a/de/comparisons.html b/de/comparisons.html index 8206107..2afc5cb 100644 --- a/de/comparisons.html +++ b/de/comparisons.html @@ -1 +1 @@ -

Comparisons to other Libraries

There are quite a few i18n libraries available for Svelte. Here is how t18s compares to the most popular ones.

\ No newline at end of file +

Comparisons to other Libraries

There are quite a few i18n libraries available for Svelte. Here is how t18s compares to the most popular ones.

\ No newline at end of file diff --git a/de/getting-started.html b/de/getting-started.html index 28bd51f..60a2c5b 100644 --- a/de/getting-started.html +++ b/de/getting-started.html @@ -1,4 +1,4 @@ -

Getting Started

First you need to install t18s as a dev dependency.

npm install --save-dev t18s

T18S isn't just a library, it's a vite-plugin, so you will need to register it in your vite config.

vite.config.js

import { sveltekit } from "@sveltejs/kit/vite";
+                           

Getting Started

First you need to install t18s as a dev dependency.

Installation

npm install --save-dev t18s

T18S isn't just a library, it's a vite-plugin, so you will need to register it in your vite config.

vite.config.js

import { sveltekit } from "@sveltejs/kit/vite";
 import { t18s } from "t18s";
 import { defineConfig } from "vite";
 
@@ -11,4 +11,4 @@
     }),
   ],
 });
-

Aaaand we're off.

\ No newline at end of file +

Aaaand we're off.

\ No newline at end of file diff --git a/de/roadmap.html b/de/roadmap.html index 5f4a6e6..e5b81ba 100644 --- a/de/roadmap.html +++ b/de/roadmap.html @@ -1 +1 @@ -

Roadmap

T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future in no particular order.

TODO

\ No newline at end of file +

Roadmap

T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future in no particular order.

Robustness

T18S is still relatively new, and hasn't handled all the edge cases yet. This causes occasional problems with the dev-server, reloading translations and other inconveniences. We want to make sure that t18s is as robust as possible and can deliver the best experience possible.

Support more File Formats

There exists a wide range of file formats for translations. We want to support as many of them as possible in order to allow developers and translators to use the tools they are most comfortable with.

Built in Internationalized Routing

SvelteKit currently doesn't offer a built in way to internationalize routes. It's left to the developer to implement this. We want to provide a standard and straight forward way to do this. Due to the complexity of the problem there are still a lot of open questions here, and there is a lot of experimenting left to be done.

Interactive Translation

There are a few proof-of-concept tools & sites out there that push the boundary of how we interact with the things we build. One of those is better-i18n-for-svelte. It's a proof of concept for editing translations in your dev-browser directly, instead of files.

Better i18n for Svelte allowing you to click on some text and edit it directly in the browser. The changes are then saved to disk.

We want to experiment with implementing features like this in t18s. There are a lot of open questions with this though. How do we determine which text came from a translation? How do we handle variable interpolation in the editor, how do we add new translations?

Until we have answers to these questions, this will remain relatively low priority.

\ No newline at end of file diff --git a/de/seo.html b/de/seo.html index 3fc13d5..3a85a77 100644 --- a/de/seo.html +++ b/de/seo.html @@ -1 +1,36 @@ -

SEO

\ No newline at end of file +

SEO

There are quite a few SEO related things you need to keep in mind when developing a multi-language site. This page will give you a quick overview of the most important ones.

Alternate Links

Alternate links are a way to tell search engines that a page exists in multiple languages, and where to find them. This is done by adding a link tag to the head of your page.

You should add a link tag for each language your site is available in, including the one the page is currently in.

<head>
+    <link rel="alternate" href="/en" hreflang="en" />
+    <link rel="alternate" href="/de" hreflang="de" />
+</head>

If you have a "default lanugage" that you want to use when the user's language is not available, you should add a link tag with the hreflang attribute set to x-default. This tells search engines that this is the default language.

<head>
+    <link rel="alternate" href="/en" hreflang="en" />
+    <link rel="alternate" href="/de" hreflang="de" />
+
+    <!--Use the english site as the default-->
+    <link rel="alternate" href="/en"; hreflang="x-default" />
+</head>
+

Locale Switchers

It is recommended that you use a tags for your locale switchers. This is because search engines and the SvelteKit prerenderer will follow these links, and index the pages they lead to. They also work if JavaScript is disabled.

But, we need to make sure to tell the search engines that these links just lead to the same page in a different language, not separate pages. We do this by adding an hreflang attribute.

<a href="/de" hreflang="de">Deutsch</a>

The Lang Attribute

Browsers determine the page's language by looking at the lang attribute on the html tag. We need to make sure that this attribute is set to the correct language, both during server rendering, and when switching languages on the client.

On the Server

SvelteKit offers a relatively simple way to set the lang attribute during server rendering. We can set it in a hook.

In the app template, let's add a placeholder string in the lang attribute.

src/app.html

<!DOCTYPE html>
+<html lang="%lang%">
+	<!-- ... -->
+</html>
+

Then in the server handle hook, we can replace it with the correct language.

src/hooks.server.js

export const handle = async ({ event, resolve }) => {
+  //Determine the locale from the URL.
+  //Implementing this is up to you, depending on your routing solution.
+  const locale = getLocale(event);
+
+  const response = await resolve(event, {
+    //Replace the placeholder %lang% with the current locale.
+    transformPageChunk({ html }) {
+      html = html.replace("%lang%", locale);
+      return html;
+    },
+  });
+
+  return response;
+};
+

On the client

T18S does not do a full page reload when switching languages, so we need to make sure that the lang attribute gets set correctly when switching languages on the client.

In the root layout. Check that we are in the browser, and then reactively set the lang attribute base on the $locale store exported by T18S.

src/routes/+layout.svelte

<script>
+    import { locale } from "$t18s";
+    import { browser } from "$app/environment";
+    $: if(browser) document.documentElement.lang = $locale;
+</script>
+  
+<slot /> 

This may become built in behavior in the future, depending on feedback. Old code probably won't break, so you can add this now without worrying about it.

\ No newline at end of file diff --git a/de/syntax.html b/de/syntax.html index e00d596..c23d0ee 100644 --- a/de/syntax.html +++ b/de/syntax.html @@ -1 +1,3 @@ -

Syntax

T18s uses the ICU MessageFormat Syntax for messages, the de-facto standard in the JavaScript ecosystem. Let's learn how to use it.

Interpolating Values

You can interpolate strings into your messages using curly braces. The value inside the braces will be replaced with the value of the variable with the same name.
Hello {fullName}, how are you?
You can specify that a value is a number by adding a type-annotation in the curly braces.
There are {count, number} people here
The same thing works for dates.
Today is {date, date}
You can format the value by adding a third, format options in the curly braces. You can for example specify how long the date should be.
Today is {data, date, short}
These formatting options are locale aware and will do the right thing for the locale you are using. It uses the Intl API under the hood. Generally the format for interpolating values is always this.
  1. Variable name
  2. Type
  3. Options

Plurals

Select

Select allows you to use one of multiple values based on a key. This is useful for things like grammatical gender.

You use it by using the select type, and then listing out each option with a key and a value in curly braces.

Hello {gender, select, male {Mr.} female {Mrs.}} {name}

The special key other is used as a fallback if no other key matches.

Hello {gender, select, male {Mr.} female {Mrs.} other {Mx.}} {name}

Some i18n libraries require you to define a fallback case for all selects. T18s does not, instead relying on typesafety to ensure all values match a key.

Inline HTML

You cannot use any additional values inside tags.

\ No newline at end of file +

Syntax

T18s uses the ICU MessageFormat Syntax for messages, the de-facto standard in the JavaScript ecosystem. Let's learn how to use it.

Interpolating Values

You can interpolate strings into your messages using curly braces. The value inside the braces will be replaced with the value of the variable with the same name.
Hello {fullName}, how are you?

You can specify that a value is not a string by adding a type-annotation in the curly braces. The known types are number, date, and time.

There are {count, number} people here
+Today is {date, date}
+Sarah shows up at {time, time}
You can format the value by adding a third, format options in the curly braces. You can for example specify how long the date should be.
Today is {data, date, short}
These formatting options are locale aware and will do the right thing for the locale you are using. It uses the Intl API under the hood. Generally the format for interpolating values is always this.
  1. Variable name
  2. Type
  3. Options

Plurals

Select

Select allows you to use one of multiple values based on a key. This is useful for things like grammatical gender.

You use it by using the select type, and then listing out each option with a key and a value in curly braces.

Hello {gender, select, male {Mr.} female {Mrs.}} {name}

The special key other is used as a fallback if no other key matches.

Hello {gender, select, male {Mr.} female {Mrs.} other {Mx.}} {name}

Some i18n libraries require you to define a fallback case for all selects. T18s does not, instead relying on typesafety to ensure all values match a key.

Inline HTML

You cannot use any additional values inside tags.

\ No newline at end of file diff --git a/getting-started.html b/getting-started.html index f37895f..55f8773 100644 --- a/getting-started.html +++ b/getting-started.html @@ -1,4 +1,4 @@ -

Getting Started

First you need to install t18s as a dev dependency.

npm install --save-dev t18s

T18S isn't just a library, it's a vite-plugin, so you will need to register it in your vite config.

vite.config.js

import { sveltekit } from "@sveltejs/kit/vite";
+                           

Getting Started

First you need to install t18s as a dev dependency.

Installation

npm install --save-dev t18s

T18S isn't just a library, it's a vite-plugin, so you will need to register it in your vite config.

vite.config.js

import { sveltekit } from "@sveltejs/kit/vite";
 import { t18s } from "t18s";
 import { defineConfig } from "vite";
 
@@ -11,4 +11,4 @@
     }),
   ],
 });
-

Aaaand we're off.

\ No newline at end of file +

Aaaand we're off.

\ No newline at end of file diff --git a/index.html b/index.html index 3468d5a..86578c3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -

Installation

npm install --save-dev t18s

Highlighting

console.log('Hello World')
\ No newline at end of file +

Installation

npm install --save-dev t18s

Highlighting

console.log('Hello World')
\ No newline at end of file diff --git a/roadmap.html b/roadmap.html index eb98860..0a8e933 100644 --- a/roadmap.html +++ b/roadmap.html @@ -1 +1 @@ -

Roadmap

T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future in no particular order.

TODO

\ No newline at end of file +

Roadmap

T18S is not done. There is still a lot we want to add. Here are some of our ideas for the future in no particular order.

Robustness

T18S is still relatively new, and hasn't handled all the edge cases yet. This causes occasional problems with the dev-server, reloading translations and other inconveniences. We want to make sure that t18s is as robust as possible and can deliver the best experience possible.

Support more File Formats

There exists a wide range of file formats for translations. We want to support as many of them as possible in order to allow developers and translators to use the tools they are most comfortable with.

Built in Internationalized Routing

SvelteKit currently doesn't offer a built in way to internationalize routes. It's left to the developer to implement this. We want to provide a standard and straight forward way to do this. Due to the complexity of the problem there are still a lot of open questions here, and there is a lot of experimenting left to be done.

Interactive Translation

There are a few proof-of-concept tools & sites out there that push the boundary of how we interact with the things we build. One of those is better-i18n-for-svelte. It's a proof of concept for editing translations in your dev-browser directly, instead of files.

Better i18n for Svelte allowing you to click on some text and edit it directly in the browser. The changes are then saved to disk.

We want to experiment with implementing features like this in t18s. There are a lot of open questions with this though. How do we determine which text came from a translation? How do we handle variable interpolation in the editor, how do we add new translations?

Until we have answers to these questions, this will remain relatively low priority.

\ No newline at end of file diff --git a/seo.html b/seo.html index b4dbe36..0f8a34c 100644 --- a/seo.html +++ b/seo.html @@ -1 +1,36 @@ -

SEO

\ No newline at end of file +

SEO

There are quite a few SEO related things you need to keep in mind when developing a multi-language site. This page will give you a quick overview of the most important ones.

Alternate Links

Alternate links are a way to tell search engines that a page exists in multiple languages, and where to find them. This is done by adding a link tag to the head of your page.

You should add a link tag for each language your site is available in, including the one the page is currently in.

<head>
+    <link rel="alternate" href="/en" hreflang="en" />
+    <link rel="alternate" href="/de" hreflang="de" />
+</head>

If you have a "default lanugage" that you want to use when the user's language is not available, you should add a link tag with the hreflang attribute set to x-default. This tells search engines that this is the default language.

<head>
+    <link rel="alternate" href="/en" hreflang="en" />
+    <link rel="alternate" href="/de" hreflang="de" />
+
+    <!--Use the english site as the default-->
+    <link rel="alternate" href="/en"; hreflang="x-default" />
+</head>
+

Locale Switchers

It is recommended that you use a tags for your locale switchers. This is because search engines and the SvelteKit prerenderer will follow these links, and index the pages they lead to. They also work if JavaScript is disabled.

But, we need to make sure to tell the search engines that these links just lead to the same page in a different language, not separate pages. We do this by adding an hreflang attribute.

<a href="/de" hreflang="de">Deutsch</a>

The Lang Attribute

Browsers determine the page's language by looking at the lang attribute on the html tag. We need to make sure that this attribute is set to the correct language, both during server rendering, and when switching languages on the client.

On the Server

SvelteKit offers a relatively simple way to set the lang attribute during server rendering. We can set it in a hook.

In the app template, let's add a placeholder string in the lang attribute.

src/app.html

<!DOCTYPE html>
+<html lang="%lang%">
+	<!-- ... -->
+</html>
+

Then in the server handle hook, we can replace it with the correct language.

src/hooks.server.js

export const handle = async ({ event, resolve }) => {
+  //Determine the locale from the URL.
+  //Implementing this is up to you, depending on your routing solution.
+  const locale = getLocale(event);
+
+  const response = await resolve(event, {
+    //Replace the placeholder %lang% with the current locale.
+    transformPageChunk({ html }) {
+      html = html.replace("%lang%", locale);
+      return html;
+    },
+  });
+
+  return response;
+};
+

On the client

T18S does not do a full page reload when switching languages, so we need to make sure that the lang attribute gets set correctly when switching languages on the client.

In the root layout. Check that we are in the browser, and then reactively set the lang attribute base on the $locale store exported by T18S.

src/routes/+layout.svelte

<script>
+    import { locale } from "$t18s";
+    import { browser } from "$app/environment";
+    $: if(browser) document.documentElement.lang = $locale;
+</script>
+  
+<slot /> 

This may become built in behavior in the future, depending on feedback. Old code probably won't break, so you can add this now without worrying about it.

\ No newline at end of file diff --git a/syntax.html b/syntax.html index 9032ef5..2290528 100644 --- a/syntax.html +++ b/syntax.html @@ -1 +1,3 @@ -

Syntax

T18s uses the ICU MessageFormat Syntax for messages, the de-facto standard in the JavaScript ecosystem. Let's learn how to use it.

Interpolating Values

You can interpolate strings into your messages using curly braces. The value inside the braces will be replaced with the value of the variable with the same name.
Hello {fullName}, how are you?
You can specify that a value is a number by adding a type-annotation in the curly braces.
There are {count, number} people here
The same thing works for dates.
Today is {date, date}
You can format the value by adding a third, format options in the curly braces. You can for example specify how long the date should be.
Today is {data, date, short}
These formatting options are locale aware and will do the right thing for the locale you are using. It uses the Intl API under the hood. Generally the format for interpolating values is always this.
  1. Variable name
  2. Type
  3. Options

Plurals

Select

Select allows you to use one of multiple values based on a key. This is useful for things like grammatical gender.

You use it by using the select type, and then listing out each option with a key and a value in curly braces.

Hello {gender, select, male {Mr.} female {Mrs.}} {name}

The special key other is used as a fallback if no other key matches.

Hello {gender, select, male {Mr.} female {Mrs.} other {Mx.}} {name}

Some i18n libraries require you to define a fallback case for all selects. T18s does not, instead relying on typesafety to ensure all values match a key.

Inline HTML

You cannot use any additional values inside tags.

\ No newline at end of file +

Syntax

T18s uses the ICU MessageFormat Syntax for messages, the de-facto standard in the JavaScript ecosystem. Let's learn how to use it.

Interpolating Values

You can interpolate strings into your messages using curly braces. The value inside the braces will be replaced with the value of the variable with the same name.
Hello {fullName}, how are you?

You can specify that a value is not a string by adding a type-annotation in the curly braces. The known types are number, date, and time.

There are {count, number} people here
+Today is {date, date}
+Sarah shows up at {time, time}
You can format the value by adding a third, format options in the curly braces. You can for example specify how long the date should be.
Today is {data, date, short}
These formatting options are locale aware and will do the right thing for the locale you are using. It uses the Intl API under the hood. Generally the format for interpolating values is always this.
  1. Variable name
  2. Type
  3. Options

Plurals

Select

Select allows you to use one of multiple values based on a key. This is useful for things like grammatical gender.

You use it by using the select type, and then listing out each option with a key and a value in curly braces.

Hello {gender, select, male {Mr.} female {Mrs.}} {name}

The special key other is used as a fallback if no other key matches.

Hello {gender, select, male {Mr.} female {Mrs.} other {Mx.}} {name}

Some i18n libraries require you to define a fallback case for all selects. T18s does not, instead relying on typesafety to ensure all values match a key.

Inline HTML

You cannot use any additional values inside tags.

\ No newline at end of file