vibora 1.12.2 → 1.12.3

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/bin/vibora.js CHANGED
@@ -637,6 +637,7 @@ async function handleUpCommand(flags) {
637
637
  ptyLibName = arch === "arm64" ? "librust_pty_arm64.so" : "librust_pty.so";
638
638
  }
639
639
  const ptyLibPath = join3(packageRoot, "lib", ptyLibName);
640
+ const viboraDir = getViboraDir();
640
641
  console.error("Starting Vibora server...");
641
642
  const serverProc = spawn("bun", [serverPath], {
642
643
  detached: true,
@@ -645,6 +646,7 @@ async function handleUpCommand(flags) {
645
646
  ...process.env,
646
647
  NODE_ENV: "production",
647
648
  PORT: port.toString(),
649
+ VIBORA_DIR: viboraDir,
648
650
  VIBORA_PACKAGE_ROOT: packageRoot,
649
651
  BUN_PTY_LIB: ptyLibPath
650
652
  }
@@ -113,4 +113,4 @@ ${n.map(([s,a])=>{const o=a.theme?.[r]||a.color;return o?` --color-${s}: ${o};`
113
113
  \f\r "&'<=>\``.split("")],[`\0
114
114
  \f\r "&'<=>\``.split(""),`\0
115
115
  \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ATe(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let c;i.space==="html"&&e.tagName==="svg"&&(r.schema=Pq);const u=PTe(r,e.properties),h=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,h&&(a=!1),(u||!s||!CTe(e,t,n))&&(o.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(h),!a&&(!s||!fA(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function PTe(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=MTe(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function MTe(e,t,n){const r=Dke(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let a=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=hd(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Fv.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?aTe:lTe)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(o=hd(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Fv.unquoted[i][s]}))),o!==n&&(e.settings.quoteSmart&&K9(n,a)>K9(n,e.alternative)&&(a=e.alternative),o=a+hd(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Fv.single:Fv.double)[i][s],attribute:!0}))+a),c+(o&&"="+o))}const LTe=["<","&"];function Nq(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:hd(e.value,Object.assign({},r.settings.characterReferences,{subset:LTe}))}function jTe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Nq(e,t,n,r)}function DTe(e,t,n,r){return r.all(e)}const NTe=zke("type",{invalid:ITe,unknown:BTe,handlers:{comment:sTe,doctype:oTe,element:ATe,raw:jTe,root:DTe,text:Nq}});function ITe(e){throw new Error("Expected node, not `"+e+"`")}function BTe(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const zTe={},$Te={},HTe=[];function FTe(e,t){const n=t||zTe,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:UTe,all:VTe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Oke,characterReferences:n.characterReferences||$Te,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Pq:Bke,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function UTe(e,t,n){return NTe(e,t,n,this)}function VTe(e){const t=[],n=e&&e.children||HTe;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function jb(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}function gl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function qTe(e){return Array.isArray(e)?e:[e]}async function Iq(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function hA(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Bq(e){return e==="ansi"||hA(e)}function pA(e){return e==="none"}function zq(e){return pA(e)}function $q(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function n_(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const a=t?n[s]+(n[s+1]||""):n[s];i.push([a,r]),r+=n[s].length,r+=n[s+1]?.length||0}return i}function WTe(e){const t=n_(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=i,a=0;for(const o of t){if(s<o.length)break;s-=o.length,a++}return{line:a,character:s}}function r(i,s){let a=0;for(let o=0;o<i;o++)a+=t[o].length;return a+=s,a}return{lines:t,indexToPos:n,posToIndex:r}}const mA="light-dark()",GTe=["color","background-color"];function KTe(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function YTe(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const s=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,o)=>a-o);return s.length?KTe(i,s):i})):e}function XTe(e,t,n,r,i="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(h=>Db(e.variants[h])),o=new Set(a.flatMap(h=>Object.keys(h))),c={},u=(h,f)=>{const p=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[h]+(f==="color"?"":p)};return a.forEach((h,f)=>{for(const p of o){const v=h[p]||"inherit";if(f===0&&r&&GTe.includes(p))if(r===mA&&a.length>1){const w=t.findIndex(y=>y==="light"),_=t.findIndex(y=>y==="dark");if(w===-1||_===-1)throw new er('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const g=a[w][p]||"inherit",b=a[_][p]||"inherit";c[p]=`light-dark(${g}, ${b})`,i==="css-vars"&&(c[u(f,p)]=v)}else c[p]=v;else i==="css-vars"&&(c[u(f,p)]=v)}}),s.htmlStyle=c,s}function Db(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zr.Italic&&(t["font-style"]="italic"),e.fontStyle&zr.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&zr.Underline&&n.push("underline"),e.fontStyle&zr.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function jT(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Hq=new WeakMap;function r_(e,t){Hq.set(e,t)}function om(e){return Hq.get(e)}class Cf{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Cf(Object.fromEntries(qTe(n).map(r=>[r,OT])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return QTe(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function QTe(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const s=i?.nameScopesList?.scopeName;s&&t.push(s),i.parent&&r(i.parent)}return r(e),t}function ZTe(e,t){if(!(e instanceof Cf))throw new er("Invalid grammar state");return e.getInternalStack(t)}function JTe(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new er(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...i.indexToPos(a),offset:a}}else{const o=i.lines[a.line];if(o===void 0)throw new er(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let c=a.character;if(c<0&&(c=o.length+c),c<0||c>o.length)throw new er(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${o.length}`);return{...a,character:c,offset:i.posToIndex(a.line,c)}}};const i=WTe(n.source),s=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));eRe(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return YTe(n,i)},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(h=>h.type==="element"&&h.tagName==="span");if(i.length!==r.converter.lines.length)throw new er(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(h,f,p,v){const w=i[h];let _="",g=-1,b=-1;if(f===0&&(g=0),p===0&&(b=0),p===Number.POSITIVE_INFINITY&&(b=w.children.length),g===-1||b===-1)for(let x=0;x<w.children.length;x++)_+=Fq(w.children[x]),g===-1&&_.length===f&&(g=x+1),b===-1&&_.length===p&&(b=x+1);if(g===-1)throw new er(`Failed to find start index for decoration ${JSON.stringify(v.start)}`);if(b===-1)throw new er(`Failed to find end index for decoration ${JSON.stringify(v.end)}`);const y=w.children.slice(g,b);if(!v.alwaysWrap&&y.length===w.children.length)o(w,v,"line");else if(!v.alwaysWrap&&y.length===1&&y[0].type==="element")o(y[0],v,"token");else{const x={type:"element",tagName:"span",properties:{},children:y};o(x,v,"wrapper"),w.children.splice(g,y.length,x)}}function a(h,f){i[h]=o(i[h],f,"line")}function o(h,f,p){const v=f.properties||{},w=f.transform||(_=>_);return h.tagName=f.tagName||"span",h.properties={...h.properties,...v,class:h.properties.class},f.properties?.class&&$q(h,f.properties.class),h=w(h,p)||h,h}const c=[],u=r.decorations.sort((h,f)=>f.start.offset-h.start.offset||h.end.offset-f.end.offset);for(const h of u){const{start:f,end:p}=h;if(f.line===p.line)s(f.line,f.character,p.character,h);else if(f.line<p.line){s(f.line,f.character,Number.POSITIVE_INFINITY,h);for(let v=f.line+1;v<p.line;v++)c.unshift(()=>a(v,h));s(p.line,0,p.character,h)}}c.forEach(h=>h())}}}function eRe(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new er(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],s=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,o=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,c=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(s||a||o||c){if(s&&a||o&&c||o&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new er(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Fq(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Fq).join(""):""}const tRe=[JTe()];function Nb(e){const t=nRe(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tRe]}function nRe(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var Cc=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d2={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function rRe(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Z9(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function iRe(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)d2[r]&&t.push({type:"setDecoration",value:d2[r]});else if(r<=29){const i=d2[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Cc[r-30]}});else if(r===38){const i=Z9(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Cc[r-40]}});else if(r===48){const i=Z9(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Cc[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Cc[r-100+8]}})}return t}function sRe(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let s=0;do{const a=rRe(r,s),o=a.sequence?r.substring(s,a.startPosition):r.substring(s);if(o.length>0&&i.push({value:o,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const c=iRe(a.sequence);for(const u of c)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of c)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}s=a.position}while(s<r.length);return i}}}var oRe={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function aRe(e=oRe){function t(o){return e[o]}function n(o){return`#${o.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let u=0;u<Cc.length;u++)r.push(t(Cc[u]));let o=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let h=0;h<6;h++)for(let f=0;f<6;f++)r.push(n([o[u],o[h],o[f]]));let c=8;for(let u=0;u<24;u++,c+=10)r.push(n([c,c,c]));return r}function s(o){return i()[o]}function a(o){switch(o.type){case"named":return t(o.name);case"rgb":return n(o.rgb);case"table":return s(o.index)}}return{value:a}}const lRe={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function cRe(e,t,n){const r=jb(e,n),i=n_(t),s=Object.fromEntries(Cc.map(c=>{const u=`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`,h=e.colors?.[u];return[c,h||lRe[c]]})),a=aRe(s),o=sRe();return i.map(c=>o.parse(c[0]).map(u=>{let h,f;u.decorations.has("reverse")?(h=u.background?a.value(u.background):e.bg,f=u.foreground?a.value(u.foreground):e.fg):(h=u.foreground?a.value(u.foreground):e.fg,f=u.background?a.value(u.background):void 0),h=gl(h,r),f=gl(f,r),u.decorations.has("dim")&&(h=uRe(h));let p=zr.None;return u.decorations.has("bold")&&(p|=zr.Bold),u.decorations.has("italic")&&(p|=zr.Italic),u.decorations.has("underline")&&(p|=zr.Underline),u.decorations.has("strikethrough")&&(p|=zr.Strikethrough),{content:u.value,offset:c[1],color:h,bgColor:f,fontStyle:p}}))}function uRe(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],s=r[1],a=r[2],o=r[3],c=Math.round(Number.parseInt(`${o}${o}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${s}${s}${a}${a}${c}`}else if(r.length===3){const i=r[0],s=r[1],a=r[2];return`#${i}${i}${s}${s}${a}${a}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function gA(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(hA(i)||pA(r))return n_(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:s,colorMap:a}=e.setTheme(r);if(i==="ansi")return cRe(s,t,n);const o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new er(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new er(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return fRe(t,o,s,a,n)}function dRe(...e){if(e.length===2)return om(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(hA(i)||pA(s))throw new er("Plain language does not have grammar state");if(i==="ansi")throw new er("ANSI language does not have grammar state");const{theme:a,colorMap:o}=t.setTheme(s),c=t.getLanguage(i);return new Cf(vA(n,c,a,o,r).stateStack,c.name,a.name)}function fRe(e,t,n,r,i){const s=vA(e,t,n,r,i),a=new Cf(s.stateStack,t.name,n.name);return r_(s.tokens,a),s.tokens}function vA(e,t,n,r,i){const s=jb(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=i,c=n_(e);let u=i.grammarState?ZTe(i.grammarState,n.name)??OT:i.grammarContextCode!=null?vA(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:OT,h=[];const f=[];for(let p=0,v=c.length;p<v;p++){const[w,_]=c[p];if(w===""){h=[],f.push([]);continue}if(a>0&&w.length>=a){h=[],f.push([{content:w,offset:_,color:"",fontStyle:0}]);continue}let g,b,y;i.includeExplanation&&(g=t.tokenizeLine(w,u,o),b=g.tokens,y=0);const x=t.tokenizeLine2(w,u,o),E=x.tokens.length/2;for(let k=0;k<E;k++){const T=x.tokens[2*k],A=k+1<E?x.tokens[2*k+2]:w.length;if(T===A)continue;const O=x.tokens[2*k+1],M=gl(r[Wd.getForeground(O)],s),B=Wd.getFontStyle(O),D={content:w.substring(T,A),offset:_+T,color:M,fontStyle:B};if(i.includeExplanation){const H=[];if(i.includeExplanation!=="scopeName")for(const F of n.settings){let U;switch(typeof F.scope){case"string":U=F.scope.split(/,/).map($=>$.trim());break;case"object":U=F.scope;break;default:continue}H.push({settings:F,selectors:U.map($=>$.split(/ /))})}D.explanation=[];let N=0;for(;T+N<A;){const F=b[y],U=w.substring(F.startIndex,F.endIndex);N+=U.length,D.explanation.push({content:U,scopes:i.includeExplanation==="scopeName"?hRe(F.scopes):pRe(H,F.scopes)}),y+=1}}h.push(D)}f.push(h),h=[],u=x.ruleStack}return{tokens:f,stateStack:u}}function hRe(e){return e.map(t=>({scopeName:t}))}function pRe(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const s=t[r];n[r]={scopeName:s,themeMatches:gRe(e,s,t.slice(0,r))}}return n}function J9(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function mRe(e,t,n){if(!J9(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)J9(e[r],n[i])&&(r-=1),i-=1;return r===-1}function gRe(e,t,n){const r=[];for(const{selectors:i,settings:s}of e)for(const a of i)if(mRe(a,t,n)){r.push(s);break}return r}function Uq(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),i=r.map(c=>{const u=gA(e,t,{...n,theme:c.theme}),h=om(u),f=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:u,state:h,theme:f}}),s=vRe(...i.map(c=>c.tokens)),a=s[0].map((c,u)=>c.map((h,f)=>{const p={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=h.explanation),s.forEach((v,w)=>{const{content:_,explanation:g,offset:b,...y}=v[u][f];p.variants[r[w].color]=y}),p})),o=i[0].state?new Cf(Object.fromEntries(i.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),i[0].state.lang):void 0;return o&&r_(a,o),a}function vRe(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(c=>c[r]),s=t.map(()=>[]);t.forEach((c,u)=>c.push(s[u]));const a=i.map(()=>0),o=i.map(c=>c[0]);for(;o.every(c=>c);){const c=Math.min(...o.map(u=>u.content.length));for(let u=0;u<n;u++){const h=o[u];h.content.length===c?(s[u].push(h),a[u]+=1,o[u]=i[u][a[u]]):(s[u].push({...h,content:h.content.slice(0,c)}),o[u]={...h,content:h.content.slice(c),offset:h.offset+c})}}}return t}function Ib(e,t,n){let r,i,s,a,o,c;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:h="--shiki-",colorsRendering:f="css-vars"}=n,p=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,y)=>b.color===u?-1:y.color===u?1:0);if(p.length===0)throw new er("`themes` option must not be empty");const v=Uq(e,t,n);if(c=om(v),u&&mA!==u&&!p.find(b=>b.color===u))throw new er(`\`themes\` option must contain the defaultColor key \`${u}\``);const w=p.map(b=>e.getTheme(b.theme)),_=p.map(b=>b.color);s=v.map(b=>b.map(y=>XTe(y,_,h,u,f))),c&&r_(s,c);const g=p.map(b=>jb(b.theme,n));i=eB(p,w,g,h,u,"fg",f),r=eB(p,w,g,h,u,"bg",f),a=`shiki-themes ${w.map(b=>b.name).join(" ")}`,o=u?void 0:[i,r].join(";")}else if("theme"in n){const u=jb(n.theme,n);s=gA(e,t,n);const h=e.getTheme(n.theme);r=gl(h.bg,u),i=gl(h.fg,u),a=h.name,c=om(s)}else throw new er("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:a,rootStyle:o,grammarState:c}}function eB(e,t,n,r,i,s,a){return e.map((o,c)=>{const u=gl(t[c][s],n[c])||"inherit",h=`${r+o.color}${s==="bg"?"-bg":""}:${u}`;if(c===0&&i){if(i===mA&&e.length>1){const f=e.findIndex(_=>_.color==="light"),p=e.findIndex(_=>_.color==="dark");if(f===-1||p===-1)throw new er('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=gl(t[f][s],n[f])||"inherit",w=gl(t[p][s],n[p])||"inherit";return`light-dark(${v}, ${w});${h}`}return u}return a==="css-vars"?h:null}).filter(o=>!!o).join(";")}function Bb(e,t,n,r={meta:{},options:n,codeToHast:(i,s)=>Bb(e,i,s),codeToTokens:(i,s)=>Ib(e,i,s)}){let i=t;for(const w of Nb(n))i=w.preprocess?.call(r,i,n)||i;let{tokens:s,fg:a,bg:o,themeName:c,rootStyle:u,grammarState:h}=Ib(e,i,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:p=!1}=n;f===!0?s=bRe(s):f==="never"&&(s=_Re(s)),p&&(s=xRe(s));const v={...r,get source(){return i}};for(const w of Nb(n))s=w.tokens?.call(v,s)||s;return yRe(s,{...n,fg:a,bg:o,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},v,h)}function yRe(e,t,n,r=om(e)){const i=Nb(t),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:c="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(u.tabindex=c.toString());for(const[_,g]of Object.entries(t.meta||{}))_.startsWith("_")||(u[_]=g);let h={type:"element",tagName:"pre",properties:u,children:[]},f={type:"element",tagName:"code",properties:{},children:s};const p=[],v={...n,structure:o,addClassToHast:$q,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return h},get code(){return f},get lines(){return p}};if(e.forEach((_,g)=>{g&&(o==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&s.push({type:"text",value:`
116
- `}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(const x of _){let E={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};const k=jT(x.htmlStyle||Db(x));k&&(E.properties.style=k);for(const T of i)E=T?.span?.call(v,E,g+1,y,b,x)||E;o==="inline"?a.children.push(E):o==="classic"&&b.children.push(E),y+=x.content.length}if(o==="classic"){for(const x of i)b=x?.line?.call(v,b,g+1)||b;p.push(b),s.push(b)}else o==="inline"&&p.push(b)}),o==="classic"){for(const _ of i)f=_?.code?.call(v,f)||f;h.children.push(f);for(const _ of i)h=_?.pre?.call(v,h)||h;a.children.push(h)}else if(o==="inline"){const _=[];let g={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const x of a.children)x.type==="element"&&x.tagName==="br"?(_.push(g),g={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(x.type==="element"||x.type==="text")&&g.children.push(x);_.push(g);let y={type:"element",tagName:"code",properties:{},children:_};for(const x of i)y=x?.code?.call(v,y)||y;a.children=[];for(let x=0;x<y.children.length;x++){x>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const E=y.children[x];E.type==="element"&&a.children.push(...E.children)}}let w=a;for(const _ of i)w=_?.root?.call(v,w)||w;return r&&r_(w,r),w}function bRe(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((s,a)=>{const c=!(s.fontStyle&&(s.fontStyle&zr.Underline||s.fontStyle&zr.Strikethrough));c&&s.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=s.offset),r+=s.content):r?(c?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=void 0,r=""):n.push(s)}),n})}function _Re(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,a]=r;if(!i&&!a)return n;const o=[{...n,offset:n.offset+i.length,content:s}];return i&&o.unshift({content:i,offset:n.offset}),a&&o.push({content:a,offset:n.offset+i.length+s.length}),o}))}function xRe(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],s=jT(i.htmlStyle||Db(i)),a=jT(r.htmlStyle||Db(r)),o=i.fontStyle&&(i.fontStyle&zr.Underline||i.fontStyle&zr.Strikethrough),c=r.fontStyle&&(r.fontStyle&zr.Underline||r.fontStyle&zr.Strikethrough);!o&&!c&&s===a?i.content+=r.content:n.push({...r})}return n})}const SRe=FTe;function wRe(e,t,n){const r={meta:{},options:n,codeToHast:(s,a)=>Bb(e,s,a),codeToTokens:(s,a)=>Ib(e,s,a)};let i=SRe(Bb(e,t,n,r));for(const s of Nb(n))i=s.postprocess?.call(r,i,n)||i;return i}const tB={light:"#333333",dark:"#bbbbbb"},nB={light:"#fffffe",dark:"#1e1e1e"},rB="__shiki_resolved";function yA(e){if(e?.[rB])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const o=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;o?.settings?.foreground&&(r=o.settings.foreground),o?.settings?.background&&(n=o.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?tB.light:tB.dark),n||(n=t.type==="light"?nB.light:nB.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const s=new Map;function a(o){if(s.has(o))return s.get(o);i+=1;const c=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?a(o):(s.set(o,c),c)}t.settings=t.settings.map(o=>{const c=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),u=o.settings?.background&&!o.settings.background.startsWith("#");if(!c&&!u)return o;const h={...o,settings:{...o.settings}};if(c){const f=a(o.settings.foreground);t.colorReplacements[f]=o.settings.foreground,h.settings.foreground=f}if(u){const f=a(o.settings.background);t.colorReplacements[f]=o.settings.background,h.settings.background=f}return h});for(const o of Object.keys(t.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!t.colors[o]?.startsWith("#")){const c=a(t.colors[o]);t.colorReplacements[c]=t.colors[o],t.colors[o]=c}return Object.defineProperty(t,rB,{enumerable:!1,writable:!1,value:!0}),t}async function Vq(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Bq(t)).map(async t=>await Iq(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function qq(e){return(await Promise.all(e.map(async n=>zq(n)?null:yA(await Iq(n))))).filter(n=>!!n)}let CRe=3;function ERe(e,t=3){t>CRe||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ed=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Wq(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ed(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class kRe extends Rke{constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=yA(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Ob.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Wq(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(c=>r.map(([u])=>u).includes(c)):!1).filter(s=>!r.includes(s));throw new ed(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class TRe{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Bh=0;function RRe(e){Bh+=1,e.warnings!==!1&&Bh>=10&&Bh%10===0&&console.warn(`[Shiki] ${Bh} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ed("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(yA),i=new TRe(e.engine,n),s=new kRe(i,r,n,e.langAlias);let a;function o(x){return Wq(x,e.langAlias)}function c(x){b();const E=s.getGrammar(typeof x=="string"?x:x.name);if(!E)throw new ed(`Language \`${x}\` not found, you may need to load it first`);return E}function u(x){if(x==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const E=s.getTheme(x);if(!E)throw new ed(`Theme \`${x}\` not found, you may need to load it first`);return E}function h(x){b();const E=u(x);a!==x&&(s.setTheme(E),a=x);const k=s.getColorMap();return{theme:E,colorMap:k}}function f(){return b(),s.getLoadedThemes()}function p(){return b(),s.getLoadedLanguages()}function v(...x){b(),s.loadLanguages(x.flat(1))}async function w(...x){return v(await Vq(x))}function _(...x){b();for(const E of x.flat(1))s.loadTheme(E)}async function g(...x){return b(),_(await qq(x))}function b(){if(t)throw new ed("Shiki instance has been disposed")}function y(){t||(t=!0,s.dispose(),Bh-=1)}return{setTheme:h,getTheme:u,getLanguage:c,getLoadedThemes:f,getLoadedLanguages:p,resolveLangAlias:o,loadLanguage:w,loadLanguageSync:v,loadTheme:g,loadThemeSync:_,dispose:y,[Symbol.dispose]:y}}async function ORe(e){e.engine||ERe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([qq(e.themes||[]),Vq(e.langs||[]),e.engine]);return RRe({...e,themes:t,langs:n,engine:r})}async function ARe(e){const t=await ORe(e);return{getLastGrammarState:(...n)=>dRe(t,...n),codeToTokensBase:(n,r)=>gA(t,n,r),codeToTokensWithThemes:(n,r)=>Uq(t,n,r),codeToTokens:(n,r)=>Ib(t,n,r),codeToHast:(n,r)=>Bb(t,n,r),codeToHtml:(n,r)=>wRe(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function PRe(e){const t=e.langs,n=e.themes,r=e.engine;async function i(s){function a(f){if(typeof f=="string"){if(f=s.langAlias?.[f]||f,Bq(f))return[];const p=t[f];if(!p)throw new er(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return p}return f}function o(f){if(zq(f))return"none";if(typeof f=="string"){const p=n[f];if(!p)throw new er(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return p}return f}const c=(s.themes??[]).map(f=>o(f)),u=(s.langs??[]).map(f=>a(f)),h=await ARe({engine:s.engine??r(),...s,themes:c,langs:u});return{...h,loadLanguage(...f){return h.loadLanguage(...f.map(a))},loadTheme(...f){return h.loadTheme(...f.map(o))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}const Gq=[{id:"abap",name:"ABAP",import:(()=>se(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>se(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>se(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>se(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>se(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>se(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>se(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>se(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>se(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>se(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>se(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>se(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>se(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>se(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>se(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>se(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>se(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>se(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>se(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>se(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>se(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>se(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>se(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>se(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>se(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>se(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>se(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>se(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>se(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>se(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>se(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>se(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>se(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>se(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>se(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>se(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>se(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>se(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>se(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>se(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>se(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>se(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>se(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>se(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>se(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>se(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>se(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>se(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>se(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>se(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>se(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>se(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>se(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>se(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>se(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>se(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>se(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>se(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>se(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>se(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>se(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>se(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>se(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>se(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>se(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>se(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>se(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>se(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>se(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>se(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>se(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>se(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>se(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>se(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>se(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>se(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>se(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>se(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>se(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>se(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>se(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>se(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>se(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>se(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>se(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>se(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>se(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>se(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>se(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>se(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>se(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>se(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>se(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>se(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>se(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>se(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>se(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>se(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>se(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>se(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>se(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>se(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>se(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>se(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>se(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>se(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>se(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>se(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>se(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>se(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>se(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>se(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>se(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>se(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>se(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>se(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>se(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>se(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>se(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>se(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>se(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>se(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>se(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>se(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>se(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>se(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>se(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>se(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>se(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>se(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>se(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>se(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>se(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>se(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>se(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>se(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>se(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>se(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>se(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>se(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>se(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>se(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>se(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>se(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>se(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>se(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>se(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>se(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>se(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>se(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>se(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>se(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>se(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>se(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>se(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>se(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>se(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>se(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>se(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>se(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>se(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>se(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>se(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>se(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>se(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>se(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>se(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>se(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>se(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>se(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>se(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>se(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>se(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>se(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>se(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>se(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>se(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>se(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>se(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>se(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>se(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>se(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>se(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>se(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>se(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>se(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>se(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>se(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>se(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>se(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>se(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>se(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>se(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>se(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>se(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>se(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>se(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>se(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>se(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>se(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>se(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>se(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>se(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>se(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>se(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>se(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>se(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>se(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>se(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>se(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>se(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>se(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>se(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>se(()=>import("./vue-vine-8moa0y9V.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>se(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>se(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>se(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>se(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>se(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>se(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>se(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>se(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>se(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>se(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>se(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>se(()=>import("./zig-VOosw3JB.js"),[]))}],MRe=Object.fromEntries(Gq.map(e=>[e.id,e.import])),LRe=Object.fromEntries(Gq.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),jRe={...MRe,...LRe},DRe=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>se(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>se(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>se(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>se(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>se(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>se(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>se(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>se(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>se(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>se(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>se(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>se(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>se(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>se(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>se(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>se(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>se(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>se(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>se(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>se(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>se(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>se(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>se(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>se(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>se(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>se(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>se(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>se(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>se(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>se(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>se(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>se(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>se(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>se(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>se(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>se(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>se(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>se(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>se(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>se(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>se(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>se(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>se(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>se(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>se(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>se(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>se(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>se(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>se(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>se(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>se(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>se(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>se(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>se(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>se(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>se(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>se(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],NRe=Object.fromEntries(DRe.map(e=>[e.id,e.import]));class bA extends Error{constructor(t){super(t),this.name="ShikiError"}}function IRe(){return 2147483648}function BRe(){return typeof performance<"u"?performance.now():Date.now()}const zRe=(e,t)=>e+(t-e%t)%t;async function $Re(e){let t,n;const r={};function i(v){n=v,r.HEAPU8=new Uint8Array(v),r.HEAPU32=new Uint32Array(v)}function s(v,w,_){r.HEAPU8.copyWithin(v,w,w+_)}function a(v){try{return t.grow(v-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function o(v){const w=r.HEAPU8.length;v=v>>>0;const _=IRe();if(v>_)return!1;for(let g=1;g<=4;g*=2){let b=w*(1+.2/g);b=Math.min(b,v+100663296);const y=Math.min(_,zRe(Math.max(v,b),65536));if(a(y))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(v,w,_=1024){const g=w+_;let b=w;for(;v[b]&&!(b>=g);)++b;if(b-w>16&&v.buffer&&c)return c.decode(v.subarray(w,b));let y="";for(;w<b;){let x=v[w++];if(!(x&128)){y+=String.fromCharCode(x);continue}const E=v[w++]&63;if((x&224)===192){y+=String.fromCharCode((x&31)<<6|E);continue}const k=v[w++]&63;if((x&240)===224?x=(x&15)<<12|E<<6|k:x=(x&7)<<18|E<<12|k<<6|v[w++]&63,x<65536)y+=String.fromCharCode(x);else{const T=x-65536;y+=String.fromCharCode(55296|T>>10,56320|T&1023)}}return y}function h(v,w){return v?u(r.HEAPU8,v,w):""}const f={emscripten_get_now:BRe,emscripten_memcpy_big:s,emscripten_resize_heap:o,fd_write:()=>0};async function p(){const w=await e({env:f,wasi_snapshot_preview1:f});t=w.memory,i(t.buffer),Object.assign(r,w),r.UTF8ToString=h}return await p(),r}var HRe=Object.defineProperty,FRe=(e,t,n)=>t in e?HRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fr=(e,t,n)=>FRe(e,typeof t!="symbol"?t+"":t,n);let br=null;function URe(e){throw new bA(e.UTF8ToString(e.getLastOnigError()))}class i_{constructor(t){fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16Value"),fr(this,"utf8Value"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16");const n=t.length,r=i_._utf8ByteLength(t),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const o=new Uint8Array(r);let c=0;for(let u=0;u<n;u++){const h=t.charCodeAt(u);let f=h,p=!1;if(h>=55296&&h<=56319&&u+1<n){const v=t.charCodeAt(u+1);v>=56320&&v<=57343&&(f=(h-55296<<10)+65536|v-56320,p=!0)}i&&(s[u]=c,p&&(s[u+1]=c),f<=127?a[c+0]=u:f<=2047?(a[c+0]=u,a[c+1]=u):f<=65535?(a[c+0]=u,a[c+1]=u,a[c+2]=u):(a[c+0]=u,a[c+1]=u,a[c+2]=u,a[c+3]=u)),f<=127?o[c++]=f:f<=2047?(o[c++]=192|(f&1984)>>>6,o[c++]=128|(f&63)>>>0):f<=65535?(o[c++]=224|(f&61440)>>>12,o[c++]=128|(f&4032)>>>6,o[c++]=128|(f&63)>>>0):(o[c++]=240|(f&1835008)>>>18,o[c++]=128|(f&258048)>>>12,o[c++]=128|(f&4032)>>>6,o[c++]=128|(f&63)>>>0),p&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const s=t.charCodeAt(r);let a=s,o=!1;if(s>=55296&&s<=56319&&r+1<i){const c=t.charCodeAt(r+1);c>=56320&&c<=57343&&(a=(s-55296<<10)+65536|c-56320,o=!0)}a<=127?n+=1:a<=2047?n+=2:a<=65535?n+=3:n+=4,o&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const s_=class Xs{constructor(t){if(fr(this,"id",++Xs.LAST_ID),fr(this,"_onigBinding"),fr(this,"content"),fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16"),fr(this,"ptr"),!br)throw new bA("Must invoke loadWasm first.");this._onigBinding=br,this.content=t;const n=new i_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xs._sharedPtrInUse?(Xs._sharedPtr||(Xs._sharedPtr=br.omalloc(1e4)),Xs._sharedPtrInUse=!0,br.HEAPU8.set(n.utf8Value,Xs._sharedPtr),this.ptr=Xs._sharedPtr):this.ptr=n.createString(br)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Xs._sharedPtr?Xs._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};fr(s_,"LAST_ID",0);fr(s_,"_sharedPtr",0);fr(s_,"_sharedPtrInUse",!1);let Kq=s_;class VRe{constructor(t){if(fr(this,"_onigBinding"),fr(this,"_ptr"),!br)throw new bA("Must invoke loadWasm first.");const n=[],r=[];for(let o=0,c=t.length;o<c;o++){const u=new i_(t[o]);n[o]=u.createString(br),r[o]=u.utf8Length}const i=br.omalloc(4*t.length);br.HEAPU32.set(n,i/4);const s=br.omalloc(4*t.length);br.HEAPU32.set(r,s/4);const a=br.createOnigScanner(i,s,t.length);for(let o=0,c=t.length;o<c;o++)br.ofree(n[o]);br.ofree(s),br.ofree(i),a===0&&URe(br),this._onigBinding=br,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new Kq(t);const s=this._findNextMatchSync(t,n,!1,i);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(a===0)return null;const o=s.HEAPU32;let c=a/4;const u=o[c++],h=o[c++],f=[];for(let p=0;p<h;p++){const v=t.convertUtf8OffsetToUtf16(o[c++]),w=t.convertUtf8OffsetToUtf16(o[c++]);f[p]={start:v,end:w,length:w-v}}return{index:u,captureIndices:f}}}function qRe(e){return typeof e.instantiator=="function"}function WRe(e){return typeof e.default=="function"}function GRe(e){return typeof e.data<"u"}function KRe(e){return typeof Response<"u"&&e instanceof Response}function YRe(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Uv;function XRe(e){if(Uv)return Uv;async function t(){br=await $Re(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),qRe(r)?r=await r.instantiator(n):WRe(r)?r=await r.default(n):(GRe(r)&&(r=r.data),KRe(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await QRe(r)(n):r=await ZRe(r)(n):YRe(r)?r=await f2(r)(n):r instanceof WebAssembly.Module?r=await f2(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await f2(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Uv=t(),Uv}function f2(e){return t=>WebAssembly.instantiate(e,t)}function QRe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function ZRe(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function JRe(e){return e&&await XRe(e),{createScanner(t){return new VRe(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Kq(t)}}}const eOe=PRe({langs:jRe,themes:NRe,engine:()=>JRe(se(()=>import("./wasm-CG6Dc4jp.js"),[]))});let Vv=null,qv=null;const tOe=["typescript","tsx","javascript","jsx","json","css","html","markdown","yaml","toml","bash","shell","python","rust","go","sql","diff","plaintext"];async function nOe(){return Vv||qv||(qv=eOe({themes:["github-dark"],langs:tOe}),Vv=await qv,Vv)}async function rOe(e,t){const n=await nOe(),r=iOe(t);if(!n.getLoadedLanguages().includes(r))try{await n.loadLanguage(r)}catch{return n.codeToHtml(e,{lang:"plaintext",theme:"github-dark"})}return n.codeToHtml(e,{lang:r,theme:"github-dark"})}function iOe(e){return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rb:"ruby",rs:"rust",sh:"bash",yml:"yaml",md:"markdown"}[e]||e}function sOe(e){const t=e.split(".").pop()?.toLowerCase()||"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"html",md:"markdown",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",bash:"bash",zsh:"bash",py:"python",rs:"rust",go:"go",sql:"sql",diff:"diff",txt:"plaintext"}[t]||"plaintext"}function iB({filePath:e,content:t,isLoading:n,error:r,onClose:i}){const[s,a]=R.useState(null),[o,c]=R.useState(!1),[u,h]=R.useState(!0);if(R.useEffect(()=>{if(!t||!e){a(null);return}if(t.mimeType.startsWith("image/")||t.mimeType==="application/octet-stream"){a(null);return}c(!0);const p=sOe(e);rOe(t.content,p).then(v=>{a(v),c(!1)}).catch(()=>{a(null),c(!1)})},[t,e]),!e)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Select a file to view"});if(n)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Loading file..."});if(r)return S.jsx("div",{className:"flex h-full items-center justify-center text-destructive text-sm",children:r.message});if(!t)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Unable to load file"});if(t.mimeType==="application/octet-stream")return S.jsxs("div",{className:"flex h-full flex-col items-center justify-center text-muted-foreground text-sm gap-2",children:[S.jsx("p",{children:"Binary file"}),S.jsxs("p",{className:"text-xs",children:[(t.size/1024).toFixed(1)," KB"]})]});if(t.mimeType.startsWith("image/"))return S.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[S.jsxs("div",{className:"flex shrink-0 items-center justify-between px-2 py-1.5 bg-muted/50 border-b border-border text-xs",children:[S.jsx("span",{className:"text-muted-foreground truncate",title:e,children:e.split("/").pop()||e}),S.jsx("button",{onClick:i,className:"p-1 text-muted-foreground hover:text-foreground rounded hover:bg-muted/50",title:"Close file",children:S.jsx(ye,{icon:Li,size:14,strokeWidth:2})})]}),S.jsx("div",{className:"flex flex-1 items-center justify-center p-4 bg-[#0d1117]",children:S.jsx("img",{src:t.content,alt:e,className:"max-w-full max-h-full object-contain"})})]});const f=e.split("/").pop()||e;return S.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[S.jsxs("div",{className:"flex shrink-0 items-center gap-3 px-2 py-1.5 bg-muted/50 border-b border-border text-xs",children:[S.jsx("span",{className:"text-muted-foreground truncate flex-1",title:e,children:f}),t.truncated&&S.jsxs("span",{className:"text-yellow-500",children:["Truncated (",t.lineCount.toLocaleString()," lines)"]}),S.jsxs("span",{className:"text-muted-foreground",children:[(t.size/1024).toFixed(1)," KB"]}),S.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer text-muted-foreground hover:text-foreground",children:[S.jsx("input",{type:"checkbox",checked:u,onChange:p=>h(p.target.checked),className:"w-3 h-3"}),"Wrap"]}),S.jsx("button",{onClick:i,className:"p-1 text-muted-foreground hover:text-foreground rounded hover:bg-muted/50",title:"Close file",children:S.jsx(ye,{icon:Li,size:14,strokeWidth:2})})]}),S.jsx(xd,{className:"flex-1 min-h-0",children:o?S.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm",children:"Highlighting..."}):s?S.jsx("div",{className:ze("text-xs [&_pre]:!bg-transparent [&_pre]:!m-0 [&_pre]:!p-2 [&_code]:!bg-transparent",u?"[&_pre]:whitespace-pre-wrap [&_pre]:break-all":"[&_pre]:whitespace-pre"),dangerouslySetInnerHTML:{__html:s}}):S.jsx("pre",{className:ze("p-2 font-mono text-xs",u?"whitespace-pre-wrap break-all":"whitespace-pre"),children:t.content})})]})}function sB({taskId:e,worktreePath:t}){const{selectedFile:n,expandedDirs:r,setSelectedFile:i,toggleDir:s,collapseAll:a}=z2e(e),[o,c]=R.useState("tree"),u=x0(),{data:h,isLoading:f,error:p}=Qse(t),{data:v,isLoading:w,error:_}=Zse(t,n),g=R.useCallback(x=>{i(x),window.matchMedia("(max-width: 639px)").matches&&c("content")},[i]),b=R.useCallback(()=>{i(null),window.matchMedia("(max-width: 639px)").matches&&c("tree")},[i]),y=R.useCallback(x=>{s(x)},[s]);return t?f?S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Loading files..."}):p?S.jsx("div",{className:"flex h-full items-center justify-center text-destructive text-sm",children:p.message}):u?S.jsxs(fl,{value:o,onValueChange:x=>c(x),className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{className:"w-full",children:[S.jsx(Qn,{value:"tree",className:"flex-1",children:"Files"}),S.jsx(Qn,{value:"content",className:"flex-1",children:"Content"})]})}),S.jsx(dr,{value:"tree",className:"flex-1 min-h-0 overflow-hidden",children:S.jsx(xd,{className:"h-full",children:S.jsx(j9,{entries:h?.entries||[],selectedFile:n,expandedDirs:r,onSelectFile:g,onToggleDir:y,onCollapseAll:a})})}),S.jsx(dr,{value:"content",className:"flex-1 min-h-0 overflow-hidden",children:S.jsx(iB,{filePath:n,content:v??null,isLoading:w,error:_,onClose:b})})]}):S.jsxs(uc,{direction:"horizontal",className:"h-full",children:[S.jsx(Xi,{defaultSize:65,minSize:30,className:"overflow-hidden",children:S.jsx(iB,{filePath:n,content:v??null,isLoading:w,error:_,onClose:b})}),S.jsx(dc,{withHandle:!0}),S.jsx(Xi,{defaultSize:35,minSize:15,children:S.jsx(xd,{className:"h-full",children:S.jsx(j9,{entries:h?.entries||[],selectedFile:n,expandedDirs:r,onSelectFile:g,onToggleDir:y,onCollapseAll:a})})})]}):S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"No worktree selected"})}const Yq=as("/tasks/$taskId")({component:aOe}),oB={IN_PROGRESS:"In Progress",IN_REVIEW:"In Review",DONE:"Done",CANCELED:"Canceled"},oOe={IN_PROGRESS:"bg-blue-500/20 text-blue-500",IN_REVIEW:"bg-yellow-500/20 text-yellow-600",DONE:"bg-green-500/20 text-green-600",CANCELED:"bg-red-500/20 text-red-500"};function aOe(){const{taskId:e}=Yq.useParams(),t=bl(),n=VY(),{data:r,isLoading:i}=F$(e),s=$R(),a=Wse(),{tab:o,setTab:c}=o2e(e),u=SH(),h=wH(),f=CH(),p=EH(),{data:v}=b0(),{data:w}=_0(),{data:_}=a2e(r?.linearTicketId??null),g=n.state,b=g?.aiMode&&g?.description?g.aiMode:void 0,y=g?.description,[x,E]=R.useState(!1),[k,T]=R.useState(!1),[A,O]=R.useState(!1),[M,B]=R.useState(null),[D,H]=R.useState(!1),[N,F]=R.useState(!1),[U,$]=R.useState(null),[q,W]=R.useState(!1),[I,G]=R.useState(!1),[j,z]=R.useState(null),[V,Q]=R.useState(!1),[ne,re]=R.useState(!1),[X,K]=R.useState(!1),[Z,ee]=R.useState("terminal"),te=x0(),{terminals:ie,writeToTerminal:ue}=ZR();R.useEffect(()=>{if(N){const Ae=setTimeout(()=>F(!1),3e3);return()=>clearTimeout(Ae)}},[N]),R.useEffect(()=>{if(I){const Ae=setTimeout(()=>G(!1),3e3);return()=>clearTimeout(Ae)}},[I]),R.useEffect(()=>{if(ne){const Ae=setTimeout(()=>re(!1),3e3);return()=>clearTimeout(Ae)}},[ne]);const pe=async()=>{if(!(!r?.repoPath||!r?.worktreePath)){B(null),F(!1);try{await u.mutateAsync({repoPath:r.repoPath,worktreePath:r.worktreePath,baseBranch:r.baseBranch}),F(!0)}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Sync failed";B(Se),H(!0)}}},he=()=>{if(!r||!M)return"";const Ae=r.baseBranch||"main";return`Fix the git sync issue. Worktree: ${r.worktreePath} | Parent repo: ${r.repoPath} | Branch: ${r.branch} | Base: ${Ae} | Error: ${M} | Steps: 1) Check git status 2) Resolve conflicts or commit/stash changes 3) Rebase onto the parent repo's ${Ae} branch`},de=()=>{if(!r||!U)return"";const Ae=r.baseBranch||"main";return`Fix the git merge issue. Worktree: ${r.worktreePath} | Parent repo: ${r.repoPath} | Branch: ${r.branch} | Base: ${Ae} | Error: ${U} | Steps: 1) Check git status in both worktree and parent 2) Resolve any conflicts 3) Ensure worktree changes are committed 4) Retry merge to ${Ae} 5) On successful merge, run: vibora tasks move ${r.id} --status done`},ae=async()=>{if(!(!r?.repoPath||!r?.worktreePath)){$(null),G(!1);try{await h.mutateAsync({repoPath:r.repoPath,worktreePath:r.worktreePath,baseBranch:r.baseBranch}),G(!0),p.mutate(r.id),s.mutate({taskId:r.id,updates:{status:"DONE"}})}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Merge failed";$(Se),W(!0)}}},Ne=async()=>{if(r?.repoPath){z(null),re(!1);try{await f.mutateAsync({repoPath:r.repoPath,baseBranch:r.baseBranch}),re(!0)}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Sync parent failed";z(Se),Q(!0)}}},Ce=()=>{if(!r||!j)return"";const Ae=r.baseBranch||"main";return`Fix the git sync parent issue. Parent repo: ${r.repoPath} | Base branch: ${Ae} | Error: ${j} | Steps: 1) Check git status in parent repo 2) Resolve any local changes or divergence 3) Fetch and merge/rebase from origin/${Ae}`},Le=ie.find(Ae=>Ae.cwd===r?.worktreePath),be=()=>{if(!Le)return;const Ae=he();ue(Le.id,Ae+"\r"),H(!1)},Re=()=>{if(!Le)return;const Se=`claude -p "${he().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),H(!1)},me=()=>{if(!Le)return;const Ae=de();ue(Le.id,Ae+"\r"),W(!1)},ke=()=>{if(!Le)return;const Se=`claude -p "${de().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),W(!1)},we=()=>{if(!Le)return;const Ae=Ce();ue(Le.id,Ae+"\r"),Q(!1)},Ye=()=>{if(!Le)return;const Se=`claude -p "${Ce().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),Q(!1)},Je=()=>{K(!0)},Pe=()=>{if(!r?.worktreePath)return;const Ae=Py(r.worktreePath,v,w);window.open(Ae,"_blank"),K(!1)},Ge=()=>{if(!r?.repoPath)return;const Ae=Py(r.repoPath,v,w);window.open(Ae,"_blank"),K(!1)},Ke=Ae=>{r&&s.mutate({taskId:r.id,updates:{status:Ae}})},dt=()=>{r&&a.mutate({taskId:r.id,deleteLinkedWorktree:A},{onSuccess:()=>{t({to:"/tasks"})}})},Xe=Ae=>{T(Ae),Ae||O(!1)};return i?S.jsx("div",{className:"flex h-full items-center justify-center",children:S.jsx("p",{className:"text-muted-foreground",children:"Loading task..."})}):r?S.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[S.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-2",children:[S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-1.5",children:[S.jsx("h1",{className:"text-sm font-medium",children:r.title}),S.jsx("button",{type:"button",className:"p-0.5 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer",onClick:()=>E(!0),title:"Task settings",children:S.jsx(ye,{icon:Bz,size:14,strokeWidth:2})})]}),S.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[S.jsx("span",{children:r.repoName}),S.jsx(ye,{icon:K2,size:12,strokeWidth:2}),S.jsx("span",{className:"font-mono",children:r.branch}),r.prUrl&&S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"text-muted-foreground/50",children:"•"}),S.jsxs("a",{href:r.prUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-foreground hover:text-primary font-medium",onClick:Ae=>Ae.stopPropagation(),children:[S.jsx(ye,{icon:wR,size:14,strokeWidth:2}),S.jsxs("span",{children:["#",r.prUrl.match(/\/pull\/(\d+)/)?.[1]??"PR"]})]})]}),r.linearTicketUrl&&S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"text-muted-foreground/50",children:"•"}),S.jsxs("a",{href:r.linearTicketUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-foreground hover:text-primary font-medium",onClick:Ae=>Ae.stopPropagation(),title:_?.title,children:[S.jsx(ye,{icon:ym,size:14,strokeWidth:2}),S.jsx("span",{children:r.linearTicketId}),_?.status&&S.jsxs("span",{className:"text-muted-foreground text-xs",children:["(",_.status,")"]})]})]})]})]}),S.jsxs(bH,{children:[S.jsx(_H,{render:S.jsx(He,{variant:"ghost",size:"sm",className:oOe[r.status]}),children:oB[r.status]}),S.jsx(xH,{align:"end",children:S.jsx(lce,{value:r.status,onValueChange:Ke,children:Object.entries(oB).map(([Ae,Se])=>S.jsx(cce,{value:Ae,children:Se},Ae))})})]}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:pe,disabled:u.isPending||!r.worktreePath,className:"text-muted-foreground hover:text-foreground",title:"Pull from main",children:S.jsx(ye,{icon:V2,size:16,strokeWidth:2,className:u.isPending?"animate-spin":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:ae,disabled:h.isPending||!r.worktreePath,className:"text-muted-foreground hover:text-foreground",title:"Merge to main",children:S.jsx(ye,{icon:q2,size:16,strokeWidth:2,className:h.isPending?"animate-pulse":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:Ne,disabled:f.isPending||!r.repoPath,className:"text-muted-foreground hover:text-foreground",title:"Sync parent with origin",children:S.jsx(ye,{icon:Y2,size:16,strokeWidth:2,className:f.isPending?"animate-spin":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:Je,className:"text-muted-foreground hover:text-foreground",title:"Open in VS Code",children:S.jsx(ye,{icon:CR,size:16,strokeWidth:2})}),N&&S.jsx("span",{className:"text-xs text-green-600",children:"Synced!"}),I&&S.jsx("span",{className:"text-xs text-green-600",children:"Merged!"}),ne&&S.jsx("span",{className:"text-xs text-green-600",children:"Parent synced!"}),S.jsxs(sf,{open:k,onOpenChange:Xe,children:[S.jsx(of,{render:S.jsx(He,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive"}),children:S.jsx(ye,{icon:vm,size:16,strokeWidth:2})}),S.jsxs(af,{children:[S.jsxs(lf,{children:[S.jsx(uf,{children:"Delete Task"}),S.jsxs(df,{children:['This will permanently delete "',r.title,'" and close its terminal.',A&&r.worktreePath&&" The linked worktree will also be removed."," ","This action cannot be undone."]}),r.worktreePath&&S.jsxs("label",{className:"flex items-center gap-2 text-sm text-foreground",children:[S.jsx(Cm,{checked:A,onCheckedChange:Ae=>O(Ae===!0),disabled:a.isPending}),"Also delete linked worktree"]})]}),S.jsxs(cf,{children:[S.jsx(ff,{disabled:a.isPending,children:"Cancel"}),S.jsx(eH,{onClick:dt,variant:"destructive",disabled:a.isPending,children:a.isPending?"Deleting...":"Delete"})]})]})]})]}),te?S.jsxs(fl,{value:Z,onValueChange:Ae=>ee(Ae),className:"flex min-h-0 flex-1 flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{className:"w-full",children:[S.jsx(Qn,{value:"terminal",className:"flex-1",children:"Terminal"}),S.jsx(Qn,{value:"details",className:"flex-1",children:"Details"})]})}),S.jsx(dr,{value:"terminal",className:"flex-1 min-h-0",children:S.jsx(A9,{taskId:r.id,taskName:r.title,cwd:r.worktreePath,aiMode:b,description:y,startupScript:r.startupScript})}),S.jsx(dr,{value:"details",className:"flex-1 min-h-0",children:S.jsxs(fl,{value:o,onValueChange:c,className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{variant:"line",children:[S.jsxs(Qn,{value:"diff",children:[S.jsx(ye,{icon:U5,size:14,strokeWidth:2,"data-slot":"icon"}),"Diff"]}),S.jsxs(Qn,{value:"browser",children:[S.jsx(ye,{icon:W2,size:14,strokeWidth:2,"data-slot":"icon"}),"Browser"]}),S.jsxs(Qn,{value:"files",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2,"data-slot":"icon"}),"Files"]})]})}),S.jsx(dr,{value:"diff",className:"flex-1 overflow-hidden",children:S.jsx(M9,{taskId:r.id,worktreePath:r.worktreePath})}),S.jsx(dr,{value:"browser",className:"flex-1 overflow-hidden",children:S.jsx(L9,{taskId:r.id})}),S.jsx(dr,{value:"files",className:"flex-1 overflow-hidden",children:S.jsx(sB,{taskId:r.id,worktreePath:r.worktreePath})})]})})]}):S.jsxs(uc,{direction:"horizontal",className:"min-h-0 flex-1",children:[S.jsx(Xi,{defaultSize:50,minSize:30,children:S.jsx(A9,{taskId:r.id,taskName:r.title,cwd:r.worktreePath,aiMode:b,description:y,startupScript:r.startupScript})}),S.jsx(dc,{withHandle:!0}),S.jsx(Xi,{defaultSize:50,minSize:30,children:S.jsxs(fl,{value:o,onValueChange:c,className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{variant:"line",children:[S.jsxs(Qn,{value:"diff",children:[S.jsx(ye,{icon:U5,size:14,strokeWidth:2,"data-slot":"icon"}),"Diff"]}),S.jsxs(Qn,{value:"browser",children:[S.jsx(ye,{icon:W2,size:14,strokeWidth:2,"data-slot":"icon"}),"Browser"]}),S.jsxs(Qn,{value:"files",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2,"data-slot":"icon"}),"Files"]})]})}),S.jsx(dr,{value:"diff",className:"flex-1 overflow-hidden",children:S.jsx(M9,{taskId:r.id,worktreePath:r.worktreePath})}),S.jsx(dr,{value:"browser",className:"flex-1 overflow-hidden",children:S.jsx(L9,{taskId:r.id})}),S.jsx(dr,{value:"files",className:"flex-1 overflow-hidden",children:S.jsx(sB,{taskId:r.id,worktreePath:r.worktreePath})})]})})]}),S.jsx(UH,{task:r,open:x,onOpenChange:E}),S.jsx(Es,{open:X,onOpenChange:K,children:S.jsxs(ks,{className:"sm:max-w-sm",children:[S.jsxs(to,{children:[S.jsx(no,{children:"Open in VS Code"}),S.jsx(gc,{children:"Choose which folder to open"})]}),S.jsxs("div",{className:"flex flex-col gap-2 mt-4",children:[S.jsxs(He,{variant:"outline",className:"justify-start font-mono text-sm",onClick:Pe,disabled:!r.worktreePath,children:[S.jsx(ye,{icon:K2,size:16,strokeWidth:2,className:"mr-2"}),"Worktree",S.jsx("span",{className:"ml-auto text-xs text-muted-foreground truncate max-w-32",children:r.branch})]}),S.jsxs(He,{variant:"outline",className:"justify-start font-mono text-sm",onClick:Ge,disabled:!r.repoPath,children:[S.jsx(ye,{icon:is,size:16,strokeWidth:2,className:"mr-2"}),"Repository",S.jsx("span",{className:"ml-auto text-xs text-muted-foreground truncate max-w-32",children:r.repoName})]})]})]})}),S.jsx(Es,{open:D,onOpenChange:H,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Sync Failed"}),S.jsx(gc,{children:"An error occurred while syncing with upstream."})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:M}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>H(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:be,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:Re,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})}),S.jsx(Es,{open:q,onOpenChange:W,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Merge Failed"}),S.jsxs(gc,{children:["An error occurred while merging to ",r?.baseBranch||"main","."]})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:U}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>W(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:me,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:ke,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})}),S.jsx(Es,{open:V,onOpenChange:Q,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Sync Parent Failed"}),S.jsx(gc,{children:"An error occurred while syncing the parent repository with origin."})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:j}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>Q(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:we,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:Ye,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})})]}):S.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4",children:[S.jsx("p",{className:"text-muted-foreground",children:"Task not found"}),S.jsx($r,{to:"/tasks",children:S.jsx(He,{variant:"outline",children:"Back to Tasks"})})]})}const Xq=as("/repositories/$repoId")({component:lOe});function lOe(){const{repoId:e}=Xq.useParams(),t=bl(),{data:n,isLoading:r,error:i}=foe(e),s=hoe(),a=G$(),{data:o}=b0(),{data:c}=_0(),[u,h]=R.useState(""),[f,p]=R.useState(""),[v,w]=R.useState(""),[_,g]=R.useState(!1),[b,y]=R.useState(!1);R.useEffect(()=>{n&&(h(n.displayName),p(n.startupScript||""),w(n.copyFiles||""),g(!1))},[n]),R.useEffect(()=>{if(n){const T=u!==n.displayName||f!==(n.startupScript||"")||v!==(n.copyFiles||"");g(T)}},[u,f,v,n]);const x=()=>{n&&s.mutate({id:n.id,updates:{displayName:u.trim()||n.path.split("/").pop()||"repo",startupScript:f.trim()||null,copyFiles:v.trim()||null}})},E=async()=>{n&&(await a.mutateAsync(n.id),t({to:"/repositories"}))},k=()=>{if(!n)return;const T=Py(n.path,o,c);window.open(T,"_blank")};return r?S.jsx("div",{className:"flex h-full items-center justify-center",children:S.jsx(ye,{icon:An,size:24,strokeWidth:2,className:"animate-spin text-muted-foreground"})}):i||!n?S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsx("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-4 py-2",children:S.jsxs($r,{to:"/repositories",className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[S.jsx(ye,{icon:F5,size:16,strokeWidth:2}),"Repositories"]})}),S.jsx("div",{className:"flex flex-1 items-center justify-center",children:S.jsxs("div",{className:"flex items-center gap-3 text-destructive",children:[S.jsx(ye,{icon:tf,size:20,strokeWidth:2}),S.jsx("span",{className:"text-sm",children:"Repository not found"})]})})]}):S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs($r,{to:"/repositories",className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[S.jsx(ye,{icon:F5,size:16,strokeWidth:2}),"Repositories"]}),S.jsx("span",{className:"text-muted-foreground",children:"/"}),S.jsx("span",{className:"text-sm font-medium",children:n.displayName})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:()=>y(!0),className:"text-muted-foreground hover:text-foreground",title:"Start Task",children:S.jsx(ye,{icon:ym,size:14,strokeWidth:2})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:k,className:"text-muted-foreground hover:text-foreground",title:"Open in VS Code",children:S.jsx(ye,{icon:CR,size:14,strokeWidth:2})}),S.jsxs(sf,{children:[S.jsxs(of,{render:S.jsx(He,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-destructive"}),children:[S.jsx(ye,{icon:vm,size:14,strokeWidth:2,"data-slot":"icon"}),"Delete"]}),S.jsxs(af,{children:[S.jsxs(lf,{children:[S.jsx(uf,{children:"Delete Repository"}),S.jsxs(df,{children:['This will remove "',n.displayName,'" from Vibora. The actual repository files will not be affected.']})]}),S.jsxs(cf,{children:[S.jsx(ff,{children:"Cancel"}),S.jsx(He,{variant:"destructive",onClick:E,children:"Delete"})]})]})]}),S.jsx(He,{size:"sm",onClick:x,disabled:!_||s.isPending,children:s.isPending?"Saving...":"Save"})]})]}),S.jsx("div",{className:"flex-1 overflow-auto p-4",children:S.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[S.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2}),S.jsx("span",{className:"font-mono",children:n.path})]}),S.jsxs(xm,{children:[S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"displayName",children:"Display Name"}),S.jsx(Gt,{id:"displayName",value:u,onChange:T=>h(T.target.value),placeholder:n.path.split("/").pop()||"My Project"})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"startupScript",children:"Startup Script"}),S.jsx(TR,{id:"startupScript",value:f,onChange:T=>p(T.target.value),placeholder:"npm install && npm run dev",rows:3}),S.jsx(Ga,{children:"Command to run in the terminal when creating a worktree."})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"copyFiles",children:"Copy Files"}),S.jsx(Gt,{id:"copyFiles",value:v,onChange:T=>w(T.target.value),placeholder:".env, config.local.json"}),S.jsx(Ga,{children:"Comma-separated glob patterns for files to copy into new worktrees."})]})]})]})}),S.jsx(VR,{open:b,onOpenChange:y,defaultRepository:n})]})}const cOe=dle.update({id:"/",path:"/",getParentRoute:()=>Is}),uOe=ble.update({id:"/worktrees/",path:"/worktrees/",getParentRoute:()=>Is}),dOe=xce.update({id:"/terminals/",path:"/terminals/",getParentRoute:()=>Is}),fOe=kue.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Is}),hOe=Oue.update({id:"/settings/",path:"/settings/",getParentRoute:()=>Is}),pOe=zue.update({id:"/review/",path:"/review/",getParentRoute:()=>Is}),mOe=Hue.update({id:"/repositories/",path:"/repositories/",getParentRoute:()=>Is}),gOe=XEe.update({id:"/monitoring/",path:"/monitoring/",getParentRoute:()=>Is}),vOe=Yq.update({id:"/tasks/$taskId",path:"/tasks/$taskId",getParentRoute:()=>Is}),yOe=Xq.update({id:"/repositories/$repoId",path:"/repositories/$repoId",getParentRoute:()=>Is}),bOe={IndexRoute:cOe,RepositoriesRepoIdRoute:yOe,TasksTaskIdRoute:vOe,MonitoringIndexRoute:gOe,RepositoriesIndexRoute:mOe,ReviewIndexRoute:pOe,SettingsIndexRoute:hOe,TasksIndexRoute:fOe,TerminalsIndexRoute:dOe,WorktreesIndexRoute:uOe},_Oe=Is._addFileChildren(bOe)._addFileTypes(),Qq=R.createContext(null);function xOe({children:e}){const[t,n]=R.useState(!1),[r,i]=R.useState(!0),[s,a]=R.useState(!1),[o,c]=R.useState(!1),u=R.useCallback(async()=>{try{const v=await fetch("/api/auth/check");if(v.ok){const w=await v.json();a(w.authRequired),n(w.authenticated),w.authRequired&&!w.authenticated&&c(!0)}}catch{a(!1),n(!0)}finally{i(!1)}},[]);R.useEffect(()=>{u()},[u]),R.useEffect(()=>{const v=()=>{s&&(n(!1),c(!0))};return window.addEventListener("vibora:auth-required",v),()=>window.removeEventListener("vibora:auth-required",v)},[s]);const h=R.useCallback(async(v,w)=>{const _=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:v,password:w})});if(!_.ok){const g=await _.json();throw new Error(g.error||"Login failed")}n(!0),c(!1)},[]),f=R.useCallback(async()=>{await fetch("/api/auth/logout",{method:"POST"}),n(!1),c(!0)},[]),p=R.useMemo(()=>({isAuthenticated:t,isLoading:r,authRequired:s,showLoginModal:o,setShowLoginModal:c,login:h,logout:f}),[t,r,s,o,h,f]);return S.jsx(Qq.Provider,{value:p,children:e})}function SOe(){const e=R.useContext(Qq);if(!e)throw new Error("useAuth must be used within AuthProvider");return e}function wOe(){const{t:e}=dn("common"),{showLoginModal:t,login:n}=SOe(),[r,i]=R.useState(""),[s,a]=R.useState(""),[o,c]=R.useState(null),[u,h]=R.useState(!1),f=R.useCallback(async v=>{v.preventDefault(),c(null),h(!0);try{await n(r,s)}catch(w){c(w instanceof Error?w.message:e("auth.loginFailed"))}finally{h(!1)}},[r,s,n,e]),p=v=>{v.key==="Enter"&&!u&&r&&s&&(v.preventDefault(),f(v))};return S.jsx(Es,{open:t,children:S.jsxs(ks,{showCloseButton:!1,className:"sm:max-w-sm",onKeyDown:p,children:[S.jsx(to,{children:S.jsx(no,{children:e("auth.loginTitle")})}),S.jsxs("form",{onSubmit:f,children:[S.jsxs(xm,{className:"mt-4",children:[S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"login-username",children:e("auth.username")}),S.jsx(Gt,{id:"login-username",type:"text",value:r,onChange:v=>i(v.target.value),autoComplete:"username",autoFocus:!0,required:!0})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"login-password",children:e("auth.password")}),S.jsx(Gt,{id:"login-password",type:"password",value:s,onChange:v=>a(v.target.value),autoComplete:"current-password",required:!0})]}),o&&S.jsx("p",{className:"text-sm text-red-500",children:o})]}),S.jsx(al,{className:"mt-4",children:S.jsx(He,{type:"submit",disabled:u||!r||!s,children:e(u?"status.loggingIn":"auth.login")})})]})]})})}const COe=new hX({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}}),EOe=$Y({routeTree:_Oe});cK.createRoot(document.getElementById("root")).render(S.jsx(R.StrictMode,{children:S.jsx(pX,{client:COe,children:S.jsxs(xOe,{children:[S.jsx(UY,{router:EOe}),S.jsx(wOe,{})]})})}));
116
+ `}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(const x of _){let E={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};const k=jT(x.htmlStyle||Db(x));k&&(E.properties.style=k);for(const T of i)E=T?.span?.call(v,E,g+1,y,b,x)||E;o==="inline"?a.children.push(E):o==="classic"&&b.children.push(E),y+=x.content.length}if(o==="classic"){for(const x of i)b=x?.line?.call(v,b,g+1)||b;p.push(b),s.push(b)}else o==="inline"&&p.push(b)}),o==="classic"){for(const _ of i)f=_?.code?.call(v,f)||f;h.children.push(f);for(const _ of i)h=_?.pre?.call(v,h)||h;a.children.push(h)}else if(o==="inline"){const _=[];let g={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const x of a.children)x.type==="element"&&x.tagName==="br"?(_.push(g),g={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(x.type==="element"||x.type==="text")&&g.children.push(x);_.push(g);let y={type:"element",tagName:"code",properties:{},children:_};for(const x of i)y=x?.code?.call(v,y)||y;a.children=[];for(let x=0;x<y.children.length;x++){x>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const E=y.children[x];E.type==="element"&&a.children.push(...E.children)}}let w=a;for(const _ of i)w=_?.root?.call(v,w)||w;return r&&r_(w,r),w}function bRe(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((s,a)=>{const c=!(s.fontStyle&&(s.fontStyle&zr.Underline||s.fontStyle&zr.Strikethrough));c&&s.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=s.offset),r+=s.content):r?(c?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=void 0,r=""):n.push(s)}),n})}function _Re(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,a]=r;if(!i&&!a)return n;const o=[{...n,offset:n.offset+i.length,content:s}];return i&&o.unshift({content:i,offset:n.offset}),a&&o.push({content:a,offset:n.offset+i.length+s.length}),o}))}function xRe(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],s=jT(i.htmlStyle||Db(i)),a=jT(r.htmlStyle||Db(r)),o=i.fontStyle&&(i.fontStyle&zr.Underline||i.fontStyle&zr.Strikethrough),c=r.fontStyle&&(r.fontStyle&zr.Underline||r.fontStyle&zr.Strikethrough);!o&&!c&&s===a?i.content+=r.content:n.push({...r})}return n})}const SRe=FTe;function wRe(e,t,n){const r={meta:{},options:n,codeToHast:(s,a)=>Bb(e,s,a),codeToTokens:(s,a)=>Ib(e,s,a)};let i=SRe(Bb(e,t,n,r));for(const s of Nb(n))i=s.postprocess?.call(r,i,n)||i;return i}const tB={light:"#333333",dark:"#bbbbbb"},nB={light:"#fffffe",dark:"#1e1e1e"},rB="__shiki_resolved";function yA(e){if(e?.[rB])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const o=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;o?.settings?.foreground&&(r=o.settings.foreground),o?.settings?.background&&(n=o.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?tB.light:tB.dark),n||(n=t.type==="light"?nB.light:nB.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const s=new Map;function a(o){if(s.has(o))return s.get(o);i+=1;const c=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?a(o):(s.set(o,c),c)}t.settings=t.settings.map(o=>{const c=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),u=o.settings?.background&&!o.settings.background.startsWith("#");if(!c&&!u)return o;const h={...o,settings:{...o.settings}};if(c){const f=a(o.settings.foreground);t.colorReplacements[f]=o.settings.foreground,h.settings.foreground=f}if(u){const f=a(o.settings.background);t.colorReplacements[f]=o.settings.background,h.settings.background=f}return h});for(const o of Object.keys(t.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!t.colors[o]?.startsWith("#")){const c=a(t.colors[o]);t.colorReplacements[c]=t.colors[o],t.colors[o]=c}return Object.defineProperty(t,rB,{enumerable:!1,writable:!1,value:!0}),t}async function Vq(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Bq(t)).map(async t=>await Iq(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function qq(e){return(await Promise.all(e.map(async n=>zq(n)?null:yA(await Iq(n))))).filter(n=>!!n)}let CRe=3;function ERe(e,t=3){t>CRe||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ed=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Wq(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ed(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class kRe extends Rke{constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=yA(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Ob.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Wq(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(c=>r.map(([u])=>u).includes(c)):!1).filter(s=>!r.includes(s));throw new ed(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class TRe{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Bh=0;function RRe(e){Bh+=1,e.warnings!==!1&&Bh>=10&&Bh%10===0&&console.warn(`[Shiki] ${Bh} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ed("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(yA),i=new TRe(e.engine,n),s=new kRe(i,r,n,e.langAlias);let a;function o(x){return Wq(x,e.langAlias)}function c(x){b();const E=s.getGrammar(typeof x=="string"?x:x.name);if(!E)throw new ed(`Language \`${x}\` not found, you may need to load it first`);return E}function u(x){if(x==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const E=s.getTheme(x);if(!E)throw new ed(`Theme \`${x}\` not found, you may need to load it first`);return E}function h(x){b();const E=u(x);a!==x&&(s.setTheme(E),a=x);const k=s.getColorMap();return{theme:E,colorMap:k}}function f(){return b(),s.getLoadedThemes()}function p(){return b(),s.getLoadedLanguages()}function v(...x){b(),s.loadLanguages(x.flat(1))}async function w(...x){return v(await Vq(x))}function _(...x){b();for(const E of x.flat(1))s.loadTheme(E)}async function g(...x){return b(),_(await qq(x))}function b(){if(t)throw new ed("Shiki instance has been disposed")}function y(){t||(t=!0,s.dispose(),Bh-=1)}return{setTheme:h,getTheme:u,getLanguage:c,getLoadedThemes:f,getLoadedLanguages:p,resolveLangAlias:o,loadLanguage:w,loadLanguageSync:v,loadTheme:g,loadThemeSync:_,dispose:y,[Symbol.dispose]:y}}async function ORe(e){e.engine||ERe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([qq(e.themes||[]),Vq(e.langs||[]),e.engine]);return RRe({...e,themes:t,langs:n,engine:r})}async function ARe(e){const t=await ORe(e);return{getLastGrammarState:(...n)=>dRe(t,...n),codeToTokensBase:(n,r)=>gA(t,n,r),codeToTokensWithThemes:(n,r)=>Uq(t,n,r),codeToTokens:(n,r)=>Ib(t,n,r),codeToHast:(n,r)=>Bb(t,n,r),codeToHtml:(n,r)=>wRe(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function PRe(e){const t=e.langs,n=e.themes,r=e.engine;async function i(s){function a(f){if(typeof f=="string"){if(f=s.langAlias?.[f]||f,Bq(f))return[];const p=t[f];if(!p)throw new er(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return p}return f}function o(f){if(zq(f))return"none";if(typeof f=="string"){const p=n[f];if(!p)throw new er(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return p}return f}const c=(s.themes??[]).map(f=>o(f)),u=(s.langs??[]).map(f=>a(f)),h=await ARe({engine:s.engine??r(),...s,themes:c,langs:u});return{...h,loadLanguage(...f){return h.loadLanguage(...f.map(a))},loadTheme(...f){return h.loadTheme(...f.map(o))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}const Gq=[{id:"abap",name:"ABAP",import:(()=>se(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>se(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>se(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>se(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>se(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>se(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>se(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>se(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>se(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>se(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>se(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>se(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>se(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>se(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>se(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>se(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>se(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>se(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>se(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>se(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>se(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>se(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>se(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>se(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>se(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>se(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>se(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>se(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>se(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>se(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>se(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>se(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>se(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>se(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>se(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>se(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>se(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>se(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>se(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>se(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>se(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>se(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>se(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>se(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>se(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>se(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>se(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>se(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>se(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>se(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>se(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>se(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>se(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>se(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>se(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>se(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>se(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>se(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>se(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>se(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>se(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>se(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>se(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>se(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>se(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>se(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>se(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>se(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>se(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>se(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>se(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>se(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>se(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>se(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>se(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>se(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>se(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>se(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>se(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>se(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>se(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>se(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>se(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>se(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>se(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>se(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>se(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>se(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>se(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>se(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>se(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>se(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>se(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>se(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>se(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>se(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>se(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>se(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>se(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>se(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>se(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>se(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>se(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>se(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>se(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>se(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>se(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>se(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>se(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>se(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>se(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>se(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>se(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>se(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>se(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>se(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>se(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>se(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>se(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>se(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>se(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>se(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>se(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>se(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>se(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>se(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>se(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>se(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>se(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>se(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>se(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>se(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>se(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>se(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>se(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>se(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>se(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>se(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>se(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>se(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>se(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>se(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>se(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>se(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>se(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>se(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>se(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>se(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>se(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>se(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>se(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>se(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>se(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>se(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>se(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>se(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>se(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>se(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>se(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>se(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>se(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>se(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>se(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>se(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>se(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>se(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>se(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>se(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>se(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>se(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>se(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>se(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>se(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>se(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>se(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>se(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>se(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>se(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>se(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>se(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>se(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>se(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>se(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>se(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>se(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>se(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>se(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>se(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>se(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>se(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>se(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>se(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>se(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>se(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>se(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>se(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>se(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>se(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>se(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>se(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>se(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>se(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>se(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>se(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>se(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>se(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>se(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>se(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>se(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>se(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>se(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>se(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>se(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>se(()=>import("./vue-vine-8moa0y9V.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>se(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>se(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>se(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>se(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>se(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>se(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>se(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>se(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>se(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>se(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>se(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>se(()=>import("./zig-VOosw3JB.js"),[]))}],MRe=Object.fromEntries(Gq.map(e=>[e.id,e.import])),LRe=Object.fromEntries(Gq.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),jRe={...MRe,...LRe},DRe=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>se(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>se(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>se(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>se(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>se(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>se(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>se(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>se(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>se(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>se(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>se(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>se(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>se(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>se(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>se(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>se(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>se(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>se(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>se(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>se(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>se(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>se(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>se(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>se(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>se(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>se(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>se(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>se(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>se(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>se(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>se(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>se(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>se(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>se(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>se(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>se(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>se(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>se(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>se(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>se(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>se(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>se(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>se(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>se(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>se(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>se(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>se(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>se(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>se(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>se(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>se(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>se(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>se(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>se(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>se(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>se(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>se(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>se(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],NRe=Object.fromEntries(DRe.map(e=>[e.id,e.import]));class bA extends Error{constructor(t){super(t),this.name="ShikiError"}}function IRe(){return 2147483648}function BRe(){return typeof performance<"u"?performance.now():Date.now()}const zRe=(e,t)=>e+(t-e%t)%t;async function $Re(e){let t,n;const r={};function i(v){n=v,r.HEAPU8=new Uint8Array(v),r.HEAPU32=new Uint32Array(v)}function s(v,w,_){r.HEAPU8.copyWithin(v,w,w+_)}function a(v){try{return t.grow(v-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function o(v){const w=r.HEAPU8.length;v=v>>>0;const _=IRe();if(v>_)return!1;for(let g=1;g<=4;g*=2){let b=w*(1+.2/g);b=Math.min(b,v+100663296);const y=Math.min(_,zRe(Math.max(v,b),65536));if(a(y))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(v,w,_=1024){const g=w+_;let b=w;for(;v[b]&&!(b>=g);)++b;if(b-w>16&&v.buffer&&c)return c.decode(v.subarray(w,b));let y="";for(;w<b;){let x=v[w++];if(!(x&128)){y+=String.fromCharCode(x);continue}const E=v[w++]&63;if((x&224)===192){y+=String.fromCharCode((x&31)<<6|E);continue}const k=v[w++]&63;if((x&240)===224?x=(x&15)<<12|E<<6|k:x=(x&7)<<18|E<<12|k<<6|v[w++]&63,x<65536)y+=String.fromCharCode(x);else{const T=x-65536;y+=String.fromCharCode(55296|T>>10,56320|T&1023)}}return y}function h(v,w){return v?u(r.HEAPU8,v,w):""}const f={emscripten_get_now:BRe,emscripten_memcpy_big:s,emscripten_resize_heap:o,fd_write:()=>0};async function p(){const w=await e({env:f,wasi_snapshot_preview1:f});t=w.memory,i(t.buffer),Object.assign(r,w),r.UTF8ToString=h}return await p(),r}var HRe=Object.defineProperty,FRe=(e,t,n)=>t in e?HRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fr=(e,t,n)=>FRe(e,typeof t!="symbol"?t+"":t,n);let br=null;function URe(e){throw new bA(e.UTF8ToString(e.getLastOnigError()))}class i_{constructor(t){fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16Value"),fr(this,"utf8Value"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16");const n=t.length,r=i_._utf8ByteLength(t),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const o=new Uint8Array(r);let c=0;for(let u=0;u<n;u++){const h=t.charCodeAt(u);let f=h,p=!1;if(h>=55296&&h<=56319&&u+1<n){const v=t.charCodeAt(u+1);v>=56320&&v<=57343&&(f=(h-55296<<10)+65536|v-56320,p=!0)}i&&(s[u]=c,p&&(s[u+1]=c),f<=127?a[c+0]=u:f<=2047?(a[c+0]=u,a[c+1]=u):f<=65535?(a[c+0]=u,a[c+1]=u,a[c+2]=u):(a[c+0]=u,a[c+1]=u,a[c+2]=u,a[c+3]=u)),f<=127?o[c++]=f:f<=2047?(o[c++]=192|(f&1984)>>>6,o[c++]=128|(f&63)>>>0):f<=65535?(o[c++]=224|(f&61440)>>>12,o[c++]=128|(f&4032)>>>6,o[c++]=128|(f&63)>>>0):(o[c++]=240|(f&1835008)>>>18,o[c++]=128|(f&258048)>>>12,o[c++]=128|(f&4032)>>>6,o[c++]=128|(f&63)>>>0),p&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const s=t.charCodeAt(r);let a=s,o=!1;if(s>=55296&&s<=56319&&r+1<i){const c=t.charCodeAt(r+1);c>=56320&&c<=57343&&(a=(s-55296<<10)+65536|c-56320,o=!0)}a<=127?n+=1:a<=2047?n+=2:a<=65535?n+=3:n+=4,o&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const s_=class Xs{constructor(t){if(fr(this,"id",++Xs.LAST_ID),fr(this,"_onigBinding"),fr(this,"content"),fr(this,"utf16Length"),fr(this,"utf8Length"),fr(this,"utf16OffsetToUtf8"),fr(this,"utf8OffsetToUtf16"),fr(this,"ptr"),!br)throw new bA("Must invoke loadWasm first.");this._onigBinding=br,this.content=t;const n=new i_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xs._sharedPtrInUse?(Xs._sharedPtr||(Xs._sharedPtr=br.omalloc(1e4)),Xs._sharedPtrInUse=!0,br.HEAPU8.set(n.utf8Value,Xs._sharedPtr),this.ptr=Xs._sharedPtr):this.ptr=n.createString(br)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Xs._sharedPtr?Xs._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};fr(s_,"LAST_ID",0);fr(s_,"_sharedPtr",0);fr(s_,"_sharedPtrInUse",!1);let Kq=s_;class VRe{constructor(t){if(fr(this,"_onigBinding"),fr(this,"_ptr"),!br)throw new bA("Must invoke loadWasm first.");const n=[],r=[];for(let o=0,c=t.length;o<c;o++){const u=new i_(t[o]);n[o]=u.createString(br),r[o]=u.utf8Length}const i=br.omalloc(4*t.length);br.HEAPU32.set(n,i/4);const s=br.omalloc(4*t.length);br.HEAPU32.set(r,s/4);const a=br.createOnigScanner(i,s,t.length);for(let o=0,c=t.length;o<c;o++)br.ofree(n[o]);br.ofree(s),br.ofree(i),a===0&&URe(br),this._onigBinding=br,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new Kq(t);const s=this._findNextMatchSync(t,n,!1,i);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(a===0)return null;const o=s.HEAPU32;let c=a/4;const u=o[c++],h=o[c++],f=[];for(let p=0;p<h;p++){const v=t.convertUtf8OffsetToUtf16(o[c++]),w=t.convertUtf8OffsetToUtf16(o[c++]);f[p]={start:v,end:w,length:w-v}}return{index:u,captureIndices:f}}}function qRe(e){return typeof e.instantiator=="function"}function WRe(e){return typeof e.default=="function"}function GRe(e){return typeof e.data<"u"}function KRe(e){return typeof Response<"u"&&e instanceof Response}function YRe(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Uv;function XRe(e){if(Uv)return Uv;async function t(){br=await $Re(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),qRe(r)?r=await r.instantiator(n):WRe(r)?r=await r.default(n):(GRe(r)&&(r=r.data),KRe(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await QRe(r)(n):r=await ZRe(r)(n):YRe(r)?r=await f2(r)(n):r instanceof WebAssembly.Module?r=await f2(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await f2(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Uv=t(),Uv}function f2(e){return t=>WebAssembly.instantiate(e,t)}function QRe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function ZRe(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function JRe(e){return e&&await XRe(e),{createScanner(t){return new VRe(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Kq(t)}}}const eOe=PRe({langs:jRe,themes:NRe,engine:()=>JRe(se(()=>import("./wasm-CG6Dc4jp.js"),[]))});let Vv=null,qv=null;const tOe=["typescript","tsx","javascript","jsx","json","css","html","markdown","yaml","toml","bash","shell","python","rust","go","sql","diff","plaintext"];async function nOe(){return Vv||qv||(qv=eOe({themes:["github-dark"],langs:tOe}),Vv=await qv,Vv)}async function rOe(e,t){const n=await nOe(),r=iOe(t);if(!n.getLoadedLanguages().includes(r))try{await n.loadLanguage(r)}catch{return n.codeToHtml(e,{lang:"plaintext",theme:"github-dark"})}return n.codeToHtml(e,{lang:r,theme:"github-dark"})}function iOe(e){return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rb:"ruby",rs:"rust",sh:"bash",yml:"yaml",md:"markdown"}[e]||e}function sOe(e){const t=e.split(".").pop()?.toLowerCase()||"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"html",md:"markdown",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",bash:"bash",zsh:"bash",py:"python",rs:"rust",go:"go",sql:"sql",diff:"diff",txt:"plaintext"}[t]||"plaintext"}function iB({filePath:e,content:t,isLoading:n,error:r,onClose:i}){const[s,a]=R.useState(null),[o,c]=R.useState(!1),[u,h]=R.useState(!0);if(R.useEffect(()=>{if(!t||!e){a(null);return}if(t.mimeType.startsWith("image/")||t.mimeType==="application/octet-stream"){a(null);return}c(!0);const p=sOe(e);rOe(t.content,p).then(v=>{a(v),c(!1)}).catch(()=>{a(null),c(!1)})},[t,e]),!e)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Select a file to view"});if(n)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Loading file..."});if(r)return S.jsx("div",{className:"flex h-full items-center justify-center text-destructive text-sm",children:r.message});if(!t)return S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Unable to load file"});if(t.mimeType==="application/octet-stream")return S.jsxs("div",{className:"flex h-full flex-col items-center justify-center text-muted-foreground text-sm gap-2",children:[S.jsx("p",{children:"Binary file"}),S.jsxs("p",{className:"text-xs",children:[(t.size/1024).toFixed(1)," KB"]})]});if(t.mimeType.startsWith("image/"))return S.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[S.jsxs("div",{className:"flex shrink-0 items-center justify-between px-2 py-1.5 bg-muted/50 border-b border-border text-xs",children:[S.jsx("span",{className:"text-muted-foreground truncate",title:e,children:e.split("/").pop()||e}),S.jsx("button",{onClick:i,className:"p-1 text-muted-foreground hover:text-foreground rounded hover:bg-muted/50",title:"Close file",children:S.jsx(ye,{icon:Li,size:14,strokeWidth:2})})]}),S.jsx("div",{className:"flex flex-1 items-center justify-center p-4 bg-[#0d1117]",children:S.jsx("img",{src:t.content,alt:e,className:"max-w-full max-h-full object-contain"})})]});const f=e.split("/").pop()||e;return S.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[S.jsxs("div",{className:"flex shrink-0 items-center gap-3 px-2 py-1.5 bg-muted/50 border-b border-border text-xs",children:[S.jsx("span",{className:"text-muted-foreground truncate flex-1",title:e,children:f}),t.truncated&&S.jsxs("span",{className:"text-yellow-500",children:["Truncated (",t.lineCount.toLocaleString()," lines)"]}),S.jsxs("span",{className:"text-muted-foreground",children:[(t.size/1024).toFixed(1)," KB"]}),S.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer text-muted-foreground hover:text-foreground",children:[S.jsx("input",{type:"checkbox",checked:u,onChange:p=>h(p.target.checked),className:"w-3 h-3"}),"Wrap"]}),S.jsx("button",{onClick:i,className:"p-1 text-muted-foreground hover:text-foreground rounded hover:bg-muted/50",title:"Close file",children:S.jsx(ye,{icon:Li,size:14,strokeWidth:2})})]}),S.jsx(xd,{className:"flex-1 min-h-0",children:o?S.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm",children:"Highlighting..."}):s?S.jsx("div",{className:ze("text-xs [&_pre]:!bg-transparent [&_pre]:!m-0 [&_pre]:!p-2 [&_code]:!bg-transparent",u?"[&_pre]:whitespace-pre-wrap [&_pre]:break-all":"[&_pre]:whitespace-pre"),dangerouslySetInnerHTML:{__html:s}}):S.jsx("pre",{className:ze("p-2 font-mono text-xs",u?"whitespace-pre-wrap break-all":"whitespace-pre"),children:t.content})})]})}function sB({taskId:e,worktreePath:t}){const{selectedFile:n,expandedDirs:r,setSelectedFile:i,toggleDir:s,collapseAll:a}=z2e(e),[o,c]=R.useState("tree"),u=x0(),{data:h,isLoading:f,error:p}=Qse(t),{data:v,isLoading:w,error:_}=Zse(t,n),g=R.useCallback(x=>{i(x),window.matchMedia("(max-width: 639px)").matches&&c("content")},[i]),b=R.useCallback(()=>{i(null),window.matchMedia("(max-width: 639px)").matches&&c("tree")},[i]),y=R.useCallback(x=>{s(x)},[s]);return t?f?S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"Loading files..."}):p?S.jsx("div",{className:"flex h-full items-center justify-center text-destructive text-sm",children:p.message}):u?S.jsxs(fl,{value:o,onValueChange:x=>c(x),className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{className:"w-full",children:[S.jsx(Qn,{value:"tree",className:"flex-1",children:"Files"}),S.jsx(Qn,{value:"content",className:"flex-1",children:"Content"})]})}),S.jsx(dr,{value:"tree",className:"flex-1 min-h-0 overflow-hidden",children:S.jsx(xd,{className:"h-full",children:S.jsx(j9,{entries:h?.entries||[],selectedFile:n,expandedDirs:r,onSelectFile:g,onToggleDir:y,onCollapseAll:a})})}),S.jsx(dr,{value:"content",className:"flex-1 min-h-0 overflow-hidden",children:S.jsx(iB,{filePath:n,content:v??null,isLoading:w,error:_,onClose:b})})]}):S.jsxs(uc,{direction:"horizontal",className:"h-full",children:[S.jsx(Xi,{defaultSize:65,minSize:30,className:"overflow-hidden",children:S.jsx(iB,{filePath:n,content:v??null,isLoading:w,error:_,onClose:b})}),S.jsx(dc,{withHandle:!0}),S.jsx(Xi,{defaultSize:35,minSize:15,children:S.jsx(xd,{className:"h-full",children:S.jsx(j9,{entries:h?.entries||[],selectedFile:n,expandedDirs:r,onSelectFile:g,onToggleDir:y,onCollapseAll:a})})})]}):S.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground text-sm",children:"No worktree selected"})}const Yq=as("/tasks/$taskId")({component:aOe}),oB={IN_PROGRESS:"In Progress",IN_REVIEW:"In Review",DONE:"Done",CANCELED:"Canceled"},oOe={IN_PROGRESS:"bg-blue-500/20 text-blue-500",IN_REVIEW:"bg-yellow-500/20 text-yellow-600",DONE:"bg-green-500/20 text-green-600",CANCELED:"bg-red-500/20 text-red-500"};function aOe(){const{taskId:e}=Yq.useParams(),t=bl(),n=VY(),{data:r,isLoading:i}=F$(e),s=$R(),a=Wse(),{tab:o,setTab:c}=o2e(e),u=SH(),h=wH(),f=CH(),p=EH(),{data:v}=b0(),{data:w}=_0(),{data:_}=a2e(r?.linearTicketId??null),g=n.state,b=g?.aiMode&&g?.description?g.aiMode:void 0,y=g?.description,[x,E]=R.useState(!1),[k,T]=R.useState(!1),[A,O]=R.useState(!1),[M,B]=R.useState(null),[D,H]=R.useState(!1),[N,F]=R.useState(!1),[U,$]=R.useState(null),[q,W]=R.useState(!1),[I,G]=R.useState(!1),[j,z]=R.useState(null),[V,Q]=R.useState(!1),[ne,re]=R.useState(!1),[X,K]=R.useState(!1),[Z,ee]=R.useState("terminal"),te=x0(),{terminals:ie,writeToTerminal:ue}=ZR();R.useEffect(()=>{if(N){const Ae=setTimeout(()=>F(!1),3e3);return()=>clearTimeout(Ae)}},[N]),R.useEffect(()=>{if(I){const Ae=setTimeout(()=>G(!1),3e3);return()=>clearTimeout(Ae)}},[I]),R.useEffect(()=>{if(ne){const Ae=setTimeout(()=>re(!1),3e3);return()=>clearTimeout(Ae)}},[ne]);const pe=async()=>{if(!(!r?.repoPath||!r?.worktreePath)){B(null),F(!1);try{await u.mutateAsync({repoPath:r.repoPath,worktreePath:r.worktreePath,baseBranch:r.baseBranch}),F(!0)}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Sync failed";B(Se),H(!0)}}},he=()=>{if(!r||!M)return"";const Ae=r.baseBranch||"main";return`Fix the git sync issue. Worktree: ${r.worktreePath} | Parent repo: ${r.repoPath} | Branch: ${r.branch} | Base: ${Ae} | Error: ${M} | Steps: 1) Check git status 2) Resolve conflicts or commit/stash changes 3) Rebase onto the parent repo's ${Ae} branch`},de=()=>{if(!r||!U)return"";const Ae=r.baseBranch||"main";return`Fix the git merge issue. Worktree: ${r.worktreePath} | Parent repo: ${r.repoPath} | Branch: ${r.branch} | Base: ${Ae} | Error: ${U} | Steps: 1) Check git status in both worktree and parent 2) Resolve any conflicts 3) Ensure worktree changes are committed 4) Retry merge to ${Ae} 5) On successful merge, run: vibora tasks move ${r.id} --status done`},ae=async()=>{if(!(!r?.repoPath||!r?.worktreePath)){$(null),G(!1);try{await h.mutateAsync({repoPath:r.repoPath,worktreePath:r.worktreePath,baseBranch:r.baseBranch}),G(!0),p.mutate(r.id),s.mutate({taskId:r.id,updates:{status:"DONE"}})}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Merge failed";$(Se),W(!0)}}},Ne=async()=>{if(r?.repoPath){z(null),re(!1);try{await f.mutateAsync({repoPath:r.repoPath,baseBranch:r.baseBranch}),re(!0)}catch(Ae){const Se=Ae instanceof Error?Ae.message:"Sync parent failed";z(Se),Q(!0)}}},Ce=()=>{if(!r||!j)return"";const Ae=r.baseBranch||"main";return`Fix the git sync parent issue. Parent repo: ${r.repoPath} | Base branch: ${Ae} | Error: ${j} | Steps: 1) Check git status in parent repo 2) Resolve any local changes or divergence 3) Fetch and merge/rebase from origin/${Ae}`},Le=ie.find(Ae=>Ae.cwd===r?.worktreePath),be=()=>{if(!Le)return;const Ae=he();ue(Le.id,Ae+"\r"),H(!1)},Re=()=>{if(!Le)return;const Se=`claude -p "${he().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),H(!1)},me=()=>{if(!Le)return;const Ae=de();ue(Le.id,Ae+"\r"),W(!1)},ke=()=>{if(!Le)return;const Se=`claude -p "${de().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),W(!1)},we=()=>{if(!Le)return;const Ae=Ce();ue(Le.id,Ae+"\r"),Q(!1)},Ye=()=>{if(!Le)return;const Se=`claude -p "${Ce().replace(/"/g,'\\"')}" --dangerously-skip-permissions\r`;ue(Le.id,Se),Q(!1)},Je=()=>{K(!0)},Pe=()=>{if(!r?.worktreePath)return;const Ae=Py(r.worktreePath,v,w);window.open(Ae,"_blank"),K(!1)},Ge=()=>{if(!r?.repoPath)return;const Ae=Py(r.repoPath,v,w);window.open(Ae,"_blank"),K(!1)},Ke=Ae=>{r&&s.mutate({taskId:r.id,updates:{status:Ae}})},dt=()=>{r&&a.mutate({taskId:r.id,deleteLinkedWorktree:A},{onSuccess:()=>{t({to:"/tasks"})}})},Xe=Ae=>{T(Ae),Ae||O(!1)};return i?S.jsx("div",{className:"flex h-full items-center justify-center",children:S.jsx("p",{className:"text-muted-foreground",children:"Loading task..."})}):r?S.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[S.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-2",children:[S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-1.5",children:[S.jsx("h1",{className:"text-sm font-medium",children:r.title}),S.jsx("button",{type:"button",className:"p-0.5 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer",onClick:()=>E(!0),title:"Task settings",children:S.jsx(ye,{icon:Bz,size:14,strokeWidth:2})})]}),S.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[S.jsx("span",{children:r.repoName}),S.jsx(ye,{icon:K2,size:12,strokeWidth:2}),S.jsx("span",{className:"font-mono",children:r.branch}),r.prUrl&&S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"text-muted-foreground/50",children:"•"}),S.jsxs("a",{href:r.prUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-foreground hover:text-primary font-medium",onClick:Ae=>Ae.stopPropagation(),children:[S.jsx(ye,{icon:wR,size:14,strokeWidth:2}),S.jsxs("span",{children:["#",r.prUrl.match(/\/pull\/(\d+)/)?.[1]??"PR"]})]})]}),r.linearTicketUrl&&S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"text-muted-foreground/50",children:"•"}),S.jsxs("a",{href:_?.url??r.linearTicketUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-foreground hover:text-primary font-medium",onClick:Ae=>Ae.stopPropagation(),title:_?.title,children:[S.jsx(ye,{icon:ym,size:14,strokeWidth:2}),S.jsx("span",{children:r.linearTicketId}),_?.status&&S.jsxs("span",{className:"text-muted-foreground text-xs",children:["(",_.status,")"]})]})]})]})]}),S.jsxs(bH,{children:[S.jsx(_H,{render:S.jsx(He,{variant:"ghost",size:"sm",className:oOe[r.status]}),children:oB[r.status]}),S.jsx(xH,{align:"end",children:S.jsx(lce,{value:r.status,onValueChange:Ke,children:Object.entries(oB).map(([Ae,Se])=>S.jsx(cce,{value:Ae,children:Se},Ae))})})]}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:pe,disabled:u.isPending||!r.worktreePath,className:"text-muted-foreground hover:text-foreground",title:"Pull from main",children:S.jsx(ye,{icon:V2,size:16,strokeWidth:2,className:u.isPending?"animate-spin":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:ae,disabled:h.isPending||!r.worktreePath,className:"text-muted-foreground hover:text-foreground",title:"Merge to main",children:S.jsx(ye,{icon:q2,size:16,strokeWidth:2,className:h.isPending?"animate-pulse":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:Ne,disabled:f.isPending||!r.repoPath,className:"text-muted-foreground hover:text-foreground",title:"Sync parent with origin",children:S.jsx(ye,{icon:Y2,size:16,strokeWidth:2,className:f.isPending?"animate-spin":""})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:Je,className:"text-muted-foreground hover:text-foreground",title:"Open in VS Code",children:S.jsx(ye,{icon:CR,size:16,strokeWidth:2})}),N&&S.jsx("span",{className:"text-xs text-green-600",children:"Synced!"}),I&&S.jsx("span",{className:"text-xs text-green-600",children:"Merged!"}),ne&&S.jsx("span",{className:"text-xs text-green-600",children:"Parent synced!"}),S.jsxs(sf,{open:k,onOpenChange:Xe,children:[S.jsx(of,{render:S.jsx(He,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive"}),children:S.jsx(ye,{icon:vm,size:16,strokeWidth:2})}),S.jsxs(af,{children:[S.jsxs(lf,{children:[S.jsx(uf,{children:"Delete Task"}),S.jsxs(df,{children:['This will permanently delete "',r.title,'" and close its terminal.',A&&r.worktreePath&&" The linked worktree will also be removed."," ","This action cannot be undone."]}),r.worktreePath&&S.jsxs("label",{className:"flex items-center gap-2 text-sm text-foreground",children:[S.jsx(Cm,{checked:A,onCheckedChange:Ae=>O(Ae===!0),disabled:a.isPending}),"Also delete linked worktree"]})]}),S.jsxs(cf,{children:[S.jsx(ff,{disabled:a.isPending,children:"Cancel"}),S.jsx(eH,{onClick:dt,variant:"destructive",disabled:a.isPending,children:a.isPending?"Deleting...":"Delete"})]})]})]})]}),te?S.jsxs(fl,{value:Z,onValueChange:Ae=>ee(Ae),className:"flex min-h-0 flex-1 flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{className:"w-full",children:[S.jsx(Qn,{value:"terminal",className:"flex-1",children:"Terminal"}),S.jsx(Qn,{value:"details",className:"flex-1",children:"Details"})]})}),S.jsx(dr,{value:"terminal",className:"flex-1 min-h-0",children:S.jsx(A9,{taskId:r.id,taskName:r.title,cwd:r.worktreePath,aiMode:b,description:y,startupScript:r.startupScript})}),S.jsx(dr,{value:"details",className:"flex-1 min-h-0",children:S.jsxs(fl,{value:o,onValueChange:c,className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{variant:"line",children:[S.jsxs(Qn,{value:"diff",children:[S.jsx(ye,{icon:U5,size:14,strokeWidth:2,"data-slot":"icon"}),"Diff"]}),S.jsxs(Qn,{value:"browser",children:[S.jsx(ye,{icon:W2,size:14,strokeWidth:2,"data-slot":"icon"}),"Browser"]}),S.jsxs(Qn,{value:"files",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2,"data-slot":"icon"}),"Files"]})]})}),S.jsx(dr,{value:"diff",className:"flex-1 overflow-hidden",children:S.jsx(M9,{taskId:r.id,worktreePath:r.worktreePath})}),S.jsx(dr,{value:"browser",className:"flex-1 overflow-hidden",children:S.jsx(L9,{taskId:r.id})}),S.jsx(dr,{value:"files",className:"flex-1 overflow-hidden",children:S.jsx(sB,{taskId:r.id,worktreePath:r.worktreePath})})]})})]}):S.jsxs(uc,{direction:"horizontal",className:"min-h-0 flex-1",children:[S.jsx(Xi,{defaultSize:50,minSize:30,children:S.jsx(A9,{taskId:r.id,taskName:r.title,cwd:r.worktreePath,aiMode:b,description:y,startupScript:r.startupScript})}),S.jsx(dc,{withHandle:!0}),S.jsx(Xi,{defaultSize:50,minSize:30,children:S.jsxs(fl,{value:o,onValueChange:c,className:"flex h-full flex-col",children:[S.jsx("div",{className:"shrink-0 border-b border-border px-2 py-1",children:S.jsxs(hl,{variant:"line",children:[S.jsxs(Qn,{value:"diff",children:[S.jsx(ye,{icon:U5,size:14,strokeWidth:2,"data-slot":"icon"}),"Diff"]}),S.jsxs(Qn,{value:"browser",children:[S.jsx(ye,{icon:W2,size:14,strokeWidth:2,"data-slot":"icon"}),"Browser"]}),S.jsxs(Qn,{value:"files",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2,"data-slot":"icon"}),"Files"]})]})}),S.jsx(dr,{value:"diff",className:"flex-1 overflow-hidden",children:S.jsx(M9,{taskId:r.id,worktreePath:r.worktreePath})}),S.jsx(dr,{value:"browser",className:"flex-1 overflow-hidden",children:S.jsx(L9,{taskId:r.id})}),S.jsx(dr,{value:"files",className:"flex-1 overflow-hidden",children:S.jsx(sB,{taskId:r.id,worktreePath:r.worktreePath})})]})})]}),S.jsx(UH,{task:r,open:x,onOpenChange:E}),S.jsx(Es,{open:X,onOpenChange:K,children:S.jsxs(ks,{className:"sm:max-w-sm",children:[S.jsxs(to,{children:[S.jsx(no,{children:"Open in VS Code"}),S.jsx(gc,{children:"Choose which folder to open"})]}),S.jsxs("div",{className:"flex flex-col gap-2 mt-4",children:[S.jsxs(He,{variant:"outline",className:"justify-start font-mono text-sm",onClick:Pe,disabled:!r.worktreePath,children:[S.jsx(ye,{icon:K2,size:16,strokeWidth:2,className:"mr-2"}),"Worktree",S.jsx("span",{className:"ml-auto text-xs text-muted-foreground truncate max-w-32",children:r.branch})]}),S.jsxs(He,{variant:"outline",className:"justify-start font-mono text-sm",onClick:Ge,disabled:!r.repoPath,children:[S.jsx(ye,{icon:is,size:16,strokeWidth:2,className:"mr-2"}),"Repository",S.jsx("span",{className:"ml-auto text-xs text-muted-foreground truncate max-w-32",children:r.repoName})]})]})]})}),S.jsx(Es,{open:D,onOpenChange:H,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Sync Failed"}),S.jsx(gc,{children:"An error occurred while syncing with upstream."})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:M}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>H(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:be,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:Re,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})}),S.jsx(Es,{open:q,onOpenChange:W,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Merge Failed"}),S.jsxs(gc,{children:["An error occurred while merging to ",r?.baseBranch||"main","."]})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:U}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>W(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:me,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:ke,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})}),S.jsx(Es,{open:V,onOpenChange:Q,children:S.jsxs(ks,{className:"sm:max-w-md",children:[S.jsxs(to,{children:[S.jsx(no,{className:"text-destructive",children:"Sync Parent Failed"}),S.jsx(gc,{children:"An error occurred while syncing the parent repository with origin."})]}),S.jsx("div",{className:"mt-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:j}),S.jsxs(al,{className:"mt-4 gap-2",children:[S.jsx(He,{variant:"outline",onClick:()=>Q(!1),children:"Close"}),S.jsx(He,{variant:"outline",onClick:we,disabled:!Le,title:"Send prompt to running Claude Code session",children:"Send Prompt"}),S.jsx(He,{variant:"destructive",onClick:Ye,disabled:!Le,title:"Launch Claude Code with -p flag",children:"Launch Claude"})]})]})})]}):S.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4",children:[S.jsx("p",{className:"text-muted-foreground",children:"Task not found"}),S.jsx($r,{to:"/tasks",children:S.jsx(He,{variant:"outline",children:"Back to Tasks"})})]})}const Xq=as("/repositories/$repoId")({component:lOe});function lOe(){const{repoId:e}=Xq.useParams(),t=bl(),{data:n,isLoading:r,error:i}=foe(e),s=hoe(),a=G$(),{data:o}=b0(),{data:c}=_0(),[u,h]=R.useState(""),[f,p]=R.useState(""),[v,w]=R.useState(""),[_,g]=R.useState(!1),[b,y]=R.useState(!1);R.useEffect(()=>{n&&(h(n.displayName),p(n.startupScript||""),w(n.copyFiles||""),g(!1))},[n]),R.useEffect(()=>{if(n){const T=u!==n.displayName||f!==(n.startupScript||"")||v!==(n.copyFiles||"");g(T)}},[u,f,v,n]);const x=()=>{n&&s.mutate({id:n.id,updates:{displayName:u.trim()||n.path.split("/").pop()||"repo",startupScript:f.trim()||null,copyFiles:v.trim()||null}})},E=async()=>{n&&(await a.mutateAsync(n.id),t({to:"/repositories"}))},k=()=>{if(!n)return;const T=Py(n.path,o,c);window.open(T,"_blank")};return r?S.jsx("div",{className:"flex h-full items-center justify-center",children:S.jsx(ye,{icon:An,size:24,strokeWidth:2,className:"animate-spin text-muted-foreground"})}):i||!n?S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsx("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-4 py-2",children:S.jsxs($r,{to:"/repositories",className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[S.jsx(ye,{icon:F5,size:16,strokeWidth:2}),"Repositories"]})}),S.jsx("div",{className:"flex flex-1 items-center justify-center",children:S.jsxs("div",{className:"flex items-center gap-3 text-destructive",children:[S.jsx(ye,{icon:tf,size:20,strokeWidth:2}),S.jsx("span",{className:"text-sm",children:"Repository not found"})]})})]}):S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs($r,{to:"/repositories",className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[S.jsx(ye,{icon:F5,size:16,strokeWidth:2}),"Repositories"]}),S.jsx("span",{className:"text-muted-foreground",children:"/"}),S.jsx("span",{className:"text-sm font-medium",children:n.displayName})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:()=>y(!0),className:"text-muted-foreground hover:text-foreground",title:"Start Task",children:S.jsx(ye,{icon:ym,size:14,strokeWidth:2})}),S.jsx(He,{variant:"ghost",size:"icon-sm",onClick:k,className:"text-muted-foreground hover:text-foreground",title:"Open in VS Code",children:S.jsx(ye,{icon:CR,size:14,strokeWidth:2})}),S.jsxs(sf,{children:[S.jsxs(of,{render:S.jsx(He,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-destructive"}),children:[S.jsx(ye,{icon:vm,size:14,strokeWidth:2,"data-slot":"icon"}),"Delete"]}),S.jsxs(af,{children:[S.jsxs(lf,{children:[S.jsx(uf,{children:"Delete Repository"}),S.jsxs(df,{children:['This will remove "',n.displayName,'" from Vibora. The actual repository files will not be affected.']})]}),S.jsxs(cf,{children:[S.jsx(ff,{children:"Cancel"}),S.jsx(He,{variant:"destructive",onClick:E,children:"Delete"})]})]})]}),S.jsx(He,{size:"sm",onClick:x,disabled:!_||s.isPending,children:s.isPending?"Saving...":"Save"})]})]}),S.jsx("div",{className:"flex-1 overflow-auto p-4",children:S.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[S.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[S.jsx(ye,{icon:is,size:14,strokeWidth:2}),S.jsx("span",{className:"font-mono",children:n.path})]}),S.jsxs(xm,{children:[S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"displayName",children:"Display Name"}),S.jsx(Gt,{id:"displayName",value:u,onChange:T=>h(T.target.value),placeholder:n.path.split("/").pop()||"My Project"})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"startupScript",children:"Startup Script"}),S.jsx(TR,{id:"startupScript",value:f,onChange:T=>p(T.target.value),placeholder:"npm install && npm run dev",rows:3}),S.jsx(Ga,{children:"Command to run in the terminal when creating a worktree."})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"copyFiles",children:"Copy Files"}),S.jsx(Gt,{id:"copyFiles",value:v,onChange:T=>w(T.target.value),placeholder:".env, config.local.json"}),S.jsx(Ga,{children:"Comma-separated glob patterns for files to copy into new worktrees."})]})]})]})}),S.jsx(VR,{open:b,onOpenChange:y,defaultRepository:n})]})}const cOe=dle.update({id:"/",path:"/",getParentRoute:()=>Is}),uOe=ble.update({id:"/worktrees/",path:"/worktrees/",getParentRoute:()=>Is}),dOe=xce.update({id:"/terminals/",path:"/terminals/",getParentRoute:()=>Is}),fOe=kue.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Is}),hOe=Oue.update({id:"/settings/",path:"/settings/",getParentRoute:()=>Is}),pOe=zue.update({id:"/review/",path:"/review/",getParentRoute:()=>Is}),mOe=Hue.update({id:"/repositories/",path:"/repositories/",getParentRoute:()=>Is}),gOe=XEe.update({id:"/monitoring/",path:"/monitoring/",getParentRoute:()=>Is}),vOe=Yq.update({id:"/tasks/$taskId",path:"/tasks/$taskId",getParentRoute:()=>Is}),yOe=Xq.update({id:"/repositories/$repoId",path:"/repositories/$repoId",getParentRoute:()=>Is}),bOe={IndexRoute:cOe,RepositoriesRepoIdRoute:yOe,TasksTaskIdRoute:vOe,MonitoringIndexRoute:gOe,RepositoriesIndexRoute:mOe,ReviewIndexRoute:pOe,SettingsIndexRoute:hOe,TasksIndexRoute:fOe,TerminalsIndexRoute:dOe,WorktreesIndexRoute:uOe},_Oe=Is._addFileChildren(bOe)._addFileTypes(),Qq=R.createContext(null);function xOe({children:e}){const[t,n]=R.useState(!1),[r,i]=R.useState(!0),[s,a]=R.useState(!1),[o,c]=R.useState(!1),u=R.useCallback(async()=>{try{const v=await fetch("/api/auth/check");if(v.ok){const w=await v.json();a(w.authRequired),n(w.authenticated),w.authRequired&&!w.authenticated&&c(!0)}}catch{a(!1),n(!0)}finally{i(!1)}},[]);R.useEffect(()=>{u()},[u]),R.useEffect(()=>{const v=()=>{s&&(n(!1),c(!0))};return window.addEventListener("vibora:auth-required",v),()=>window.removeEventListener("vibora:auth-required",v)},[s]);const h=R.useCallback(async(v,w)=>{const _=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:v,password:w})});if(!_.ok){const g=await _.json();throw new Error(g.error||"Login failed")}n(!0),c(!1)},[]),f=R.useCallback(async()=>{await fetch("/api/auth/logout",{method:"POST"}),n(!1),c(!0)},[]),p=R.useMemo(()=>({isAuthenticated:t,isLoading:r,authRequired:s,showLoginModal:o,setShowLoginModal:c,login:h,logout:f}),[t,r,s,o,h,f]);return S.jsx(Qq.Provider,{value:p,children:e})}function SOe(){const e=R.useContext(Qq);if(!e)throw new Error("useAuth must be used within AuthProvider");return e}function wOe(){const{t:e}=dn("common"),{showLoginModal:t,login:n}=SOe(),[r,i]=R.useState(""),[s,a]=R.useState(""),[o,c]=R.useState(null),[u,h]=R.useState(!1),f=R.useCallback(async v=>{v.preventDefault(),c(null),h(!0);try{await n(r,s)}catch(w){c(w instanceof Error?w.message:e("auth.loginFailed"))}finally{h(!1)}},[r,s,n,e]),p=v=>{v.key==="Enter"&&!u&&r&&s&&(v.preventDefault(),f(v))};return S.jsx(Es,{open:t,children:S.jsxs(ks,{showCloseButton:!1,className:"sm:max-w-sm",onKeyDown:p,children:[S.jsx(to,{children:S.jsx(no,{children:e("auth.loginTitle")})}),S.jsxs("form",{onSubmit:f,children:[S.jsxs(xm,{className:"mt-4",children:[S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"login-username",children:e("auth.username")}),S.jsx(Gt,{id:"login-username",type:"text",value:r,onChange:v=>i(v.target.value),autoComplete:"username",autoFocus:!0,required:!0})]}),S.jsxs(Zn,{children:[S.jsx(Jn,{htmlFor:"login-password",children:e("auth.password")}),S.jsx(Gt,{id:"login-password",type:"password",value:s,onChange:v=>a(v.target.value),autoComplete:"current-password",required:!0})]}),o&&S.jsx("p",{className:"text-sm text-red-500",children:o})]}),S.jsx(al,{className:"mt-4",children:S.jsx(He,{type:"submit",disabled:u||!r||!s,children:e(u?"status.loggingIn":"auth.login")})})]})]})})}const COe=new hX({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}}),EOe=$Y({routeTree:_Oe});cK.createRoot(document.getElementById("root")).render(S.jsx(R.StrictMode,{children:S.jsx(pX,{client:COe,children:S.jsxs(xOe,{children:[S.jsx(UY,{router:EOe}),S.jsx(wOe,{})]})})}));
package/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <link rel="icon" type="image/png" sizes="512x512" href="/vibora-icon.png" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>Vibora</title>
9
- <script type="module" crossorigin src="/assets/index-uJk3oUr4.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-4JG1IeQ3.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-B3HzZgYf.css">
11
11
  </head>
12
12
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibora",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "description": "The Vibe Engineer's Cockpit",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "repository": {
package/server/index.js CHANGED
@@ -13849,6 +13849,7 @@ class TerminalSession {
13849
13849
  buffer;
13850
13850
  onData;
13851
13851
  onExit;
13852
+ isDetaching = false;
13852
13853
  _tabId;
13853
13854
  _positionInTab;
13854
13855
  constructor(options) {
@@ -13951,6 +13952,9 @@ class TerminalSession {
13951
13952
  });
13952
13953
  this.pty.onExit(({ exitCode }) => {
13953
13954
  this.pty = null;
13955
+ if (this.isDetaching) {
13956
+ return;
13957
+ }
13954
13958
  const dtach = getDtachService();
13955
13959
  if (!dtach.hasSession(this.id)) {
13956
13960
  this.status = "exited";
@@ -13963,8 +13967,10 @@ class TerminalSession {
13963
13967
  detach() {
13964
13968
  this.buffer.saveToDisk();
13965
13969
  if (this.pty) {
13970
+ this.isDetaching = true;
13966
13971
  this.pty.kill();
13967
13972
  this.pty = null;
13973
+ this.isDetaching = false;
13968
13974
  }
13969
13975
  }
13970
13976
  write(data) {
@@ -144370,6 +144376,9 @@ async function fetchClaudeUsage(token) {
144370
144376
  }
144371
144377
  monitoringRoutes.get("/claude-usage", async (c) => {
144372
144378
  const now = Date.now();
144379
+ if (cachedUsage && now - usageCacheTimestamp < USAGE_CACHE_MS) {
144380
+ return c.json(cachedUsage);
144381
+ }
144373
144382
  const zaiSettings = getZAiSettings();
144374
144383
  if (zaiSettings.enabled && zaiSettings.apiKey) {
144375
144384
  const response = {