isorite 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/main.js +305 -14
  2. package/docs/setup.md +5 -4
  3. package/docs/terminal.md +1 -1
  4. package/guide/your-own-base/starting-a-base.md +4 -4
  5. package/package.json +1 -1
  6. package/web/_app/immutable/assets/{0.BEjn1Bfl.css → 0.BPP604gH.css} +1 -1
  7. package/web/_app/immutable/chunks/{D9JwUycj.js → BGW1TKtR.js} +1 -1
  8. package/web/_app/immutable/chunks/{BCyLp7pS.js → BPrp4s2r.js} +1 -1
  9. package/web/_app/immutable/chunks/{C8nK3Jvr.js → CIYFNih-.js} +1 -1
  10. package/web/_app/immutable/chunks/{O98JkczU.js → CPSlCQsu.js} +2 -2
  11. package/web/_app/immutable/chunks/{Bt-fHApV.js → DBLoWLMb.js} +1 -1
  12. package/web/_app/immutable/chunks/{BOxykeIc.js → DFKYo3Wx.js} +1 -1
  13. package/web/_app/immutable/chunks/{Cd_SqIWq.js → DxVFSMVD.js} +3 -3
  14. package/web/_app/immutable/chunks/{3fCuxe18.js → DymLl-qY.js} +1 -1
  15. package/web/_app/immutable/chunks/{s_hW4oA1.js → Dzi94aDH.js} +1 -1
  16. package/web/_app/immutable/chunks/{B6uHgLdT.js → NyWzYSz1.js} +1 -1
  17. package/web/_app/immutable/chunks/X3aTZRe_.js +1 -0
  18. package/web/_app/immutable/entry/{app.DM_AWBgH.js → app.BzA5QYtw.js} +2 -2
  19. package/web/_app/immutable/entry/start.BOh0Gj31.js +1 -0
  20. package/web/_app/immutable/nodes/{0.xSbkmYPn.js → 0.BmaxMLzC.js} +2 -2
  21. package/web/_app/immutable/nodes/{1.BD2wJdoH.js → 1.IQDu8pD1.js} +1 -1
  22. package/web/_app/immutable/nodes/2.D2Oi-ADx.js +1 -0
  23. package/web/_app/immutable/nodes/{3.e_5kWaf_.js → 3.CF1W85jb.js} +1 -1
  24. package/web/_app/immutable/nodes/{4.BEMEU6Jz.js → 4.BMYBn904.js} +1 -1
  25. package/web/_app/immutable/nodes/5.1vm6WZdM.js +1 -0
  26. package/web/_app/version.json +1 -1
  27. package/web/index.html +13 -13
  28. package/web/_app/immutable/chunks/WLe0MT1c.js +0 -1
  29. package/web/_app/immutable/entry/start.BLhIKDcR.js +0 -1
  30. package/web/_app/immutable/nodes/2.shPqwtS_.js +0 -1
  31. package/web/_app/immutable/nodes/5.DxaO-e4O.js +0 -1
