for-humanity 0.14.0 → 0.14.1
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.
- package/CHANGELOG.md +15 -2
- package/README.md +7 -7
- package/dist/browser.js +4 -4
- package/dist/cli.css +1 -1
- package/dist/cli.js +4 -4
- package/dist/{load-site-CBJGMNfH.js → load-site-BpLDY-YA.js} +484 -403
- package/dist/{logger-Dv1i9xSV.js → logger-CLH67K3L.js} +1 -1
- package/dist/{run-site-command-DPG5RNIN.js → run-site-command--qSrkFie.js} +4 -4
- package/dist/site.js +1 -1
- package/dist/{start-dev-server-x7Ja5uwv.js → start-dev-server-BL2HA7v6.js} +1 -2
- package/package.json +1 -1
- package/src/asset/font/architects-daughter/architects-daughter.css +1 -1
- package/src/asset/font/ibm-plex-sans-kr/ibm-plex-sans-kr.css +3 -3
- package/src/asset/font/monoplex-kr/monoplex-kr.css +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.14.1 — 2026-10-19
|
|
6
|
+
|
|
7
|
+
**Upgrade:** CLI commands, configuration, document syntax and Node.js requirements remain unchanged.
|
|
8
|
+
|
|
9
|
+
**Known issue:** The intermittent Windows cursor check (`NAV-010`) fails again in CI, and its cause is being investigated. See [Maintenance](https://github.com/minu-ha/for-humanity/blob/main/content/private/maintenance.md#known-windows-check-issue).
|
|
10
|
+
|
|
11
|
+
- Reorganize the documentation site into Start, Guide and Updates. Installation has its own page, Commands covers command options and troubleshooting, and the changelog is published with update instructions. The Reference and Releases pages are removed; their content is in Commands, Settings, Writing and Changelog.
|
|
12
|
+
- Let the mouse wheel scroll the document over the document list and the outline when they fit on screen. Chrome previously kept the wheel inside them.
|
|
13
|
+
- Restore the scroll position instantly when reloading or going back to an address with a heading, without first jumping to the heading or sliding down from the top.
|
|
14
|
+
- End documents with a regular section margin instead of nearly a screen of blank space. Over the last screen, the outline steps through the remaining headings in order, and a heading opened from a link stays marked until you scroll.
|
|
15
|
+
- Land anchor links with the heading at 40% of the screen height instead of near the top, and switch the outline at the same line.
|
|
16
|
+
- Land anchor links in the last screen exactly where the outline switches to them, so clicking an outline entry never briefly marks another heading.
|
|
17
|
+
|
|
5
18
|
## 0.14.0 — 2026-10-19
|
|
6
19
|
|
|
7
20
|
**Breaking change:** Configuration now belongs in the project root. CLI paths identify a project, not a Markdown folder. Move published documents into `content/public`, local-only documents into `content/private`, and the site home into `content/README.md`; use `content.root`, `content.public` and `content.private` to customize these paths. Existing flat document folders are not automatically published. See the [migration guide](https://for-humanity.fyi/migration/). Node.js 22.12.0 or later is still required.
|
|
@@ -18,7 +31,7 @@
|
|
|
18
31
|
|
|
19
32
|
**Upgrade:** CLI commands, configuration and Node.js requirements remain unchanged. Navigation scroll positions saved by older versions may reset once after upgrading.
|
|
20
33
|
|
|
21
|
-
**Known issue:** The previously recorded intermittent Windows cursor check (`NAV-010`) remains deferred. See [Maintenance](https://for-humanity
|
|
34
|
+
**Known issue:** The previously recorded intermittent Windows cursor check (`NAV-010`) remains deferred. See [Maintenance](https://github.com/minu-ha/for-humanity/blob/main/content/private/maintenance.md#known-windows-check-issue).
|
|
22
35
|
|
|
23
36
|
- Let Zustand persist own navigation scroll storage and hydration; remove direct storage reads, legacy layout-key compatibility and duplicate restoration helpers.
|
|
24
37
|
- Validate saved navigation positions once with a shared Zod schema, discard malformed snapshots, and compare navigation data without traversing DOM links on every scroll event.
|
|
@@ -28,7 +41,7 @@
|
|
|
28
41
|
|
|
29
42
|
**Upgrade:** Node.js 22.12.0 or later is now required; upgrade Node before installing. Existing `dev`, `build`, `preview` commands and `.mjs` configurations remain supported. To use typed configuration, replace the `.mjs` file with `for-humanity.config.ts`; keep only one configuration file per document folder. Development and preview servers bind to localhost.
|
|
30
43
|
|
|
31
|
-
**Known issue:** The Windows browser check for cursor visibility after a reload (`NAV-010`) intermittently fails. The other browser checks and installed-package dev/preview checks pass; further cursor lifecycle investigation is deferred. See [Maintenance](https://for-humanity
|
|
44
|
+
**Known issue:** The Windows browser check for cursor visibility after a reload (`NAV-010`) intermittently fails. The other browser checks and installed-package dev/preview checks pass; further cursor lifecycle investigation is deferred. See [Maintenance](https://github.com/minu-ha/for-humanity/blob/main/content/private/maintenance.md#known-windows-check-issue).
|
|
32
45
|
|
|
33
46
|
- Render page titles, metadata and resource tags with a request-local Unhead server instance; deduplicate links, preserve literal metadata text, and keep CSS and font loading in the initial HTML.
|
|
34
47
|
- Use Citty for CLI commands and help/version output, reject unsupported options and extra paths before running, and format build results and document warnings with Consola.
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Write Markdown. Keep the context. Share a static site.
|
|
|
15
15
|

|
|
16
16
|

|
|
17
17
|
|
|
18
|
-
[Quick start](#quick-start) · [Guide](https://github.com/minu-ha/for-humanity/blob/main/content/public/writing.md) · [
|
|
18
|
+
[Quick start](#quick-start) · [Guide](https://github.com/minu-ha/for-humanity/blob/main/content/public/writing.md) · [Commands](https://github.com/minu-ha/for-humanity/blob/main/content/public/commands.md) · [Deployment](https://github.com/minu-ha/for-humanity/blob/main/content/public/deployment.md) · [Korean](https://github.com/minu-ha/for-humanity/blob/main/language/README.ko.md)
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -30,7 +30,7 @@ The result is a static site with bundled fonts, light and dark themes, keyboard
|
|
|
30
30
|
You need Node.js 22.12.0 or later and pnpm. In a project with a `package.json`, install the package:
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
pnpm add -D --save-exact for-humanity@0.14.
|
|
33
|
+
pnpm add -D --save-exact for-humanity@0.14.1
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Copy `for-humanity.config.ts` and the `content` folder from `node_modules/for-humanity/template` into your project. If you already have documentation, follow [Migration](https://github.com/minu-ha/for-humanity/blob/main/content/public/migration.md) before moving files.
|
|
@@ -49,7 +49,7 @@ Start the local server:
|
|
|
49
49
|
pnpm exec for-humanity dev
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Open [localhost:4321](http://localhost:4321). Edit the Markdown file and save to update the page. Follow [
|
|
52
|
+
Open [localhost:4321](http://localhost:4321). Edit the Markdown file and save to update the page. Follow [Installation](https://github.com/minu-ha/for-humanity/blob/main/content/public/installation.md) to add your first document.
|
|
53
53
|
|
|
54
54
|
Build and inspect the site before deployment:
|
|
55
55
|
|
|
@@ -72,7 +72,7 @@ import type {SiteConfig} from "for-humanity";
|
|
|
72
72
|
export default {
|
|
73
73
|
title: "Project notes",
|
|
74
74
|
description: "A guide to using the project.",
|
|
75
|
-
navigation: ["
|
|
75
|
+
navigation: ["Start", "Guide", "Updates"],
|
|
76
76
|
} satisfies SiteConfig;
|
|
77
77
|
```
|
|
78
78
|
|
|
@@ -98,12 +98,12 @@ Add examples or explanations readers can open when needed.
|
|
|
98
98
|
|
|
99
99
|
| Task | Guide |
|
|
100
100
|
| --- | --- |
|
|
101
|
-
| Install and run | [Commands](https://github.com/minu-ha/for-humanity/blob/main/content/public/commands.md) |
|
|
101
|
+
| Install and run | [Installation](https://github.com/minu-ha/for-humanity/blob/main/content/public/installation.md) · [Commands](https://github.com/minu-ha/for-humanity/blob/main/content/public/commands.md) |
|
|
102
102
|
| Write and organize pages | [Writing](https://github.com/minu-ha/for-humanity/blob/main/content/public/writing.md) · [Navigation](https://github.com/minu-ha/for-humanity/blob/main/content/public/navigation.md) |
|
|
103
103
|
| Add rich content | [Parts](https://github.com/minu-ha/for-humanity/blob/main/content/public/parts.md) · [Diagrams](https://github.com/minu-ha/for-humanity/blob/main/content/public/diagrams.md) · [Images](https://github.com/minu-ha/for-humanity/blob/main/content/public/images.md) |
|
|
104
|
-
| Configure the site | [Settings](https://github.com/minu-ha/for-humanity/blob/main/content/public/settings.md)
|
|
104
|
+
| Configure the site | [Settings](https://github.com/minu-ha/for-humanity/blob/main/content/public/settings.md) |
|
|
105
105
|
| Publish | [Deployment](https://github.com/minu-ha/for-humanity/blob/main/content/public/deployment.md) · [Crawling](https://github.com/minu-ha/for-humanity/blob/main/content/public/crawling.md) |
|
|
106
|
-
| Update | [
|
|
106
|
+
| Update | [Changelog](https://github.com/minu-ha/for-humanity/blob/main/content/public/changelog.md) · [Migration](https://github.com/minu-ha/for-humanity/blob/main/content/public/migration.md) |
|
|
107
107
|
|
|
108
108
|
## License
|
|
109
109
|
|
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){var e=Symbol(`RENDERER`),t=Symbol(`ERROR_HANDLER`),n=Symbol(`STASH`),r=Symbol(`INTERNAL`),i=Symbol(`MEMO`),a=Symbol(`PERMALINK`),o=e=>(e[r]=!0,e),s={Stringify:1,BeforeStream:2,Stream:3},c=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},l=/[&<>'"]/,u=async(e,t)=>{let n=``;t||=[];let r=await Promise.all(e);for(let e=r.length-1;n+=r[e],e--,!(e<0);e--){let i=r[e];typeof i==`object`&&t.push(...i.callbacks||[]);let a=i.isEscaped;if(i=await(typeof i==`object`?i.toString():i),typeof i==`object`&&t.push(...i.callbacks||[]),i.isEscaped??a)n+=i;else{let e=[n];d(i,e),n=e[0]}}return c(n,t)},d=(e,t)=>{let n=e.search(l);if(n===-1){t[0]+=e;return}let r,i,a=0;for(i=n;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=`"`;break;case 39:r=`'`;break;case 38:r=`&`;break;case 60:r=`<`;break;case 62:r=`>`;break;default:continue}t[0]+=e.substring(a,i)+r,a=i+1}t[0]+=e.substring(a,i)},f=e=>{let t=e.callbacks;if(!t?.length)return e;let n=[e],r={};return t.forEach(e=>e({phase:s.Stringify,buffer:n,context:r})),n[0]},p=async(e,t,n,r,i)=>{typeof e==`object`&&!(e instanceof String)&&(e instanceof Promise||(e=e.toString()),e instanceof Promise&&(e=await e));let a=e.callbacks;if(!a?.length)return Promise.resolve(e);i?i[0]+=e:i=[e];let o=Promise.all(a.map(e=>e({phase:t,buffer:i,context:r}))).then(e=>Promise.all(e.filter(Boolean).map(e=>p(e,t,!1,r,i))).then(()=>i[0]));return n?c(await o,a):o},m={title:[],script:[`src`],style:[`data-href`],link:[`href`],meta:[`name`,`httpEquiv`,`charset`,`itemProp`]},h={},g=`data-precedence`,_=e=>e.rel===`stylesheet`&&`precedence`in e,ee=(e,t)=>e===`link`?t:m[e].length>0,v=Object.defineProperty,te=(e,t)=>{let n={};for(var r in e)v(n,r,{get:e[r],enumerable:!0});return t||v(n,Symbol.toStringTag,{value:`Module`}),n},y=e=>Array.isArray(e)?e:[e],b=te({button:()=>fe,form:()=>le,input:()=>de,link:()=>se,meta:()=>C,script:()=>ae,style:()=>oe,title:()=>ie}),ne=new WeakMap,re=(e,t,n,r)=>({buffer:i,context:a})=>{if(!i)return;let o=ne.get(a)||{};ne.set(a,o);let s=o[e]||=[],c=!1,l=m[e],u=ee(e,r!==void 0);if(u){LOOP:for(let[,t]of s)if(e!==`link`||t.rel===`stylesheet`&&t[`data-precedence`]!==void 0){for(let e of l)if((t?.[e]??null)===n?.[e]){c=!0;break LOOP}}}if(c?i[0]=i[0].replaceAll(t,``):u||e===`link`?s.push([t,n,r]):s.unshift([t,n,r]),i[0].indexOf(`</head>`)!==-1){let t;if(e===`link`||r!==void 0){let e=[];t=s.map(([t,,n],r)=>{if(n===void 0)return[t,2**53-1,r];let i=e.indexOf(n);return i===-1&&(e.push(n),i=e.length-1),[t,i,r]}).sort((e,t)=>e[1]-t[1]||e[2]-t[2]).map(([e])=>e)}else t=s.map(([e])=>e);t.forEach(e=>{i[0]=i[0].replaceAll(e,``)}),i[0]=i[0].replace(/(?=<\/head>)/,()=>t.join(``))}},x=(e,t,n)=>T([new E(e,n,y(t??[]))]),S=(e,t,n,r)=>{if(`itemProp`in n)return x(e,t,n);let{precedence:i,blocking:a,...o}=n;i=r?i??``:void 0,r&&(o[g]=i);let s=new E(e,o,y(t||[])).toString();return s instanceof Promise?s.then(t=>c(t,[...t.callbacks||[],re(e,t,o,i)])):c(s,[re(e,s,o,i)])},ie=({children:e,...t})=>{let n=Me();if(n){let r=k(n);if(r===`svg`||r===`head`)return new E(`title`,t,y(e??[]))}return S(`title`,e,t,!1)},ae=({children:e,...t})=>{let n=Me();return[`src`,`async`].some(e=>!t[e])||n&&k(n)===`head`?x(`script`,e,t):S(`script`,e,t,!1)},oe=({children:e,...t})=>[`href`,`precedence`].every(e=>e in t)?(t[`data-href`]=t.href,delete t.href,S(`style`,e,t,!0)):x(`style`,e,t),se=({children:e,...t})=>[`onLoad`,`onError`].some(e=>e in t)||t.rel===`stylesheet`&&(!(`precedence`in t)||`disabled`in t)?x(`link`,e,t):S(`link`,e,t,_(t)),C=({children:e,...t})=>{let n=Me();return n&&k(n)===`head`?x(`meta`,e,t):S(`meta`,e,t,!1)},ce=(e,{children:t,...n})=>new E(e,n,y(t??[])),le=e=>(typeof e.action==`function`&&(e.action=a in e.action?e.action[a]:void 0),ce(`form`,e)),ue=(e,t)=>(typeof t.formAction==`function`&&(t.formAction=a in t.formAction?t.formAction[a]:void 0),ce(e,t)),de=e=>ue(`input`,e),fe=e=>ue(`button`,e),pe=new Map([[`className`,`class`],[`htmlFor`,`for`],[`crossOrigin`,`crossorigin`],[`httpEquiv`,`http-equiv`],[`itemProp`,`itemprop`],[`fetchPriority`,`fetchpriority`],[`noModule`,`nomodule`],[`formAction`,`formaction`]]),me=e=>pe.get(e)||e,he=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,ge=new Set,_e=1024,ve=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,ye=new Set,be=256,xe=(e,t,n)=>{e.size>=t&&e.clear(),e.add(n)},Se=e=>ye.has(e)?!0:typeof e==`string`?e.length===0||!ve.test(e)&&(xe(ye,be,e),!0):!1,Ce=e=>{if(ge.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95||t===46||t===58))return!he.test(e)&&(xe(ge,_e,e),!0)}return xe(ge,_e,e),!0},we=/[\s"'():;\\/\[\]{}\x00-\x1f\x7f-\x9f]/,Te=new Set,Ee=1024,De=e=>{if(Te.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95))return!we.test(e)&&(xe(Te,Ee,e),!0)}return xe(Te,Ee,e),!0},Oe=/[;"'\\/\[\](){}]/,ke=e=>{if(!Oe.test(e))return!1;let t=0,n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(a===92){if(r===i-1)return!0;r++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(r+1)===42){let t=e.indexOf(`*/`,r+2);if(t===-1)return!0;r=t+1}else if(a===34||a===39)t=a;else if(a===40)n.push(41);else if(a===91)n.push(93);else if(a===123||a===125)return!0;else if(a===41||a===93){if(n[n.length-1]!==a)return!0;n.pop()}else if(a===59&&n.length===0)return!0}return t!==0||n.length!==0},Ae=(e,t)=>{for(let[n,r]of Object.entries(e)){let e=n[0]===`-`||!/[A-Z]/.test(n)?n:n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);if(!De(e))continue;if(r==null){t(e,null);continue}let i;if(typeof r==`number`)i=e.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?!.*gap)(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${r}`:`${r}px`;else if(typeof r==`string`){if(ke(r))continue;i=r}else continue;t(e,i)}},je=void 0,Me=()=>je,Ne=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,`-$1`).toLowerCase():e,Pe=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Fe=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.download.formnovalidate.hidden.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected`.split(`.`),Ie=(e,t)=>e.then(e=>{if(typeof e!=`string`&&!Array.isArray(e)&&!(e instanceof E))return e;let n=Array.isArray(e)?e:[e],r=()=>{let e=[``];return w(n,e),e.length===1?c(e[0],e.callbacks):u(e,e.callbacks)};return t?t(r):nt(r)}),w=(e,t)=>{for(let n=0,r=e.length;n<r;n++){let r=e[n];if(typeof r==`string`)d(r,t);else if(typeof r==`boolean`||r==null)continue;else if(r instanceof E)r.toStringToBuffer(t);else if(typeof r==`number`)t[0]+=r;else if(r.isEscaped){t[0]+=r;let e=r.callbacks;e&&(t.callbacks||=[],t.callbacks.push(...e))}else r instanceof Promise?t.unshift(``,r):w(r,t)}},T=e=>nt(()=>{let t=[``];return w(e,t),t.length===1?c(t[0],t.callbacks):u(t,t.callbacks)}),Le=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof E)&&!(e instanceof Promise)&&!e.isEscaped&&typeof e.toString==`function`,Re=e=>{let t=e.toString(),n=e=>T([String(e)]);return t instanceof Promise?t.then(n):n(t)},E=class{tag;props;key;children;isEscaped=!0;constructor(e,t,n){if(typeof e!=`function`&&!Se(e))throw Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=n}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){return nt(()=>{let e=[``];return this.toStringToBuffer(e),e.length===1?`callbacks`in e?f(c(e[0],e.callbacks)).toString():e[0]:u(e,e.callbacks)})}toStringToBuffer(e){let t=this.tag,n=this.props,{children:r}=this;e[0]+=`<${t}`;let i=t===`svg`||je&&k(je)===`svg`?e=>Ne(me(e)):e=>me(e);for(let[a,o]of Object.entries(n))if(a=i(a),Ce(a)&&a!==`children`){if(a===`style`&&typeof o==`object`){let t=``;Ae(o,(e,n)=>{n!=null&&(t+=`${t?`;`:``}${e}:${n}`)}),e[0]+=` style="`,d(t,e),e[0]+=`"`}else if(typeof o==`string`)e[0]+=` ${a}="`,d(o,e),e[0]+=`"`;else if(o!=null){if(typeof o==`number`||o.isEscaped)e[0]+=` ${a}="${o}"`;else if(typeof o==`boolean`&&Fe.includes(a))o&&(e[0]+=` ${a}=""`);else if(a===`dangerouslySetInnerHTML`){if(r.length>0)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r=[c(o.__html)]}else if(o instanceof Promise)e[0]+=` ${a}="`,e.unshift(`"`,o);else if(typeof o==`function`){if(!a.startsWith(`on`)&&a!==`ref`)throw Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}="`,d(o.toString(),e),e[0]+=`"`}}Pe.includes(t)&&r.length===0?e[0]+=`/>`:(e[0]+=`>`,w(r,e),e[0]+=`</${t}>`)}},ze=class extends E{toStringToBuffer(e){let{children:t}=this,n={...this.props};t.length&&(n.children=t.length===1?t[0]:t);let r=this.tag.call(null,n);typeof r!=`boolean`&&r!=null&&(r instanceof Promise?O.length===0?e.unshift(``,Ie(r)):e.unshift(``,Ie(r,rt())):r instanceof E?r.toStringToBuffer(e):Array.isArray(r)?w(r,e):typeof r==`number`||r.isEscaped?(e[0]+=r,r.callbacks&&(e.callbacks||=[],e.callbacks.push(...r.callbacks))):d(r,e))}},Be=class extends E{toStringToBuffer(e){w(this.children,e)}},Ve=(e,t,...n)=>{t??={},n.length&&(t.children=n.length===1?n[0]:n);let r=t.key;delete t.key;let i=Ue(e,t,n);return i.key=r,i},He=!1,Ue=(t,n,r)=>{if(!He){for(let t in h)b[t][e]=h[t];He=!0}return typeof t==`function`?new ze(t,n,r):b[t]?new ze(b[t],n,r):t===`svg`||t===`head`?(je||=it(``),new E(t,n,[new ze(je,{value:t},r)])):new E(t,n,r)},D=({children:e})=>new Be(``,{children:e},Array.isArray(e)?e:e?[e]:[]),O=[],We=!1,Ge,Ke,qe=0,Je=!1,Ye=()=>{if(We)return Ge;We=!0;let e=globalThis,t;for(let n of[()=>e.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage,()=>e.process?.mainModule?.require?.(`node:async_hooks`)?.AsyncLocalStorage]){try{t=n()}catch{}if(t)break}return t&&(Ge=new t),Ge},Xe=()=>Ye()?.getStore()||Ke,Ze=()=>{qe>0&&!Je&&(Je=!0,console.warn(`hono/jsx: AsyncLocalStorage is unavailable in this runtime, so useContext() after an await in an async component falls back to the context default value during server-side rendering. To get provided values across await boundaries, use a runtime with AsyncLocalStorage (Node.js >= 20.16, Deno, Bun, or Cloudflare Workers with the nodejs_compat flag).`))},Qe=(e,t)=>{if(!e)return Ze(),t.values;let n=e.get(t);return n||(n=[t.values[0]],e.set(t,n)),n},$e=(e,t)=>{if(!e)return Ze(),t.values.at(-1);let n=e.get(t);return n?.length?n.at(-1):t.values[0]},et=e=>(e?O.filter(t=>e.has(t)):O).map(t=>[t,$e(e,t)]),tt=(e,t,n)=>nt(()=>{let t=Xe(),r=n.map(([e,n])=>{let r=Qe(t,e);return r.push(n),r}),i=()=>{r.forEach(e=>{e.pop()})};try{let t=e();return t instanceof Promise?t.finally(i):(i(),t)}catch(e){throw i(),e}},t),nt=(e,t)=>{if(Xe())return e();let n=t??new WeakMap,r=Ye();if(r)return r.run(n,e);Ke=n;let i;try{i=e()}finally{Ke=void 0}return!Je&&i instanceof Promise&&(qe++,i=i.finally(()=>{qe--})),i},rt=()=>{let e=Xe(),t=et(e);return n=>tt(n,e,t)},it=t=>{let n=[t],r=(e=>{let t=Qe(Xe(),r);t.push(e.value);let n;try{n=typeof e.children==`string`?T([e.children]):Le(e.children)?Re(e.children):e.children?(Array.isArray(e.children)?new Be(``,{},e.children):e.children).toString():c(``)}catch(e){throw t.pop(),e}return n instanceof Promise?n.finally(()=>t.pop()).then(e=>c(e,e.callbacks)):(t.pop(),c(n))});return r.values=n,r.Provider=r,r[e]=at(n),O.push(r),r},k=e=>$e(Xe(),e),at=e=>({value:n,children:r})=>{if(!r)return;let i={children:[{tag:o(()=>{e.push(n)}),props:{}}]};Array.isArray(r)?i.children.push(...r.flat()):i.children.push(r),i.children.push({tag:o(()=>{e.pop()}),props:{}});let a={tag:``,props:i,type:``};return a[t]=t=>{throw e.pop(),t},a},ot=e=>{let t=[e],n=at(t);return n.values=t,n.Provider=n,O.push(n),n},st=0,ct=2,lt=3,ut=4,dt=new WeakMap,ft=(e,t)=>!e||!t||e.length!==t.length||t.some((t,n)=>t!==e[n]),pt=void 0,mt=[],A=e=>{let t=()=>typeof e==`function`?e():e,r=P.at(-1);if(!r)return[t(),()=>{}];let[,i]=r,a=i[n][1][st]||=[],o=i[n][0]++;return a[o]||=[t(),e=>{let t=pt,n=a[o];if(typeof e==`function`&&(e=e(n[0])),!Object.is(e,n[0])){if(n[0]=e,mt.length){let[e,n]=mt.at(-1);Promise.all([e===3?i:Kt([e,!1,t],i),n]).then(([n])=>{if(!n||e!==2&&e!==3)return;let r=n.vC;requestAnimationFrame(()=>{setTimeout(()=>{r===n.vC&&Kt([+(e===3),!1,t],n)})})})}else Kt([0,!1,t],i)}}]},ht=(e,t,r)=>{let i=P.at(-1);if(!i)return;let[,a]=i,o=a[n][1][1]||=[],s=a[n][0]++,[c,,l]=o[s]||=[];if(ft(c,r)){l&&l();let n=()=>{i[e]=void 0,i[2]=t()},i=[r,void 0,void 0,void 0,void 0];i[e]=n,o[s]=i}},gt=(e,t)=>ht(3,e,t),j=(e,t)=>ht(1,e,t),_t=(e,t)=>{let r=P.at(-1);if(!r)return e;let[,i]=r,a=i[n][1][ct]||=[],o=i[n][0]++,s=a[o];return ft(s?.[1],t)?a[o]=[e,t]:e=a[o][0],e};function M(e){let t=P.at(-1);if(!t)return{current:e};let[,r]=t,i=r[n][1][ut]||=[],a=r[n][0]++;return i[a]||={current:e}}var vt=e=>{let t=dt.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(t=>dt.set(e,[t]),t=>dt.set(e,[void 0,t])),e},yt=(e,t)=>{let r=P.at(-1);if(!r)return e();let[,i]=r,a=i[n][1][lt]||=[],o=i[n][0]++,s=a[o];return ft(s?.[1],t)&&(a[o]=[e(),t]),a[o][0]},N=`_hp`,bt={Change:`Input`,DoubleClick:`DblClick`},xt={svg:`2000/svg`,math:`1998/Math/MathML`},P=[],F=new WeakMap,I=void 0,St=()=>I,L=e=>`t`in e,Ct={onClick:[`click`,!1]},wt=e=>{if(!e.startsWith(`on`))return;if(Ct[e])return Ct[e];let t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){let[,n,r]=t;return Ct[e]=[(bt[n]||n).toLowerCase(),!!r]}},Tt=(e,t)=>I&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,`-$1`).toLowerCase():t,Et=e=>e==null||e===!1?null:e,Dt=(e,t)=>{`value`in t&&(e.value=Et(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},Ot=e=>e instanceof DOMException&&e.name===`InvalidCharacterError`,kt=(e,t,n)=>{t||={};for(let r in t){let i=t[r];if(r!==`children`&&(!n||n[r]!==i)){r=me(r);let t=wt(r);if(t){if(n?.[r]!==i&&(n&&e.removeEventListener(t[0],n[r],t[1]),i!=null)){if(typeof i!=`function`)throw Error(`Event handler for "${r}" is not a function`);e.addEventListener(t[0],i,t[1])}}else if(r===`dangerouslySetInnerHTML`&&i)e.innerHTML=i.__html;else if(r===`ref`){F.get(e)?.();let t;typeof i==`function`?t=i(e)||(()=>i(null)):i&&`current`in i&&(i.current=e,t=()=>i.current=null),F.set(e,t)}else if(r===`style`){let t=e.style;typeof i==`string`?t.cssText=i:(t.cssText=``,i!=null&&Ae(i,t.setProperty.bind(t)))}else{if(r===`value`){let t=e.nodeName;if(t===`SELECT`)continue;if((t===`INPUT`||t===`TEXTAREA`)&&(e.value=Et(i),t===`TEXTAREA`)){e.textContent=i;continue}}else(r===`checked`&&e.nodeName===`INPUT`||r===`selected`&&e.nodeName===`OPTION`)&&(e[r]=i);let t=Tt(e,r);try{i==null||i===!1?e.removeAttribute(t):i===!0?e.setAttribute(t,``):typeof i==`string`||typeof i==`number`?e.setAttribute(t,i):e.setAttribute(t,i.toString())}catch(e){if(!Ot(e))throw e}}}}if(n)for(let r in n){let i=n[r];if(r!==`children`&&!(r in t)){r=me(r);let t=wt(r);if(t)e.removeEventListener(t[0],i,t[1]);else if(r===`ref`)F.get(e)?.(),F.delete(e);else try{e.removeAttribute(Tt(e,r))}catch(e){if(!Ot(e))throw e}}}},At=(t,r)=>{r[n][0]=0,P.push([t,r]);let i=r.tag[e]||r.tag,a=i.defaultProps?{...i.defaultProps,...r.props}:r.props;try{return[i.call(null,a)]}finally{P.pop()}},jt=(e,t,r,i,a)=>{e.vR?.length&&(i.push(...e.vR),delete e.vR),typeof e.tag==`function`&&e[n][1][1]?.forEach(e=>a.push(e)),e.vC.forEach(e=>{if(L(e))r.push(e);else if(typeof e.tag==`function`||e.tag===``){e.c=t;let n=r.length;if(jt(e,t,r,i,a),e.s){for(let e=n;e<r.length;e++)r[e].s=!0;e.s=!1}}else r.push(e),e.vR?.length&&(i.push(...e.vR),delete e.vR)})},Mt=e=>{for(;e&&(e.tag===N||!e.e);)e=e.tag===N||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Nt=e=>{L(e)||(e[n]?.[1][1]?.forEach(e=>e[2]?.()),F.get(e.e)?.(),e.p===2&&e.vC?.forEach(e=>e.p=2),e.vC?.forEach(Nt)),e.p||(e.e?.remove(),delete e.e),typeof e.tag==`function`&&(R.delete(e),Bt.delete(e),delete e[n][3],e.a=!0)},Pt=(e,t,n)=>{e.c=t,Lt(e,t,n)},Ft=(e,t)=>{if(t){for(let n=0,r=e.length;n<r;n++)if(e[n]===t)return n}},It=Symbol(),Lt=(e,t,n)=>{let r=[],i=[],a=[];jt(e,t,r,i,a),i.forEach(Nt);let o=n?void 0:t.childNodes,s,c=null;if(n)s=-1;else if(!o.length)s=0;else{let t=Ft(o,Mt(e.nN));t===void 0?s=Ft(o,r.find(e=>e.tag!==N&&e.e)?.e)??-1:(c=o[t],s=t),s===-1&&(n=!0)}for(let e=0,i=r.length;e<i;e++,s++){let i=r[e],a;if(i.s&&i.e)a=i.e,i.s=!1;else{let e=n||!i.e;L(i)?(i.e&&i.d&&(i.e.textContent=i.t),i.d=!1,a=i.e||=document.createTextNode(i.t)):(a=i.e||=i.n?document.createElementNS(i.n,i.tag):document.createElement(i.tag),kt(a,i.props,i.pP),Lt(i,a,e),i.tag===`select`&&Dt(a,i.props))}i.tag===N?s--:n?a.parentNode||t.appendChild(a):o[s]!==a&&o[s-1]!==a&&(o[s+1]===a?t.appendChild(o[s]):t.insertBefore(a,c||o[s]||null))}if(e.pP&&=void 0,a.length){let e=[],t=[];a.forEach(([,n,,r,i])=>{n&&e.push(n),r&&t.push(r),i?.()}),e.forEach(e=>e()),t.length&&requestAnimationFrame(()=>{t.forEach(e=>e())})}},Rt=(e,t)=>!!(e&&e.length===t.length&&e.every((e,n)=>e[1]===t[n][1])),zt=e=>{let t=new Map;for(let n of e){let e=n.key;if(t.has(e))return;t.set(e,n)}return t},Bt=new WeakMap,Vt=(e,a,o)=>{let s=!o&&a.pC;o&&(a.pC||=a.vC);let c;try{o||=typeof a.tag==`function`?At(e,a):y(a.props.children),o[0]?.tag===``&&o[0][t]&&(c=o[0][t],e[5].push([e,c,a]));let l=s?[...a.pC]:a.vC?[...a.vC]:void 0,u=[],d,f=(l?.length||0)*2,p;for(let t=0;t<o.length;t++){if(Array.isArray(o[t])){o.splice(t,1,...o[t].flat(1/0)),t--;continue}let s=Ht(o[t]);if(s){typeof s.tag==`function`&&!s.tag[r]&&(O.length>0&&(s[n][2]=O.map(e=>[e,e.values.at(-1)])),e[5]?.length&&(s[n][3]=e[5].at(-1)));let t;if(p&&s.key===void 0&&!L(s)&&(l=[...p.values()],p=void 0),p){let e=s.key,n=p.get(e);n&&(L(s)?L(n):n.tag===s.tag&&n.key===e)&&(t=n,p.delete(e))}else if(l&&l.length){let e=l[0];if(L(s)?L(e):!L(e)&&(s.key===void 0||e.key===s.key)&&e.tag===s.tag)t=l.shift();else{let e=l.findIndex(L(s)?e=>L(e):s.key===void 0?e=>e.tag===s.tag:e=>e.key===s.key&&e.tag===s.tag);f-=e===-1?l.length:e,e!==-1&&(t=l[e],l.splice(e,1)),f<0&&(f=1/0,p=zt(l))}}if(t){if(L(s))t.t!==s.t&&(t.t=s.t,t.d=!0),s=t;else{let e=t.pP=t.props;if(t.props=s.props,t.f||=s.f||a.f,typeof s.tag==`function`){let r=t[n][2];t[n][2]=s[n][2]||[],t[n][3]=s[n][3],!t.f&&((t.o||t)===s.o||t.tag[i]?.(e,t.props))&&Rt(r,t[n][2])&&(t.s=!0)}s=t}}else if(!L(s)&&I){let e=k(I);e&&(s.n=e)}if(!L(s)&&!s.s&&(Vt(e,s),delete s.f),u.push(s),d&&!d.s&&!s.s)for(let e=d;e&&!L(e);e=e.vC?.at(-1))e.nN=s;d=s}}l=p?[...p.values()]:l,a.vR=s?[...a.vC,...l||[]]:l||[],a.vC=u,s&&delete a.pC}catch(t){if(a.f=!0,t===It){if(c)return;throw t}let[r,i,o]=a[n]?.[3]||[];if(i){let n=()=>Kt([0,!1,e[2]],o),a=Bt.get(o)||[];a.push(n),Bt.set(o,a);let s=i(t,()=>{let e=Bt.get(o);if(e){let t=e.indexOf(n);if(t!==-1)return e.splice(t,1),n()}});if(s){if(e[0]===1)e[1]=!0;else if(Vt(e,o,[s]),(i.length===1||e!==r)&&o.c){Pt(o,o.c,!1);return}throw It}}throw t}finally{c&&e[5].pop()}},Ht=e=>{if(e!=null&&typeof e!=`boolean`){if(typeof e==`string`||typeof e==`number`)return{t:e.toString(),d:!0};if(`vR`in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag==`function`)e[n]=[0,[]];else{let t=xt[e.tag];t&&(I||=ot(``),e.props.children=[{tag:I,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Ut=(e,t,n)=>{e.c===t&&(e.c=n,e.vC.forEach(e=>Ut(e,t,n)))},Wt=(e,t)=>{t[n][2]?.forEach(([e,t])=>{e.values.push(t)});try{Vt(e,t,void 0)}catch{return}t.a?delete t.a:(t[n][2]?.forEach(([e])=>{e.values.pop()}),(e[0]!==1||!e[1])&&Pt(t,t.c,!1))},R=new WeakMap,Gt=[],Kt=async(e,t)=>{e[5]||=[];let n=R.get(t);n&&n[0](void 0);let r,i=new Promise(e=>r=e);if(R.set(t,[r,()=>{e[2]?e[2](e,t,e=>{Wt(e,t)}).then(()=>r(t)):(Wt(e,t),r(t))}]),Gt.length)Gt.at(-1).add(t);else{await Promise.resolve();let e=R.get(t);e&&(R.delete(t),e[1]())}return i},qt=(e,t)=>{let n=[];n[5]=[],n[4]=!0,Vt(n,e,void 0),n[4]=!1;let r=document.createDocumentFragment();Pt(e,r,!0),Ut(e,r,t),t.replaceChildren(r)},Jt=e=>{let t=new Set;Gt.push(t),e(),t.forEach(e=>{let t=R.get(e);t&&(R.delete(e),t[1]())}),Gt.pop()},Yt=(e,t,n)=>({tag:N,props:{children:e},key:n,e:t,p:1}),Xt=(e,t={})=>{let n;return Object.keys(t).length>0&&console.warn(`createRoot options are not supported yet`),{render(t){if(n===null)throw Error(`Cannot update an unmounted root`);n?n(t):qt(Ht({tag:()=>{let[e,r]=A(t);return n=r,e},props:{}}),e)},unmount(){n?.(null),n=null}}};function Zt(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Qt(e,t){return typeof t==`bigint`?t.toString():t}var $t=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function en(e){return new $t(e)}function tn(e){return e==null}function nn(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var rn=Symbol(`evaluating`);function an(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==rn)return r===void 0&&(r=rn,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function on(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}var sn=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function cn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ln(e){if(cn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return cn(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}var un=new Set([`string`,`number`,`symbol`]);function dn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function fn(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function pn(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}function B(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function mn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function V(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function hn(e){return typeof e==`string`?e:e?.message}function gn(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function H(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:hn(e.inst?._zod.def?.error?.(e))??hn(a?.(e))??hn(t?.error?.(e))??hn(n.customError?.(e))??hn(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var _n=/[\uD800-\uDBFF]/;function vn(e){let t=e.length;if(!_n.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function yn(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function bn(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Cn(e,n,r.value)}}function xn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Sn(e,t,n){return xn(e,t,n,!1)}function Cn(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:xn(this,t,n.bind(this))},set(e){xn(this,t,e)}})}function wn(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Tn,U=!1,En={configurable:!0,get(){U=!0}};function W(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Tn!==e._zod?Tn=void 0:(Tn=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,En);let e=U;U=!1;try{let r=n(this);return U?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),U||=e,r}catch(n){throw delete this[t],U||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Dn(e,t,n,r){let i=wn(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var On,kn={value:void 0,enumerable:!1},An=`captureStackTrace`in Error?Error:null;function jn(e){let t=An;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return An=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function G(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){kn.value=new a(r);try{Object.defineProperty(n,"_zod",kn)}finally{kn.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),bn(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?jn(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Mn=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}};(On=globalThis).__zod_globalConfig??(On.__zod_globalConfig={});var Nn=globalThis.__zod_globalConfig;function K(e){return e&&Object.assign(Nn,e),Nn}function Pn(){let e=this._zod;return e.message??=JSON.stringify(e.def,Qt,2),e.message}function Fn(e){this._zod.message=e}var In={get:Pn,set:Fn,enumerable:!0,configurable:!0},Ln={value:void 0,enumerable:!1},Rn=new WeakSet([Object.prototype,Error.prototype]),zn=(e,t)=>{e.name=`$ZodError`,Ln.value=t,Object.defineProperty(e,"issues",Ln),Ln.value=void 0,Object.defineProperty(e,"message",In);let n=Object.getPrototypeOf(e);Rn.has(n)||(Rn.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))};G(`$ZodError`,zn);var Bn=G(`$ZodError`,zn,void 0,{Parent:Error}),Vn=(e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Mn;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>H(e,o,K())));throw sn(n,a?.callee??t),n}return s.value};return t})(Bn),Hn=(e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>H(e,o,K())));throw sn(n,a?.callee??t),n}return s.value};return t})(Bn),Un=(e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Mn;return a.issues.length?Wn(e,a.issues,i):{success:!0,data:a.value}})(Bn);function Wn(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>H(e,n,K()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Gn=(e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Wn(e,a.issues,i):{success:!0,data:a.value}})(Bn),Kn=/^[\s\S]{0,}$/,qn=/^-?\d+(?:\.\d+)?$/,Jn=/^(?:true|false)$/i,Yn=G(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xn=e=>{let t=e.value;return!tn(t)&&t.length!==void 0},Zn={number:`number`,bigint:`bigint`,object:`date`},Qn=G(`$ZodCheckGreaterThan`,(e,t)=>{Yn.init(e,t);let n=Zn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Zn[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$n=G(`$ZodCheckMinLength`,(e,t)=>{var n;Yn.init(e,t),(n=e._zod.def).when??(n.when=Xn),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?vn(r):i)>=t.minimum)return;let a=yn(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),er={major:4,minor:6,patch:5},q=G(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=er;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=B(t),a;for(let o of n){if(o._zod.def.when){if(mn(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Mn;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(gn(t.issues,n,e),i||=B(t,n))});else{if(t.issues.length===n)continue;gn(t.issues,n,e),i||=B(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(B(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Mn;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Mn;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Sn(this,`~standard`,rr(this))},set"~standard"(e){xn(this,`~standard`,e)}}),tr=(e,t)=>e.issues.length?{issues:e.issues.map(e=>H(e,t,K()))}:{value:e.value};async function nr(e,t){let n={async:!0};return tr(await e._zod.run({value:t,issues:[]},n),n)}function rr(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return tr(r,n)}catch{}return nr(e,t)},vendor:`zod`,version:1}}var ir=G(`$ZodString`,(e,t)=>{q.init(e,t),e._zod.pattern=t.pattern??Kn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),ar=G(`$ZodNumber`,(e,t)=>{q.init(e,t),e._zod.pattern=qn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),or=G(`$ZodBoolean`,(e,t)=>{q.init(e,t),e._zod.pattern=Jn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}});function sr(e,t,n){e.issues.length&&t.issues.push(...V(n,e.issues)),t.value[n]=e.value}var cr=G(`$ZodArray`,(e,t)=>{q.init(e,t);let n=Nn.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>sr(t,r,e)));else if(sr(c,r,e),s&&c.issues.length!==0&&B(c))break}return o.length?Promise.all(o).then(()=>r):r}});function lr(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...V(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var ur=[];function dr(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:ur,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=pn(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function fr(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(B(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>lr(e,n,i,t,d,f))):lr(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var pr=G(`$ZodObject`,(e,t)=>{q.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=en(()=>dr(t));W(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||on(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=cn,o=t.catchall,s,c=Nn.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(B(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>lr(n,t,e,r,a,o))):lr(s,t,e,r,a,o)}return o?fr(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),mr=G(`$ZodRecord`,(e,t)=>{q.init(e,t);let n=Nn.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!ln(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>H(e,i,K())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...V(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...V(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&qn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>H(e,i,K())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...V(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...V(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),hr=G(`$ZodEnum`,(e,t)=>{q.init(e,t);let n=Zt(t.entries),r=new Set(n);e._zod.values=r,W(e,`pattern`,e=>{let t=Zt(e.def.entries).filter(e=>un.has(typeof e));return RegExp(t.length?`^(${t.map(e=>dn(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}});function gr(e,t){return e.value=t.issues.length?void 0:t.value,e}var _r=G(`$ZodOptional`,(e,t)=>{q.init(e,t),W(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,W(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),W(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${nn(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>gr(e,t)):gr(e,r)}return t.innerType._zod.run(e,n)}}),vr=G(`$ZodLazy`,(e,t)=>{q.init(e,t),an(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),W(e,`pattern`,e=>e.innerType?._zod?.pattern),W(e,`propValues`,e=>e.innerType?._zod?.propValues),W(e,`optin`,e=>e.innerType?._zod?.optin??void 0),W(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)});function yr(e){return e.checks&&=[...e.checks],e}function br(e,t){return new e(yr({type:`string`,...z(t)}))}function xr(e,t){return new e(yr({type:`number`,checks:[],...z(t)}))}function Sr(e,t){return new e({type:`boolean`,...z(t)})}function Cr(e,t){return new Qn({check:`greater_than`,...z(t),value:e,inclusive:!0})}function wr(e,t){return new $n({check:`min_length`,...z(t),minimum:e})}var J=G(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);q.init(e,t),e.def=t,e.type=t.type},{get with(){return this.check},set with(e){xn(this,`with`,e)},parse(e,t){return Vn(this,e,t,{callee:this.parse})},parseAsync(e,t){return Hn(this,e,t,{callee:this.parseAsync})},safeParse(e,t){return Un(this,e,t)},safeParseAsync(e,t){return Gn(this,e,t)},check(...e){let t=this.def;return this.clone({...t,checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0})},clone(e,t){return fn(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},apply(e,...t){return t.length===0?e(this):e(this,...t)}}),Tr=G(`ZodMiniString`,(e,t)=>{ir.init(e,t),J.init(e,t)});function Y(e){return br(Tr,e)}var Er=G(`ZodMiniNumber`,(e,t)=>{ar.init(e,t),J.init(e,t)});function Dr(e){return xr(Er,e)}var Or=G(`ZodMiniBoolean`,(e,t)=>{or.init(e,t),J.init(e,t)});function kr(e){return Sr(Or,e)}var Ar=G(`ZodMiniArray`,(e,t)=>{cr.init(e,t),J.init(e,t)});function X(e,t){return new Ar({type:`array`,element:e,...z(t)})}var jr=G(`ZodMiniObject`,(e,t)=>{pr.init(e,t),J.init(e,t),Dn(e,`shape`,e=>e._zod.def.shape,!1)});function Z(e,t){return new jr({type:`object`,shape:e??{},...z(t)})}var Mr=G(`ZodMiniRecord`,(e,t)=>{mr.init(e,t),J.init(e,t)});function Nr(e,t,n){return new Mr({type:`record`,keyType:e,valueType:t,...z(n),partial:!0})}var Pr=G(`ZodMiniEnum`,(e,t)=>{hr.init(e,t),J.init(e,t),e.options=[...e._zod.values]});function Fr(e,t){return new Pr({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var Ir=G(`ZodMiniOptional`,(e,t)=>{_r.init(e,t),J.init(e,t)});function Lr(e){return new Ir({type:`optional`,innerType:e})}var Rr=G(`ZodMiniLazy`,(e,t)=>{vr.init(e,t),J.init(e,t)});function zr(e){return new Rr({type:`lazy`,getter:e})}var Br=Z({id:Y(),name:Y(),label:Y(),active:kr(),children:zr(()=>X(Br))}),Vr=Z({name:Y(),path:X(Y()),docs:X(Br),groups:zr(()=>X(Vr))}),Hr=Z({depth:Dr(),slug:Y(),text:Y()}),Ur=Z({title:Y(),groups:X(Vr),outline:X(Z({part:Lr(Y()),sections:X(Z({heading:Hr,part:Lr(Y()),subs:X(Z({heading:Hr}))})).check(wr(1))})),home:kr(),cursorFace:kr()});function Wr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Q(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wr(e))&&(r&&(r+=` `),r+=t);return r}var Gr=ot({pending:!1,data:null,method:null,action:null}),Kr=new Set,qr=e=>{Kr.add(e),e.finally(()=>Kr.delete(e))},Jr=te({button:()=>li,clearCache:()=>Yr,composeRef:()=>Xr,form:()=>oi,input:()=>ci,link:()=>ri,meta:()=>ii,script:()=>ti,style:()=>ni,title:()=>ei}),Yr=()=>{Zr=Object.create(null),Qr=Object.create(null)},Xr=(e,t)=>yt(()=>n=>{let r;e&&(typeof e==`function`?r=e(n)||(()=>{e(null)}):e&&`current`in e&&(e.current=n,r=()=>{e.current=null}));let i=t(n);return()=>{i?.(),r?.()}},[e]),Zr=Object.create(null),Qr=Object.create(null),$r=(e,t,n,r,i)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};let a=document.head,{onLoad:o,onError:s,precedence:c,blocking:l,...u}=t,d=null,f=!1,p=m[e],h=ee(e,r),_=e=>e.getAttribute(`rel`)===`stylesheet`&&e.getAttribute(`data-precedence`)!==null,v;if(h){let n=a.querySelectorAll(e);LOOP:for(let r of n)if(e!==`link`||_(r)){for(let e of p)if(r.getAttribute(e)===t[e]){d=r;break LOOP}}if(!d){let n=p.reduce((e,n)=>t[n]===void 0?e:`${e}-${n}-${t[n]}`,e);f=!Qr[n],d=Qr[n]||=(()=>{let n=document.createElement(e);for(let e of p)t[e]!==void 0&&n.setAttribute(e,t[e]);return t.rel&&n.setAttribute(`rel`,t.rel),n})()}}else v=a.querySelectorAll(e);c=r?c??``:void 0,r&&(u[g]=c);let te=_t(t=>{if(h){if(e===`link`&&c!==void 0){let n=!1;for(let r of a.querySelectorAll(e)){let e=r.getAttribute(g);if(e===null||n&&e!==c){a.insertBefore(t,r);return}e===c&&(n=!0)}a.appendChild(t);return}let n=!1;for(let r of a.querySelectorAll(e)){if(n&&r.getAttribute(`data-precedence`)!==c){a.insertBefore(t,r);return}r.getAttribute(`data-precedence`)===c&&(n=!0)}a.appendChild(t)}else if(e===`link`)a.contains(t)||a.appendChild(t);else if(v){let n=!1;for(let e of v)if(e===t){n=!0;break}n||a.insertBefore(t,a.contains(v[0])?v[0]:a.querySelector(e)),v=void 0}},[h,c,e]),y=Xr(t.ref,e=>{let t=p[0];if(n===2&&(e.innerHTML=``),(f||v)&&te(e),!s&&!o||!t)return;let r=Zr[e.getAttribute(t)]||=new Promise((t,n)=>{e.addEventListener(`load`,t),e.addEventListener(`error`,n)});o&&(r=r.then(o)),s&&(r=r.catch(s)),r.catch(()=>{})});if(i&&l===`render`){let n=m[e][0];if(n&&t[n]){let e=t[n];vt(Zr[e]||=new Promise((e,t)=>{te(d),d.addEventListener(`load`,e),d.addEventListener(`error`,t)}))}}let b={tag:e,type:e,props:{...u,ref:y},ref:y};return b.p=n,d&&(b.e=d),Yt(b,a)},ei=e=>{let t=St();return(t&&k(t))?.endsWith(`svg`)?{tag:`title`,props:e,type:`title`,ref:e.ref}:$r(`title`,e,void 0,!1,!1)},ti=e=>!e||[`src`,`async`].some(t=>!e[t])?{tag:`script`,props:e,type:`script`,ref:e.ref}:$r(`script`,e,1,!1,!0),ni=e=>!e||![`href`,`precedence`].every(t=>t in e)?{tag:`style`,props:e,type:`style`,ref:e.ref}:(e[`data-href`]=e.href,delete e.href,$r(`style`,e,2,!0,!0)),ri=e=>!e||[`onLoad`,`onError`].some(t=>t in e)||e.rel===`stylesheet`&&(!(`precedence`in e)||`disabled`in e)?{tag:`link`,props:e,type:`link`,ref:e.ref}:$r(`link`,e,1,_(e),!0),ii=e=>$r(`meta`,e,void 0,!1,!1),ai=Symbol(),oi=e=>{let{action:t,...n}=e;typeof t!=`function`&&(n.action=t);let[r,i]=A([null,!1]),a=_t(async e=>{let n=e.isTrusted?t:e.detail[ai];if(typeof n!=`function`)return;e.preventDefault();let r=new FormData(e.target);i([r,!0]);let a=n(r);a instanceof Promise&&(qr(a),await a),i([null,!0])},[]),o=Xr(e.ref,e=>(e.addEventListener(`submit`,a),()=>{e.removeEventListener(`submit`,a)})),[s,c]=r;return r[1]=!1,{tag:Gr,props:{value:{pending:s!==null,data:s,method:s?`post`:null,action:s?t:null},children:{tag:`form`,props:{...n,ref:o},type:`form`,ref:o}},f:c}},si=(e,{formAction:t,...n})=>{if(typeof t==`function`){let e=_t(e=>{e.preventDefault(),e.currentTarget.form.dispatchEvent(new CustomEvent(`submit`,{detail:{[ai]:t}}))},[]);n.ref=Xr(n.ref,t=>(t.addEventListener(`click`,e),()=>{t.removeEventListener(`click`,e)}))}return{tag:e,props:n,type:e,ref:n.ref}},ci=e=>si(`input`,e),li=e=>si(`button`,e);Object.assign(h,{title:ei,script:ti,style:ni,link:ri,meta:ii,form:oi,input:ci,button:li});var $=(e,t,n)=>(typeof e==`string`&&Jr[e]&&(e=Jr[e]),{tag:e,type:e,props:t,key:n,ref:t.ref}),ui=e=>$(``,e,void 0),di=(({children:e,fallback:n,fallbackRender:r,onError:i})=>{let a=ui({children:e});return a[t]=e=>{if(e instanceof Promise)throw e;return i?.(e),r?.(e)||n},a}),fi=(({children:e,fallback:n})=>{let r=ui({children:e});return r[t]=(e,t)=>{if(!(e instanceof Promise))throw e;return e.finally(t),n},r}),pi=0,mi=async e=>{try{return e.flat().map(hi)}catch(t){if(t instanceof Promise){let n=rt();return await t,n(()=>mi(e))}throw t}},hi=e=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||Array.isArray(e))return T([e]);if(Le(e))return Re(e);{let t=e.toString();return t instanceof Promise?t:c(t)}},gi=async({children:e,fallback:t,fallbackRender:n,onError:r})=>{if(!e)return c(``);Array.isArray(e)||(e=[e]);let i=k(_i)?.scriptNonce,a,o=()=>a||=rt(),l,u=()=>l||=(async()=>{let e=await t;if(e==null)return;if(typeof e==`string`||Array.isArray(e))return o()(()=>T([e]));if(Le(e))return o()(()=>Re(e));let n=await o()(()=>e.toString());return c(n,n.callbacks||e.callbacks)})(),d=async e=>{let t=await u();return o()(async()=>{r?.(e);let i=t===void 0?n&&Ve(D,{},n(e))||``:t,a=await D({children:i}).toString();return c(a,a.callbacks||i.callbacks)})},f=[];try{f=e.map(hi)}catch(t){let n=o();f=t instanceof Promise?[t.then(()=>n(()=>mi(e))).catch(e=>d(e))]:[await d(t)]}if(f.some(e=>e instanceof Promise)){o();let e=pi++,t=RegExp(`(<template id="E:${e}"></template>)(.*?)(<!--E:${e}-->)`,`s`),n=!1,r=async({error:r,buffer:i})=>{if(n)return``;n=!0;let a=await d(r),o=a.callbacks;return i?(i[0]=i[0].replace(t,()=>a),o?.length?c(``,o):``):c(`<template data-hono-target="E:${e}">${a}</template><script>
|
|
1
|
+
(function(){var e=Symbol(`RENDERER`),t=Symbol(`ERROR_HANDLER`),n=Symbol(`STASH`),r=Symbol(`INTERNAL`),i=Symbol(`MEMO`),a=Symbol(`PERMALINK`),o=e=>(e[r]=!0,e),s={Stringify:1,BeforeStream:2,Stream:3},c=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},l=/[&<>'"]/,u=async(e,t)=>{let n=``;t||=[];let r=await Promise.all(e);for(let e=r.length-1;n+=r[e],e--,!(e<0);e--){let i=r[e];typeof i==`object`&&t.push(...i.callbacks||[]);let a=i.isEscaped;if(i=await(typeof i==`object`?i.toString():i),typeof i==`object`&&t.push(...i.callbacks||[]),i.isEscaped??a)n+=i;else{let e=[n];d(i,e),n=e[0]}}return c(n,t)},d=(e,t)=>{let n=e.search(l);if(n===-1){t[0]+=e;return}let r,i,a=0;for(i=n;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=`"`;break;case 39:r=`'`;break;case 38:r=`&`;break;case 60:r=`<`;break;case 62:r=`>`;break;default:continue}t[0]+=e.substring(a,i)+r,a=i+1}t[0]+=e.substring(a,i)},f=e=>{let t=e.callbacks;if(!t?.length)return e;let n=[e],r={};return t.forEach(e=>e({phase:s.Stringify,buffer:n,context:r})),n[0]},p=async(e,t,n,r,i)=>{typeof e==`object`&&!(e instanceof String)&&(e instanceof Promise||(e=e.toString()),e instanceof Promise&&(e=await e));let a=e.callbacks;if(!a?.length)return Promise.resolve(e);i?i[0]+=e:i=[e];let o=Promise.all(a.map(e=>e({phase:t,buffer:i,context:r}))).then(e=>Promise.all(e.filter(Boolean).map(e=>p(e,t,!1,r,i))).then(()=>i[0]));return n?c(await o,a):o},m={title:[],script:[`src`],style:[`data-href`],link:[`href`],meta:[`name`,`httpEquiv`,`charset`,`itemProp`]},h={},g=`data-precedence`,_=e=>e.rel===`stylesheet`&&`precedence`in e,ee=(e,t)=>e===`link`?t:m[e].length>0,v=Object.defineProperty,y=(e,t)=>{let n={};for(var r in e)v(n,r,{get:e[r],enumerable:!0});return t||v(n,Symbol.toStringTag,{value:`Module`}),n},b=e=>Array.isArray(e)?e:[e],x=y({button:()=>ue,form:()=>se,input:()=>le,link:()=>T,meta:()=>ae,script:()=>re,style:()=>ie,title:()=>ne}),te=new WeakMap,S=(e,t,n,r)=>({buffer:i,context:a})=>{if(!i)return;let o=te.get(a)||{};te.set(a,o);let s=o[e]||=[],c=!1,l=m[e],u=ee(e,r!==void 0);if(u){LOOP:for(let[,t]of s)if(e!==`link`||t.rel===`stylesheet`&&t[`data-precedence`]!==void 0){for(let e of l)if((t?.[e]??null)===n?.[e]){c=!0;break LOOP}}}if(c?i[0]=i[0].replaceAll(t,``):u||e===`link`?s.push([t,n,r]):s.unshift([t,n,r]),i[0].indexOf(`</head>`)!==-1){let t;if(e===`link`||r!==void 0){let e=[];t=s.map(([t,,n],r)=>{if(n===void 0)return[t,2**53-1,r];let i=e.indexOf(n);return i===-1&&(e.push(n),i=e.length-1),[t,i,r]}).sort((e,t)=>e[1]-t[1]||e[2]-t[2]).map(([e])=>e)}else t=s.map(([e])=>e);t.forEach(e=>{i[0]=i[0].replaceAll(e,``)}),i[0]=i[0].replace(/(?=<\/head>)/,()=>t.join(``))}},C=(e,t,n)=>D([new O(e,n,b(t??[]))]),w=(e,t,n,r)=>{if(`itemProp`in n)return C(e,t,n);let{precedence:i,blocking:a,...o}=n;i=r?i??``:void 0,r&&(o[g]=i);let s=new O(e,o,b(t||[])).toString();return s instanceof Promise?s.then(t=>c(t,[...t.callbacks||[],S(e,t,o,i)])):c(s,[S(e,s,o,i)])},ne=({children:e,...t})=>{let n=Ae();if(n){let r=j(n);if(r===`svg`||r===`head`)return new O(`title`,t,b(e??[]))}return w(`title`,e,t,!1)},re=({children:e,...t})=>{let n=Ae();return[`src`,`async`].some(e=>!t[e])||n&&j(n)===`head`?C(`script`,e,t):w(`script`,e,t,!1)},ie=({children:e,...t})=>[`href`,`precedence`].every(e=>e in t)?(t[`data-href`]=t.href,delete t.href,w(`style`,e,t,!0)):C(`style`,e,t),T=({children:e,...t})=>[`onLoad`,`onError`].some(e=>e in t)||t.rel===`stylesheet`&&(!(`precedence`in t)||`disabled`in t)?C(`link`,e,t):w(`link`,e,t,_(t)),ae=({children:e,...t})=>{let n=Ae();return n&&j(n)===`head`?C(`meta`,e,t):w(`meta`,e,t,!1)},oe=(e,{children:t,...n})=>new O(e,n,b(t??[])),se=e=>(typeof e.action==`function`&&(e.action=a in e.action?e.action[a]:void 0),oe(`form`,e)),ce=(e,t)=>(typeof t.formAction==`function`&&(t.formAction=a in t.formAction?t.formAction[a]:void 0),oe(e,t)),le=e=>ce(`input`,e),ue=e=>ce(`button`,e),de=new Map([[`className`,`class`],[`htmlFor`,`for`],[`crossOrigin`,`crossorigin`],[`httpEquiv`,`http-equiv`],[`itemProp`,`itemprop`],[`fetchPriority`,`fetchpriority`],[`noModule`,`nomodule`],[`formAction`,`formaction`]]),fe=e=>de.get(e)||e,pe=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,me=new Set,he=1024,ge=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,_e=new Set,ve=256,ye=(e,t,n)=>{e.size>=t&&e.clear(),e.add(n)},be=e=>_e.has(e)?!0:typeof e==`string`?e.length===0||!ge.test(e)&&(ye(_e,ve,e),!0):!1,xe=e=>{if(me.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95||t===46||t===58))return!pe.test(e)&&(ye(me,he,e),!0)}return ye(me,he,e),!0},Se=/[\s"'():;\\/\[\]{}\x00-\x1f\x7f-\x9f]/,Ce=new Set,we=1024,Te=e=>{if(Ce.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95))return!Se.test(e)&&(ye(Ce,we,e),!0)}return ye(Ce,we,e),!0},Ee=/[;"'\\/\[\](){}]/,De=e=>{if(!Ee.test(e))return!1;let t=0,n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(a===92){if(r===i-1)return!0;r++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(r+1)===42){let t=e.indexOf(`*/`,r+2);if(t===-1)return!0;r=t+1}else if(a===34||a===39)t=a;else if(a===40)n.push(41);else if(a===91)n.push(93);else if(a===123||a===125)return!0;else if(a===41||a===93){if(n[n.length-1]!==a)return!0;n.pop()}else if(a===59&&n.length===0)return!0}return t!==0||n.length!==0},Oe=(e,t)=>{for(let[n,r]of Object.entries(e)){let e=n[0]===`-`||!/[A-Z]/.test(n)?n:n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);if(!Te(e))continue;if(r==null){t(e,null);continue}let i;if(typeof r==`number`)i=e.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?!.*gap)(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${r}`:`${r}px`;else if(typeof r==`string`){if(De(r))continue;i=r}else continue;t(e,i)}},ke=void 0,Ae=()=>ke,je=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,`-$1`).toLowerCase():e,Me=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Ne=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.download.formnovalidate.hidden.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected`.split(`.`),Pe=(e,t)=>e.then(e=>{if(typeof e!=`string`&&!Array.isArray(e)&&!(e instanceof O))return e;let n=Array.isArray(e)?e:[e],r=()=>{let e=[``];return E(n,e),e.length===1?c(e[0],e.callbacks):u(e,e.callbacks)};return t?t(r):et(r)}),E=(e,t)=>{for(let n=0,r=e.length;n<r;n++){let r=e[n];if(typeof r==`string`)d(r,t);else if(typeof r==`boolean`||r==null)continue;else if(r instanceof O)r.toStringToBuffer(t);else if(typeof r==`number`)t[0]+=r;else if(r.isEscaped){t[0]+=r;let e=r.callbacks;e&&(t.callbacks||=[],t.callbacks.push(...e))}else r instanceof Promise?t.unshift(``,r):E(r,t)}},D=e=>et(()=>{let t=[``];return E(e,t),t.length===1?c(t[0],t.callbacks):u(t,t.callbacks)}),Fe=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof O)&&!(e instanceof Promise)&&!e.isEscaped&&typeof e.toString==`function`,Ie=e=>{let t=e.toString(),n=e=>D([String(e)]);return t instanceof Promise?t.then(n):n(t)},O=class{tag;props;key;children;isEscaped=!0;constructor(e,t,n){if(typeof e!=`function`&&!be(e))throw Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=n}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){return et(()=>{let e=[``];return this.toStringToBuffer(e),e.length===1?`callbacks`in e?f(c(e[0],e.callbacks)).toString():e[0]:u(e,e.callbacks)})}toStringToBuffer(e){let t=this.tag,n=this.props,{children:r}=this;e[0]+=`<${t}`;let i=t===`svg`||ke&&j(ke)===`svg`?e=>je(fe(e)):e=>fe(e);for(let[a,o]of Object.entries(n))if(a=i(a),xe(a)&&a!==`children`){if(a===`style`&&typeof o==`object`){let t=``;Oe(o,(e,n)=>{n!=null&&(t+=`${t?`;`:``}${e}:${n}`)}),e[0]+=` style="`,d(t,e),e[0]+=`"`}else if(typeof o==`string`)e[0]+=` ${a}="`,d(o,e),e[0]+=`"`;else if(o!=null){if(typeof o==`number`||o.isEscaped)e[0]+=` ${a}="${o}"`;else if(typeof o==`boolean`&&Ne.includes(a))o&&(e[0]+=` ${a}=""`);else if(a===`dangerouslySetInnerHTML`){if(r.length>0)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r=[c(o.__html)]}else if(o instanceof Promise)e[0]+=` ${a}="`,e.unshift(`"`,o);else if(typeof o==`function`){if(!a.startsWith(`on`)&&a!==`ref`)throw Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}="`,d(o.toString(),e),e[0]+=`"`}}Me.includes(t)&&r.length===0?e[0]+=`/>`:(e[0]+=`>`,E(r,e),e[0]+=`</${t}>`)}},Le=class extends O{toStringToBuffer(e){let{children:t}=this,n={...this.props};t.length&&(n.children=t.length===1?t[0]:t);let r=this.tag.call(null,n);typeof r!=`boolean`&&r!=null&&(r instanceof Promise?A.length===0?e.unshift(``,Pe(r)):e.unshift(``,Pe(r,tt())):r instanceof O?r.toStringToBuffer(e):Array.isArray(r)?E(r,e):typeof r==`number`||r.isEscaped?(e[0]+=r,r.callbacks&&(e.callbacks||=[],e.callbacks.push(...r.callbacks))):d(r,e))}},Re=class extends O{toStringToBuffer(e){E(this.children,e)}},ze=(e,t,...n)=>{t??={},n.length&&(t.children=n.length===1?n[0]:n);let r=t.key;delete t.key;let i=Ve(e,t,n);return i.key=r,i},Be=!1,Ve=(t,n,r)=>{if(!Be){for(let t in h)x[t][e]=h[t];Be=!0}return typeof t==`function`?new Le(t,n,r):x[t]?new Le(x[t],n,r):t===`svg`||t===`head`?(ke||=nt(``),new O(t,n,[new Le(ke,{value:t},r)])):new O(t,n,r)},k=({children:e})=>new Re(``,{children:e},Array.isArray(e)?e:e?[e]:[]),A=[],He=!1,Ue,We,Ge=0,Ke=!1,qe=()=>{if(He)return Ue;He=!0;let e=globalThis,t;for(let n of[()=>e.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage,()=>e.process?.mainModule?.require?.(`node:async_hooks`)?.AsyncLocalStorage]){try{t=n()}catch{}if(t)break}return t&&(Ue=new t),Ue},Je=()=>qe()?.getStore()||We,Ye=()=>{Ge>0&&!Ke&&(Ke=!0,console.warn(`hono/jsx: AsyncLocalStorage is unavailable in this runtime, so useContext() after an await in an async component falls back to the context default value during server-side rendering. To get provided values across await boundaries, use a runtime with AsyncLocalStorage (Node.js >= 20.16, Deno, Bun, or Cloudflare Workers with the nodejs_compat flag).`))},Xe=(e,t)=>{if(!e)return Ye(),t.values;let n=e.get(t);return n||(n=[t.values[0]],e.set(t,n)),n},Ze=(e,t)=>{if(!e)return Ye(),t.values.at(-1);let n=e.get(t);return n?.length?n.at(-1):t.values[0]},Qe=e=>(e?A.filter(t=>e.has(t)):A).map(t=>[t,Ze(e,t)]),$e=(e,t,n)=>et(()=>{let t=Je(),r=n.map(([e,n])=>{let r=Xe(t,e);return r.push(n),r}),i=()=>{r.forEach(e=>{e.pop()})};try{let t=e();return t instanceof Promise?t.finally(i):(i(),t)}catch(e){throw i(),e}},t),et=(e,t)=>{if(Je())return e();let n=t??new WeakMap,r=qe();if(r)return r.run(n,e);We=n;let i;try{i=e()}finally{We=void 0}return!Ke&&i instanceof Promise&&(Ge++,i=i.finally(()=>{Ge--})),i},tt=()=>{let e=Je(),t=Qe(e);return n=>$e(n,e,t)},nt=t=>{let n=[t],r=(e=>{let t=Xe(Je(),r);t.push(e.value);let n;try{n=typeof e.children==`string`?D([e.children]):Fe(e.children)?Ie(e.children):e.children?(Array.isArray(e.children)?new Re(``,{},e.children):e.children).toString():c(``)}catch(e){throw t.pop(),e}return n instanceof Promise?n.finally(()=>t.pop()).then(e=>c(e,e.callbacks)):(t.pop(),c(n))});return r.values=n,r.Provider=r,r[e]=rt(n),A.push(r),r},j=e=>Ze(Je(),e),rt=e=>({value:n,children:r})=>{if(!r)return;let i={children:[{tag:o(()=>{e.push(n)}),props:{}}]};Array.isArray(r)?i.children.push(...r.flat()):i.children.push(r),i.children.push({tag:o(()=>{e.pop()}),props:{}});let a={tag:``,props:i,type:``};return a[t]=t=>{throw e.pop(),t},a},it=e=>{let t=[e],n=rt(t);return n.values=t,n.Provider=n,A.push(n),n},at=0,ot=2,st=3,ct=4,lt=new WeakMap,ut=(e,t)=>!e||!t||e.length!==t.length||t.some((t,n)=>t!==e[n]),dt=void 0,ft=[],M=e=>{let t=()=>typeof e==`function`?e():e,r=F.at(-1);if(!r)return[t(),()=>{}];let[,i]=r,a=i[n][1][at]||=[],o=i[n][0]++;return a[o]||=[t(),e=>{let t=dt,n=a[o];if(typeof e==`function`&&(e=e(n[0])),!Object.is(e,n[0])){if(n[0]=e,ft.length){let[e,n]=ft.at(-1);Promise.all([e===3?i:Kt([e,!1,t],i),n]).then(([n])=>{if(!n||e!==2&&e!==3)return;let r=n.vC;requestAnimationFrame(()=>{setTimeout(()=>{r===n.vC&&Kt([+(e===3),!1,t],n)})})})}else Kt([0,!1,t],i)}}]},pt=(e,t,r)=>{let i=F.at(-1);if(!i)return;let[,a]=i,o=a[n][1][1]||=[],s=a[n][0]++,[c,,l]=o[s]||=[];if(ut(c,r)){l&&l();let n=()=>{i[e]=void 0,i[2]=t()},i=[r,void 0,void 0,void 0,void 0];i[e]=n,o[s]=i}},mt=(e,t)=>pt(3,e,t),N=(e,t)=>pt(1,e,t),ht=(e,t)=>{let r=F.at(-1);if(!r)return e;let[,i]=r,a=i[n][1][ot]||=[],o=i[n][0]++,s=a[o];return ut(s?.[1],t)?a[o]=[e,t]:e=a[o][0],e};function P(e){let t=F.at(-1);if(!t)return{current:e};let[,r]=t,i=r[n][1][ct]||=[],a=r[n][0]++;return i[a]||={current:e}}var gt=e=>{let t=lt.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(t=>lt.set(e,[t]),t=>lt.set(e,[void 0,t])),e},_t=(e,t)=>{let r=F.at(-1);if(!r)return e();let[,i]=r,a=i[n][1][st]||=[],o=i[n][0]++,s=a[o];return ut(s?.[1],t)&&(a[o]=[e(),t]),a[o][0]},vt=`_hp`,yt={Change:`Input`,DoubleClick:`DblClick`},bt={svg:`2000/svg`,math:`1998/Math/MathML`},F=[],xt=new WeakMap,I=void 0,St=()=>I,L=e=>`t`in e,Ct={onClick:[`click`,!1]},wt=e=>{if(!e.startsWith(`on`))return;if(Ct[e])return Ct[e];let t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){let[,n,r]=t;return Ct[e]=[(yt[n]||n).toLowerCase(),!!r]}},Tt=(e,t)=>I&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,`-$1`).toLowerCase():t,Et=e=>e==null||e===!1?null:e,Dt=(e,t)=>{`value`in t&&(e.value=Et(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},Ot=e=>e instanceof DOMException&&e.name===`InvalidCharacterError`,kt=(e,t,n)=>{t||={};for(let r in t){let i=t[r];if(r!==`children`&&(!n||n[r]!==i)){r=fe(r);let t=wt(r);if(t){if(n?.[r]!==i&&(n&&e.removeEventListener(t[0],n[r],t[1]),i!=null)){if(typeof i!=`function`)throw Error(`Event handler for "${r}" is not a function`);e.addEventListener(t[0],i,t[1])}}else if(r===`dangerouslySetInnerHTML`&&i)e.innerHTML=i.__html;else if(r===`ref`){xt.get(e)?.();let t;typeof i==`function`?t=i(e)||(()=>i(null)):i&&`current`in i&&(i.current=e,t=()=>i.current=null),xt.set(e,t)}else if(r===`style`){let t=e.style;typeof i==`string`?t.cssText=i:(t.cssText=``,i!=null&&Oe(i,t.setProperty.bind(t)))}else{if(r===`value`){let t=e.nodeName;if(t===`SELECT`)continue;if((t===`INPUT`||t===`TEXTAREA`)&&(e.value=Et(i),t===`TEXTAREA`)){e.textContent=i;continue}}else(r===`checked`&&e.nodeName===`INPUT`||r===`selected`&&e.nodeName===`OPTION`)&&(e[r]=i);let t=Tt(e,r);try{i==null||i===!1?e.removeAttribute(t):i===!0?e.setAttribute(t,``):typeof i==`string`||typeof i==`number`?e.setAttribute(t,i):e.setAttribute(t,i.toString())}catch(e){if(!Ot(e))throw e}}}}if(n)for(let r in n){let i=n[r];if(r!==`children`&&!(r in t)){r=fe(r);let t=wt(r);if(t)e.removeEventListener(t[0],i,t[1]);else if(r===`ref`)xt.get(e)?.(),xt.delete(e);else try{e.removeAttribute(Tt(e,r))}catch(e){if(!Ot(e))throw e}}}},At=(t,r)=>{r[n][0]=0,F.push([t,r]);let i=r.tag[e]||r.tag,a=i.defaultProps?{...i.defaultProps,...r.props}:r.props;try{return[i.call(null,a)]}finally{F.pop()}},jt=(e,t,r,i,a)=>{e.vR?.length&&(i.push(...e.vR),delete e.vR),typeof e.tag==`function`&&e[n][1][1]?.forEach(e=>a.push(e)),e.vC.forEach(e=>{if(L(e))r.push(e);else if(typeof e.tag==`function`||e.tag===``){e.c=t;let n=r.length;if(jt(e,t,r,i,a),e.s){for(let e=n;e<r.length;e++)r[e].s=!0;e.s=!1}}else r.push(e),e.vR?.length&&(i.push(...e.vR),delete e.vR)})},Mt=e=>{for(;e&&(e.tag===vt||!e.e);)e=e.tag===vt||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Nt=e=>{L(e)||(e[n]?.[1][1]?.forEach(e=>e[2]?.()),xt.get(e.e)?.(),e.p===2&&e.vC?.forEach(e=>e.p=2),e.vC?.forEach(Nt)),e.p||(e.e?.remove(),delete e.e),typeof e.tag==`function`&&(R.delete(e),Bt.delete(e),delete e[n][3],e.a=!0)},Pt=(e,t,n)=>{e.c=t,Lt(e,t,n)},Ft=(e,t)=>{if(t){for(let n=0,r=e.length;n<r;n++)if(e[n]===t)return n}},It=Symbol(),Lt=(e,t,n)=>{let r=[],i=[],a=[];jt(e,t,r,i,a),i.forEach(Nt);let o=n?void 0:t.childNodes,s,c=null;if(n)s=-1;else if(!o.length)s=0;else{let t=Ft(o,Mt(e.nN));t===void 0?s=Ft(o,r.find(e=>e.tag!==vt&&e.e)?.e)??-1:(c=o[t],s=t),s===-1&&(n=!0)}for(let e=0,i=r.length;e<i;e++,s++){let i=r[e],a;if(i.s&&i.e)a=i.e,i.s=!1;else{let e=n||!i.e;L(i)?(i.e&&i.d&&(i.e.textContent=i.t),i.d=!1,a=i.e||=document.createTextNode(i.t)):(a=i.e||=i.n?document.createElementNS(i.n,i.tag):document.createElement(i.tag),kt(a,i.props,i.pP),Lt(i,a,e),i.tag===`select`&&Dt(a,i.props))}i.tag===vt?s--:n?a.parentNode||t.appendChild(a):o[s]!==a&&o[s-1]!==a&&(o[s+1]===a?t.appendChild(o[s]):t.insertBefore(a,c||o[s]||null))}if(e.pP&&=void 0,a.length){let e=[],t=[];a.forEach(([,n,,r,i])=>{n&&e.push(n),r&&t.push(r),i?.()}),e.forEach(e=>e()),t.length&&requestAnimationFrame(()=>{t.forEach(e=>e())})}},Rt=(e,t)=>!!(e&&e.length===t.length&&e.every((e,n)=>e[1]===t[n][1])),zt=e=>{let t=new Map;for(let n of e){let e=n.key;if(t.has(e))return;t.set(e,n)}return t},Bt=new WeakMap,Vt=(e,a,o)=>{let s=!o&&a.pC;o&&(a.pC||=a.vC);let c;try{o||=typeof a.tag==`function`?At(e,a):b(a.props.children),o[0]?.tag===``&&o[0][t]&&(c=o[0][t],e[5].push([e,c,a]));let l=s?[...a.pC]:a.vC?[...a.vC]:void 0,u=[],d,f=(l?.length||0)*2,p;for(let t=0;t<o.length;t++){if(Array.isArray(o[t])){o.splice(t,1,...o[t].flat(1/0)),t--;continue}let s=Ht(o[t]);if(s){typeof s.tag==`function`&&!s.tag[r]&&(A.length>0&&(s[n][2]=A.map(e=>[e,e.values.at(-1)])),e[5]?.length&&(s[n][3]=e[5].at(-1)));let t;if(p&&s.key===void 0&&!L(s)&&(l=[...p.values()],p=void 0),p){let e=s.key,n=p.get(e);n&&(L(s)?L(n):n.tag===s.tag&&n.key===e)&&(t=n,p.delete(e))}else if(l&&l.length){let e=l[0];if(L(s)?L(e):!L(e)&&(s.key===void 0||e.key===s.key)&&e.tag===s.tag)t=l.shift();else{let e=l.findIndex(L(s)?e=>L(e):s.key===void 0?e=>e.tag===s.tag:e=>e.key===s.key&&e.tag===s.tag);f-=e===-1?l.length:e,e!==-1&&(t=l[e],l.splice(e,1)),f<0&&(f=1/0,p=zt(l))}}if(t){if(L(s))t.t!==s.t&&(t.t=s.t,t.d=!0),s=t;else{let e=t.pP=t.props;if(t.props=s.props,t.f||=s.f||a.f,typeof s.tag==`function`){let r=t[n][2];t[n][2]=s[n][2]||[],t[n][3]=s[n][3],!t.f&&((t.o||t)===s.o||t.tag[i]?.(e,t.props))&&Rt(r,t[n][2])&&(t.s=!0)}s=t}}else if(!L(s)&&I){let e=j(I);e&&(s.n=e)}if(!L(s)&&!s.s&&(Vt(e,s),delete s.f),u.push(s),d&&!d.s&&!s.s)for(let e=d;e&&!L(e);e=e.vC?.at(-1))e.nN=s;d=s}}l=p?[...p.values()]:l,a.vR=s?[...a.vC,...l||[]]:l||[],a.vC=u,s&&delete a.pC}catch(t){if(a.f=!0,t===It){if(c)return;throw t}let[r,i,o]=a[n]?.[3]||[];if(i){let n=()=>Kt([0,!1,e[2]],o),a=Bt.get(o)||[];a.push(n),Bt.set(o,a);let s=i(t,()=>{let e=Bt.get(o);if(e){let t=e.indexOf(n);if(t!==-1)return e.splice(t,1),n()}});if(s){if(e[0]===1)e[1]=!0;else if(Vt(e,o,[s]),(i.length===1||e!==r)&&o.c){Pt(o,o.c,!1);return}throw It}}throw t}finally{c&&e[5].pop()}},Ht=e=>{if(e!=null&&typeof e!=`boolean`){if(typeof e==`string`||typeof e==`number`)return{t:e.toString(),d:!0};if(`vR`in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag==`function`)e[n]=[0,[]];else{let t=bt[e.tag];t&&(I||=it(``),e.props.children=[{tag:I,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Ut=(e,t,n)=>{e.c===t&&(e.c=n,e.vC.forEach(e=>Ut(e,t,n)))},Wt=(e,t)=>{t[n][2]?.forEach(([e,t])=>{e.values.push(t)});try{Vt(e,t,void 0)}catch{return}t.a?delete t.a:(t[n][2]?.forEach(([e])=>{e.values.pop()}),(e[0]!==1||!e[1])&&Pt(t,t.c,!1))},R=new WeakMap,Gt=[],Kt=async(e,t)=>{e[5]||=[];let n=R.get(t);n&&n[0](void 0);let r,i=new Promise(e=>r=e);if(R.set(t,[r,()=>{e[2]?e[2](e,t,e=>{Wt(e,t)}).then(()=>r(t)):(Wt(e,t),r(t))}]),Gt.length)Gt.at(-1).add(t);else{await Promise.resolve();let e=R.get(t);e&&(R.delete(t),e[1]())}return i},qt=(e,t)=>{let n=[];n[5]=[],n[4]=!0,Vt(n,e,void 0),n[4]=!1;let r=document.createDocumentFragment();Pt(e,r,!0),Ut(e,r,t),t.replaceChildren(r)},Jt=e=>{let t=new Set;Gt.push(t),e(),t.forEach(e=>{let t=R.get(e);t&&(R.delete(e),t[1]())}),Gt.pop()},Yt=(e,t,n)=>({tag:vt,props:{children:e},key:n,e:t,p:1}),Xt=(e,t={})=>{let n;return Object.keys(t).length>0&&console.warn(`createRoot options are not supported yet`),{render(t){if(n===null)throw Error(`Cannot update an unmounted root`);n?n(t):qt(Ht({tag:()=>{let[e,r]=M(t);return n=r,e},props:{}}),e)},unmount(){n?.(null),n=null}}};function Zt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zt(e))&&(r&&(r+=` `),r+=t);return r}var Qt=it({pending:!1,data:null,method:null,action:null}),$t=new Set,en=e=>{$t.add(e),e.finally(()=>$t.delete(e))},tn=y({button:()=>_n,clearCache:()=>nn,composeRef:()=>rn,form:()=>mn,input:()=>gn,link:()=>dn,meta:()=>fn,script:()=>ln,style:()=>un,title:()=>cn}),nn=()=>{an=Object.create(null),on=Object.create(null)},rn=(e,t)=>_t(()=>n=>{let r;e&&(typeof e==`function`?r=e(n)||(()=>{e(null)}):e&&`current`in e&&(e.current=n,r=()=>{e.current=null}));let i=t(n);return()=>{i?.(),r?.()}},[e]),an=Object.create(null),on=Object.create(null),sn=(e,t,n,r,i)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};let a=document.head,{onLoad:o,onError:s,precedence:c,blocking:l,...u}=t,d=null,f=!1,p=m[e],h=ee(e,r),_=e=>e.getAttribute(`rel`)===`stylesheet`&&e.getAttribute(`data-precedence`)!==null,v;if(h){let n=a.querySelectorAll(e);LOOP:for(let r of n)if(e!==`link`||_(r)){for(let e of p)if(r.getAttribute(e)===t[e]){d=r;break LOOP}}if(!d){let n=p.reduce((e,n)=>t[n]===void 0?e:`${e}-${n}-${t[n]}`,e);f=!on[n],d=on[n]||=(()=>{let n=document.createElement(e);for(let e of p)t[e]!==void 0&&n.setAttribute(e,t[e]);return t.rel&&n.setAttribute(`rel`,t.rel),n})()}}else v=a.querySelectorAll(e);c=r?c??``:void 0,r&&(u[g]=c);let y=ht(t=>{if(h){if(e===`link`&&c!==void 0){let n=!1;for(let r of a.querySelectorAll(e)){let e=r.getAttribute(g);if(e===null||n&&e!==c){a.insertBefore(t,r);return}e===c&&(n=!0)}a.appendChild(t);return}let n=!1;for(let r of a.querySelectorAll(e)){if(n&&r.getAttribute(`data-precedence`)!==c){a.insertBefore(t,r);return}r.getAttribute(`data-precedence`)===c&&(n=!0)}a.appendChild(t)}else if(e===`link`)a.contains(t)||a.appendChild(t);else if(v){let n=!1;for(let e of v)if(e===t){n=!0;break}n||a.insertBefore(t,a.contains(v[0])?v[0]:a.querySelector(e)),v=void 0}},[h,c,e]),b=rn(t.ref,e=>{let t=p[0];if(n===2&&(e.innerHTML=``),(f||v)&&y(e),!s&&!o||!t)return;let r=an[e.getAttribute(t)]||=new Promise((t,n)=>{e.addEventListener(`load`,t),e.addEventListener(`error`,n)});o&&(r=r.then(o)),s&&(r=r.catch(s)),r.catch(()=>{})});if(i&&l===`render`){let n=m[e][0];if(n&&t[n]){let e=t[n];gt(an[e]||=new Promise((e,t)=>{y(d),d.addEventListener(`load`,e),d.addEventListener(`error`,t)}))}}let x={tag:e,type:e,props:{...u,ref:b},ref:b};return x.p=n,d&&(x.e=d),Yt(x,a)},cn=e=>{let t=St();return(t&&j(t))?.endsWith(`svg`)?{tag:`title`,props:e,type:`title`,ref:e.ref}:sn(`title`,e,void 0,!1,!1)},ln=e=>!e||[`src`,`async`].some(t=>!e[t])?{tag:`script`,props:e,type:`script`,ref:e.ref}:sn(`script`,e,1,!1,!0),un=e=>!e||![`href`,`precedence`].every(t=>t in e)?{tag:`style`,props:e,type:`style`,ref:e.ref}:(e[`data-href`]=e.href,delete e.href,sn(`style`,e,2,!0,!0)),dn=e=>!e||[`onLoad`,`onError`].some(t=>t in e)||e.rel===`stylesheet`&&(!(`precedence`in e)||`disabled`in e)?{tag:`link`,props:e,type:`link`,ref:e.ref}:sn(`link`,e,1,_(e),!0),fn=e=>sn(`meta`,e,void 0,!1,!1),pn=Symbol(),mn=e=>{let{action:t,...n}=e;typeof t!=`function`&&(n.action=t);let[r,i]=M([null,!1]),a=ht(async e=>{let n=e.isTrusted?t:e.detail[pn];if(typeof n!=`function`)return;e.preventDefault();let r=new FormData(e.target);i([r,!0]);let a=n(r);a instanceof Promise&&(en(a),await a),i([null,!0])},[]),o=rn(e.ref,e=>(e.addEventListener(`submit`,a),()=>{e.removeEventListener(`submit`,a)})),[s,c]=r;return r[1]=!1,{tag:Qt,props:{value:{pending:s!==null,data:s,method:s?`post`:null,action:s?t:null},children:{tag:`form`,props:{...n,ref:o},type:`form`,ref:o}},f:c}},hn=(e,{formAction:t,...n})=>{if(typeof t==`function`){let e=ht(e=>{e.preventDefault(),e.currentTarget.form.dispatchEvent(new CustomEvent(`submit`,{detail:{[pn]:t}}))},[]);n.ref=rn(n.ref,t=>(t.addEventListener(`click`,e),()=>{t.removeEventListener(`click`,e)}))}return{tag:e,props:n,type:e,ref:n.ref}},gn=e=>hn(`input`,e),_n=e=>hn(`button`,e);Object.assign(h,{title:cn,script:ln,style:un,link:dn,meta:fn,form:mn,input:gn,button:_n});var B=(e,t,n)=>(typeof e==`string`&&tn[e]&&(e=tn[e]),{tag:e,type:e,props:t,key:n,ref:t.ref}),vn=e=>B(``,e,void 0),yn=(({children:e,fallback:n,fallbackRender:r,onError:i})=>{let a=vn({children:e});return a[t]=e=>{if(e instanceof Promise)throw e;return i?.(e),r?.(e)||n},a}),bn=(({children:e,fallback:n})=>{let r=vn({children:e});return r[t]=(e,t)=>{if(!(e instanceof Promise))throw e;return e.finally(t),n},r}),xn=0,Sn=async e=>{try{return e.flat().map(Cn)}catch(t){if(t instanceof Promise){let n=tt();return await t,n(()=>Sn(e))}throw t}},Cn=e=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||Array.isArray(e))return D([e]);if(Fe(e))return Ie(e);{let t=e.toString();return t instanceof Promise?t:c(t)}},wn=async({children:e,fallback:t,fallbackRender:n,onError:r})=>{if(!e)return c(``);Array.isArray(e)||(e=[e]);let i=j(Tn)?.scriptNonce,a,o=()=>a||=tt(),l,u=()=>l||=(async()=>{let e=await t;if(e==null)return;if(typeof e==`string`||Array.isArray(e))return o()(()=>D([e]));if(Fe(e))return o()(()=>Ie(e));let n=await o()(()=>e.toString());return c(n,n.callbacks||e.callbacks)})(),d=async e=>{let t=await u();return o()(async()=>{r?.(e);let i=t===void 0?n&&ze(k,{},n(e))||``:t,a=await k({children:i}).toString();return c(a,a.callbacks||i.callbacks)})},f=[];try{f=e.map(Cn)}catch(t){let n=o();f=t instanceof Promise?[t.then(()=>n(()=>Sn(e))).catch(e=>d(e))]:[await d(t)]}if(f.some(e=>e instanceof Promise)){o();let e=xn++,t=RegExp(`(<template id="E:${e}"></template>)(.*?)(<!--E:${e}-->)`,`s`),n=!1,r=async({error:r,buffer:i})=>{if(n)return``;n=!0;let a=await d(r),o=a.callbacks;return i?(i[0]=i[0].replace(t,()=>a),o?.length?c(``,o):``):c(`<template data-hono-target="E:${e}">${a}</template><script>
|
|
2
2
|
((d,c,n) => {
|
|
3
3
|
c=d.currentScript.previousSibling
|
|
4
4
|
d=d.getElementById('E:${e}')
|
|
@@ -22,7 +22,7 @@ while(n.nodeType!=8||n.nodeValue!='E:${e}'){n=n.nextSibling}
|
|
|
22
22
|
n.remove()
|
|
23
23
|
d.remove()
|
|
24
24
|
})(document)
|
|
25
|
-
<\/script>`:``),n.callbacks))).catch(e=>r({error:e,buffer:o})));return c(f,g)}).catch(e=>r({error:e,buffer:o}))}])}return
|
|
25
|
+
<\/script>`:``),n.callbacks))).catch(e=>r({error:e,buffer:o})));return c(f,g)}).catch(e=>r({error:e,buffer:o}))}])}return k({children:f})};wn[e]=yn;var Tn=nt(null),En=0,Dn=e=>typeof e==`string`||Array.isArray(e)?D([e]):e==null||typeof e==`boolean`?``:Fe(e)?Ie(e):e.toString(),On=async({children:e,fallback:t})=>{Array.isArray(e)||(e=[e]);let r=j(Tn)?.scriptNonce,i=[],a={[n]:[0,[]]},o=()=>{F.pop()};try{a[n][0]=0,F.push([[],a]),i=e.map(Dn)}catch(t){if(t instanceof Promise){let r=tt();i=[t.then(()=>r(()=>(a[n][0]=0,F.push([[],a]),Sn(e).finally(o))))]}else throw t}finally{o()}if(i.some(e=>e instanceof Promise)){let e=En++,n=await(typeof t==`string`||Array.isArray(t)?D([t]):Fe(t)?Ie(t):t.toString());return c(`<template id="H:${e}"></template>${n}<!--/$-->`,[...n.callbacks||[],({phase:t,buffer:n,context:a})=>{if(t!==s.BeforeStream)return Promise.all(i).then(async i=>{i=i.flat();let o=i.join(``);n&&(n[0]=n[0].replace(RegExp(`<template id="H:${e}"></template>.*?<!--/\\$-->`,`s`),()=>o));let l=n?``:`<template data-hono-target="H:${e}">${o}</template><script${r?` nonce="${r}"`:``}>
|
|
26
26
|
((d,c,n) => {
|
|
27
27
|
c=d.currentScript.previousSibling
|
|
28
28
|
d=d.getElementById('H:${e}')
|
|
@@ -30,8 +30,8 @@ if(!d)return
|
|
|
30
30
|
do{n=d.nextSibling;n.remove()}while(n.nodeType!=8||n.nodeValue!='/$')
|
|
31
31
|
d.replaceWith(c.content)
|
|
32
32
|
})(document)
|
|
33
|
-
<\/script>`,u=i.map(e=>e.callbacks||[]).flat();return u.length?(t===s.Stream&&(l=await p(l,s.BeforeStream,!0,a)),c(l,u)):l})}])}return c(i.join(``))};
|
|
33
|
+
<\/script>`,u=i.map(e=>e.callbacks||[]).flat();return u.length?(t===s.Stream&&(l=await p(l,s.BeforeStream,!0,a)),c(l,u)):l})}])}return c(i.join(``))};On[e]=bn,new TextEncoder;var kn=3e3,An=`fh-cursor-face`,jn=`/favicon.svg`,Mn=e=>{let t=P(null),n=P(null),r=P({x:0,y:0,frame:0,hasPointer:!1}),i=()=>{cancelAnimationFrame(r.current.frame),r.current.frame=0,t.current?.classList.remove(`wg_cursorFace__root--visible`)},a=()=>{n.current?.matches||(r.current.hasPointer=!1,i())},o=()=>{r.current.frame===0&&(r.current.frame=requestAnimationFrame(()=>{r.current.frame=0;let e=t.current;e!==null&&(e.style.transform=`translate3d(
|
|
34
34
|
${Math.max(0,Math.min(r.current.x+16,document.documentElement.clientWidth-e.width-16))}px,
|
|
35
35
|
${Math.max(0,Math.min(r.current.y+16,document.documentElement.clientHeight-e.height-16))}px,
|
|
36
36
|
0
|
|
37
|
-
)`,e.classList.add(`wg_cursorFace__root--visible`))}))},s=e=>{!n.current?.matches||e.pointerType!==`mouse`?(r.current.hasPointer=!1,i()):(r.current.x=e.clientX,r.current.y=e.clientY,r.current.hasPointer=!0,o())},c=()=>{t.current?.classList.contains(`wg_cursorFace__root--visible`)&&o()},l=()=>{if(r.current.hasPointer)try{sessionStorage.setItem(xi,JSON.stringify({x:r.current.x,y:r.current.y}))}catch{}},u=()=>{try{let e=sessionStorage.getItem(xi);if(sessionStorage.removeItem(xi),e===null||!n.current?.matches)return;let t=JSON.parse(e);typeof t==`object`&&t&&`x`in t&&`y`in t&&typeof t.x==`number`&&typeof t.y==`number`&&Number.isFinite(t.x)&&Number.isFinite(t.y)&&(r.current.x=t.x,r.current.y=t.y,r.current.hasPointer=!0,o())}catch{}};return j(()=>{if(!e.ready)return;let t=new AbortController,r=matchMedia(`(hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)`);return n.current=r,u(),document.addEventListener(`pointermove`,s,{passive:!0,signal:t.signal}),document.addEventListener(`pointerdown`,s,{passive:!0,signal:t.signal}),document.documentElement.addEventListener(`pointerleave`,i,{signal:t.signal}),addEventListener(`blur`,i,{signal:t.signal}),addEventListener(`resize`,c,{signal:t.signal}),addEventListener(`pagehide`,l,{signal:t.signal}),addEventListener(`pageshow`,u,{signal:t.signal}),r.addEventListener(`change`,a,{signal:t.signal}),()=>{t.abort(),n.current=null,i()}},[e.ready]),$(`img`,{ref:e.ready?t:void 0,className:Q(`wg_cursorFace__root`),src:Si,width:24,height:24,alt:``,"aria-hidden":`true`,draggable:!1,"data-cursor-face":``})},wi=`다이어그램을 불러오지 못했습니다. 원문을 확인해 주세요.`,Ti=`다이어그램을 그리지 못했습니다. 원문을 확인해 주세요.`,Ei=5e4,Di={startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,maxTextSize:Ei},Oi={...Di,theme:`redux-dark-color`,themeVariables:{treeView:{labelColor:`currentColor`,lineColor:`currentColor`}}},ki=e=>{let t={requested:0,completed:0,running:!1};return async()=>{if(t.requested+=1,!t.running){t.running=!0;try{for(;t.completed!==t.requested;){let n=t.requested;try{await e.run()}catch(t){e.onError(t)}finally{t.completed=n}}}finally{t.running=!1}}}},Ai=e=>(gt(()=>{let t=new AbortController,n=matchMedia(`(prefers-color-scheme: dark)`),r=new Set,i=new Set,a=new Set,o=e=>{if(e.target instanceof Element&&e.target.closest(`[title]`)!==null)for(let e of a){e.hidden=!1;let t=e.getBoundingClientRect();e.style.left=`${scrollX+Math.max(0,Math.min(t.left,document.documentElement.clientWidth-t.width))}px`}},s=()=>{for(let e of a)e.hidden=!0},c=ki({run:async()=>{let c=[...document.querySelectorAll(`.wg_mermaid__root[data-mermaid]`)],l=c[0]?.dataset.mermaidModule;if(l===void 0||t.signal.aborted)return;let u=n.matches?`dark`:`light`,d=c.filter(e=>e.checkVisibility({visibilityProperty:!0})&&e.dataset.mermaidTheme!==u);if(d.length===0)return;let f=await import(l);if(await document.fonts.ready,!t.signal.aborted){for(let e of d){if(t.signal.aborted||!e.isConnected||n.matches!==(u===`dark`))return;let c=e.querySelector(`.wg_mermaid__source`),l=e.querySelector(`.wg_mermaid__result`),d=e.querySelector(`.wg_mermaid__error`);if(c===null||l===null||d===null)continue;let p=document.createElement(`div`);p.className=`wg_mermaid__measurement`,r.add(p),document.body.append(p);try{if(c.textContent.length>5e4)throw Error(`Mermaid source exceeds ${Ei} characters`);f.default.initialize(u===`dark`?Oi:Di);let r=await f.default.render(`fh-mermaid-${crypto.getRandomValues(new Uint32Array(4)).join(`-`)}`,c.textContent,p);if(t.signal.aborted||!e.isConnected||n.matches!==(u===`dark`))return;let i=l.shadowRoot??l.attachShadow({mode:`open`}),m=document.createElement(`div`);m.innerHTML=r.svg,i.replaceChildren(m),r.bindFunctions?.(m),m.addEventListener(`mouseover`,o,{signal:t.signal}),m.addEventListener(`mouseout`,s,{signal:t.signal});let h=document.querySelector(`.mermaidTooltip`);h!==null&&(h.classList.add(`wg_mermaid__tooltip`),a.add(h)),l.hidden=!1,c.hidden=!0,d.hidden=!0,e.dataset.mermaidStatus=`rendered`}catch(n){if(t.signal.aborted)return;l.hidden=!0,c.hidden=!1,d.textContent=Ti,d.hidden=!1,e.dataset.mermaidStatus=`error`,console.error(`for-humanity Mermaid rendering failed`,n)}finally{p.remove(),r.delete(p)}e.dataset.mermaidTheme=u,i.add(e)}e.onRendered?.()}},onError:e=>{if(!t.signal.aborted){for(let e of document.querySelectorAll(`.wg_mermaid__root[data-mermaid]`)){let t=e.querySelector(`.wg_mermaid__error`);t!==null&&(i.add(e),t.textContent=wi,t.hidden=!1)}console.error(`for-humanity Mermaid loading failed`,e)}}}),l=()=>{s(),c()};return n.addEventListener(`change`,l,{signal:t.signal}),addEventListener(`resize`,s,{signal:t.signal}),document.addEventListener(`toggle`,l,{capture:!0,signal:t.signal}),document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,l,{once:!0,signal:t.signal}):l(),()=>{t.abort();for(let e of r)e.remove();r.clear();for(let e of a)e.remove();a.clear();for(let e of i){let t=e.querySelector(`.wg_mermaid__source`),n=e.querySelector(`.wg_mermaid__result`),r=e.querySelector(`.wg_mermaid__error`);n?.shadowRoot?.replaceChildren(),n!==null&&(n.hidden=!0),t!==null&&(t.hidden=!1),r!==null&&(r.hidden=!0),delete e.dataset.mermaidTheme,delete e.dataset.mermaidStatus}i.clear()}},[e.onRendered]),null),ji=`(width < 1024px)`,Mi=`(width >= 1360px)`,Ni=e=>{let t=[...e.group.docs.map(e=>({kind:`document`,key:`doc:${e.id}`,doc:e})),...e.group.groups.map(e=>({kind:`group`,key:`group:${JSON.stringify(e.path)}`,group:e}))];return $(`ul`,{className:Q(`wg_navigationNavList__root`),"aria-label":e.group.name,children:t.map(t=>$(`li`,{className:Q(`wg_navigationNavList__item`),children:[t.kind===`document`&&$(D,{children:[$(`a`,{className:Q(`wg_navigationNavList__link`,{"wg_navigationNavList__link--active":t.doc.active}),href:`/${t.doc.id}/`,title:t.doc.label,"aria-current":t.doc.active?`page`:void 0,children:t.doc.name}),t.doc.children.length>0&&$(Ni,{group:{name:t.doc.name,path:e.group.path,docs:t.doc.children,groups:[]}})]}),t.kind===`group`&&$(D,{children:[$(`span`,{className:Q(`wg_navigationNavList__branch`),children:t.group.name}),$(Ni,{group:t.group})]})]},t.key))})},Pi=`Document navigation`,Fi=`Open navigation`,Ii=`Close navigation`,Li=`Navigation`,Ri=`On this page`,zi=e=>$(`nav`,{className:Q(`wg_navigationNav__root`),"aria-label":Pi,children:$(`div`,{className:Q(`wg_navigationNav__docs`),children:e.groups.map(e=>$(`section`,{className:Q(`wg_navigationNav__docGroup`),"aria-label":e.name,children:[$(`div`,{className:Q(`wg_navigationNav__group`),children:e.name}),$(Ni,{group:e})]},JSON.stringify(e.path)))})}),Bi=e=>{let[t,n]=A({above:!1,below:!1}),r=M(0),i=()=>{if(r.current=0,e.portRef.current===null)return;let t=e.portRef.current.scrollTop>1,i=e.portRef.current.scrollHeight-e.portRef.current.clientHeight-e.portRef.current.scrollTop>1;n(e=>e.above===t&&e.below===i?e:{above:t,below:i})},a=()=>{r.current===0&&(r.current=requestAnimationFrame(i))};return j(()=>{if(!e.ready||e.portRef.current===null)return;let t=new ResizeObserver(a);t.observe(e.portRef.current),e.portRef.current.firstElementChild!==null&&t.observe(e.portRef.current.firstElementChild);let n=!0;return addEventListener(`pageshow`,a),e.portRef.current.isConnected?i():queueMicrotask(()=>{n&&i()}),()=>{n=!1,t.disconnect(),removeEventListener(`pageshow`,a),cancelAnimationFrame(r.current),r.current=0}},[e.portRef,e.ready]),j(()=>{e.ready&&e.portRef.current?.isConnected&&i()},[e.children,e.ready]),$(`div`,{ref:e.ready?e.portRef:void 0,className:Q(`wg_navigation__scroll`,e.kind===`documents`&&`wg_navigation__documents`,e.kind===`outline`&&`wg_navigation__headings`,e.ready&&`wg_navigation__scroll--ready`,e.ready&&t.above&&`wg_navigation__scroll--above`,e.ready&&t.below&&`wg_navigation__scroll--below`),"data-navigation-scroll":e.kind,onClick:e.onClick,onScroll:t=>{e.onScroll?.(),a()},children:e.children})},Vi=e=>{if(!e)return null;try{return document.getElementById(decodeURIComponent(e.slice(1)))}catch(e){if(e instanceof URIError)return null;throw e}},Hi=e=>{let[t,n]=A();return j(()=>{let t=e.groups.flatMap(e=>e.sections).flatMap(e=>[e.heading,...e.subs.map(e=>e.heading)]),r={id:0},i=()=>{r.id=0;let e=t.flatMap(e=>{let t=Vi(`#${e.slug}`);return t?.checkVisibility()?[{slug:e.slug,top:t.getBoundingClientRect().top-Number.parseFloat(getComputedStyle(t).scrollMarginTop)}]:[]});n(e.findLast(e=>e.top<=1)?.slug??e[0]?.slug)},a=()=>{r.id===0&&(r.id=requestAnimationFrame(i))};return addEventListener(`scroll`,a,{passive:!0}),addEventListener(`resize`,a),addEventListener(`toggle`,a,!0),addEventListener(`pageshow`,a),document.addEventListener(`DOMContentLoaded`,a),document.readyState!==`loading`&&i(),()=>{cancelAnimationFrame(r.id),removeEventListener(`scroll`,a),removeEventListener(`resize`,a),removeEventListener(`toggle`,a,!0),removeEventListener(`pageshow`,a),document.removeEventListener(`DOMContentLoaded`,a)}},[e.groups]),$(`nav`,{className:Q(`wg_navigationToc__root`),"aria-label":Ri,children:[$(`div`,{className:Q(`wg_navigationToc__label`),children:Ri}),e.groups.map(e=>$(`div`,{className:Q(`wg_navigationToc__groupSection`,{"wg_navigationToc__groupSection--named":e.part!==void 0}),children:[e.part!==void 0&&$(`div`,{className:Q(`wg_navigationToc__group`),children:e.part}),$(`ul`,{className:Q(`wg_navigationToc__list`),children:e.sections.map(e=>$(`li`,{className:Q(`wg_navigationToc__item`),children:[$(`a`,{className:Q(`wg_navigationToc__link`,{"wg_navigationToc__link--active":e.heading.slug===t}),href:`#${e.heading.slug}`,"data-toc-link":``,"aria-current":e.heading.slug===t?`location`:void 0,children:e.heading.text}),e.subs.length>0&&$(`ul`,{className:Q(`wg_navigationToc__sub`),children:e.subs.map(e=>$(`li`,{className:Q(`wg_navigationToc__subItem`),children:$(`a`,{className:Q(`wg_navigationToc__subLink`,{"wg_navigationToc__subLink--active":e.heading.slug===t}),href:`#${e.heading.slug}`,"data-toc-sub-link":``,"aria-current":e.heading.slug===t?`location`:void 0,children:e.heading.text})},e.heading.slug))})]},e.heading.slug))})]},e.sections[0].heading.slug))]})},Ui=e=>{let t=Vi(e);for(let e=t?.closest(`details`);e;e=e.parentElement?.closest(`details`))e.open=!0;return t},Wi=e=>{let[t,n]=A(()=>e.stores===void 0?`desktop`:matchMedia(`(width < 1024px)`).matches?`drawer`:matchMedia(`(width >= 1360px)`).matches?`wide`:`desktop`),[r,i]=A(!1),a=M(null),o=M(null),s=M(null),c=M(null),l=M(null),u=M(null),d=M(null),f=M(null),p=M(null),m=M(null),h=M(t),g=M(null),_=M(!0),ee=JSON.stringify(e.data.groups,(e,t)=>e===`active`?void 0:t),v=()=>p.current===null||m.current===null?h.current:p.current.matches?`drawer`:m.current.matches?`wide`:`desktop`,te=()=>h.current===`drawer`?s.current:a.current,y=()=>h.current===`drawer`?c.current:o.current,b=()=>{let t=y(),n=l.current;e.stores===void 0||t===null||n===null||_.current||h.current!==v()||h.current===`drawer`&&u.current?.open!==!0||e.stores.scroll.setState(e=>({positions:{...e.positions,[h.current]:{navigation:ee,pathname:location.pathname,documents:t.scrollTop,outline:n.scrollTop}}}))},ne=()=>{h.current=v();let t=y();if(e.stores===void 0||t===null||l.current===null||h.current===`drawer`&&u.current?.open!==!0)return;let n=e.stores.scroll.getState().positions[h.current];n?.navigation===ee?(t.scrollTop=n.documents,l.current.scrollTop=n.pathname===location.pathname?n.outline:0):(t.scrollTop=0,l.current.scrollTop=0),_.current=!1,b(),t.dispatchEvent(new Event(`scroll`)),l.current.dispatchEvent(new Event(`scroll`))},re=e=>{u.current?.open!==!0&&(document.body.classList.remove(`wg_shell__root--drawerOpen`),i(!1))},x=()=>{b(),u.current?.close(),document.body.classList.remove(`wg_shell__root--drawerOpen`),i(!1)},S=e=>{v()!==`drawer`||u.current===null||u.current.open||(u.current.showModal(),document.body.classList.add(`wg_shell__root--drawerOpen`),i(!0),ne())},ie=e=>{x()},ae=e=>{e.preventDefault(),x()},oe=e=>{if(u.current===null||e.target!==u.current)return;let t=u.current.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&x()},se=e=>{if(b(),u.current?.open!==!0||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!(e.target instanceof Element))return;let t=e.target.closest(`a[href]`);if(!(!(t instanceof HTMLAnchorElement)||t.target!==``&&t.target!==`_self`||t.hasAttribute(`download`))&&(x(),t.origin===location.origin&&t.pathname===location.pathname&&t.search===location.search&&t.hash)){let e=Ui(t.hash);e!==null&&(e.tabIndex=-1,e.focus({preventScroll:!0}))}},C=()=>{let e=v();e!==h.current&&(document.activeElement instanceof HTMLElement&&(g.current={navigation:document.activeElement.closest(`[data-navigation]`)!==null,drawer:document.activeElement===d.current||document.activeElement.closest(`[data-navigation-drawer]`)!==null,href:document.activeElement.getAttribute(`href`)}),e!==`drawer`&&x(),_.current=!0,h.current=e,Jt(()=>n(e)))},ce=t=>{t.persisted&&e.stores!==void 0&&(_.current=!0,e.stores.scroll.persist.rehydrate(),C(),ne())};return j(()=>{if(e.stores!==void 0)return p.current=matchMedia(ji),m.current=matchMedia(Mi),p.current.addEventListener(`change`,C),m.current.addEventListener(`change`,C),addEventListener(`pagehide`,b),addEventListener(`pageshow`,ce),()=>{p.current?.removeEventListener(`change`,C),m.current?.removeEventListener(`change`,C),p.current=null,m.current=null,removeEventListener(`pagehide`,b),removeEventListener(`pageshow`,ce),document.body.classList.remove(`wg_shell__root--drawerOpen`)}},[e.stores]),j(()=>{if(e.stores===void 0)return;let n=!0,r=()=>{if(!n||(ne(),g.current===null))return;let e=te();if(t===`drawer`)g.current.navigation&&d.current?.focus({preventScroll:!0});else if(g.current.navigation&&e!==null){let t=g.current.href;[...e.querySelectorAll(`a[href]`)].find(e=>e.getAttribute(`href`)===t)?.focus({preventScroll:!0})}else g.current.drawer&&f.current?.focus({preventScroll:!0});g.current=null};return y()?.isConnected?r():queueMicrotask(r),()=>{n=!1}},[t,e.stores]),$(D,{children:[$(`div`,{className:Q(`wg_navigation__sidebar`,e.stores!==void 0&&`wg_navigation__sidebar--navigationReady`),children:[$(`div`,{className:Q(`wg_navigation__brandRow`),children:[$(`a`,{ref:e.stores===void 0?void 0:f,className:Q(`wg_navigation__brand`),href:`/`,"aria-current":e.data.home?`page`:void 0,children:e.data.title}),$(`button`,{ref:e.stores===void 0?void 0:d,className:Q(`wg_navigation__menuToggle`,e.stores!==void 0&&t===`drawer`&&`wg_navigation__menuToggle--visible`),type:`button`,"aria-label":Fi,"aria-controls":`fh-navigation-drawer`,"aria-expanded":String(r),"data-navigation-open":``,onClick:S,children:$(`svg`,{className:Q(`wg_navigation__menuIcon`),viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:$(`path`,{d:`M4 6h16M4 12h16M4 18h16`})})})]}),t!==`drawer`&&$(`div`,{ref:e.stores===void 0?void 0:a,className:Q(`wg_navigation__navigation`),"data-navigation":``,"data-navigation-layout":t,children:$(Bi,{portRef:o,kind:`documents`,ready:e.stores!==void 0,onScroll:b,onClick:se,children:$(zi,{groups:e.data.groups})})})]}),$(`aside`,{className:Q(`wg_navigation__tocRail`),"data-navigation-rail":``,children:$(`div`,{className:Q(`wg_navigation__outline`),"data-navigation-outline":``,children:$(Bi,{portRef:l,kind:`outline`,ready:e.stores!==void 0,onScroll:b,onClick:se,children:e.data.outline.length>0&&$(Hi,{groups:e.data.outline})})})}),$(`dialog`,{ref:e.stores===void 0?void 0:u,className:Q(`wg_navigation__drawer`),id:`fh-navigation-drawer`,"aria-labelledby":`fh-navigation-title`,"data-navigation-drawer":``,onClose:re,onCancel:ae,onClick:oe,children:[$(`div`,{className:Q(`wg_navigation__drawerHeader`),children:[$(`h2`,{className:Q(`wg_navigation__drawerTitle`),id:`fh-navigation-title`,children:Li}),$(`button`,{className:Q(`wg_navigation__drawerClose`),type:`button`,"aria-label":Ii,"data-navigation-close":``,onClick:ie,children:$(`svg`,{className:Q(`wg_navigation__menuIcon`),viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:$(`path`,{d:`m6 6 12 12M18 6 6 18`})})})]}),$(`div`,{className:Q(`wg_navigation__drawerContent`),"data-navigation-content":``,children:t===`drawer`&&$(`div`,{ref:e.stores===void 0?void 0:s,className:Q(`wg_navigation__navigation`),"data-navigation":``,"data-navigation-layout":t,children:$(Bi,{portRef:c,kind:`documents`,ready:e.stores!==void 0,onScroll:b,onClick:se,children:$(zi,{groups:e.data.groups})})})})]})]})},Gi=3e3,Ki=e=>{let t=M(null),n=M(0),r=M(null),i=M(null),a=M(null),o=()=>{clearTimeout(n.current),n.current=0,r.current?.abort(),r.current=null,t.current?.classList.remove(`wg_prose__headingText--highlighted`),t.current=null},s=e=>{e.target===document&&(clearTimeout(n.current),r.current?.abort(),r.current=null,n.current=window.setTimeout(o,Gi))},c=e=>{o(),t.current=e===null?null:e.querySelector(`.wg_prose__headingText`),t.current!==null&&(t.current.classList.add(`wg_prose__headingText--highlighted`),n.current=window.setTimeout(o,Gi),r.current=new AbortController,document.addEventListener(`scrollend`,s,{signal:r.current.signal}))},l=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target instanceof Element?e.target.closest(`a[href]`):null;if(t instanceof HTMLAnchorElement&&(t.target===``||t.target===`_self`)&&!t.hasAttribute(`download`)&&t.origin===location.origin&&t.pathname===location.pathname&&t.search===location.search&&t.hash){let e=Ui(t.hash);t.hash===location.hash&&c(e)}},u=()=>{let e=Ui(location.hash);e?.scrollIntoView(),c(e)},d=()=>{a.current?.abort()},f=async()=>{let e=i.current,t=location.hash,n=Ui(t);await document.fonts.ready,!(e===null||e.signal.aborted)&&(n!==null&&!a.current?.signal.aborted&&t===location.hash&&(n.scrollIntoView({behavior:`instant`}),c(n)),document.documentElement.style.removeProperty(`scroll-behavior`))},p=()=>{Ui(location.hash),document.readyState===`complete`&&f()};return j(()=>{let e=new AbortController;i.current=e,a.current=new AbortController,document.documentElement.style.scrollBehavior=`auto`,document.addEventListener(`click`,l,{signal:e.signal}),addEventListener(`hashchange`,u,{signal:e.signal}),addEventListener(`load`,f,{once:!0,signal:e.signal});for(let t of[`wheel`,`touchmove`,`keydown`,`mousedown`])addEventListener(t,d,{once:!0,passive:!0,signal:e.signal});return document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,p,{once:!0,signal:e.signal}):p(),()=>{e.abort(),i.current=null,a.current?.abort(),a.current=null,o(),document.documentElement.style.removeProperty(`scroll-behavior`)}},[]),$(D,{children:[$(`div`,{className:Q(`wg_shellControls__navigation`),children:$(Wi,{data:e.data,stores:e.stores})}),e.data.cursorFace&&$(Ci,{ready:e.stores!==void 0}),$(Ai,{onRendered:f})]})};function qi(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Ji=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return Ji(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Ji(t)(e)}}}},Yi=(e,t)=>(n,r,i)=>{let a={storage:qi(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return Ji(u.getItem.bind(u))(a.name).then(e=>{if(e){if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state]}return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{++s,u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},Xi=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Zi=(e=>e?Xi(e):Xi),Qi=Z({positions:Nr(Fr([`wide`,`desktop`,`drawer`]),Z({navigation:Y(),pathname:Y(),documents:Dr().check(Cr(0)),outline:Dr().check(Cr(0))}))}),$i=`for-humanity:navigation-scroll`,ea=e=>{let t=qi(()=>({getItem:t=>e.session().getItem(t),setItem:(t,n)=>{try{return e.session().setItem(t,n)}catch{}},removeItem:t=>{try{return e.session().removeItem(t)}catch{}}}));return{scroll:Zi()(Yi(()=>({positions:{}}),{name:$i,version:1,storage:t,merge:(e,t)=>{let n=Qi.safeParse(e);return n.success?n.data:t}}))}},ta=document.querySelector(`[data-shell-browser-root]`),na=document.getElementById(`fh-navigation-data`);if(ta!==null&&na!==null)try{let e=JSON.parse(na.textContent),t=Ur.parse(e),n=ea({session:()=>sessionStorage});Xt(ta).render($(Ki,{data:t,stores:n}))}catch(e){console.error(`for-humanity browser initialization failed`,e)}})();
|
|
37
|
+
)`,e.classList.add(`wg_cursorFace__root--visible`))}))},s=e=>{!n.current?.matches||e.pointerType!==`mouse`?(r.current.hasPointer=!1,i()):(r.current.x=e.clientX,r.current.y=e.clientY,r.current.hasPointer=!0,o())},c=()=>{t.current?.classList.contains(`wg_cursorFace__root--visible`)&&o()},l=()=>{if(r.current.hasPointer)try{sessionStorage.setItem(An,JSON.stringify({x:r.current.x,y:r.current.y}))}catch{}},u=()=>{try{let e=sessionStorage.getItem(An);if(sessionStorage.removeItem(An),e===null||!n.current?.matches)return;let t=JSON.parse(e);typeof t==`object`&&t&&`x`in t&&`y`in t&&typeof t.x==`number`&&typeof t.y==`number`&&Number.isFinite(t.x)&&Number.isFinite(t.y)&&(r.current.x=t.x,r.current.y=t.y,r.current.hasPointer=!0,o())}catch{}};return N(()=>{if(!e.ready)return;let t=new AbortController,r=matchMedia(`(hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)`);return n.current=r,u(),document.addEventListener(`pointermove`,s,{passive:!0,signal:t.signal}),document.addEventListener(`pointerdown`,s,{passive:!0,signal:t.signal}),document.documentElement.addEventListener(`pointerleave`,i,{signal:t.signal}),addEventListener(`blur`,i,{signal:t.signal}),addEventListener(`resize`,c,{signal:t.signal}),addEventListener(`pagehide`,l,{signal:t.signal}),addEventListener(`pageshow`,u,{signal:t.signal}),r.addEventListener(`change`,a,{signal:t.signal}),()=>{t.abort(),n.current=null,i()}},[e.ready]),B(`img`,{ref:e.ready?t:void 0,className:z(`wg_cursorFace__root`),src:jn,width:24,height:24,alt:``,"aria-hidden":`true`,draggable:!1,"data-cursor-face":``})},Nn=`다이어그램을 불러오지 못했습니다. 원문을 확인해 주세요.`,Pn=`다이어그램을 그리지 못했습니다. 원문을 확인해 주세요.`,Fn=5e4,In={startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,maxTextSize:Fn},Ln={...In,theme:`redux-dark-color`,themeVariables:{treeView:{labelColor:`currentColor`,lineColor:`currentColor`}}},Rn=e=>{let t={requested:0,completed:0,running:!1};return async()=>{if(t.requested+=1,!t.running){t.running=!0;try{for(;t.completed!==t.requested;){let n=t.requested;try{await e.run()}catch(t){e.onError(t)}finally{t.completed=n}}}finally{t.running=!1}}}},zn=e=>(mt(()=>{let t=new AbortController,n=matchMedia(`(prefers-color-scheme: dark)`),r=new Set,i=new Set,a=new Set,o=e=>{if(e.target instanceof Element&&e.target.closest(`[title]`)!==null)for(let e of a){e.hidden=!1;let t=e.getBoundingClientRect();e.style.left=`${scrollX+Math.max(0,Math.min(t.left,document.documentElement.clientWidth-t.width))}px`}},s=()=>{for(let e of a)e.hidden=!0},c=Rn({run:async()=>{let c=[...document.querySelectorAll(`.wg_mermaid__root[data-mermaid]`)],l=c[0]?.dataset.mermaidModule;if(l===void 0||t.signal.aborted)return;let u=n.matches?`dark`:`light`,d=c.filter(e=>e.checkVisibility({visibilityProperty:!0})&&e.dataset.mermaidTheme!==u);if(d.length===0)return;let f=await import(l);if(await document.fonts.ready,!t.signal.aborted){for(let e of d){if(t.signal.aborted||!e.isConnected||n.matches!==(u===`dark`))return;let c=e.querySelector(`.wg_mermaid__source`),l=e.querySelector(`.wg_mermaid__result`),d=e.querySelector(`.wg_mermaid__error`);if(c===null||l===null||d===null)continue;let p=document.createElement(`div`);p.className=`wg_mermaid__measurement`,r.add(p),document.body.append(p);try{if(c.textContent.length>5e4)throw Error(`Mermaid source exceeds ${Fn} characters`);f.default.initialize(u===`dark`?Ln:In);let r=await f.default.render(`fh-mermaid-${crypto.getRandomValues(new Uint32Array(4)).join(`-`)}`,c.textContent,p);if(t.signal.aborted||!e.isConnected||n.matches!==(u===`dark`))return;let i=document.createElement(`div`);i.innerHTML=r.svg,(l.shadowRoot??l.attachShadow({mode:`open`})).replaceChildren(i),r.bindFunctions?.(i),i.addEventListener(`mouseover`,o,{signal:t.signal}),i.addEventListener(`mouseout`,s,{signal:t.signal});let m=document.querySelector(`.mermaidTooltip`);m!==null&&(m.classList.add(`wg_mermaid__tooltip`),a.add(m)),l.hidden=!1,c.hidden=!0,d.hidden=!0,e.dataset.mermaidStatus=`rendered`}catch(n){if(t.signal.aborted)return;l.hidden=!0,c.hidden=!1,d.textContent=Pn,d.hidden=!1,e.dataset.mermaidStatus=`error`,console.error(`for-humanity Mermaid rendering failed`,n)}finally{p.remove(),r.delete(p)}e.dataset.mermaidTheme=u,i.add(e)}e.onRendered?.()}},onError:e=>{if(!t.signal.aborted){for(let e of document.querySelectorAll(`.wg_mermaid__root[data-mermaid]`)){let t=e.querySelector(`.wg_mermaid__error`);t!==null&&(i.add(e),t.textContent=Nn,t.hidden=!1)}console.error(`for-humanity Mermaid loading failed`,e)}}}),l=()=>{s(),c()};return n.addEventListener(`change`,l,{signal:t.signal}),addEventListener(`resize`,s,{signal:t.signal}),document.addEventListener(`toggle`,l,{capture:!0,signal:t.signal}),document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,l,{once:!0,signal:t.signal}):l(),()=>{t.abort();for(let e of r)e.remove();r.clear();for(let e of a)e.remove();a.clear();for(let e of i){let t=e.querySelector(`.wg_mermaid__source`),n=e.querySelector(`.wg_mermaid__result`),r=e.querySelector(`.wg_mermaid__error`);n!==null&&(n.shadowRoot?.replaceChildren(),n.hidden=!0),t!==null&&(t.hidden=!1),r!==null&&(r.hidden=!0),delete e.dataset.mermaidTheme,delete e.dataset.mermaidStatus}i.clear()}},[e.onRendered]),null),Bn=`(width < 1024px)`,Vn=`(width >= 1360px)`,Hn=e=>B(`ul`,{className:z(`wg_docList__root`),"aria-label":e.group.name,children:[...e.group.docs.map(e=>({kind:`document`,key:`doc:${e.id}`,doc:e})),...e.group.groups.map(e=>({kind:`group`,key:`group:${JSON.stringify(e.path)}`,group:e}))].map(t=>B(`li`,{className:z(`wg_docList__item`),children:[t.kind===`document`&&B(k,{children:[B(`a`,{className:z(`wg_docList__link`,{"wg_docList__link--active":t.doc.active}),href:`/${t.doc.id}/`,title:t.doc.label,"aria-current":t.doc.active?`page`:void 0,children:t.doc.name}),t.doc.children.length>0&&B(Hn,{group:{name:t.doc.name,path:e.group.path,docs:t.doc.children,groups:[]}})]}),t.kind===`group`&&B(k,{children:[B(`span`,{className:z(`wg_docList__branch`),children:t.group.name}),B(Hn,{group:t.group})]})]},t.key))}),Un=`Document navigation`,Wn=`Open navigation`,Gn=`Close navigation`,Kn=`Navigation`,qn=`On this page`,Jn=e=>B(`nav`,{className:z(`wg_docTree__root`),"aria-label":Un,children:B(`div`,{className:z(`wg_docTree__docs`),children:e.groups.map(e=>B(`section`,{className:z(`wg_docTree__docGroup`),"aria-label":e.name,children:[B(`div`,{className:z(`wg_docTree__group`),children:e.name}),B(Hn,{group:e})]},JSON.stringify(e.path)))})}),Yn=e=>{let[t,n]=M({above:!1,below:!1}),r=P(0),i=()=>{if(r.current=0,e.portRef.current===null)return;let t=e.portRef.current.scrollTop>1,i=e.portRef.current.scrollHeight-e.portRef.current.clientHeight-e.portRef.current.scrollTop>1;n(e=>e.above===t&&e.below===i?e:{above:t,below:i})},a=()=>{r.current===0&&(r.current=requestAnimationFrame(i))};return N(()=>{if(!e.ready||e.portRef.current===null)return;let t=new ResizeObserver(a),n=!0;return t.observe(e.portRef.current),e.portRef.current.firstElementChild!==null&&t.observe(e.portRef.current.firstElementChild),addEventListener(`pageshow`,a),e.portRef.current.isConnected?i():queueMicrotask(()=>{n&&i()}),()=>{n=!1,t.disconnect(),removeEventListener(`pageshow`,a),cancelAnimationFrame(r.current),r.current=0}},[e.portRef,e.ready]),N(()=>{e.ready&&e.portRef.current?.isConnected&&i()},[e.children,e.ready]),B(`div`,{ref:e.ready?e.portRef:void 0,className:z(`wg_sidebar__scroll`,e.kind===`documents`&&`wg_sidebar__docsScroll`,e.kind===`outline`&&`wg_sidebar__tocScroll`,e.ready&&`wg_sidebar__scroll--ready`,e.ready&&(t.above||t.below)&&`wg_sidebar__scroll--overflow`,e.ready&&t.above&&`wg_sidebar__scroll--above`,e.ready&&t.below&&`wg_sidebar__scroll--below`),"data-sidebar-scroll":e.kind,onClick:e.onClick,onScroll:t=>{e.onScroll?.(),a()},children:e.children})},Xn=`--wg-article-anchor-shift`,Zn=[`wheel`,`touchmove`,`keydown`,`mousedown`],Qn=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return null;let t=e.target instanceof Element?e.target.closest(`a[href]`):null;return t instanceof HTMLAnchorElement&&(t.target===``||t.target===`_self`)&&!t.hasAttribute(`download`)&&t.origin===location.origin&&t.pathname===location.pathname&&t.search===location.search&&t.hash!==``?t:null},$n=e=>{if(e)try{return decodeURIComponent(e.slice(1))}catch(e){if(e instanceof URIError)return;throw e}},er=e=>{let t=$n(e);return t===void 0?null:document.getElementById(t)},tr=()=>{let e=performance.getEntriesByType(`navigation`)[0];return e instanceof PerformanceNavigationTiming&&(e.type===`reload`||e.type===`back_forward`)},nr=e=>{let[t,n]=M();return N(()=>{let t=e.groups.flatMap(e=>e.sections).flatMap(e=>[e.heading,...e.subs.map(e=>e.heading)]),r={id:0},i=new AbortController,a={slug:tr()?void 0:$n(location.hash)},o=()=>{r.id===0&&(r.id=requestAnimationFrame(()=>{r.id=0;let e=t.flatMap(e=>{let t=er(`#${e.slug}`);return t?.checkVisibility()?[{slug:e.slug,top:t.getBoundingClientRect().top-Number.parseFloat(getComputedStyle(t).scrollMarginTop)}]:[]});n(e.find(e=>e.slug===a.slug)?.slug??e.findLast(e=>e.top<=1)?.slug??e[0]?.slug)}))},s=()=>{for(let e of t)er(`#${e.slug}`)?.style.removeProperty(Xn);let e=t.flatMap(e=>{let t=er(`#${e.slug}`);return t?.checkVisibility()?[{target:t,arrival:scrollY+t.getBoundingClientRect().top-Number.parseFloat(getComputedStyle(t).scrollMarginTop)}]:[]}),n=e.at(-1),r=document.documentElement.scrollHeight-innerHeight;if(n!==void 0&&r>0&&n.arrival>r){let t=Math.max(0,r-innerHeight),i=(r-t)/(n.arrival-t);for(let n of e)n.arrival>t&&n.target.style.setProperty(Xn,`${(n.arrival-t)*(1-i)}px`)}o()},c=e=>{let t=Qn(e);t!==null&&(a.slug=$n(t.hash),o())},l=()=>{a.slug=$n(location.hash),o()},u=()=>{a.slug=void 0},d=new ResizeObserver(s);d.observe(document.body),addEventListener(`scroll`,o,{passive:!0,signal:i.signal}),addEventListener(`resize`,s,{signal:i.signal}),addEventListener(`toggle`,o,{capture:!0,signal:i.signal}),addEventListener(`pageshow`,o,{signal:i.signal}),addEventListener(`hashchange`,l,{signal:i.signal}),document.addEventListener(`DOMContentLoaded`,s,{signal:i.signal}),document.addEventListener(`click`,c,{signal:i.signal});for(let e of Zn)addEventListener(e,u,{passive:!0,signal:i.signal});return document.readyState!==`loading`&&s(),()=>{cancelAnimationFrame(r.id),i.abort(),d.disconnect();for(let e of t)er(`#${e.slug}`)?.style.removeProperty(Xn)}},[e.groups]),B(`nav`,{className:z(`wg_toc__root`),"aria-label":qn,children:[B(`div`,{className:z(`wg_toc__label`),children:qn}),e.groups.map(e=>B(`div`,{className:z(`wg_toc__groupSection`,{"wg_toc__groupSection--named":e.part!==void 0}),children:[e.part!==void 0&&B(`div`,{className:z(`wg_toc__group`),children:e.part}),B(`ul`,{className:z(`wg_toc__list`),children:e.sections.map(e=>B(`li`,{className:z(`wg_toc__item`),children:[B(`a`,{className:z(`wg_toc__link`,{"wg_toc__link--active":e.heading.slug===t}),href:`#${e.heading.slug}`,"data-toc-link":``,"aria-current":e.heading.slug===t?`location`:void 0,children:e.heading.text}),e.subs.length>0&&B(`ul`,{className:z(`wg_toc__sub`),children:e.subs.map(e=>B(`li`,{className:z(`wg_toc__subItem`),children:B(`a`,{className:z(`wg_toc__subLink`,{"wg_toc__subLink--active":e.heading.slug===t}),href:`#${e.heading.slug}`,"data-toc-sub-link":``,"aria-current":e.heading.slug===t?`location`:void 0,children:e.heading.text})},e.heading.slug))})]},e.heading.slug))})]},e.sections[0].heading.slug))]})},rr=e=>{let t=er(e);for(let e=t?.closest(`details`);e;e=e.parentElement?.closest(`details`))e.open=!0;return t},ir=e=>{let[t,n]=M(()=>e.stores===void 0?`desktop`:matchMedia(`(width < 1024px)`).matches?`drawer`:matchMedia(`(width >= 1360px)`).matches?`wide`:`desktop`),[r,i]=M(!1),a=P(null),o=P(null),s=P(null),c=P(null),l=P(null),u=P(null),d=P(null),f=P(null),p=P(null),m=P(null),h=P(t),g=P(null),_=P(!0),ee=JSON.stringify(e.data.groups,(e,t)=>e===`active`?void 0:t),v=()=>p.current===null||m.current===null?h.current:p.current.matches?`drawer`:m.current.matches?`wide`:`desktop`,y=()=>h.current===`drawer`?c.current:o.current,b=()=>{let t=y(),n=l.current;e.stores===void 0||t===null||n===null||_.current||h.current!==v()||h.current===`drawer`&&u.current?.open!==!0||e.stores.scroll.setState(e=>({positions:{...e.positions,[h.current]:{navigation:ee,pathname:location.pathname,documents:t.scrollTop,outline:n.scrollTop}}}))},x=()=>{h.current=v();let t=y();if(e.stores===void 0||t===null||l.current===null||h.current===`drawer`&&u.current?.open!==!0)return;let n=e.stores.scroll.getState().positions[h.current];n?.navigation===ee?(t.scrollTop=n.documents,l.current.scrollTop=n.pathname===location.pathname?n.outline:0):(t.scrollTop=0,l.current.scrollTop=0),_.current=!1,b(),t.dispatchEvent(new Event(`scroll`)),l.current.dispatchEvent(new Event(`scroll`))},te=e=>{u.current?.open!==!0&&(document.body.classList.remove(`wg_shell__root--drawerOpen`),i(!1))},S=()=>{b(),u.current?.close(),document.body.classList.remove(`wg_shell__root--drawerOpen`),i(!1)},C=e=>{v()!==`drawer`||u.current===null||u.current.open||(u.current.showModal(),document.body.classList.add(`wg_shell__root--drawerOpen`),i(!0),x())},w=e=>{S()},ne=e=>{e.preventDefault(),S()},re=e=>{if(u.current===null||e.target!==u.current)return;let t=u.current.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&S()},ie=e=>{if(b(),u.current?.open!==!0||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!(e.target instanceof Element))return;let t=e.target.closest(`a[href]`);if(!(!(t instanceof HTMLAnchorElement)||t.target!==``&&t.target!==`_self`||t.hasAttribute(`download`))&&(S(),t.origin===location.origin&&t.pathname===location.pathname&&t.search===location.search&&t.hash)){let e=rr(t.hash);e!==null&&(e.tabIndex=-1,e.focus({preventScroll:!0}))}},T=()=>{let e=v();e!==h.current&&(document.activeElement instanceof HTMLElement&&(g.current={navigation:document.activeElement.closest(`[data-sidebar-docs]`)!==null,drawer:document.activeElement===d.current||document.activeElement.closest(`[data-sidebar-drawer]`)!==null,href:document.activeElement.getAttribute(`href`)}),e!==`drawer`&&S(),_.current=!0,h.current=e,Jt(()=>n(e)))},ae=t=>{t.persisted&&e.stores!==void 0&&(_.current=!0,e.stores.scroll.persist.rehydrate(),T(),x())};return N(()=>{if(e.stores!==void 0)return p.current=matchMedia(Bn),m.current=matchMedia(Vn),p.current.addEventListener(`change`,T),m.current.addEventListener(`change`,T),addEventListener(`pagehide`,b),addEventListener(`pageshow`,ae),()=>{p.current?.removeEventListener(`change`,T),m.current?.removeEventListener(`change`,T),p.current=null,m.current=null,removeEventListener(`pagehide`,b),removeEventListener(`pageshow`,ae),document.body.classList.remove(`wg_shell__root--drawerOpen`)}},[e.stores]),N(()=>{if(e.stores===void 0)return;let n=!0,r=()=>{if(!n||(x(),g.current===null))return;let e=h.current===`drawer`?s.current:a.current;if(t===`drawer`)g.current.navigation&&d.current?.focus({preventScroll:!0});else if(g.current.navigation&&e!==null){let t=g.current.href;[...e.querySelectorAll(`a[href]`)].find(e=>e.getAttribute(`href`)===t)?.focus({preventScroll:!0})}else g.current.drawer&&f.current?.focus({preventScroll:!0});g.current=null};return y()?.isConnected?r():queueMicrotask(r),()=>{n=!1}},[t,e.stores]),B(k,{children:[B(`div`,{className:z(`wg_sidebar__docsColumn`,e.stores!==void 0&&`wg_sidebar__docsColumn--ready`),children:[B(`div`,{className:z(`wg_sidebar__brandRow`),children:[B(`a`,{ref:e.stores===void 0?void 0:f,className:z(`wg_sidebar__brand`),href:`/`,"aria-current":e.data.home?`page`:void 0,children:e.data.title}),B(`button`,{ref:e.stores===void 0?void 0:d,className:z(`wg_sidebar__menuToggle`,e.stores!==void 0&&t===`drawer`&&`wg_sidebar__menuToggle--visible`),type:`button`,"aria-label":Wn,"aria-controls":`fh-navigation-drawer`,"aria-expanded":String(r),onClick:C,children:B(`svg`,{className:z(`wg_sidebar__menuIcon`),viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:B(`path`,{d:`M4 6h16M4 12h16M4 18h16`})})})]}),t!==`drawer`&&B(`div`,{ref:e.stores===void 0?void 0:a,className:z(`wg_sidebar__docsPanel`),"data-sidebar-docs":``,"data-sidebar-layout":t,children:B(Yn,{portRef:o,kind:`documents`,ready:e.stores!==void 0,onScroll:b,onClick:ie,children:B(Jn,{groups:e.data.groups})})})]}),B(`aside`,{className:z(`wg_sidebar__tocColumn`),"data-sidebar-toc":``,children:B(`div`,{className:z(`wg_sidebar__tocPanel`),children:B(Yn,{portRef:l,kind:`outline`,ready:e.stores!==void 0,onScroll:b,onClick:ie,children:e.data.outline.length>0&&B(nr,{groups:e.data.outline})})})}),B(`dialog`,{ref:e.stores===void 0?void 0:u,className:z(`wg_sidebar__drawer`),id:`fh-navigation-drawer`,"aria-labelledby":`fh-navigation-title`,"data-sidebar-drawer":``,onClose:te,onCancel:ne,onClick:re,children:[B(`div`,{className:z(`wg_sidebar__drawerHeader`),children:[B(`h2`,{className:z(`wg_sidebar__drawerTitle`),id:`fh-navigation-title`,children:Kn}),B(`button`,{className:z(`wg_sidebar__drawerClose`),type:`button`,"aria-label":Gn,onClick:w,children:B(`svg`,{className:z(`wg_sidebar__menuIcon`),viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:B(`path`,{d:`m6 6 12 12M18 6 6 18`})})})]}),B(`div`,{className:z(`wg_sidebar__drawerContent`),children:t===`drawer`&&B(`div`,{ref:e.stores===void 0?void 0:s,className:z(`wg_sidebar__docsPanel`),"data-sidebar-docs":``,"data-sidebar-layout":t,children:B(Yn,{portRef:c,kind:`documents`,ready:e.stores!==void 0,onScroll:b,onClick:ie,children:B(Jn,{groups:e.data.groups})})})})]})]})},ar=e=>{let t=P(null),n=P(0),r=P(null),i=P(null),a=P(null),o=()=>{clearTimeout(n.current),n.current=0,r.current?.abort(),r.current=null,t.current?.classList.remove(`wg_article__headingText--highlighted`),t.current=null},s=e=>{e.target===document&&(clearTimeout(n.current),r.current?.abort(),r.current=null,n.current=window.setTimeout(o,kn))},c=e=>{o(),t.current=e===null?null:e.querySelector(`.wg_article__headingText`),t.current!==null&&(t.current.classList.add(`wg_article__headingText--highlighted`),n.current=window.setTimeout(o,kn),r.current=new AbortController,document.addEventListener(`scrollend`,s,{signal:r.current.signal}))},l=e=>{let t=Qn(e);if(t===null)return;let n=rr(t.hash);t.hash===location.hash&&c(n)},u=()=>{let e=rr(location.hash);e?.scrollIntoView(),c(e)},d=()=>{a.current?.abort(),document.documentElement.style.scrollBehavior=`smooth`},f=async()=>{let e=i.current,t=location.hash,n=rr(t);tr()||(await document.fonts.ready,!(e===null||e.signal.aborted)&&(n!==null&&!a.current?.signal.aborted&&t===location.hash&&(n.scrollIntoView({behavior:`instant`}),c(n)),document.documentElement.style.scrollBehavior=`smooth`))},p=()=>{rr(location.hash),document.readyState===`complete`&&f()};return N(()=>{let e=new AbortController;i.current=e,a.current=new AbortController,document.addEventListener(`click`,l,{signal:e.signal}),addEventListener(`hashchange`,u,{signal:e.signal}),addEventListener(`load`,f,{once:!0,signal:e.signal});for(let t of Zn)addEventListener(t,d,{once:!0,passive:!0,signal:e.signal});return document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,p,{once:!0,signal:e.signal}):p(),()=>{e.abort(),i.current=null,a.current?.abort(),a.current=null,o(),document.documentElement.style.removeProperty(`scroll-behavior`)}},[]),B(k,{children:[B(`div`,{className:z(`wg_shellControls__sidebar`),children:B(ir,{data:e.data,stores:e.stores})}),e.data.cursorFace&&B(Mn,{ready:e.stores!==void 0}),B(zn,{onRendered:f})]})};function or(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function sr(e,t){return typeof t==`bigint`?t.toString():t}var cr=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function lr(e){return new cr(e)}function ur(e){return e==null}function dr(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var fr=Symbol(`evaluating`);function pr(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==fr)return r===void 0&&(r=fr,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function mr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}var hr=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function gr(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function _r(e){if(gr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return gr(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}var vr=new Set([`string`,`number`,`symbol`]);function yr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function br(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function V(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function xr(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}function H(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Sr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function U(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Cr(e){return typeof e==`string`?e:e?.message}function wr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function W(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Cr(e.inst?._zod.def?.error?.(e))??Cr(a?.(e))??Cr(t?.error?.(e))??Cr(n.customError?.(e))??Cr(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Tr=/[\uD800-\uDBFF]/;function Er(e){let t=e.length;if(!Tr.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Dr(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Or(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):jr(e,n,r.value)}}function kr(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ar(e,t,n){return kr(e,t,n,!1)}function jr(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:kr(this,t,n.bind(this))},set(e){kr(this,t,e)}})}function Mr(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Nr,G=!1,Pr={configurable:!0,get(){G=!0}};function K(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Nr!==e._zod?Nr=void 0:(Nr=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Pr);let e=G;G=!1;try{let r=n(this);return G?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),G||=e,r}catch(n){throw delete this[t],G||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Fr(e,t,n,r){let i=Mr(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Ir,Lr={value:void 0,enumerable:!1},Rr=`captureStackTrace`in Error?Error:null;function zr(e){let t=Rr;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Rr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function q(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Lr.value=new a(r);try{Object.defineProperty(n,"_zod",Lr)}finally{Lr.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Or(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?zr(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Br=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}};(Ir=globalThis).__zod_globalConfig??(Ir.__zod_globalConfig={});var Vr=globalThis.__zod_globalConfig;function J(e){return e&&Object.assign(Vr,e),Vr}function Hr(){let e=this._zod;return e.message??=JSON.stringify(e.def,sr,2),e.message}function Ur(e){this._zod.message=e}var Wr={get:Hr,set:Ur,enumerable:!0,configurable:!0},Gr={value:void 0,enumerable:!1},Kr=new WeakSet([Object.prototype,Error.prototype]),qr=(e,t)=>{e.name=`$ZodError`,Gr.value=t,Object.defineProperty(e,"issues",Gr),Gr.value=void 0,Object.defineProperty(e,"message",Wr);let n=Object.getPrototypeOf(e);Kr.has(n)||(Kr.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))};q(`$ZodError`,qr);var Jr=q(`$ZodError`,qr,void 0,{Parent:Error}),Yr=(e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Br;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>W(e,o,J())));throw hr(n,a?.callee??t),n}return s.value};return t})(Jr),Xr=(e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>W(e,o,J())));throw hr(n,a?.callee??t),n}return s.value};return t})(Jr),Zr=(e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Br;return a.issues.length?Qr(e,a.issues,i):{success:!0,data:a.value}})(Jr);function Qr(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>W(e,n,J()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var $r=(e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Qr(e,a.issues,i):{success:!0,data:a.value}})(Jr),ei=/^[\s\S]{0,}$/,ti=/^-?\d+(?:\.\d+)?$/,ni=/^(?:true|false)$/i,ri=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ii=e=>{let t=e.value;return!ur(t)&&t.length!==void 0},ai={number:`number`,bigint:`bigint`,object:`date`},oi=q(`$ZodCheckGreaterThan`,(e,t)=>{ri.init(e,t);let n=ai[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ai[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),si=q(`$ZodCheckMinLength`,(e,t)=>{var n;ri.init(e,t),(n=e._zod.def).when??(n.when=ii),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Er(r):i)>=t.minimum)return;let a=Dr(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ci={major:4,minor:6,patch:5},Y=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ci;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=H(t),a;for(let o of n){if(o._zod.def.when){if(Sr(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Br;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(wr(t.issues,n,e),i||=H(t,n))});else{if(t.issues.length===n)continue;wr(t.issues,n,e),i||=H(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(H(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Br;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Br;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ar(this,`~standard`,di(this))},set"~standard"(e){kr(this,`~standard`,e)}}),li=(e,t)=>e.issues.length?{issues:e.issues.map(e=>W(e,t,J()))}:{value:e.value};async function ui(e,t){let n={async:!0};return li(await e._zod.run({value:t,issues:[]},n),n)}function di(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return li(r,n)}catch{}return ui(e,t)},vendor:`zod`,version:1}}var fi=q(`$ZodString`,(e,t)=>{Y.init(e,t),e._zod.pattern=t.pattern??ei,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),pi=q(`$ZodNumber`,(e,t)=>{Y.init(e,t),e._zod.pattern=ti,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),mi=q(`$ZodBoolean`,(e,t)=>{Y.init(e,t),e._zod.pattern=ni,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}});function hi(e,t,n){e.issues.length&&t.issues.push(...U(n,e.issues)),t.value[n]=e.value}var gi=q(`$ZodArray`,(e,t)=>{Y.init(e,t);let n=Vr.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>hi(t,r,e)));else if(hi(c,r,e),s&&c.issues.length!==0&&H(c))break}return o.length?Promise.all(o).then(()=>r):r}});function _i(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...U(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var vi=[];function yi(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:vi,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=xr(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function bi(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(H(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>_i(e,n,i,t,d,f))):_i(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var xi=q(`$ZodObject`,(e,t)=>{Y.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=lr(()=>yi(t));K(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||mr(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=gr,o=t.catchall,s,c=Vr.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(H(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>_i(n,t,e,r,a,o))):_i(s,t,e,r,a,o)}return o?bi(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Si=q(`$ZodRecord`,(e,t)=>{Y.init(e,t);let n=Vr.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!_r(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>W(e,i,J())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...U(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...U(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&ti.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>W(e,i,J())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...U(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...U(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Ci=q(`$ZodEnum`,(e,t)=>{Y.init(e,t);let n=or(t.entries),r=new Set(n);e._zod.values=r,K(e,`pattern`,e=>{let t=or(e.def.entries).filter(e=>vr.has(typeof e));return RegExp(t.length?`^(${t.map(e=>yr(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}});function wi(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ti=q(`$ZodOptional`,(e,t)=>{Y.init(e,t),K(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,K(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),K(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${dr(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>wi(e,t)):wi(e,r)}return t.innerType._zod.run(e,n)}}),Ei=q(`$ZodLazy`,(e,t)=>{Y.init(e,t),pr(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),K(e,`pattern`,e=>e.innerType?._zod?.pattern),K(e,`propValues`,e=>e.innerType?._zod?.propValues),K(e,`optin`,e=>e.innerType?._zod?.optin??void 0),K(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)});function Di(e){return e.checks&&=[...e.checks],e}function Oi(e,t){return new e(Di({type:`string`,...V(t)}))}function ki(e,t){return new e(Di({type:`number`,checks:[],...V(t)}))}function Ai(e,t){return new e({type:`boolean`,...V(t)})}function ji(e,t){return new oi({check:`greater_than`,...V(t),value:e,inclusive:!0})}function Mi(e,t){return new si({check:`min_length`,...V(t),minimum:e})}var X=q(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);Y.init(e,t),e.def=t,e.type=t.type},{get with(){return this.check},set with(e){kr(this,`with`,e)},parse(e,t){return Yr(this,e,t,{callee:this.parse})},parseAsync(e,t){return Xr(this,e,t,{callee:this.parseAsync})},safeParse(e,t){return Zr(this,e,t)},safeParseAsync(e,t){return $r(this,e,t)},check(...e){let t=this.def;return this.clone({...t,checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0})},clone(e,t){return br(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},apply(e,...t){return t.length===0?e(this):e(this,...t)}}),Ni=q(`ZodMiniString`,(e,t)=>{fi.init(e,t),X.init(e,t)});function Z(e){return Oi(Ni,e)}var Pi=q(`ZodMiniNumber`,(e,t)=>{pi.init(e,t),X.init(e,t)});function Fi(e){return ki(Pi,e)}var Ii=q(`ZodMiniBoolean`,(e,t)=>{mi.init(e,t),X.init(e,t)});function Li(e){return Ai(Ii,e)}var Ri=q(`ZodMiniArray`,(e,t)=>{gi.init(e,t),X.init(e,t)});function Q(e,t){return new Ri({type:`array`,element:e,...V(t)})}var zi=q(`ZodMiniObject`,(e,t)=>{xi.init(e,t),X.init(e,t),Fr(e,`shape`,e=>e._zod.def.shape,!1)});function $(e,t){return new zi({type:`object`,shape:e??{},...V(t)})}var Bi=q(`ZodMiniRecord`,(e,t)=>{Si.init(e,t),X.init(e,t)});function Vi(e,t,n){return new Bi({type:`record`,keyType:e,valueType:t,...V(n),partial:!0})}var Hi=q(`ZodMiniEnum`,(e,t)=>{Ci.init(e,t),X.init(e,t),e.options=[...e._zod.values]});function Ui(e,t){return new Hi({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...V(t)})}var Wi=q(`ZodMiniOptional`,(e,t)=>{Ti.init(e,t),X.init(e,t)});function Gi(e){return new Wi({type:`optional`,innerType:e})}var Ki=q(`ZodMiniLazy`,(e,t)=>{Ei.init(e,t),X.init(e,t)});function qi(e){return new Ki({type:`lazy`,getter:e})}var Ji=$({id:Z(),name:Z(),label:Z(),active:Li(),children:qi(()=>Q(Ji))}),Yi=$({name:Z(),path:Q(Z()),docs:Q(Ji),groups:qi(()=>Q(Yi))}),Xi=$({depth:Fi(),slug:Z(),text:Z()}),Zi=$({title:Z(),groups:Q(Yi),outline:Q($({part:Gi(Z()),sections:Q($({heading:Xi,part:Gi(Z()),subs:Q($({heading:Xi}))})).check(Mi(1))})),home:Li(),cursorFace:Li()});function Qi(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var $i=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return $i(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return $i(t)(e)}}}},ea=(e,t)=>(n,r,i)=>{let a={storage:Qi(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return $i(u.getItem.bind(u))(a.name).then(e=>{if(e){if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state]}return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{++s,u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},ta=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},na=(e=>e?ta(e):ta),ra=$({positions:Vi(Ui([`wide`,`desktop`,`drawer`]),$({navigation:Z(),pathname:Z(),documents:Fi().check(ji(0)),outline:Fi().check(ji(0))}))}),ia=`for-humanity:navigation-scroll`,aa=e=>{let t=Qi(()=>({getItem:t=>e.session().getItem(t),setItem:(t,n)=>{try{return e.session().setItem(t,n)}catch{}},removeItem:t=>{try{return e.session().removeItem(t)}catch{}}}));return{scroll:na()(ea(()=>({positions:{}}),{name:ia,version:1,storage:t,merge:(e,t)=>{let n=ra.safeParse(e);return n.success?n.data:t}}))}},oa=document.querySelector(`[data-shell-browser-root]`),sa=document.getElementById(`fh-navigation-data`);if(oa!==null&&sa!==null)try{Xt(oa).render(B(ar,{data:Zi.parse(JSON.parse(sa.textContent)),stores:aa({session:()=>sessionStorage})}))}catch(e){console.error(`for-humanity browser initialization failed`,e)}})();
|
package/dist/cli.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.wg_prose__root{& h1{margin:0 0 var(--app-space-stack);color:var(--app-color-text-strong);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-title);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-title);text-wrap:balance;text-box:trim-start cap alphabetic}& p{margin:0 0 var(--app-space-stack)}& img{vertical-align:middle;max-width:100%;height:auto}& h1+p{font-size:var(--app-font-size-lead)}& h2{margin:var(--app-space-section) 0 var(--app-space-stack);padding-top:var(--app-space-group);border-top:1px solid var(--app-color-border);color:var(--app-color-text-strong);font-size:var(--app-font-size-section);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-heading);letter-spacing:var(--app-letter-spacing-heading);text-wrap:balance;scroll-margin-top:var(--app-space-anchor)}& .wg_prose__head+h2{margin-top:var(--app-space-group);border-top:0;padding-top:0}& .wg_prose__part+h2{margin-top:var(--app-space-block);border-top:0;padding-top:0}& h3{margin:var(--app-space-subsection) 0 var(--app-space-inline);color:var(--app-color-text-strong);font-size:var(--app-font-size-lead);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-tight);scroll-margin-top:var(--app-space-anchor)}& h4{margin:var(--app-space-group) 0 6px;color:var(--app-color-text-strong);font-size:var(--app-font-size-body);font-weight:var(--app-font-weight-strong)}& h5{margin:var(--app-space-block) 0 6px;color:var(--app-color-text-muted);font-size:var(--app-font-size-dense);font-weight:var(--app-font-weight-strong)}& a{color:var(--app-color-link);text-underline-offset:2px;text-decoration:none}& a:visited{color:var(--app-color-link-visited)}& a:hover{color:var(--app-color-link-hover);text-decoration:underline}& a:focus-visible{border-radius:var(--app-radius-mark);outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}& strong{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong)}& ul{margin:0 0 var(--app-space-stack);padding-left:20px}& ol{margin:0 0 var(--app-space-stack);padding-left:22px}& li{margin-bottom:4px}& li>ul,& li>ol{margin:4px 0 0}& code{border-radius:var(--app-radius-inline);background:var(--app-color-code);color:var(--app-color-text-strong);padding:1px 3px;font-family:inherit;font-size:1em}& pre{margin:var(--app-space-block) 0;padding:var(--app-space-stack) var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box);background:var(--app-color-code);font-family:var(--app-font-mono);font-size:var(--app-font-size-detail);line-height:var(--app-line-height-code);letter-spacing:0;tab-size:4;overflow-x:auto}& pre code{color:inherit;font-size:inherit;background:0 0;padding:0}& .wg_prose__code{background:var(--app-code-background);color:var(--app-code-foreground)}& .wg_prose__code--bad{background:var(--app-color-bad-soft)}& .wg_prose__code--good{background:var(--app-color-good-soft)}& blockquote{margin:var(--app-space-block) 0;padding:0 0 0 var(--app-space-block);border-left:1px solid var(--app-color-border)}& blockquote>:last-child{margin-bottom:0}& table{border:1px solid var(--app-color-border);border-collapse:collapse;width:100%;font-size:var(--app-font-size-dense);font-variant-numeric:tabular-nums}& th{padding:var(--app-space-inline) var(--app-space-stack);border:1px solid var(--app-color-border);background:var(--app-color-code);color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong);text-align:left;vertical-align:bottom;white-space:nowrap}& td{padding:var(--app-space-inline) var(--app-space-stack);border:1px solid var(--app-color-border);text-align:left;vertical-align:top}& tbody tr:hover td{background:var(--app-color-accent-soft)}& hr{margin:var(--app-space-section) 0;border:0;border-top:1px dotted var(--app-color-border)}& pre code .line{width:calc(100% + 2 * var(--app-space-block));margin:0 calc(-1 * var(--app-space-block));padding:0 var(--app-space-block);display:inline-block}& pre code .line.highlighted{background:var(--app-color-accent-soft)}& pre code .line.highlighted.error{background:var(--app-color-bad-soft)}& pre code .line.highlighted.warning{background:var(--app-color-warn-soft)}& pre code .line.diff.add{background:var(--app-color-good-soft)}& pre code .line.diff.remove{background:var(--app-color-bad-soft);opacity:.8}& pre.wg_prose__code--bad code .line.highlighted,& pre.wg_prose__code--bad code .line.highlighted.error,& pre.wg_prose__code--bad code .line.diff.remove{background:var(--app-color-bad-mark)}& pre.wg_prose__code--good code .line.highlighted,& pre.wg_prose__code--good code .line.diff.add{background:var(--app-color-good-mark)}& pre code .highlighted-word{border-radius:var(--app-radius-inline);background:var(--app-color-accent-soft);padding:0 2px}& .wg_prose__codeFile{margin:var(--app-space-block) 0}& .wg_prose__codeFile pre{border-top-left-radius:0;border-top-right-radius:0;margin:0}& .wg_prose__codeFileTitle{gap:var(--app-space-block);padding:var(--app-space-inline) var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box) var(--app-radius-box) 0 0;background:var(--app-code-background);color:var(--app-color-text-muted);font-family:var(--app-font-mono);font-size:var(--app-font-size-dense);letter-spacing:0;border-bottom:0;justify-content:space-between;display:flex}& .wg_prose__codeFileTitle--bad{background:var(--app-color-bad-soft)}& .wg_prose__codeFileTitle--good{background:var(--app-color-good-soft)}& .wg_prose__codeFileLang{text-transform:uppercase}& pre.wg_prose__lineNumbers code{counter-reset:line}& pre.wg_prose__lineNumbers code .line:before{width:2em;margin-right:var(--app-space-stack);color:var(--app-color-text-muted);text-align:right;content:counter(line);counter-increment:line;user-select:none;display:inline-block}}.wg_prose__title{margin:0 0 var(--app-space-stack);color:var(--app-color-text-strong);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-title);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-title);text-wrap:balance;text-box:trim-start cap alphabetic}.wg_prose__lead{margin:0 0 var(--app-space-stack);font-size:var(--app-font-size-lead)}.wg_prose__head{margin-bottom:var(--app-space-inline);padding-bottom:var(--app-space-block);border-bottom:1px dotted var(--app-color-border);&>:last-child{margin-bottom:0}& [align=center]{padding:var(--app-space-group) 0;text-align:center}& [align=center]>h1{margin-block:var(--app-space-group);font-size:24px}& [align=center]>p{margin-bottom:var(--app-space-block)}& [align=center]>img{width:72px;image-rendering:pixelated}}.wg_prose__headingText{box-decoration-break:clone;transition:background-color var(--app-motion-duration-highlight-fade) var(--app-motion-easing-out)}.wg_prose__headingText--highlighted{background-color:var(--app-color-anchor-highlight);transition:none}.wg_prose__part{margin-top:var(--app-space-section);padding-top:var(--app-space-stack);border-top:1px dotted var(--app-color-border);color:var(--app-color-text-strong);font-size:var(--app-font-size-part);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-heading);letter-spacing:var(--app-letter-spacing-heading)}.wg_prose__table{margin:var(--app-space-block) 0;overflow-x:auto}.wg_prose__pill{border-radius:var(--app-radius-inline);font-size:var(--app-font-size-detail);font-weight:var(--app-font-weight-strong);white-space:nowrap;padding:0 5px;line-height:1.6;display:inline-block}.wg_prose__pill--verified{background:var(--app-color-verified-soft);color:var(--app-color-verified)}.wg_prose__pill--unverified{background:var(--app-color-unverified-soft);color:var(--app-color-unverified)}.wg_prose__color{white-space:nowrap;&:before{border:1px solid var(--app-color-border);border-radius:var(--app-radius-mark);background:var(--wg-prose-chip-color,transparent);content:"";vertical-align:-.05em;width:.8em;height:.8em;margin-right:5px;display:inline-block}}.wg_prose__note{margin:var(--app-space-block) 0;padding-left:var(--app-space-block);border-left:2px solid var(--app-color-border);&>:last-child{margin-bottom:0}}.wg_prose__noteTitle{margin-bottom:var(--app-space-inline);color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong);display:block}.wg_prose__details{margin:var(--app-space-block) 0;padding-bottom:var(--app-space-stack);border-top:1px dotted var(--app-color-border);border-bottom:1px dotted var(--app-color-border);&>:last-child{margin-bottom:0}}.wg_prose__detailsSummary{padding:var(--app-space-inline) 0;color:var(--app-color-link);font-weight:var(--app-font-weight-strong);cursor:pointer;&:hover{color:var(--app-color-link-hover);text-underline-offset:2px;text-decoration:underline}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_cursorFace__root{z-index:var(--app-z-index-popper);visibility:hidden;pointer-events:none;user-select:none;image-rendering:pixelated;position:fixed;top:0;left:0}.wg_cursorFace__root--visible{visibility:visible}.wg_mermaid__root{margin:var(--app-space-block) 0;padding:var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box)}.wg_mermaid__result{text-align:center;letter-spacing:0;overflow-x:auto}.wg_mermaid__error{color:var(--app-color-text-strong)}.wg_mermaid__tooltip{color:var(--app-color-mermaid-tooltip-text);overflow-wrap:anywhere}.wg_mermaid__measurement{visibility:hidden;letter-spacing:0;position:absolute;top:0;left:-100000px}.wg_navigationNavList__root{margin:0;padding:0;list-style:none}.wg_navigationNavList__branch{padding:var(--app-space-tree-row) 0;color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));overflow-wrap:anywhere;display:block}.wg_navigationNavList__link{padding:var(--app-space-tree-row) 0;color:var(--app-color-link);font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight);overflow-wrap:anywhere;text-decoration:none;display:block;&:where(:hover){text-decoration:underline}&:where(:focus-visible){outline:none;text-decoration:underline}}.wg_navigationNavList__link--active{color:var(--app-color-link);font-weight:var(--app-font-weight-active)}.wg_navigationNavList__item{&>.wg_navigationNavList__root{margin-left:var(--app-space-tree-indent)}}.wg_navigationNav__root{font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight)}.wg_navigationNav__docs{gap:var(--app-space-tree-group);flex-direction:column;display:flex}.wg_navigationNav__group{margin:0 0 var(--app-space-tree-label);color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));text-box:trim-start cap alphabetic}.wg_navigationToc__root{font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight)}.wg_navigationToc__label,.wg_navigationToc__group{margin:0 0 var(--app-space-tree-label);color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));text-box:trim-start cap alphabetic}.wg_navigationToc__groupSection--named{margin-top:var(--app-space-tree-group)}.wg_navigationToc__list{margin:0;padding:0;list-style:none}.wg_navigationToc__link{padding:var(--app-space-tree-row) 0;color:var(--app-color-text);font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight);text-decoration:none;display:block;&:where(:hover){color:var(--app-color-text-strong);text-decoration:underline}&:where(:focus-visible){color:var(--app-color-text-strong);outline:none;text-decoration:underline}}.wg_navigationToc__link--active{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-active)}.wg_navigationToc__sub{margin:var(--app-space-tree-row) 0 4px var(--app-space-tree-indent);padding:0;list-style:none}.wg_navigationToc__subLink{padding:var(--app-space-tree-row) 0;color:var(--app-color-text);font-size:var(--app-font-size-detail);line-height:var(--app-line-height-tight);text-decoration:none;display:block;&:where(:hover){color:var(--app-color-text-strong);text-decoration:underline}&:where(:focus-visible){color:var(--app-color-text-strong);outline:none;text-decoration:underline}}.wg_navigationToc__subLink--active{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-active)}.wg_navigation__brandRow{z-index:var(--app-z-index-sticky);min-width:0;height:var(--app-size-brand);padding-block:var(--app-space-page-top) var(--app-space-group);background:var(--app-color-ground);align-self:start;gap:var(--app-space-inline);align-items:start;display:flex;position:sticky;top:0}.wg_navigation__brand{min-width:0;color:var(--app-color-text-strong);font-family:var(--app-font-brand);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-mark);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-brand);text-overflow:ellipsis;white-space:nowrap;flex:1;text-decoration:none;display:block;overflow:hidden;&:hover{text-decoration:underline}&:focus-visible{outline:none;text-decoration:underline}}.wg_navigation__menuIcon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.5px;width:20px;height:20px}.wg_navigation__menuToggle{width:var(--app-size-menu-button);height:var(--app-size-menu-button);border-radius:var(--app-radius-box);color:var(--app-color-text-strong);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:none;&:hover{background:var(--app-color-accent-soft)}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_navigation__menuToggle--visible{display:flex}.wg_navigation__sidebar{min-width:0;height:100dvh;grid-area:nav;align-self:start;margin-inline-end:var(--app-space-sidebar-gap);position:sticky;top:0}.wg_navigation__documents{flex:1;min-height:0}.wg_navigation__outline{flex-direction:column;flex:1;min-height:0;display:flex;&:where(:has(.wg_navigation__headings:empty)){display:none}}.wg_navigation__headings{flex:1;min-height:0}.wg_navigation__navigation{height:calc(100dvh - var(--app-size-brand));flex-direction:column;min-width:0;min-height:0;display:flex}.wg_navigation__tocRail{min-width:0;height:100dvh;padding-top:var(--app-size-brand);grid-area:outline;align-self:start;margin-inline-start:var(--app-space-sidebar-gap);position:sticky;top:0;&>.wg_navigation__outline{height:100%}&:where(:has(.wg_navigation__headings:empty)){display:none}}.wg_navigation__scroll{overscroll-behavior-y:contain;scroll-padding-block:var(--app-size-navigation-fade);overflow-y:auto}.wg_navigation__scroll--ready{scrollbar-width:none}.wg_navigation__scroll--above{mask-image:linear-gradient(to bottom, transparent, #000 var(--app-size-navigation-fade))}.wg_navigation__scroll--below{mask-image:linear-gradient(to bottom, #000 calc(100% - var(--app-size-navigation-fade)), transparent)}.wg_navigation__scroll--above.wg_navigation__scroll--below{mask-image:linear-gradient(to bottom, transparent, #000 var(--app-size-navigation-fade), #000 calc(100% - var(--app-size-navigation-fade)), transparent)}.wg_navigation__drawer{width:min(var(--app-size-drawer), calc(100% - var(--app-space-gutter) * 2));max-width:none;height:100dvh;max-height:100dvh;padding:0 var(--app-space-gutter) var(--app-space-group);border:0;border-right:1px solid var(--app-color-border-layout);background:var(--app-color-ground);color:var(--app-color-text);margin:0;position:fixed;inset:0 auto 0 0;overflow:hidden;&::backdrop{background:var(--app-color-backdrop)}}.wg_navigation__drawerHeader{justify-content:space-between;align-items:center;gap:var(--app-space-inline);min-height:var(--app-size-mobile-header);margin-bottom:var(--app-space-block);background:var(--app-color-ground);display:flex}.wg_navigation__drawerTitle{font-size:var(--app-font-size-part);font-weight:var(--app-font-weight-strong);margin:0}.wg_navigation__drawerClose{width:var(--app-size-menu-button);height:var(--app-size-menu-button);border-radius:var(--app-radius-box);color:var(--app-color-text-strong);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:flex;&:hover{background:var(--app-color-accent-soft)}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_navigation__drawerContent{min-width:0;height:calc(100% - var(--app-size-mobile-header) - var(--app-space-block));&>.wg_navigation__navigation{height:100%}}@media (forced-colors:active){.wg_navigation__scroll{scrollbar-width:thin;scrollbar-color:auto;mask-image:none}}@media (width<1360px){.wg_navigation__tocRail{display:none}}@media (width<1024px){.wg_navigation__sidebar{height:auto;border-bottom:1px solid var(--app-color-border-layout);margin-block-end:var(--app-space-block);margin-inline-end:0;position:static}.wg_navigation__sidebar>.wg_navigation__navigation{height:auto}.wg_navigation__sidebar>.wg_navigation__navigation>.wg_navigation__documents{max-height:none}.wg_navigation__sidebar--navigationReady{z-index:var(--app-z-index-sticky);background:var(--app-color-ground);position:sticky;top:0}.wg_navigation__brandRow{height:var(--app-size-mobile-header);align-items:center;padding-block:0;position:static}}.wg_shellControls__navigation{display:contents}*{box-sizing:border-box}:root{background:var(--app-color-ground);scrollbar-gutter:stable;scroll-behavior:smooth}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;transition-delay:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important}}:root{color-scheme:light dark;--app-color-ground:light-dark(#fff,#181818);--app-color-code:light-dark(#f1f1eb,#22221f);--app-color-backdrop:light-dark(#0000004d,#0000008c);--app-color-text:light-dark(#333,#d5d5d5);--app-color-text-strong:light-dark(#222,#eee);--app-color-text-muted:light-dark(#666,#aaa);--app-color-mermaid-tooltip-text:#333;--app-color-anchor-highlight:light-dark(#f4f58a,#666322);--app-motion-duration-highlight-fade:.6s;--app-motion-easing-out:ease-out;--app-color-border:light-dark(#aaa,#555);--app-color-border-layout:light-dark(#eee,#2b2b2b);--app-color-accent:light-dark(#555,#b5b5b5);--app-color-accent-soft:light-dark(#f5f5f2,#222);--app-color-bad-soft:light-dark(#f9ebe8,#3a2522);--app-color-bad-mark:light-dark(#f1cdc6,#5b322c);--app-color-good-soft:light-dark(#e4f3ed,#1c342c);--app-color-good-mark:light-dark(#c4e4d4,#27503f);--app-color-warn-soft:light-dark(#fbf3d9,#3d3418);--app-color-link:light-dark(#11a,#9db8ff);--app-color-link-visited:light-dark(#51a,#c5a5ed);--app-color-link-hover:light-dark(#44d,#c1d1ff);--app-color-verified:light-dark(#176b36,#82cf95);--app-color-verified-soft:light-dark(#edf5ed,#1d2c20);--app-color-unverified:light-dark(#855700,#dfb26c);--app-color-unverified-soft:light-dark(#faf2df,#30291c);--app-font-mono:"Monoplex KR", ui-monospace, monospace;--app-font-body:"IBM Plex Sans KR", var(--app-font-mono);--app-font-brand:"Architects Daughter", var(--app-font-body);--app-font-size-group:11px;--app-font-size-detail:12px;--app-font-size-dense:12px;--app-font-size-body:12px;--app-font-size-lead:12px;--app-font-size-part:13px;--app-font-size-section:15px;--app-font-size-title:16px;--app-font-weight-mark:400;--app-font-weight-active:600;--app-font-weight-strong:600;--app-font-weight-title:600;--app-line-height-title:1.5;--app-line-height-heading:1.5;--app-line-height-tight:1.4;--app-line-height-code:1.65;--app-line-height-body:1.7;--app-letter-spacing-body:-.03em;--app-letter-spacing-brand:0;--app-letter-spacing-heading:-.04em;--app-letter-spacing-title:-.045em;--app-space-inline:6px;--app-space-stack:10px;--app-space-block:14px;--app-space-group:20px;--app-space-subsection:28px;--app-space-section:64px;--app-space-tree-row:0px;--app-space-tree-group:16px;--app-space-tree-label:2px;--app-space-tree-indent:12px;--app-space-page-top:28px;--app-space-gutter:28px;--app-space-column:32px;--app-space-sidebar-gap:32px;--app-size-sidebar:200px;--app-size-page:1920px;--app-size-brand:calc(var(--app-font-size-title) * var(--app-line-height-title) + var(--app-space-page-top) + var(--app-space-group));--app-size-mobile-header:56px;--app-size-menu-button:44px;--app-size-drawer:320px;--app-size-navigation-fade:28px;--app-space-anchor:80px;--app-radius-box:0;--app-radius-inline:0;--app-radius-mark:0;--app-outline-focus:2px solid var(--app-color-link);--app-outline-focus-offset:2px;--app-z-index-sticky:100;--app-z-index-popper:300;--app-code-foreground:var(--app-color-text);--app-code-background:var(--app-color-code);--app-code-token-keyword:var(--app-color-text-strong);--app-code-token-function:var(--app-color-accent);--app-code-token-string:var(--app-color-verified);--app-code-token-string-expression:var(--app-color-verified);--app-code-token-constant:var(--app-color-unverified);--app-code-token-parameter:var(--app-color-text);--app-code-token-comment:var(--app-color-text-muted);--app-code-token-punctuation:var(--app-color-text-muted);--app-code-token-link:var(--app-color-link)}@media (width<1024px){:root{--app-space-page-top:24px;--app-space-gutter:20px;--app-space-tree-row:7px;--app-space-anchor:calc(var(--app-size-mobile-header) + var(--app-space-block))}}@media (width<640px){:root{--app-space-page-top:20px;--app-space-gutter:16px}}.wg_shell__root{max-width:var(--app-size-page);padding:0 var(--app-space-gutter);grid-template:"nav main outline" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr) calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap));background:var(--app-color-ground);color:var(--app-color-text);font-family:var(--app-font-body);font-size:var(--app-font-size-body);line-height:var(--app-line-height-body);letter-spacing:var(--app-letter-spacing-body);word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;-webkit-font-smoothing:antialiased;margin:0 auto;display:grid}.wg_shell__root--drawerOpen{overflow:hidden}.wg_shell__browserRoot{display:contents}.wg_shell__main{border-inline:1px solid var(--app-color-border-layout);min-width:0;padding-block:var(--app-size-brand) calc(100vh - var(--app-space-anchor));padding-inline:var(--app-space-column);grid-area:main}@media (width<1360px){.wg_shell__root{grid-template:"nav main" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr)}}@media (width<1024px){.wg_shell__root{grid-template:"nav""main"1fr/minmax(0,1fr)}.wg_shell__main{border-inline:0;padding-block-start:var(--app-space-page-top);padding-inline:0}}
|
|
1
|
+
.wg_article__root{& h1{margin:0 0 var(--app-space-stack);color:var(--app-color-text-strong);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-title);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-title);text-wrap:balance;text-box:trim-start cap alphabetic}& p{margin:0 0 var(--app-space-stack)}& img{vertical-align:middle;max-width:100%;height:auto}& h1+p{font-size:var(--app-font-size-lead)}& h2{margin:var(--app-space-section) 0 var(--app-space-stack);padding-top:var(--app-space-group);border-top:1px solid var(--app-color-border);color:var(--app-color-text-strong);font-size:var(--app-font-size-section);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-heading);letter-spacing:var(--app-letter-spacing-heading);text-wrap:balance;scroll-margin-top:calc(var(--app-space-anchor) + var(--wg-article-anchor-shift,0px))}& .wg_article__head+h2{margin-top:var(--app-space-group);border-top:0;padding-top:0}& .wg_article__part+h2{margin-top:var(--app-space-block);border-top:0;padding-top:0}& h3{margin:var(--app-space-subsection) 0 var(--app-space-inline);color:var(--app-color-text-strong);font-size:var(--app-font-size-lead);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-tight);scroll-margin-top:calc(var(--app-space-anchor) + var(--wg-article-anchor-shift,0px))}& h4{margin:var(--app-space-group) 0 6px;color:var(--app-color-text-strong);font-size:var(--app-font-size-body);font-weight:var(--app-font-weight-strong)}& h5{margin:var(--app-space-block) 0 6px;color:var(--app-color-text-muted);font-size:var(--app-font-size-dense);font-weight:var(--app-font-weight-strong)}& a{color:var(--app-color-link);text-underline-offset:2px;text-decoration:none}& a:visited{color:var(--app-color-link-visited)}& a:hover{color:var(--app-color-link-hover);text-decoration:underline}& a:focus-visible{border-radius:var(--app-radius-mark);outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}& strong{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong)}& ul{margin:0 0 var(--app-space-stack);padding-left:20px}& ol{margin:0 0 var(--app-space-stack);padding-left:22px}& li{margin-bottom:4px}& li>ul,& li>ol{margin:4px 0 0}& code{border-radius:var(--app-radius-inline);background:var(--app-color-code);color:var(--app-color-text-strong);padding:1px 3px;font-family:inherit;font-size:1em}& pre{margin:var(--app-space-block) 0;padding:var(--app-space-stack) var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box);background:var(--app-color-code);font-family:var(--app-font-mono);font-size:var(--app-font-size-detail);line-height:var(--app-line-height-code);letter-spacing:0;tab-size:4;overflow-x:auto}& pre code{color:inherit;font-size:inherit;background:0 0;padding:0}& .wg_article__code{background:var(--app-code-background);color:var(--app-code-foreground)}& .wg_article__code--bad{background:var(--app-color-bad-soft)}& .wg_article__code--good{background:var(--app-color-good-soft)}& blockquote{margin:var(--app-space-block) 0;padding:0 0 0 var(--app-space-block);border-left:1px solid var(--app-color-border)}& blockquote>:last-child{margin-bottom:0}& table{border:1px solid var(--app-color-border);border-collapse:collapse;width:100%;font-size:var(--app-font-size-dense);font-variant-numeric:tabular-nums}& th{padding:var(--app-space-inline) var(--app-space-stack);border:1px solid var(--app-color-border);background:var(--app-color-code);color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong);text-align:left;vertical-align:bottom;white-space:nowrap}& td{padding:var(--app-space-inline) var(--app-space-stack);border:1px solid var(--app-color-border);text-align:left;vertical-align:top}& tbody tr:hover td{background:var(--app-color-accent-soft)}& hr{margin:var(--app-space-section) 0;border:0;border-top:1px dotted var(--app-color-border)}& pre code .line{width:calc(100% + 2 * var(--app-space-block));margin:0 calc(-1 * var(--app-space-block));padding:0 var(--app-space-block);display:inline-block}& pre code .line.highlighted{background:var(--app-color-accent-soft)}& pre code .line.highlighted.error{background:var(--app-color-bad-soft)}& pre code .line.highlighted.warning{background:var(--app-color-warn-soft)}& pre code .line.diff.add{background:var(--app-color-good-soft)}& pre code .line.diff.remove{background:var(--app-color-bad-soft);opacity:.8}& pre.wg_article__code--bad code .line.highlighted,& pre.wg_article__code--bad code .line.highlighted.error,& pre.wg_article__code--bad code .line.diff.remove{background:var(--app-color-bad-mark)}& pre.wg_article__code--good code .line.highlighted,& pre.wg_article__code--good code .line.diff.add{background:var(--app-color-good-mark)}& pre code .highlighted-word{border-radius:var(--app-radius-inline);background:var(--app-color-accent-soft);padding:0 2px}& .wg_article__codeFile{margin:var(--app-space-block) 0}& .wg_article__codeFile pre{border-top-left-radius:0;border-top-right-radius:0;margin:0}& .wg_article__codeFileTitle{gap:var(--app-space-block);padding:var(--app-space-inline) var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box) var(--app-radius-box) 0 0;background:var(--app-code-background);color:var(--app-color-text-muted);font-family:var(--app-font-mono);font-size:var(--app-font-size-dense);letter-spacing:0;border-bottom:0;justify-content:space-between;display:flex}& .wg_article__codeFileTitle--bad{background:var(--app-color-bad-soft)}& .wg_article__codeFileTitle--good{background:var(--app-color-good-soft)}& .wg_article__codeFileLang{text-transform:uppercase}& pre.wg_article__lineNumbers code{counter-reset:line}& pre.wg_article__lineNumbers code .line:before{width:2em;margin-right:var(--app-space-stack);color:var(--app-color-text-muted);text-align:right;content:counter(line);counter-increment:line;user-select:none;display:inline-block}}.wg_article__title{margin:0 0 var(--app-space-stack);color:var(--app-color-text-strong);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-title);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-title);text-wrap:balance;text-box:trim-start cap alphabetic}.wg_article__lead{margin:0 0 var(--app-space-stack);font-size:var(--app-font-size-lead)}.wg_article__head{margin-bottom:var(--app-space-inline);padding-bottom:var(--app-space-block);border-bottom:1px dotted var(--app-color-border);&>:last-child{margin-bottom:0}& [align=center]{padding:var(--app-space-group) 0;text-align:center}& [align=center]>h1{margin-block:var(--app-space-group);font-size:24px}& [align=center]>p{margin-bottom:var(--app-space-block)}& [align=center]>img{width:72px;image-rendering:pixelated}}.wg_article__headingText{box-decoration-break:clone;transition:background-color var(--app-motion-duration-highlight-fade) var(--app-motion-easing-out)}.wg_article__headingText--highlighted{background-color:var(--app-color-anchor-highlight);transition:none}.wg_article__part{margin-top:var(--app-space-section);padding-top:var(--app-space-stack);border-top:1px dotted var(--app-color-border);color:var(--app-color-text-strong);font-size:var(--app-font-size-part);font-weight:var(--app-font-weight-strong);line-height:var(--app-line-height-heading);letter-spacing:var(--app-letter-spacing-heading)}.wg_article__table{margin:var(--app-space-block) 0;overflow-x:auto}.wg_article__pill{border-radius:var(--app-radius-inline);font-size:var(--app-font-size-detail);font-weight:var(--app-font-weight-strong);white-space:nowrap;padding:0 5px;line-height:1.6;display:inline-block}.wg_article__pill--verified{background:var(--app-color-verified-soft);color:var(--app-color-verified)}.wg_article__pill--unverified{background:var(--app-color-unverified-soft);color:var(--app-color-unverified)}.wg_article__color{white-space:nowrap;&:before{border:1px solid var(--app-color-border);border-radius:var(--app-radius-mark);background:var(--wg-article-chip-color,transparent);content:"";vertical-align:-.05em;width:.8em;height:.8em;margin-right:5px;display:inline-block}}.wg_article__note{margin:var(--app-space-block) 0;padding-left:var(--app-space-block);border-left:2px solid var(--app-color-border);&>:last-child{margin-bottom:0}}.wg_article__noteTitle{margin-bottom:var(--app-space-inline);color:var(--app-color-text-strong);font-weight:var(--app-font-weight-strong);display:block}.wg_article__details{margin:var(--app-space-block) 0;padding-bottom:var(--app-space-stack);border-top:1px dotted var(--app-color-border);border-bottom:1px dotted var(--app-color-border);&>:last-child{margin-bottom:0}}.wg_article__detailsSummary{padding:var(--app-space-inline) 0;color:var(--app-color-link);font-weight:var(--app-font-weight-strong);cursor:pointer;&:hover{color:var(--app-color-link-hover);text-underline-offset:2px;text-decoration:underline}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_cursorFace__root{z-index:var(--app-z-index-popper);visibility:hidden;pointer-events:none;user-select:none;image-rendering:pixelated;position:fixed;top:0;left:0}.wg_cursorFace__root--visible{visibility:visible}.wg_mermaid__root{margin:var(--app-space-block) 0;padding:var(--app-space-block);border:1px solid var(--app-color-border);border-radius:var(--app-radius-box)}.wg_mermaid__result{text-align:center;letter-spacing:0;overflow-x:auto}.wg_mermaid__error{color:var(--app-color-text-strong)}.wg_mermaid__tooltip{color:var(--app-color-mermaid-tooltip-text);overflow-wrap:anywhere}.wg_mermaid__measurement{visibility:hidden;letter-spacing:0;position:absolute;top:0;left:-100000px}.wg_docList__root{margin:0;padding:0;list-style:none}.wg_docList__branch{padding:var(--app-space-tree-row) 0;color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));overflow-wrap:anywhere;display:block}.wg_docList__link{padding:var(--app-space-tree-row) 0;color:var(--app-color-link);font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight);overflow-wrap:anywhere;text-decoration:none;display:block;&:where(:hover){text-decoration:underline}&:where(:focus-visible){outline:none;text-decoration:underline}}.wg_docList__link--active{color:var(--app-color-link);font-weight:var(--app-font-weight-active)}.wg_docList__item{&>.wg_docList__root{margin-left:var(--app-space-tree-indent)}}.wg_docTree__root{font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight)}.wg_docTree__docs{gap:var(--app-space-tree-group);flex-direction:column;display:flex}.wg_docTree__group{margin:0 0 var(--app-space-tree-label);color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));text-box:trim-start cap alphabetic}.wg_toc__root{font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight)}.wg_toc__label,.wg_toc__group{margin:0 0 var(--app-space-tree-label);color:var(--app-color-text-muted);font-size:var(--app-font-size-group);line-height:calc(var(--app-font-size-dense) * var(--app-line-height-tight));text-box:trim-start cap alphabetic}.wg_toc__groupSection--named{margin-top:var(--app-space-tree-group)}.wg_toc__list{margin:0;padding:0;list-style:none}.wg_toc__link{padding:var(--app-space-tree-row) 0;color:var(--app-color-text);font-size:var(--app-font-size-dense);line-height:var(--app-line-height-tight);text-decoration:none;display:block;&:where(:hover){color:var(--app-color-text-strong);text-decoration:underline}&:where(:focus-visible){color:var(--app-color-text-strong);outline:none;text-decoration:underline}}.wg_toc__link--active{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-active)}.wg_toc__sub{margin:var(--app-space-tree-row) 0 4px var(--app-space-tree-indent);padding:0;list-style:none}.wg_toc__subLink{padding:var(--app-space-tree-row) 0;color:var(--app-color-text);font-size:var(--app-font-size-detail);line-height:var(--app-line-height-tight);text-decoration:none;display:block;&:where(:hover){color:var(--app-color-text-strong);text-decoration:underline}&:where(:focus-visible){color:var(--app-color-text-strong);outline:none;text-decoration:underline}}.wg_toc__subLink--active{color:var(--app-color-text-strong);font-weight:var(--app-font-weight-active)}.wg_sidebar__brandRow{z-index:var(--app-z-index-sticky);min-width:0;height:var(--app-size-brand);padding-block:var(--app-space-page-top) var(--app-space-group);background:var(--app-color-ground);align-self:start;gap:var(--app-space-inline);align-items:start;display:flex;position:sticky;top:0}.wg_sidebar__brand{min-width:0;color:var(--app-color-text-strong);font-family:var(--app-font-brand);font-size:var(--app-font-size-title);font-weight:var(--app-font-weight-mark);line-height:var(--app-line-height-title);letter-spacing:var(--app-letter-spacing-brand);text-overflow:ellipsis;white-space:nowrap;flex:1;text-decoration:none;display:block;overflow:hidden;&:hover{text-decoration:underline}&:focus-visible{outline:none;text-decoration:underline}}.wg_sidebar__menuIcon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.5px;width:20px;height:20px}.wg_sidebar__menuToggle{width:var(--app-size-menu-button);height:var(--app-size-menu-button);border-radius:var(--app-radius-box);color:var(--app-color-text-strong);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:none;&:hover{background:var(--app-color-accent-soft)}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_sidebar__menuToggle--visible{display:flex}.wg_sidebar__docsColumn{min-width:0;height:100dvh;grid-area:nav;align-self:start;margin-inline-end:var(--app-space-sidebar-gap);position:sticky;top:0}.wg_sidebar__docsScroll{flex:1;min-height:0}.wg_sidebar__tocPanel{flex-direction:column;flex:1;min-height:0;display:flex;&:where(:has(.wg_sidebar__tocScroll:empty)){display:none}}.wg_sidebar__tocScroll{flex:1;min-height:0}.wg_sidebar__docsPanel{height:calc(100dvh - var(--app-size-brand));flex-direction:column;min-width:0;min-height:0;display:flex}.wg_sidebar__tocColumn{min-width:0;height:100dvh;padding-top:var(--app-size-brand);grid-area:outline;align-self:start;margin-inline-start:var(--app-space-sidebar-gap);position:sticky;top:0;&>.wg_sidebar__tocPanel{height:100%}&:where(:has(.wg_sidebar__tocScroll:empty)){display:none}}.wg_sidebar__scroll{scroll-padding-block:var(--app-size-navigation-fade);overflow-y:auto}.wg_sidebar__scroll--overflow{overscroll-behavior-y:contain}.wg_sidebar__scroll--ready{scrollbar-width:none}.wg_sidebar__scroll--above{mask-image:linear-gradient(to bottom, transparent, #000 var(--app-size-navigation-fade))}.wg_sidebar__scroll--below{mask-image:linear-gradient(to bottom, #000 calc(100% - var(--app-size-navigation-fade)), transparent)}.wg_sidebar__scroll--above.wg_sidebar__scroll--below{mask-image:linear-gradient(to bottom, transparent, #000 var(--app-size-navigation-fade), #000 calc(100% - var(--app-size-navigation-fade)), transparent)}.wg_sidebar__drawer{width:min(var(--app-size-drawer), calc(100% - var(--app-space-gutter) * 2));max-width:none;height:100dvh;max-height:100dvh;padding:0 var(--app-space-gutter) var(--app-space-group);border:0;border-right:1px solid var(--app-color-border-layout);background:var(--app-color-ground);color:var(--app-color-text);margin:0;position:fixed;inset:0 auto 0 0;overflow:hidden;&::backdrop{background:var(--app-color-backdrop)}}.wg_sidebar__drawerHeader{justify-content:space-between;align-items:center;gap:var(--app-space-inline);min-height:var(--app-size-mobile-header);margin-bottom:var(--app-space-block);background:var(--app-color-ground);display:flex}.wg_sidebar__drawerTitle{font-size:var(--app-font-size-part);font-weight:var(--app-font-weight-strong);margin:0}.wg_sidebar__drawerClose{width:var(--app-size-menu-button);height:var(--app-size-menu-button);border-radius:var(--app-radius-box);color:var(--app-color-text-strong);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:flex;&:hover{background:var(--app-color-accent-soft)}&:focus-visible{outline:var(--app-outline-focus);outline-offset:var(--app-outline-focus-offset)}}.wg_sidebar__drawerContent{min-width:0;height:calc(100% - var(--app-size-mobile-header) - var(--app-space-block));&>.wg_sidebar__docsPanel{height:100%}}@media (forced-colors:active){.wg_sidebar__scroll{scrollbar-width:thin;scrollbar-color:auto;mask-image:none}}@media (width<1360px){.wg_sidebar__tocColumn{display:none}}@media (width<1024px){.wg_sidebar__docsColumn{height:auto;border-bottom:1px solid var(--app-color-border-layout);margin-block-end:var(--app-space-block);margin-inline-end:0;position:static}.wg_sidebar__docsColumn>.wg_sidebar__docsPanel{height:auto}.wg_sidebar__docsColumn>.wg_sidebar__docsPanel>.wg_sidebar__docsScroll{max-height:none}.wg_sidebar__docsColumn--ready{z-index:var(--app-z-index-sticky);background:var(--app-color-ground);position:sticky;top:0}.wg_sidebar__brandRow{height:var(--app-size-mobile-header);align-items:center;padding-block:0;position:static}}.wg_shellControls__sidebar{display:contents}*{box-sizing:border-box}:root{background:var(--app-color-ground);scrollbar-gutter:stable}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;transition-delay:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important}}:root{color-scheme:light dark;--app-color-ground:light-dark(#fff,#181818);--app-color-code:light-dark(#f1f1eb,#22221f);--app-color-backdrop:light-dark(#0000004d,#0000008c);--app-color-text:light-dark(#333,#d5d5d5);--app-color-text-strong:light-dark(#222,#eee);--app-color-text-muted:light-dark(#666,#aaa);--app-color-mermaid-tooltip-text:#333;--app-color-anchor-highlight:light-dark(#f4f58a,#666322);--app-motion-duration-highlight-fade:.6s;--app-motion-easing-out:ease-out;--app-color-border:light-dark(#aaa,#555);--app-color-border-layout:light-dark(#eee,#2b2b2b);--app-color-accent:light-dark(#555,#b5b5b5);--app-color-accent-soft:light-dark(#f5f5f2,#222);--app-color-bad-soft:light-dark(#f9ebe8,#3a2522);--app-color-bad-mark:light-dark(#f1cdc6,#5b322c);--app-color-good-soft:light-dark(#e4f3ed,#1c342c);--app-color-good-mark:light-dark(#c4e4d4,#27503f);--app-color-warn-soft:light-dark(#fbf3d9,#3d3418);--app-color-link:light-dark(#11a,#9db8ff);--app-color-link-visited:light-dark(#51a,#c5a5ed);--app-color-link-hover:light-dark(#44d,#c1d1ff);--app-color-verified:light-dark(#176b36,#82cf95);--app-color-verified-soft:light-dark(#edf5ed,#1d2c20);--app-color-unverified:light-dark(#855700,#dfb26c);--app-color-unverified-soft:light-dark(#faf2df,#30291c);--app-font-mono:"Monoplex KR", ui-monospace, monospace;--app-font-body:"IBM Plex Sans KR", var(--app-font-mono);--app-font-brand:"Architects Daughter", var(--app-font-body);--app-font-size-group:11px;--app-font-size-detail:12px;--app-font-size-dense:12px;--app-font-size-body:12px;--app-font-size-lead:12px;--app-font-size-part:13px;--app-font-size-section:15px;--app-font-size-title:16px;--app-font-weight-mark:400;--app-font-weight-active:600;--app-font-weight-strong:600;--app-font-weight-title:600;--app-line-height-title:1.5;--app-line-height-heading:1.5;--app-line-height-tight:1.4;--app-line-height-code:1.65;--app-line-height-body:1.7;--app-letter-spacing-body:-.03em;--app-letter-spacing-brand:0;--app-letter-spacing-heading:-.04em;--app-letter-spacing-title:-.045em;--app-space-inline:6px;--app-space-stack:10px;--app-space-block:14px;--app-space-group:20px;--app-space-subsection:28px;--app-space-section:64px;--app-space-tree-row:0px;--app-space-tree-group:16px;--app-space-tree-label:2px;--app-space-tree-indent:12px;--app-space-page-top:28px;--app-space-gutter:28px;--app-space-column:32px;--app-space-sidebar-gap:32px;--app-size-sidebar:200px;--app-size-page:1920px;--app-size-brand:calc(var(--app-font-size-title) * var(--app-line-height-title) + var(--app-space-page-top) + var(--app-space-group));--app-size-mobile-header:56px;--app-size-menu-button:44px;--app-size-drawer:320px;--app-size-navigation-fade:28px;--app-space-anchor:40vh;--app-radius-box:0;--app-radius-inline:0;--app-radius-mark:0;--app-outline-focus:2px solid var(--app-color-link);--app-outline-focus-offset:2px;--app-z-index-sticky:100;--app-z-index-popper:300;--app-code-foreground:var(--app-color-text);--app-code-background:var(--app-color-code);--app-code-token-keyword:var(--app-color-text-strong);--app-code-token-function:var(--app-color-accent);--app-code-token-string:var(--app-color-verified);--app-code-token-string-expression:var(--app-color-verified);--app-code-token-constant:var(--app-color-unverified);--app-code-token-parameter:var(--app-color-text);--app-code-token-comment:var(--app-color-text-muted);--app-code-token-punctuation:var(--app-color-text-muted);--app-code-token-link:var(--app-color-link)}@media (width<1024px){:root{--app-space-page-top:24px;--app-space-gutter:20px;--app-space-tree-row:7px}}@media (width<640px){:root{--app-space-page-top:20px;--app-space-gutter:16px}}.wg_shell__root{max-width:var(--app-size-page);padding:0 var(--app-space-gutter);grid-template:"nav main outline" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr) calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap));background:var(--app-color-ground);color:var(--app-color-text);font-family:var(--app-font-body);font-size:var(--app-font-size-body);line-height:var(--app-line-height-body);letter-spacing:var(--app-letter-spacing-body);word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;-webkit-font-smoothing:antialiased;margin:0 auto;display:grid}.wg_shell__root--drawerOpen{overflow:hidden}.wg_shell__browserRoot{display:contents}.wg_shell__main{border-inline:1px solid var(--app-color-border-layout);min-width:0;padding-block:var(--app-size-brand) var(--app-space-section);padding-inline:var(--app-space-column);grid-area:main}@media (width<1360px){.wg_shell__root{grid-template:"nav main" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr)}}@media (width<1024px){.wg_shell__root{grid-template:"nav""main"1fr/minmax(0,1fr)}.wg_shell__main{border-inline:0;padding-block-start:var(--app-space-page-top);padding-inline:0}}
|
|
2
2
|
/*$vite$:1*/
|