@task-handoff/control-plane 0.0.58 → 0.0.60
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/cli.js +1 -1
- package/package.json +1 -1
- package/ui/assets/{CodeBlockNode-CTc5SApM.js → CodeBlockNode-Bc7wIh1K.js} +1 -1
- package/ui/assets/{Tooltip-BKoOMKnP.js → Tooltip-Bh_6iWjw.js} +1 -1
- package/ui/assets/{abnfDiagram-VRR7QNED-BI6FCJmo.js → abnfDiagram-VRR7QNED-zlaEqlKa.js} +1 -1
- package/ui/assets/{arc-D_bbM6CG.js → arc-D2hTwo-N.js} +1 -1
- package/ui/assets/{architectureDiagram-ZJ3FMSHR-B3G6WOmy.js → architectureDiagram-ZJ3FMSHR-Dt_iE75J.js} +1 -1
- package/ui/assets/{blockDiagram-677ZJIJ3-Dh9WG-A6.js → blockDiagram-677ZJIJ3-CARNyXWP.js} +1 -1
- package/ui/assets/{c4Diagram-LMCZKHZV-CSoi4ygj.js → c4Diagram-LMCZKHZV-C28JHaIY.js} +1 -1
- package/ui/assets/channel-Bhb_g5Th.js +1 -0
- package/ui/assets/{chunk-2Q5K7J3B-D8enSBxI.js → chunk-2Q5K7J3B-B26uxOoT.js} +1 -1
- package/ui/assets/{chunk-32BRIVSS-nmtP3vaU.js → chunk-32BRIVSS-DSHjBKm4.js} +1 -1
- package/ui/assets/{chunk-5VM5RSS4-D1Hqi-7g.js → chunk-5VM5RSS4-DHFwQZst.js} +1 -1
- package/ui/assets/{chunk-EX3LRPZG-CyYMzVQw.js → chunk-EX3LRPZG-BC72Zq_z.js} +1 -1
- package/ui/assets/{chunk-JWPE2WC7-BTmbL9cJ.js → chunk-JWPE2WC7-DSMEHx_n.js} +1 -1
- package/ui/assets/{chunk-MOJQB5TN-CpEZ5nox.js → chunk-MOJQB5TN-CobFpCWB.js} +1 -1
- package/ui/assets/{chunk-RYQCIY6F-NCwRC8-h.js → chunk-RYQCIY6F-BSDEwuuJ.js} +1 -1
- package/ui/assets/{chunk-V7JOEXUC-CarhJaXo.js → chunk-V7JOEXUC-BFKmXHIE.js} +1 -1
- package/ui/assets/{chunk-VR4S4FIN-BCqXa_dn.js → chunk-VR4S4FIN-Dv86X4nl.js} +1 -1
- package/ui/assets/{chunk-XXDRQBXY-CZVeHVzI.js → chunk-XXDRQBXY-Dxv8D2KZ.js} +1 -1
- package/ui/assets/classDiagram-OUVF2IWQ-DPH7RZRC.js +1 -0
- package/ui/assets/classDiagram-v2-EOCWNBFH-DPH7RZRC.js +1 -0
- package/ui/assets/{cose-bilkent-JH36ORCC-DyZyeUKb.js → cose-bilkent-JH36ORCC-BG6eudk5.js} +1 -1
- package/ui/assets/{cynefin-VYW2F7L2-CDOA7LPb.js → cynefin-VYW2F7L2-C6Sv_-7M.js} +1 -1
- package/ui/assets/{cynefinDiagram-TSTJHNR4-CkV2zMJl.js → cynefinDiagram-TSTJHNR4--Hcv7B9c.js} +1 -1
- package/ui/assets/{dagre-VKFMJZFB-CwSuT2tX.js → dagre-VKFMJZFB-Bpwe_SEj.js} +1 -1
- package/ui/assets/{diagram-FQU43EPY-BtWHuHQT.js → diagram-FQU43EPY-cS0IbZem.js} +1 -1
- package/ui/assets/{diagram-G47NLZAW-BBMoOONt.js → diagram-G47NLZAW-DxQcUuw1.js} +1 -1
- package/ui/assets/{diagram-NH7WQ7WH-_OkU7NqN.js → diagram-NH7WQ7WH-BfdpcbI9.js} +1 -1
- package/ui/assets/{diagram-OA4YK3LP-CRcJIRYl.js → diagram-OA4YK3LP-CfkoqZw0.js} +1 -1
- package/ui/assets/{diagram-WEI45ONY-D--Sgogr.js → diagram-WEI45ONY-z_-iRp0T.js} +1 -1
- package/ui/assets/{ebnfDiagram-CCIWWBDH-Drqixw-w.js → ebnfDiagram-CCIWWBDH-Dl31RqbL.js} +1 -1
- package/ui/assets/{erDiagram-Q63AITRT-BjHcMJFi.js → erDiagram-Q63AITRT-CusuNvv1.js} +1 -1
- package/ui/assets/{flowDiagram-23GEKE2U-DqETOgjL.js → flowDiagram-23GEKE2U-BIp9wppy.js} +1 -1
- package/ui/assets/{ganttDiagram-NO4QXBWP-DDXSuTkF.js → ganttDiagram-NO4QXBWP-u0PVVr6u.js} +1 -1
- package/ui/assets/{gitGraphDiagram-IHSO6WYX-0s8G8iYC.js → gitGraphDiagram-IHSO6WYX-N2vRh1T4.js} +1 -1
- package/ui/assets/index-Bs4r6ELC.js +678 -0
- package/ui/assets/index-F_5zVwfJ.css +1 -0
- package/ui/assets/{index10-Dzu9VERF.js → index10-BGNvGjUM.js} +1 -1
- package/ui/assets/{index11-C0c5uhzx.js → index11-Bg84lti4.js} +1 -1
- package/ui/assets/{index5-ZrTGR977.js → index5-NXeh_6Va.js} +1 -1
- package/ui/assets/{index6-B4jXIKiF.js → index6-CsM1QLNU.js} +1 -1
- package/ui/assets/{index7-CL-nR9WC.js → index7-BcXNLad-.js} +1 -1
- package/ui/assets/{index8-BviX4mk4.js → index8-CrBdYlCo.js} +1 -1
- package/ui/assets/{infoDiagram-FWYZ7A6U-C6Wqcj0X.js → infoDiagram-FWYZ7A6U-BgLHNmcK.js} +1 -1
- package/ui/assets/{ishikawaDiagram-FXEZZL3T-Dp8ITSD-.js → ishikawaDiagram-FXEZZL3T-DuatX9Y4.js} +1 -1
- package/ui/assets/{journeyDiagram-5HDEW3XC-BJ744MHG.js → journeyDiagram-5HDEW3XC-fvTui2Eh.js} +1 -1
- package/ui/assets/{kanban-definition-HUTT4EX6-09A-QhbL.js → kanban-definition-HUTT4EX6-OXUfSbA2.js} +1 -1
- package/ui/assets/{linear-0rZD50E4.js → linear-BiKZbxE5.js} +1 -1
- package/ui/assets/{mermaid.core-RINefGno.js → mermaid.core-C8VBDQOj.js} +4 -4
- package/ui/assets/{mhchem-o23GiO0C.js → mhchem-BCzSBrbD.js} +1 -1
- package/ui/assets/{mindmap-definition-LN4V7U3C-CAv4AI7w.js → mindmap-definition-LN4V7U3C-Se8pqYaP.js} +1 -1
- package/ui/assets/{pegDiagram-2B236MQR-Ds2A7Gd7.js → pegDiagram-2B236MQR-CmigXKAt.js} +1 -1
- package/ui/assets/{pieDiagram-ENE6RG2P-ex7dxr9J.js → pieDiagram-ENE6RG2P-B7S6w0WQ.js} +1 -1
- package/ui/assets/{quadrantDiagram-ABIIQ3AL-C1NMHSeK.js → quadrantDiagram-ABIIQ3AL-ZUGAJi5p.js} +1 -1
- package/ui/assets/{railroadDiagram-RFXS5EU6-DXNyuux4.js → railroadDiagram-RFXS5EU6-RomLygv2.js} +1 -1
- package/ui/assets/{requirementDiagram-TGXJPOKE-DXEvpLiE.js → requirementDiagram-TGXJPOKE-BdbalgWg.js} +1 -1
- package/ui/assets/{sankeyDiagram-HTMAVEWB-nfumwUVY.js → sankeyDiagram-HTMAVEWB-0ue-3xkh.js} +1 -1
- package/ui/assets/{sequenceDiagram-DBY2YBRQ-BsRmUAIN.js → sequenceDiagram-DBY2YBRQ-BcjLnPMq.js} +1 -1
- package/ui/assets/{sizeCapture-X5ZJPWSS-CHTAIT1e.js → sizeCapture-X5ZJPWSS-CbORZjAZ.js} +1 -1
- package/ui/assets/{stateDiagram-2N3HPSRC-BNEcQBa9.js → stateDiagram-2N3HPSRC-ZBEsC1Uo.js} +1 -1
- package/ui/assets/stateDiagram-v2-6OUMAXLB-CqtkFf0R.js +1 -0
- package/ui/assets/{swimlanes-5IMT3BWC-BLoUtOGX.js → swimlanes-5IMT3BWC-BebP96iO.js} +2 -2
- package/ui/assets/swimlanesDiagram-G3AALYLV-tcE4Szjm.js +8 -0
- package/ui/assets/{timeline-definition-FHXFAJF6-BJ34qWKa.js → timeline-definition-FHXFAJF6-BJlrBYrK.js} +1 -1
- package/ui/assets/{vennDiagram-L72KCM5P-DNdmT20w.js → vennDiagram-L72KCM5P-ChWsO--a.js} +1 -1
- package/ui/assets/{wardleyDiagram-EHGQE667-0XbN-OMf.js → wardleyDiagram-EHGQE667-CiIqetCu.js} +1 -1
- package/ui/assets/{xychartDiagram-FW5EYKEG-kKrR4F_d.js → xychartDiagram-FW5EYKEG-CdtzCf96.js} +1 -1
- package/ui/index.html +2 -2
- package/ui/assets/channel-CCbZgKUn.js +0 -1
- package/ui/assets/classDiagram-OUVF2IWQ-C3Ihpwdh.js +0 -1
- package/ui/assets/classDiagram-v2-EOCWNBFH-C3Ihpwdh.js +0 -1
- package/ui/assets/index-CMdBK89X.css +0 -1
- package/ui/assets/index-DgPQz6Px.js +0 -675
- package/ui/assets/stateDiagram-v2-6OUMAXLB-DgmcPizL.js +0 -1
- package/ui/assets/swimlanesDiagram-G3AALYLV-CPpckWcr.js +0 -8
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aV as cl,bE as wi,b1 as ul,bo as $,aY as ko,bf as Lo,b_ as ae,bd as bi,bh as $o,bj as J,aK as bn,bb as It,b9 as mt,bD as V,aN as oe,aS as Oo,aP as ki,c0 as Ut,bq as pt,c1 as sl,aJ as b,aL as ye,bY as dl,bw as Me,aH as k,bv as xi,b8 as j,c3 as zo,aw as Si,aQ as Ci,Y as xo,aF as Mi}from"./ui-vendor-BmyfP733.js";import{_ as Bi,q as Ei,o as Ho,n as Fi,y as Pi,J as fl,j as Li,s as $i,p as Oi,a as hn,D as vt,c as So,O as zi,m as gn,A as Hi,u as Ni,f as Ti,h as Ri,V as Co,N as Di,M as Ai,P as jt,C as Mo,k as ji,e as qi}from"./index-DgPQz6Px.js";import{i as fe,t as yn}from"./safeRaf-DGuzXxDK.js";import"./xterm-C91wPeZQ.js";var wn=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});let Bo=!1,qt=null,Wt=null,_t=null;function Wi(){return wn(this,null,function*(){if(_t)return _t;_t=wn(null,null,function*(){if(!Wt)try{if(Wt=(function(x){const M=x;if(typeof M?.useMonaco=="function")return M;const w=x?.default;return typeof w?.useMonaco=="function"?w:null})(yield Bi(()=>import("./__vite-optional-peer-dep_stream-diffs_markstream-vue_false-B8vYMc84.js"),[])),!Wt)return null}catch{return null}try{return yield(function(x){return wn(this,null,function*(){return Bo?void 0:qt||(qt=wn(null,null,function*(){const w=globalThis?.MonacoEnvironment;w&&(typeof w.getWorker=="function"||typeof w.getWorkerUrl=="function")||typeof x?.preloadMonacoWorkers!="function"||(yield x.preloadMonacoWorkers()),Bo=!0}).finally(()=>{qt=null}),qt)})})(Wt),Ei(),Wt}catch{return null}});try{return yield _t}finally{_t=null}})}var _i=Object.defineProperty,Ii=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Eo=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,Fo=(x,M,w)=>M in x?_i(x,M,{enumerable:!0,configurable:!0,writable:!0,value:w}):x[M]=w,I=(x,M)=>{for(var w in M||(M={}))Vi.call(M,w)&&Fo(x,w,M[w]);if(Eo)for(var w of Eo(M))Ji.call(M,w)&&Fo(x,w,M[w]);return x},Ce=(x,M)=>Ii(x,Ui(M)),q=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});const Yi={key:0,class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},Gi={class:"flex items-center gap-0.5"},Ki=["aria-label"],Qi={class:"code-diff-stat removed"},Xi={class:"code-diff-stat added"},Zi=["aria-label"],er={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},tr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},nr=["aria-pressed"],lr={key:3,class:"relative"},or=["aria-expanded"],ir=["disabled"],rr=["disabled"],ar=["disabled"],ur={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},sr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},dr={class:"code-loading-placeholder"},cr={class:"sr-only","aria-live":"polite",role:"status"},fr=cl({__name:"CodeBlockShell",props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:["toggleCollapse","decreaseFont","resetFont","increaseFont","copy","toggleExpand","preview"],setup(x,{emit:M}){const w=x,te=M,ne=$(!1),we=$(null),be=$(null);function r(){vt(!0),ne.value=!ne.value,ne.value&&document.addEventListener("click",z,{once:!0,capture:!0})}function E(){vt(!0),ne.value=!1}function z(G){var f,O;const yt=G.target;(f=we.value)!=null&&f.contains(yt)||(O=be.value)!=null&&O.contains(yt)?document.addEventListener("click",z,{once:!0,capture:!0}):E()}const ie=k(()=>w.showFontSizeButtons&&w.enableFontSizeControl||w.showExpandButton||w.isPreviewable&&w.showPreviewButton),{t:N}=fl(),ht=k(()=>w.showTooltips!==!1);function Ve(G,f){ht.value&&ji(G.currentTarget,f,"top",!1,void 0,w.isDark)}function Be(){ht.value&&vt()}function gt(G){Ve(G,w.copyText?N("common.copied")||"Copied":N("common.copy")||"Copy")}const vl=k(()=>{var G,f;return!!Number.isFinite(w.codeFontSize)&&((G=w.codeFontSize)!=null?G:0)<=((f=w.codeFontMin)!=null?f:0)}),Vt=k(()=>!w.fontBaselineReady||w.codeFontSize===w.defaultCodeFontSize),Jt=k(()=>{var G,f;return!!Number.isFinite(w.codeFontSize)&&((G=w.codeFontSize)!=null?G:0)>=((f=w.codeFontMax)!=null?f:100)});return(G,f)=>(J(),oe(xo,null,[w.showHeader?(J(),oe("div",Yi,[pt(G.$slots,"header-left"),pt(G.$slots,"header-right",{},()=>[b("div",Gi,[x.diffStats?(J(),oe("div",{key:0,class:"code-diff-stats","aria-label":x.diffStatsAriaLabel},[b("span",Qi,"-"+Me(x.diffStats.removed),1),b("span",Xi,"+"+Me(x.diffStats.added),1)],8,Ki)):ye("",!0),w.showCopyButton?(J(),oe("button",{key:1,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-label":x.copyText?V(N)("common.copied")||"Copied":V(N)("common.copy")||"Copy",onClick:f[0]||(f[0]=O=>te("copy")),onMouseenter:f[1]||(f[1]=O=>gt(O)),onFocus:f[2]||(f[2]=O=>gt(O)),onMouseleave:Be,onBlur:Be},[x.copyText?(J(),oe("svg",tr,[...f[14]||(f[14]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(J(),oe("svg",er,[...f[13]||(f[13]=[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Zi)):ye("",!0),w.showCollapseButton?(J(),oe("button",{key:2,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-pressed":x.isCollapsed,onClick:f[3]||(f[3]=O=>te("toggleCollapse")),onMouseenter:f[4]||(f[4]=O=>Ve(O,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onFocus:f[5]||(f[5]=O=>Ve(O,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onMouseleave:Be,onBlur:Be},[(J(),oe("svg",{style:It({rotate:x.isCollapsed?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...f[15]||(f[15]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,nr)):ye("",!0),ie.value?(J(),oe("div",lr,[b("button",{ref_key:"moreBtnRef",ref:be,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors","aria-expanded":ne.value,"aria-haspopup":"true",onClick:zo(r,["stop"]),onMouseenter:f[6]||(f[6]=O=>Ve(O,V(N)("common.more")||"More")),onFocus:f[7]||(f[7]=O=>Ve(O,V(N)("common.more")||"More")),onMouseleave:Be,onBlur:Be},[...f[16]||(f[16]=[Ci('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="currentColor"><circle cx="12" cy="5" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle></g></svg>',1)])],40,or),Oo(Mi,{name:"code-menu"},{default:Ut(()=>[ne.value?(J(),oe("div",{key:0,ref_key:"moreMenuRef",ref:we,class:"code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]",role:"menu"},[w.showFontSizeButtons&&w.enableFontSizeControl?(J(),oe(xo,{key:0},[b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:vl.value,onClick:f[8]||(f[8]=O=>{V(vt)(!0),te("decreaseFont")})},[f[17]||(f[17]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)),b("span",null,Me(V(N)("common.fontSmaller")||"Font size −"),1)],8,ir),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Vt.value,onClick:f[9]||(f[9]=O=>{V(vt)(!0),te("resetFont")})},[f[18]||(f[18]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),b("path",{d:"M3 3v5h5"})])],-1)),b("span",null,Me(V(N)("common.fontReset")||"Font size reset"),1)],8,rr),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Jt.value,onClick:f[10]||(f[10]=O=>{V(vt)(!0),te("increaseFont")})},[f[19]||(f[19]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)),b("span",null,Me(V(N)("common.fontLarger")||"Font size +"),1)],8,ar)],64)):ye("",!0),w.showExpandButton?(J(),oe("button",{key:1,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[11]||(f[11]=O=>{E(),te("toggleExpand")})},[x.isExpanded?(J(),oe("svg",ur,[...f[20]||(f[20]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(J(),oe("svg",sr,[...f[21]||(f[21]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])),b("span",null,Me(x.isExpanded?V(N)("common.collapse")||"Collapse":V(N)("common.expand")||"Expand"),1)])):ye("",!0),x.isPreviewable&&w.showPreviewButton?(J(),oe("button",{key:2,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[12]||(f[12]=O=>{E(),te("preview")})},[f[22]||(f[22]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),b("circle",{cx:"12",cy:"12",r:"3"})])],-1)),b("span",null,Me(V(N)("common.preview")||"Preview"),1)])):ye("",!0)],512)):ye("",!0)]),_:1})])):ye("",!0)])])])):ye("",!0),sl(b("div",{class:mt(["code-block-shell-content",{"code-block-shell-content--collapsed":x.isCollapsed}])},[pt(G.$slots,"default")],2),[[dl,!!x.stream||!x.loading]]),sl(b("div",dr,[pt(G.$slots,"loading",{},()=>[f[23]||(f[23]=b("div",{class:"loading-skeleton"},[b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line short"})],-1))])],512),[[dl,!x.stream&&x.loading]]),b("span",cr,Me(x.copyText?V(N)("common.copied")||"Copied":""),1)],64))}}),vr={class:"html-preview-frame__header"},mr={class:"html-preview-frame__title"},pr={class:"html-preview-frame__label"},hr=["sandbox","srcdoc"],gr=Ho(cl({__name:"HtmlPreviewFrame",props:{code:{},isDark:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},onClose:{type:Function},title:{}},setup(x){const M=x,w=import.meta!==void 0&&!1;let te=null;const{t:ne}=fl(),we=k(()=>{const E=M.code||"",z=E.trim().toLowerCase();return z.startsWith("<!doctype")||z.startsWith("<html")||z.startsWith("<body")?E:`<!doctype html>
|
|
1
|
+
import{aV as cl,bE as wi,b1 as ul,bo as $,aY as ko,bf as Lo,b_ as ae,bd as bi,bh as $o,bj as J,aK as bn,bb as It,b9 as mt,bD as V,aN as oe,aS as Oo,aP as ki,c0 as Ut,bq as pt,c1 as sl,aJ as b,aL as ye,bY as dl,bw as Me,aH as k,bv as xi,b8 as j,c3 as zo,aw as Si,aQ as Ci,Y as xo,aF as Mi}from"./ui-vendor-BmyfP733.js";import{_ as Bi,q as Ei,o as Ho,n as Fi,y as Pi,J as fl,j as Li,s as $i,p as Oi,a as hn,D as vt,c as So,O as zi,m as gn,A as Hi,u as Ni,f as Ti,h as Ri,V as Co,N as Di,M as Ai,P as jt,C as Mo,k as ji,e as qi}from"./index-Bs4r6ELC.js";import{i as fe,t as yn}from"./safeRaf-DGuzXxDK.js";import"./xterm-C91wPeZQ.js";var wn=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});let Bo=!1,qt=null,Wt=null,_t=null;function Wi(){return wn(this,null,function*(){if(_t)return _t;_t=wn(null,null,function*(){if(!Wt)try{if(Wt=(function(x){const M=x;if(typeof M?.useMonaco=="function")return M;const w=x?.default;return typeof w?.useMonaco=="function"?w:null})(yield Bi(()=>import("./__vite-optional-peer-dep_stream-diffs_markstream-vue_false-B8vYMc84.js"),[])),!Wt)return null}catch{return null}try{return yield(function(x){return wn(this,null,function*(){return Bo?void 0:qt||(qt=wn(null,null,function*(){const w=globalThis?.MonacoEnvironment;w&&(typeof w.getWorker=="function"||typeof w.getWorkerUrl=="function")||typeof x?.preloadMonacoWorkers!="function"||(yield x.preloadMonacoWorkers()),Bo=!0}).finally(()=>{qt=null}),qt)})})(Wt),Ei(),Wt}catch{return null}});try{return yield _t}finally{_t=null}})}var _i=Object.defineProperty,Ii=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Eo=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,Fo=(x,M,w)=>M in x?_i(x,M,{enumerable:!0,configurable:!0,writable:!0,value:w}):x[M]=w,I=(x,M)=>{for(var w in M||(M={}))Vi.call(M,w)&&Fo(x,w,M[w]);if(Eo)for(var w of Eo(M))Ji.call(M,w)&&Fo(x,w,M[w]);return x},Ce=(x,M)=>Ii(x,Ui(M)),q=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});const Yi={key:0,class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},Gi={class:"flex items-center gap-0.5"},Ki=["aria-label"],Qi={class:"code-diff-stat removed"},Xi={class:"code-diff-stat added"},Zi=["aria-label"],er={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},tr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},nr=["aria-pressed"],lr={key:3,class:"relative"},or=["aria-expanded"],ir=["disabled"],rr=["disabled"],ar=["disabled"],ur={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},sr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},dr={class:"code-loading-placeholder"},cr={class:"sr-only","aria-live":"polite",role:"status"},fr=cl({__name:"CodeBlockShell",props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:["toggleCollapse","decreaseFont","resetFont","increaseFont","copy","toggleExpand","preview"],setup(x,{emit:M}){const w=x,te=M,ne=$(!1),we=$(null),be=$(null);function r(){vt(!0),ne.value=!ne.value,ne.value&&document.addEventListener("click",z,{once:!0,capture:!0})}function E(){vt(!0),ne.value=!1}function z(G){var f,O;const yt=G.target;(f=we.value)!=null&&f.contains(yt)||(O=be.value)!=null&&O.contains(yt)?document.addEventListener("click",z,{once:!0,capture:!0}):E()}const ie=k(()=>w.showFontSizeButtons&&w.enableFontSizeControl||w.showExpandButton||w.isPreviewable&&w.showPreviewButton),{t:N}=fl(),ht=k(()=>w.showTooltips!==!1);function Ve(G,f){ht.value&&ji(G.currentTarget,f,"top",!1,void 0,w.isDark)}function Be(){ht.value&&vt()}function gt(G){Ve(G,w.copyText?N("common.copied")||"Copied":N("common.copy")||"Copy")}const vl=k(()=>{var G,f;return!!Number.isFinite(w.codeFontSize)&&((G=w.codeFontSize)!=null?G:0)<=((f=w.codeFontMin)!=null?f:0)}),Vt=k(()=>!w.fontBaselineReady||w.codeFontSize===w.defaultCodeFontSize),Jt=k(()=>{var G,f;return!!Number.isFinite(w.codeFontSize)&&((G=w.codeFontSize)!=null?G:0)>=((f=w.codeFontMax)!=null?f:100)});return(G,f)=>(J(),oe(xo,null,[w.showHeader?(J(),oe("div",Yi,[pt(G.$slots,"header-left"),pt(G.$slots,"header-right",{},()=>[b("div",Gi,[x.diffStats?(J(),oe("div",{key:0,class:"code-diff-stats","aria-label":x.diffStatsAriaLabel},[b("span",Qi,"-"+Me(x.diffStats.removed),1),b("span",Xi,"+"+Me(x.diffStats.added),1)],8,Ki)):ye("",!0),w.showCopyButton?(J(),oe("button",{key:1,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-label":x.copyText?V(N)("common.copied")||"Copied":V(N)("common.copy")||"Copy",onClick:f[0]||(f[0]=O=>te("copy")),onMouseenter:f[1]||(f[1]=O=>gt(O)),onFocus:f[2]||(f[2]=O=>gt(O)),onMouseleave:Be,onBlur:Be},[x.copyText?(J(),oe("svg",tr,[...f[14]||(f[14]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(J(),oe("svg",er,[...f[13]||(f[13]=[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Zi)):ye("",!0),w.showCollapseButton?(J(),oe("button",{key:2,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-pressed":x.isCollapsed,onClick:f[3]||(f[3]=O=>te("toggleCollapse")),onMouseenter:f[4]||(f[4]=O=>Ve(O,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onFocus:f[5]||(f[5]=O=>Ve(O,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onMouseleave:Be,onBlur:Be},[(J(),oe("svg",{style:It({rotate:x.isCollapsed?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...f[15]||(f[15]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,nr)):ye("",!0),ie.value?(J(),oe("div",lr,[b("button",{ref_key:"moreBtnRef",ref:be,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors","aria-expanded":ne.value,"aria-haspopup":"true",onClick:zo(r,["stop"]),onMouseenter:f[6]||(f[6]=O=>Ve(O,V(N)("common.more")||"More")),onFocus:f[7]||(f[7]=O=>Ve(O,V(N)("common.more")||"More")),onMouseleave:Be,onBlur:Be},[...f[16]||(f[16]=[Ci('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="currentColor"><circle cx="12" cy="5" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle></g></svg>',1)])],40,or),Oo(Mi,{name:"code-menu"},{default:Ut(()=>[ne.value?(J(),oe("div",{key:0,ref_key:"moreMenuRef",ref:we,class:"code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]",role:"menu"},[w.showFontSizeButtons&&w.enableFontSizeControl?(J(),oe(xo,{key:0},[b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:vl.value,onClick:f[8]||(f[8]=O=>{V(vt)(!0),te("decreaseFont")})},[f[17]||(f[17]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)),b("span",null,Me(V(N)("common.fontSmaller")||"Font size −"),1)],8,ir),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Vt.value,onClick:f[9]||(f[9]=O=>{V(vt)(!0),te("resetFont")})},[f[18]||(f[18]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),b("path",{d:"M3 3v5h5"})])],-1)),b("span",null,Me(V(N)("common.fontReset")||"Font size reset"),1)],8,rr),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Jt.value,onClick:f[10]||(f[10]=O=>{V(vt)(!0),te("increaseFont")})},[f[19]||(f[19]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)),b("span",null,Me(V(N)("common.fontLarger")||"Font size +"),1)],8,ar)],64)):ye("",!0),w.showExpandButton?(J(),oe("button",{key:1,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[11]||(f[11]=O=>{E(),te("toggleExpand")})},[x.isExpanded?(J(),oe("svg",ur,[...f[20]||(f[20]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(J(),oe("svg",sr,[...f[21]||(f[21]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])),b("span",null,Me(x.isExpanded?V(N)("common.collapse")||"Collapse":V(N)("common.expand")||"Expand"),1)])):ye("",!0),x.isPreviewable&&w.showPreviewButton?(J(),oe("button",{key:2,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[12]||(f[12]=O=>{E(),te("preview")})},[f[22]||(f[22]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),b("circle",{cx:"12",cy:"12",r:"3"})])],-1)),b("span",null,Me(V(N)("common.preview")||"Preview"),1)])):ye("",!0)],512)):ye("",!0)]),_:1})])):ye("",!0)])])])):ye("",!0),sl(b("div",{class:mt(["code-block-shell-content",{"code-block-shell-content--collapsed":x.isCollapsed}])},[pt(G.$slots,"default")],2),[[dl,!!x.stream||!x.loading]]),sl(b("div",dr,[pt(G.$slots,"loading",{},()=>[f[23]||(f[23]=b("div",{class:"loading-skeleton"},[b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line short"})],-1))])],512),[[dl,!x.stream&&x.loading]]),b("span",cr,Me(x.copyText?V(N)("common.copied")||"Copied":""),1)],64))}}),vr={class:"html-preview-frame__header"},mr={class:"html-preview-frame__title"},pr={class:"html-preview-frame__label"},hr=["sandbox","srcdoc"],gr=Ho(cl({__name:"HtmlPreviewFrame",props:{code:{},isDark:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},onClose:{type:Function},title:{}},setup(x){const M=x,w=import.meta!==void 0&&!1;let te=null;const{t:ne}=fl(),we=k(()=>{const E=M.code||"",z=E.trim().toLowerCase();return z.startsWith("<!doctype")||z.startsWith("<html")||z.startsWith("<body")?E:`<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as F,_ as J}from"./index-
|
|
1
|
+
import{o as F,_ as J}from"./index-Bs4r6ELC.js";import{aV as K,bo as b,b_ as I,bd as L,bj as O,aK as G,aJ as R,aS as H,c0 as Q,c1 as W,bb as U,aR as Z,bw as ee,bY as te,aF as le,b9 as ae,aw as ne,b8 as k}from"./ui-vendor-BmyfP733.js";import"./xterm-C91wPeZQ.js";var B=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ce=F(K({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,C=null,D=null,w=null,s=0;function Y(){return D?Promise.resolve(D):(w||(w=J(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(D=l,l)).catch(l=>{throw w=null,l})),w)}function P(){c&&(c(),c=null),$=null,C=null}function T(l){return B(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&C===n)return;const{autoUpdate:r}=yield Y();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(P(),$=t,C=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return B(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield Y();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:j,y:q,placement:V,middlewareData:X}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(j)}px, ${Math.round(q)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=V,X.arrow&&p.value){const{x:S,y:z}=X.arrow,A={top:"bottom",bottom:"top",left:"right",right:"left"}[V.split("-")[0]];y.value={left:S!=null?`${S}px`:"",top:z!=null?`${z}px`:"",[A]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}I(()=>e.visible,l=>B(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield k(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield k(),t!==s||!e.visible||(a.value=!0,yield k(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield T(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield T(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,P()}));let M=0;return I([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>B(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield k(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield T(()=>l===M)}})),L(()=>{s+=1,P()}),(l,t)=>(O(),G(ne,{to:"body"},[R("div",{class:ae(["markstream-vue",{dark:h.isDark}])},[H(le,{name:"tooltip",appear:""},{default:Q(()=>[W(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:U({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[Z(ee(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:U(y.value)},null,12,ie)],12,oe),[[te,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./chunk-MOJQB5TN-
|
|
1
|
+
import{g as p,r as u,d as n}from"./chunk-MOJQB5TN-CobFpCWB.js";import{p as f}from"./chunk-JWPE2WC7-DSMEHx_n.js";import{b as a,aE as o}from"./mermaid.core-C8VBDQOj.js";import{M as c,c as d}from"./cynefin-VYW2F7L2-C6Sv_-7M.js";import"./index-Bs4r6ELC.js";import"./ui-vendor-BmyfP733.js";import"./xterm-C91wPeZQ.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),m=t?parseInt(t,10):0,l=s?parseInt(s,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},I={parser:R,db:n,renderer:u,styles:p};export{I as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as ln,aQ as an,H as X,ba as w,F as K,ai as un,X as y,bf as on,bb as C,aK as _,c as rn,m as t,aI as tn,j as sn,d as fn}from"./mermaid.core-
|
|
1
|
+
import{bo as ln,aQ as an,H as X,ba as w,F as K,ai as un,X as y,bf as on,bb as C,aK as _,c as rn,m as t,aI as tn,j as sn,d as fn}from"./mermaid.core-C8VBDQOj.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,I,v,A,O,a){var D=q-l,i=I-h,n=O-v,d=a-A,u=d*D-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*D,h+u*i]}function U(l,h,q,I,v,A,O){var a=l-q,D=h-I,i=(O?A:-A)/C(a*a+D*D),n=i*D,d=-i*a,u=l+n,s=h+d,f=q+n,c=I+d,Q=(u+f)/2,o=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,E=(g<0?-1:1)*C(tn(0,T*T*R-P*P)),F=(P*g-m*E)/R,H=(-P*m-g*E)/R,b=(P*g+m*E)/R,p=(-P*m+g*E)/R,x=F-Q,e=H-o,r=b-Q,S=p-o;return x*x+e*e>r*r+S*S&&(F=b,H=p),{cx:F,cy:H,x01:-n,y01:-d,x11:F*(v/T-1),y11:H*(v/T-1)}}function hn(){var l=cn,h=yn,q=K(0),I=null,v=gn,A=dn,O=mn,a=null,D=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,Q=rn(c-f),o=c>f;if(a||(a=n=D()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(Q>on-y)a.moveTo(s*X(f),s*w(f)),a.arc(0,0,s,f,c,!o),u>y&&(a.moveTo(u*X(c),u*w(c)),a.arc(0,0,u,c,f,o));else{var m=f,g=c,R=f,T=c,P=Q,E=Q,F=O.apply(this,arguments)/2,H=F>y&&(I?+I.apply(this,arguments):C(u*u+s*s)),b=_(rn(s-u)/2,+q.apply(this,arguments)),p=b,x=b,e,r;if(H>y){var S=sn(H/u*w(F)),G=sn(H/s*w(F));(P-=S*2)>y?(S*=o?1:-1,R+=S,T-=S):(P=0,R=T=(f+c)/2),(E-=G*2)>y?(G*=o?1:-1,m+=G,g-=G):(E=0,m=g=(f+c)/2)}var z=s*X(m),B=s*w(m),J=u*X(T),L=u*w(T);if(b>y){var M=s*X(g),N=s*w(g),V=u*X(R),W=u*w(R),j;if(Q<an)if(j=pn(z,B,V,W,M,N,J,L)){var Y=z-j[0],Z=B-j[1],$=M-j[0],k=N-j[1],nn=1/w(fn((Y*$+Z*k)/(C(Y*Y+Z*Z)*C($*$+k*k)))/2),en=C(j[0]*j[0]+j[1]*j[1]);p=_(b,(u-en)/(nn-1)),x=_(b,(s-en)/(nn+1))}else p=x=0}E>y?x>y?(e=U(V,W,z,B,s,x,o),r=U(M,N,J,L,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<b?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(r.y01,r.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(r.cy+r.y11,r.cx+r.x11),!o),a.arc(r.cx,r.cy,x,t(r.y11,r.x11),t(r.y01,r.x01),!o))):(a.moveTo(z,B),a.arc(0,0,s,m,g,!o)):a.moveTo(z,B),!(u>y)||!(P>y)?a.lineTo(J,L):p>y?(e=U(J,L,M,N,u,-p,o),r=U(z,B,V,W,u,-p,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<b?a.arc(e.cx,e.cy,p,t(e.y01,e.x01),t(r.y01,r.x01),!o):(a.arc(e.cx,e.cy,p,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,u,t(e.cy+e.y11,e.cx+e.x11),t(r.cy+r.y11,r.cx+r.x11),o),a.arc(r.cx,r.cy,p,t(r.y11,r.x11),t(r.y01,r.x01),!o))):a.arc(0,0,u,T,R,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[X(d)*n,w(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:K(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:K(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:K(+n),i):q},i.padRadius=function(n){return arguments.length?(I=n==null?null:typeof n=="function"?n:K(+n),i):I},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:K(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:K(+n),i):A},i.padAngle=function(n){return arguments.length?(O=typeof n=="function"?n:K(+n),i):O},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|