@@ -1 +1 @@
1
- import{A as e,M as t,O as n,Q as r,W as i,X as a,Z as o,ot as s,st as c}from"../chunks/e2LGvGEb.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/s_hW4oA1.js";var u=t(`<h1> </h1> <p> </p>`,1);function d(t,d){c(d,!0);var f=u(),p=a(f),m=o(p,!0),h=r(p,2),g=o(h,!0);i(()=>{n(m,l.status),n(g,l.error?.message)}),e(t,f),s()}export{d as component};
1
+ import{A as e,M as t,O as n,Q as r,W as i,X as a,Z as o,ot as s,st as c}from"../chunks/e2LGvGEb.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/Dzi94aDH.js";var u=t(`<h1> </h1> <p> </p>`,1);function d(t,d){c(d,!0);var f=u(),p=a(f),m=o(p,!0),h=r(p,2),g=o(h,!0);i(()=>{n(m,l.status),n(g,l.error?.message)}),e(t,f),s()}export{d as component};
@@ -0,0 +1 @@
1
+ import{n as e,ot as t,s as n,st as r}from"../chunks/e2LGvGEb.js";import{s as i,t as a}from"../chunks/X3aTZRe_.js";import"../chunks/xihTtKlq.js";import{a as o,i as s,s as c}from"../chunks/CPSlCQsu.js";import"../chunks/ej_0XxR7.js";function l(l,u){r(u,!1),e(()=>{let e=o.listing.notes.some(e=>e.id===s.last)?s.last:``;a(e?c(e):i(`/notes`),{replaceState:!0})}),n(),t()}export{l as component};
@@ -1 +1 @@
1
- import{n as e,ot as t,s as n,st as r}from"../chunks/e2LGvGEb.js";import{s as i,t as a}from"../chunks/WLe0MT1c.js";import"../chunks/xihTtKlq.js";import{a as o,i as s,s as c}from"../chunks/O98JkczU.js";import{t as l}from"../chunks/s_hW4oA1.js";import"../chunks/ej_0XxR7.js";function u(u,d){r(d,!1),e(()=>{let e=o.listing.notes.some(e=>e.id===s.last)?s.last:``,t=new URLSearchParams(l.url.search);t.delete(`base`);let n=t.size?`?${t}`:``;a((e?c(e):i(`/notes`))+n,{replaceState:!0}).then(()=>s.to(`atlas`))}),n(),t()}export{u as component};
1
+ import{n as e,ot as t,s as n,st as r}from"../chunks/e2LGvGEb.js";import{s as i,t as a}from"../chunks/X3aTZRe_.js";import"../chunks/xihTtKlq.js";import{a as o,i as s,s as c}from"../chunks/CPSlCQsu.js";import{t as l}from"../chunks/Dzi94aDH.js";import"../chunks/ej_0XxR7.js";function u(u,d){r(d,!1),e(()=>{let e=o.listing.notes.some(e=>e.id===s.last)?s.last:``,t=new URLSearchParams(l.url.search);t.delete(`base`);let n=t.size?`?${t}`:``;a((e?c(e):i(`/notes`))+n,{replaceState:!0}).then(()=>s.to(`atlas`))}),n(),t()}export{u as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,J as l,L as u,M as d,N as f,O as p,Q as m,S as h,T as g,V as _,W as v,X as y,Y as b,Z as x,a as S,c as C,d as w,dt as T,et as E,f as D,ft as O,g as k,h as A,i as j,it as ee,j as M,k as N,l as P,n as te,nt as F,ot as I,pt as L,st as R,tt as z,u as ne,ut as re,v as ie,w as B,z as V}from"../chunks/e2LGvGEb.js";import{o as ae,s as oe,t as se}from"../chunks/WLe0MT1c.js";import"../chunks/xihTtKlq.js";import{A as H,D as ce,E as le,F as ue,M as de,N as fe,S as pe,T as me,_ as he,a as U,b as ge,c as _e,f as ve,g as ye,h as be,i as W,j as xe,k as Se,l as Ce,m as we,o as Te,s as Ee,v as De,w as Oe,x as ke,y as Ae}from"../chunks/O98JkczU.js";import{C as je,D as Me,E as Ne,T as Pe,_ as Fe,a as Ie,b as Le,c as Re,d as ze,f as Be,g as Ve,h as He,i as Ue,n as We,o as Ge,p as Ke,r as qe,s as Je,t as Ye,u as Xe,v as Ze,w as Qe,x as $e,y as et}from"../chunks/Cd_SqIWq.js";import{t as tt}from"../chunks/s_hW4oA1.js";import{B as nt,D as G,E as rt,F as K,G as it,H as at,I as ot,J as q,K as st,L as ct,M as J,N as Y,P as lt,R as ut,S as dt,W as ft,X as pt,Y as mt,at as ht,ct as gt,et as _t,it as vt,lt as yt,mt as bt,n as xt,nt as St,rt as Ct,t as wt,ut as Tt,v as Et,w as Dt,x as Ot,y as kt}from"../chunks/BxTFtVqu.js";import{i as At,l as jt,n as Mt,o as Nt,r as Pt}from"../chunks/yxd8jSz3.js";import{t as Ft}from"../chunks/BCyLp7pS.js";var It=[`kit.js`,`chart.js`,`model.js`,`math.js`,`math.css`,`isorite.css`,`plain.css`,`kit.css`],Lt=e=>e.replace(/&quot;/g,`"`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&amp;/g,`&`);function Rt(e,t){for(let n of e.matchAll(/<meta\b[^>]*>/gi)){let e=n[0];if((e.match(/\bname\s*=\s*["']([^"']*)["']/i)?.[1])?.toLowerCase()===t)return Lt(e.match(/\bcontent\s*=\s*"([^"]*)"|\bcontent\s*=\s*'([^']*)'/i)?.slice(1).find(e=>e!==void 0)??``)}return null}function zt(e){return{title:Lt(e.match(/<title[^>]*>([\s\S]*?)<\/title>/i)?.[1]?.trim()??``),description:Rt(e,`description`)??``,author:Rt(e,`author`)??``,date:Rt(e,`date`)??``,kit:Rt(e,`isorite:kit`),uses:(Rt(e,`isorite:uses`)??``).split(/[\s,]+/).filter(Boolean)}}function Bt(e){let t=[];/<iso-chart[\s>]|\bPlot\.\w/.test(e)&&t.push(`chart`),/<iso-model[\s>]|<iso-chart3d[\s>]|\bTHREE\.\w/.test(e)&&t.push(`model`);let n=e.replace(/<script\b[\s\S]*?<\/script>/gi,``).replace(/<style\b[\s\S]*?<\/style>/gi,``);return(/<iso-math[\s>]|\biso\.math\(|\$\$[\s\S]+?\$\$|\\\(|\$(?=\S)[^$\n]+?(?<=\S)\$(?!\d)/.test(n)||/\biso\.math\(/.test(e))&&t.push(`math`),t}var Vt=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'">`,Ht=e=>e.replace(/<\/(script|style)/gi,`<\\/$1`),Ut=e=>e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`);function Wt(e,t,n={}){let r=n.look??`isorite`,i=n.ground??`lapis`,a=e.replace(/<link\b[^>]*\bhref\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*/gi,``).replace(/<script\b[^>]*\bsrc\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*<\/script>\s*/gi,``),o=Object.entries(n.data??{}).map(([e,t])=>typeof t==`string`?`<script type="text/plain" data-path="${Ut(e)}">${Ht(t)}<\/script>`:`<script type="application/octet-stream" data-encoding="base64" data-path="${Ut(e)}">${Gt(t)}<\/script>`),s=Bt(a).map(e=>`${e===`math`?`<style>\n${Ht(t[`math.css`])}\n</style>\n`:``}<script>\n${Ht(t[`${e}.js`])}\n<\/script>`),c=[Vt,`<style data-look="isorite">\n${Ht(t[`isorite.css`])}\n</style>`,`<style data-look="plain">\n${Ht(t[`plain.css`])}\n</style>`,`<style>\n${Ht(t[`kit.css`])}\n</style>`,...o,`<script>\n${Ht(t[`kit.js`])}\n<\/script>`,...s].join(`
1
+ import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,J as l,L as u,M as d,N as f,O as p,Q as m,S as h,T as g,V as _,W as v,X as y,Y as b,Z as x,a as S,c as C,d as w,dt as T,et as E,f as D,ft as O,g as k,h as A,i as j,it as ee,j as M,k as N,l as P,n as te,nt as F,ot as I,pt as L,st as R,tt as z,u as ne,ut as re,v as ie,w as B,z as V}from"../chunks/e2LGvGEb.js";import{o as ae,s as oe,t as se}from"../chunks/X3aTZRe_.js";import"../chunks/xihTtKlq.js";import{A as H,D as ce,E as le,F as ue,M as de,N as fe,S as pe,T as me,_ as he,a as U,b as ge,c as _e,f as ve,g as ye,h as be,i as W,j as xe,k as Se,l as Ce,m as we,o as Te,s as Ee,v as De,w as Oe,x as ke,y as Ae}from"../chunks/CPSlCQsu.js";import{C as je,D as Me,E as Ne,T as Pe,_ as Fe,a as Ie,b as Le,c as Re,d as ze,f as Be,g as Ve,h as He,i as Ue,n as We,o as Ge,p as Ke,r as qe,s as Je,t as Ye,u as Xe,v as Ze,w as Qe,x as $e,y as et}from"../chunks/DxVFSMVD.js";import{t as tt}from"../chunks/Dzi94aDH.js";import{B as nt,D as G,E as rt,F as K,G as it,H as at,I as ot,J as q,K as st,L as ct,M as J,N as Y,P as lt,R as ut,S as dt,W as ft,X as pt,Y as mt,at as ht,ct as gt,et as _t,it as vt,lt as yt,mt as bt,n as xt,nt as St,rt as Ct,t as wt,ut as Tt,v as Et,w as Dt,x as Ot,y as kt}from"../chunks/BxTFtVqu.js";import{i as At,l as jt,n as Mt,o as Nt,r as Pt}from"../chunks/yxd8jSz3.js";import{t as Ft}from"../chunks/BPrp4s2r.js";var It=[`kit.js`,`chart.js`,`model.js`,`math.js`,`math.css`,`isorite.css`,`plain.css`,`kit.css`],Lt=e=>e.replace(/&quot;/g,`"`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&amp;/g,`&`);function Rt(e,t){for(let n of e.matchAll(/<meta\b[^>]*>/gi)){let e=n[0];if((e.match(/\bname\s*=\s*["']([^"']*)["']/i)?.[1])?.toLowerCase()===t)return Lt(e.match(/\bcontent\s*=\s*"([^"]*)"|\bcontent\s*=\s*'([^']*)'/i)?.slice(1).find(e=>e!==void 0)??``)}return null}function zt(e){return{title:Lt(e.match(/<title[^>]*>([\s\S]*?)<\/title>/i)?.[1]?.trim()??``),description:Rt(e,`description`)??``,author:Rt(e,`author`)??``,date:Rt(e,`date`)??``,kit:Rt(e,`isorite:kit`),uses:(Rt(e,`isorite:uses`)??``).split(/[\s,]+/).filter(Boolean)}}function Bt(e){let t=[];/<iso-chart[\s>]|\bPlot\.\w/.test(e)&&t.push(`chart`),/<iso-model[\s>]|<iso-chart3d[\s>]|\bTHREE\.\w/.test(e)&&t.push(`model`);let n=e.replace(/<script\b[\s\S]*?<\/script>/gi,``).replace(/<style\b[\s\S]*?<\/style>/gi,``);return(/<iso-math[\s>]|\biso\.math\(|\$\$[\s\S]+?\$\$|\\\(|\$(?=\S)[^$\n]+?(?<=\S)\$(?!\d)/.test(n)||/\biso\.math\(/.test(e))&&t.push(`math`),t}var Vt=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'">`,Ht=e=>e.replace(/<\/(script|style)/gi,`<\\/$1`),Ut=e=>e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`);function Wt(e,t,n={}){let r=n.look??`isorite`,i=n.ground??`lapis`,a=e.replace(/<link\b[^>]*\bhref\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*/gi,``).replace(/<script\b[^>]*\bsrc\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*<\/script>\s*/gi,``),o=Object.entries(n.data??{}).map(([e,t])=>typeof t==`string`?`<script type="text/plain" data-path="${Ut(e)}">${Ht(t)}<\/script>`:`<script type="application/octet-stream" data-encoding="base64" data-path="${Ut(e)}">${Gt(t)}<\/script>`),s=Bt(a).map(e=>`${e===`math`?`<style>\n${Ht(t[`math.css`])}\n</style>\n`:``}<script>\n${Ht(t[`${e}.js`])}\n<\/script>`),c=[Vt,`<style data-look="isorite">\n${Ht(t[`isorite.css`])}\n</style>`,`<style data-look="plain">\n${Ht(t[`plain.css`])}\n</style>`,`<style>\n${Ht(t[`kit.css`])}\n</style>`,...o,`<script>\n${Ht(t[`kit.js`])}\n<\/script>`,...s].join(`
2
2
  `);return(/<head\b[^>]*>/i.test(a)?a.replace(/<head\b[^>]*>/i,e=>`${e}\n${c}\n`):`<!doctype html><html><head><meta charset="utf-8">\n${c}\n</head><body>${a}</body></html>`).replace(/<html\b([^>]*)>/i,(e,t)=>`<html${t.replace(/\s+data-(?:look|ground)\s*=\s*("[^"]*"|'[^']*'|\S+)/gi,``)} data-look="${r}" data-ground="${i}">`)}function Gt(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}var Kt=/^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/,qt=e=>e===``?null:Kt.test(e.trim())?+e:e;function*Jt(e,t){let n=``,r=[],i=!1;for(let a=0;a<e.length;a++){let o=e[a];i?o===`"`?e[a+1]===`"`?(n+=`"`,a++):i=!1:n+=o:o===`"`&&n===``?i=!0:o===t?(r.push(n),n=``):o===`
3
3
  `||o===`\r`?(o===`\r`&&e[a+1]===`
4
4
  `&&a++,r.push(n),n=``,(r.length>1||r[0]!==``)&&(yield r),r=[]):n+=o}r.push(n),(r.length>1||r[0]!==``)&&(yield r)}function Yt(e,t=`,`){let n=Jt(e.replace(/^/,``),t),r=n.next();if(r.done)return[];let i=r.value.map(e=>e.trim()),a=[];for(let e of n)a.push(Object.fromEntries(i.map((t,n)=>[t,qt(e[n]??``)])));return a}function Xt(e,t){let n=e.toLowerCase().split(`.`).pop();if(n===`json`){let n=JSON.parse(t);if(Array.isArray(n))return n;let r=n&&typeof n==`object`?Object.values(n).find(Array.isArray):null;if(r)return r;throw Error(`${e}: not an array of rows`)}if(n===`jsonl`||n===`ndjson`)return t.split(/\r?\n/).filter(e=>e.trim()).map(e=>JSON.parse(e));if(n===`tsv`)return Yt(t,` `);if(n===`csv`)return Yt(t,`,`);throw Error(`${e}: the kit reads CSV, TSV, JSON and JSON lines`)}function Zt(e){let t=new Set;for(let n of e.slice(0,1e3))for(let e of Object.keys(n))t.add(e);return[...t]}function Qt(e,t,n=5){return{path:e,rows:t.length,head:t.slice(0,n),columns:Zt(t).map(e=>{let n=t.map(t=>t[e]),r=n.filter(e=>e!=null&&e!==``),i=n.length-r.length;if(!r.length)return{name:e,type:`empty`,empty:i};if(r.every(e=>typeof e==`number`)){let t=1/0,n=-1/0,a=0;for(let e of r)e<t&&(t=e),e>n&&(n=e),a+=e;return{name:e,type:`number`,min:t,max:n,mean:a/r.length,empty:i}}if(r.every(e=>typeof e==`boolean`))return{name:e,type:`boolean`,empty:i};let a=[...new Set(r.map(String))];return{name:e,type:`text`,distinct:a.length,values:a.slice(0,12),empty:i}})}}function $t(e){let t=e=>String(Number.isInteger(e)?e:+e.toPrecision(4)),n=[`${e.path}: ${e.rows} rows, ${e.columns.length} columns`];for(let r of e.columns){let e=r.empty?`, ${r.empty} empty`:``;r.type===`number`?n.push(`- ${r.name}: number, ${t(r.min)} to ${t(r.max)} (mean ${t(r.mean)})${e}`):r.type===`text`?n.push(`- ${r.name}: text, ${r.distinct} distinct: ${r.values.join(`, `)}${r.distinct>r.values.length?`, …`:``}${e}`):n.push(`- ${r.name}: ${r.type}${e}`)}let r=e.columns.map(e=>e.name);return n.push(`First rows:`,r.join(`,`),...e.head.map(e=>r.map(t=>e[t]??``).join(`,`))),n.join(`
@@ -0,0 +1 @@
1
+ import"../chunks/e2LGvGEb.js";import"../chunks/xihTtKlq.js";import{t as e}from"../chunks/DFKYo3Wx.js";import"../chunks/ej_0XxR7.js";function t(t){e(t,{})}export{t as component};
@@ -1 +1 @@
1
- {"version":"1793495447495"}
1
+ {"version":"1793512241850"}
package/web/index.html CHANGED
@@ -36,41 +36,41 @@
36
36
  history.replaceState(history.state, "", location.pathname.slice(0, -1) + location.search + location.hash);
37
37
  }
38
38
  </script>
39
- <link href="/_app/immutable/entry/start.BLhIKDcR.js" rel="modulepreload">
40
- <link href="/_app/immutable/chunks/WLe0MT1c.js" rel="modulepreload">
39
+ <link href="/_app/immutable/entry/start.BOh0Gj31.js" rel="modulepreload">
40
+ <link href="/_app/immutable/chunks/X3aTZRe_.js" rel="modulepreload">
41
41
  <link href="/_app/immutable/chunks/e2LGvGEb.js" rel="modulepreload">
42
- <link href="/_app/immutable/entry/app.DM_AWBgH.js" rel="modulepreload">
42
+ <link href="/_app/immutable/entry/app.BzA5QYtw.js" rel="modulepreload">
43
43
  <link href="/_app/immutable/chunks/CRzLMJPS.js" rel="modulepreload">
44
44
  <link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
45
- <link href="/_app/immutable/nodes/0.xSbkmYPn.js" rel="modulepreload">
46
- <link href="/_app/immutable/chunks/O98JkczU.js" rel="modulepreload">
47
- <link href="/_app/immutable/chunks/Cd_SqIWq.js" rel="modulepreload">
45
+ <link href="/_app/immutable/nodes/0.BmaxMLzC.js" rel="modulepreload">
46
+ <link href="/_app/immutable/chunks/CPSlCQsu.js" rel="modulepreload">
47
+ <link href="/_app/immutable/chunks/DxVFSMVD.js" rel="modulepreload">
48
48
  <link href="/_app/immutable/chunks/BxTFtVqu.js" rel="modulepreload">
49
49
  <link href="/_app/immutable/chunks/yxd8jSz3.js" rel="modulepreload">
50
- <link href="/_app/immutable/chunks/s_hW4oA1.js" rel="modulepreload">
50
+ <link href="/_app/immutable/chunks/Dzi94aDH.js" rel="modulepreload">
51
51
  <link href="/_app/immutable/chunks/CAlIuau0.js" rel="modulepreload">
52
- <link href="/_app/immutable/chunks/BOxykeIc.js" rel="modulepreload">
53
- <link href="/_app/immutable/chunks/BCyLp7pS.js" rel="modulepreload">
52
+ <link href="/_app/immutable/chunks/DFKYo3Wx.js" rel="modulepreload">
53
+ <link href="/_app/immutable/chunks/BPrp4s2r.js" rel="modulepreload">
54
54
 
55
55
  <link href="/_app/immutable/assets/drawn.D6lJzDcc.css" rel="stylesheet">
56
56
  <link href="/_app/immutable/assets/ground.hxi5N5fC.css" rel="stylesheet">
57
57
  <link href="/_app/immutable/assets/FolderField._A4_sc1Z.css" rel="stylesheet">
58
58
  <link href="/_app/immutable/assets/NoteList.E6jC-AtZ.css" rel="stylesheet">
59
- <link href="/_app/immutable/assets/0.BEjn1Bfl.css" rel="stylesheet">
59
+ <link href="/_app/immutable/assets/0.BPP604gH.css" rel="stylesheet">
60
60
  </head>
61
61
  <body>
62
62
  <div style="display: contents">
63
63
  <script>
64
64
  {
65
- __sveltekit_1k0cxxa = {
65
+ __sveltekit_6k1bp = {
66
66
  base: new URL('.', location).pathname.slice(0, -1)
67
67
  };
68
68
 
69
69
  const element = document.currentScript.parentElement;
70
70
 
71
71
  Promise.all([
72
- import("/_app/immutable/entry/start.BLhIKDcR.js"),
73
- import("/_app/immutable/entry/app.DM_AWBgH.js")
72
+ import("/_app/immutable/entry/start.BOh0Gj31.js"),
73
+ import("/_app/immutable/entry/app.BzA5QYtw.js")
74
74
  ]).then(([kit, app]) => {
75
75
  kit.start(app, element);
76
76
  });
@@ -1 +0,0 @@
1
- import{B as e,V as t,et as n,n as r,o as i,t as a,tt as o,z as s}from"./e2LGvGEb.js";var c=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function ee(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(x(e)),te(e,t));var v=new Map;function y(e,t){let n=x(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function b(e,t,n){if(v.size>0){let t=x(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function x(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,S=/^\/\((?:[^)]+)\)$/;function re(e){let t=[];return{pattern:e===`/`||S.test(e)?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0)}else if(s.optional&&s.chained)o++;else return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var ce=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function le(e,t){let n=ae(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(ce,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var C=globalThis.__sveltekit_1k0cxxa?.base??``,pe=globalThis.__sveltekit_1k0cxxa?.assets??C??``;function me(e){return(pe||C)+e}var he=`#`;function ge(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return C+he+le(e[0],e[1])}var _e=`1793495447495`,ve=`sveltekit:snapshot`,ye=`sveltekit:scroll`,be=`sveltekit:states`,w=`sveltekit:history`,T=`sveltekit:navigation`,E={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},xe=location.origin;function Se(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function O(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Ce={...E,"":E.hover};function we(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Te(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=we(e)}}function Ee(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||je(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===xe&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function De(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,`preload-code`)),i===null&&(i=O(s,`preload-data`)),t===null&&(t=O(s,`keepfocus`)),n===null&&(n=O(s,`noscroll`)),a===null&&(a=O(s,`reload`)),o===null&&(o=O(s,`replacestate`)),s=we(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:Ce[r??`off`],preload_data:Ce[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Oe(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var ke={v:h};function Ae(){let{set:e,subscribe:t}=i(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==_e;return r&&(e(!0),ke.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function je(e,t,n){return e.origin!==xe||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Me(e){}var Ne=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ne],[...new Set([...Ne])];function Pe(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function Fe(e){return e instanceof c||e instanceof u?e.status:500}function Ie(e){return e instanceof u?e.text:`Internal Error`}var A,j,Le,Re=r.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(r.toString()),ze=`a:`;Re?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},j={current:null},Le={current:!1}):(A=new class{#e=o({});get data(){return s(this.#e)}set data(e){n(this.#e,e)}#t=o(null);get form(){return s(this.#t)}set form(e){n(this.#t,e)}#n=o(null);get error(){return s(this.#n)}set error(e){n(this.#n,e)}#r=o({});get params(){return s(this.#r)}set params(e){n(this.#r,e)}#i=o({id:null});get route(){return s(this.#i)}set route(e){n(this.#i,e)}#a=o({});get state(){return s(this.#a)}set state(e){n(this.#a,e)}#o=o(-1);get status(){return s(this.#o)}set status(e){n(this.#o,e)}#s=o(new URL(ze));get url(){return s(this.#s)}set url(e){n(this.#s,e)}},j=new class{#e=o(null);get current(){return s(this.#e)}set current(e){n(this.#e,e)}},Le=new class{#e=o(!1);get current(){return s(this.#e)}set current(e){n(this.#e,e)}},ke.v=()=>Le.current=!0);function Be(e){Object.assign(A,e)}var Ve={spanContext(){return He},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},He={traceId:``,spanId:``,traceFlags:0},{onMount:Ue,tick:We}=a,Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Oe({}),page:Oe({}),navigating:i(null),updated:Ae()};function Ke(e){N[e]=D()}function qe(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(C||`/`);e&&await e.update()}}var Ye,Xe,L,R,Ze,z,Qe={},$e={},B=[],V=[],H=null;function U(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var et=new Map,tt=new Set,nt=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},rt=!1,it=!1,at=!0,K=!1,q=!1,ot=!1,st=!1,ct,J,Y,X,lt=new Set,ut=new Map,dt=new Map;async function ft(e,t,n){if(globalThis.__sveltekit_1k0cxxa.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1k0cxxa.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ye=ue(e),R=document.documentElement,Ze=t,Xe=e.nodes[0],L=e.nodes[1],Xe(),L(),J=history.state?.[w],Y=history.state?.[T],J||(J=Y=Date.now(),history.replaceState({...history.state,[w]:J,[T]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Vt(Ze,n)):(await Z({type:`enter`,url:Se(z.hash?qt(new URL(location.href)):location.href),replace_state:!0}),i()),Bt()}function pt(){B.length=0,st=!1}function mt(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function ht(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function gt(){Ke(J),fe(ye,N),mt(Y),fe(ve,P)}async function _t(e,n,r,i){let a,o;n.invalidateAll&&U(),await Z({type:`goto`,url:Se(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){st=!0,a=new Set;for(let[e,t]of ut)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of dt)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(zt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of ut)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of dt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function vt(e){if(e.id!==H?.id){U();let t={};lt.add(t),H={id:e.id,token:t,promise:Ot({...e,preload:t}).then(e=>(lt.delete(t),e.type===`loaded`&&e.state.error&&U(),e)),fork:null}}return H.promise}async function yt(e){let t=(await Mt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function bt(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Be(e.props.page),ct=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??D()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}ht(Y),it=!0}async function xt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(C&&(e.pathname===C||e.pathname===C+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Kt(A)}};s!==void 0&&(l.props.form=s);let u={},f=!A,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==A.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:A.data}),l}async function St({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:ee(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=Ct(t,r,n);return s&&e(i.href),a},setHeaders:h,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function Ct(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:it?b(r,i.href,t):y(r,t)}}function wt(e,t,n,r,i,a){if(st)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function Tt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Et(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Dt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Kt(A),constructors:[]}}}async function Ot({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return lt.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=G.url?e!==Pt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=Et(G.url,n),ee=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!wt(ee,p,f,m,a.universal?.uses,r)?a:(ee=!0,St({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:Tt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(a&&lt.has(a))return Dt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),u;if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Je(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await kt(e,_,o);return d?xt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await It(n,{id:i.id},u,s)}else _.push(void 0);return xt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function At({status:e,error:t,url:n,route:r}){let i={};try{return xt({url:n,params:i,branch:[await St({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Tt(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof l){await _t(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function jt(e){let t=e.href;if(et.has(t))return et.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Ct(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();et.set(t,r),n=await r}catch{et.delete(t);return}return n}async function Mt(e,t){if(e&&!je(e,C,z.hash)){let n=await jt(e);if(!n)return;let r=Nt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Pt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Nt(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(C.length))||`/`}function Pt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Ft({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Gt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||tt.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=X;X=d;let g=await Mt(r,!1),_=n===`enter`?Gt(G,g,r,n):Ft({url:r,type:n,delta:i?.delta,intent:g,scroll:i?.scroll,event:m});if(!_){p(),X===d&&(X=ee);return}let te=J,v=Y;f(),K=!0,it&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await Ot(g);if(!y){if(je(r,C,z.hash))return await I(r,s);y=await It(r,{id:null},await $(new u(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==d){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:n,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}if(y=await At({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await Je(),await I(r,s);if(pt(),Ke(te),mt(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[w]:J+=e,[T]:Y+=e,[be]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||qe(J,Y)}let b=g&&H?.id===g.id?H.fork:null;H?.fork&&!b?U():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let x;if(it){let t=(await Promise.all(Array.from(nt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=b&&await b;i?x=i.commit():(M=null,ct.$set(y.props),M&&Object.assign(y.props.page,M),Be(y.props.page),x=e?.()),ot=!0}else await bt(y,Ze,!1);let{activeElement:ne}=document;if(await x,await t(),await t(),X!==d){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let S=null;if(at){let e=i?i.scroll:o?D():null;e?scrollTo(e.x,e.y):(S=r.hash&&document.getElementById(Jt(r)))?S.scrollIntoView():scrollTo(0,0)}let re=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!re&&Wt(r,!S),at=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=D()),W.forEach(e=>e(_.navigation)),n===`popstate`&&ht(Y),F.navigating.set(j.current=null)}async function It(e,t,n,r,i){return e.origin===xe&&e.pathname===location.pathname&&!rt?await At({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function Lt(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,E.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],E.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(yt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Te(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Ee(r,C,z.hash);if(o||s)return;let c=De(r),l=a&&Pt(G.url)===Pt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=E.tap;let e=await Mt(a,!1);if(!e)return;vt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,yt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Ee(e,C,z.hash);if(n||i)continue;let a=De(e);a.reload||(a.preload_code===E.viewport&&r.observe(e),a.preload_code===E.eager&&yt(t))}}W.add(a),a()}function $(e,t){if(e instanceof c)return e.body;let n=Fe(e),r=Ie(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Rt(e,t={}){return e=new URL(Se(e)),e.origin===xe?_t(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function zt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Bt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(gt(),!K){let e=Gt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};tt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&gt()}),navigator.connection?.saveData||Lt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Te(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=Ee(n,C,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=De(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l))Ft({url:r,type:`link`,event:t})?K=!0:t.preventDefault();else{if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Ke(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(je(r,C,!1))return;let i=e.target,a=De(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Ut){if(t.state?.[`sveltekit:history`]){let n=t.state[w];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[T],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(ot||s)){i!==A.state&&(A.state=i),e(a),N[J]=D(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[w]:++J,[T]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){G.url=A.url=e,F.page.set(Kt(A)),F.page.notify()}}async function Vt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){rt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await Mt(u,!1)||{}),d=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Ht(r.uses)),St({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Tt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await xt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l)return await I(new URL(t.location,location.href));f=await At({status:Fe(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await bt(f,e,p))}function Ht(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Ut=!1;function Wt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Jt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=D();setTimeout(()=>{let a=history.state;Ut=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Ut=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Gt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Kt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function qt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Jt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Me as a,A as i,ft as n,me as o,j as r,ge as s,Rt as t};
@@ -1 +0,0 @@
1
- export{a as load_css,n as start}from"../chunks/WLe0MT1c.js";
@@ -1 +0,0 @@
1
- import{n as e,ot as t,s as n,st as r}from"../chunks/e2LGvGEb.js";import{s as i,t as a}from"../chunks/WLe0MT1c.js";import"../chunks/xihTtKlq.js";import{a as o,i as s,s as c}from"../chunks/O98JkczU.js";import"../chunks/ej_0XxR7.js";function l(l,u){r(u,!1),e(()=>{let e=o.listing.notes.some(e=>e.id===s.last)?s.last:``;a(e?c(e):i(`/notes`),{replaceState:!0})}),n(),t()}export{l as component};
@@ -1 +0,0 @@
1
- import"../chunks/e2LGvGEb.js";import"../chunks/xihTtKlq.js";import{t as e}from"../chunks/BOxykeIc.js";import"../chunks/ej_0XxR7.js";function t(t){e(t,{})}export{t as component};