@inkeep/open-knowledge 0.43.0-beta.4 → 0.43.0-beta.5
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/dist/{acp-harness-probe-C29TtpFg.mjs → acp-harness-probe-uDdHWNL-.mjs} +2 -2
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/constants-BntS49ok.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-DtjPtze9.mjs → init-CQjWnDyJ.mjs} +3 -3
- package/dist/init-CjsWwDiG.mjs +1 -0
- package/dist/{launch-json-removal-CV_EUvf8.mjs → launch-json-removal-hPIY3ORN.mjs} +2 -2
- package/dist/{loader-Ctk_4chy.mjs → loader--daOSVRx.mjs} +2 -2
- package/dist/loader-Bdd9Hpht.mjs +1 -0
- package/dist/preview-BLzlDLtg.mjs +1 -0
- package/dist/{preview-CXgePDni.mjs → preview-CIrhNK06.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-BO0ca8eq.js → ActivityModeContent-CLCEYxxm.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-V2iLRBtO.js → AgentDiffPane-HC0l-jAm.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BLK9R867.js → CodeMirrorPropInput-Djh0SuEr.js} +2 -2
- package/dist/public/assets/DocumentContext-DtTuE1Io.js +38 -0
- package/dist/public/assets/{EditorModeToggle-DddZKvDr.js → EditorModeToggle-m60CTJAS.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-B90yUF0U.js → EnableSyncConfirmDialog-CmOaa7u6.js} +1 -1
- package/dist/public/assets/FeedbackForm-CB2D4o-U.js +1 -0
- package/dist/public/assets/LintConfigEditor-CG32T9Bc.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-BR9c9CMw.js → ManagedArtifactProperties-BqZDRWui.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-CmqbkkkT.js → MermaidDocEditor-DYAGklFd.js} +1 -1
- package/dist/public/assets/{PropertyPanel-DngwQ5B6.js → PropertyPanel-CQ9-TfFW.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Wf9EcJyx.js → SchemaConfigEditor-DR9sBY7L.js} +1 -1
- package/dist/public/assets/{SettingsDialogBody-ld6RZ6z0.js → SettingsDialogBody-Ckxs9MZl.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-DrKVsCbl.js → ShareReceiveMissDialog-CeDdLv9e.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-BvixdvJz.js → SkillEditorActions-B6Ri1Q4W.js} +1 -1
- package/dist/public/assets/SourceEditor-584PABgS.js +1 -0
- package/dist/public/assets/{TerminalSessionsHost-CTgtneAy.js → TerminalSessionsHost-5CJH-urC.js} +2 -2
- package/dist/public/assets/{TerminalWindowApp-BZmQ1Iuk.js → TerminalWindowApp-s5h-StJj.js} +1 -1
- package/dist/public/assets/{ThreadView-B4be_-pW.js → ThreadView-_ASZAYku.js} +3 -3
- package/dist/public/assets/{TimelineDiffPane-axMRctYB.js → TimelineDiffPane-BlsSOyVs.js} +1 -1
- package/dist/public/assets/{auth-state-cache-9XP-_-7q.js → auth-state-cache-DihAjb1G.js} +1 -1
- package/dist/public/assets/{client-version-yC4_z6w2.js → client-version-CNCitOQb.js} +1 -1
- package/dist/public/assets/{config-provider-D_pm5JRC.js → config-provider-Dpt8oAZ8.js} +1 -1
- package/dist/public/assets/{globals-BzYms-F0.js → globals-Bz5J9ieN.js} +1 -1
- package/dist/public/assets/{globals-88oPHAs4.css → globals-DwTVKVQU.css} +1 -1
- package/dist/public/assets/index-DsP8vODF.js +2013 -0
- package/dist/public/assets/{pending-receive-nav-store-Cr7aLSIB.js → pending-receive-nav-store-iWuVt_O_.js} +1 -1
- package/dist/public/assets/{selection-context-A5zmusm7.js → selection-context-D2NL0ZYe.js} +1 -1
- package/dist/public/assets/{skill-actions-CAOP92og.js → skill-actions-Bm81TEuc.js} +1 -1
- package/dist/public/assets/{src-BnHStkus.js → src-BrE-vrMc.js} +1 -1
- package/dist/public/assets/{telemetry-impl-rSw405SP.js → telemetry-impl-Bl_U4MrE.js} +1 -1
- package/dist/public/assets/{telemetry-startup-CfHWVhDL.js → telemetry-startup-DXlGUC0d.js} +1 -1
- package/dist/public/assets/typing-burst-detector-BUE99JBg.js +8 -0
- package/dist/public/assets/{uninstall-BJWUalRu.js → uninstall-Di3Xmi-v.js} +1 -1
- package/dist/public/assets/{use-activity-panel-C7sGg6Yo.js → use-activity-panel-CfPHs6aY.js} +1 -1
- package/dist/public/assets/use-settings-route-Dr_fNsJI.js +1 -0
- package/dist/public/assets/{use-terminal-enabled-kukfhICN.js → use-terminal-enabled-hubpQqbk.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-lQP59BiR.js → use-timeline-entry-diff-C89R_FvT.js} +2 -2
- package/dist/public/index.html +16 -16
- package/dist/public/uninstall.html +3 -3
- package/dist/{repair-launch-json-D2cDfheC.mjs → repair-launch-json-8l-GD_p5.mjs} +2 -2
- package/dist/{repair-mcp-configs-DZnzv4nx.mjs → repair-mcp-configs-C39sB4D8.mjs} +2 -2
- package/dist/{src-D7dScWZV.mjs → src-BrxWh8Ea.mjs} +2 -2
- package/dist/start-DgNoG7Si.mjs +1 -0
- package/dist/{start-B_yeELeJ.mjs → start-DnxkasPQ.mjs} +2 -2
- package/package.json +5 -5
- package/dist/constants-CKomzGE-.mjs +0 -2
- package/dist/init-Bku_ZC-n.mjs +0 -1
- package/dist/loader-C-uoLcwu.mjs +0 -1
- package/dist/preview-bI5ACHfH.mjs +0 -1
- package/dist/public/assets/DocumentContext-Bftf-RO1.js +0 -38
- package/dist/public/assets/FeedbackForm-qjgK9hU-.js +0 -1
- package/dist/public/assets/LintConfigEditor-CZZG_L9N.js +0 -1
- package/dist/public/assets/SourceEditor-Ds_8a-DF.js +0 -1
- package/dist/public/assets/index-Ci23rOfo.js +0 -2014
- package/dist/public/assets/typing-burst-detector-CgO-p170.js +0 -6
- package/dist/public/assets/use-settings-route-BAyd5rTq.js +0 -1
- package/dist/start-BHIlj-HZ.mjs +0 -1
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{C as n,nn as r,r as i}from"./DocumentContext-Bftf-RO1.js";import{t as a}from"./react-f2sANaYj.js";import{n as o,r as s}from"./dist-Nvb76hAm.js";import{r as c,t as l}from"./useQuery-ZeEDLtxh.js";import{t as u}from"./compiler-runtime-BfE3aGVn.js";import{s as d}from"./createLucideIcon-DAkhoPjT.js";import{t as f}from"./button-Gol9BgNB.js";import{i as p,n as m,t as h}from"./tooltip-B4J7VHmA.js";import{n as g,r as _,t as v}from"./collapsible-B1mS1n9y.js";import{N as y,ct as b,k as x}from"./CodeMirrorPropInput-BLK9R867.js";import{n as S,t as C}from"./toggle-group-CjXmmTGy.js";import{Jt as w,br as T,gt as E,oi as D,yt as O}from"./dist-DQ935rCy.js";import{t as k}from"./chevron-right-C8oTR6gu.js";import{n as A}from"./CopyButton-1Q6Wnnjb.js";import{i as j,r as M}from"./prop-types-BgTwd2fB.js";import{l as N}from"./workspace-paths-BbK6w2GI.js";import{t as P}from"./refresh-cw-BfeWGCsv.js";import{t as F}from"./triangle-alert-Clgvyc7B.js";import{t as I}from"./wrench-BfoTvqT9.js";import{n as L}from"./dist-BLAMau9Z.js";import{t as R}from"./dist-q14fBS3T.js";import{a as z}from"./use-settings-route-BAyd5rTq.js";import{c as B}from"./documents-events-ClVYn3ZQ.js";import{i as V}from"./startup-marks-CqVzdU1y.js";import{a as H,s as U}from"./doc-hash-B6EHixE8.js";import{t as W}from"./badge-Dba4cvJR.js";import{a as G,i as ee,n as te,o as ne,r as re,s as ie,t as ae}from"./panel-C8ZhM4q-.js";import{t as oe}from"./lint-plugin-meta-J-wb-uxW.js";import{t as K}from"./skeleton-BG12Hmzn.js";import{a as se,d as ce}from"./lint-config-client-DWV4JDNv.js";var q=e(a(),1),J=u(),le=3e4,Y=new Map;function X(e){return e?Date.now()-e.rememberedAt>le?null:e.navigation:null}function ue(e,t){Y.set(e,{navigation:t,rememberedAt:Date.now()})}function Z(e){return X(Y.get(e))}function de(e){let t=Y.get(e);return Y.delete(e),X(t)}function fe(e){Y.delete(e)}function pe(e,t){let n=(0,J.c)(4),r=t===void 0?!1:t,[i,a]=(0,q.useState)(void 0),o=(0,q.useRef)(null),s,c;return n[0]!==r||n[1]!==e?(s=()=>{if(r||e.length===0){a(void 0);return}let t=function(){let t=window.innerHeight/2,n,r;for(let i of e){let e=document.getElementById(i);if(!e)continue;let a=e.getBoundingClientRect().top;a<0?n=i:r===void 0&&a<t&&(r=i)}a(r??n??e[0])},n=function(){o.current===null&&(o.current=requestAnimationFrame(()=>{o.current=null,t()}))};return document.addEventListener(`scroll`,n,{capture:!0,passive:!0}),t(),()=>{document.removeEventListener(`scroll`,n,{capture:!0}),o.current!==null&&(cancelAnimationFrame(o.current),o.current=null)}},c=[e,r],n[0]=r,n[1]=e,n[2]=s,n[3]=c):(s=n[2],c=n[3]),(0,q.useEffect)(s,c),i}var Q=t(),me=300;async function he(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new y(R._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=O.safeParse(n);throw e.success?Error(e.data.title):new y(R._({id:`zlErBl`}),{status:t.status})}let r=E.safeParse(n);if(!r.success)throw new y(R._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var ge=32,_e=12,ve=6,ye=`open-knowledge:outline-nav`;function be(e){let t=(0,J.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Q.jsx)(V,{name:`outline-panel`,children:(0,Q.jsx)(xe,{...e})}),t[0]=e,t[1]=n),n}function xe(e){let t=(0,J.c)(50),{docName:n,isSourceMode:r,className:a}=e,u=a===void 0?``:a,{_:f}=s(),{pages:p,loading:m}=j(),h=c(),{activeProvider:g,activeDocName:_}=i(),v,y;t[0]===n?(v=t[1],y=t[2]):(v=[`page-headings`,n],y=()=>he(n),t[0]=n,t[1]=v,t[2]=y);let b;t[3]!==n||t[4]!==m||t[5]!==p?(b=!m&&(p.has(n)||T(n)),t[3]=n,t[4]=m,t[5]=p,t[6]=b):b=t[6];let x;t[7]!==v||t[8]!==y||t[9]!==b?(x={queryKey:v,queryFn:y,enabled:b,staleTime:1/0},t[7]=v,t[8]=y,t[9]=b,t[10]=x):x=t[10];let{data:S,isLoading:C,error:w}=l(x),E;t[11]===S?E=t[12]:(E=S===void 0?[]:S,t[11]=S,t[12]=E);let D=E,O,k;t[13]!==_||t[14]!==g||t[15]!==n||t[16]!==h?(O=()=>{if(!g||_!==n)return;let e=g.document,t=null,r=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,h.invalidateQueries({queryKey:[`page-headings`,n]})},me)};return e.on(`update`,r),()=>{e.off(`update`,r),t!==null&&clearTimeout(t)}},k=[g,_,n,h],t[13]=_,t[14]=g,t[15]=n,t[16]=h,t[17]=O,t[18]=k):(O=t[17],k=t[18]),(0,q.useEffect)(O,k);let A;t[19]===D?A=t[20]:(A=D.map(Se),t[19]=D,t[20]=A);let M=pe(A,r),N;t[21]!==M||t[22]!==D?(N=M?D.findIndex(e=>e.slug===M):-1,t[21]=M,t[22]=D,t[23]=N):N=t[23];let P=N,F;t[24]!==n||t[25]!==r?(F=function(e,t){let i={index:e,slug:t,mode:r?`source`:`wysiwyg`};i.mode===`source`&&ue(n,{kind:`outline`,detail:i}),window.dispatchEvent(new CustomEvent(ye,{detail:i}))},t[24]=n,t[25]=r,t[26]=F):F=t[26];let I=F,L=((P>=0?D[P].level:1)-1)*_e+(_e-ve)/2,R=P*ge+(ge-ve)/2,z;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,Q.jsx)(ie,{children:(0,Q.jsx)(o,{id:`dD7NPy`})}),t[27]=z):z=t[27];let B;t[28]!==D.length||t[29]!==C?(B=!C&&(0,Q.jsx)(re,{children:D.length}),t[28]=D.length,t[29]=C,t[30]=B):B=t[30];let V;t[31]===B?V=t[32]:(V=(0,Q.jsxs)(ne,{children:[z,B]}),t[31]=B,t[32]=V);let H;t[33]!==f||t[34]!==P||t[35]!==M||t[36]!==w||t[37]!==I||t[38]!==D||t[39]!==C||t[40]!==L||t[41]!==R?(H=w?(0,Q.jsx)(G,{className:`px-2`,children:w instanceof Error?w.message:f({id:`GuqOb1`})}):D.length===0&&!C?(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`0BB9ID`})}):(0,Q.jsxs)(`nav`,{"aria-label":f({id:`BymzO4`}),className:`relative`,children:[P>=0&&(0,Q.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-0 top-0 rounded-full bg-primary motion-safe:[transition:transform_0.25s_var(--ease-out-strong)]`,style:{width:ve,height:ve,transform:`translate(${L}px, ${R}px)`}}),D.map((e,t)=>{let n=e.slug===M;return(0,Q.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>I(t,e.slug),className:d(`w-full cursor-pointer truncate py-1.5 pe-2 text-left text-sm transition-colors`,n?`font-medium text-primary`:`text-muted-foreground hover:text-foreground`),style:{paddingLeft:`${(e.level-1)*_e+20}px`},title:e.text,children:e.text},t)})]}),t[33]=f,t[34]=P,t[35]=M,t[36]=w,t[37]=I,t[38]=D,t[39]=C,t[40]=L,t[41]=R,t[42]=H):H=t[42];let U;t[43]!==C||t[44]!==H?(U=(0,Q.jsx)(te,{className:`px-3 py-2`,"aria-busy":C,children:H}),t[43]=C,t[44]=H,t[45]=U):U=t[45];let W;return t[46]!==u||t[47]!==V||t[48]!==U?(W=(0,Q.jsxs)(ae,{className:u,children:[V,U]}),t[46]=u,t[47]=V,t[48]=U,t[49]=W):W=t[49],W}function Se(e){return e.slug}function Ce(e){let t=(0,J.c)(10),{scope:n,onScopeChange:r}=e,{_:i}=s(),a;t[0]===r?a=t[1]:(a=e=>{e&&r(e)},t[0]=r,t[1]=a);let c;t[2]===i?c=t[3]:(c=i({id:`aBgwis`}),t[2]=i,t[3]=c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(S,{value:`doc`,className:`flex-1`,"data-testid":`panel-scope-doc`,children:(0,Q.jsx)(o,{id:`UpCz01`})}),t[4]=l):l=t[4];let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(S,{value:`project`,className:`flex-1`,"data-testid":`panel-scope-project`,children:(0,Q.jsx)(o,{id:`e0NrBM`})}),t[5]=u):u=t[5];let d;return t[6]!==n||t[7]!==a||t[8]!==c?(d=(0,Q.jsx)(`div`,{className:`shrink-0 px-4 pb-2`,children:(0,Q.jsxs)(C,{type:`single`,variant:`segmented`,size:`sm`,spacing:1,value:n,onValueChange:a,"aria-label":c,className:`w-full rounded-md bg-muted p-0.5 dark:bg-background`,children:[l,u]})}),t[6]=n,t[7]=a,t[8]=c,t[9]=d):d=t[9],d}async function we(e={kind:`project`}){try{let t=e.kind===`path`?`?path=${encodeURIComponent(e.path)}`:e.kind===`doc`?`?doc=${encodeURIComponent(e.docName)}`:``,n=await fetch(`/api/audit${t}`);if(!n.ok)return console.warn(`[audit] request failed`,n.status,n.statusText),null;let r=await n.json().catch(()=>null),i=w.safeParse(r);return i.success?i.data:(console.warn(`[audit] response failed schema validation`,i.error.issues),null)}catch(e){return console.warn(`[audit] fetch threw`,e),null}}function Te(e){let t=(0,J.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),a,o;return t[1]===e?(a=t[2],o=t[3]):(a=()=>{if(i(Oe),e===null)return;let t=!1,n=()=>{we({kind:`doc`,docName:e}).then(e=>{if(t||e===null)return;let n=e.files.flatMap(De).filter(Ee);i(e=>e.length===0&&n.length===0?e:n)})};n();let r=B(e=>{e.includes(`backlinks`)&&n()});return()=>{t=!0,r()}},o=[e],t[1]=e,t[2]=a,t[3]=o),(0,q.useEffect)(a,o),r}function Ee(e){return e.source===`links`}function De(e){return e.diagnostics}function Oe(e){return e.length===0?e:[]}var ke={errorCount:0,warningCount:0},$=new Map,Ae=new Set,je=new Map;function Me(){let e=new Map;for(let[t,n]of $){let r=n.lint.errorCount+n.links.errorCount,i=n.lint.warningCount+n.links.warningCount;r===0&&i===0||e.set(t,{errorCount:r,warningCount:i})}je=e;for(let e of Ae)e()}function Ne(e){let t={lint:{errorCount:0,warningCount:0},links:{errorCount:0,warningCount:0}};for(let n of e){let e=n.source===`links`?t.links:t.lint;n.severity===`error`?e.errorCount+=1:e.warningCount+=1}return t}function Pe(e){return Ae.add(e),()=>{Ae.delete(e)}}function Fe(){return je}function Ie(e){$.clear();for(let t of e)$.set(H(t.file),Ne(t.diagnostics));Me()}function Le(e,t){$.set(e,Ne(t)),Me()}function Re(e,t,n){let r=$.get(e)??{lint:ke,links:ke},i=r[t];i.errorCount===n.errorCount&&i.warningCount===n.warningCount||($.set(e,{...r,[t]:n}),Me())}var ze=`open-knowledge:lint-nav`;function Be(e,t){return e.range.start.line-t.range.start.line||e.range.start.character-t.range.start.character}function Ve(e){return{line:e.range.start.line+1,column:e.range.start.character+1}}function He(e){let t=(0,J.c)(29),{diagnostic:n}=e,{_:i}=s(),a=n.severity===`error`?A:F,c=`${n.source}/${n.code}`,l=n.range.start.line+1,u=n.source===`links`,f=n.severity===`error`?`text-destructive`:`text-amber-500`,p;t[0]===f?p=t[1]:(p=d(`mt-0.5 size-3.5 shrink-0`,f),t[0]=f,t[1]=p);let m;t[2]!==a||t[3]!==p?(m=(0,Q.jsx)(a,{"aria-hidden":`true`,className:p}),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]===n.message?h=t[6]:(h=(0,Q.jsx)(`span`,{className:`text-foreground`,children:n.message}),t[5]=n.message,t[6]=h);let g;t[7]!==m||t[8]!==h?(g=(0,Q.jsxs)(`span`,{className:`flex items-start gap-1.5 text-sm`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _=u&&`gap-0.5`,v;t[10]===_?v=t[11]:(v=d(`h-4 shrink-0 px-1 font-sans text-[10px] uppercase leading-none`,_),t[10]=_,t[11]=v);let y;t[12]===u?y=t[13]:(y=u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(r,{"aria-hidden":`true`,className:`size-2.5`}),(0,Q.jsx)(o,{id:`LdyooL`})]}):(0,Q.jsx)(o,{id:`STOrpI`}),t[12]=u,t[13]=y);let b;t[14]!==v||t[15]!==y?(b=(0,Q.jsx)(W,{variant:`gray`,"data-testid":`problems-source-tag`,className:v,children:y}),t[14]=v,t[15]=y,t[16]=b):b=t[16];let x;t[17]!==i||t[18]!==l?(x=i({id:`enPTnx`,values:{displayLine:l}}),t[17]=i,t[18]=l,t[19]=x):x=t[19];let S;t[20]!==c||t[21]!==x?(S=(0,Q.jsxs)(`span`,{className:`min-w-0 truncate`,children:[c,` · `,x]}),t[20]=c,t[21]=x,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==b?(C=(0,Q.jsxs)(`span`,{className:`flex items-center gap-1.5 ps-5 font-mono text-xs text-muted-foreground`,children:[b,S]}),t[23]=S,t[24]=b,t[25]=C):C=t[25];let w;return t[26]!==C||t[27]!==g?(w=(0,Q.jsxs)(Q.Fragment,{children:[g,C]}),t[26]=C,t[27]=g,t[28]=w):w=t[28],w}function Ue(e){return`${e.source}/${e.code}-${e.range.start.line}-${e.range.start.character}-${e.message}`}function We(e){return e.reduce((e,t)=>e+ +((t.fixes?.length??0)>0),0)}function Ge(e){let t=(0,J.c)(11),{target:n,creating:r,disabled:i,onCreate:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==n?(l=c({id:`oWsZk8`,values:{target:n}}),t[0]=c,t[1]=n,t[2]=l):l=t[2];let u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(b,{"aria-hidden":`true`,className:`size-3`}),t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r?(0,Q.jsx)(o,{id:`E9bKSA`}):(0,Q.jsx)(o,{id:`XRuL0i`}),t[4]=r,t[5]=d);let p;return t[6]!==i||t[7]!==a||t[8]!==l||t[9]!==d?(p=(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:i,onClick:a,"aria-label":l,"data-testid":`problems-create-page`,children:[u,d]}),t[6]=i,t[7]=a,t[8]=l,t[9]=d,t[10]=p):p=t[10],p}function Ke(e){let t=(0,J.c)(13),{count:n,disabled:r,onClick:i,children:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==a||t[2]!==n?(l=a===void 0?c({id:`Izb10l`,values:{count:n}}):void 0,t[0]=c,t[1]=a,t[2]=n,t[3]=l):l=t[3];let u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Q.jsx)(I,{"aria-hidden":`true`,className:`size-3`}),t[4]=u):u=t[4];let d;t[5]!==a||t[6]!==n?(d=a??(0,Q.jsx)(o,{id:`5_8TCr`,values:{count:n}}),t[5]=a,t[6]=n,t[7]=d):d=t[7];let p;return t[8]!==r||t[9]!==i||t[10]!==l||t[11]!==d?(p=(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:r,onClick:i,"aria-label":l,"data-testid":`problems-fix-all`,children:[u,d]}),t[8]=r,t[9]=i,t[10]=l,t[11]=d,t[12]=p):p=t[12],p}function qe(e){let t=(0,J.c)(14),{docName:r,diagnostics:i,onFix:a,onFixAll:c,onAskAi:l}=e,{_:u}=s(),[d,g]=(0,q.useState)(`doc`),{data:_}=ce(),v=_===null?null:_.effective.enabled?oe.filter(e=>_.effective.plugins[e.id].enabled):[],y=v!==null&&v.length===0,b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={status:`idle`},t[0]=b):b=t[0];let[x,S]=(0,q.useState)(b),[C,w]=(0,q.useState)(null),T=M(),[E,D]=(0,q.useState)(null),O=(0,q.useRef)(!0),k,A;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>(O.current=!0,()=>{O.current=!1}),A=[],t[1]=k,t[2]=A):(k=t[1],A=t[2]),(0,q.useEffect)(k,A);let j=[...i].sort(Be),P=async function(e){let t=e.linkTarget;if(!(t===void 0||E!==null||T===null)){D(t);try{await n({initialDir:``,suggestedName:t},{addPage:T.addPage})}catch(e){let t=e;L.error(t instanceof Error?t.message:u({id:`tfi40B`})),O.current&&D(null);return}L.success(u({id:`EWCJFu`,values:{target:t}})),O.current&&D(null),O.current&&x.status===`loaded`&&await F()}};async function F(){S({status:`loading`});let e=await we();e!==null&&Ie(e.files),O.current&&S(e===null?{status:`failed`}:{status:`loaded`,result:e})}let R=x.status===`loaded`?x.result.files.filter(Ze):[],B=async function(){if(C!==null||R.length===0)return;w({done:0,total:R.length});let e=[];for(let t of R){let n=await se(H(t.file));if(!O.current)return;n.ok||e.push({file:t.file,detail:n.errorDetail}),w(Xe)}if(w(null),e.length>0){let t=e[0];L.error(u({id:`fru3T7`,values:{0:e.length,1:R.length}}),{description:t===void 0?void 0:`${t.file}${t.detail===null?``:` — ${t.detail}`}`})}try{await F()}catch{O.current&&S({status:`failed`})}},V=function(e){g(e),e===`project`&&x.status===`idle`&&F()},W;t[3]===r?W=t[4]:(W=function(e){let t=Ve(e);ue(r,{kind:`lint`,detail:t}),window.dispatchEvent(new CustomEvent(ze,{detail:t}))},t[3]=r,t[4]=W);let G=W,K;t[5]!==r||t[6]!==G?(K=function(e,t){let n=H(e);if(n===r){G(t);return}ue(n,{kind:`lint`,detail:Ve(t)}),window.location.hash=U(n)},t[5]=r,t[6]=G,t[7]=K):K=t[7];let le=K,Y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,Q.jsx)(ie,{children:(0,Q.jsx)(o,{id:`OXdGnd`})}),t[8]=Y):Y=t[8];let X=v!==null&&v.length>0&&(0,Q.jsxs)(h,{children:[(0,Q.jsx)(p,{className:`shrink-0 cursor-default rounded-md bg-muted-foreground/5 px-2 py-1 font-mono text-xs text-muted-foreground`,"data-testid":`problems-active-plugins`,children:(0,Q.jsx)(o,{id:`yxF19Y`,values:{0:v.length}})}),(0,Q.jsx)(m,{"data-testid":`problems-active-plugins-tooltip`,children:(0,Q.jsx)(o,{id:`ws5o1F`,values:{0:v.map(Ye).join(`, `)}})})]}),Z;t[9]===X?Z=t[10]:(Z=(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[Y,X]}),t[9]=X,t[10]=Z);let de=d===`doc`&&j.length>0&&(0,Q.jsx)(re,{children:j.length}),fe;return t[11]!==de||t[12]!==Z?(fe=(0,Q.jsxs)(ne,{children:[Z,de]}),t[11]=de,t[12]=Z,t[13]=fe):fe=t[13],(0,Q.jsxs)(ae,{children:[fe,(0,Q.jsx)(Ce,{scope:d,onScopeChange:V}),d===`doc`?(0,Q.jsx)(te,{className:`px-2 py-2`,children:j.length===0?y?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ee,{className:`px-2`,"data-testid":`problems-no-plugins`,children:(0,Q.jsx)(o,{id:`Hngy37`})}),(0,Q.jsx)(`div`,{className:`px-2 pt-2`,children:(0,Q.jsx)(f,{variant:`outline`,size:`sm`,onClick:z,"data-testid":`problems-enable-plugins`,children:(0,Q.jsx)(o,{id:`rnX-1S`})})})]}):(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`ZI8uvA`})}):(0,Q.jsxs)(Q.Fragment,{children:[c!==void 0&&(0,Q.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-2 pb-1`,children:(0,Q.jsx)(Ke,{count:We(j),disabled:We(j)===0,onClick:c})}),(0,Q.jsx)(`ul`,{"aria-label":u({id:`OXdGnd`}),className:`flex flex-col gap-0.5`,children:j.map(e=>{let t=e.range.start.line+1,n=a!==void 0&&(e.fixes?.length??0)>0,r=e.linkTarget!==void 0&&T!==null,i=`${e.source}/${e.code}`;return(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,Q.jsx)(`button`,{type:`button`,onClick:()=>G(e),className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:u({id:`aHPdYV`,values:{displayLine:t}}),children:(0,Q.jsx)(He,{diagnostic:e})}),n||l!==void 0||r?(0,Q.jsxs)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:[r?(0,Q.jsx)(Ge,{target:e.linkTarget??``,creating:E===e.linkTarget,disabled:E!==null,onCreate:()=>void P(e)}):null,n?(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>a?.(e),"aria-label":u({id:`fZj9em`,values:{flatId:i}}),"data-testid":`problems-fix`,children:[(0,Q.jsx)(I,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(o,{id:`c4fVUV`})]}):null,l===void 0?null:(0,Q.jsxs)(f,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>l(e),"aria-label":u({id:`hh4mVC`,values:{flatId:i}}),"data-testid":`problems-ask-ai`,children:[(0,Q.jsx)(N,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(o,{id:`xWEvuo`})]})]}):null]},Ue(e))})})]})}):(0,Q.jsx)($e,{audit:x,onRefresh:()=>void F(),onNavigate:le,fixableCount:R.reduce(Je,0),fixing:C,onFixAll:()=>void B(),onCreateTarget:T===null?void 0:e=>void P(e),creatingTarget:E})]})}function Je(e,t){return e+We(t.diagnostics)}function Ye(e){return e.label}function Xe(e){return e===null?e:{...e,done:e.done+1}}function Ze(e){return e.diagnostics.some(Qe)}function Qe(e){return(e.fixes?.length??0)>0}function $e(e){let t=(0,J.c)(45),{audit:n,onRefresh:r,onNavigate:i,fixableCount:a,fixing:c,onFixAll:l,onCreateTarget:u,creatingTarget:d}=e,{_:p}=s(),m=n.status===`loading`||n.status===`idle`,h;t[0]!==n.result||t[1]!==n.status?(h=n.status===`loaded`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(o,{id:`DsDwR-`,values:{0:n.result.errorCount}}),` · `,(0,Q.jsx)(o,{id:`W1SI2K`,values:{0:n.result.warningCount}})]}),t[0]=n.result,t[1]=n.status,t[2]=h):h=t[2];let g;t[3]===h?g=t[4]:(g=(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,"data-testid":`problems-audit-summary`,children:h}),t[3]=h,t[4]=g);let _;t[5]!==p||t[6]!==c?(_=c===null?null:(0,Q.jsx)(`span`,{className:`sr-only`,role:`status`,children:p({id:`gZElfU`,values:{0:c.done,1:c.total}})}),t[5]=p,t[6]=c,t[7]=_):_=t[7];let v=m||c!==null||a===0,y;t[8]===c?y=t[9]:(y=c===null?void 0:(0,Q.jsx)(o,{id:`S9t1PI`,values:{0:c.done,1:c.total}}),t[8]=c,t[9]=y);let b;t[10]!==a||t[11]!==l||t[12]!==v||t[13]!==y?(b=(0,Q.jsx)(Ke,{count:a,disabled:v,onClick:l,children:y}),t[10]=a,t[11]=l,t[12]=v,t[13]=y,t[14]=b):b=t[14];let x;t[15]===p?x=t[16]:(x=p({id:`WRdYfS`}),t[15]=p,t[16]=x);let S=m||c!==null,C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Q.jsx)(P,{"aria-hidden":`true`,className:`size-3.5`}),t[17]=C):C=t[17];let w;t[18]!==r||t[19]!==x||t[20]!==S?(w=(0,Q.jsx)(f,{variant:`ghost`,size:`icon`,className:`size-6 shrink-0 text-muted-foreground`,"aria-label":x,"data-testid":`problems-audit-refresh`,disabled:S,onClick:r,children:C}),t[18]=r,t[19]=x,t[20]=S,t[21]=w):w=t[21];let T;t[22]!==w||t[23]!==_||t[24]!==b?(T=(0,Q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[_,b,w]}),t[22]=w,t[23]=_,t[24]=b,t[25]=T):T=t[25];let E;t[26]!==T||t[27]!==g?(E=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-2 pb-1`,children:[g,T]}),t[26]=T,t[27]=g,t[28]=E):E=t[28];let D;t[29]!==p||t[30]!==m?(D=m&&(0,Q.jsx)(`div`,{className:`flex flex-col gap-1`,role:`status`,"aria-busy":`true`,"aria-label":p({id:`dx-TwN`}),children:[1,2,3].map(et)}),t[29]=p,t[30]=m,t[31]=D):D=t[31];let O;t[32]===n.status?O=t[33]:(O=n.status===`failed`&&(0,Q.jsx)(G,{className:`px-2 text-xs`,children:(0,Q.jsx)(o,{id:`IFezUv`})}),t[32]=n.status,t[33]=O);let k;t[34]!==n.result||t[35]!==n.status||t[36]!==d||t[37]!==u||t[38]!==i?(k=n.status===`loaded`&&(0,Q.jsx)(tt,{result:n.result,onNavigate:i,onCreateTarget:u,creatingTarget:d}),t[34]=n.result,t[35]=n.status,t[36]=d,t[37]=u,t[38]=i,t[39]=k):k=t[39];let A;return t[40]!==E||t[41]!==D||t[42]!==O||t[43]!==k?(A=(0,Q.jsxs)(te,{className:`px-2 py-2`,"data-testid":`problems-project-scope`,children:[E,D,O,k]}),t[40]=E,t[41]=D,t[42]=O,t[43]=k,t[44]=A):A=t[44],A}function et(e){return(0,Q.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded px-2 py-1.5`,children:[(0,Q.jsx)(K,{className:`mt-0.5 size-3.5 shrink-0 rounded`}),(0,Q.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,Q.jsx)(K,{className:`h-3 w-28`}),(0,Q.jsx)(K,{className:`h-3 w-40`})]})]},e)}function tt(e){let t=(0,J.c)(12),{result:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:c}=s(),l;t[0]!==c||t[1]!==n.warnings?(l=n.warnings.length>0&&(0,Q.jsx)(`ul`,{"aria-label":c({id:`Rsdhj9`}),className:`flex flex-col gap-0.5 pb-1`,children:n.warnings.map(nt)}),t[0]=c,t[1]=n.warnings,t[2]=l):l=t[2];let u;t[3]!==a||t[4]!==i||t[5]!==r||t[6]!==n.fileCount||t[7]!==n.files?(u=n.files.length===0?(0,Q.jsx)(ee,{className:`px-2`,children:(0,Q.jsx)(o,{id:`k_Dqw1`,values:{0:n.fileCount}})}):n.files.map(e=>(0,Q.jsx)(rt,{file:e,onNavigate:r,onCreateTarget:i,creatingTarget:a},e.file)),t[3]=a,t[4]=i,t[5]=r,t[6]=n.fileCount,t[7]=n.files,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}function nt(e,t){return(0,Q.jsxs)(`li`,{className:`flex items-start gap-1.5 px-2 text-xs`,children:[(0,Q.jsx)(F,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-500`}),(0,Q.jsx)(`span`,{className:`min-w-0 text-foreground`,children:e})]},`${t}-${e}`)}function rt(e){let t=(0,J.c)(41),{file:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:o}=s(),c,l,u,d,f,p,m,h,y;if(t[0]!==o||t[1]!==a||t[2]!==n.diagnostics||t[3]!==n.file||t[4]!==i||t[5]!==r){let e=[...n.diagnostics].sort(Be);l=v,m=!0,h=`problems-audit-group`;let s;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(k,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[15]=s):s=t[15];let b;t[16]===n.file?b=t[17]:(b=(0,Q.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,title:n.file,children:n.file}),t[16]=n.file,t[17]=b),y=(0,Q.jsxs)(_,{className:`group flex w-full cursor-pointer items-center gap-1.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:[s,b,(0,Q.jsx)(W,{variant:`gray`,"data-testid":`problems-audit-file-count`,className:`shrink-0`,children:e.length})]}),c=g,p=`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,t[18]!==o||t[19]!==n.file?(u=o({id:`zAJzIg`,values:{0:n.file}}),t[18]=o,t[19]=n.file,t[20]=u):u=t[20],d=`flex flex-col gap-0.5 pb-1 ps-3`;let x;t[21]!==o||t[22]!==a||t[23]!==n.file||t[24]!==i||t[25]!==r?(x=e=>{let t=e.range.start.line+1,s=e.linkTarget!==void 0&&i!==void 0;return(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,Q.jsx)(`button`,{type:`button`,onClick:()=>r(n.file,e),className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:o({id:`kDwcbW`,values:{0:n.file,displayLine:t}}),children:(0,Q.jsx)(He,{diagnostic:e})}),s?(0,Q.jsx)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:(0,Q.jsx)(Ge,{target:e.linkTarget??``,creating:a===e.linkTarget,disabled:a!==null,onCreate:()=>i?.(e)})}):null]},Ue(e))},t[21]=o,t[22]=a,t[23]=n.file,t[24]=i,t[25]=r,t[26]=x):x=t[26],f=e.map(x),t[0]=o,t[1]=a,t[2]=n.diagnostics,t[3]=n.file,t[4]=i,t[5]=r,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=y}else c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],y=t[14];let b;t[27]!==u||t[28]!==d||t[29]!==f?(b=(0,Q.jsx)(`ul`,{"aria-label":u,className:d,children:f}),t[27]=u,t[28]=d,t[29]=f,t[30]=b):b=t[30];let x;t[31]!==c||t[32]!==p||t[33]!==b?(x=(0,Q.jsx)(c,{className:p,children:b}),t[31]=c,t[32]=p,t[33]=b,t[34]=x):x=t[34];let S;return t[35]!==l||t[36]!==m||t[37]!==h||t[38]!==y||t[39]!==x?(S=(0,Q.jsxs)(l,{defaultOpen:m,"data-testid":h,children:[y,x]}),t[35]=l,t[36]=m,t[37]=h,t[38]=y,t[39]=x,t[40]=S):S=t[40],S}var it={words:0,chars:0,tokens:0},at=/[ -〿-ゟ゠-ヿ㐀-䶿一-鿿豈---ក-]/,ot=/[\p{L}\p{N}]/u,st=new Set([`text`,`inlineCode`,`code`,`tag`]),ct=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),lt=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function ut(e,t){if(!e)return;let n=e.type;if(!ct.has(n)){if(st.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
|
|
2
|
-
`));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)ut(n,t);if(lt.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
|
|
3
|
-
`)&&t.push(`
|
|
4
|
-
`)}}}}function dt(e){try{let t=x().parseToMdast(e),n=[];return ut(t,n),n.join(``).trim()}catch(t){return console.warn(`[document-stats] mdast parse failed, falling back to raw text`,t),e.trim()}}function ft(e){if(!e)return 0;let t=0;for(let n of e.split(/\s+/))ot.test(n)&&t++;return t}function pt(e){let t=globalThis.Intl.Segmenter;if(!t)return ft(e);let n=new t(void 0,{granularity:`word`}),r=0;for(let t of n.segment(e))t.isWordLike&&r++;return r}function mt(e){let t=at.test(e)?1.5:4;return Math.ceil(e.length/t)}function ht(e){return e?{words:at.test(e)?pt(e):ft(e),chars:e.length,tokens:mt(e)}:{words:0,chars:0,tokens:0}}function gt(e){if(!e)return{words:0,chars:0,tokens:0};let{body:t}=D(e);return t.trim()?ht(dt(t)):{words:0,chars:0,tokens:0}}function _t(e,{isMarkdown:t}){let n=e.trim();return n?ht(t?dt(e):n):it}var vt=new Map,yt=new Set,bt=(e,t)=>`${t}:${e}`;function xt(){for(let e of yt)e()}function St(e,t,n){let r=bt(e,t);if(n===null){vt.delete(r)&&xt();return}let i=vt.get(r);i&&i.words===n.words&&i.chars===n.chars&&i.tokens===n.tokens||(vt.set(r,n),xt())}function Ct(e,t){return e===null?null:vt.get(bt(e,t))??null}function wt(e){return yt.add(e),()=>{yt.delete(e)}}function Tt(e){let{from:t,to:n,empty:r}=e.state.selection;if(r)return null;let i=e.state.doc.textBetween(t,n,`
|
|
5
|
-
`,` `);return i.trim()?_t(i,{isMarkdown:!1}):null}function Et(e){let t=[];for(let n of e.state.selection.ranges)n.empty||t.push(e.state.sliceDoc(n.from,n.to));if(t.length===0)return null;let n=t.join(`
|
|
6
|
-
`);return n.trim()?_t(n,{isMarkdown:!0}):null}export{be as _,wt as a,Z as b,ze as c,Le as d,Re as f,ye as g,Te as h,Tt as i,qe as l,we as m,St as n,it as o,Pe as p,Et as r,gt as s,Ct as t,Fe as u,fe as v,ue as x,de as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{qi as r}from"./dist-DQ935rCy.js";var i=e(t(),1),a=n(),o={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},s=Object.keys(o),c=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`l9HUtd`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],l=c,u=new Map(c.map(e=>[e.id,e]));function d(e){let t=u.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function f(){return r()?`mac`:`windowsLinux`}var p=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function m(e){return e.split(` / `).map(e=>p.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function h(e,t=f()){return t===`mac`?e.mac:e.windowsLinux}function g(e,t=f()){return m(h(e,t))}function _(e,t=f()){return h(d(e).bindings[0],t)}function v(e,t=f()){return g(d(e).bindings[0],t)}function y(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function b(e,t,n=f()){return d(t).bindings.some(t=>{let r=x(t.match,n);return r?C(e,r,n):!1})}function x(e,t){return e?S(e)?e:e[t]??null:null}function S(e){return`key`in e||`code`in e}function C(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var w=`#settings`;function T(e){return`#settings/${e}`}var E=`configure-agents`;function D(){if(typeof window>`u`)return;let e=T(E);window.location.hash!==e&&(window.location.hash=e)}var O=`plugins-manage`;function k(){if(typeof window>`u`)return;let e=T(O);window.location.hash!==e&&(window.location.hash=e)}function A(e){return y(e.target)?!1:b(e,`settings`)}function j(e){let t=e.replace(/^#/,``);return t===`settings`?!0:t.startsWith(`settings/`)&&t.length>9}function M(e){let t=e.replace(/^#/,``);if(!t.startsWith(`settings/`))return null;let n=t.slice(9);return n.length>0?n:null}function N(){return typeof window>`u`?``:window.location.hash}function P(){let e=(0,a.c)(5),[t,n]=(0,i.useState)(L),[r,o]=(0,i.useState)(I),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{(0,i.startTransition)(()=>{let e=N();n(j(e)),o(M(e))})};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l=F,u;return e[2]!==t||e[3]!==r?(u={open:t,section:r,close:l},e[2]=t,e[3]=r,e[4]=u):u=e[4],u}function F(){typeof window>`u`||j(N())&&window.history.back()}function I(){return M(N())}function L(){return j(N())}export{k as a,o as c,h as d,g as f,b as g,y as h,D as i,s as l,m,j as n,P as o,v as p,A as r,l as s,w as t,_ as u};
|
package/dist/start-BHIlj-HZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,r as t,v as n}from"./start-B_yeELeJ.mjs";export{t as bootStartServer,e as resolveHost,n as startCommand};
|