@brickkit/cli 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dashboard-dist/{CollapsiblePanel-DM8J3g8m.js → CollapsiblePanel-a54TwMKb.js} +1 -1
- package/dashboard-dist/{PopoverPopup-B6eMOlOC.js → PopoverPopup-BLzjTqsi.js} +1 -1
- package/dashboard-dist/{api-reference-wTdT1AVt.js → api-reference-r893F8zi.js} +2 -2
- package/dashboard-dist/app.css +1 -1
- package/dashboard-dist/app.js +13 -13
- package/dashboard-dist/core-BWAwhSFf.js +1 -0
- package/dashboard-dist/{docs-DflzpIIh.js → docs-CkMy3Y5i.js} +1 -1
- package/dashboard-dist/{preload-helper-CVJ-D494.js → preload-helper-CjQDFR0M.js} +1 -1
- package/dist/app-entry2.js +8 -1
- package/dist/app-entry2.js.map +1 -1
- package/dist/bin.js +6 -2
- package/dist/bin.js.map +1 -1
- package/dist/build.js +18 -5
- package/dist/build.js.map +1 -1
- package/dist/dev-telemetry-store.js +148 -5
- package/dist/dev-telemetry-store.js.map +1 -1
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js +19 -2
- package/dist/dev-worker.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/runner.js +69 -3
- package/dist/runner.js.map +1 -1
- package/dist/workflows.d.ts +61 -0
- package/dist/workflows.d.ts.map +1 -0
- package/dist/workflows.js +1 -0
- package/dist/workflows2.js +298 -0
- package/dist/workflows2.js.map +1 -0
- package/inspector-dist/LICENSE.md +201 -0
- package/inspector-dist/NOTICE +20 -0
- package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +1 -0
- package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +1 -0
- package/inspector-dist/client/assets/app-CY7CQBRo.css +1 -0
- package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +11697 -0
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +19 -0
- package/inspector-dist/client/assets/home-CSKAS4P2.js +4979 -0
- package/inspector-dist/client/assets/index-DECCyMR0.js +4482 -0
- package/inspector-dist/client/assets/index-Dot7CgrA.js +9837 -0
- package/inspector-dist/client/assets/index-HqNj_XIX.js +200 -0
- package/inspector-dist/client/assets/manifest-4baa7c6f.js +1 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +58626 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +1 -0
- package/inspector-dist/client/assets/root-Bmn5n3jF.js +305 -0
- package/inspector-dist/client/assets/root-CfCr265_.css +1 -0
- package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +1 -0
- package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +6237 -0
- package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +26 -0
- package/inspector-dist/client/assets/zstd-B5R2yJjB.wasm +0 -0
- package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +28 -0
- package/inspector-dist/server/assets/app-C-ZVJtic.js +174880 -0
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-C8sq8F_D.js +71 -0
- package/inspector-dist/server/assets/index-BfLBLRRi.js +204 -0
- package/inspector-dist/server/assets/index-BzrGWk7J.js +1164 -0
- package/inspector-dist/server/assets/index-CWJr34WJ.js +1296 -0
- package/inspector-dist/server/assets/index-CYlmUaKx.js +191 -0
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-Dv5rjfMN.js +58 -0
- package/inspector-dist/server/assets/token-DnLp3wBO.js +95 -0
- package/inspector-dist/server/assets/token-util-Bpfp-B0w.js +33 -0
- package/inspector-dist/server/assets/wrapper-D5LIcZ_u.js +67 -0
- package/inspector-dist/server/assets/zstd-browser-decoder-BM8GpVB8.js +77 -0
- package/inspector-dist/server/index.js +58 -0
- package/package.json +11 -4
- package/dashboard-dist/core-CHWYtApw.js +0 -1
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ whose default export is a `BrickApp` that does not call `.listen()`.
|
|
|
26
26
|
brick dev [entry] [--port 4000] [--dashboard-port 9400] [--history-days 90] [--no-dashboard]
|
|
27
27
|
brick start [entry] [--port 4000]
|
|
28
28
|
brick build <entry> [--outdir dist/brick] [--port <number>] [--no-aot]
|
|
29
|
+
brick worker <entry>
|
|
29
30
|
brick gen openapi <entry> [--output openapi.json]
|
|
30
31
|
brick gen client <entry> [--output _brick/contract.ts]
|
|
31
32
|
brick info <entry>
|
|
@@ -130,6 +131,12 @@ InlineTOC, Banner), and `components` names a module of your own React components
|
|
|
130
131
|
to add, which the dashboard bundles. Links between pages and local images work as
|
|
131
132
|
they do on a docs site. See `packages/cli/dashboard/README.md`.
|
|
132
133
|
|
|
134
|
+
For an app with workflow listeners, a Workflows tab shows the Workflow SDK's
|
|
135
|
+
inspector, which comes with the CLI, for the world the app runs on. The app serves it on a
|
|
136
|
+
loopback port of its own and the dashboard passes requests to it at `/workflows`.
|
|
137
|
+
It can cancel runs, so only `brick dev` serves it, and only the dashboard's own
|
|
138
|
+
page may change anything through it.
|
|
139
|
+
|
|
133
140
|
The Logs tab lists what actions, tools, and endpoints log with `ctx.logger`, and
|
|
134
141
|
what they print with `console.log`, `info`, `warn`, `error`, and `debug`, newest
|
|
135
142
|
first. Under `brick dev` a line written while a traced request runs is a span
|
|
@@ -193,7 +200,7 @@ export default brick({
|
|
|
193
200
|
|
|
194
201
|
It listens on a port of its own, so it can be kept private or mounted at another
|
|
195
202
|
address, and it answers while the app's routes do not. It shows Requests, Logs,
|
|
196
|
-
Errors, Overview, and Reloads; there is no restart, API proxy, APIs, or
|
|
203
|
+
Errors, Overview, and Reloads; there is no restart, API proxy, APIs, Docs, or Workflows, and
|
|
197
204
|
OpenAPI documents are not served. Setting it turns `telemetry` on, and from then
|
|
198
205
|
`ctx.logger` and `console` lines written during a request go to the dashboard
|
|
199
206
|
and not to the container's console.
|
|
@@ -382,6 +389,8 @@ directory are watched too. Changes coalesce before restart; every restart evalua
|
|
|
382
389
|
the app in a fresh process and generates the contract before starting the server.
|
|
383
390
|
Generation failures preserve the previous contract and print the error. The next
|
|
384
391
|
valid edit retries. Stopping `brick dev` stops its backend and frontend children.
|
|
392
|
+
When you stop `brick dev` with Ctrl-C or it reloads, the backend first finishes its in-flight event deliveries (up to 3 seconds); a second Ctrl-C exits at once.
|
|
393
|
+
On Windows, stopping or reloading the backend forcibly terminates it, so in-flight event deliveries may be interrupted.
|
|
385
394
|
`--client` also works without `--frontend` if another process owns the frontend.
|
|
386
395
|
|
|
387
396
|
For an embedded Vite app such as Pages, keep using `brickClient` in `vite.config.ts`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{At as t,Bt as n,Dt as r,K as i,M as a,N as o,Ot as s,P as c,Qt as l,St as u,Tt as d,W as f,X as p,_n as m,_t as h,at as g,bt as _,c as v,dt as y,en as b,et as x,gn as S,ht as C,it as w,j as T,jt as E,k as D,kt as O,l as k,mn as A,n as j,nn as M,o as N,on as P,pn as F,pt as I,q as ee,r as L,s as R,tn as te,un as z,vt as B}from"./preload-helper-CVJ-D494.js";var V={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};V.node;var H=A(V),U={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};U.node;var W=A(U),ne={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};ne.node;var G=A(ne),re={name:`clipboard`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]};re.node;var ie=A(re),ae={name:`copy-check`,size:24,node:[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ae.node;var oe=A(ae),se={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};se.node;var ce=A(se),le={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};le.node;var ue=A(le),de={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};de.node;var fe=A(de),pe={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};pe.node;var me=A(pe),he=48,K=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-he-t;return n},ge=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},_e=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-he;n+=i>>>1^-(i&1),t[r]=n}return t},ve=384,ye=[],be=ge(K(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),xe=ge(K(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Se=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Ce=(()=>{let e=be.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=be[n];i<be[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(be[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=be[i];a<be[i+1];a++)n[r++]=e,e+=t[e]}return n})(),we=K(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),Te=ge(K(`123333359346463635126536711576`)),Ee=K(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),De=K(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),Oe=_e(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),ke=(()=>{let e=new Int32Array(319).fill(-1),t=_e(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=_e(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),Ae=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),je=_e(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Me=_e(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),Ne=_e(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),Pe=new Int32Array(995),Fe=new Int32Array(995),Ie=new Int32Array(995),Le=``,Re=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<je.length;r++)for(let i of Ae[Ne[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),Re[a*2]=Le.length,Re[a*2+1]=i.length,Le+=i),Pe[n]=je[r],Fe[n]=Me[r],Ie[n]=a,n++}}var q=_e(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),ze=ge(K(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),Be=_e(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),Ve=K(`ij`),He=K(``),Ue=K(`1`),We={GROUP_COUNT:ve,customValidatorNames:ye,edgeStart:be,labelStart:xe,labelText:Se,edgeTarget:Ce,nodeGroup:we,nodeVlist:ke,vlistPat:Te,vlistOps:Ee,vlistRef:De,vlistGroup:Oe,litAnchor:Pe,litGroup:Fe,litPool:Ie,poolOffsets:Re,poolText:Le,adjGid:q,adjStart:ze,adjTgt:Be,patGid:Ve,patTgt:He,postfixLookupGroups:Ue,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},Ge=`line`in Error(),Ke=-1,qe=-1,Je=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},Ye=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Xe=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let j=new Uint8Array(r);for(let e=0;e<w.length;e++)j[w[e]]=1;let M=i.length-1,N=new Uint8Array(M),P=0,F=!0;for(let e=0;e<m.length;e++){N[m[e]]=1;let t=_[g[e]*2+1];t>P&&(P=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(F=!1)}let I=1;for(;I<m.length*2;)I<<=1;let ee=new Int32Array(I).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(Je(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&I-1;for(;ee[n]!==-1;)n=n+1&I-1;ee[n]=e}let L=(e,t,n,r)=>{let i=(Je(t,n,r)^Math.imul(e,2654435761)|0)&I-1,a=r-n;for(;;){let r=ee[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&I-1}},R=n.cacheSize??8192,te=n.prefix??e.prefix??``,z=te===``?``:te+`:`,B=z.length,V=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,U=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,W=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ne=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=0,re=-1,ie=-1,ae=-1,oe=-1,se=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ce=e=>/\s/.test(String.fromCharCode(e)),le=(e,t,n)=>{if(G=0,re=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)G=1;else if(r===40&&i===41)G=2;else return;ae=t+1,oe=n-1;let a=t+1;if(se(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!se(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(re=t+1,ie=a,ae=a+1)}},ue=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},de=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pe=e=>!!e&&!Number.isNaN(Number(e)),me=(e,t,n)=>{if(n-t<11||!ue(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ue(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ue(e,t+10,t+18,`-normal/`)},he=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],K=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),ge=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],_e=(e,t,n,r)=>{if(e>=10){if(e>=25)return V[e-25](t.slice(n,r));let i=e-10;if(G!==he[i])return!1;if(re>=0){for(let e of K[i])if(ue(t,re,ie,e))return!0;return!1}switch(ge[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(ae,oe);return H.test(e)&&!U.test(e)}case 3:return pe(t.slice(ae,oe));case 4:return ne.test(t.slice(ae,oe));default:return W.test(t.slice(ae,oe))}}switch(e){case 0:return!0;case 1:return G===0;case 2:return G===1;case 3:return G===2;case 4:return de.test(t.slice(n,r));case 5:return pe(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&pe(t.slice(n,r-1));case 8:return fe.test(t.slice(n,r));default:return me(t,n,r)}},ve=new Set(typeof E==`string`?E.split(` `):E),ye=(e,t,n,r,i,a)=>{let o=Je(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},be=new Map,xe=new Map,Se=2,Ce=4096,we=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||ve.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=xe.get(s);return c===void 0&&xe.set(s,c=Se++),c},Te=new Map,Ee=r,De=r+4096,Oe=()=>Ee++,ke=2097152,Ae=8192,je=new Int32Array(Ae),Me=Array(Ae).fill(null),Ne=new Int32Array(Ae),Pe=new Int32Array(Ae),Fe=new Uint8Array(Ae),Ie=0,Le=(e,t,n,r,i,a,o,s)=>{let c=e;if(Me[e]!==null){if(Me[e|1]===null)c=e|1;else if(!(Ie++&3))c=e|Ie>>2&1;else return}Me[c]=t.slice(n,r),je[c]=i,Ne[c]=a,Pe[c]=o,Fe[c]=s},Re=()=>Me.fill(null),q=256,ze=[new Int32Array(q),new Int32Array(q),new Int32Array(q),new Int32Array(q)],[Be,Ve,He,Ue]=ze,We=new Uint8Array(q),Xe=new Uint8Array(q),Ze=()=>{q*=2,ze=ze.map(e=>{let t=new Int32Array(q);return t.set(e),t}),[Be,Ve,He,Ue]=ze;let e=new Uint8Array(q);e.set(We),We=e,Xe=new Uint8Array(q)},Qe=64,et=new Int32Array(Qe),tt=new Int32Array(Qe),nt=new Int32Array(r),J=2048,rt=21,it=new Float64Array(J),Y=new Int32Array(J),X=0,Z=(e,t)=>{if(e===0&&t<r)return nt[t]===X?1:(nt[t]=X,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>rt;for(;Y[i]===X;){if(it[i]===n)return 1;i=i+1&J-1}return it[i]=n,Y[i]=X,0},at=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?Ke:ye(Te,e,t+1,r,0,Oe)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=tt[t];if(r>n)continue;let i=et[t],a=n-r;if(N[i]===1&&a>0&&a<=P){let t=e.charCodeAt(r);if(F===!1||t!==91&&t!==40){let t=L(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;le(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(_e(d[t],e,r,n))return p[h+t]}return Ke},ot=e=>{let t=e.length,n=0,c=0,u=!1;(Se>Ce||be.size>Ce)&&(be=new Map,xe=new Map,Se=2,Re()),Ee>De&&(Te=new Map,Ee=r,Re());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ce(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ce(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===q&&Ze();let _=n++;Be[_]=p,Ve[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(je[y]===v&&Me[y]!==null&&Me[y].length===g?t=y:je[y|1]===v&&Me[y|1]!==null&&Me[y|1].length===g&&(t=y|1),t>=0){let n=Me[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){He[_]=Ne[t],Ue[_]=Pe[t],We[_]=Fe[t];continue}}}let b=p;if(B!==0){if(h-p<=B||!e.startsWith(z,p)){He[_]=Ke,Le(y,e,p,h,v,Ke,0,0);continue}b=p+B}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let M=E;D-E>1&&e.charCodeAt(E)===45&&(M=E+1);let P=0,F=0,I=0,ee=-1,L=0;(l[0]>=0||N[0]===1)&&(et[0]=0,tt[0]=M,L=1);let R=qe,te=0;for(let t=M;t<D;t++)if(t===A&&(R=F<I?qe:P,te=L),P!==qe){let n=e.charCodeAt(t),r=-1;if(F<I)o.charCodeAt(F)===n?(F++,F===I&&(r=P=ee)):P=qe;else{let e=i[P],t=i[P+1],c=qe;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(F=e+1,I=a[i+1],ee=s[i],c=P);break}}P=c}if(r>=0&&(l[r]>=0||N[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(L===Qe){Qe*=2;let e=new Int32Array(Qe);e.set(et),et=e;let t=new Int32Array(Qe);t.set(tt),tt=t}et[L]=r,tt[L]=t+2,L++}}A===D&&(R=F<I?qe:P,te=L);let V=F<I?qe:P,H,U=!1;if(A>=0){if(U=!0,H=at(e,E,A,R,te),H!==Ke&&H<r&&j[H]){let t=at(e,E,D,V,L);t!==Ke&&t!==H&&(H=t,U=!1)}else H===Ke&&(H=at(e,E,D,V,L),U=!1)}else H=at(e,E,D,V,L);let W=0,ne=0;H===Ke?He[_]=Ke:(ne=+!!U,W=b>=C?+!!O:ye(be,e,b,C,+!!O,e=>we(e,O)),He[_]=H,We[_]=ne,Ue[_]=W),Le(y,e,p,h,v,H,W,ne)}if(n===0)return``;if(n===1)return Be[0]===0&&Ve[0]===t?e:e.slice(Be[0],Ve[0]);if(n*k>J){for(;n*k>J;)J<<=1,rt--;it=new Float64Array(J),Y=new Int32Array(J)}if(Se>=ke||Ee>=ke)throw Error(`cn: too many distinct classes in one merge`);X=X+1|0,X===0&&(nt.fill(0),Y.fill(0),X=1);let f=!1;for(let e=n-1;e>=0;e--){let t=He[e];if(t===Ke){Xe[e]=1;continue}let n=Ue[e];if(Z(n,t)===1)Xe[e]=0,f=!0;else if(Xe[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)Z(n,x[e]);if(We[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&Z(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Xe[m]){m++;continue}let t=Be[m],r=Ve[m],i=m+1;for(;i<n&&Xe[i]&&Be[i]===r+1&&e.charCodeAt(r)===32;)r=Ve[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},st=16384,Q=new Int32Array(st*2),ct=0,$=1,lt=Object.create(null),ut=Object.create(null),dt=new Map,ft=new Map,pt=0,mt=0,ht=()=>{ct^=st,$=$+1|0,mt=0},gt=e=>{let t=lt[e];if(t!==void 0)return t;let n=Ye(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^st]===(n^$-1);return i&&(t=ut[e],t!==void 0)?(lt[e]=t,t):(t=ot(e),i?(lt[e]=t,++pt>R&&(pt=0,ut=lt,lt=Object.create(null),ht())):(Q[r]=n^$,++mt>st&&ht()),t)},_t=e=>{let t=dt.get(e);if(t!==void 0)return t;let n=Ye(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^st]===(n^$-1);return i&&(t=ft.get(e),t!==void 0)?(dt.set(e,t),t):(t=ot(e),i?(dt.set(e,t),++pt>R&&(pt=0,ft=dt,dt=new Map,ht())):(Q[r]=n^$,++mt>st&&ht()),t)},vt=e=>{let t=Ye(e,0,e.length),n=(t&16383)+ct;return Q[n]===(t^$)||Q[n^st]===(t^$-1)||(Q[n]=t^$,++mt>st&&ht(),!1)},yt=R===0?ot:Ge?e=>{let t=dt.get(e);return t===void 0?_t(e):t}:gt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?yt(arguments[0]):yt($e.apply(null,arguments))},mergeString:yt,seenBefore:R===0?()=>!1:vt,mergeUncached:ot}},Ze=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Ze(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},Qe=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Ze(i,t);a&&(n&&(n+=` `),n+=a)}return n},$e=function(){return Qe(arguments,!1)},et=256,tt=16,nt=1024,J=4096,rt=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(J).fill(``),l=Array(J).fill(``),u=Array(J).fill(``));let i=Ye(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Ze(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>tt&&(_.miss=tt,_.skip=nt,_.e.length=0,_.at=0);let u=_.e;u.length<et?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(Ze(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},it=Xe(We),Y=rt(it.mergeString,it);it.merge;var X=e(m(),1),Z=e(S(),1),at=`size-5 -me-0.5 fill-(--callout-color) text-fd-card`;function ot({children:e,title:t,...n}){return(0,Z.jsxs)(Q,{...n,children:[t&&(0,Z.jsx)(ct,{children:t}),(0,Z.jsx)($,{children:e})]})}function st(e){return e===`warn`?`warning`:e===`tip`?`info`:e}function Q({type:e=`info`,icon:t,children:n,className:r,style:i,...a}){let o=st(e);return(0,Z.jsxs)(`div`,{className:Y(`flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground`,r),style:{"--callout-color":`var(--color-fd-${o}, var(--color-fd-muted))`,...i},...a,children:[(0,Z.jsx)(`div`,{role:`none`,className:`w-0.5 bg-(--callout-color)/50 rounded-sm`}),t??{info:(0,Z.jsx)(ue,{className:at}),warning:(0,Z.jsx)(z,{className:at}),error:(0,Z.jsx)(G,{className:at}),success:(0,Z.jsx)(W,{className:at}),idea:(0,Z.jsx)(fe,{className:`size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)`})}[o],(0,Z.jsx)(`div`,{className:`flex flex-col gap-2 min-w-0 flex-1`,children:n})]})}function ct({children:e,className:t,...n}){return(0,Z.jsx)(`p`,{className:Y(`font-medium my-0!`,t),...n,children:e})}function $({children:e,className:t,...n}){return(0,Z.jsx)(`div`,{className:Y(`text-fd-muted-foreground prose-no-margin empty:hidden`,t),...n,children:e})}var lt=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},ut=(0,X.createContext)({useParams:lt,useRouter:lt,usePathname:lt});function dt(e){let{Image:t}=(0,X.use)(ut);if(!t){let{src:t,alt:n,priority:r,...i}=e;return(0,Z.jsx)(`img`,{alt:n,src:t,fetchPriority:r?`high`:`auto`,...i})}return(0,Z.jsx)(t,{...e})}function ft(e){let{Link:t}=(0,X.use)(ut);if(!t){let{href:t,prefetch:n,...r}=e;return(0,Z.jsx)(`a`,{href:t,...r})}return(0,Z.jsx)(t,{...e})}function pt({ref:e,href:t=`#`,external:n=!!(t.match(/^\w+:/)||t.startsWith(`//`)),prefetch:r,children:i,...a}){return n?(0,Z.jsx)(`a`,{ref:e,href:t,rel:`noreferrer noopener`,target:`_blank`,...a,children:i}):(0,Z.jsx)(ft,{ref:e,href:t,prefetch:r,...a,children:i})}function mt(e){return(0,Z.jsx)(`div`,{...e,className:Y(`grid grid-cols-2 gap-3 @container`,e.className),children:e.children})}function ht({icon:e,title:t,description:n,...r}){let i=r.href?pt:`div`;return(0,Z.jsxs)(i,{...r,"data-card":!0,className:Y(`block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full`,r.href&&`hover:bg-fd-accent/80`,r.className),children:[e?(0,Z.jsx)(`div`,{className:`not-prose mb-2 w-fit shadow-md rounded-lg border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4`,children:e}):null,(0,Z.jsx)(`h3`,{className:`not-prose mb-1 text-sm font-medium`,children:t}),n?(0,Z.jsx)(`p`,{className:`my-0! text-sm text-fd-muted-foreground`,children:n}):null,(0,Z.jsx)(`div`,{className:`text-sm text-fd-muted-foreground prose-no-margin empty:hidden`,children:r.children})]})}var gt=`bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80`,_t={default:gt,primary:gt,outline:`border hover:bg-fd-accent hover:text-fd-accent-foreground`,ghost:`hover:bg-fd-accent hover:text-fd-accent-foreground`,secondary:`border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground`},vt=l(`inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring`,{variants:{variant:_t,color:_t,size:{sm:`gap-1 px-2 py-1.5 text-xs`,icon:`p-1.5 [&_svg]:size-5`,"icon-sm":`p-1.5 [&_svg]:size-4.5`,"icon-xs":`p-1 [&_svg]:size-4`}}});function yt(e){let[t,n]=(0,X.useState)(!1),r=(0,X.useRef)(e),i=(0,X.useRef)(null);r.current=e;let a=(0,X.useCallback)(()=>{i.current&&window.clearTimeout(i.current),Promise.resolve(r.current()).then(()=>{n(!0),i.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,X.useEffect)(()=>()=>{i.current&&window.clearTimeout(i.current)},[]),[t,a]}var bt=(0,X.createContext)({}),xt=/\\?\{([^}]+)\}/g;function St({note:e}={}){let t=(0,X.use)(bt);return(0,X.useMemo)(()=>Ct(t,{note:e}),[t,e])}function Ct(e,{note:t}={}){let n=(n,r={})=>{let{note:i,variables:a}=r,o=[];t&&o.push(t),i&&o.push(i);let s=e[wt(n,o)]??n;return a&&(s=s.replaceAll(xt,(e,t)=>e[0]===`\\`?e.slice(1):t in a?a[t]:e)),s};return n.jsx=(n,r={})=>{let{note:i,variables:a,tags:o}=r,s=[];t&&s.push(t),i&&s.push(i);let c=e[wt(n,s)]??n;return o?Dt(c,a,o):a?Tt(c,a):c},n.translations=e,n}function wt(e,t){return e+t.map(e=>`(${e})`).join(``)}function Tt(e,t){let n=0,r=[];for(let i of e.matchAll(xt)){let[a,o]=i;n<i.index&&r.push(e.slice(n,i.index)),n=i.index+a.length,a[0]===`\\`?r.push(a.slice(1)):o in t?r.push(kt(t[o],n)):r.push(a)}return r.push(e.slice(n)),r}var Et=/\\?<([^>]+)>/g;function Dt(e,t,n){let r=[{children:[]}],i=0,a=()=>{let e=r.pop();r[r.length-1].children.push(kt(e.tag&&n[e.tag]?Ot(n[e.tag],e.children):e.children,i))};for(let o of e.matchAll(Et)){let s=r[r.length-1],[c,l]=o;if(i<o.index){let n=e.slice(i,o.index);s.children.push(t?Tt(n,t):n)}if(i=o.index+c.length,c[0]===`\\`){let e=c.slice(1);s.children.push(t?Tt(e,t):e)}else if(l[0]===`/`){let e=l.slice(1);s.tag===e?a():s.children.push(t?Tt(c,t):c)}else if(l.at(-1)===`/`){let e=l.slice(0,-1);n[e]&&s.children.push(kt(Ot(n[e]),i))}else r.push({children:[],tag:l})}if(i<e.length){let n=e.slice(i);r[r.length-1].children.push(t?Tt(n,t):n)}for(;r.length>1;)a();return r[0].children}function Ot(e,t){return(0,X.isValidElement)(e)?t===void 0?e:(0,X.cloneElement)(e,void 0,t):e(t)}function kt(e,t){return(0,X.isValidElement)(e)?(0,X.cloneElement)(e,{key:t}):e}function At({as:e,...t}){let n=e??`h1`,r=St({note:`heading anchor`}),[i,a]=yt(()=>{if(!t.id)return;let e=new URL(window.location.href);return e.hash=t.id,navigator.clipboard.writeText(e.href)});return t.id?(0,Z.jsxs)(n,{...t,className:Y(`group/heading flex scroll-m-28 flex-row items-center gap-1`,t.className),children:[(0,Z.jsx)(`a`,{"data-card":``,href:`#${t.id}`,children:t.children}),(0,Z.jsxs)(`button`,{"aria-live":`polite`,className:Y(vt({variant:`ghost`,size:`icon-xs`}),`not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100`),onClick:a,children:[i?(0,Z.jsx)(oe,{}):(0,Z.jsx)(me,{}),(0,Z.jsx)(`span`,{className:`sr-only`,children:r(i?`Copied Anchor Link`:`Copy Anchor Link`,{note:`aria-label`})})]})]}):(0,Z.jsx)(n,{...t})}function jt(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})}}var Mt=X.createContext(void 0);function Nt(){let e=X.useContext(Mt);if(e===void 0)throw Error(O(64));return e}var Pt=`data-activation-direction`,Ft={tabActivationDirection:e=>({[Pt]:e})},It=X.forwardRef(function(e,n){let{className:r,defaultValue:i=0,onValueChange:a,orientation:o=`horizontal`,render:s,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,f=X.useRef([]),[m,h]=X.useState(()=>new Map),[g,_]=k({controlled:c,default:i,name:`Tabs`,state:`value`}),v=c!==void 0,[y,S]=X.useState(()=>new Map),C=X.useRef(void 0),T=X.useCallback(e=>Lt(y,e),[y]),[D,O]=X.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=D,M=j,P=!1;A!==g&&(M=Rt(A,g,o,y),P=A!=null&&g!=null&&T(g)==null);let F=P?A:g,ee=A!==F||j!==M;t(()=>{ee&&O({previousValue:F,tabActivationDirection:M})},[F,ee,M]);let L=E((e,t)=>{t.activationDirection=Rt(g,e,o,y),a?.(e,t),!t.isCanceled&&_(()=>e)}),R=E((e,t)=>{a?.(e,I(t,void 0,void 0,{activationDirection:`none`}))}),te=E((e,t)=>(h(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{h(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),z=X.useCallback(e=>m.get(e),[m]),B=X.useCallback(e=>{for(let t of y.values())if(e===t.value)return t.id},[y]),V=X.useMemo(()=>({getTabElementBySelectedValue:T,getTabIdByPanelValue:B,getTabPanelIdByValue:z,onValueChange:L,orientation:o,registerMountedTabPanel:te,setTabMap:S,tabActivationDirection:M,value:g}),[T,B,z,L,o,te,S,M,g]),H=X.useMemo(()=>{for(let e of y.values())if(e.value===g)return e},[y,g]),U=X.useMemo(()=>{for(let e of y.values())if(!e.disabled)return e.value},[y]),W=X.useRef(!d),ne=X.useRef(i),G=X.useRef(d),re=X.useRef(!1);t(()=>{if(v)return;function e(e,t){_(()=>e),O({previousValue:e,tabActivationDirection:`none`}),R(e,t),W.current=!1}if(y.size===0){re.current&&g!==null&&!C.current?.isConnected&&e(null,w);return}re.current=!0,C.current=y.keys().next().value;let t=H?.disabled,n=H==null&&g!==null;if(!t&&g===ne.current&&(G.current=!1),G.current&&t&&g===ne.current)return;let r=W.current;if(t||n){let n=U??null;if(g===n){W.current=!1;return}let i=w;r?i=x:t&&(i=p),e(n,i)}else r&&H!=null&&(R(g,x),W.current=!1)},[U,v,R,H,_,y,g]);let ie=b(`div`,e,{state:{orientation:o,tabActivationDirection:M},ref:n,props:u,stateAttributesMapping:Ft});return(0,Z.jsx)(Mt.Provider,{value:V,children:(0,Z.jsx)(N,{elementsRef:f,children:ie})})});function Lt(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function Rt(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=Lt(r,e),c=Lt(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var zt=X.createContext(void 0);function Bt(){let e=X.useContext(zt);if(e===void 0)throw Error(O(65));return e}var Vt=X.forwardRef(function(e,n){let{className:i,disabled:a=!1,render:o,value:c,id:l,nativeButton:u=!0,style:f,...p}=e,{value:m,getTabPanelIdByValue:h,onValueChange:v,orientation:y,tabActivationDirection:x}=Nt(),{activateOnFocus:S,registerTabResizeObserverElement:C,tabsListElement:w}=Bt(),{highlightedIndex:D,onHighlightedIndexChange:O}=s(),k=T(l),A=X.useMemo(()=>({disabled:a,id:k,value:c}),[a,k,c]),{compositeProps:j,compositeRef:M,index:N}=R({metadata:A}),P=c===m,F=X.useRef(!1),ee=X.useRef(null),te=E(e=>{ee.current?.(),ee.current=e?C(e):null});t(()=>{if(F.current){F.current=!1;return}if(!(P&&N>-1&&D!==N))return;let e=w;if(e!=null){let t=B(r(e));if(t&&_(e,t))return}a||O(N)},[P,N,D,O,a,w]);let{getButtonProps:z,buttonRef:V}=d({disabled:a,native:u,focusableWhenDisabled:!0}),H=h(c),U=X.useRef(!1),W=X.useRef(!1);function ne(e){v(c,I(g,e.nativeEvent,void 0,{activationDirection:`none`}))}function G(e){P||a||ne(e)}function re(e){P||a||S&&(!U.current||W.current)&&ne(e)}function ie(e){if(P||a)return;U.current=!0,W.current=e.button===0;let t=r(e.currentTarget);function n(){U.current=!1,W.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return b(`button`,e,{state:{disabled:a,active:P,orientation:y,tabActivationDirection:x},ref:[n,V,M,te],props:[j,{role:`tab`,"aria-controls":H,"aria-selected":P,id:k,onClick:G,onFocus:re,onPointerDown:ie,[L]:P?``:void 0,onKeyDownCapture(){F.current=!0}},p,z],stateAttributesMapping:Ft})}),Ht=`data-index`,Ut={...Ft,...C},Wt=X.forwardRef(function(e,n){let{className:r,value:i,render:o,keepMounted:s=!1,style:l,...u}=e,{value:d,getTabIdByPanelValue:f,orientation:p,tabActivationDirection:m,registerMountedTabPanel:h}=Nt(),g=T(),{ref:_,index:y}=v(),x=i===d,{mounted:S,transitionStatus:C,setMounted:w}=c(x),E=!S,O=f(i),k={hidden:E,orientation:p,tabActivationDirection:m,transitionStatus:C},A=X.useRef(null),j=b(`div`,e,{state:k,ref:[n,_,A],props:[{"aria-labelledby":O,hidden:E,id:g,role:`tabpanel`,tabIndex:x?0:-1,inert:D(!x),[Ht]:y},u],stateAttributesMapping:Ut});return a({open:x,ref:A,onComplete(){x||w(!1)}}),t(()=>{if(!(g==null||E&&!s))return h(i,g)},[E,s,i,g,h]),s||S?j:null}),Gt=X.forwardRef(function(e,n){let{activateOnFocus:r=!1,className:i,loopFocus:a=!0,render:o,style:s,...c}=e,{orientation:l,setTabMap:u,tabActivationDirection:d}=Nt(),[f,p]=X.useState(0),[m,h]=X.useState(null),g=X.useRef(new Set),_=X.useRef(new Set),v=X.useRef(null);t(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{g.current.forEach(e=>{e()})});return v.current=e,m&&e.observe(m),_.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),v.current=null}},[m]);let y=E(e=>(g.current.add(e),()=>{g.current.delete(e)})),b=E(e=>(_.current.add(e),v.current?.observe(e),()=>{_.current.delete(e),v.current?.unobserve(e)})),x={orientation:l,tabActivationDirection:d},S={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},C=X.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:b,tabsListElement:m}),[r,y,b,m]);return(0,Z.jsx)(zt.Provider,{value:C,children:(0,Z.jsx)(j,{render:o,className:i,style:s,state:x,refs:[n,h],props:[S,c],stateAttributesMapping:Ft,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:a,orientation:l,onHighlightedIndexChange:p,onMapChange:u,disabledIndices:M})})}),Kt=new Map,qt=(0,X.createContext)(null);function Jt(){let e=(0,X.use)(qt);if(!e)throw Error(`You must wrap your component in <Tabs>`);return e}var Yt=Gt;function Xt({value:e,ref:t,...n}){let{triggers:r}=Jt();return(0,Z.jsx)(Vt,{ref:jt(t,t=>{t?r.add(e):r.delete(e)}),value:e,...n})}function Zt({ref:e,groupId:t,persist:n=!1,updateAnchor:r=!1,defaultValue:i,value:a,onValueChange:o,...s}){let c=(0,X.useRef)(null),l=(0,X.useMemo)(()=>new Map,[]),u=(0,X.useMemo)(()=>new Map,[]),d=(0,X.useMemo)(()=>new Set,[]),[f,p]=a===void 0?(0,X.useState)(i):[a,e=>o?.(e)],m=(0,X.useEffectEvent)(e=>{d.has(e)&&p(e)}),h=(0,X.useEffectEvent)(()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,n]of l.entries())if(n===e){p(t),c.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,n]of u.entries())if(n.contains(t)){p(e),requestAnimationFrame(()=>t.scrollIntoView());return}}});return(0,X.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);n&&(e??=localStorage.getItem(t)),e&&m(e);let r=Kt.get(t)??new Set;return r.add(m),Kt.set(t,r),()=>{r.delete(m)}},[t,n]),(0,X.useLayoutEffect)(()=>(h(),window.addEventListener(`hashchange`,h),()=>window.removeEventListener(`hashchange`,h)),[]),(0,Z.jsx)(It,{ref:jt(e,c),value:f,onValueChange:e=>{if(r){let t=l.get(e);t&&window.history.replaceState(null,``,`#${t}`)}if(t){let r=Kt.get(t);if(r)for(let t of r)t(e);sessionStorage.setItem(t,e),n&&localStorage.setItem(t,e)}else p(e)},...s,children:(0,Z.jsx)(qt,{value:(0,X.useMemo)(()=>({valueToIdMap:l,panels:u,triggers:d}),[l,u,d]),children:s.children})})}function Qt({value:e,ref:t,...n}){let{valueToIdMap:r,panels:i}=Jt();return n.id&&r.set(e,n.id),(0,Z.jsx)(Wt,{ref:jt(t,t=>{t?i.set(e,t):i.delete(e)}),value:e,...n,children:n.children})}var $t=(0,X.createContext)(null);function en(e){return(0,Z.jsx)(`pre`,{...e,className:Y(`min-w-full w-max *:flex *:flex-col`,e.className),children:e.children})}function tn({ref:e,title:t,allowCopy:n=!0,keepBackground:r=!1,icon:i,viewportProps:a={},children:o,Actions:s=e=>(0,Z.jsx)(`div`,{...e,className:Y(`empty:hidden`,e.className)}),...c}){let l=(0,X.use)($t)!==null,u=(0,X.useRef)(null);return n===`true`?n=!0:n===`false`&&(n=!1),(0,Z.jsxs)(`figure`,{ref:e,dir:`ltr`,...c,tabIndex:-1,className:Y(l?`bg-fd-secondary -mx-px -mb-px last:rounded-b-xl`:`my-4 bg-fd-card rounded-xl`,r&&`bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)`,`shiki relative border not-prose overflow-hidden text-sm`,c.className),children:[t?(0,Z.jsxs)(`div`,{className:`flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4`,children:[typeof i==`string`?(0,Z.jsx)(`div`,{className:`[&_svg]:size-3.5`,dangerouslySetInnerHTML:{__html:i}}):i,(0,Z.jsx)(`figcaption`,{className:`flex-1 truncate`,children:t}),s({className:`-me-2`,children:n&&(0,Z.jsx)(nn,{containerRef:u})})]}):s({className:`absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground`,children:n&&(0,Z.jsx)(nn,{containerRef:u})}),(0,Z.jsx)(`div`,{ref:u,...a,role:`region`,tabIndex:0,className:Y(`text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring`,a.className),style:{"--padding-right":t?void 0:`calc(var(--spacing) * 8)`,counterSet:c[`data-line-numbers`]?`line ${Number(c[`data-line-numbers-start`]??1)-1}`:void 0,...a.style},children:o})]})}function nn({className:e,containerRef:t,...n}){let r=St({note:`code block`}),[i,a]=yt(()=>{let e=t.current?.getElementsByTagName(`pre`).item(0);if(!e)return;let n=e.cloneNode(!0);return n.querySelectorAll(`.nd-copy-ignore`).forEach(e=>{e.replaceWith(`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{At as t,Bt as n,Dt as r,K as i,M as a,N as o,Ot as s,P as c,Qt as l,St as u,Tt as d,W as f,X as p,_n as m,_t as h,at as g,bt as _,c as v,dt as y,en as b,et as x,gn as S,ht as C,it as w,j as T,jt as E,k as D,kt as O,l as k,mn as A,n as j,nn as M,o as N,on as P,pn as F,pt as I,q as ee,r as L,s as R,tn as te,un as z,vt as B}from"./preload-helper-CjQDFR0M.js";var V={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};V.node;var H=A(V),U={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};U.node;var W=A(U),ne={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};ne.node;var G=A(ne),re={name:`clipboard`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]};re.node;var ie=A(re),ae={name:`copy-check`,size:24,node:[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ae.node;var oe=A(ae),se={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};se.node;var ce=A(se),le={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};le.node;var ue=A(le),de={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};de.node;var fe=A(de),pe={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};pe.node;var me=A(pe),he=48,K=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-he-t;return n},ge=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},_e=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-he;n+=i>>>1^-(i&1),t[r]=n}return t},ve=384,ye=[],be=ge(K(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),xe=ge(K(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Se=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Ce=(()=>{let e=be.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=be[n];i<be[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(be[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=be[i];a<be[i+1];a++)n[r++]=e,e+=t[e]}return n})(),we=K(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),Te=ge(K(`123333359346463635126536711576`)),Ee=K(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),De=K(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),Oe=_e(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),ke=(()=>{let e=new Int32Array(319).fill(-1),t=_e(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=_e(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),Ae=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),je=_e(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Me=_e(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),Ne=_e(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),Pe=new Int32Array(995),Fe=new Int32Array(995),Ie=new Int32Array(995),Le=``,Re=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<je.length;r++)for(let i of Ae[Ne[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),Re[a*2]=Le.length,Re[a*2+1]=i.length,Le+=i),Pe[n]=je[r],Fe[n]=Me[r],Ie[n]=a,n++}}var q=_e(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),ze=ge(K(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),Be=_e(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),Ve=K(`ij`),He=K(``),Ue=K(`1`),We={GROUP_COUNT:ve,customValidatorNames:ye,edgeStart:be,labelStart:xe,labelText:Se,edgeTarget:Ce,nodeGroup:we,nodeVlist:ke,vlistPat:Te,vlistOps:Ee,vlistRef:De,vlistGroup:Oe,litAnchor:Pe,litGroup:Fe,litPool:Ie,poolOffsets:Re,poolText:Le,adjGid:q,adjStart:ze,adjTgt:Be,patGid:Ve,patTgt:He,postfixLookupGroups:Ue,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},Ge=`line`in Error(),Ke=-1,qe=-1,Je=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},Ye=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Xe=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let j=new Uint8Array(r);for(let e=0;e<w.length;e++)j[w[e]]=1;let M=i.length-1,N=new Uint8Array(M),P=0,F=!0;for(let e=0;e<m.length;e++){N[m[e]]=1;let t=_[g[e]*2+1];t>P&&(P=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(F=!1)}let I=1;for(;I<m.length*2;)I<<=1;let ee=new Int32Array(I).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(Je(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&I-1;for(;ee[n]!==-1;)n=n+1&I-1;ee[n]=e}let L=(e,t,n,r)=>{let i=(Je(t,n,r)^Math.imul(e,2654435761)|0)&I-1,a=r-n;for(;;){let r=ee[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&I-1}},R=n.cacheSize??8192,te=n.prefix??e.prefix??``,z=te===``?``:te+`:`,B=z.length,V=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,U=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,W=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ne=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=0,re=-1,ie=-1,ae=-1,oe=-1,se=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ce=e=>/\s/.test(String.fromCharCode(e)),le=(e,t,n)=>{if(G=0,re=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)G=1;else if(r===40&&i===41)G=2;else return;ae=t+1,oe=n-1;let a=t+1;if(se(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!se(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(re=t+1,ie=a,ae=a+1)}},ue=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},de=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pe=e=>!!e&&!Number.isNaN(Number(e)),me=(e,t,n)=>{if(n-t<11||!ue(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ue(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ue(e,t+10,t+18,`-normal/`)},he=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],K=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),ge=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],_e=(e,t,n,r)=>{if(e>=10){if(e>=25)return V[e-25](t.slice(n,r));let i=e-10;if(G!==he[i])return!1;if(re>=0){for(let e of K[i])if(ue(t,re,ie,e))return!0;return!1}switch(ge[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(ae,oe);return H.test(e)&&!U.test(e)}case 3:return pe(t.slice(ae,oe));case 4:return ne.test(t.slice(ae,oe));default:return W.test(t.slice(ae,oe))}}switch(e){case 0:return!0;case 1:return G===0;case 2:return G===1;case 3:return G===2;case 4:return de.test(t.slice(n,r));case 5:return pe(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&pe(t.slice(n,r-1));case 8:return fe.test(t.slice(n,r));default:return me(t,n,r)}},ve=new Set(typeof E==`string`?E.split(` `):E),ye=(e,t,n,r,i,a)=>{let o=Je(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},be=new Map,xe=new Map,Se=2,Ce=4096,we=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||ve.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=xe.get(s);return c===void 0&&xe.set(s,c=Se++),c},Te=new Map,Ee=r,De=r+4096,Oe=()=>Ee++,ke=2097152,Ae=8192,je=new Int32Array(Ae),Me=Array(Ae).fill(null),Ne=new Int32Array(Ae),Pe=new Int32Array(Ae),Fe=new Uint8Array(Ae),Ie=0,Le=(e,t,n,r,i,a,o,s)=>{let c=e;if(Me[e]!==null){if(Me[e|1]===null)c=e|1;else if(!(Ie++&3))c=e|Ie>>2&1;else return}Me[c]=t.slice(n,r),je[c]=i,Ne[c]=a,Pe[c]=o,Fe[c]=s},Re=()=>Me.fill(null),q=256,ze=[new Int32Array(q),new Int32Array(q),new Int32Array(q),new Int32Array(q)],[Be,Ve,He,Ue]=ze,We=new Uint8Array(q),Xe=new Uint8Array(q),Ze=()=>{q*=2,ze=ze.map(e=>{let t=new Int32Array(q);return t.set(e),t}),[Be,Ve,He,Ue]=ze;let e=new Uint8Array(q);e.set(We),We=e,Xe=new Uint8Array(q)},Qe=64,et=new Int32Array(Qe),tt=new Int32Array(Qe),nt=new Int32Array(r),J=2048,rt=21,it=new Float64Array(J),Y=new Int32Array(J),X=0,Z=(e,t)=>{if(e===0&&t<r)return nt[t]===X?1:(nt[t]=X,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>rt;for(;Y[i]===X;){if(it[i]===n)return 1;i=i+1&J-1}return it[i]=n,Y[i]=X,0},at=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?Ke:ye(Te,e,t+1,r,0,Oe)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=tt[t];if(r>n)continue;let i=et[t],a=n-r;if(N[i]===1&&a>0&&a<=P){let t=e.charCodeAt(r);if(F===!1||t!==91&&t!==40){let t=L(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;le(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(_e(d[t],e,r,n))return p[h+t]}return Ke},ot=e=>{let t=e.length,n=0,c=0,u=!1;(Se>Ce||be.size>Ce)&&(be=new Map,xe=new Map,Se=2,Re()),Ee>De&&(Te=new Map,Ee=r,Re());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ce(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ce(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===q&&Ze();let _=n++;Be[_]=p,Ve[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(je[y]===v&&Me[y]!==null&&Me[y].length===g?t=y:je[y|1]===v&&Me[y|1]!==null&&Me[y|1].length===g&&(t=y|1),t>=0){let n=Me[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){He[_]=Ne[t],Ue[_]=Pe[t],We[_]=Fe[t];continue}}}let b=p;if(B!==0){if(h-p<=B||!e.startsWith(z,p)){He[_]=Ke,Le(y,e,p,h,v,Ke,0,0);continue}b=p+B}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let M=E;D-E>1&&e.charCodeAt(E)===45&&(M=E+1);let P=0,F=0,I=0,ee=-1,L=0;(l[0]>=0||N[0]===1)&&(et[0]=0,tt[0]=M,L=1);let R=qe,te=0;for(let t=M;t<D;t++)if(t===A&&(R=F<I?qe:P,te=L),P!==qe){let n=e.charCodeAt(t),r=-1;if(F<I)o.charCodeAt(F)===n?(F++,F===I&&(r=P=ee)):P=qe;else{let e=i[P],t=i[P+1],c=qe;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(F=e+1,I=a[i+1],ee=s[i],c=P);break}}P=c}if(r>=0&&(l[r]>=0||N[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(L===Qe){Qe*=2;let e=new Int32Array(Qe);e.set(et),et=e;let t=new Int32Array(Qe);t.set(tt),tt=t}et[L]=r,tt[L]=t+2,L++}}A===D&&(R=F<I?qe:P,te=L);let V=F<I?qe:P,H,U=!1;if(A>=0){if(U=!0,H=at(e,E,A,R,te),H!==Ke&&H<r&&j[H]){let t=at(e,E,D,V,L);t!==Ke&&t!==H&&(H=t,U=!1)}else H===Ke&&(H=at(e,E,D,V,L),U=!1)}else H=at(e,E,D,V,L);let W=0,ne=0;H===Ke?He[_]=Ke:(ne=+!!U,W=b>=C?+!!O:ye(be,e,b,C,+!!O,e=>we(e,O)),He[_]=H,We[_]=ne,Ue[_]=W),Le(y,e,p,h,v,H,W,ne)}if(n===0)return``;if(n===1)return Be[0]===0&&Ve[0]===t?e:e.slice(Be[0],Ve[0]);if(n*k>J){for(;n*k>J;)J<<=1,rt--;it=new Float64Array(J),Y=new Int32Array(J)}if(Se>=ke||Ee>=ke)throw Error(`cn: too many distinct classes in one merge`);X=X+1|0,X===0&&(nt.fill(0),Y.fill(0),X=1);let f=!1;for(let e=n-1;e>=0;e--){let t=He[e];if(t===Ke){Xe[e]=1;continue}let n=Ue[e];if(Z(n,t)===1)Xe[e]=0,f=!0;else if(Xe[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)Z(n,x[e]);if(We[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&Z(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Xe[m]){m++;continue}let t=Be[m],r=Ve[m],i=m+1;for(;i<n&&Xe[i]&&Be[i]===r+1&&e.charCodeAt(r)===32;)r=Ve[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},st=16384,Q=new Int32Array(st*2),ct=0,$=1,lt=Object.create(null),ut=Object.create(null),dt=new Map,ft=new Map,pt=0,mt=0,ht=()=>{ct^=st,$=$+1|0,mt=0},gt=e=>{let t=lt[e];if(t!==void 0)return t;let n=Ye(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^st]===(n^$-1);return i&&(t=ut[e],t!==void 0)?(lt[e]=t,t):(t=ot(e),i?(lt[e]=t,++pt>R&&(pt=0,ut=lt,lt=Object.create(null),ht())):(Q[r]=n^$,++mt>st&&ht()),t)},_t=e=>{let t=dt.get(e);if(t!==void 0)return t;let n=Ye(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^st]===(n^$-1);return i&&(t=ft.get(e),t!==void 0)?(dt.set(e,t),t):(t=ot(e),i?(dt.set(e,t),++pt>R&&(pt=0,ft=dt,dt=new Map,ht())):(Q[r]=n^$,++mt>st&&ht()),t)},vt=e=>{let t=Ye(e,0,e.length),n=(t&16383)+ct;return Q[n]===(t^$)||Q[n^st]===(t^$-1)||(Q[n]=t^$,++mt>st&&ht(),!1)},yt=R===0?ot:Ge?e=>{let t=dt.get(e);return t===void 0?_t(e):t}:gt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?yt(arguments[0]):yt($e.apply(null,arguments))},mergeString:yt,seenBefore:R===0?()=>!1:vt,mergeUncached:ot}},Ze=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Ze(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},Qe=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Ze(i,t);a&&(n&&(n+=` `),n+=a)}return n},$e=function(){return Qe(arguments,!1)},et=256,tt=16,nt=1024,J=4096,rt=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(J).fill(``),l=Array(J).fill(``),u=Array(J).fill(``));let i=Ye(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Ze(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>tt&&(_.miss=tt,_.skip=nt,_.e.length=0,_.at=0);let u=_.e;u.length<et?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(Ze(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},it=Xe(We),Y=rt(it.mergeString,it);it.merge;var X=e(m(),1),Z=e(S(),1),at=`size-5 -me-0.5 fill-(--callout-color) text-fd-card`;function ot({children:e,title:t,...n}){return(0,Z.jsxs)(Q,{...n,children:[t&&(0,Z.jsx)(ct,{children:t}),(0,Z.jsx)($,{children:e})]})}function st(e){return e===`warn`?`warning`:e===`tip`?`info`:e}function Q({type:e=`info`,icon:t,children:n,className:r,style:i,...a}){let o=st(e);return(0,Z.jsxs)(`div`,{className:Y(`flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground`,r),style:{"--callout-color":`var(--color-fd-${o}, var(--color-fd-muted))`,...i},...a,children:[(0,Z.jsx)(`div`,{role:`none`,className:`w-0.5 bg-(--callout-color)/50 rounded-sm`}),t??{info:(0,Z.jsx)(ue,{className:at}),warning:(0,Z.jsx)(z,{className:at}),error:(0,Z.jsx)(G,{className:at}),success:(0,Z.jsx)(W,{className:at}),idea:(0,Z.jsx)(fe,{className:`size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)`})}[o],(0,Z.jsx)(`div`,{className:`flex flex-col gap-2 min-w-0 flex-1`,children:n})]})}function ct({children:e,className:t,...n}){return(0,Z.jsx)(`p`,{className:Y(`font-medium my-0!`,t),...n,children:e})}function $({children:e,className:t,...n}){return(0,Z.jsx)(`div`,{className:Y(`text-fd-muted-foreground prose-no-margin empty:hidden`,t),...n,children:e})}var lt=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},ut=(0,X.createContext)({useParams:lt,useRouter:lt,usePathname:lt});function dt(e){let{Image:t}=(0,X.use)(ut);if(!t){let{src:t,alt:n,priority:r,...i}=e;return(0,Z.jsx)(`img`,{alt:n,src:t,fetchPriority:r?`high`:`auto`,...i})}return(0,Z.jsx)(t,{...e})}function ft(e){let{Link:t}=(0,X.use)(ut);if(!t){let{href:t,prefetch:n,...r}=e;return(0,Z.jsx)(`a`,{href:t,...r})}return(0,Z.jsx)(t,{...e})}function pt({ref:e,href:t=`#`,external:n=!!(t.match(/^\w+:/)||t.startsWith(`//`)),prefetch:r,children:i,...a}){return n?(0,Z.jsx)(`a`,{ref:e,href:t,rel:`noreferrer noopener`,target:`_blank`,...a,children:i}):(0,Z.jsx)(ft,{ref:e,href:t,prefetch:r,...a,children:i})}function mt(e){return(0,Z.jsx)(`div`,{...e,className:Y(`grid grid-cols-2 gap-3 @container`,e.className),children:e.children})}function ht({icon:e,title:t,description:n,...r}){let i=r.href?pt:`div`;return(0,Z.jsxs)(i,{...r,"data-card":!0,className:Y(`block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full`,r.href&&`hover:bg-fd-accent/80`,r.className),children:[e?(0,Z.jsx)(`div`,{className:`not-prose mb-2 w-fit shadow-md rounded-lg border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4`,children:e}):null,(0,Z.jsx)(`h3`,{className:`not-prose mb-1 text-sm font-medium`,children:t}),n?(0,Z.jsx)(`p`,{className:`my-0! text-sm text-fd-muted-foreground`,children:n}):null,(0,Z.jsx)(`div`,{className:`text-sm text-fd-muted-foreground prose-no-margin empty:hidden`,children:r.children})]})}var gt=`bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80`,_t={default:gt,primary:gt,outline:`border hover:bg-fd-accent hover:text-fd-accent-foreground`,ghost:`hover:bg-fd-accent hover:text-fd-accent-foreground`,secondary:`border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground`},vt=l(`inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring`,{variants:{variant:_t,color:_t,size:{sm:`gap-1 px-2 py-1.5 text-xs`,icon:`p-1.5 [&_svg]:size-5`,"icon-sm":`p-1.5 [&_svg]:size-4.5`,"icon-xs":`p-1 [&_svg]:size-4`}}});function yt(e){let[t,n]=(0,X.useState)(!1),r=(0,X.useRef)(e),i=(0,X.useRef)(null);r.current=e;let a=(0,X.useCallback)(()=>{i.current&&window.clearTimeout(i.current),Promise.resolve(r.current()).then(()=>{n(!0),i.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,X.useEffect)(()=>()=>{i.current&&window.clearTimeout(i.current)},[]),[t,a]}var bt=(0,X.createContext)({}),xt=/\\?\{([^}]+)\}/g;function St({note:e}={}){let t=(0,X.use)(bt);return(0,X.useMemo)(()=>Ct(t,{note:e}),[t,e])}function Ct(e,{note:t}={}){let n=(n,r={})=>{let{note:i,variables:a}=r,o=[];t&&o.push(t),i&&o.push(i);let s=e[wt(n,o)]??n;return a&&(s=s.replaceAll(xt,(e,t)=>e[0]===`\\`?e.slice(1):t in a?a[t]:e)),s};return n.jsx=(n,r={})=>{let{note:i,variables:a,tags:o}=r,s=[];t&&s.push(t),i&&s.push(i);let c=e[wt(n,s)]??n;return o?Dt(c,a,o):a?Tt(c,a):c},n.translations=e,n}function wt(e,t){return e+t.map(e=>`(${e})`).join(``)}function Tt(e,t){let n=0,r=[];for(let i of e.matchAll(xt)){let[a,o]=i;n<i.index&&r.push(e.slice(n,i.index)),n=i.index+a.length,a[0]===`\\`?r.push(a.slice(1)):o in t?r.push(kt(t[o],n)):r.push(a)}return r.push(e.slice(n)),r}var Et=/\\?<([^>]+)>/g;function Dt(e,t,n){let r=[{children:[]}],i=0,a=()=>{let e=r.pop();r[r.length-1].children.push(kt(e.tag&&n[e.tag]?Ot(n[e.tag],e.children):e.children,i))};for(let o of e.matchAll(Et)){let s=r[r.length-1],[c,l]=o;if(i<o.index){let n=e.slice(i,o.index);s.children.push(t?Tt(n,t):n)}if(i=o.index+c.length,c[0]===`\\`){let e=c.slice(1);s.children.push(t?Tt(e,t):e)}else if(l[0]===`/`){let e=l.slice(1);s.tag===e?a():s.children.push(t?Tt(c,t):c)}else if(l.at(-1)===`/`){let e=l.slice(0,-1);n[e]&&s.children.push(kt(Ot(n[e]),i))}else r.push({children:[],tag:l})}if(i<e.length){let n=e.slice(i);r[r.length-1].children.push(t?Tt(n,t):n)}for(;r.length>1;)a();return r[0].children}function Ot(e,t){return(0,X.isValidElement)(e)?t===void 0?e:(0,X.cloneElement)(e,void 0,t):e(t)}function kt(e,t){return(0,X.isValidElement)(e)?(0,X.cloneElement)(e,{key:t}):e}function At({as:e,...t}){let n=e??`h1`,r=St({note:`heading anchor`}),[i,a]=yt(()=>{if(!t.id)return;let e=new URL(window.location.href);return e.hash=t.id,navigator.clipboard.writeText(e.href)});return t.id?(0,Z.jsxs)(n,{...t,className:Y(`group/heading flex scroll-m-28 flex-row items-center gap-1`,t.className),children:[(0,Z.jsx)(`a`,{"data-card":``,href:`#${t.id}`,children:t.children}),(0,Z.jsxs)(`button`,{"aria-live":`polite`,className:Y(vt({variant:`ghost`,size:`icon-xs`}),`not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100`),onClick:a,children:[i?(0,Z.jsx)(oe,{}):(0,Z.jsx)(me,{}),(0,Z.jsx)(`span`,{className:`sr-only`,children:r(i?`Copied Anchor Link`:`Copy Anchor Link`,{note:`aria-label`})})]})]}):(0,Z.jsx)(n,{...t})}function jt(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})}}var Mt=X.createContext(void 0);function Nt(){let e=X.useContext(Mt);if(e===void 0)throw Error(O(64));return e}var Pt=`data-activation-direction`,Ft={tabActivationDirection:e=>({[Pt]:e})},It=X.forwardRef(function(e,n){let{className:r,defaultValue:i=0,onValueChange:a,orientation:o=`horizontal`,render:s,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,f=X.useRef([]),[m,h]=X.useState(()=>new Map),[g,_]=k({controlled:c,default:i,name:`Tabs`,state:`value`}),v=c!==void 0,[y,S]=X.useState(()=>new Map),C=X.useRef(void 0),T=X.useCallback(e=>Lt(y,e),[y]),[D,O]=X.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=D,M=j,P=!1;A!==g&&(M=Rt(A,g,o,y),P=A!=null&&g!=null&&T(g)==null);let F=P?A:g,ee=A!==F||j!==M;t(()=>{ee&&O({previousValue:F,tabActivationDirection:M})},[F,ee,M]);let L=E((e,t)=>{t.activationDirection=Rt(g,e,o,y),a?.(e,t),!t.isCanceled&&_(()=>e)}),R=E((e,t)=>{a?.(e,I(t,void 0,void 0,{activationDirection:`none`}))}),te=E((e,t)=>(h(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{h(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),z=X.useCallback(e=>m.get(e),[m]),B=X.useCallback(e=>{for(let t of y.values())if(e===t.value)return t.id},[y]),V=X.useMemo(()=>({getTabElementBySelectedValue:T,getTabIdByPanelValue:B,getTabPanelIdByValue:z,onValueChange:L,orientation:o,registerMountedTabPanel:te,setTabMap:S,tabActivationDirection:M,value:g}),[T,B,z,L,o,te,S,M,g]),H=X.useMemo(()=>{for(let e of y.values())if(e.value===g)return e},[y,g]),U=X.useMemo(()=>{for(let e of y.values())if(!e.disabled)return e.value},[y]),W=X.useRef(!d),ne=X.useRef(i),G=X.useRef(d),re=X.useRef(!1);t(()=>{if(v)return;function e(e,t){_(()=>e),O({previousValue:e,tabActivationDirection:`none`}),R(e,t),W.current=!1}if(y.size===0){re.current&&g!==null&&!C.current?.isConnected&&e(null,w);return}re.current=!0,C.current=y.keys().next().value;let t=H?.disabled,n=H==null&&g!==null;if(!t&&g===ne.current&&(G.current=!1),G.current&&t&&g===ne.current)return;let r=W.current;if(t||n){let n=U??null;if(g===n){W.current=!1;return}let i=w;r?i=x:t&&(i=p),e(n,i)}else r&&H!=null&&(R(g,x),W.current=!1)},[U,v,R,H,_,y,g]);let ie=b(`div`,e,{state:{orientation:o,tabActivationDirection:M},ref:n,props:u,stateAttributesMapping:Ft});return(0,Z.jsx)(Mt.Provider,{value:V,children:(0,Z.jsx)(N,{elementsRef:f,children:ie})})});function Lt(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function Rt(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=Lt(r,e),c=Lt(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var zt=X.createContext(void 0);function Bt(){let e=X.useContext(zt);if(e===void 0)throw Error(O(65));return e}var Vt=X.forwardRef(function(e,n){let{className:i,disabled:a=!1,render:o,value:c,id:l,nativeButton:u=!0,style:f,...p}=e,{value:m,getTabPanelIdByValue:h,onValueChange:v,orientation:y,tabActivationDirection:x}=Nt(),{activateOnFocus:S,registerTabResizeObserverElement:C,tabsListElement:w}=Bt(),{highlightedIndex:D,onHighlightedIndexChange:O}=s(),k=T(l),A=X.useMemo(()=>({disabled:a,id:k,value:c}),[a,k,c]),{compositeProps:j,compositeRef:M,index:N}=R({metadata:A}),P=c===m,F=X.useRef(!1),ee=X.useRef(null),te=E(e=>{ee.current?.(),ee.current=e?C(e):null});t(()=>{if(F.current){F.current=!1;return}if(!(P&&N>-1&&D!==N))return;let e=w;if(e!=null){let t=B(r(e));if(t&&_(e,t))return}a||O(N)},[P,N,D,O,a,w]);let{getButtonProps:z,buttonRef:V}=d({disabled:a,native:u,focusableWhenDisabled:!0}),H=h(c),U=X.useRef(!1),W=X.useRef(!1);function ne(e){v(c,I(g,e.nativeEvent,void 0,{activationDirection:`none`}))}function G(e){P||a||ne(e)}function re(e){P||a||S&&(!U.current||W.current)&&ne(e)}function ie(e){if(P||a)return;U.current=!0,W.current=e.button===0;let t=r(e.currentTarget);function n(){U.current=!1,W.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return b(`button`,e,{state:{disabled:a,active:P,orientation:y,tabActivationDirection:x},ref:[n,V,M,te],props:[j,{role:`tab`,"aria-controls":H,"aria-selected":P,id:k,onClick:G,onFocus:re,onPointerDown:ie,[L]:P?``:void 0,onKeyDownCapture(){F.current=!0}},p,z],stateAttributesMapping:Ft})}),Ht=`data-index`,Ut={...Ft,...C},Wt=X.forwardRef(function(e,n){let{className:r,value:i,render:o,keepMounted:s=!1,style:l,...u}=e,{value:d,getTabIdByPanelValue:f,orientation:p,tabActivationDirection:m,registerMountedTabPanel:h}=Nt(),g=T(),{ref:_,index:y}=v(),x=i===d,{mounted:S,transitionStatus:C,setMounted:w}=c(x),E=!S,O=f(i),k={hidden:E,orientation:p,tabActivationDirection:m,transitionStatus:C},A=X.useRef(null),j=b(`div`,e,{state:k,ref:[n,_,A],props:[{"aria-labelledby":O,hidden:E,id:g,role:`tabpanel`,tabIndex:x?0:-1,inert:D(!x),[Ht]:y},u],stateAttributesMapping:Ut});return a({open:x,ref:A,onComplete(){x||w(!1)}}),t(()=>{if(!(g==null||E&&!s))return h(i,g)},[E,s,i,g,h]),s||S?j:null}),Gt=X.forwardRef(function(e,n){let{activateOnFocus:r=!1,className:i,loopFocus:a=!0,render:o,style:s,...c}=e,{orientation:l,setTabMap:u,tabActivationDirection:d}=Nt(),[f,p]=X.useState(0),[m,h]=X.useState(null),g=X.useRef(new Set),_=X.useRef(new Set),v=X.useRef(null);t(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{g.current.forEach(e=>{e()})});return v.current=e,m&&e.observe(m),_.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),v.current=null}},[m]);let y=E(e=>(g.current.add(e),()=>{g.current.delete(e)})),b=E(e=>(_.current.add(e),v.current?.observe(e),()=>{_.current.delete(e),v.current?.unobserve(e)})),x={orientation:l,tabActivationDirection:d},S={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},C=X.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:b,tabsListElement:m}),[r,y,b,m]);return(0,Z.jsx)(zt.Provider,{value:C,children:(0,Z.jsx)(j,{render:o,className:i,style:s,state:x,refs:[n,h],props:[S,c],stateAttributesMapping:Ft,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:a,orientation:l,onHighlightedIndexChange:p,onMapChange:u,disabledIndices:M})})}),Kt=new Map,qt=(0,X.createContext)(null);function Jt(){let e=(0,X.use)(qt);if(!e)throw Error(`You must wrap your component in <Tabs>`);return e}var Yt=Gt;function Xt({value:e,ref:t,...n}){let{triggers:r}=Jt();return(0,Z.jsx)(Vt,{ref:jt(t,t=>{t?r.add(e):r.delete(e)}),value:e,...n})}function Zt({ref:e,groupId:t,persist:n=!1,updateAnchor:r=!1,defaultValue:i,value:a,onValueChange:o,...s}){let c=(0,X.useRef)(null),l=(0,X.useMemo)(()=>new Map,[]),u=(0,X.useMemo)(()=>new Map,[]),d=(0,X.useMemo)(()=>new Set,[]),[f,p]=a===void 0?(0,X.useState)(i):[a,e=>o?.(e)],m=(0,X.useEffectEvent)(e=>{d.has(e)&&p(e)}),h=(0,X.useEffectEvent)(()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,n]of l.entries())if(n===e){p(t),c.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,n]of u.entries())if(n.contains(t)){p(e),requestAnimationFrame(()=>t.scrollIntoView());return}}});return(0,X.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);n&&(e??=localStorage.getItem(t)),e&&m(e);let r=Kt.get(t)??new Set;return r.add(m),Kt.set(t,r),()=>{r.delete(m)}},[t,n]),(0,X.useLayoutEffect)(()=>(h(),window.addEventListener(`hashchange`,h),()=>window.removeEventListener(`hashchange`,h)),[]),(0,Z.jsx)(It,{ref:jt(e,c),value:f,onValueChange:e=>{if(r){let t=l.get(e);t&&window.history.replaceState(null,``,`#${t}`)}if(t){let r=Kt.get(t);if(r)for(let t of r)t(e);sessionStorage.setItem(t,e),n&&localStorage.setItem(t,e)}else p(e)},...s,children:(0,Z.jsx)(qt,{value:(0,X.useMemo)(()=>({valueToIdMap:l,panels:u,triggers:d}),[l,u,d]),children:s.children})})}function Qt({value:e,ref:t,...n}){let{valueToIdMap:r,panels:i}=Jt();return n.id&&r.set(e,n.id),(0,Z.jsx)(Wt,{ref:jt(t,t=>{t?i.set(e,t):i.delete(e)}),value:e,...n,children:n.children})}var $t=(0,X.createContext)(null);function en(e){return(0,Z.jsx)(`pre`,{...e,className:Y(`min-w-full w-max *:flex *:flex-col`,e.className),children:e.children})}function tn({ref:e,title:t,allowCopy:n=!0,keepBackground:r=!1,icon:i,viewportProps:a={},children:o,Actions:s=e=>(0,Z.jsx)(`div`,{...e,className:Y(`empty:hidden`,e.className)}),...c}){let l=(0,X.use)($t)!==null,u=(0,X.useRef)(null);return n===`true`?n=!0:n===`false`&&(n=!1),(0,Z.jsxs)(`figure`,{ref:e,dir:`ltr`,...c,tabIndex:-1,className:Y(l?`bg-fd-secondary -mx-px -mb-px last:rounded-b-xl`:`my-4 bg-fd-card rounded-xl`,r&&`bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)`,`shiki relative border not-prose overflow-hidden text-sm`,c.className),children:[t?(0,Z.jsxs)(`div`,{className:`flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4`,children:[typeof i==`string`?(0,Z.jsx)(`div`,{className:`[&_svg]:size-3.5`,dangerouslySetInnerHTML:{__html:i}}):i,(0,Z.jsx)(`figcaption`,{className:`flex-1 truncate`,children:t}),s({className:`-me-2`,children:n&&(0,Z.jsx)(nn,{containerRef:u})})]}):s({className:`absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground`,children:n&&(0,Z.jsx)(nn,{containerRef:u})}),(0,Z.jsx)(`div`,{ref:u,...a,role:`region`,tabIndex:0,className:Y(`text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring`,a.className),style:{"--padding-right":t?void 0:`calc(var(--spacing) * 8)`,counterSet:c[`data-line-numbers`]?`line ${Number(c[`data-line-numbers-start`]??1)-1}`:void 0,...a.style},children:o})]})}function nn({className:e,containerRef:t,...n}){let r=St({note:`code block`}),[i,a]=yt(()=>{let e=t.current?.getElementsByTagName(`pre`).item(0);if(!e)return;let n=e.cloneNode(!0);return n.querySelectorAll(`.nd-copy-ignore`).forEach(e=>{e.replaceWith(`
|
|
2
2
|
`)}),navigator.clipboard.writeText(n.textContent??``)});return(0,Z.jsxs)(`button`,{type:`button`,"data-checked":i||void 0,className:Y(vt({className:`hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground`,size:`icon-xs`}),e),"aria-live":`polite`,onClick:a,...n,children:[i?(0,Z.jsx)(F,{}):(0,Z.jsx)(ie,{}),(0,Z.jsx)(`span`,{className:`sr-only`,children:r(i?`Copied Text`:`Copy Text`,{note:`aria-label`})})]})}function rn({ref:e,className:t,...n}){let r=(0,X.useRef)(null),i=(0,X.use)($t)!==null;return(0,Z.jsx)(Zt,{ref:jt(r,e),...n,className:e=>Y(`bg-fd-card rounded-xl border`,!i&&`my-4`,typeof t==`function`?t(e):t),children:(0,Z.jsx)($t,{value:(0,X.useMemo)(()=>({containerRef:r,nested:i}),[i]),children:n.children})})}function an({className:e,...t}){return(0,Z.jsx)(Yt,{...t,className:t=>Y(`flex flex-row px-2 overflow-x-auto text-fd-muted-foreground`,typeof e==`function`?e(t):e),children:t.children})}function on({children:e,className:t,...n}){return(0,Z.jsxs)(Xt,{...n,className:e=>Y(`relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 [&_svg]:size-3.5`,e.active?`text-fd-primary`:`hover:text-fd-accent-foreground`,typeof t==`function`?t(e):t),children:[(0,Z.jsx)(`div`,{className:`absolute inset-x-2 bottom-0 h-px group-data-active:bg-fd-primary`}),e]})}function sn(e){return(0,Z.jsx)(Qt,{...e})}function cn(e){return(0,Z.jsx)(dt,{sizes:`(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px`,...e,className:Y(`rounded-lg`,e.className)})}function ln(e){return(0,Z.jsx)(`div`,{className:`relative overflow-auto prose-no-margin my-6`,children:(0,Z.jsx)(`table`,{...e})})}var un={CodeBlockTab:sn,CodeBlockTabs:rn,CodeBlockTabsList:an,CodeBlockTabsTrigger:on,pre:e=>(0,Z.jsx)(tn,{...e,children:(0,Z.jsx)(en,{children:e.children})}),Card:ht,Cards:mt,a:pt,img:cn,h1:e=>(0,Z.jsx)(At,{as:`h1`,...e}),h2:e=>(0,Z.jsx)(At,{as:`h2`,...e}),h3:e=>(0,Z.jsx)(At,{as:`h3`,...e}),h4:e=>(0,Z.jsx)(At,{as:`h4`,...e}),h5:e=>(0,Z.jsx)(At,{as:`h5`,...e}),h6:e=>(0,Z.jsx)(At,{as:`h6`,...e}),table:ln,Callout:ot,CalloutContainer:Q,CalloutTitle:ct,CalloutDescription:$};function dn(e){let{open:t,defaultOpen:n=!1,onOpenChange:r,disabled:i}=e,[a,o]=k({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:l,transitionStatus:u}=c(a,!0,!0),d=T(),[f,p]=X.useState(),m=f===null?void 0:f??d,h=E(e=>{let t=!a,n=I(y,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return X.useMemo(()=>({defaultPanelId:d,disabled:i,handleTrigger:h,mounted:s,open:a,panelId:m,setMounted:l,setOpen:o,setPanelIdState:p,transitionStatus:u}),[d,i,h,s,a,m,l,o,p,u])}var fn=X.createContext(void 0);function pn(){let e=X.useContext(fn);if(e===void 0)throw Error(O(15));return e}var mn=`data-open`,hn=`data-closed`,gn=h,_n=`data-panel-open`,vn={[mn]:``},yn={[hn]:``},bn={open(e){return e?{[_n]:``}:null}},xn={open(e){return e?vn:yn}},Sn={...xn,...C},Cn=X.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...l}=e,u=E(o),d=dn({open:s,defaultOpen:i,onOpenChange:u,disabled:a}),f=X.useMemo(()=>({open:d.open,disabled:d.disabled,transitionStatus:d.transitionStatus}),[d.open,d.disabled,d.transitionStatus]),p=X.useMemo(()=>({...d,onOpenChange:u,state:f}),[d,u,f]),m=b(`div`,e,{state:f,ref:t,props:l,stateAttributesMapping:Sn});return(0,Z.jsx)(fn.Provider,{value:p,children:m})}),wn={...bn,...C},Tn=X.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=pn(),{className:s,disabled:c=o,render:l,nativeButton:u=!0,style:f,...p}=e,{getButtonProps:m,buttonRef:h}=d({disabled:c,native:u});return b(`button`,e,{state:a,ref:[t,h],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},p,m],stateAttributesMapping:wn})}),En={height:void 0,width:void 0};function Dn(e){let{externalRef:n,hiddenUntilFound:r,id:s,keepMounted:c,mounted:l,onOpenChange:d,open:p,setMounted:m,setOpen:h,transitionStatus:_}=e,v=X.useRef(null),y=X.useRef(null),[b,x]=X.useState(En),S=X.useRef(En),C=X.useRef(!1),w=X.useRef(p),T=X.useRef(!1),[D,O]=X.useState(!1),k=X.useRef(null),A=P(n,v),j=i(p),M=o(v),N=!p&&!l,F=D?`idle`:_,L=p&&(w.current||T.current),R=!p&&l&&y.current===`css-animation`&&b.height===void 0&&b.width===void 0?S.current:b,te=r&&N&&y.current!==`css-animation`,z=E((e,t=!0)=>{t&&(S.current=e),x(e)}),B=E(()=>{k.current?.(),k.current=null}),V=E(e=>{B(),k.current=()=>{k.current=null,e()}}),H=E(()=>{p&&l&&y.current===`css-animation`&&(T.current=!0)});t(()=>{D&&_!==`starting`&&O(!1)},[D,_]),X.useEffect(()=>()=>{H(),B()},[H,B]),t(()=>{p||(w.current=!1,T.current=!1);let e=v.current;if(!e)return;!p&&k.current&&B();let t=kn(e,L);if(y.current=t,p&&_===`idle`&&w.current&&t===`css-animation`){S.current=On(e);return}if(p&&_===`starting`){let n=C.current;if(C.current=!1,t===`none`){z(On(e)),O(!0);return}if(t===`css-transition`){let t=Mn(e);if(z(On(e)),!n)return t;let r=jn(e,`transition-duration`,`0s`);return V(r),O(!0),t}z(On(e));let r=jn(e,`animation-name`,`none`);if(!n){r();return}let i=jn(e,`animation-duration`,`0s`);r(),V(i),O(!0);return}if(!p&&l&&(_===`idle`||_===`starting`)){if(t===`none`){z(En,!1),m(!1);return}z(On(e));return}if(_!==`ending`)return;if(t===`none`){m(!1);return}let n=On(e);n.height>0||n.width>0?(z(n),t===`css-animation`&&jn(e,`animation-name`,`none`)()):m(!1)},[l,p,B,z,m,V,L,_]),a({enabled:p&&l&&F===`idle`,open:!0,ref:v,onComplete(){p&&z(En,!1)}}),X.useEffect(()=>{if(p||!l||F!==`ending`)return;if(!v.current){m(!1),z(En,!1);return}let e=new AbortController,t=-1;function n(){j.current||(m(!1),z(En,!1))}return t=f.request(()=>{M(n,e.signal)}),()=>{f.cancel(t),e.abort()}},[j,l,p,F,M,z,m]),t(()=>{let e=v.current;e&&r&&N&&e.setAttribute(`hidden`,`until-found`)},[N,r]),X.useEffect(function(){let e=v.current;if(!e)return;let t=u.create(),n=-1,r=(r,i)=>{t.start(0,()=>{j.current||(n=f.request(()=>{j.current||(r&&(C.current=!1),i&&e.setAttribute(gn,``),e.setAttribute(`hidden`,`until-found`))}))})},i=ee(e,`beforematch`,t=>{let n=I(g,t);if(d(!0,n),n.isCanceled){r(!1,!1);return}C.current=!0;let i=e.hasAttribute(gn);e.removeAttribute(gn),h(!0),r(!0,i)});return()=>{t.clear(),f.cancel(n),i()}},[j,d,h]);let U=c||r||l||p;return{height:R.height,props:{...te?{[gn]:``}:void 0,hidden:N,id:s},ref:A,shouldPreventOpenAnimation:L,shouldRender:U,transitionStatus:F,width:R.width}}function On(e){return{height:e.scrollHeight,width:e.scrollWidth}}function kn(e,t){let r=n(e).getComputedStyle(e),i=(r.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&An(r.animationDuration),a=An(r.transitionDuration);return i&&a||a?`css-transition`:i?`css-animation`:`none`}function An(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function jn(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{r===``?e.style.removeProperty(t):e.style.setProperty(t,r,i)}}function Mn(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})}let r=f.request(n);return()=>{f.cancel(r),n()}}var Nn=`--collapsible-panel-height`,Pn=`--collapsible-panel-width`,Fn=X.forwardRef(function(e,n){let{className:r,hiddenUntilFound:i,keepMounted:a,render:o,id:s,style:c,...l}=e,{defaultPanelId:u,mounted:d,onOpenChange:f,open:p,setMounted:m,setPanelIdState:h,setOpen:g,state:_,transitionStatus:v}=pn(),y=i??!1,x=a??!1,S=s||void 0,C=S??u;t(()=>(h(e=>S??(e===null?void 0:e)),()=>{h(e=>e===S?null:e)}),[S,h]);let{height:w,props:T,ref:E,shouldPreventOpenAnimation:D,shouldRender:O,transitionStatus:k,width:A}=Dn({externalRef:n,hiddenUntilFound:y,id:C,keepMounted:x,mounted:d,onOpenChange:f,open:p,setMounted:m,setOpen:g,transitionStatus:v}),j={..._,transitionStatus:k},M=te(c,j),N=b(`div`,{...e,style:void 0},{state:j,ref:E,props:[T,{style:{[Nn]:w===void 0?`auto`:`${w}px`,[Pn]:A===void 0?`auto`:`${A}px`}},l,M?{style:M}:void 0,D?{style:{animationName:`none`}}:void 0],stateAttributesMapping:Sn});return O?N:null});export{pt as A,Nt as C,St as D,Ct as E,ue as F,ce as I,H as L,ot as M,Y as N,yt as O,me as P,Ft as S,At as T,Gt as _,xn as a,Bt as b,pn as c,tn as d,en as f,Xt as g,Yt as h,Cn as i,dt as j,vt as k,dn as l,Qt as m,Dn as n,bn as o,Zt as p,Tn as r,fn as s,Fn as t,un as u,Wt as v,jt as w,It as x,Vt as y};
|